xref: /iperf/configure (revision 06280a6d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.7+.
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.7+'
594PACKAGE_STRING='iperf 3.7+'
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_shared
767enable_silent_rules
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_openssl
779'
780      ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
786LIBS
787CPPFLAGS
788LT_SYS_LIBRARY_PATH
789CPP'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828includedir='${prefix}/include'
829oldincludedir='/usr/include'
830docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831infodir='${datarootdir}/info'
832htmldir='${docdir}'
833dvidir='${docdir}'
834pdfdir='${docdir}'
835psdir='${docdir}'
836libdir='${exec_prefix}/lib'
837localedir='${datarootdir}/locale'
838mandir='${datarootdir}/man'
839
840ac_prev=
841ac_dashdash=
842for ac_option
843do
844  # If the previous option needs an argument, assign it.
845  if test -n "$ac_prev"; then
846    eval $ac_prev=\$ac_option
847    ac_prev=
848    continue
849  fi
850
851  case $ac_option in
852  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853  *=)   ac_optarg= ;;
854  *)    ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error $? "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information"
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error $? "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245  elif test "x$build_alias" != "x$host_alias"; then
1246    cross_compiling=yes
1247  fi
1248fi
1249
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
1254
1255
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259  as_fn_error $? "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261  as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266  ac_srcdir_defaulted=yes
1267  # Try the directory containing this script, then the parent directory.
1268  ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270	 X"$as_myself" : 'X\(//\)[^/]' \| \
1271	 X"$as_myself" : 'X\(//\)$' \| \
1272	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)[^/].*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\).*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  s/.*/./; q'`
1291  srcdir=$ac_confdir
1292  if test ! -r "$srcdir/$ac_unique_file"; then
1293    srcdir=..
1294  fi
1295else
1296  ac_srcdir_defaulted=no
1297fi
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305	pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308  srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318  eval ac_env_${ac_var}_value=\$${ac_var}
1319  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
1322
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327  # Omit some internal or obsolete options to make the list less imposing.
1328  # This message is too long to be a string in the A/UX 3.1 sh.
1329  cat <<_ACEOF
1330\`configure' configures iperf 3.7+ to adapt to many kinds of systems.
1331
1332Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337Defaults for the options are specified in brackets.
1338
1339Configuration:
1340  -h, --help              display this help and exit
1341      --help=short        display options specific to this package
1342      --help=recursive    display the short help of all the included packages
1343  -V, --version           display version information and exit
1344  -q, --quiet, --silent   do not print \`checking ...' messages
1345      --cache-file=FILE   cache test results in FILE [disabled]
1346  -C, --config-cache      alias for \`--cache-file=config.cache'
1347  -n, --no-create         do not create output files
1348      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350Installation directories:
1351  --prefix=PREFIX         install architecture-independent files in PREFIX
1352                          [$ac_default_prefix]
1353  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                          [PREFIX]
1355
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
1360
1361For better control, use the options below.
1362
1363Fine tuning of the installation directories:
1364  --bindir=DIR            user executables [EPREFIX/bin]
1365  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366  --libexecdir=DIR        program executables [EPREFIX/libexec]
1367  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370  --libdir=DIR            object code libraries [EPREFIX/lib]
1371  --includedir=DIR        C header files [PREFIX/include]
1372  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375  --infodir=DIR           info documentation [DATAROOTDIR/info]
1376  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377  --mandir=DIR            man documentation [DATAROOTDIR/man]
1378  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1379  --htmldir=DIR           html documentation [DOCDIR]
1380  --dvidir=DIR            dvi documentation [DOCDIR]
1381  --pdfdir=DIR            pdf documentation [DOCDIR]
1382  --psdir=DIR             ps documentation [DOCDIR]
1383_ACEOF
1384
1385  cat <<\_ACEOF
1386
1387Program names:
1388  --program-prefix=PREFIX            prepend PREFIX to installed program names
1389  --program-suffix=SUFFIX            append SUFFIX to installed program names
1390  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1391
1392System types:
1393  --build=BUILD     configure for building on BUILD [guessed]
1394  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395_ACEOF
1396fi
1397
1398if test -n "$ac_init_help"; then
1399  case $ac_init_help in
1400     short | recursive ) echo "Configuration of iperf 3.7+:";;
1401   esac
1402  cat <<\_ACEOF
1403
1404Optional Features:
1405  --disable-option-checking  ignore unrecognized --enable/--with options
1406  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408  --enable-static-bin     link iperf binary statically
1409  --enable-shared[=PKGS]  build shared libraries [default=no]
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-static[=PKGS]  build static libraries [default=yes]
1413  --enable-fast-install[=PKGS]
1414                          optimize for fast installation [default=yes]
1415  --enable-dependency-tracking
1416                          do not reject slow dependency extractors
1417  --disable-dependency-tracking
1418                          speeds up one-time build
1419  --disable-libtool-lock  avoid locking (might break parallel builds)
1420  --enable-maintainer-mode
1421                          enable make rules and dependencies not useful (and
1422                          sometimes confusing) to the casual installer
1423  --enable-profiling      Enable iperf profiling binary
1424
1425Optional Packages:
1426  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1429                          both]
1430  --with-aix-soname=aix|svr4|both
1431                          shared library versioning (aka "SONAME") variant to
1432                          provide on AIX, [default=aix].
1433  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1434  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1435                          compiler's sysroot if not specified).
1436  --with-openssl=DIR      root of the OpenSSL directory
1437
1438Some influential environment variables:
1439  CC          C compiler command
1440  CFLAGS      C compiler flags
1441  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442              nonstandard directory <lib dir>
1443  LIBS        libraries to pass to the linker, e.g. -l<library>
1444  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445              you have headers in a nonstandard directory <include dir>
1446  LT_SYS_LIBRARY_PATH
1447              User-defined run-time library search path.
1448  CPP         C preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <https://github.com/esnet/iperf>.
1454iperf home page: <https://software.es.net/iperf/>.
1455_ACEOF
1456ac_status=$?
1457fi
1458
1459if test "$ac_init_help" = "recursive"; then
1460  # If there are subdirs, report their specific --help.
1461  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462    test -d "$ac_dir" ||
1463      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464      continue
1465    ac_builddir=.
1466
1467case "$ac_dir" in
1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469*)
1470  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471  # A ".." for each directory in $ac_dir_suffix.
1472  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473  case $ac_top_builddir_sub in
1474  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476  esac ;;
1477esac
1478ac_abs_top_builddir=$ac_pwd
1479ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480# for backward compatibility:
1481ac_top_builddir=$ac_top_build_prefix
1482
1483case $srcdir in
1484  .)  # We are building in place.
1485    ac_srcdir=.
1486    ac_top_srcdir=$ac_top_builddir_sub
1487    ac_abs_top_srcdir=$ac_pwd ;;
1488  [\\/]* | ?:[\\/]* )  # Absolute name.
1489    ac_srcdir=$srcdir$ac_dir_suffix;
1490    ac_top_srcdir=$srcdir
1491    ac_abs_top_srcdir=$srcdir ;;
1492  *) # Relative name.
1493    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494    ac_top_srcdir=$ac_top_build_prefix$srcdir
1495    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496esac
1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499    cd "$ac_dir" || { ac_status=$?; continue; }
1500    # Check for guested configure.
1501    if test -f "$ac_srcdir/configure.gnu"; then
1502      echo &&
1503      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504    elif test -f "$ac_srcdir/configure"; then
1505      echo &&
1506      $SHELL "$ac_srcdir/configure" --help=recursive
1507    else
1508      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509    fi || ac_status=$?
1510    cd "$ac_pwd" || { ac_status=$?; break; }
1511  done
1512fi
1513
1514test -n "$ac_init_help" && exit $ac_status
1515if $ac_init_version; then
1516  cat <<\_ACEOF
1517iperf configure 3.7+
1518generated by GNU Autoconf 2.69
1519
1520Copyright (C) 2012 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526
1527## ------------------------ ##
1528## Autoconf initialization. ##
1529## ------------------------ ##
1530
1531# ac_fn_c_try_compile LINENO
1532# --------------------------
1533# Try to compile conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_compile ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  rm -f conftest.$ac_objext
1538  if { { ac_try="$ac_compile"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_compile") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } && {
1554	 test -z "$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       } && test -s conftest.$ac_objext; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562	ac_retval=1
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_compile
1568
1569# ac_fn_c_try_link LINENO
1570# -----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_link ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext conftest$ac_exeext
1576  if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_link") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest$ac_exeext && {
1595	 test "$cross_compiling" = yes ||
1596	 test -x conftest$ac_exeext
1597       }; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603	ac_retval=1
1604fi
1605  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607  # interfere with the next link command; also delete a directory that is
1608  # left behind by Apple's compiler.  We do this before executing the actions.
1609  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_link
1614
1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1616# -------------------------------------------------------
1617# Tests whether HEADER exists and can be compiled using the include files in
1618# INCLUDES, setting the cache variable VAR accordingly.
1619ac_fn_c_check_header_compile ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }
1624if eval \${$3+:} false; then :
1625  $as_echo_n "(cached) " >&6
1626else
1627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h.  */
1629$4
1630#include <$2>
1631_ACEOF
1632if ac_fn_c_try_compile "$LINENO"; then :
1633  eval "$3=yes"
1634else
1635  eval "$3=no"
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638fi
1639eval ac_res=\$$3
1640	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641$as_echo "$ac_res" >&6; }
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644} # ac_fn_c_check_header_compile
1645
1646# ac_fn_c_try_cpp LINENO
1647# ----------------------
1648# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_cpp ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  if { { ac_try="$ac_cpp conftest.$ac_ext"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } > conftest.i && {
1668	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       }; then :
1671  ac_retval=0
1672else
1673  $as_echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676    ac_retval=1
1677fi
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_cpp
1682
1683# ac_fn_c_try_run LINENO
1684# ----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686# that executables *can* be run.
1687ac_fn_c_try_run ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701  { { case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_try") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; }; }; then :
1711  ac_retval=0
1712else
1713  $as_echo "$as_me: program exited with status $ac_status" >&5
1714       $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717       ac_retval=$ac_status
1718fi
1719  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_run
1724
1725# ac_fn_c_check_func LINENO FUNC VAR
1726# ----------------------------------
1727# Tests whether FUNC exists, setting the cache variable VAR accordingly
1728ac_fn_c_check_func ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735else
1736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1740#define $2 innocuous_$2
1741
1742/* System header to define __stub macros and hopefully few prototypes,
1743    which can conflict with char $2 (); below.
1744    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745    <limits.h> exists even on freestanding compilers.  */
1746
1747#ifdef __STDC__
1748# include <limits.h>
1749#else
1750# include <assert.h>
1751#endif
1752
1753#undef $2
1754
1755/* Override any GCC internal prototype to avoid an error.
1756   Use char because int might match the return type of a GCC
1757   builtin and then its argument prototype would still apply.  */
1758#ifdef __cplusplus
1759extern "C"
1760#endif
1761char $2 ();
1762/* The GNU C library defines this for functions which it implements
1763    to always fail with ENOSYS.  Some functions are actually named
1764    something starting with __ and the normal name is an alias.  */
1765#if defined __stub_$2 || defined __stub___$2
1766choke me
1767#endif
1768
1769int
1770main ()
1771{
1772return $2 ();
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_link "$LINENO"; then :
1778  eval "$3=yes"
1779else
1780  eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext \
1783    conftest$ac_exeext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_func
1791
1792# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795# the include files in INCLUDES and setting the cache variable VAR
1796# accordingly.
1797ac_fn_c_check_header_mongrel ()
1798{
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  if eval \${$3+:} false; then :
1801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802$as_echo_n "checking for $2... " >&6; }
1803if eval \${$3+:} false; then :
1804  $as_echo_n "(cached) " >&6
1805fi
1806eval ac_res=\$$3
1807	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809else
1810  # Is the header compilable?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812$as_echo_n "checking $2 usability... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h.  */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819  ac_header_compiler=yes
1820else
1821  ac_header_compiler=no
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825$as_echo "$ac_header_compiler" >&6; }
1826
1827# Is the header present?
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829$as_echo_n "checking $2 presence... " >&6; }
1830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832#include <$2>
1833_ACEOF
1834if ac_fn_c_try_cpp "$LINENO"; then :
1835  ac_header_preproc=yes
1836else
1837  ac_header_preproc=no
1838fi
1839rm -f conftest.err conftest.i conftest.$ac_ext
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841$as_echo "$ac_header_preproc" >&6; }
1842
1843# So?  What about this header?
1844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845  yes:no: )
1846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850    ;;
1851  no:yes:* )
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862( $as_echo "## --------------------------------------------- ##
1863## Report this to https://github.com/esnet/iperf ##
1864## --------------------------------------------- ##"
1865     ) | sed "s/^/$as_me: WARNING:     /" >&2
1866    ;;
1867esac
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872else
1873  eval "$3=\$ac_header_compiler"
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878fi
1879  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881} # ac_fn_c_check_header_mongrel
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
1886It was created by iperf $as_me 3.7+, which was
1887generated by GNU Autoconf 2.69.  Invocation command line was
1888
1889  $ $0 $@
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923    $as_echo "PATH: $as_dir"
1924  done
1925IFS=$as_save_IFS
1926
1927} >&5
1928
1929cat >&5 <<_ACEOF
1930
1931
1932## ----------- ##
1933## Core tests. ##
1934## ----------- ##
1935
1936_ACEOF
1937
1938
1939# Keep a trace of the command line.
1940# Strip out --no-create and --no-recursion so they do not pile up.
1941# Strip out --silent because we don't want to record it for future runs.
1942# Also quote any args containing shell meta-characters.
1943# Make two passes to allow for proper duplicate-argument suppression.
1944ac_configure_args=
1945ac_configure_args0=
1946ac_configure_args1=
1947ac_must_keep_next=false
1948for ac_pass in 1 2
1949do
1950  for ac_arg
1951  do
1952    case $ac_arg in
1953    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955    | -silent | --silent | --silen | --sile | --sil)
1956      continue ;;
1957    *\'*)
1958      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959    esac
1960    case $ac_pass in
1961    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962    2)
1963      as_fn_append ac_configure_args1 " '$ac_arg'"
1964      if test $ac_must_keep_next = true; then
1965	ac_must_keep_next=false # Got value, back to normal.
1966      else
1967	case $ac_arg in
1968	  *=* | --config-cache | -C | -disable-* | --disable-* \
1969	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971	  | -with-* | --with-* | -without-* | --without-* | --x)
1972	    case "$ac_configure_args0 " in
1973	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974	    esac
1975	    ;;
1976	  -* ) ac_must_keep_next=true ;;
1977	esac
1978      fi
1979      as_fn_append ac_configure_args " '$ac_arg'"
1980      ;;
1981    esac
1982  done
1983done
1984{ ac_configure_args0=; unset ac_configure_args0;}
1985{ ac_configure_args1=; unset ac_configure_args1;}
1986
1987# When interrupted or exit'd, cleanup temporary files, and complete
1988# config.log.  We remove comments because anyway the quotes in there
1989# would cause problems or look ugly.
1990# WARNING: Use '\'' to represent an apostrophe within the trap.
1991# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992trap 'exit_status=$?
1993  # Save into config.log some information that might help in debugging.
1994  {
1995    echo
1996
1997    $as_echo "## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##"
2000    echo
2001    # The following way of writing the cache mishandles newlines in values,
2002(
2003  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004    eval ac_val=\$$ac_var
2005    case $ac_val in #(
2006    *${as_nl}*)
2007      case $ac_var in #(
2008      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010      esac
2011      case $ac_var in #(
2012      _ | IFS | as_nl) ;; #(
2013      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014      *) { eval $ac_var=; unset $ac_var;} ;;
2015      esac ;;
2016    esac
2017  done
2018  (set) 2>&1 |
2019    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020    *${as_nl}ac_space=\ *)
2021      sed -n \
2022	"s/'\''/'\''\\\\'\'''\''/g;
2023	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024      ;; #(
2025    *)
2026      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027      ;;
2028    esac |
2029    sort
2030)
2031    echo
2032
2033    $as_echo "## ----------------- ##
2034## Output variables. ##
2035## ----------------- ##"
2036    echo
2037    for ac_var in $ac_subst_vars
2038    do
2039      eval ac_val=\$$ac_var
2040      case $ac_val in
2041      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042      esac
2043      $as_echo "$ac_var='\''$ac_val'\''"
2044    done | sort
2045    echo
2046
2047    if test -n "$ac_subst_files"; then
2048      $as_echo "## ------------------- ##
2049## File substitutions. ##
2050## ------------------- ##"
2051      echo
2052      for ac_var in $ac_subst_files
2053      do
2054	eval ac_val=\$$ac_var
2055	case $ac_val in
2056	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057	esac
2058	$as_echo "$ac_var='\''$ac_val'\''"
2059      done | sort
2060      echo
2061    fi
2062
2063    if test -s confdefs.h; then
2064      $as_echo "## ----------- ##
2065## confdefs.h. ##
2066## ----------- ##"
2067      echo
2068      cat confdefs.h
2069      echo
2070    fi
2071    test "$ac_signal" != 0 &&
2072      $as_echo "$as_me: caught signal $ac_signal"
2073    $as_echo "$as_me: exit $exit_status"
2074  } >&5
2075  rm -f core *.core core.conftest.* &&
2076    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077    exit $exit_status
2078' 0
2079for ac_signal in 1 2 13 15; do
2080  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
2085rm -f -r conftest* confdefs.h
2086
2087$as_echo "/* confdefs.h */" > confdefs.h
2088
2089# Predefined preprocessor variables.
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_NAME "$PACKAGE_NAME"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_VERSION "$PACKAGE_VERSION"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_STRING "$PACKAGE_STRING"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_URL "$PACKAGE_URL"
2113_ACEOF
2114
2115
2116# Let the site file select an alternate cache file if it wants to.
2117# Prefer an explicitly selected file to automatically selected ones.
2118ac_site_file1=NONE
2119ac_site_file2=NONE
2120if test -n "$CONFIG_SITE"; then
2121  # We do not want a PATH search for config.site.
2122  case $CONFIG_SITE in #((
2123    -*)  ac_site_file1=./$CONFIG_SITE;;
2124    */*) ac_site_file1=$CONFIG_SITE;;
2125    *)   ac_site_file1=./$CONFIG_SITE;;
2126  esac
2127elif test "x$prefix" != xNONE; then
2128  ac_site_file1=$prefix/share/config.site
2129  ac_site_file2=$prefix/etc/config.site
2130else
2131  ac_site_file1=$ac_default_prefix/share/config.site
2132  ac_site_file2=$ac_default_prefix/etc/config.site
2133fi
2134for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135do
2136  test "x$ac_site_file" = xNONE && continue
2137  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140    sed 's/^/| /' "$ac_site_file" >&5
2141    . "$ac_site_file" \
2142      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144as_fn_error $? "failed to load site script $ac_site_file
2145See \`config.log' for more details" "$LINENO" 5; }
2146  fi
2147done
2148
2149if test -r "$cache_file"; then
2150  # Some versions of bash will fail to source /dev/null (special files
2151  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2152  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
2155    case $cache_file in
2156      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157      *)                      . "./$cache_file";;
2158    esac
2159  fi
2160else
2161  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
2163  >$cache_file
2164fi
2165
2166# Check that the precious variables saved in the cache have kept the same
2167# value.
2168ac_cache_corrupted=false
2169for ac_var in $ac_precious_vars; do
2170  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171  eval ac_new_set=\$ac_env_${ac_var}_set
2172  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173  eval ac_new_val=\$ac_env_${ac_var}_value
2174  case $ac_old_set,$ac_new_set in
2175    set,)
2176      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178      ac_cache_corrupted=: ;;
2179    ,set)
2180      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182      ac_cache_corrupted=: ;;
2183    ,);;
2184    *)
2185      if test "x$ac_old_val" != "x$ac_new_val"; then
2186	# differences in whitespace do not lead to failure.
2187	ac_old_val_w=`echo x $ac_old_val`
2188	ac_new_val_w=`echo x $ac_new_val`
2189	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192	  ac_cache_corrupted=:
2193	else
2194	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196	  eval $ac_var=\$ac_old_val
2197	fi
2198	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2199$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2200	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2201$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2202      fi;;
2203  esac
2204  # Pass precious variables to config.status.
2205  if test "$ac_new_set" = set; then
2206    case $ac_new_val in
2207    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208    *) ac_arg=$ac_var=$ac_new_val ;;
2209    esac
2210    case " $ac_configure_args " in
2211      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2212      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213    esac
2214  fi
2215done
2216if $ac_cache_corrupted; then
2217  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222fi
2223## -------------------- ##
2224## Main body of script. ##
2225## -------------------- ##
2226
2227ac_ext=c
2228ac_cpp='$CPP $CPPFLAGS'
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234# ===========================================================================
2235#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2236# ===========================================================================
2237#
2238# SYNOPSIS
2239#
2240#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2241#
2242# DESCRIPTION
2243#
2244#   Look for OpenSSL in a number of default spots, or in a user-selected
2245#   spot (via --with-openssl).  Sets
2246#
2247#     OPENSSL_INCLUDES to the include directives required
2248#     OPENSSL_LIBS to the -l directives required
2249#     OPENSSL_LDFLAGS to the -L or -R flags required
2250#
2251#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2252#
2253#   This macro sets OPENSSL_INCLUDES such that source files should use the
2254#   openssl/ directory in include directives:
2255#
2256#     #include <openssl/hmac.h>
2257#
2258# LICENSE
2259#
2260#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2261#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2262#
2263#   Copying and distribution of this file, with or without modification, are
2264#   permitted in any medium without royalty provided the copyright notice
2265#   and this notice are preserved. This file is offered as-is, without any
2266#   warranty.
2267
2268#serial 10
2269
2270# This is what autoupdate's m4 run will expand.  It fires
2271# the warning (with _au_warn_XXX), outputs it into the
2272# updated configure.ac (with AC_DIAGNOSE), and then outputs
2273# the replacement expansion.
2274
2275
2276# This is an auxiliary macro that is also run when
2277# autoupdate runs m4.  It simply calls m4_warning, but
2278# we need a wrapper so that each warning is emitted only
2279# once.  We break the quoting in m4_warning's argument in
2280# order to expand this macro's arguments, not AU_DEFUN's.
2281
2282
2283# Finally, this is the expansion that is picked up by
2284# autoconf.  It tells the user to run autoupdate, and
2285# then outputs the replacement expansion.  We do not care
2286# about autoupdate's warning because that contains
2287# information on what to do *after* running autoupdate.
2288
2289
2290
2291# Also link binaries as static
2292# Check whether --enable-static-bin was given.
2293if test "${enable_static_bin+set}" = set; then :
2294  enableval=$enable_static_bin; enable_static_bin=yes
2295     # Check whether --enable-shared was given.
2296if test "${enable_shared+set}" = set; then :
2297  enableval=$enable_shared; p=${PACKAGE-default}
2298    case $enableval in
2299    yes) enable_shared=yes ;;
2300    no) enable_shared=no ;;
2301    *)
2302      enable_shared=no
2303      # Look at the argument we got.  We use all the common list separators.
2304      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2305      for pkg in $enableval; do
2306	IFS=$lt_save_ifs
2307	if test "X$pkg" = "X$p"; then
2308	  enable_shared=yes
2309	fi
2310      done
2311      IFS=$lt_save_ifs
2312      ;;
2313    esac
2314else
2315  enable_shared=no
2316fi
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326else
2327  :
2328fi
2329
2330 if test x$enable_static_bin = xno; then
2331  ENABLE_STATIC_BIN_TRUE=
2332  ENABLE_STATIC_BIN_FALSE='#'
2333else
2334  ENABLE_STATIC_BIN_TRUE='#'
2335  ENABLE_STATIC_BIN_FALSE=
2336fi
2337
2338
2339if test "x$enable_static_bin" == xyes; then :
2340  LDFLAGS="$LDFLAGS --static"
2341
2342fi
2343
2344ac_ext=c
2345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351# Specify where the auxiliary files created by configure should go. The config
2352# directory is picked so that they don't clutter up more useful directories.
2353ac_aux_dir=
2354for ac_dir in config "$srcdir"/config; do
2355  if test -f "$ac_dir/install-sh"; then
2356    ac_aux_dir=$ac_dir
2357    ac_install_sh="$ac_aux_dir/install-sh -c"
2358    break
2359  elif test -f "$ac_dir/install.sh"; then
2360    ac_aux_dir=$ac_dir
2361    ac_install_sh="$ac_aux_dir/install.sh -c"
2362    break
2363  elif test -f "$ac_dir/shtool"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/shtool install -c"
2366    break
2367  fi
2368done
2369if test -z "$ac_aux_dir"; then
2370  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2371fi
2372
2373# These three variables are undocumented and unsupported,
2374# and are intended to be withdrawn in a future Autoconf release.
2375# They can cause serious problems if a builder's source tree is in a directory
2376# whose full name contains unusual characters.
2377ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2378ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2379ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2380
2381
2382
2383
2384# Initialize the automake system
2385am__api_version='1.16'
2386
2387# Find a good install program.  We prefer a C program (faster),
2388# so one script is as good as another.  But avoid the broken or
2389# incompatible versions:
2390# SysV /etc/install, /usr/sbin/install
2391# SunOS /usr/etc/install
2392# IRIX /sbin/install
2393# AIX /bin/install
2394# AmigaOS /C/install, which installs bootblocks on floppy discs
2395# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398# OS/2's system install, which has a completely different semantic
2399# ./install, which can be erroneously created by make from ./install.sh.
2400# Reject install programs that cannot install multiple files.
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2402$as_echo_n "checking for a BSD-compatible install... " >&6; }
2403if test -z "$INSTALL"; then
2404if ${ac_cv_path_install+:} false; then :
2405  $as_echo_n "(cached) " >&6
2406else
2407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410  IFS=$as_save_IFS
2411  test -z "$as_dir" && as_dir=.
2412    # Account for people who put trailing slashes in PATH elements.
2413case $as_dir/ in #((
2414  ./ | .// | /[cC]/* | \
2415  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2417  /usr/ucb/* ) ;;
2418  *)
2419    # OSF1 and SCO ODT 3.0 have their own names for install.
2420    # Don't use installbsd from OSF since it installs stuff as root
2421    # by default.
2422    for ac_prog in ginstall scoinst install; do
2423      for ac_exec_ext in '' $ac_executable_extensions; do
2424	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2425	  if test $ac_prog = install &&
2426	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427	    # AIX install.  It has an incompatible calling convention.
2428	    :
2429	  elif test $ac_prog = install &&
2430	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431	    # program-specific install script used by HP pwplus--don't use.
2432	    :
2433	  else
2434	    rm -rf conftest.one conftest.two conftest.dir
2435	    echo one > conftest.one
2436	    echo two > conftest.two
2437	    mkdir conftest.dir
2438	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439	      test -s conftest.one && test -s conftest.two &&
2440	      test -s conftest.dir/conftest.one &&
2441	      test -s conftest.dir/conftest.two
2442	    then
2443	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444	      break 3
2445	    fi
2446	  fi
2447	fi
2448      done
2449    done
2450    ;;
2451esac
2452
2453  done
2454IFS=$as_save_IFS
2455
2456rm -rf conftest.one conftest.two conftest.dir
2457
2458fi
2459  if test "${ac_cv_path_install+set}" = set; then
2460    INSTALL=$ac_cv_path_install
2461  else
2462    # As a last resort, use the slow shell script.  Don't cache a
2463    # value for INSTALL within a source directory, because that will
2464    # break other packages using the cache if that directory is
2465    # removed, or if the value is a relative name.
2466    INSTALL=$ac_install_sh
2467  fi
2468fi
2469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2470$as_echo "$INSTALL" >&6; }
2471
2472# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473# It thinks the first close brace ends the variable substitution.
2474test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2481$as_echo_n "checking whether build environment is sane... " >&6; }
2482# Reject unsafe characters in $srcdir or the absolute working directory
2483# name.  Accept space and tab only in the latter.
2484am_lf='
2485'
2486case `pwd` in
2487  *[\\\"\#\$\&\'\`$am_lf]*)
2488    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2489esac
2490case $srcdir in
2491  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2492    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2493esac
2494
2495# Do 'set' in a subshell so we don't clobber the current shell's
2496# arguments.  Must try -L first in case configure is actually a
2497# symlink; some systems play weird games with the mod time of symlinks
2498# (eg FreeBSD returns the mod time of the symlink's containing
2499# directory).
2500if (
2501   am_has_slept=no
2502   for am_try in 1 2; do
2503     echo "timestamp, slept: $am_has_slept" > conftest.file
2504     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2505     if test "$*" = "X"; then
2506	# -L didn't work.
2507	set X `ls -t "$srcdir/configure" conftest.file`
2508     fi
2509     if test "$*" != "X $srcdir/configure conftest.file" \
2510	&& test "$*" != "X conftest.file $srcdir/configure"; then
2511
2512	# If neither matched, then we have a broken ls.  This can happen
2513	# if, for instance, CONFIG_SHELL is bash and it inherits a
2514	# broken ls alias from the environment.  This has actually
2515	# happened.  Such a system could not be considered "sane".
2516	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2517  alias in your environment" "$LINENO" 5
2518     fi
2519     if test "$2" = conftest.file || test $am_try -eq 2; then
2520       break
2521     fi
2522     # Just in case.
2523     sleep 1
2524     am_has_slept=yes
2525   done
2526   test "$2" = conftest.file
2527   )
2528then
2529   # Ok.
2530   :
2531else
2532   as_fn_error $? "newly created file is older than distributed files!
2533Check your system clock" "$LINENO" 5
2534fi
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2536$as_echo "yes" >&6; }
2537# If we didn't sleep, we still need to ensure time stamps of config.status and
2538# generated files are strictly newer.
2539am_sleep_pid=
2540if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2541  ( sleep 1 ) &
2542  am_sleep_pid=$!
2543fi
2544
2545rm -f conftest.file
2546
2547test "$program_prefix" != NONE &&
2548  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2549# Use a double $ so make ignores it.
2550test "$program_suffix" != NONE &&
2551  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2552# Double any \ or $.
2553# By default was `s,x,x', remove it if useless.
2554ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2555program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2556
2557# Expand $ac_aux_dir to an absolute path.
2558am_aux_dir=`cd "$ac_aux_dir" && pwd`
2559
2560if test x"${MISSING+set}" != xset; then
2561  case $am_aux_dir in
2562  *\ * | *\	*)
2563    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564  *)
2565    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2566  esac
2567fi
2568# Use eval to expand $SHELL
2569if eval "$MISSING --is-lightweight"; then
2570  am_missing_run="$MISSING "
2571else
2572  am_missing_run=
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2574$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2575fi
2576
2577if test x"${install_sh+set}" != xset; then
2578  case $am_aux_dir in
2579  *\ * | *\	*)
2580    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581  *)
2582    install_sh="\${SHELL} $am_aux_dir/install-sh"
2583  esac
2584fi
2585
2586# Installed binaries are usually stripped using 'strip' when the user
2587# run "make install-strip".  However 'strip' might not be the right
2588# tool to use in cross-compilation environments, therefore Automake
2589# will honor the 'STRIP' environment variable to overrule this program.
2590if test "$cross_compiling" != no; then
2591  if test -n "$ac_tool_prefix"; then
2592  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}strip; ac_word=$2
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595$as_echo_n "checking for $ac_word... " >&6; }
2596if ${ac_cv_prog_STRIP+:} false; then :
2597  $as_echo_n "(cached) " >&6
2598else
2599  if test -n "$STRIP"; then
2600  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607    for ac_exec_ext in '' $ac_executable_extensions; do
2608  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614  done
2615IFS=$as_save_IFS
2616
2617fi
2618fi
2619STRIP=$ac_cv_prog_STRIP
2620if test -n "$STRIP"; then
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2622$as_echo "$STRIP" >&6; }
2623else
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626fi
2627
2628
2629fi
2630if test -z "$ac_cv_prog_STRIP"; then
2631  ac_ct_STRIP=$STRIP
2632  # Extract the first word of "strip", so it can be a program name with args.
2633set dummy strip; ac_word=$2
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635$as_echo_n "checking for $ac_word... " >&6; }
2636if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2637  $as_echo_n "(cached) " >&6
2638else
2639  if test -n "$ac_ct_STRIP"; then
2640  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647    for ac_exec_ext in '' $ac_executable_extensions; do
2648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_STRIP="strip"
2650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654  done
2655IFS=$as_save_IFS
2656
2657fi
2658fi
2659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2660if test -n "$ac_ct_STRIP"; then
2661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2662$as_echo "$ac_ct_STRIP" >&6; }
2663else
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665$as_echo "no" >&6; }
2666fi
2667
2668  if test "x$ac_ct_STRIP" = x; then
2669    STRIP=":"
2670  else
2671    case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677    STRIP=$ac_ct_STRIP
2678  fi
2679else
2680  STRIP="$ac_cv_prog_STRIP"
2681fi
2682
2683fi
2684INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2685
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2687$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2688if test -z "$MKDIR_P"; then
2689  if ${ac_cv_path_mkdir+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_prog in mkdir gmkdir; do
2698	 for ac_exec_ext in '' $ac_executable_extensions; do
2699	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2700	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2701	     'mkdir (GNU coreutils) '* | \
2702	     'mkdir (coreutils) '* | \
2703	     'mkdir (fileutils) '4.1*)
2704	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2705	       break 3;;
2706	   esac
2707	 done
2708       done
2709  done
2710IFS=$as_save_IFS
2711
2712fi
2713
2714  test -d ./--version && rmdir ./--version
2715  if test "${ac_cv_path_mkdir+set}" = set; then
2716    MKDIR_P="$ac_cv_path_mkdir -p"
2717  else
2718    # As a last resort, use the slow shell script.  Don't cache a
2719    # value for MKDIR_P within a source directory, because that will
2720    # break other packages using the cache if that directory is
2721    # removed, or if the value is a relative name.
2722    MKDIR_P="$ac_install_sh -d"
2723  fi
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2726$as_echo "$MKDIR_P" >&6; }
2727
2728for ac_prog in gawk mawk nawk awk
2729do
2730  # Extract the first word of "$ac_prog", so it can be a program name with args.
2731set dummy $ac_prog; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
2734if ${ac_cv_prog_AWK+:} false; then :
2735  $as_echo_n "(cached) " >&6
2736else
2737  if test -n "$AWK"; then
2738  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745    for ac_exec_ext in '' $ac_executable_extensions; do
2746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747    ac_cv_prog_AWK="$ac_prog"
2748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752  done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757AWK=$ac_cv_prog_AWK
2758if test -n "$AWK"; then
2759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760$as_echo "$AWK" >&6; }
2761else
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766
2767  test -n "$AWK" && break
2768done
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2772set x ${MAKE-make}
2773ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  cat >conftest.make <<\_ACEOF
2778SHELL = /bin/sh
2779all:
2780	@echo '@@@%%%=$(MAKE)=@@@%%%'
2781_ACEOF
2782# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2783case `${MAKE-make} -f conftest.make 2>/dev/null` in
2784  *@@@%%%=?*=@@@%%%*)
2785    eval ac_cv_prog_make_${ac_make}_set=yes;;
2786  *)
2787    eval ac_cv_prog_make_${ac_make}_set=no;;
2788esac
2789rm -f conftest.make
2790fi
2791if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793$as_echo "yes" >&6; }
2794  SET_MAKE=
2795else
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798  SET_MAKE="MAKE=${MAKE-make}"
2799fi
2800
2801rm -rf .tst 2>/dev/null
2802mkdir .tst 2>/dev/null
2803if test -d .tst; then
2804  am__leading_dot=.
2805else
2806  am__leading_dot=_
2807fi
2808rmdir .tst 2>/dev/null
2809
2810# Check whether --enable-silent-rules was given.
2811if test "${enable_silent_rules+set}" = set; then :
2812  enableval=$enable_silent_rules;
2813fi
2814
2815case $enable_silent_rules in # (((
2816  yes) AM_DEFAULT_VERBOSITY=0;;
2817   no) AM_DEFAULT_VERBOSITY=1;;
2818    *) AM_DEFAULT_VERBOSITY=1;;
2819esac
2820am_make=${MAKE-make}
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2822$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2823if ${am_cv_make_support_nested_variables+:} false; then :
2824  $as_echo_n "(cached) " >&6
2825else
2826  if $as_echo 'TRUE=$(BAR$(V))
2827BAR0=false
2828BAR1=true
2829V=1
2830am__doit:
2831	@$(TRUE)
2832.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2833  am_cv_make_support_nested_variables=yes
2834else
2835  am_cv_make_support_nested_variables=no
2836fi
2837fi
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2839$as_echo "$am_cv_make_support_nested_variables" >&6; }
2840if test $am_cv_make_support_nested_variables = yes; then
2841    AM_V='$(V)'
2842  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2843else
2844  AM_V=$AM_DEFAULT_VERBOSITY
2845  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2846fi
2847AM_BACKSLASH='\'
2848
2849if test "`cd $srcdir && pwd`" != "`pwd`"; then
2850  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2851  # is not polluted with repeated "-I."
2852  am__isrc=' -I$(srcdir)'
2853  # test to see if srcdir already configured
2854  if test -f $srcdir/config.status; then
2855    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2856  fi
2857fi
2858
2859# test whether we have cygpath
2860if test -z "$CYGPATH_W"; then
2861  if (cygpath --version) >/dev/null 2>/dev/null; then
2862    CYGPATH_W='cygpath -w'
2863  else
2864    CYGPATH_W=echo
2865  fi
2866fi
2867
2868
2869# Define the identity of the package.
2870 PACKAGE='iperf'
2871 VERSION='3.7+'
2872
2873
2874cat >>confdefs.h <<_ACEOF
2875#define PACKAGE "$PACKAGE"
2876_ACEOF
2877
2878
2879cat >>confdefs.h <<_ACEOF
2880#define VERSION "$VERSION"
2881_ACEOF
2882
2883# Some tools Automake needs.
2884
2885ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2886
2887
2888AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2889
2890
2891AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2892
2893
2894AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2895
2896
2897MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2898
2899# For better backward compatibility.  To be removed once Automake 1.9.x
2900# dies out for good.  For more background, see:
2901# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2902# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2903mkdir_p='$(MKDIR_P)'
2904
2905# We need awk for the "check" target (and possibly the TAP driver).  The
2906# system "awk" is bad on some platforms.
2907# Always define AMTAR for backward compatibility.  Yes, it's still used
2908# in the wild :-(  We should find a proper way to deprecate it ...
2909AMTAR='$${TAR-tar}'
2910
2911
2912# We'll loop over all known methods to create a tar archive until one works.
2913_am_tools='gnutar  pax cpio none'
2914
2915am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2916
2917
2918
2919
2920
2921
2922# POSIX will say in a future version that running "rm -f" with no argument
2923# is OK; and we want to be able to make that assumption in our Makefile
2924# recipes.  So use an aggressive probe to check that the usage we want is
2925# actually supported "in the wild" to an acceptable degree.
2926# See automake bug#10828.
2927# To make any issue more visible, cause the running configure to be aborted
2928# by default if the 'rm' program in use doesn't match our expectations; the
2929# user can still override this though.
2930if rm -f && rm -fr && rm -rf; then : OK; else
2931  cat >&2 <<'END'
2932Oops!
2933
2934Your 'rm' program seems unable to run without file operands specified
2935on the command line, even when the '-f' option is present.  This is contrary
2936to the behaviour of most rm programs out there, and not conforming with
2937the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2938
2939Please tell bug-automake@gnu.org about your system, including the value
2940of your $PATH and any error possibly output before this message.  This
2941can help us improve future automake versions.
2942
2943END
2944  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2945    echo 'Configuration will proceed anyway, since you have set the' >&2
2946    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2947    echo >&2
2948  else
2949    cat >&2 <<'END'
2950Aborting the configuration process, to ensure you take notice of the issue.
2951
2952You can download and install GNU coreutils to get an 'rm' implementation
2953that behaves properly: <https://www.gnu.org/software/coreutils/>.
2954
2955If you want to complete the configuration process using your problematic
2956'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2957to "yes", and re-run configure.
2958
2959END
2960    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2961  fi
2962fi
2963
2964# Check whether --enable-silent-rules was given.
2965if test "${enable_silent_rules+set}" = set; then :
2966  enableval=$enable_silent_rules;
2967fi
2968
2969case $enable_silent_rules in # (((
2970  yes) AM_DEFAULT_VERBOSITY=0;;
2971   no) AM_DEFAULT_VERBOSITY=1;;
2972    *) AM_DEFAULT_VERBOSITY=0;;
2973esac
2974am_make=${MAKE-make}
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2976$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2977if ${am_cv_make_support_nested_variables+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  if $as_echo 'TRUE=$(BAR$(V))
2981BAR0=false
2982BAR1=true
2983V=1
2984am__doit:
2985	@$(TRUE)
2986.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2987  am_cv_make_support_nested_variables=yes
2988else
2989  am_cv_make_support_nested_variables=no
2990fi
2991fi
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2993$as_echo "$am_cv_make_support_nested_variables" >&6; }
2994if test $am_cv_make_support_nested_variables = yes; then
2995    AM_V='$(V)'
2996  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2997else
2998  AM_V=$AM_DEFAULT_VERBOSITY
2999  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3000fi
3001AM_BACKSLASH='\'
3002
3003case `pwd` in
3004  *\ * | *\	*)
3005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3006$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3007esac
3008
3009
3010
3011macro_version='2.4.6'
3012macro_revision='2.4.6'
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026ltmain=$ac_aux_dir/ltmain.sh
3027
3028# Make sure we can run config.sub.
3029$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3030  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3031
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3033$as_echo_n "checking build system type... " >&6; }
3034if ${ac_cv_build+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  ac_build_alias=$build_alias
3038test "x$ac_build_alias" = x &&
3039  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3040test "x$ac_build_alias" = x &&
3041  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3042ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3043  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3044
3045fi
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3047$as_echo "$ac_cv_build" >&6; }
3048case $ac_cv_build in
3049*-*-*) ;;
3050*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3051esac
3052build=$ac_cv_build
3053ac_save_IFS=$IFS; IFS='-'
3054set x $ac_cv_build
3055shift
3056build_cpu=$1
3057build_vendor=$2
3058shift; shift
3059# Remember, the first character of IFS is used to create $*,
3060# except with old shells:
3061build_os=$*
3062IFS=$ac_save_IFS
3063case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3064
3065
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3067$as_echo_n "checking host system type... " >&6; }
3068if ${ac_cv_host+:} false; then :
3069  $as_echo_n "(cached) " >&6
3070else
3071  if test "x$host_alias" = x; then
3072  ac_cv_host=$ac_cv_build
3073else
3074  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3075    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3076fi
3077
3078fi
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3080$as_echo "$ac_cv_host" >&6; }
3081case $ac_cv_host in
3082*-*-*) ;;
3083*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3084esac
3085host=$ac_cv_host
3086ac_save_IFS=$IFS; IFS='-'
3087set x $ac_cv_host
3088shift
3089host_cpu=$1
3090host_vendor=$2
3091shift; shift
3092# Remember, the first character of IFS is used to create $*,
3093# except with old shells:
3094host_os=$*
3095IFS=$ac_save_IFS
3096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3097
3098
3099# Backslashify metacharacters that are still active within
3100# double-quoted strings.
3101sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3102
3103# Same as above, but do not quote variable references.
3104double_quote_subst='s/\(["`\\]\)/\\\1/g'
3105
3106# Sed substitution to delay expansion of an escaped shell variable in a
3107# double_quote_subst'ed string.
3108delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3109
3110# Sed substitution to delay expansion of an escaped single quote.
3111delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3112
3113# Sed substitution to avoid accidental globbing in evaled expressions
3114no_glob_subst='s/\*/\\\*/g'
3115
3116ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3117ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3119
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3121$as_echo_n "checking how to print strings... " >&6; }
3122# Test print first, because it will be a builtin if present.
3123if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3124   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3125  ECHO='print -r --'
3126elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3127  ECHO='printf %s\n'
3128else
3129  # Use this function as a fallback that always works.
3130  func_fallback_echo ()
3131  {
3132    eval 'cat <<_LTECHO_EOF
3133$1
3134_LTECHO_EOF'
3135  }
3136  ECHO='func_fallback_echo'
3137fi
3138
3139# func_echo_all arg...
3140# Invoke $ECHO with all args, space-separated.
3141func_echo_all ()
3142{
3143    $ECHO ""
3144}
3145
3146case $ECHO in
3147  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3148$as_echo "printf" >&6; } ;;
3149  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3150$as_echo "print -r" >&6; } ;;
3151  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3152$as_echo "cat" >&6; } ;;
3153esac
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168DEPDIR="${am__leading_dot}deps"
3169
3170ac_config_commands="$ac_config_commands depfiles"
3171
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3173$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3174cat > confinc.mk << 'END'
3175am__doit:
3176	@echo this is the am__doit target >confinc.out
3177.PHONY: am__doit
3178END
3179am__include="#"
3180am__quote=
3181# BSD make does it like this.
3182echo '.include "confinc.mk" # ignored' > confmf.BSD
3183# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3184echo 'include confinc.mk # ignored' > confmf.GNU
3185_am_result=no
3186for s in GNU BSD; do
3187  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3188   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }
3192  case $?:`cat confinc.out 2>/dev/null` in #(
3193  '0:this is the am__doit target') :
3194    case $s in #(
3195  BSD) :
3196    am__include='.include' am__quote='"' ;; #(
3197  *) :
3198    am__include='include' am__quote='' ;;
3199esac ;; #(
3200  *) :
3201     ;;
3202esac
3203  if test "$am__include" != "#"; then
3204    _am_result="yes ($s style)"
3205    break
3206  fi
3207done
3208rm -f confinc.* confmf.*
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3210$as_echo "${_am_result}" >&6; }
3211
3212# Check whether --enable-dependency-tracking was given.
3213if test "${enable_dependency_tracking+set}" = set; then :
3214  enableval=$enable_dependency_tracking;
3215fi
3216
3217if test "x$enable_dependency_tracking" != xno; then
3218  am_depcomp="$ac_aux_dir/depcomp"
3219  AMDEPBACKSLASH='\'
3220  am__nodep='_no'
3221fi
3222 if test "x$enable_dependency_tracking" != xno; then
3223  AMDEP_TRUE=
3224  AMDEP_FALSE='#'
3225else
3226  AMDEP_TRUE='#'
3227  AMDEP_FALSE=
3228fi
3229
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236if test -n "$ac_tool_prefix"; then
3237  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238set dummy ${ac_tool_prefix}gcc; ac_word=$2
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240$as_echo_n "checking for $ac_word... " >&6; }
3241if ${ac_cv_prog_CC+:} false; then :
3242  $as_echo_n "(cached) " >&6
3243else
3244  if test -n "$CC"; then
3245  ac_cv_prog_CC="$CC" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250  IFS=$as_save_IFS
3251  test -z "$as_dir" && as_dir=.
3252    for ac_exec_ext in '' $ac_executable_extensions; do
3253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256    break 2
3257  fi
3258done
3259  done
3260IFS=$as_save_IFS
3261
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3268else
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271fi
3272
3273
3274fi
3275if test -z "$ac_cv_prog_CC"; then
3276  ac_ct_CC=$CC
3277  # Extract the first word of "gcc", so it can be a program name with args.
3278set dummy gcc; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$ac_ct_CC"; then
3285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_ac_ct_CC="gcc"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313  if test "x$ac_ct_CC" = x; then
3314    CC=""
3315  else
3316    case $cross_compiling:$ac_tool_warned in
3317yes:)
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320ac_tool_warned=yes ;;
3321esac
3322    CC=$ac_ct_CC
3323  fi
3324else
3325  CC="$ac_cv_prog_CC"
3326fi
3327
3328if test -z "$CC"; then
3329          if test -n "$ac_tool_prefix"; then
3330    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3331set dummy ${ac_tool_prefix}cc; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if ${ac_cv_prog_CC+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if test -n "$CC"; then
3338  ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_CC="${ac_tool_prefix}cc"
3348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367  fi
3368fi
3369if test -z "$CC"; then
3370  # Extract the first word of "cc", so it can be a program name with args.
3371set dummy cc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_CC+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$CC"; then
3378  ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380  ac_prog_rejected=no
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384  IFS=$as_save_IFS
3385  test -z "$as_dir" && as_dir=.
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3389       ac_prog_rejected=yes
3390       continue
3391     fi
3392    ac_cv_prog_CC="cc"
3393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394    break 2
3395  fi
3396done
3397  done
3398IFS=$as_save_IFS
3399
3400if test $ac_prog_rejected = yes; then
3401  # We found a bogon in the path, so make sure we never use it.
3402  set dummy $ac_cv_prog_CC
3403  shift
3404  if test $# != 0; then
3405    # We chose a different compiler from the bogus one.
3406    # However, it has the same basename, so the bogon will be chosen
3407    # first if we set CC to just the basename; use the full file name.
3408    shift
3409    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3410  fi
3411fi
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
3416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
3418else
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
3421fi
3422
3423
3424fi
3425if test -z "$CC"; then
3426  if test -n "$ac_tool_prefix"; then
3427  for ac_prog in cl.exe
3428  do
3429    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432$as_echo_n "checking for $ac_word... " >&6; }
3433if ${ac_cv_prog_CC+:} false; then :
3434  $as_echo_n "(cached) " >&6
3435else
3436  if test -n "$CC"; then
3437  ac_cv_prog_CC="$CC" # Let the user override the test.
3438else
3439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442  IFS=$as_save_IFS
3443  test -z "$as_dir" && as_dir=.
3444    for ac_exec_ext in '' $ac_executable_extensions; do
3445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448    break 2
3449  fi
3450done
3451  done
3452IFS=$as_save_IFS
3453
3454fi
3455fi
3456CC=$ac_cv_prog_CC
3457if test -n "$CC"; then
3458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459$as_echo "$CC" >&6; }
3460else
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462$as_echo "no" >&6; }
3463fi
3464
3465
3466    test -n "$CC" && break
3467  done
3468fi
3469if test -z "$CC"; then
3470  ac_ct_CC=$CC
3471  for ac_prog in cl.exe
3472do
3473  # Extract the first word of "$ac_prog", so it can be a program name with args.
3474set dummy $ac_prog; ac_word=$2
3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476$as_echo_n "checking for $ac_word... " >&6; }
3477if ${ac_cv_prog_ac_ct_CC+:} false; then :
3478  $as_echo_n "(cached) " >&6
3479else
3480  if test -n "$ac_ct_CC"; then
3481  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482else
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  test -z "$as_dir" && as_dir=.
3488    for ac_exec_ext in '' $ac_executable_extensions; do
3489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_ac_ct_CC="$ac_prog"
3491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495  done
3496IFS=$as_save_IFS
3497
3498fi
3499fi
3500ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501if test -n "$ac_ct_CC"; then
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503$as_echo "$ac_ct_CC" >&6; }
3504else
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510  test -n "$ac_ct_CC" && break
3511done
3512
3513  if test "x$ac_ct_CC" = x; then
3514    CC=""
3515  else
3516    case $cross_compiling:$ac_tool_warned in
3517yes:)
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520ac_tool_warned=yes ;;
3521esac
3522    CC=$ac_ct_CC
3523  fi
3524fi
3525
3526fi
3527
3528
3529test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "no acceptable C compiler found in \$PATH
3532See \`config.log' for more details" "$LINENO" 5; }
3533
3534# Provide some information about the compiler.
3535$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536set X $ac_compile
3537ac_compiler=$2
3538for ac_option in --version -v -V -qversion; do
3539  { { ac_try="$ac_compiler $ac_option >&5"
3540case "(($ac_try" in
3541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542  *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545$as_echo "$ac_try_echo"; } >&5
3546  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547  ac_status=$?
3548  if test -s conftest.err; then
3549    sed '10a\
3550... rest of stderr output deleted ...
3551         10q' conftest.err >conftest.er1
3552    cat conftest.er1 >&5
3553  fi
3554  rm -f conftest.er1 conftest.err
3555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556  test $ac_status = 0; }
3557done
3558
3559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561
3562int
3563main ()
3564{
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570ac_clean_files_save=$ac_clean_files
3571ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3572# Try to create an executable without -o first, disregard a.out.
3573# It will help us diagnose broken compilers, and finding out an intuition
3574# of exeext.
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576$as_echo_n "checking whether the C compiler works... " >&6; }
3577ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3578
3579# The possible output files:
3580ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3581
3582ac_rmfiles=
3583for ac_file in $ac_files
3584do
3585  case $ac_file in
3586    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588  esac
3589done
3590rm -f $ac_rmfiles
3591
3592if { { ac_try="$ac_link_default"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_link_default") 2>&5
3600  ac_status=$?
3601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602  test $ac_status = 0; }; then :
3603  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3606# so that the user can short-circuit this test for compilers unknown to
3607# Autoconf.
3608for ac_file in $ac_files ''
3609do
3610  test -f "$ac_file" || continue
3611  case $ac_file in
3612    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3613	;;
3614    [ab].out )
3615	# We found the default executable, but exeext='' is most
3616	# certainly right.
3617	break;;
3618    *.* )
3619	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620	then :; else
3621	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622	fi
3623	# We set ac_cv_exeext here because the later test for it is not
3624	# safe: cross compilers may not add the suffix if given an `-o'
3625	# argument, so we may need to know it at that point already.
3626	# Even if this section looks crufty: it has the advantage of
3627	# actually working.
3628	break;;
3629    * )
3630	break;;
3631  esac
3632done
3633test "$ac_cv_exeext" = no && ac_cv_exeext=
3634
3635else
3636  ac_file=''
3637fi
3638if test -z "$ac_file"; then :
3639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640$as_echo "no" >&6; }
3641$as_echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646as_fn_error 77 "C compiler cannot create executables
3647See \`config.log' for more details" "$LINENO" 5; }
3648else
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650$as_echo "yes" >&6; }
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3653$as_echo_n "checking for C compiler default output file name... " >&6; }
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3655$as_echo "$ac_file" >&6; }
3656ac_exeext=$ac_cv_exeext
3657
3658rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3659ac_clean_files=$ac_clean_files_save
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661$as_echo_n "checking for suffix of executables... " >&6; }
3662if { { ac_try="$ac_link"
3663case "(($ac_try" in
3664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665  *) ac_try_echo=$ac_try;;
3666esac
3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668$as_echo "$ac_try_echo"; } >&5
3669  (eval "$ac_link") 2>&5
3670  ac_status=$?
3671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672  test $ac_status = 0; }; then :
3673  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3675# work properly (i.e., refer to `conftest.exe'), while it won't with
3676# `rm'.
3677for ac_file in conftest.exe conftest conftest.*; do
3678  test -f "$ac_file" || continue
3679  case $ac_file in
3680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682	  break;;
3683    * ) break;;
3684  esac
3685done
3686else
3687  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3690See \`config.log' for more details" "$LINENO" 5; }
3691fi
3692rm -f conftest conftest$ac_cv_exeext
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694$as_echo "$ac_cv_exeext" >&6; }
3695
3696rm -f conftest.$ac_ext
3697EXEEXT=$ac_cv_exeext
3698ac_exeext=$EXEEXT
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701#include <stdio.h>
3702int
3703main ()
3704{
3705FILE *f = fopen ("conftest.out", "w");
3706 return ferror (f) || fclose (f) != 0;
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712ac_clean_files="$ac_clean_files conftest.out"
3713# Check that the compiler produces executables we can run.  If not, either
3714# the compiler is broken, or we cross compile.
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3716$as_echo_n "checking whether we are cross compiling... " >&6; }
3717if test "$cross_compiling" != yes; then
3718  { { ac_try="$ac_link"
3719case "(($ac_try" in
3720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721  *) ac_try_echo=$ac_try;;
3722esac
3723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724$as_echo "$ac_try_echo"; } >&5
3725  (eval "$ac_link") 2>&5
3726  ac_status=$?
3727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728  test $ac_status = 0; }
3729  if { ac_try='./conftest$ac_cv_exeext'
3730  { { case "(($ac_try" in
3731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732  *) ac_try_echo=$ac_try;;
3733esac
3734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735$as_echo "$ac_try_echo"; } >&5
3736  (eval "$ac_try") 2>&5
3737  ac_status=$?
3738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739  test $ac_status = 0; }; }; then
3740    cross_compiling=no
3741  else
3742    if test "$cross_compiling" = maybe; then
3743	cross_compiling=yes
3744    else
3745	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747as_fn_error $? "cannot run C compiled programs.
3748If you meant to cross compile, use \`--host'.
3749See \`config.log' for more details" "$LINENO" 5; }
3750    fi
3751  fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3754$as_echo "$cross_compiling" >&6; }
3755
3756rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3757ac_clean_files=$ac_clean_files_save
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3759$as_echo_n "checking for suffix of object files... " >&6; }
3760if ${ac_cv_objext+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774rm -f conftest.o conftest.obj
3775if { { ac_try="$ac_compile"
3776case "(($ac_try" in
3777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778  *) ac_try_echo=$ac_try;;
3779esac
3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781$as_echo "$ac_try_echo"; } >&5
3782  (eval "$ac_compile") 2>&5
3783  ac_status=$?
3784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785  test $ac_status = 0; }; then :
3786  for ac_file in conftest.o conftest.obj conftest.*; do
3787  test -f "$ac_file" || continue;
3788  case $ac_file in
3789    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3790    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791       break;;
3792  esac
3793done
3794else
3795  $as_echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error $? "cannot compute suffix of object files: cannot compile
3801See \`config.log' for more details" "$LINENO" 5; }
3802fi
3803rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3806$as_echo "$ac_cv_objext" >&6; }
3807OBJEXT=$ac_cv_objext
3808ac_objext=$OBJEXT
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3810$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3811if ${ac_cv_c_compiler_gnu+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821       choke me
3822#endif
3823
3824  ;
3825  return 0;
3826}
3827_ACEOF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829  ac_compiler_gnu=yes
3830else
3831  ac_compiler_gnu=no
3832fi
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834ac_cv_c_compiler_gnu=$ac_compiler_gnu
3835
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3838$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3839if test $ac_compiler_gnu = yes; then
3840  GCC=yes
3841else
3842  GCC=
3843fi
3844ac_test_CFLAGS=${CFLAGS+set}
3845ac_save_CFLAGS=$CFLAGS
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3847$as_echo_n "checking whether $CC accepts -g... " >&6; }
3848if ${ac_cv_prog_cc_g+:} false; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  ac_save_c_werror_flag=$ac_c_werror_flag
3852   ac_c_werror_flag=yes
3853   ac_cv_prog_cc_g=no
3854   CFLAGS="-g"
3855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867  ac_cv_prog_cc_g=yes
3868else
3869  CFLAGS=""
3870      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882
3883else
3884  ac_c_werror_flag=$ac_save_c_werror_flag
3885	 CFLAGS="-g"
3886	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887/* end confdefs.h.  */
3888
3889int
3890main ()
3891{
3892
3893  ;
3894  return 0;
3895}
3896_ACEOF
3897if ac_fn_c_try_compile "$LINENO"; then :
3898  ac_cv_prog_cc_g=yes
3899fi
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903fi
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905   ac_c_werror_flag=$ac_save_c_werror_flag
3906fi
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3908$as_echo "$ac_cv_prog_cc_g" >&6; }
3909if test "$ac_test_CFLAGS" = set; then
3910  CFLAGS=$ac_save_CFLAGS
3911elif test $ac_cv_prog_cc_g = yes; then
3912  if test "$GCC" = yes; then
3913    CFLAGS="-g -O2"
3914  else
3915    CFLAGS="-g"
3916  fi
3917else
3918  if test "$GCC" = yes; then
3919    CFLAGS="-O2"
3920  else
3921    CFLAGS=
3922  fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3926if ${ac_cv_prog_cc_c89+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  ac_cv_prog_cc_c89=no
3930ac_save_CC=$CC
3931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h.  */
3933#include <stdarg.h>
3934#include <stdio.h>
3935struct stat;
3936/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3937struct buf { int x; };
3938FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939static char *e (p, i)
3940     char **p;
3941     int i;
3942{
3943  return p[i];
3944}
3945static char *f (char * (*g) (char **, int), char **p, ...)
3946{
3947  char *s;
3948  va_list v;
3949  va_start (v,p);
3950  s = g (p, va_arg (v,int));
3951  va_end (v);
3952  return s;
3953}
3954
3955/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3956   function prototypes and stuff, but not '\xHH' hex character constants.
3957   These don't provoke an error unfortunately, instead are silently treated
3958   as 'x'.  The following induces an error, until -std is added to get
3959   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3960   array size at least.  It's necessary to write '\x00'==0 to get something
3961   that's true only with -std.  */
3962int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963
3964/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3965   inside strings and character constants.  */
3966#define FOO(x) 'x'
3967int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968
3969int test (int i, double x);
3970struct s1 {int (*f) (int a);};
3971struct s2 {int (*f) (double a);};
3972int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973int argc;
3974char **argv;
3975int
3976main ()
3977{
3978return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3984	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985do
3986  CC="$ac_save_CC $ac_arg"
3987  if ac_fn_c_try_compile "$LINENO"; then :
3988  ac_cv_prog_cc_c89=$ac_arg
3989fi
3990rm -f core conftest.err conftest.$ac_objext
3991  test "x$ac_cv_prog_cc_c89" != "xno" && break
3992done
3993rm -f conftest.$ac_ext
3994CC=$ac_save_CC
3995
3996fi
3997# AC_CACHE_VAL
3998case "x$ac_cv_prog_cc_c89" in
3999  x)
4000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001$as_echo "none needed" >&6; } ;;
4002  xno)
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004$as_echo "unsupported" >&6; } ;;
4005  *)
4006    CC="$CC $ac_cv_prog_cc_c89"
4007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4008$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009esac
4010if test "x$ac_cv_prog_cc_c89" != xno; then :
4011
4012fi
4013
4014ac_ext=c
4015ac_cpp='$CPP $CPPFLAGS'
4016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4026$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4027if ${am_cv_prog_cc_c_o+:} false; then :
4028  $as_echo_n "(cached) " >&6
4029else
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032
4033int
4034main ()
4035{
4036
4037  ;
4038  return 0;
4039}
4040_ACEOF
4041  # Make sure it works both with $CC and with simple cc.
4042  # Following AC_PROG_CC_C_O, we do the test twice because some
4043  # compilers refuse to overwrite an existing .o file with -o,
4044  # though they will create one.
4045  am_cv_prog_cc_c_o=yes
4046  for am_i in 1 2; do
4047    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4048   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); } \
4052         && test -f conftest2.$ac_objext; then
4053      : OK
4054    else
4055      am_cv_prog_cc_c_o=no
4056      break
4057    fi
4058  done
4059  rm -f core conftest*
4060  unset am_i
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4063$as_echo "$am_cv_prog_cc_c_o" >&6; }
4064if test "$am_cv_prog_cc_c_o" != yes; then
4065   # Losing compiler, so override with the script.
4066   # FIXME: It is wrong to rewrite CC.
4067   # But if we don't then we get into trouble of one sort or another.
4068   # A longer-term fix would be to have automake use am__CC in this case,
4069   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070   CC="$am_aux_dir/compile $CC"
4071fi
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
4079depcc="$CC"   am_compiler_list=
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082$as_echo_n "checking dependency style of $depcc... " >&6; }
4083if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087  # We make a subdir and do the tests there.  Otherwise we can end up
4088  # making bogus files that we don't know about and never remove.  For
4089  # instance it was reported that on HP-UX the gcc test will end up
4090  # making a dummy file named 'D' -- because '-MD' means "put the output
4091  # in D".
4092  rm -rf conftest.dir
4093  mkdir conftest.dir
4094  # Copy depcomp to subdir because otherwise we won't find it if we're
4095  # using a relative directory.
4096  cp "$am_depcomp" conftest.dir
4097  cd conftest.dir
4098  # We will build objects and dependencies in a subdirectory because
4099  # it helps to detect inapplicable dependency modes.  For instance
4100  # both Tru64's cc and ICC support -MD to output dependencies as a
4101  # side effect of compilation, but ICC will put the dependencies in
4102  # the current directory while Tru64 will put them in the object
4103  # directory.
4104  mkdir sub
4105
4106  am_cv_CC_dependencies_compiler_type=none
4107  if test "$am_compiler_list" = ""; then
4108     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109  fi
4110  am__universal=false
4111  case " $depcc " in #(
4112     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4113     esac
4114
4115  for depmode in $am_compiler_list; do
4116    # Setup a source with many dependencies, because some compilers
4117    # like to wrap large dependency lists on column 80 (with \), and
4118    # we should not choose a depcomp mode which is confused by this.
4119    #
4120    # We need to recreate these files for each test, as the compiler may
4121    # overwrite some of them when testing with obscure command lines.
4122    # This happens at least with the AIX C compiler.
4123    : > sub/conftest.c
4124    for i in 1 2 3 4 5 6; do
4125      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4126      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4127      # Solaris 10 /bin/sh.
4128      echo '/* dummy */' > sub/conftst$i.h
4129    done
4130    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131
4132    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4133    # mode.  It turns out that the SunPro C++ compiler does not properly
4134    # handle '-M -o', and we need to detect this.  Also, some Intel
4135    # versions had trouble with output in subdirs.
4136    am__obj=sub/conftest.${OBJEXT-o}
4137    am__minus_obj="-o $am__obj"
4138    case $depmode in
4139    gcc)
4140      # This depmode causes a compiler race in universal mode.
4141      test "$am__universal" = false || continue
4142      ;;
4143    nosideeffect)
4144      # After this tag, mechanisms are not by side-effect, so they'll
4145      # only be used when explicitly requested.
4146      if test "x$enable_dependency_tracking" = xyes; then
4147	continue
4148      else
4149	break
4150      fi
4151      ;;
4152    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4153      # This compiler won't grok '-c -o', but also, the minuso test has
4154      # not run yet.  These depmodes are late enough in the game, and
4155      # so weak that their functioning should not be impacted.
4156      am__obj=conftest.${OBJEXT-o}
4157      am__minus_obj=
4158      ;;
4159    none) break ;;
4160    esac
4161    if depmode=$depmode \
4162       source=sub/conftest.c object=$am__obj \
4163       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4164       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4165         >/dev/null 2>conftest.err &&
4166       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4167       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4168       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4169       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4170      # icc doesn't choke on unknown options, it will just issue warnings
4171      # or remarks (even with -Werror).  So we grep stderr for any message
4172      # that says an option was ignored or not supported.
4173      # When given -MP, icc 7.0 and 7.1 complain thusly:
4174      #   icc: Command line warning: ignoring option '-M'; no argument required
4175      # The diagnosis changed in icc 8.0:
4176      #   icc: Command line remark: option '-MP' not supported
4177      if (grep 'ignoring option' conftest.err ||
4178          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4179        am_cv_CC_dependencies_compiler_type=$depmode
4180        break
4181      fi
4182    fi
4183  done
4184
4185  cd ..
4186  rm -rf conftest.dir
4187else
4188  am_cv_CC_dependencies_compiler_type=none
4189fi
4190
4191fi
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4193$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4195
4196 if
4197  test "x$enable_dependency_tracking" != xno \
4198  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199  am__fastdepCC_TRUE=
4200  am__fastdepCC_FALSE='#'
4201else
4202  am__fastdepCC_TRUE='#'
4203  am__fastdepCC_FALSE=
4204fi
4205
4206
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4209if ${ac_cv_path_SED+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4213     for ac_i in 1 2 3 4 5 6 7; do
4214       ac_script="$ac_script$as_nl$ac_script"
4215     done
4216     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4217     { ac_script=; unset ac_script;}
4218     if test -z "$SED"; then
4219  ac_path_SED_found=false
4220  # Loop through the user's path and test for each of PROGNAME-LIST
4221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226    for ac_prog in sed gsed; do
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4229      as_fn_executable_p "$ac_path_SED" || continue
4230# Check for GNU ac_path_SED and select it if it is found.
4231  # Check for GNU $ac_path_SED
4232case `"$ac_path_SED" --version 2>&1` in
4233*GNU*)
4234  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4235*)
4236  ac_count=0
4237  $as_echo_n 0123456789 >"conftest.in"
4238  while :
4239  do
4240    cat "conftest.in" "conftest.in" >"conftest.tmp"
4241    mv "conftest.tmp" "conftest.in"
4242    cp "conftest.in" "conftest.nl"
4243    $as_echo '' >> "conftest.nl"
4244    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246    as_fn_arith $ac_count + 1 && ac_count=$as_val
4247    if test $ac_count -gt ${ac_path_SED_max-0}; then
4248      # Best one so far, save it but keep looking for a better one
4249      ac_cv_path_SED="$ac_path_SED"
4250      ac_path_SED_max=$ac_count
4251    fi
4252    # 10*(2^10) chars as input seems more than enough
4253    test $ac_count -gt 10 && break
4254  done
4255  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256esac
4257
4258      $ac_path_SED_found && break 3
4259    done
4260  done
4261  done
4262IFS=$as_save_IFS
4263  if test -z "$ac_cv_path_SED"; then
4264    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4265  fi
4266else
4267  ac_cv_path_SED=$SED
4268fi
4269
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4272$as_echo "$ac_cv_path_SED" >&6; }
4273 SED="$ac_cv_path_SED"
4274  rm -f conftest.sed
4275
4276test -z "$SED" && SED=sed
4277Xsed="$SED -e 1s/^X//"
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4290$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4291if ${ac_cv_path_GREP+:} false; then :
4292  $as_echo_n "(cached) " >&6
4293else
4294  if test -z "$GREP"; then
4295  ac_path_GREP_found=false
4296  # Loop through the user's path and test for each of PROGNAME-LIST
4297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299do
4300  IFS=$as_save_IFS
4301  test -z "$as_dir" && as_dir=.
4302    for ac_prog in grep ggrep; do
4303    for ac_exec_ext in '' $ac_executable_extensions; do
4304      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4305      as_fn_executable_p "$ac_path_GREP" || continue
4306# Check for GNU ac_path_GREP and select it if it is found.
4307  # Check for GNU $ac_path_GREP
4308case `"$ac_path_GREP" --version 2>&1` in
4309*GNU*)
4310  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4311*)
4312  ac_count=0
4313  $as_echo_n 0123456789 >"conftest.in"
4314  while :
4315  do
4316    cat "conftest.in" "conftest.in" >"conftest.tmp"
4317    mv "conftest.tmp" "conftest.in"
4318    cp "conftest.in" "conftest.nl"
4319    $as_echo 'GREP' >> "conftest.nl"
4320    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322    as_fn_arith $ac_count + 1 && ac_count=$as_val
4323    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4324      # Best one so far, save it but keep looking for a better one
4325      ac_cv_path_GREP="$ac_path_GREP"
4326      ac_path_GREP_max=$ac_count
4327    fi
4328    # 10*(2^10) chars as input seems more than enough
4329    test $ac_count -gt 10 && break
4330  done
4331  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332esac
4333
4334      $ac_path_GREP_found && break 3
4335    done
4336  done
4337  done
4338IFS=$as_save_IFS
4339  if test -z "$ac_cv_path_GREP"; then
4340    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341  fi
4342else
4343  ac_cv_path_GREP=$GREP
4344fi
4345
4346fi
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4348$as_echo "$ac_cv_path_GREP" >&6; }
4349 GREP="$ac_cv_path_GREP"
4350
4351
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4353$as_echo_n "checking for egrep... " >&6; }
4354if ${ac_cv_path_EGREP+:} false; then :
4355  $as_echo_n "(cached) " >&6
4356else
4357  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4358   then ac_cv_path_EGREP="$GREP -E"
4359   else
4360     if test -z "$EGREP"; then
4361  ac_path_EGREP_found=false
4362  # Loop through the user's path and test for each of PROGNAME-LIST
4363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368    for ac_prog in egrep; do
4369    for ac_exec_ext in '' $ac_executable_extensions; do
4370      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4371      as_fn_executable_p "$ac_path_EGREP" || continue
4372# Check for GNU ac_path_EGREP and select it if it is found.
4373  # Check for GNU $ac_path_EGREP
4374case `"$ac_path_EGREP" --version 2>&1` in
4375*GNU*)
4376  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4377*)
4378  ac_count=0
4379  $as_echo_n 0123456789 >"conftest.in"
4380  while :
4381  do
4382    cat "conftest.in" "conftest.in" >"conftest.tmp"
4383    mv "conftest.tmp" "conftest.in"
4384    cp "conftest.in" "conftest.nl"
4385    $as_echo 'EGREP' >> "conftest.nl"
4386    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388    as_fn_arith $ac_count + 1 && ac_count=$as_val
4389    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4390      # Best one so far, save it but keep looking for a better one
4391      ac_cv_path_EGREP="$ac_path_EGREP"
4392      ac_path_EGREP_max=$ac_count
4393    fi
4394    # 10*(2^10) chars as input seems more than enough
4395    test $ac_count -gt 10 && break
4396  done
4397  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398esac
4399
4400      $ac_path_EGREP_found && break 3
4401    done
4402  done
4403  done
4404IFS=$as_save_IFS
4405  if test -z "$ac_cv_path_EGREP"; then
4406    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4407  fi
4408else
4409  ac_cv_path_EGREP=$EGREP
4410fi
4411
4412   fi
4413fi
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4415$as_echo "$ac_cv_path_EGREP" >&6; }
4416 EGREP="$ac_cv_path_EGREP"
4417
4418
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4420$as_echo_n "checking for fgrep... " >&6; }
4421if ${ac_cv_path_FGREP+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4425   then ac_cv_path_FGREP="$GREP -F"
4426   else
4427     if test -z "$FGREP"; then
4428  ac_path_FGREP_found=false
4429  # Loop through the user's path and test for each of PROGNAME-LIST
4430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4432do
4433  IFS=$as_save_IFS
4434  test -z "$as_dir" && as_dir=.
4435    for ac_prog in fgrep; do
4436    for ac_exec_ext in '' $ac_executable_extensions; do
4437      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4438      as_fn_executable_p "$ac_path_FGREP" || continue
4439# Check for GNU ac_path_FGREP and select it if it is found.
4440  # Check for GNU $ac_path_FGREP
4441case `"$ac_path_FGREP" --version 2>&1` in
4442*GNU*)
4443  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4444*)
4445  ac_count=0
4446  $as_echo_n 0123456789 >"conftest.in"
4447  while :
4448  do
4449    cat "conftest.in" "conftest.in" >"conftest.tmp"
4450    mv "conftest.tmp" "conftest.in"
4451    cp "conftest.in" "conftest.nl"
4452    $as_echo 'FGREP' >> "conftest.nl"
4453    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455    as_fn_arith $ac_count + 1 && ac_count=$as_val
4456    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4457      # Best one so far, save it but keep looking for a better one
4458      ac_cv_path_FGREP="$ac_path_FGREP"
4459      ac_path_FGREP_max=$ac_count
4460    fi
4461    # 10*(2^10) chars as input seems more than enough
4462    test $ac_count -gt 10 && break
4463  done
4464  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465esac
4466
4467      $ac_path_FGREP_found && break 3
4468    done
4469  done
4470  done
4471IFS=$as_save_IFS
4472  if test -z "$ac_cv_path_FGREP"; then
4473    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4474  fi
4475else
4476  ac_cv_path_FGREP=$FGREP
4477fi
4478
4479   fi
4480fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4482$as_echo "$ac_cv_path_FGREP" >&6; }
4483 FGREP="$ac_cv_path_FGREP"
4484
4485
4486test -z "$GREP" && GREP=grep
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506# Check whether --with-gnu-ld was given.
4507if test "${with_gnu_ld+set}" = set; then :
4508  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4509else
4510  with_gnu_ld=no
4511fi
4512
4513ac_prog=ld
4514if test yes = "$GCC"; then
4515  # Check if gcc -print-prog-name=ld gives a path.
4516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4517$as_echo_n "checking for ld used by $CC... " >&6; }
4518  case $host in
4519  *-*-mingw*)
4520    # gcc leaves a trailing carriage return, which upsets mingw
4521    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4522  *)
4523    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4524  esac
4525  case $ac_prog in
4526    # Accept absolute paths.
4527    [\\/]* | ?:[\\/]*)
4528      re_direlt='/[^/][^/]*/\.\./'
4529      # Canonicalize the pathname of ld
4530      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4531      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4532	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4533      done
4534      test -z "$LD" && LD=$ac_prog
4535      ;;
4536  "")
4537    # If it fails, then pretend we aren't using GCC.
4538    ac_prog=ld
4539    ;;
4540  *)
4541    # If it is relative, then search for the first ld in PATH.
4542    with_gnu_ld=unknown
4543    ;;
4544  esac
4545elif test yes = "$with_gnu_ld"; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4547$as_echo_n "checking for GNU ld... " >&6; }
4548else
4549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4550$as_echo_n "checking for non-GNU ld... " >&6; }
4551fi
4552if ${lt_cv_path_LD+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555  if test -z "$LD"; then
4556  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4557  for ac_dir in $PATH; do
4558    IFS=$lt_save_ifs
4559    test -z "$ac_dir" && ac_dir=.
4560    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4561      lt_cv_path_LD=$ac_dir/$ac_prog
4562      # Check to see if the program is GNU ld.  I'd rather use --version,
4563      # but apparently some variants of GNU ld only accept -v.
4564      # Break only if it was the GNU/non-GNU ld that we prefer.
4565      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4566      *GNU* | *'with BFD'*)
4567	test no != "$with_gnu_ld" && break
4568	;;
4569      *)
4570	test yes != "$with_gnu_ld" && break
4571	;;
4572      esac
4573    fi
4574  done
4575  IFS=$lt_save_ifs
4576else
4577  lt_cv_path_LD=$LD # Let the user override the test with a path.
4578fi
4579fi
4580
4581LD=$lt_cv_path_LD
4582if test -n "$LD"; then
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4584$as_echo "$LD" >&6; }
4585else
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
4588fi
4589test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4591$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4592if ${lt_cv_prog_gnu_ld+:} false; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4596case `$LD -v 2>&1 </dev/null` in
4597*GNU* | *'with BFD'*)
4598  lt_cv_prog_gnu_ld=yes
4599  ;;
4600*)
4601  lt_cv_prog_gnu_ld=no
4602  ;;
4603esac
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4606$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4607with_gnu_ld=$lt_cv_prog_gnu_ld
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4618$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4619if ${lt_cv_path_NM+:} false; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  if test -n "$NM"; then
4623  # Let the user override the test.
4624  lt_cv_path_NM=$NM
4625else
4626  lt_nm_to_check=${ac_tool_prefix}nm
4627  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4628    lt_nm_to_check="$lt_nm_to_check nm"
4629  fi
4630  for lt_tmp_nm in $lt_nm_to_check; do
4631    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4632    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4633      IFS=$lt_save_ifs
4634      test -z "$ac_dir" && ac_dir=.
4635      tmp_nm=$ac_dir/$lt_tmp_nm
4636      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4637	# Check to see if the nm accepts a BSD-compat flag.
4638	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4639	#   nm: unknown option "B" ignored
4640	# Tru64's nm complains that /dev/null is an invalid object file
4641	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4642	case $build_os in
4643	mingw*) lt_bad_file=conftest.nm/nofile ;;
4644	*) lt_bad_file=/dev/null ;;
4645	esac
4646	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4647	*$lt_bad_file* | *'Invalid file or object type'*)
4648	  lt_cv_path_NM="$tmp_nm -B"
4649	  break 2
4650	  ;;
4651	*)
4652	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4653	  */dev/null*)
4654	    lt_cv_path_NM="$tmp_nm -p"
4655	    break 2
4656	    ;;
4657	  *)
4658	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4659	    continue # so that we can try to find one that supports BSD flags
4660	    ;;
4661	  esac
4662	  ;;
4663	esac
4664      fi
4665    done
4666    IFS=$lt_save_ifs
4667  done
4668  : ${lt_cv_path_NM=no}
4669fi
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4672$as_echo "$lt_cv_path_NM" >&6; }
4673if test no != "$lt_cv_path_NM"; then
4674  NM=$lt_cv_path_NM
4675else
4676  # Didn't find any BSD compatible name lister, look for dumpbin.
4677  if test -n "$DUMPBIN"; then :
4678    # Let the user override the test.
4679  else
4680    if test -n "$ac_tool_prefix"; then
4681  for ac_prog in dumpbin "link -dump"
4682  do
4683    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686$as_echo_n "checking for $ac_word... " >&6; }
4687if ${ac_cv_prog_DUMPBIN+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  if test -n "$DUMPBIN"; then
4691  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698    for ac_exec_ext in '' $ac_executable_extensions; do
4699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702    break 2
4703  fi
4704done
4705  done
4706IFS=$as_save_IFS
4707
4708fi
4709fi
4710DUMPBIN=$ac_cv_prog_DUMPBIN
4711if test -n "$DUMPBIN"; then
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4713$as_echo "$DUMPBIN" >&6; }
4714else
4715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716$as_echo "no" >&6; }
4717fi
4718
4719
4720    test -n "$DUMPBIN" && break
4721  done
4722fi
4723if test -z "$DUMPBIN"; then
4724  ac_ct_DUMPBIN=$DUMPBIN
4725  for ac_prog in dumpbin "link -dump"
4726do
4727  # Extract the first word of "$ac_prog", so it can be a program name with args.
4728set dummy $ac_prog; ac_word=$2
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730$as_echo_n "checking for $ac_word... " >&6; }
4731if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  if test -n "$ac_ct_DUMPBIN"; then
4735  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742    for ac_exec_ext in '' $ac_executable_extensions; do
4743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746    break 2
4747  fi
4748done
4749  done
4750IFS=$as_save_IFS
4751
4752fi
4753fi
4754ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4755if test -n "$ac_ct_DUMPBIN"; then
4756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4757$as_echo "$ac_ct_DUMPBIN" >&6; }
4758else
4759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760$as_echo "no" >&6; }
4761fi
4762
4763
4764  test -n "$ac_ct_DUMPBIN" && break
4765done
4766
4767  if test "x$ac_ct_DUMPBIN" = x; then
4768    DUMPBIN=":"
4769  else
4770    case $cross_compiling:$ac_tool_warned in
4771yes:)
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774ac_tool_warned=yes ;;
4775esac
4776    DUMPBIN=$ac_ct_DUMPBIN
4777  fi
4778fi
4779
4780    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4781    *COFF*)
4782      DUMPBIN="$DUMPBIN -symbols -headers"
4783      ;;
4784    *)
4785      DUMPBIN=:
4786      ;;
4787    esac
4788  fi
4789
4790  if test : != "$DUMPBIN"; then
4791    NM=$DUMPBIN
4792  fi
4793fi
4794test -z "$NM" && NM=nm
4795
4796
4797
4798
4799
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4802$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4803if ${lt_cv_nm_interface+:} false; then :
4804  $as_echo_n "(cached) " >&6
4805else
4806  lt_cv_nm_interface="BSD nm"
4807  echo "int some_variable = 0;" > conftest.$ac_ext
4808  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4809  (eval "$ac_compile" 2>conftest.err)
4810  cat conftest.err >&5
4811  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4812  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4813  cat conftest.err >&5
4814  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4815  cat conftest.out >&5
4816  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4817    lt_cv_nm_interface="MS dumpbin"
4818  fi
4819  rm -f conftest*
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4822$as_echo "$lt_cv_nm_interface" >&6; }
4823
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4825$as_echo_n "checking whether ln -s works... " >&6; }
4826LN_S=$as_ln_s
4827if test "$LN_S" = "ln -s"; then
4828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829$as_echo "yes" >&6; }
4830else
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4832$as_echo "no, using $LN_S" >&6; }
4833fi
4834
4835# find the maximum length of command line arguments
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4837$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4838if ${lt_cv_sys_max_cmd_len+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841    i=0
4842  teststring=ABCD
4843
4844  case $build_os in
4845  msdosdjgpp*)
4846    # On DJGPP, this test can blow up pretty badly due to problems in libc
4847    # (any single argument exceeding 2000 bytes causes a buffer overrun
4848    # during glob expansion).  Even if it were fixed, the result of this
4849    # check would be larger than it should be.
4850    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4851    ;;
4852
4853  gnu*)
4854    # Under GNU Hurd, this test is not required because there is
4855    # no limit to the length of command line arguments.
4856    # Libtool will interpret -1 as no limit whatsoever
4857    lt_cv_sys_max_cmd_len=-1;
4858    ;;
4859
4860  cygwin* | mingw* | cegcc*)
4861    # On Win9x/ME, this test blows up -- it succeeds, but takes
4862    # about 5 minutes as the teststring grows exponentially.
4863    # Worse, since 9x/ME are not pre-emptively multitasking,
4864    # you end up with a "frozen" computer, even though with patience
4865    # the test eventually succeeds (with a max line length of 256k).
4866    # Instead, let's just punt: use the minimum linelength reported by
4867    # all of the supported platforms: 8192 (on NT/2K/XP).
4868    lt_cv_sys_max_cmd_len=8192;
4869    ;;
4870
4871  mint*)
4872    # On MiNT this can take a long time and run out of memory.
4873    lt_cv_sys_max_cmd_len=8192;
4874    ;;
4875
4876  amigaos*)
4877    # On AmigaOS with pdksh, this test takes hours, literally.
4878    # So we just punt and use a minimum line length of 8192.
4879    lt_cv_sys_max_cmd_len=8192;
4880    ;;
4881
4882  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4883    # This has been around since 386BSD, at least.  Likely further.
4884    if test -x /sbin/sysctl; then
4885      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886    elif test -x /usr/sbin/sysctl; then
4887      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888    else
4889      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4890    fi
4891    # And add a safety zone
4892    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894    ;;
4895
4896  interix*)
4897    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898    lt_cv_sys_max_cmd_len=196608
4899    ;;
4900
4901  os2*)
4902    # The test takes a long time on OS/2.
4903    lt_cv_sys_max_cmd_len=8192
4904    ;;
4905
4906  osf*)
4907    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4908    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4909    # nice to cause kernel panics so lets avoid the loop below.
4910    # First set a reasonable default.
4911    lt_cv_sys_max_cmd_len=16384
4912    #
4913    if test -x /sbin/sysconfig; then
4914      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4915        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4916      esac
4917    fi
4918    ;;
4919  sco3.2v5*)
4920    lt_cv_sys_max_cmd_len=102400
4921    ;;
4922  sysv5* | sco5v6* | sysv4.2uw2*)
4923    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4924    if test -n "$kargmax"; then
4925      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4926    else
4927      lt_cv_sys_max_cmd_len=32768
4928    fi
4929    ;;
4930  *)
4931    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4932    if test -n "$lt_cv_sys_max_cmd_len" && \
4933       test undefined != "$lt_cv_sys_max_cmd_len"; then
4934      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4935      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4936    else
4937      # Make teststring a little bigger before we do anything with it.
4938      # a 1K string should be a reasonable start.
4939      for i in 1 2 3 4 5 6 7 8; do
4940        teststring=$teststring$teststring
4941      done
4942      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4943      # If test is not a shell built-in, we'll probably end up computing a
4944      # maximum length that is only half of the actual maximum length, but
4945      # we can't tell.
4946      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4947	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4948	      test 17 != "$i" # 1/2 MB should be enough
4949      do
4950        i=`expr $i + 1`
4951        teststring=$teststring$teststring
4952      done
4953      # Only check the string length outside the loop.
4954      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4955      teststring=
4956      # Add a significant safety factor because C++ compilers can tack on
4957      # massive amounts of additional arguments before passing them to the
4958      # linker.  It appears as though 1/2 is a usable value.
4959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4960    fi
4961    ;;
4962  esac
4963
4964fi
4965
4966if test -n "$lt_cv_sys_max_cmd_len"; then
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4968$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4969else
4970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4971$as_echo "none" >&6; }
4972fi
4973max_cmd_len=$lt_cv_sys_max_cmd_len
4974
4975
4976
4977
4978
4979
4980: ${CP="cp -f"}
4981: ${MV="mv -f"}
4982: ${RM="rm -f"}
4983
4984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4985  lt_unset=unset
4986else
4987  lt_unset=false
4988fi
4989
4990
4991
4992
4993
4994# test EBCDIC or ASCII
4995case `echo X|tr X '\101'` in
4996 A) # ASCII based system
4997    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4998  lt_SP2NL='tr \040 \012'
4999  lt_NL2SP='tr \015\012 \040\040'
5000  ;;
5001 *) # EBCDIC based system
5002  lt_SP2NL='tr \100 \n'
5003  lt_NL2SP='tr \r\n \100\100'
5004  ;;
5005esac
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5016$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5017if ${lt_cv_to_host_file_cmd+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  case $host in
5021  *-*-mingw* )
5022    case $build in
5023      *-*-mingw* ) # actually msys
5024        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5025        ;;
5026      *-*-cygwin* )
5027        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5028        ;;
5029      * ) # otherwise, assume *nix
5030        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5031        ;;
5032    esac
5033    ;;
5034  *-*-cygwin* )
5035    case $build in
5036      *-*-mingw* ) # actually msys
5037        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5038        ;;
5039      *-*-cygwin* )
5040        lt_cv_to_host_file_cmd=func_convert_file_noop
5041        ;;
5042      * ) # otherwise, assume *nix
5043        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5044        ;;
5045    esac
5046    ;;
5047  * ) # unhandled hosts (and "normal" native builds)
5048    lt_cv_to_host_file_cmd=func_convert_file_noop
5049    ;;
5050esac
5051
5052fi
5053
5054to_host_file_cmd=$lt_cv_to_host_file_cmd
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5056$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5057
5058
5059
5060
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5063$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5064if ${lt_cv_to_tool_file_cmd+:} false; then :
5065  $as_echo_n "(cached) " >&6
5066else
5067  #assume ordinary cross tools, or native build.
5068lt_cv_to_tool_file_cmd=func_convert_file_noop
5069case $host in
5070  *-*-mingw* )
5071    case $build in
5072      *-*-mingw* ) # actually msys
5073        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5074        ;;
5075    esac
5076    ;;
5077esac
5078
5079fi
5080
5081to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5083$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5084
5085
5086
5087
5088
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5090$as_echo_n "checking for $LD option to reload object files... " >&6; }
5091if ${lt_cv_ld_reload_flag+:} false; then :
5092  $as_echo_n "(cached) " >&6
5093else
5094  lt_cv_ld_reload_flag='-r'
5095fi
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5097$as_echo "$lt_cv_ld_reload_flag" >&6; }
5098reload_flag=$lt_cv_ld_reload_flag
5099case $reload_flag in
5100"" | " "*) ;;
5101*) reload_flag=" $reload_flag" ;;
5102esac
5103reload_cmds='$LD$reload_flag -o $output$reload_objs'
5104case $host_os in
5105  cygwin* | mingw* | pw32* | cegcc*)
5106    if test yes != "$GCC"; then
5107      reload_cmds=false
5108    fi
5109    ;;
5110  darwin*)
5111    if test yes = "$GCC"; then
5112      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5113    else
5114      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5115    fi
5116    ;;
5117esac
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127if test -n "$ac_tool_prefix"; then
5128  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5129set dummy ${ac_tool_prefix}objdump; ac_word=$2
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
5132if ${ac_cv_prog_OBJDUMP+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  if test -n "$OBJDUMP"; then
5136  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143    for ac_exec_ext in '' $ac_executable_extensions; do
5144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150  done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155OBJDUMP=$ac_cv_prog_OBJDUMP
5156if test -n "$OBJDUMP"; then
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5158$as_echo "$OBJDUMP" >&6; }
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165fi
5166if test -z "$ac_cv_prog_OBJDUMP"; then
5167  ac_ct_OBJDUMP=$OBJDUMP
5168  # Extract the first word of "objdump", so it can be a program name with args.
5169set dummy objdump; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$ac_ct_OBJDUMP"; then
5176  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5196if test -n "$ac_ct_OBJDUMP"; then
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5198$as_echo "$ac_ct_OBJDUMP" >&6; }
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204  if test "x$ac_ct_OBJDUMP" = x; then
5205    OBJDUMP="false"
5206  else
5207    case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211ac_tool_warned=yes ;;
5212esac
5213    OBJDUMP=$ac_ct_OBJDUMP
5214  fi
5215else
5216  OBJDUMP="$ac_cv_prog_OBJDUMP"
5217fi
5218
5219test -z "$OBJDUMP" && OBJDUMP=objdump
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5230$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5231if ${lt_cv_deplibs_check_method+:} false; then :
5232  $as_echo_n "(cached) " >&6
5233else
5234  lt_cv_file_magic_cmd='$MAGIC_CMD'
5235lt_cv_file_magic_test_file=
5236lt_cv_deplibs_check_method='unknown'
5237# Need to set the preceding variable on all platforms that support
5238# interlibrary dependencies.
5239# 'none' -- dependencies not supported.
5240# 'unknown' -- same as none, but documents that we really don't know.
5241# 'pass_all' -- all dependencies passed with no checks.
5242# 'test_compile' -- check by making test program.
5243# 'file_magic [[regex]]' -- check by looking for files in library path
5244# that responds to the $file_magic_cmd with a given extended regex.
5245# If you have 'file' or equivalent on your system and you're not sure
5246# whether 'pass_all' will *always* work, you probably want this one.
5247
5248case $host_os in
5249aix[4-9]*)
5250  lt_cv_deplibs_check_method=pass_all
5251  ;;
5252
5253beos*)
5254  lt_cv_deplibs_check_method=pass_all
5255  ;;
5256
5257bsdi[45]*)
5258  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5259  lt_cv_file_magic_cmd='/usr/bin/file -L'
5260  lt_cv_file_magic_test_file=/shlib/libc.so
5261  ;;
5262
5263cygwin*)
5264  # func_win32_libid is a shell function defined in ltmain.sh
5265  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5266  lt_cv_file_magic_cmd='func_win32_libid'
5267  ;;
5268
5269mingw* | pw32*)
5270  # Base MSYS/MinGW do not provide the 'file' command needed by
5271  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5272  # unless we find 'file', for example because we are cross-compiling.
5273  if ( file / ) >/dev/null 2>&1; then
5274    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5275    lt_cv_file_magic_cmd='func_win32_libid'
5276  else
5277    # Keep this pattern in sync with the one in func_win32_libid.
5278    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5279    lt_cv_file_magic_cmd='$OBJDUMP -f'
5280  fi
5281  ;;
5282
5283cegcc*)
5284  # use the weaker test based on 'objdump'. See mingw*.
5285  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5286  lt_cv_file_magic_cmd='$OBJDUMP -f'
5287  ;;
5288
5289darwin* | rhapsody*)
5290  lt_cv_deplibs_check_method=pass_all
5291  ;;
5292
5293freebsd* | dragonfly*)
5294  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5295    case $host_cpu in
5296    i*86 )
5297      # Not sure whether the presence of OpenBSD here was a mistake.
5298      # Let's accept both of them until this is cleared up.
5299      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5300      lt_cv_file_magic_cmd=/usr/bin/file
5301      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5302      ;;
5303    esac
5304  else
5305    lt_cv_deplibs_check_method=pass_all
5306  fi
5307  ;;
5308
5309haiku*)
5310  lt_cv_deplibs_check_method=pass_all
5311  ;;
5312
5313hpux10.20* | hpux11*)
5314  lt_cv_file_magic_cmd=/usr/bin/file
5315  case $host_cpu in
5316  ia64*)
5317    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5318    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5319    ;;
5320  hppa*64*)
5321    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]'
5322    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5323    ;;
5324  *)
5325    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5326    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5327    ;;
5328  esac
5329  ;;
5330
5331interix[3-9]*)
5332  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5333  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5334  ;;
5335
5336irix5* | irix6* | nonstopux*)
5337  case $LD in
5338  *-32|*"-32 ") libmagic=32-bit;;
5339  *-n32|*"-n32 ") libmagic=N32;;
5340  *-64|*"-64 ") libmagic=64-bit;;
5341  *) libmagic=never-match;;
5342  esac
5343  lt_cv_deplibs_check_method=pass_all
5344  ;;
5345
5346# This must be glibc/ELF.
5347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5348  lt_cv_deplibs_check_method=pass_all
5349  ;;
5350
5351netbsd*)
5352  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5353    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5354  else
5355    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5356  fi
5357  ;;
5358
5359newos6*)
5360  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5361  lt_cv_file_magic_cmd=/usr/bin/file
5362  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5363  ;;
5364
5365*nto* | *qnx*)
5366  lt_cv_deplibs_check_method=pass_all
5367  ;;
5368
5369openbsd* | bitrig*)
5370  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5372  else
5373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374  fi
5375  ;;
5376
5377osf3* | osf4* | osf5*)
5378  lt_cv_deplibs_check_method=pass_all
5379  ;;
5380
5381rdos*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384
5385solaris*)
5386  lt_cv_deplibs_check_method=pass_all
5387  ;;
5388
5389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5390  lt_cv_deplibs_check_method=pass_all
5391  ;;
5392
5393sysv4 | sysv4.3*)
5394  case $host_vendor in
5395  motorola)
5396    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]'
5397    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5398    ;;
5399  ncr)
5400    lt_cv_deplibs_check_method=pass_all
5401    ;;
5402  sequent)
5403    lt_cv_file_magic_cmd='/bin/file'
5404    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5405    ;;
5406  sni)
5407    lt_cv_file_magic_cmd='/bin/file'
5408    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5409    lt_cv_file_magic_test_file=/lib/libc.so
5410    ;;
5411  siemens)
5412    lt_cv_deplibs_check_method=pass_all
5413    ;;
5414  pc)
5415    lt_cv_deplibs_check_method=pass_all
5416    ;;
5417  esac
5418  ;;
5419
5420tpf*)
5421  lt_cv_deplibs_check_method=pass_all
5422  ;;
5423os2*)
5424  lt_cv_deplibs_check_method=pass_all
5425  ;;
5426esac
5427
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5430$as_echo "$lt_cv_deplibs_check_method" >&6; }
5431
5432file_magic_glob=
5433want_nocaseglob=no
5434if test "$build" = "$host"; then
5435  case $host_os in
5436  mingw* | pw32*)
5437    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5438      want_nocaseglob=yes
5439    else
5440      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5441    fi
5442    ;;
5443  esac
5444fi
5445
5446file_magic_cmd=$lt_cv_file_magic_cmd
5447deplibs_check_method=$lt_cv_deplibs_check_method
5448test -z "$deplibs_check_method" && deplibs_check_method=unknown
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471if test -n "$ac_tool_prefix"; then
5472  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5473set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475$as_echo_n "checking for $ac_word... " >&6; }
5476if ${ac_cv_prog_DLLTOOL+:} false; then :
5477  $as_echo_n "(cached) " >&6
5478else
5479  if test -n "$DLLTOOL"; then
5480  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  test -z "$as_dir" && as_dir=.
5487    for ac_exec_ext in '' $ac_executable_extensions; do
5488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491    break 2
5492  fi
5493done
5494  done
5495IFS=$as_save_IFS
5496
5497fi
5498fi
5499DLLTOOL=$ac_cv_prog_DLLTOOL
5500if test -n "$DLLTOOL"; then
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5502$as_echo "$DLLTOOL" >&6; }
5503else
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505$as_echo "no" >&6; }
5506fi
5507
5508
5509fi
5510if test -z "$ac_cv_prog_DLLTOOL"; then
5511  ac_ct_DLLTOOL=$DLLTOOL
5512  # Extract the first word of "dlltool", so it can be a program name with args.
5513set dummy dlltool; ac_word=$2
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515$as_echo_n "checking for $ac_word... " >&6; }
5516if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519  if test -n "$ac_ct_DLLTOOL"; then
5520  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525  IFS=$as_save_IFS
5526  test -z "$as_dir" && as_dir=.
5527    for ac_exec_ext in '' $ac_executable_extensions; do
5528  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531    break 2
5532  fi
5533done
5534  done
5535IFS=$as_save_IFS
5536
5537fi
5538fi
5539ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5540if test -n "$ac_ct_DLLTOOL"; then
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5542$as_echo "$ac_ct_DLLTOOL" >&6; }
5543else
5544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546fi
5547
5548  if test "x$ac_ct_DLLTOOL" = x; then
5549    DLLTOOL="false"
5550  else
5551    case $cross_compiling:$ac_tool_warned in
5552yes:)
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557    DLLTOOL=$ac_ct_DLLTOOL
5558  fi
5559else
5560  DLLTOOL="$ac_cv_prog_DLLTOOL"
5561fi
5562
5563test -z "$DLLTOOL" && DLLTOOL=dlltool
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5575$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5576if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  lt_cv_sharedlib_from_linklib_cmd='unknown'
5580
5581case $host_os in
5582cygwin* | mingw* | pw32* | cegcc*)
5583  # two different shell functions defined in ltmain.sh;
5584  # decide which one to use based on capabilities of $DLLTOOL
5585  case `$DLLTOOL --help 2>&1` in
5586  *--identify-strict*)
5587    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5588    ;;
5589  *)
5590    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5591    ;;
5592  esac
5593  ;;
5594*)
5595  # fallback: assume linklib IS sharedlib
5596  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5597  ;;
5598esac
5599
5600fi
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5602$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5603sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5604test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5605
5606
5607
5608
5609
5610
5611
5612
5613if test -n "$ac_tool_prefix"; then
5614  for ac_prog in ar
5615  do
5616    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_AR+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  if test -n "$AR"; then
5624  ac_cv_prog_AR="$AR" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629  IFS=$as_save_IFS
5630  test -z "$as_dir" && as_dir=.
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635    break 2
5636  fi
5637done
5638  done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643AR=$ac_cv_prog_AR
5644if test -n "$AR"; then
5645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646$as_echo "$AR" >&6; }
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652
5653    test -n "$AR" && break
5654  done
5655fi
5656if test -z "$AR"; then
5657  ac_ct_AR=$AR
5658  for ac_prog in ar
5659do
5660  # Extract the first word of "$ac_prog", so it can be a program name with args.
5661set dummy $ac_prog; ac_word=$2
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663$as_echo_n "checking for $ac_word... " >&6; }
5664if ${ac_cv_prog_ac_ct_AR+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  if test -n "$ac_ct_AR"; then
5668  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675    for ac_exec_ext in '' $ac_executable_extensions; do
5676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677    ac_cv_prog_ac_ct_AR="$ac_prog"
5678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682  done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688if test -n "$ac_ct_AR"; then
5689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5690$as_echo "$ac_ct_AR" >&6; }
5691else
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695
5696
5697  test -n "$ac_ct_AR" && break
5698done
5699
5700  if test "x$ac_ct_AR" = x; then
5701    AR="false"
5702  else
5703    case $cross_compiling:$ac_tool_warned in
5704yes:)
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707ac_tool_warned=yes ;;
5708esac
5709    AR=$ac_ct_AR
5710  fi
5711fi
5712
5713: ${AR=ar}
5714: ${AR_FLAGS=cru}
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5727$as_echo_n "checking for archiver @FILE support... " >&6; }
5728if ${lt_cv_ar_at_file+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  lt_cv_ar_at_file=no
5732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733/* end confdefs.h.  */
5734
5735int
5736main ()
5737{
5738
5739  ;
5740  return 0;
5741}
5742_ACEOF
5743if ac_fn_c_try_compile "$LINENO"; then :
5744  echo conftest.$ac_objext > conftest.lst
5745      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5746      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5747  (eval $lt_ar_try) 2>&5
5748  ac_status=$?
5749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750  test $ac_status = 0; }
5751      if test 0 -eq "$ac_status"; then
5752	# Ensure the archiver fails upon bogus file names.
5753	rm -f conftest.$ac_objext libconftest.a
5754	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5755  (eval $lt_ar_try) 2>&5
5756  ac_status=$?
5757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758  test $ac_status = 0; }
5759	if test 0 -ne "$ac_status"; then
5760          lt_cv_ar_at_file=@
5761        fi
5762      fi
5763      rm -f conftest.* libconftest.a
5764
5765fi
5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5770$as_echo "$lt_cv_ar_at_file" >&6; }
5771
5772if test no = "$lt_cv_ar_at_file"; then
5773  archiver_list_spec=
5774else
5775  archiver_list_spec=$lt_cv_ar_at_file
5776fi
5777
5778
5779
5780
5781
5782
5783
5784if test -n "$ac_tool_prefix"; then
5785  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5786set dummy ${ac_tool_prefix}strip; ac_word=$2
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788$as_echo_n "checking for $ac_word... " >&6; }
5789if ${ac_cv_prog_STRIP+:} false; then :
5790  $as_echo_n "(cached) " >&6
5791else
5792  if test -n "$STRIP"; then
5793  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5794else
5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796for as_dir in $PATH
5797do
5798  IFS=$as_save_IFS
5799  test -z "$as_dir" && as_dir=.
5800    for ac_exec_ext in '' $ac_executable_extensions; do
5801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804    break 2
5805  fi
5806done
5807  done
5808IFS=$as_save_IFS
5809
5810fi
5811fi
5812STRIP=$ac_cv_prog_STRIP
5813if test -n "$STRIP"; then
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5815$as_echo "$STRIP" >&6; }
5816else
5817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818$as_echo "no" >&6; }
5819fi
5820
5821
5822fi
5823if test -z "$ac_cv_prog_STRIP"; then
5824  ac_ct_STRIP=$STRIP
5825  # Extract the first word of "strip", so it can be a program name with args.
5826set dummy strip; ac_word=$2
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828$as_echo_n "checking for $ac_word... " >&6; }
5829if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  if test -n "$ac_ct_STRIP"; then
5833  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838  IFS=$as_save_IFS
5839  test -z "$as_dir" && as_dir=.
5840    for ac_exec_ext in '' $ac_executable_extensions; do
5841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842    ac_cv_prog_ac_ct_STRIP="strip"
5843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844    break 2
5845  fi
5846done
5847  done
5848IFS=$as_save_IFS
5849
5850fi
5851fi
5852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5853if test -n "$ac_ct_STRIP"; then
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5855$as_echo "$ac_ct_STRIP" >&6; }
5856else
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859fi
5860
5861  if test "x$ac_ct_STRIP" = x; then
5862    STRIP=":"
5863  else
5864    case $cross_compiling:$ac_tool_warned in
5865yes:)
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868ac_tool_warned=yes ;;
5869esac
5870    STRIP=$ac_ct_STRIP
5871  fi
5872else
5873  STRIP="$ac_cv_prog_STRIP"
5874fi
5875
5876test -z "$STRIP" && STRIP=:
5877
5878
5879
5880
5881
5882
5883if test -n "$ac_tool_prefix"; then
5884  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887$as_echo_n "checking for $ac_word... " >&6; }
5888if ${ac_cv_prog_RANLIB+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  if test -n "$RANLIB"; then
5892  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897  IFS=$as_save_IFS
5898  test -z "$as_dir" && as_dir=.
5899    for ac_exec_ext in '' $ac_executable_extensions; do
5900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903    break 2
5904  fi
5905done
5906  done
5907IFS=$as_save_IFS
5908
5909fi
5910fi
5911RANLIB=$ac_cv_prog_RANLIB
5912if test -n "$RANLIB"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5914$as_echo "$RANLIB" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920
5921fi
5922if test -z "$ac_cv_prog_RANLIB"; then
5923  ac_ct_RANLIB=$RANLIB
5924  # Extract the first word of "ranlib", so it can be a program name with args.
5925set dummy ranlib; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_RANLIB"; then
5932  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_RANLIB="ranlib"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5952if test -n "$ac_ct_RANLIB"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5954$as_echo "$ac_ct_RANLIB" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960  if test "x$ac_ct_RANLIB" = x; then
5961    RANLIB=":"
5962  else
5963    case $cross_compiling:$ac_tool_warned in
5964yes:)
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967ac_tool_warned=yes ;;
5968esac
5969    RANLIB=$ac_ct_RANLIB
5970  fi
5971else
5972  RANLIB="$ac_cv_prog_RANLIB"
5973fi
5974
5975test -z "$RANLIB" && RANLIB=:
5976
5977
5978
5979
5980
5981
5982# Determine commands to create old-style static archives.
5983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5984old_postinstall_cmds='chmod 644 $oldlib'
5985old_postuninstall_cmds=
5986
5987if test -n "$RANLIB"; then
5988  case $host_os in
5989  bitrig* | openbsd*)
5990    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5991    ;;
5992  *)
5993    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5994    ;;
5995  esac
5996  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5997fi
5998
5999case $host_os in
6000  darwin*)
6001    lock_old_archive_extraction=yes ;;
6002  *)
6003    lock_old_archive_extraction=no ;;
6004esac
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044# If no C compiler was specified, use CC.
6045LTCC=${LTCC-"$CC"}
6046
6047# If no C compiler flags were specified, use CFLAGS.
6048LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6049
6050# Allow CC to be a program name with arguments.
6051compiler=$CC
6052
6053
6054# Check for command to grab the raw symbol name followed by C symbol from nm.
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6056$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6057if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6058  $as_echo_n "(cached) " >&6
6059else
6060
6061# These are sane defaults that work on at least a few old systems.
6062# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6063
6064# Character class describing NM global symbol codes.
6065symcode='[BCDEGRST]'
6066
6067# Regexp to match symbols that can be accessed directly from C.
6068sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6069
6070# Define system-specific variables.
6071case $host_os in
6072aix*)
6073  symcode='[BCDT]'
6074  ;;
6075cygwin* | mingw* | pw32* | cegcc*)
6076  symcode='[ABCDGISTW]'
6077  ;;
6078hpux*)
6079  if test ia64 = "$host_cpu"; then
6080    symcode='[ABCDEGRST]'
6081  fi
6082  ;;
6083irix* | nonstopux*)
6084  symcode='[BCDEGRST]'
6085  ;;
6086osf*)
6087  symcode='[BCDEGQRST]'
6088  ;;
6089solaris*)
6090  symcode='[BDRT]'
6091  ;;
6092sco3.2v5*)
6093  symcode='[DT]'
6094  ;;
6095sysv4.2uw2*)
6096  symcode='[DT]'
6097  ;;
6098sysv5* | sco5v6* | unixware* | OpenUNIX*)
6099  symcode='[ABDT]'
6100  ;;
6101sysv4)
6102  symcode='[DFNSTU]'
6103  ;;
6104esac
6105
6106# If we're using GNU nm, then use its standard symbol codes.
6107case `$NM -V 2>&1` in
6108*GNU* | *'with BFD'*)
6109  symcode='[ABCDGIRSTW]' ;;
6110esac
6111
6112if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6113  # Gets list of data symbols to import.
6114  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6115  # Adjust the below global symbol transforms to fixup imported variables.
6116  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6117  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6118  lt_c_name_lib_hook="\
6119  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6120  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6121else
6122  # Disable hooks by default.
6123  lt_cv_sys_global_symbol_to_import=
6124  lt_cdecl_hook=
6125  lt_c_name_hook=
6126  lt_c_name_lib_hook=
6127fi
6128
6129# Transform an extracted symbol line into a proper C declaration.
6130# Some systems (esp. on ia64) link data and code symbols differently,
6131# so use this general approach.
6132lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6133$lt_cdecl_hook\
6134" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6135" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6136
6137# Transform an extracted symbol line into symbol name and symbol address
6138lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6139$lt_c_name_hook\
6140" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6141" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6142
6143# Transform an extracted symbol line into symbol name with lib prefix and
6144# symbol address.
6145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6146$lt_c_name_lib_hook\
6147" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6148" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6149" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6150
6151# Handle CRLF in mingw tool chain
6152opt_cr=
6153case $build_os in
6154mingw*)
6155  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6156  ;;
6157esac
6158
6159# Try without a prefix underscore, then with it.
6160for ac_symprfx in "" "_"; do
6161
6162  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6163  symxfrm="\\1 $ac_symprfx\\2 \\2"
6164
6165  # Write the raw and C identifiers.
6166  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6167    # Fake it for dumpbin and say T for any non-static function,
6168    # D for any global variable and I for any imported variable.
6169    # Also find C++ and __fastcall symbols from MSVC++,
6170    # which start with @ or ?.
6171    lt_cv_sys_global_symbol_pipe="$AWK '"\
6172"     {last_section=section; section=\$ 3};"\
6173"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6174"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6175"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6176"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6177"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6178"     \$ 0!~/External *\|/{next};"\
6179"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6180"     {if(hide[section]) next};"\
6181"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6182"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6183"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6184"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6185"     ' prfx=^$ac_symprfx"
6186  else
6187    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6188  fi
6189  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6190
6191  # Check to see that the pipe works correctly.
6192  pipe_works=no
6193
6194  rm -f conftest*
6195  cat > conftest.$ac_ext <<_LT_EOF
6196#ifdef __cplusplus
6197extern "C" {
6198#endif
6199char nm_test_var;
6200void nm_test_func(void);
6201void nm_test_func(void){}
6202#ifdef __cplusplus
6203}
6204#endif
6205int main(){nm_test_var='a';nm_test_func();return(0);}
6206_LT_EOF
6207
6208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209  (eval $ac_compile) 2>&5
6210  ac_status=$?
6211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212  test $ac_status = 0; }; then
6213    # Now try to grab the symbols.
6214    nlist=conftest.nm
6215    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6216  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6217  ac_status=$?
6218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219  test $ac_status = 0; } && test -s "$nlist"; then
6220      # Try sorting and uniquifying the output.
6221      if sort "$nlist" | uniq > "$nlist"T; then
6222	mv -f "$nlist"T "$nlist"
6223      else
6224	rm -f "$nlist"T
6225      fi
6226
6227      # Make sure that we snagged all the symbols we need.
6228      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6229	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6230	  cat <<_LT_EOF > conftest.$ac_ext
6231/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6232#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6233/* DATA imports from DLLs on WIN32 can't be const, because runtime
6234   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6235# define LT_DLSYM_CONST
6236#elif defined __osf__
6237/* This system does not cope well with relocations in const data.  */
6238# define LT_DLSYM_CONST
6239#else
6240# define LT_DLSYM_CONST const
6241#endif
6242
6243#ifdef __cplusplus
6244extern "C" {
6245#endif
6246
6247_LT_EOF
6248	  # Now generate the symbol file.
6249	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6250
6251	  cat <<_LT_EOF >> conftest.$ac_ext
6252
6253/* The mapping between symbol names and symbols.  */
6254LT_DLSYM_CONST struct {
6255  const char *name;
6256  void       *address;
6257}
6258lt__PROGRAM__LTX_preloaded_symbols[] =
6259{
6260  { "@PROGRAM@", (void *) 0 },
6261_LT_EOF
6262	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6263	  cat <<\_LT_EOF >> conftest.$ac_ext
6264  {0, (void *) 0}
6265};
6266
6267/* This works around a problem in FreeBSD linker */
6268#ifdef FREEBSD_WORKAROUND
6269static const void *lt_preloaded_setup() {
6270  return lt__PROGRAM__LTX_preloaded_symbols;
6271}
6272#endif
6273
6274#ifdef __cplusplus
6275}
6276#endif
6277_LT_EOF
6278	  # Now try linking the two files.
6279	  mv conftest.$ac_objext conftstm.$ac_objext
6280	  lt_globsym_save_LIBS=$LIBS
6281	  lt_globsym_save_CFLAGS=$CFLAGS
6282	  LIBS=conftstm.$ac_objext
6283	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6284	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6285  (eval $ac_link) 2>&5
6286  ac_status=$?
6287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6289	    pipe_works=yes
6290	  fi
6291	  LIBS=$lt_globsym_save_LIBS
6292	  CFLAGS=$lt_globsym_save_CFLAGS
6293	else
6294	  echo "cannot find nm_test_func in $nlist" >&5
6295	fi
6296      else
6297	echo "cannot find nm_test_var in $nlist" >&5
6298      fi
6299    else
6300      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6301    fi
6302  else
6303    echo "$progname: failed program was:" >&5
6304    cat conftest.$ac_ext >&5
6305  fi
6306  rm -rf conftest* conftst*
6307
6308  # Do not use the global_symbol_pipe unless it works.
6309  if test yes = "$pipe_works"; then
6310    break
6311  else
6312    lt_cv_sys_global_symbol_pipe=
6313  fi
6314done
6315
6316fi
6317
6318if test -z "$lt_cv_sys_global_symbol_pipe"; then
6319  lt_cv_sys_global_symbol_to_cdecl=
6320fi
6321if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6323$as_echo "failed" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6326$as_echo "ok" >&6; }
6327fi
6328
6329# Response file support.
6330if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6331  nm_file_list_spec='@'
6332elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6333  nm_file_list_spec='@'
6334fi
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6373$as_echo_n "checking for sysroot... " >&6; }
6374
6375# Check whether --with-sysroot was given.
6376if test "${with_sysroot+set}" = set; then :
6377  withval=$with_sysroot;
6378else
6379  with_sysroot=no
6380fi
6381
6382
6383lt_sysroot=
6384case $with_sysroot in #(
6385 yes)
6386   if test yes = "$GCC"; then
6387     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6388   fi
6389   ;; #(
6390 /*)
6391   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6392   ;; #(
6393 no|'')
6394   ;; #(
6395 *)
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6397$as_echo "$with_sysroot" >&6; }
6398   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6399   ;;
6400esac
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6403$as_echo "${lt_sysroot:-no}" >&6; }
6404
6405
6406
6407
6408
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6410$as_echo_n "checking for a working dd... " >&6; }
6411if ${ac_cv_path_lt_DD+:} false; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  printf 0123456789abcdef0123456789abcdef >conftest.i
6415cat conftest.i conftest.i >conftest2.i
6416: ${lt_DD:=$DD}
6417if test -z "$lt_DD"; then
6418  ac_path_lt_DD_found=false
6419  # Loop through the user's path and test for each of PROGNAME-LIST
6420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423  IFS=$as_save_IFS
6424  test -z "$as_dir" && as_dir=.
6425    for ac_prog in dd; do
6426    for ac_exec_ext in '' $ac_executable_extensions; do
6427      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6428      as_fn_executable_p "$ac_path_lt_DD" || continue
6429if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6430  cmp -s conftest.i conftest.out \
6431  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6432fi
6433      $ac_path_lt_DD_found && break 3
6434    done
6435  done
6436  done
6437IFS=$as_save_IFS
6438  if test -z "$ac_cv_path_lt_DD"; then
6439    :
6440  fi
6441else
6442  ac_cv_path_lt_DD=$lt_DD
6443fi
6444
6445rm -f conftest.i conftest2.i conftest.out
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6448$as_echo "$ac_cv_path_lt_DD" >&6; }
6449
6450
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6452$as_echo_n "checking how to truncate binary pipes... " >&6; }
6453if ${lt_cv_truncate_bin+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  printf 0123456789abcdef0123456789abcdef >conftest.i
6457cat conftest.i conftest.i >conftest2.i
6458lt_cv_truncate_bin=
6459if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6460  cmp -s conftest.i conftest.out \
6461  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6462fi
6463rm -f conftest.i conftest2.i conftest.out
6464test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6467$as_echo "$lt_cv_truncate_bin" >&6; }
6468
6469
6470
6471
6472
6473
6474
6475# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6476func_cc_basename ()
6477{
6478    for cc_temp in $*""; do
6479      case $cc_temp in
6480        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6481        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6482        \-*) ;;
6483        *) break;;
6484      esac
6485    done
6486    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6487}
6488
6489# Check whether --enable-libtool-lock was given.
6490if test "${enable_libtool_lock+set}" = set; then :
6491  enableval=$enable_libtool_lock;
6492fi
6493
6494test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6495
6496# Some flags need to be propagated to the compiler or linker for good
6497# libtool support.
6498case $host in
6499ia64-*-hpux*)
6500  # Find out what ABI is being produced by ac_compile, and set mode
6501  # options accordingly.
6502  echo 'int i;' > conftest.$ac_ext
6503  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6504  (eval $ac_compile) 2>&5
6505  ac_status=$?
6506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507  test $ac_status = 0; }; then
6508    case `/usr/bin/file conftest.$ac_objext` in
6509      *ELF-32*)
6510	HPUX_IA64_MODE=32
6511	;;
6512      *ELF-64*)
6513	HPUX_IA64_MODE=64
6514	;;
6515    esac
6516  fi
6517  rm -rf conftest*
6518  ;;
6519*-*-irix6*)
6520  # Find out what ABI is being produced by ac_compile, and set linker
6521  # options accordingly.
6522  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6523  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6524  (eval $ac_compile) 2>&5
6525  ac_status=$?
6526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527  test $ac_status = 0; }; then
6528    if test yes = "$lt_cv_prog_gnu_ld"; then
6529      case `/usr/bin/file conftest.$ac_objext` in
6530	*32-bit*)
6531	  LD="${LD-ld} -melf32bsmip"
6532	  ;;
6533	*N32*)
6534	  LD="${LD-ld} -melf32bmipn32"
6535	  ;;
6536	*64-bit*)
6537	  LD="${LD-ld} -melf64bmip"
6538	;;
6539      esac
6540    else
6541      case `/usr/bin/file conftest.$ac_objext` in
6542	*32-bit*)
6543	  LD="${LD-ld} -32"
6544	  ;;
6545	*N32*)
6546	  LD="${LD-ld} -n32"
6547	  ;;
6548	*64-bit*)
6549	  LD="${LD-ld} -64"
6550	  ;;
6551      esac
6552    fi
6553  fi
6554  rm -rf conftest*
6555  ;;
6556
6557mips64*-*linux*)
6558  # Find out what ABI is being produced by ac_compile, and set linker
6559  # options accordingly.
6560  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6561  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6562  (eval $ac_compile) 2>&5
6563  ac_status=$?
6564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565  test $ac_status = 0; }; then
6566    emul=elf
6567    case `/usr/bin/file conftest.$ac_objext` in
6568      *32-bit*)
6569	emul="${emul}32"
6570	;;
6571      *64-bit*)
6572	emul="${emul}64"
6573	;;
6574    esac
6575    case `/usr/bin/file conftest.$ac_objext` in
6576      *MSB*)
6577	emul="${emul}btsmip"
6578	;;
6579      *LSB*)
6580	emul="${emul}ltsmip"
6581	;;
6582    esac
6583    case `/usr/bin/file conftest.$ac_objext` in
6584      *N32*)
6585	emul="${emul}n32"
6586	;;
6587    esac
6588    LD="${LD-ld} -m $emul"
6589  fi
6590  rm -rf conftest*
6591  ;;
6592
6593x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6594s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6595  # Find out what ABI is being produced by ac_compile, and set linker
6596  # options accordingly.  Note that the listed cases only cover the
6597  # situations where additional linker options are needed (such as when
6598  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6599  # vice versa); the common cases where no linker options are needed do
6600  # not appear in the list.
6601  echo 'int i;' > conftest.$ac_ext
6602  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603  (eval $ac_compile) 2>&5
6604  ac_status=$?
6605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606  test $ac_status = 0; }; then
6607    case `/usr/bin/file conftest.o` in
6608      *32-bit*)
6609	case $host in
6610	  x86_64-*kfreebsd*-gnu)
6611	    LD="${LD-ld} -m elf_i386_fbsd"
6612	    ;;
6613	  x86_64-*linux*)
6614	    case `/usr/bin/file conftest.o` in
6615	      *x86-64*)
6616		LD="${LD-ld} -m elf32_x86_64"
6617		;;
6618	      *)
6619		LD="${LD-ld} -m elf_i386"
6620		;;
6621	    esac
6622	    ;;
6623	  powerpc64le-*linux*)
6624	    LD="${LD-ld} -m elf32lppclinux"
6625	    ;;
6626	  powerpc64-*linux*)
6627	    LD="${LD-ld} -m elf32ppclinux"
6628	    ;;
6629	  s390x-*linux*)
6630	    LD="${LD-ld} -m elf_s390"
6631	    ;;
6632	  sparc64-*linux*)
6633	    LD="${LD-ld} -m elf32_sparc"
6634	    ;;
6635	esac
6636	;;
6637      *64-bit*)
6638	case $host in
6639	  x86_64-*kfreebsd*-gnu)
6640	    LD="${LD-ld} -m elf_x86_64_fbsd"
6641	    ;;
6642	  x86_64-*linux*)
6643	    LD="${LD-ld} -m elf_x86_64"
6644	    ;;
6645	  powerpcle-*linux*)
6646	    LD="${LD-ld} -m elf64lppc"
6647	    ;;
6648	  powerpc-*linux*)
6649	    LD="${LD-ld} -m elf64ppc"
6650	    ;;
6651	  s390*-*linux*|s390*-*tpf*)
6652	    LD="${LD-ld} -m elf64_s390"
6653	    ;;
6654	  sparc*-*linux*)
6655	    LD="${LD-ld} -m elf64_sparc"
6656	    ;;
6657	esac
6658	;;
6659    esac
6660  fi
6661  rm -rf conftest*
6662  ;;
6663
6664*-*-sco3.2v5*)
6665  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6666  SAVE_CFLAGS=$CFLAGS
6667  CFLAGS="$CFLAGS -belf"
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6669$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6670if ${lt_cv_cc_needs_belf+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  ac_ext=c
6674ac_cpp='$CPP $CPPFLAGS'
6675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678
6679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681
6682int
6683main ()
6684{
6685
6686  ;
6687  return 0;
6688}
6689_ACEOF
6690if ac_fn_c_try_link "$LINENO"; then :
6691  lt_cv_cc_needs_belf=yes
6692else
6693  lt_cv_cc_needs_belf=no
6694fi
6695rm -f core conftest.err conftest.$ac_objext \
6696    conftest$ac_exeext conftest.$ac_ext
6697     ac_ext=c
6698ac_cpp='$CPP $CPPFLAGS'
6699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702
6703fi
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6705$as_echo "$lt_cv_cc_needs_belf" >&6; }
6706  if test yes != "$lt_cv_cc_needs_belf"; then
6707    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6708    CFLAGS=$SAVE_CFLAGS
6709  fi
6710  ;;
6711*-*solaris*)
6712  # Find out what ABI is being produced by ac_compile, and set linker
6713  # options accordingly.
6714  echo 'int i;' > conftest.$ac_ext
6715  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716  (eval $ac_compile) 2>&5
6717  ac_status=$?
6718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719  test $ac_status = 0; }; then
6720    case `/usr/bin/file conftest.o` in
6721    *64-bit*)
6722      case $lt_cv_prog_gnu_ld in
6723      yes*)
6724        case $host in
6725        i?86-*-solaris*|x86_64-*-solaris*)
6726          LD="${LD-ld} -m elf_x86_64"
6727          ;;
6728        sparc*-*-solaris*)
6729          LD="${LD-ld} -m elf64_sparc"
6730          ;;
6731        esac
6732        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6733        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6734          LD=${LD-ld}_sol2
6735        fi
6736        ;;
6737      *)
6738	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6739	  LD="${LD-ld} -64"
6740	fi
6741	;;
6742      esac
6743      ;;
6744    esac
6745  fi
6746  rm -rf conftest*
6747  ;;
6748esac
6749
6750need_locks=$enable_libtool_lock
6751
6752if test -n "$ac_tool_prefix"; then
6753  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6754set dummy ${ac_tool_prefix}mt; ac_word=$2
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756$as_echo_n "checking for $ac_word... " >&6; }
6757if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  if test -n "$MANIFEST_TOOL"; then
6761  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6762else
6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768    for ac_exec_ext in '' $ac_executable_extensions; do
6769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775  done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6781if test -n "$MANIFEST_TOOL"; then
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6783$as_echo "$MANIFEST_TOOL" >&6; }
6784else
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786$as_echo "no" >&6; }
6787fi
6788
6789
6790fi
6791if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6792  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6793  # Extract the first word of "mt", so it can be a program name with args.
6794set dummy mt; ac_word=$2
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796$as_echo_n "checking for $ac_word... " >&6; }
6797if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  if test -n "$ac_ct_MANIFEST_TOOL"; then
6801  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806  IFS=$as_save_IFS
6807  test -z "$as_dir" && as_dir=.
6808    for ac_exec_ext in '' $ac_executable_extensions; do
6809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812    break 2
6813  fi
6814done
6815  done
6816IFS=$as_save_IFS
6817
6818fi
6819fi
6820ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6821if test -n "$ac_ct_MANIFEST_TOOL"; then
6822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6823$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6824else
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826$as_echo "no" >&6; }
6827fi
6828
6829  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6830    MANIFEST_TOOL=":"
6831  else
6832    case $cross_compiling:$ac_tool_warned in
6833yes:)
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836ac_tool_warned=yes ;;
6837esac
6838    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6839  fi
6840else
6841  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6842fi
6843
6844test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6846$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6847if ${lt_cv_path_mainfest_tool+:} false; then :
6848  $as_echo_n "(cached) " >&6
6849else
6850  lt_cv_path_mainfest_tool=no
6851  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6852  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6853  cat conftest.err >&5
6854  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6855    lt_cv_path_mainfest_tool=yes
6856  fi
6857  rm -f conftest*
6858fi
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6860$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6861if test yes != "$lt_cv_path_mainfest_tool"; then
6862  MANIFEST_TOOL=:
6863fi
6864
6865
6866
6867
6868
6869
6870  case $host_os in
6871    rhapsody* | darwin*)
6872    if test -n "$ac_tool_prefix"; then
6873  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6874set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876$as_echo_n "checking for $ac_word... " >&6; }
6877if ${ac_cv_prog_DSYMUTIL+:} false; then :
6878  $as_echo_n "(cached) " >&6
6879else
6880  if test -n "$DSYMUTIL"; then
6881  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886  IFS=$as_save_IFS
6887  test -z "$as_dir" && as_dir=.
6888    for ac_exec_ext in '' $ac_executable_extensions; do
6889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892    break 2
6893  fi
6894done
6895  done
6896IFS=$as_save_IFS
6897
6898fi
6899fi
6900DSYMUTIL=$ac_cv_prog_DSYMUTIL
6901if test -n "$DSYMUTIL"; then
6902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6903$as_echo "$DSYMUTIL" >&6; }
6904else
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909
6910fi
6911if test -z "$ac_cv_prog_DSYMUTIL"; then
6912  ac_ct_DSYMUTIL=$DSYMUTIL
6913  # Extract the first word of "dsymutil", so it can be a program name with args.
6914set dummy dsymutil; ac_word=$2
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916$as_echo_n "checking for $ac_word... " >&6; }
6917if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  if test -n "$ac_ct_DSYMUTIL"; then
6921  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6922else
6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924for as_dir in $PATH
6925do
6926  IFS=$as_save_IFS
6927  test -z "$as_dir" && as_dir=.
6928    for ac_exec_ext in '' $ac_executable_extensions; do
6929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932    break 2
6933  fi
6934done
6935  done
6936IFS=$as_save_IFS
6937
6938fi
6939fi
6940ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6941if test -n "$ac_ct_DSYMUTIL"; then
6942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6943$as_echo "$ac_ct_DSYMUTIL" >&6; }
6944else
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946$as_echo "no" >&6; }
6947fi
6948
6949  if test "x$ac_ct_DSYMUTIL" = x; then
6950    DSYMUTIL=":"
6951  else
6952    case $cross_compiling:$ac_tool_warned in
6953yes:)
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956ac_tool_warned=yes ;;
6957esac
6958    DSYMUTIL=$ac_ct_DSYMUTIL
6959  fi
6960else
6961  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6962fi
6963
6964    if test -n "$ac_tool_prefix"; then
6965  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6966set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if ${ac_cv_prog_NMEDIT+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  if test -n "$NMEDIT"; then
6973  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978  IFS=$as_save_IFS
6979  test -z "$as_dir" && as_dir=.
6980    for ac_exec_ext in '' $ac_executable_extensions; do
6981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984    break 2
6985  fi
6986done
6987  done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992NMEDIT=$ac_cv_prog_NMEDIT
6993if test -n "$NMEDIT"; then
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6995$as_echo "$NMEDIT" >&6; }
6996else
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001
7002fi
7003if test -z "$ac_cv_prog_NMEDIT"; then
7004  ac_ct_NMEDIT=$NMEDIT
7005  # Extract the first word of "nmedit", so it can be a program name with args.
7006set dummy nmedit; ac_word=$2
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008$as_echo_n "checking for $ac_word... " >&6; }
7009if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  if test -n "$ac_ct_NMEDIT"; then
7013  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7014else
7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018  IFS=$as_save_IFS
7019  test -z "$as_dir" && as_dir=.
7020    for ac_exec_ext in '' $ac_executable_extensions; do
7021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024    break 2
7025  fi
7026done
7027  done
7028IFS=$as_save_IFS
7029
7030fi
7031fi
7032ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7033if test -n "$ac_ct_NMEDIT"; then
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7035$as_echo "$ac_ct_NMEDIT" >&6; }
7036else
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038$as_echo "no" >&6; }
7039fi
7040
7041  if test "x$ac_ct_NMEDIT" = x; then
7042    NMEDIT=":"
7043  else
7044    case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050    NMEDIT=$ac_ct_NMEDIT
7051  fi
7052else
7053  NMEDIT="$ac_cv_prog_NMEDIT"
7054fi
7055
7056    if test -n "$ac_tool_prefix"; then
7057  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}lipo; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if ${ac_cv_prog_LIPO+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  if test -n "$LIPO"; then
7065  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072    for ac_exec_ext in '' $ac_executable_extensions; do
7073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079  done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084LIPO=$ac_cv_prog_LIPO
7085if test -n "$LIPO"; then
7086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7087$as_echo "$LIPO" >&6; }
7088else
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_LIPO"; then
7096  ac_ct_LIPO=$LIPO
7097  # Extract the first word of "lipo", so it can be a program name with args.
7098set dummy lipo; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$ac_ct_LIPO"; then
7105  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114    ac_cv_prog_ac_ct_LIPO="lipo"
7115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119  done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7125if test -n "$ac_ct_LIPO"; then
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7127$as_echo "$ac_ct_LIPO" >&6; }
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133  if test "x$ac_ct_LIPO" = x; then
7134    LIPO=":"
7135  else
7136    case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140ac_tool_warned=yes ;;
7141esac
7142    LIPO=$ac_ct_LIPO
7143  fi
7144else
7145  LIPO="$ac_cv_prog_LIPO"
7146fi
7147
7148    if test -n "$ac_tool_prefix"; then
7149  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}otool; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if ${ac_cv_prog_OTOOL+:} false; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  if test -n "$OTOOL"; then
7157  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162  IFS=$as_save_IFS
7163  test -z "$as_dir" && as_dir=.
7164    for ac_exec_ext in '' $ac_executable_extensions; do
7165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168    break 2
7169  fi
7170done
7171  done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176OTOOL=$ac_cv_prog_OTOOL
7177if test -n "$OTOOL"; then
7178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7179$as_echo "$OTOOL" >&6; }
7180else
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185
7186fi
7187if test -z "$ac_cv_prog_OTOOL"; then
7188  ac_ct_OTOOL=$OTOOL
7189  # Extract the first word of "otool", so it can be a program name with args.
7190set dummy otool; ac_word=$2
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192$as_echo_n "checking for $ac_word... " >&6; }
7193if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  if test -n "$ac_ct_OTOOL"; then
7197  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204    for ac_exec_ext in '' $ac_executable_extensions; do
7205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206    ac_cv_prog_ac_ct_OTOOL="otool"
7207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211  done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7217if test -n "$ac_ct_OTOOL"; then
7218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7219$as_echo "$ac_ct_OTOOL" >&6; }
7220else
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222$as_echo "no" >&6; }
7223fi
7224
7225  if test "x$ac_ct_OTOOL" = x; then
7226    OTOOL=":"
7227  else
7228    case $cross_compiling:$ac_tool_warned in
7229yes:)
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232ac_tool_warned=yes ;;
7233esac
7234    OTOOL=$ac_ct_OTOOL
7235  fi
7236else
7237  OTOOL="$ac_cv_prog_OTOOL"
7238fi
7239
7240    if test -n "$ac_tool_prefix"; then
7241  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}otool64; ac_word=$2
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
7245if ${ac_cv_prog_OTOOL64+:} false; then :
7246  $as_echo_n "(cached) " >&6
7247else
7248  if test -n "$OTOOL64"; then
7249  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256    for ac_exec_ext in '' $ac_executable_extensions; do
7257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263  done
7264IFS=$as_save_IFS
7265
7266fi
7267fi
7268OTOOL64=$ac_cv_prog_OTOOL64
7269if test -n "$OTOOL64"; then
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7271$as_echo "$OTOOL64" >&6; }
7272else
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7275fi
7276
7277
7278fi
7279if test -z "$ac_cv_prog_OTOOL64"; then
7280  ac_ct_OTOOL64=$OTOOL64
7281  # Extract the first word of "otool64", so it can be a program name with args.
7282set dummy otool64; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  if test -n "$ac_ct_OTOOL64"; then
7289  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296    for ac_exec_ext in '' $ac_executable_extensions; do
7297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298    ac_cv_prog_ac_ct_OTOOL64="otool64"
7299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303  done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7309if test -n "$ac_ct_OTOOL64"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7311$as_echo "$ac_ct_OTOOL64" >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317  if test "x$ac_ct_OTOOL64" = x; then
7318    OTOOL64=":"
7319  else
7320    case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326    OTOOL64=$ac_ct_OTOOL64
7327  fi
7328else
7329  OTOOL64="$ac_cv_prog_OTOOL64"
7330fi
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7359$as_echo_n "checking for -single_module linker flag... " >&6; }
7360if ${lt_cv_apple_cc_single_mod+:} false; then :
7361  $as_echo_n "(cached) " >&6
7362else
7363  lt_cv_apple_cc_single_mod=no
7364      if test -z "$LT_MULTI_MODULE"; then
7365	# By default we will add the -single_module flag. You can override
7366	# by either setting the environment variable LT_MULTI_MODULE
7367	# non-empty at configure time, or by adding -multi_module to the
7368	# link flags.
7369	rm -rf libconftest.dylib*
7370	echo "int foo(void){return 1;}" > conftest.c
7371	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7372-dynamiclib -Wl,-single_module conftest.c" >&5
7373	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7374	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7375        _lt_result=$?
7376	# If there is a non-empty error log, and "single_module"
7377	# appears in it, assume the flag caused a linker warning
7378        if test -s conftest.err && $GREP single_module conftest.err; then
7379	  cat conftest.err >&5
7380	# Otherwise, if the output was created with a 0 exit code from
7381	# the compiler, it worked.
7382	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7383	  lt_cv_apple_cc_single_mod=yes
7384	else
7385	  cat conftest.err >&5
7386	fi
7387	rm -rf libconftest.dylib*
7388	rm -f conftest.*
7389      fi
7390fi
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393
7394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7395$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7396if ${lt_cv_ld_exported_symbols_list+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  lt_cv_ld_exported_symbols_list=no
7400      save_LDFLAGS=$LDFLAGS
7401      echo "_main" > conftest.sym
7402      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7403      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405
7406int
7407main ()
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"; then :
7415  lt_cv_ld_exported_symbols_list=yes
7416else
7417  lt_cv_ld_exported_symbols_list=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420    conftest$ac_exeext conftest.$ac_ext
7421	LDFLAGS=$save_LDFLAGS
7422
7423fi
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7425$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7426
7427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7428$as_echo_n "checking for -force_load linker flag... " >&6; }
7429if ${lt_cv_ld_force_load+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  lt_cv_ld_force_load=no
7433      cat > conftest.c << _LT_EOF
7434int forced_loaded() { return 2;}
7435_LT_EOF
7436      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7437      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7438      echo "$AR cru libconftest.a conftest.o" >&5
7439      $AR cru libconftest.a conftest.o 2>&5
7440      echo "$RANLIB libconftest.a" >&5
7441      $RANLIB libconftest.a 2>&5
7442      cat > conftest.c << _LT_EOF
7443int main() { return 0;}
7444_LT_EOF
7445      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7446      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7447      _lt_result=$?
7448      if test -s conftest.err && $GREP force_load conftest.err; then
7449	cat conftest.err >&5
7450      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7451	lt_cv_ld_force_load=yes
7452      else
7453	cat conftest.err >&5
7454      fi
7455        rm -f conftest.err libconftest.a conftest conftest.c
7456        rm -rf conftest.dSYM
7457
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7460$as_echo "$lt_cv_ld_force_load" >&6; }
7461    case $host_os in
7462    rhapsody* | darwin1.[012])
7463      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7464    darwin1.*)
7465      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7466    darwin*) # darwin 5.x on
7467      # if running on 10.5 or later, the deployment target defaults
7468      # to the OS version, if on x86, and 10.4, the deployment
7469      # target defaults to 10.4. Don't you love it?
7470      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7471	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7472	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7473	10.[012][,.]*)
7474	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7475	10.*)
7476	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7477      esac
7478    ;;
7479  esac
7480    if test yes = "$lt_cv_apple_cc_single_mod"; then
7481      _lt_dar_single_mod='$single_module'
7482    fi
7483    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7484      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7485    else
7486      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7487    fi
7488    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7489      _lt_dsymutil='~$DSYMUTIL $lib || :'
7490    else
7491      _lt_dsymutil=
7492    fi
7493    ;;
7494  esac
7495
7496# func_munge_path_list VARIABLE PATH
7497# -----------------------------------
7498# VARIABLE is name of variable containing _space_ separated list of
7499# directories to be munged by the contents of PATH, which is string
7500# having a format:
7501# "DIR[:DIR]:"
7502#       string "DIR[ DIR]" will be prepended to VARIABLE
7503# ":DIR[:DIR]"
7504#       string "DIR[ DIR]" will be appended to VARIABLE
7505# "DIRP[:DIRP]::[DIRA:]DIRA"
7506#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7507#       "DIRA[ DIRA]" will be appended to VARIABLE
7508# "DIR[:DIR]"
7509#       VARIABLE will be replaced by "DIR[ DIR]"
7510func_munge_path_list ()
7511{
7512    case x$2 in
7513    x)
7514        ;;
7515    *:)
7516        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7517        ;;
7518    x:*)
7519        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7520        ;;
7521    *::*)
7522        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7523        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7524        ;;
7525    *)
7526        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7527        ;;
7528    esac
7529}
7530
7531ac_ext=c
7532ac_cpp='$CPP $CPPFLAGS'
7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7537$as_echo_n "checking how to run the C preprocessor... " >&6; }
7538# On Suns, sometimes $CPP names a directory.
7539if test -n "$CPP" && test -d "$CPP"; then
7540  CPP=
7541fi
7542if test -z "$CPP"; then
7543  if ${ac_cv_prog_CPP+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546      # Double quotes because CPP needs to be expanded
7547    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7548    do
7549      ac_preproc_ok=false
7550for ac_c_preproc_warn_flag in '' yes
7551do
7552  # Use a header file that comes with gcc, so configuring glibc
7553  # with a fresh cross-compiler works.
7554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555  # <limits.h> exists even on freestanding compilers.
7556  # On the NeXT, cc -E runs the code through the compiler's parser,
7557  # not just through cpp. "Syntax error" is here to catch this case.
7558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559/* end confdefs.h.  */
7560#ifdef __STDC__
7561# include <limits.h>
7562#else
7563# include <assert.h>
7564#endif
7565		     Syntax error
7566_ACEOF
7567if ac_fn_c_try_cpp "$LINENO"; then :
7568
7569else
7570  # Broken: fails on valid input.
7571continue
7572fi
7573rm -f conftest.err conftest.i conftest.$ac_ext
7574
7575  # OK, works on sane cases.  Now check whether nonexistent headers
7576  # can be detected and how.
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579#include <ac_nonexistent.h>
7580_ACEOF
7581if ac_fn_c_try_cpp "$LINENO"; then :
7582  # Broken: success on invalid input.
7583continue
7584else
7585  # Passes both tests.
7586ac_preproc_ok=:
7587break
7588fi
7589rm -f conftest.err conftest.i conftest.$ac_ext
7590
7591done
7592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7593rm -f conftest.i conftest.err conftest.$ac_ext
7594if $ac_preproc_ok; then :
7595  break
7596fi
7597
7598    done
7599    ac_cv_prog_CPP=$CPP
7600
7601fi
7602  CPP=$ac_cv_prog_CPP
7603else
7604  ac_cv_prog_CPP=$CPP
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7607$as_echo "$CPP" >&6; }
7608ac_preproc_ok=false
7609for ac_c_preproc_warn_flag in '' yes
7610do
7611  # Use a header file that comes with gcc, so configuring glibc
7612  # with a fresh cross-compiler works.
7613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614  # <limits.h> exists even on freestanding compilers.
7615  # On the NeXT, cc -E runs the code through the compiler's parser,
7616  # not just through cpp. "Syntax error" is here to catch this case.
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619#ifdef __STDC__
7620# include <limits.h>
7621#else
7622# include <assert.h>
7623#endif
7624		     Syntax error
7625_ACEOF
7626if ac_fn_c_try_cpp "$LINENO"; then :
7627
7628else
7629  # Broken: fails on valid input.
7630continue
7631fi
7632rm -f conftest.err conftest.i conftest.$ac_ext
7633
7634  # OK, works on sane cases.  Now check whether nonexistent headers
7635  # can be detected and how.
7636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638#include <ac_nonexistent.h>
7639_ACEOF
7640if ac_fn_c_try_cpp "$LINENO"; then :
7641  # Broken: success on invalid input.
7642continue
7643else
7644  # Passes both tests.
7645ac_preproc_ok=:
7646break
7647fi
7648rm -f conftest.err conftest.i conftest.$ac_ext
7649
7650done
7651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7652rm -f conftest.i conftest.err conftest.$ac_ext
7653if $ac_preproc_ok; then :
7654
7655else
7656  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7658as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7659See \`config.log' for more details" "$LINENO" 5; }
7660fi
7661
7662ac_ext=c
7663ac_cpp='$CPP $CPPFLAGS'
7664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667
7668
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7670$as_echo_n "checking for ANSI C header files... " >&6; }
7671if ${ac_cv_header_stdc+:} false; then :
7672  $as_echo_n "(cached) " >&6
7673else
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676#include <stdlib.h>
7677#include <stdarg.h>
7678#include <string.h>
7679#include <float.h>
7680
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_compile "$LINENO"; then :
7690  ac_cv_header_stdc=yes
7691else
7692  ac_cv_header_stdc=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695
7696if test $ac_cv_header_stdc = yes; then
7697  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700#include <string.h>
7701
7702_ACEOF
7703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7704  $EGREP "memchr" >/dev/null 2>&1; then :
7705
7706else
7707  ac_cv_header_stdc=no
7708fi
7709rm -f conftest*
7710
7711fi
7712
7713if test $ac_cv_header_stdc = yes; then
7714  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716/* end confdefs.h.  */
7717#include <stdlib.h>
7718
7719_ACEOF
7720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7721  $EGREP "free" >/dev/null 2>&1; then :
7722
7723else
7724  ac_cv_header_stdc=no
7725fi
7726rm -f conftest*
7727
7728fi
7729
7730if test $ac_cv_header_stdc = yes; then
7731  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7732  if test "$cross_compiling" = yes; then :
7733  :
7734else
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737#include <ctype.h>
7738#include <stdlib.h>
7739#if ((' ' & 0x0FF) == 0x020)
7740# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7741# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7742#else
7743# define ISLOWER(c) \
7744		   (('a' <= (c) && (c) <= 'i') \
7745		     || ('j' <= (c) && (c) <= 'r') \
7746		     || ('s' <= (c) && (c) <= 'z'))
7747# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7748#endif
7749
7750#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7751int
7752main ()
7753{
7754  int i;
7755  for (i = 0; i < 256; i++)
7756    if (XOR (islower (i), ISLOWER (i))
7757	|| toupper (i) != TOUPPER (i))
7758      return 2;
7759  return 0;
7760}
7761_ACEOF
7762if ac_fn_c_try_run "$LINENO"; then :
7763
7764else
7765  ac_cv_header_stdc=no
7766fi
7767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7768  conftest.$ac_objext conftest.beam conftest.$ac_ext
7769fi
7770
7771fi
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7774$as_echo "$ac_cv_header_stdc" >&6; }
7775if test $ac_cv_header_stdc = yes; then
7776
7777$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7778
7779fi
7780
7781# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7782for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7783		  inttypes.h stdint.h unistd.h
7784do :
7785  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7787"
7788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7789  cat >>confdefs.h <<_ACEOF
7790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791_ACEOF
7792
7793fi
7794
7795done
7796
7797
7798for ac_header in dlfcn.h
7799do :
7800  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7801"
7802if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7803  cat >>confdefs.h <<_ACEOF
7804#define HAVE_DLFCN_H 1
7805_ACEOF
7806
7807fi
7808
7809done
7810
7811
7812
7813
7814
7815# Set options
7816
7817
7818
7819        enable_dlopen=no
7820
7821
7822  enable_win32_dll=no
7823
7824
7825
7826  # Check whether --enable-static was given.
7827if test "${enable_static+set}" = set; then :
7828  enableval=$enable_static; p=${PACKAGE-default}
7829    case $enableval in
7830    yes) enable_static=yes ;;
7831    no) enable_static=no ;;
7832    *)
7833     enable_static=no
7834      # Look at the argument we got.  We use all the common list separators.
7835      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836      for pkg in $enableval; do
7837	IFS=$lt_save_ifs
7838	if test "X$pkg" = "X$p"; then
7839	  enable_static=yes
7840	fi
7841      done
7842      IFS=$lt_save_ifs
7843      ;;
7844    esac
7845else
7846  enable_static=yes
7847fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858# Check whether --with-pic was given.
7859if test "${with_pic+set}" = set; then :
7860  withval=$with_pic; lt_p=${PACKAGE-default}
7861    case $withval in
7862    yes|no) pic_mode=$withval ;;
7863    *)
7864      pic_mode=default
7865      # Look at the argument we got.  We use all the common list separators.
7866      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7867      for lt_pkg in $withval; do
7868	IFS=$lt_save_ifs
7869	if test "X$lt_pkg" = "X$lt_p"; then
7870	  pic_mode=yes
7871	fi
7872      done
7873      IFS=$lt_save_ifs
7874      ;;
7875    esac
7876else
7877  pic_mode=default
7878fi
7879
7880
7881
7882
7883
7884
7885
7886
7887  # Check whether --enable-fast-install was given.
7888if test "${enable_fast_install+set}" = set; then :
7889  enableval=$enable_fast_install; p=${PACKAGE-default}
7890    case $enableval in
7891    yes) enable_fast_install=yes ;;
7892    no) enable_fast_install=no ;;
7893    *)
7894      enable_fast_install=no
7895      # Look at the argument we got.  We use all the common list separators.
7896      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7897      for pkg in $enableval; do
7898	IFS=$lt_save_ifs
7899	if test "X$pkg" = "X$p"; then
7900	  enable_fast_install=yes
7901	fi
7902      done
7903      IFS=$lt_save_ifs
7904      ;;
7905    esac
7906else
7907  enable_fast_install=yes
7908fi
7909
7910
7911
7912
7913
7914
7915
7916
7917  shared_archive_member_spec=
7918case $host,$enable_shared in
7919power*-*-aix[5-9]*,yes)
7920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7921$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7922
7923# Check whether --with-aix-soname was given.
7924if test "${with_aix_soname+set}" = set; then :
7925  withval=$with_aix_soname; case $withval in
7926    aix|svr4|both)
7927      ;;
7928    *)
7929      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7930      ;;
7931    esac
7932    lt_cv_with_aix_soname=$with_aix_soname
7933else
7934  if ${lt_cv_with_aix_soname+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  lt_cv_with_aix_soname=aix
7938fi
7939
7940    with_aix_soname=$lt_cv_with_aix_soname
7941fi
7942
7943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7944$as_echo "$with_aix_soname" >&6; }
7945  if test aix != "$with_aix_soname"; then
7946    # For the AIX way of multilib, we name the shared archive member
7947    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7948    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7949    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7950    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7951    if test 64 = "${OBJECT_MODE-32}"; then
7952      shared_archive_member_spec=shr_64
7953    else
7954      shared_archive_member_spec=shr
7955    fi
7956  fi
7957  ;;
7958*)
7959  with_aix_soname=aix
7960  ;;
7961esac
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972# This can be used to rebuild libtool when needed
7973LIBTOOL_DEPS=$ltmain
7974
7975# Always use our own libtool.
7976LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007test -z "$LN_S" && LN_S="ln -s"
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022if test -n "${ZSH_VERSION+set}"; then
8023   setopt NO_GLOB_SUBST
8024fi
8025
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8027$as_echo_n "checking for objdir... " >&6; }
8028if ${lt_cv_objdir+:} false; then :
8029  $as_echo_n "(cached) " >&6
8030else
8031  rm -f .libs 2>/dev/null
8032mkdir .libs 2>/dev/null
8033if test -d .libs; then
8034  lt_cv_objdir=.libs
8035else
8036  # MS-DOS does not allow filenames that begin with a dot.
8037  lt_cv_objdir=_libs
8038fi
8039rmdir .libs 2>/dev/null
8040fi
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8042$as_echo "$lt_cv_objdir" >&6; }
8043objdir=$lt_cv_objdir
8044
8045
8046
8047
8048
8049cat >>confdefs.h <<_ACEOF
8050#define LT_OBJDIR "$lt_cv_objdir/"
8051_ACEOF
8052
8053
8054
8055
8056case $host_os in
8057aix3*)
8058  # AIX sometimes has problems with the GCC collect2 program.  For some
8059  # reason, if we set the COLLECT_NAMES environment variable, the problems
8060  # vanish in a puff of smoke.
8061  if test set != "${COLLECT_NAMES+set}"; then
8062    COLLECT_NAMES=
8063    export COLLECT_NAMES
8064  fi
8065  ;;
8066esac
8067
8068# Global variables:
8069ofile=libtool
8070can_build_shared=yes
8071
8072# All known linkers require a '.a' archive for static linking (except MSVC,
8073# which needs '.lib').
8074libext=a
8075
8076with_gnu_ld=$lt_cv_prog_gnu_ld
8077
8078old_CC=$CC
8079old_CFLAGS=$CFLAGS
8080
8081# Set sane defaults for various variables
8082test -z "$CC" && CC=cc
8083test -z "$LTCC" && LTCC=$CC
8084test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8085test -z "$LD" && LD=ld
8086test -z "$ac_objext" && ac_objext=o
8087
8088func_cc_basename $compiler
8089cc_basename=$func_cc_basename_result
8090
8091
8092# Only perform the check for file, if the check method requires it
8093test -z "$MAGIC_CMD" && MAGIC_CMD=file
8094case $deplibs_check_method in
8095file_magic*)
8096  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8098$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8099if ${lt_cv_path_MAGIC_CMD+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  case $MAGIC_CMD in
8103[\\/*] |  ?:[\\/]*)
8104  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8105  ;;
8106*)
8107  lt_save_MAGIC_CMD=$MAGIC_CMD
8108  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8109  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110  for ac_dir in $ac_dummy; do
8111    IFS=$lt_save_ifs
8112    test -z "$ac_dir" && ac_dir=.
8113    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8114      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8115      if test -n "$file_magic_test_file"; then
8116	case $deplibs_check_method in
8117	"file_magic "*)
8118	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8119	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8120	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121	    $EGREP "$file_magic_regex" > /dev/null; then
8122	    :
8123	  else
8124	    cat <<_LT_EOF 1>&2
8125
8126*** Warning: the command libtool uses to detect shared libraries,
8127*** $file_magic_cmd, produces output that libtool cannot recognize.
8128*** The result is that libtool may fail to recognize shared libraries
8129*** as such.  This will affect the creation of libtool libraries that
8130*** depend on shared libraries, but programs linked with such libtool
8131*** libraries will work regardless of this problem.  Nevertheless, you
8132*** may want to report the problem to your system manager and/or to
8133*** [email protected]
8134
8135_LT_EOF
8136	  fi ;;
8137	esac
8138      fi
8139      break
8140    fi
8141  done
8142  IFS=$lt_save_ifs
8143  MAGIC_CMD=$lt_save_MAGIC_CMD
8144  ;;
8145esac
8146fi
8147
8148MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8149if test -n "$MAGIC_CMD"; then
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151$as_echo "$MAGIC_CMD" >&6; }
8152else
8153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
8155fi
8156
8157
8158
8159
8160
8161if test -z "$lt_cv_path_MAGIC_CMD"; then
8162  if test -n "$ac_tool_prefix"; then
8163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8164$as_echo_n "checking for file... " >&6; }
8165if ${lt_cv_path_MAGIC_CMD+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  case $MAGIC_CMD in
8169[\\/*] |  ?:[\\/]*)
8170  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8171  ;;
8172*)
8173  lt_save_MAGIC_CMD=$MAGIC_CMD
8174  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176  for ac_dir in $ac_dummy; do
8177    IFS=$lt_save_ifs
8178    test -z "$ac_dir" && ac_dir=.
8179    if test -f "$ac_dir/file"; then
8180      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8181      if test -n "$file_magic_test_file"; then
8182	case $deplibs_check_method in
8183	"file_magic "*)
8184	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8186	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187	    $EGREP "$file_magic_regex" > /dev/null; then
8188	    :
8189	  else
8190	    cat <<_LT_EOF 1>&2
8191
8192*** Warning: the command libtool uses to detect shared libraries,
8193*** $file_magic_cmd, produces output that libtool cannot recognize.
8194*** The result is that libtool may fail to recognize shared libraries
8195*** as such.  This will affect the creation of libtool libraries that
8196*** depend on shared libraries, but programs linked with such libtool
8197*** libraries will work regardless of this problem.  Nevertheless, you
8198*** may want to report the problem to your system manager and/or to
8199*** [email protected]
8200
8201_LT_EOF
8202	  fi ;;
8203	esac
8204      fi
8205      break
8206    fi
8207  done
8208  IFS=$lt_save_ifs
8209  MAGIC_CMD=$lt_save_MAGIC_CMD
8210  ;;
8211esac
8212fi
8213
8214MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8215if test -n "$MAGIC_CMD"; then
8216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217$as_echo "$MAGIC_CMD" >&6; }
8218else
8219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
8221fi
8222
8223
8224  else
8225    MAGIC_CMD=:
8226  fi
8227fi
8228
8229  fi
8230  ;;
8231esac
8232
8233# Use C for the default configuration in the libtool script
8234
8235lt_save_CC=$CC
8236ac_ext=c
8237ac_cpp='$CPP $CPPFLAGS'
8238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242
8243# Source file extension for C test sources.
8244ac_ext=c
8245
8246# Object file extension for compiled C test sources.
8247objext=o
8248objext=$objext
8249
8250# Code to be used in simple compile tests
8251lt_simple_compile_test_code="int some_variable = 0;"
8252
8253# Code to be used in simple link tests
8254lt_simple_link_test_code='int main(){return(0);}'
8255
8256
8257
8258
8259
8260
8261
8262# If no C compiler was specified, use CC.
8263LTCC=${LTCC-"$CC"}
8264
8265# If no C compiler flags were specified, use CFLAGS.
8266LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8267
8268# Allow CC to be a program name with arguments.
8269compiler=$CC
8270
8271# Save the default compiler, since it gets overwritten when the other
8272# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8273compiler_DEFAULT=$CC
8274
8275# save warnings/boilerplate of simple test code
8276ac_outfile=conftest.$ac_objext
8277echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8278eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279_lt_compiler_boilerplate=`cat conftest.err`
8280$RM conftest*
8281
8282ac_outfile=conftest.$ac_objext
8283echo "$lt_simple_link_test_code" >conftest.$ac_ext
8284eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285_lt_linker_boilerplate=`cat conftest.err`
8286$RM -r conftest*
8287
8288
8289if test -n "$compiler"; then
8290
8291lt_prog_compiler_no_builtin_flag=
8292
8293if test yes = "$GCC"; then
8294  case $cc_basename in
8295  nvcc*)
8296    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8297  *)
8298    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8299  esac
8300
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8302$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8303if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  lt_cv_prog_compiler_rtti_exceptions=no
8307   ac_outfile=conftest.$ac_objext
8308   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8310   # Insert the option either (1) after the last *FLAGS variable, or
8311   # (2) before a word containing "conftest.", or (3) at the end.
8312   # Note that $ac_compile itself does not contain backslashes and begins
8313   # with a dollar sign (not a hyphen), so the echo should work correctly.
8314   # The option is referenced via a variable to avoid confusing sed.
8315   lt_compile=`echo "$ac_compile" | $SED \
8316   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318   -e 's:$: $lt_compiler_flag:'`
8319   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320   (eval "$lt_compile" 2>conftest.err)
8321   ac_status=$?
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   if (exit $ac_status) && test -s "$ac_outfile"; then
8325     # The compiler can only warn and ignore the option if not recognized
8326     # So say no if there are warnings other than the usual output.
8327     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8328     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8330       lt_cv_prog_compiler_rtti_exceptions=yes
8331     fi
8332   fi
8333   $RM conftest*
8334
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8337$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8338
8339if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8340    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8341else
8342    :
8343fi
8344
8345fi
8346
8347
8348
8349
8350
8351
8352  lt_prog_compiler_wl=
8353lt_prog_compiler_pic=
8354lt_prog_compiler_static=
8355
8356
8357  if test yes = "$GCC"; then
8358    lt_prog_compiler_wl='-Wl,'
8359    lt_prog_compiler_static='-static'
8360
8361    case $host_os in
8362      aix*)
8363      # All AIX code is PIC.
8364      if test ia64 = "$host_cpu"; then
8365	# AIX 5 now supports IA64 processor
8366	lt_prog_compiler_static='-Bstatic'
8367      fi
8368      lt_prog_compiler_pic='-fPIC'
8369      ;;
8370
8371    amigaos*)
8372      case $host_cpu in
8373      powerpc)
8374            # see comment about AmigaOS4 .so support
8375            lt_prog_compiler_pic='-fPIC'
8376        ;;
8377      m68k)
8378            # FIXME: we need at least 68020 code to build shared libraries, but
8379            # adding the '-m68020' flag to GCC prevents building anything better,
8380            # like '-m68040'.
8381            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382        ;;
8383      esac
8384      ;;
8385
8386    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8387      # PIC is the default for these OSes.
8388      ;;
8389
8390    mingw* | cygwin* | pw32* | os2* | cegcc*)
8391      # This hack is so that the source file can tell whether it is being
8392      # built for inclusion in a dll (and should export symbols for example).
8393      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8394      # (--disable-auto-import) libraries
8395      lt_prog_compiler_pic='-DDLL_EXPORT'
8396      case $host_os in
8397      os2*)
8398	lt_prog_compiler_static='$wl-static'
8399	;;
8400      esac
8401      ;;
8402
8403    darwin* | rhapsody*)
8404      # PIC is the default on this platform
8405      # Common symbols not allowed in MH_DYLIB files
8406      lt_prog_compiler_pic='-fno-common'
8407      ;;
8408
8409    haiku*)
8410      # PIC is the default for Haiku.
8411      # The "-static" flag exists, but is broken.
8412      lt_prog_compiler_static=
8413      ;;
8414
8415    hpux*)
8416      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8417      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8418      # sets the default TLS model and affects inlining.
8419      case $host_cpu in
8420      hppa*64*)
8421	# +Z the default
8422	;;
8423      *)
8424	lt_prog_compiler_pic='-fPIC'
8425	;;
8426      esac
8427      ;;
8428
8429    interix[3-9]*)
8430      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8431      # Instead, we relocate shared libraries at runtime.
8432      ;;
8433
8434    msdosdjgpp*)
8435      # Just because we use GCC doesn't mean we suddenly get shared libraries
8436      # on systems that don't support them.
8437      lt_prog_compiler_can_build_shared=no
8438      enable_shared=no
8439      ;;
8440
8441    *nto* | *qnx*)
8442      # QNX uses GNU C++, but need to define -shared option too, otherwise
8443      # it will coredump.
8444      lt_prog_compiler_pic='-fPIC -shared'
8445      ;;
8446
8447    sysv4*MP*)
8448      if test -d /usr/nec; then
8449	lt_prog_compiler_pic=-Kconform_pic
8450      fi
8451      ;;
8452
8453    *)
8454      lt_prog_compiler_pic='-fPIC'
8455      ;;
8456    esac
8457
8458    case $cc_basename in
8459    nvcc*) # Cuda Compiler Driver 2.2
8460      lt_prog_compiler_wl='-Xlinker '
8461      if test -n "$lt_prog_compiler_pic"; then
8462        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8463      fi
8464      ;;
8465    esac
8466  else
8467    # PORTME Check for flag to pass linker flags through the system compiler.
8468    case $host_os in
8469    aix*)
8470      lt_prog_compiler_wl='-Wl,'
8471      if test ia64 = "$host_cpu"; then
8472	# AIX 5 now supports IA64 processor
8473	lt_prog_compiler_static='-Bstatic'
8474      else
8475	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8476      fi
8477      ;;
8478
8479    darwin* | rhapsody*)
8480      # PIC is the default on this platform
8481      # Common symbols not allowed in MH_DYLIB files
8482      lt_prog_compiler_pic='-fno-common'
8483      case $cc_basename in
8484      nagfor*)
8485        # NAG Fortran compiler
8486        lt_prog_compiler_wl='-Wl,-Wl,,'
8487        lt_prog_compiler_pic='-PIC'
8488        lt_prog_compiler_static='-Bstatic'
8489        ;;
8490      esac
8491      ;;
8492
8493    mingw* | cygwin* | pw32* | os2* | cegcc*)
8494      # This hack is so that the source file can tell whether it is being
8495      # built for inclusion in a dll (and should export symbols for example).
8496      lt_prog_compiler_pic='-DDLL_EXPORT'
8497      case $host_os in
8498      os2*)
8499	lt_prog_compiler_static='$wl-static'
8500	;;
8501      esac
8502      ;;
8503
8504    hpux9* | hpux10* | hpux11*)
8505      lt_prog_compiler_wl='-Wl,'
8506      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8507      # not for PA HP-UX.
8508      case $host_cpu in
8509      hppa*64*|ia64*)
8510	# +Z the default
8511	;;
8512      *)
8513	lt_prog_compiler_pic='+Z'
8514	;;
8515      esac
8516      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8517      lt_prog_compiler_static='$wl-a ${wl}archive'
8518      ;;
8519
8520    irix5* | irix6* | nonstopux*)
8521      lt_prog_compiler_wl='-Wl,'
8522      # PIC (with -KPIC) is the default.
8523      lt_prog_compiler_static='-non_shared'
8524      ;;
8525
8526    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8527      case $cc_basename in
8528      # old Intel for x86_64, which still supported -KPIC.
8529      ecc*)
8530	lt_prog_compiler_wl='-Wl,'
8531	lt_prog_compiler_pic='-KPIC'
8532	lt_prog_compiler_static='-static'
8533        ;;
8534      # icc used to be incompatible with GCC.
8535      # ICC 10 doesn't accept -KPIC any more.
8536      icc* | ifort*)
8537	lt_prog_compiler_wl='-Wl,'
8538	lt_prog_compiler_pic='-fPIC'
8539	lt_prog_compiler_static='-static'
8540        ;;
8541      # Lahey Fortran 8.1.
8542      lf95*)
8543	lt_prog_compiler_wl='-Wl,'
8544	lt_prog_compiler_pic='--shared'
8545	lt_prog_compiler_static='--static'
8546	;;
8547      nagfor*)
8548	# NAG Fortran compiler
8549	lt_prog_compiler_wl='-Wl,-Wl,,'
8550	lt_prog_compiler_pic='-PIC'
8551	lt_prog_compiler_static='-Bstatic'
8552	;;
8553      tcc*)
8554	# Fabrice Bellard et al's Tiny C Compiler
8555	lt_prog_compiler_wl='-Wl,'
8556	lt_prog_compiler_pic='-fPIC'
8557	lt_prog_compiler_static='-static'
8558	;;
8559      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8560        # Portland Group compilers (*not* the Pentium gcc compiler,
8561	# which looks to be a dead project)
8562	lt_prog_compiler_wl='-Wl,'
8563	lt_prog_compiler_pic='-fpic'
8564	lt_prog_compiler_static='-Bstatic'
8565        ;;
8566      ccc*)
8567        lt_prog_compiler_wl='-Wl,'
8568        # All Alpha code is PIC.
8569        lt_prog_compiler_static='-non_shared'
8570        ;;
8571      xl* | bgxl* | bgf* | mpixl*)
8572	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8573	lt_prog_compiler_wl='-Wl,'
8574	lt_prog_compiler_pic='-qpic'
8575	lt_prog_compiler_static='-qstaticlink'
8576	;;
8577      *)
8578	case `$CC -V 2>&1 | sed 5q` in
8579	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8580	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8581	  lt_prog_compiler_pic='-KPIC'
8582	  lt_prog_compiler_static='-Bstatic'
8583	  lt_prog_compiler_wl=''
8584	  ;;
8585	*Sun\ F* | *Sun*Fortran*)
8586	  lt_prog_compiler_pic='-KPIC'
8587	  lt_prog_compiler_static='-Bstatic'
8588	  lt_prog_compiler_wl='-Qoption ld '
8589	  ;;
8590	*Sun\ C*)
8591	  # Sun C 5.9
8592	  lt_prog_compiler_pic='-KPIC'
8593	  lt_prog_compiler_static='-Bstatic'
8594	  lt_prog_compiler_wl='-Wl,'
8595	  ;;
8596        *Intel*\ [CF]*Compiler*)
8597	  lt_prog_compiler_wl='-Wl,'
8598	  lt_prog_compiler_pic='-fPIC'
8599	  lt_prog_compiler_static='-static'
8600	  ;;
8601	*Portland\ Group*)
8602	  lt_prog_compiler_wl='-Wl,'
8603	  lt_prog_compiler_pic='-fpic'
8604	  lt_prog_compiler_static='-Bstatic'
8605	  ;;
8606	esac
8607	;;
8608      esac
8609      ;;
8610
8611    newsos6)
8612      lt_prog_compiler_pic='-KPIC'
8613      lt_prog_compiler_static='-Bstatic'
8614      ;;
8615
8616    *nto* | *qnx*)
8617      # QNX uses GNU C++, but need to define -shared option too, otherwise
8618      # it will coredump.
8619      lt_prog_compiler_pic='-fPIC -shared'
8620      ;;
8621
8622    osf3* | osf4* | osf5*)
8623      lt_prog_compiler_wl='-Wl,'
8624      # All OSF/1 code is PIC.
8625      lt_prog_compiler_static='-non_shared'
8626      ;;
8627
8628    rdos*)
8629      lt_prog_compiler_static='-non_shared'
8630      ;;
8631
8632    solaris*)
8633      lt_prog_compiler_pic='-KPIC'
8634      lt_prog_compiler_static='-Bstatic'
8635      case $cc_basename in
8636      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8637	lt_prog_compiler_wl='-Qoption ld ';;
8638      *)
8639	lt_prog_compiler_wl='-Wl,';;
8640      esac
8641      ;;
8642
8643    sunos4*)
8644      lt_prog_compiler_wl='-Qoption ld '
8645      lt_prog_compiler_pic='-PIC'
8646      lt_prog_compiler_static='-Bstatic'
8647      ;;
8648
8649    sysv4 | sysv4.2uw2* | sysv4.3*)
8650      lt_prog_compiler_wl='-Wl,'
8651      lt_prog_compiler_pic='-KPIC'
8652      lt_prog_compiler_static='-Bstatic'
8653      ;;
8654
8655    sysv4*MP*)
8656      if test -d /usr/nec; then
8657	lt_prog_compiler_pic='-Kconform_pic'
8658	lt_prog_compiler_static='-Bstatic'
8659      fi
8660      ;;
8661
8662    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8663      lt_prog_compiler_wl='-Wl,'
8664      lt_prog_compiler_pic='-KPIC'
8665      lt_prog_compiler_static='-Bstatic'
8666      ;;
8667
8668    unicos*)
8669      lt_prog_compiler_wl='-Wl,'
8670      lt_prog_compiler_can_build_shared=no
8671      ;;
8672
8673    uts4*)
8674      lt_prog_compiler_pic='-pic'
8675      lt_prog_compiler_static='-Bstatic'
8676      ;;
8677
8678    *)
8679      lt_prog_compiler_can_build_shared=no
8680      ;;
8681    esac
8682  fi
8683
8684case $host_os in
8685  # For platforms that do not support PIC, -DPIC is meaningless:
8686  *djgpp*)
8687    lt_prog_compiler_pic=
8688    ;;
8689  *)
8690    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8691    ;;
8692esac
8693
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8695$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8696if ${lt_cv_prog_compiler_pic+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8700fi
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8702$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8703lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8704
8705#
8706# Check to make sure the PIC flag actually works.
8707#
8708if test -n "$lt_prog_compiler_pic"; then
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8710$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8711if ${lt_cv_prog_compiler_pic_works+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  lt_cv_prog_compiler_pic_works=no
8715   ac_outfile=conftest.$ac_objext
8716   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8718   # Insert the option either (1) after the last *FLAGS variable, or
8719   # (2) before a word containing "conftest.", or (3) at the end.
8720   # Note that $ac_compile itself does not contain backslashes and begins
8721   # with a dollar sign (not a hyphen), so the echo should work correctly.
8722   # The option is referenced via a variable to avoid confusing sed.
8723   lt_compile=`echo "$ac_compile" | $SED \
8724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726   -e 's:$: $lt_compiler_flag:'`
8727   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728   (eval "$lt_compile" 2>conftest.err)
8729   ac_status=$?
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   if (exit $ac_status) && test -s "$ac_outfile"; then
8733     # The compiler can only warn and ignore the option if not recognized
8734     # So say no if there are warnings other than the usual output.
8735     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8736     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8738       lt_cv_prog_compiler_pic_works=yes
8739     fi
8740   fi
8741   $RM conftest*
8742
8743fi
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8745$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8746
8747if test yes = "$lt_cv_prog_compiler_pic_works"; then
8748    case $lt_prog_compiler_pic in
8749     "" | " "*) ;;
8750     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8751     esac
8752else
8753    lt_prog_compiler_pic=
8754     lt_prog_compiler_can_build_shared=no
8755fi
8756
8757fi
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769#
8770# Check to make sure the static flag actually works.
8771#
8772wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8774$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8775if ${lt_cv_prog_compiler_static_works+:} false; then :
8776  $as_echo_n "(cached) " >&6
8777else
8778  lt_cv_prog_compiler_static_works=no
8779   save_LDFLAGS=$LDFLAGS
8780   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8781   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8782   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8783     # The linker can only warn and ignore the option if not recognized
8784     # So say no if there are warnings
8785     if test -s conftest.err; then
8786       # Append any errors to the config.log.
8787       cat conftest.err 1>&5
8788       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8789       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790       if diff conftest.exp conftest.er2 >/dev/null; then
8791         lt_cv_prog_compiler_static_works=yes
8792       fi
8793     else
8794       lt_cv_prog_compiler_static_works=yes
8795     fi
8796   fi
8797   $RM -r conftest*
8798   LDFLAGS=$save_LDFLAGS
8799
8800fi
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8802$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8803
8804if test yes = "$lt_cv_prog_compiler_static_works"; then
8805    :
8806else
8807    lt_prog_compiler_static=
8808fi
8809
8810
8811
8812
8813
8814
8815
8816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8818if ${lt_cv_prog_compiler_c_o+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  lt_cv_prog_compiler_c_o=no
8822   $RM -r conftest 2>/dev/null
8823   mkdir conftest
8824   cd conftest
8825   mkdir out
8826   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828   lt_compiler_flag="-o out/conftest2.$ac_objext"
8829   # Insert the option either (1) after the last *FLAGS variable, or
8830   # (2) before a word containing "conftest.", or (3) at the end.
8831   # Note that $ac_compile itself does not contain backslashes and begins
8832   # with a dollar sign (not a hyphen), so the echo should work correctly.
8833   lt_compile=`echo "$ac_compile" | $SED \
8834   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836   -e 's:$: $lt_compiler_flag:'`
8837   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838   (eval "$lt_compile" 2>out/conftest.err)
8839   ac_status=$?
8840   cat out/conftest.err >&5
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8843   then
8844     # The compiler can only warn and ignore the option if not recognized
8845     # So say no if there are warnings
8846     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8847     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8848     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849       lt_cv_prog_compiler_c_o=yes
8850     fi
8851   fi
8852   chmod u+w . 2>&5
8853   $RM conftest*
8854   # SGI C++ compiler will create directory out/ii_files/ for
8855   # template instantiation
8856   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8857   $RM out/* && rmdir out
8858   cd ..
8859   $RM -r conftest
8860   $RM conftest*
8861
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8864$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8865
8866
8867
8868
8869
8870
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873if ${lt_cv_prog_compiler_c_o+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  lt_cv_prog_compiler_c_o=no
8877   $RM -r conftest 2>/dev/null
8878   mkdir conftest
8879   cd conftest
8880   mkdir out
8881   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883   lt_compiler_flag="-o out/conftest2.$ac_objext"
8884   # Insert the option either (1) after the last *FLAGS variable, or
8885   # (2) before a word containing "conftest.", or (3) at the end.
8886   # Note that $ac_compile itself does not contain backslashes and begins
8887   # with a dollar sign (not a hyphen), so the echo should work correctly.
8888   lt_compile=`echo "$ac_compile" | $SED \
8889   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891   -e 's:$: $lt_compiler_flag:'`
8892   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893   (eval "$lt_compile" 2>out/conftest.err)
8894   ac_status=$?
8895   cat out/conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898   then
8899     # The compiler can only warn and ignore the option if not recognized
8900     # So say no if there are warnings
8901     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904       lt_cv_prog_compiler_c_o=yes
8905     fi
8906   fi
8907   chmod u+w . 2>&5
8908   $RM conftest*
8909   # SGI C++ compiler will create directory out/ii_files/ for
8910   # template instantiation
8911   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912   $RM out/* && rmdir out
8913   cd ..
8914   $RM -r conftest
8915   $RM conftest*
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924hard_links=nottested
8925if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8926  # do not overwrite the value of need_locks provided by the user
8927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8928$as_echo_n "checking if we can lock with hard links... " >&6; }
8929  hard_links=yes
8930  $RM conftest*
8931  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932  touch conftest.a
8933  ln conftest.a conftest.b 2>&5 || hard_links=no
8934  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8936$as_echo "$hard_links" >&6; }
8937  if test no = "$hard_links"; then
8938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8939$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8940    need_locks=warn
8941  fi
8942else
8943  need_locks=no
8944fi
8945
8946
8947
8948
8949
8950
8951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8952$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8953
8954  runpath_var=
8955  allow_undefined_flag=
8956  always_export_symbols=no
8957  archive_cmds=
8958  archive_expsym_cmds=
8959  compiler_needs_object=no
8960  enable_shared_with_static_runtimes=no
8961  export_dynamic_flag_spec=
8962  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8963  hardcode_automatic=no
8964  hardcode_direct=no
8965  hardcode_direct_absolute=no
8966  hardcode_libdir_flag_spec=
8967  hardcode_libdir_separator=
8968  hardcode_minus_L=no
8969  hardcode_shlibpath_var=unsupported
8970  inherit_rpath=no
8971  link_all_deplibs=unknown
8972  module_cmds=
8973  module_expsym_cmds=
8974  old_archive_from_new_cmds=
8975  old_archive_from_expsyms_cmds=
8976  thread_safe_flag_spec=
8977  whole_archive_flag_spec=
8978  # include_expsyms should be a list of space-separated symbols to be *always*
8979  # included in the symbol list
8980  include_expsyms=
8981  # exclude_expsyms can be an extended regexp of symbols to exclude
8982  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8983  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8984  # as well as any symbol that contains 'd'.
8985  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8986  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8987  # platforms (ab)use it in PIC code, but their linkers get confused if
8988  # the symbol is explicitly referenced.  Since portable code cannot
8989  # rely on this symbol name, it's probably fine to never include it in
8990  # preloaded symbol tables.
8991  # Exclude shared library initialization/finalization symbols.
8992  extract_expsyms_cmds=
8993
8994  case $host_os in
8995  cygwin* | mingw* | pw32* | cegcc*)
8996    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8997    # When not using gcc, we currently assume that we are using
8998    # Microsoft Visual C++.
8999    if test yes != "$GCC"; then
9000      with_gnu_ld=no
9001    fi
9002    ;;
9003  interix*)
9004    # we just hope/assume this is gcc and not c89 (= MSVC++)
9005    with_gnu_ld=yes
9006    ;;
9007  openbsd* | bitrig*)
9008    with_gnu_ld=no
9009    ;;
9010  esac
9011
9012  ld_shlibs=yes
9013
9014  # On some targets, GNU ld is compatible enough with the native linker
9015  # that we're better off using the native interface for both.
9016  lt_use_gnu_ld_interface=no
9017  if test yes = "$with_gnu_ld"; then
9018    case $host_os in
9019      aix*)
9020	# The AIX port of GNU ld has always aspired to compatibility
9021	# with the native linker.  However, as the warning in the GNU ld
9022	# block says, versions before 2.19.5* couldn't really create working
9023	# shared libraries, regardless of the interface used.
9024	case `$LD -v 2>&1` in
9025	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9026	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9027	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9028	  *)
9029	    lt_use_gnu_ld_interface=yes
9030	    ;;
9031	esac
9032	;;
9033      *)
9034	lt_use_gnu_ld_interface=yes
9035	;;
9036    esac
9037  fi
9038
9039  if test yes = "$lt_use_gnu_ld_interface"; then
9040    # If archive_cmds runs LD, not CC, wlarc should be empty
9041    wlarc='$wl'
9042
9043    # Set some defaults for GNU ld with shared library support. These
9044    # are reset later if shared libraries are not supported. Putting them
9045    # here allows them to be overridden if necessary.
9046    runpath_var=LD_RUN_PATH
9047    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9048    export_dynamic_flag_spec='$wl--export-dynamic'
9049    # ancient GNU ld didn't support --whole-archive et. al.
9050    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9051      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9052    else
9053      whole_archive_flag_spec=
9054    fi
9055    supports_anon_versioning=no
9056    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9057      *GNU\ gold*) supports_anon_versioning=yes ;;
9058      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9059      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9060      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9061      *\ 2.11.*) ;; # other 2.11 versions
9062      *) supports_anon_versioning=yes ;;
9063    esac
9064
9065    # See if GNU ld supports shared libraries.
9066    case $host_os in
9067    aix[3-9]*)
9068      # On AIX/PPC, the GNU linker is very broken
9069      if test ia64 != "$host_cpu"; then
9070	ld_shlibs=no
9071	cat <<_LT_EOF 1>&2
9072
9073*** Warning: the GNU linker, at least up to release 2.19, is reported
9074*** to be unable to reliably create shared libraries on AIX.
9075*** Therefore, libtool is disabling shared libraries support.  If you
9076*** really care for shared libraries, you may want to install binutils
9077*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9078*** You will then need to restart the configuration process.
9079
9080_LT_EOF
9081      fi
9082      ;;
9083
9084    amigaos*)
9085      case $host_cpu in
9086      powerpc)
9087            # see comment about AmigaOS4 .so support
9088            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9089            archive_expsym_cmds=''
9090        ;;
9091      m68k)
9092            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)'
9093            hardcode_libdir_flag_spec='-L$libdir'
9094            hardcode_minus_L=yes
9095        ;;
9096      esac
9097      ;;
9098
9099    beos*)
9100      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9101	allow_undefined_flag=unsupported
9102	# Joseph Beckenbach <[email protected]> says some releases of gcc
9103	# support --undefined.  This deserves some investigation.  FIXME
9104	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9105      else
9106	ld_shlibs=no
9107      fi
9108      ;;
9109
9110    cygwin* | mingw* | pw32* | cegcc*)
9111      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9112      # as there is no search path for DLLs.
9113      hardcode_libdir_flag_spec='-L$libdir'
9114      export_dynamic_flag_spec='$wl--export-all-symbols'
9115      allow_undefined_flag=unsupported
9116      always_export_symbols=no
9117      enable_shared_with_static_runtimes=yes
9118      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'
9119      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9120
9121      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9122        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9123	# If the export-symbols file already is a .def file, use it as
9124	# is; otherwise, prepend EXPORTS...
9125	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9126          cp $export_symbols $output_objdir/$soname.def;
9127        else
9128          echo EXPORTS > $output_objdir/$soname.def;
9129          cat $export_symbols >> $output_objdir/$soname.def;
9130        fi~
9131        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132      else
9133	ld_shlibs=no
9134      fi
9135      ;;
9136
9137    haiku*)
9138      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9139      link_all_deplibs=yes
9140      ;;
9141
9142    os2*)
9143      hardcode_libdir_flag_spec='-L$libdir'
9144      hardcode_minus_L=yes
9145      allow_undefined_flag=unsupported
9146      shrext_cmds=.dll
9147      archive_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	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9152	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9153	emximp -o $lib $output_objdir/$libname.def'
9154      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9155	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9156	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9157	$ECHO EXPORTS >> $output_objdir/$libname.def~
9158	prefix_cmds="$SED"~
9159	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9160	  prefix_cmds="$prefix_cmds -e 1d";
9161	fi~
9162	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9163	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9164	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9165	emximp -o $lib $output_objdir/$libname.def'
9166      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9167      enable_shared_with_static_runtimes=yes
9168      ;;
9169
9170    interix[3-9]*)
9171      hardcode_direct=no
9172      hardcode_shlibpath_var=no
9173      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9174      export_dynamic_flag_spec='$wl-E'
9175      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9176      # Instead, shared libraries are loaded at an image base (0x10000000 by
9177      # default) and relocated if they conflict, which is a slow very memory
9178      # consuming and fragmenting process.  To avoid this, we pick a random,
9179      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9180      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9181      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9182      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'
9183      ;;
9184
9185    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9186      tmp_diet=no
9187      if test linux-dietlibc = "$host_os"; then
9188	case $cc_basename in
9189	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9190	esac
9191      fi
9192      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9193	 && test no = "$tmp_diet"
9194      then
9195	tmp_addflag=' $pic_flag'
9196	tmp_sharedflag='-shared'
9197	case $cc_basename,$host_cpu in
9198        pgcc*)				# Portland Group C compiler
9199	  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'
9200	  tmp_addflag=' $pic_flag'
9201	  ;;
9202	pgf77* | pgf90* | pgf95* | pgfortran*)
9203					# Portland Group f77 and f90 compilers
9204	  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'
9205	  tmp_addflag=' $pic_flag -Mnomain' ;;
9206	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9207	  tmp_addflag=' -i_dynamic' ;;
9208	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9209	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9210	ifc* | ifort*)			# Intel Fortran compiler
9211	  tmp_addflag=' -nofor_main' ;;
9212	lf95*)				# Lahey Fortran 8.1
9213	  whole_archive_flag_spec=
9214	  tmp_sharedflag='--shared' ;;
9215        nagfor*)                        # NAGFOR 5.3
9216          tmp_sharedflag='-Wl,-shared' ;;
9217	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218	  tmp_sharedflag='-qmkshrobj'
9219	  tmp_addflag= ;;
9220	nvcc*)	# Cuda Compiler Driver 2.2
9221	  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'
9222	  compiler_needs_object=yes
9223	  ;;
9224	esac
9225	case `$CC -V 2>&1 | sed 5q` in
9226	*Sun\ C*)			# Sun C 5.9
9227	  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'
9228	  compiler_needs_object=yes
9229	  tmp_sharedflag='-G' ;;
9230	*Sun\ F*)			# Sun Fortran 8.3
9231	  tmp_sharedflag='-G' ;;
9232	esac
9233	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9234
9235        if test yes = "$supports_anon_versioning"; then
9236          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238            echo "local: *; };" >> $output_objdir/$libname.ver~
9239            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9240        fi
9241
9242	case $cc_basename in
9243	tcc*)
9244	  export_dynamic_flag_spec='-rdynamic'
9245	  ;;
9246	xlf* | bgf* | bgxlf* | mpixlf*)
9247	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9248	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9249	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9250	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9251	  if test yes = "$supports_anon_versioning"; then
9252	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9253              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9254              echo "local: *; };" >> $output_objdir/$libname.ver~
9255              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9256	  fi
9257	  ;;
9258	esac
9259      else
9260        ld_shlibs=no
9261      fi
9262      ;;
9263
9264    netbsd*)
9265      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9266	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9267	wlarc=
9268      else
9269	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9271      fi
9272      ;;
9273
9274    solaris*)
9275      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9276	ld_shlibs=no
9277	cat <<_LT_EOF 1>&2
9278
9279*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9280*** create shared libraries on Solaris systems.  Therefore, libtool
9281*** is disabling shared libraries support.  We urge you to upgrade GNU
9282*** binutils to release 2.9.1 or newer.  Another option is to modify
9283*** your PATH or compiler configuration so that the native linker is
9284*** used, and then restart.
9285
9286_LT_EOF
9287      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9290      else
9291	ld_shlibs=no
9292      fi
9293      ;;
9294
9295    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9296      case `$LD -v 2>&1` in
9297        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9298	ld_shlibs=no
9299	cat <<_LT_EOF 1>&2
9300
9301*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9302*** reliably create shared libraries on SCO systems.  Therefore, libtool
9303*** is disabling shared libraries support.  We urge you to upgrade GNU
9304*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9305*** your PATH or compiler configuration so that the native linker is
9306*** used, and then restart.
9307
9308_LT_EOF
9309	;;
9310	*)
9311	  # For security reasons, it is highly recommended that you always
9312	  # use absolute paths for naming shared libraries, and exclude the
9313	  # DT_RUNPATH tag from executables and libraries.  But doing so
9314	  # requires that you compile everything twice, which is a pain.
9315	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9316	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9317	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9319	  else
9320	    ld_shlibs=no
9321	  fi
9322	;;
9323      esac
9324      ;;
9325
9326    sunos4*)
9327      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328      wlarc=
9329      hardcode_direct=yes
9330      hardcode_shlibpath_var=no
9331      ;;
9332
9333    *)
9334      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9336	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9337      else
9338	ld_shlibs=no
9339      fi
9340      ;;
9341    esac
9342
9343    if test no = "$ld_shlibs"; then
9344      runpath_var=
9345      hardcode_libdir_flag_spec=
9346      export_dynamic_flag_spec=
9347      whole_archive_flag_spec=
9348    fi
9349  else
9350    # PORTME fill in a description of your system's linker (not GNU ld)
9351    case $host_os in
9352    aix3*)
9353      allow_undefined_flag=unsupported
9354      always_export_symbols=yes
9355      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'
9356      # Note: this linker hardcodes the directories in LIBPATH if there
9357      # are no directories specified by -L.
9358      hardcode_minus_L=yes
9359      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9360	# Neither direct hardcoding nor static linking is supported with a
9361	# broken collect2.
9362	hardcode_direct=unsupported
9363      fi
9364      ;;
9365
9366    aix[4-9]*)
9367      if test ia64 = "$host_cpu"; then
9368	# On IA64, the linker does run time linking by default, so we don't
9369	# have to do anything special.
9370	aix_use_runtimelinking=no
9371	exp_sym_flag='-Bexport'
9372	no_entry_flag=
9373      else
9374	# If we're using GNU nm, then we don't want the "-C" option.
9375	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9376	# Without the "-l" option, or with the "-B" option, AIX nm treats
9377	# weak defined symbols like other global defined symbols, whereas
9378	# GNU nm marks them as "W".
9379	# While the 'weak' keyword is ignored in the Export File, we need
9380	# it in the Import File for the 'aix-soname' feature, so we have
9381	# to replace the "-B" option with "-P" for AIX nm.
9382	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9383	  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'
9384	else
9385	  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'
9386	fi
9387	aix_use_runtimelinking=no
9388
9389	# Test if we are trying to use run time linking or normal
9390	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9391	# have runtime linking enabled, and use it for executables.
9392	# For shared libraries, we enable/disable runtime linking
9393	# depending on the kind of the shared library created -
9394	# when "with_aix_soname,aix_use_runtimelinking" is:
9395	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9396	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9397	#            lib.a           static archive
9398	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9399	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9400	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9401	#            lib.a(lib.so.V) shared, rtl:no
9402	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9403	#            lib.a           static archive
9404	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9405	  for ld_flag in $LDFLAGS; do
9406	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9407	    aix_use_runtimelinking=yes
9408	    break
9409	  fi
9410	  done
9411	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9412	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9413	    # so we don't have lib.a shared libs to link our executables.
9414	    # We have to force runtime linking in this case.
9415	    aix_use_runtimelinking=yes
9416	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9417	  fi
9418	  ;;
9419	esac
9420
9421	exp_sym_flag='-bexport'
9422	no_entry_flag='-bnoentry'
9423      fi
9424
9425      # When large executables or shared objects are built, AIX ld can
9426      # have problems creating the table of contents.  If linking a library
9427      # or program results in "error TOC overflow" add -mminimal-toc to
9428      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9429      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430
9431      archive_cmds=''
9432      hardcode_direct=yes
9433      hardcode_direct_absolute=yes
9434      hardcode_libdir_separator=':'
9435      link_all_deplibs=yes
9436      file_list_spec='$wl-f,'
9437      case $with_aix_soname,$aix_use_runtimelinking in
9438      aix,*) ;; # traditional, no import file
9439      svr4,* | *,yes) # use import file
9440	# The Import File defines what to hardcode.
9441	hardcode_direct=no
9442	hardcode_direct_absolute=no
9443	;;
9444      esac
9445
9446      if test yes = "$GCC"; then
9447	case $host_os in aix4.[012]|aix4.[012].*)
9448	# We only want to do this on AIX 4.2 and lower, the check
9449	# below for broken collect2 doesn't work under 4.3+
9450	  collect2name=`$CC -print-prog-name=collect2`
9451	  if test -f "$collect2name" &&
9452	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9453	  then
9454	  # We have reworked collect2
9455	  :
9456	  else
9457	  # We have old collect2
9458	  hardcode_direct=unsupported
9459	  # It fails to find uninstalled libraries when the uninstalled
9460	  # path is not listed in the libpath.  Setting hardcode_minus_L
9461	  # to unsupported forces relinking
9462	  hardcode_minus_L=yes
9463	  hardcode_libdir_flag_spec='-L$libdir'
9464	  hardcode_libdir_separator=
9465	  fi
9466	  ;;
9467	esac
9468	shared_flag='-shared'
9469	if test yes = "$aix_use_runtimelinking"; then
9470	  shared_flag="$shared_flag "'$wl-G'
9471	fi
9472	# Need to ensure runtime linking is disabled for the traditional
9473	# shared library, or the linker may eventually find shared libraries
9474	# /with/ Import File - we do not want to mix them.
9475	shared_flag_aix='-shared'
9476	shared_flag_svr4='-shared $wl-G'
9477      else
9478	# not using gcc
9479	if test ia64 = "$host_cpu"; then
9480	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9481	# chokes on -Wl,-G. The following line is correct:
9482	  shared_flag='-G'
9483	else
9484	  if test yes = "$aix_use_runtimelinking"; then
9485	    shared_flag='$wl-G'
9486	  else
9487	    shared_flag='$wl-bM:SRE'
9488	  fi
9489	  shared_flag_aix='$wl-bM:SRE'
9490	  shared_flag_svr4='$wl-G'
9491	fi
9492      fi
9493
9494      export_dynamic_flag_spec='$wl-bexpall'
9495      # It seems that -bexpall does not export symbols beginning with
9496      # underscore (_), so it is better to generate a list of symbols to export.
9497      always_export_symbols=yes
9498      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9499	# Warning - without using the other runtime loading flags (-brtl),
9500	# -berok will link without error, but may produce a broken library.
9501	allow_undefined_flag='-berok'
9502        # Determine the default libpath from the value encoded in an
9503        # empty executable.
9504        if test set = "${lt_cv_aix_libpath+set}"; then
9505  aix_libpath=$lt_cv_aix_libpath
9506else
9507  if ${lt_cv_aix_libpath_+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512
9513int
9514main ()
9515{
9516
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522
9523  lt_aix_libpath_sed='
9524      /Import File Strings/,/^$/ {
9525	  /^0/ {
9526	      s/^0  *\([^ ]*\) *$/\1/
9527	      p
9528	  }
9529      }'
9530  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9531  # Check for a 64-bit object if we didn't find anything.
9532  if test -z "$lt_cv_aix_libpath_"; then
9533    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9534  fi
9535fi
9536rm -f core conftest.err conftest.$ac_objext \
9537    conftest$ac_exeext conftest.$ac_ext
9538  if test -z "$lt_cv_aix_libpath_"; then
9539    lt_cv_aix_libpath_=/usr/lib:/lib
9540  fi
9541
9542fi
9543
9544  aix_libpath=$lt_cv_aix_libpath_
9545fi
9546
9547        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9548        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
9549      else
9550	if test ia64 = "$host_cpu"; then
9551	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9552	  allow_undefined_flag="-z nodefs"
9553	  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"
9554	else
9555	 # Determine the default libpath from the value encoded in an
9556	 # empty executable.
9557	 if test set = "${lt_cv_aix_libpath+set}"; then
9558  aix_libpath=$lt_cv_aix_libpath
9559else
9560  if ${lt_cv_aix_libpath_+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565
9566int
9567main ()
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"; then :
9575
9576  lt_aix_libpath_sed='
9577      /Import File Strings/,/^$/ {
9578	  /^0/ {
9579	      s/^0  *\([^ ]*\) *$/\1/
9580	      p
9581	  }
9582      }'
9583  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584  # Check for a 64-bit object if we didn't find anything.
9585  if test -z "$lt_cv_aix_libpath_"; then
9586    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587  fi
9588fi
9589rm -f core conftest.err conftest.$ac_objext \
9590    conftest$ac_exeext conftest.$ac_ext
9591  if test -z "$lt_cv_aix_libpath_"; then
9592    lt_cv_aix_libpath_=/usr/lib:/lib
9593  fi
9594
9595fi
9596
9597  aix_libpath=$lt_cv_aix_libpath_
9598fi
9599
9600	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9601	  # Warning - without using the other run time loading flags,
9602	  # -berok will link without error, but may produce a broken library.
9603	  no_undefined_flag=' $wl-bernotok'
9604	  allow_undefined_flag=' $wl-berok'
9605	  if test yes = "$with_gnu_ld"; then
9606	    # We only use this code for GNU lds that support --whole-archive.
9607	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9608	  else
9609	    # Exported symbols can be pulled into shared objects from archives
9610	    whole_archive_flag_spec='$convenience'
9611	  fi
9612	  archive_cmds_need_lc=yes
9613	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9614	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9615	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9616	  if test svr4 != "$with_aix_soname"; then
9617	    # This is similar to how AIX traditionally builds its shared libraries.
9618	    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'
9619	  fi
9620	  if test aix != "$with_aix_soname"; then
9621	    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'
9622	  else
9623	    # used by -dlpreopen to get the symbols
9624	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9625	  fi
9626	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9627	fi
9628      fi
9629      ;;
9630
9631    amigaos*)
9632      case $host_cpu in
9633      powerpc)
9634            # see comment about AmigaOS4 .so support
9635            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9636            archive_expsym_cmds=''
9637        ;;
9638      m68k)
9639            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)'
9640            hardcode_libdir_flag_spec='-L$libdir'
9641            hardcode_minus_L=yes
9642        ;;
9643      esac
9644      ;;
9645
9646    bsdi[45]*)
9647      export_dynamic_flag_spec=-rdynamic
9648      ;;
9649
9650    cygwin* | mingw* | pw32* | cegcc*)
9651      # When not using gcc, we currently assume that we are using
9652      # Microsoft Visual C++.
9653      # hardcode_libdir_flag_spec is actually meaningless, as there is
9654      # no search path for DLLs.
9655      case $cc_basename in
9656      cl*)
9657	# Native MSVC
9658	hardcode_libdir_flag_spec=' '
9659	allow_undefined_flag=unsupported
9660	always_export_symbols=yes
9661	file_list_spec='@'
9662	# Tell ltmain to make .lib files, not .a files.
9663	libext=lib
9664	# Tell ltmain to make .dll files, not .so files.
9665	shrext_cmds=.dll
9666	# FIXME: Setting linknames here is a bad hack.
9667	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9668	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9669            cp "$export_symbols" "$output_objdir/$soname.def";
9670            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9671          else
9672            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9673          fi~
9674          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9675          linknames='
9676	# The linker will not automatically build a static lib if we build a DLL.
9677	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9678	enable_shared_with_static_runtimes=yes
9679	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9680	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9681	# Don't use ranlib
9682	old_postinstall_cmds='chmod 644 $oldlib'
9683	postlink_cmds='lt_outputfile="@OUTPUT@"~
9684          lt_tool_outputfile="@TOOL_OUTPUT@"~
9685          case $lt_outputfile in
9686            *.exe|*.EXE) ;;
9687            *)
9688              lt_outputfile=$lt_outputfile.exe
9689              lt_tool_outputfile=$lt_tool_outputfile.exe
9690              ;;
9691          esac~
9692          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9693            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9694            $RM "$lt_outputfile.manifest";
9695          fi'
9696	;;
9697      *)
9698	# Assume MSVC wrapper
9699	hardcode_libdir_flag_spec=' '
9700	allow_undefined_flag=unsupported
9701	# Tell ltmain to make .lib files, not .a files.
9702	libext=lib
9703	# Tell ltmain to make .dll files, not .so files.
9704	shrext_cmds=.dll
9705	# FIXME: Setting linknames here is a bad hack.
9706	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9707	# The linker will automatically build a .lib file if we build a DLL.
9708	old_archive_from_new_cmds='true'
9709	# FIXME: Should let the user specify the lib program.
9710	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9711	enable_shared_with_static_runtimes=yes
9712	;;
9713      esac
9714      ;;
9715
9716    darwin* | rhapsody*)
9717
9718
9719  archive_cmds_need_lc=no
9720  hardcode_direct=no
9721  hardcode_automatic=yes
9722  hardcode_shlibpath_var=unsupported
9723  if test yes = "$lt_cv_ld_force_load"; then
9724    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\"`'
9725
9726  else
9727    whole_archive_flag_spec=''
9728  fi
9729  link_all_deplibs=yes
9730  allow_undefined_flag=$_lt_dar_allow_undefined
9731  case $cc_basename in
9732     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9733     *) _lt_dar_can_shared=$GCC ;;
9734  esac
9735  if test yes = "$_lt_dar_can_shared"; then
9736    output_verbose_link_cmd=func_echo_all
9737    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9738    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9739    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"
9740    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"
9741
9742  else
9743  ld_shlibs=no
9744  fi
9745
9746      ;;
9747
9748    dgux*)
9749      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750      hardcode_libdir_flag_spec='-L$libdir'
9751      hardcode_shlibpath_var=no
9752      ;;
9753
9754    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9755    # support.  Future versions do this automatically, but an explicit c++rt0.o
9756    # does not break anything, and helps significantly (at the cost of a little
9757    # extra space).
9758    freebsd2.2*)
9759      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9760      hardcode_libdir_flag_spec='-R$libdir'
9761      hardcode_direct=yes
9762      hardcode_shlibpath_var=no
9763      ;;
9764
9765    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9766    freebsd2.*)
9767      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9768      hardcode_direct=yes
9769      hardcode_minus_L=yes
9770      hardcode_shlibpath_var=no
9771      ;;
9772
9773    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9774    freebsd* | dragonfly*)
9775      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9776      hardcode_libdir_flag_spec='-R$libdir'
9777      hardcode_direct=yes
9778      hardcode_shlibpath_var=no
9779      ;;
9780
9781    hpux9*)
9782      if test yes = "$GCC"; then
9783	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'
9784      else
9785	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'
9786      fi
9787      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9788      hardcode_libdir_separator=:
9789      hardcode_direct=yes
9790
9791      # hardcode_minus_L: Not really in the search PATH,
9792      # but as the default location of the library.
9793      hardcode_minus_L=yes
9794      export_dynamic_flag_spec='$wl-E'
9795      ;;
9796
9797    hpux10*)
9798      if test yes,no = "$GCC,$with_gnu_ld"; then
9799	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9800      else
9801	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9802      fi
9803      if test no = "$with_gnu_ld"; then
9804	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9805	hardcode_libdir_separator=:
9806	hardcode_direct=yes
9807	hardcode_direct_absolute=yes
9808	export_dynamic_flag_spec='$wl-E'
9809	# hardcode_minus_L: Not really in the search PATH,
9810	# but as the default location of the library.
9811	hardcode_minus_L=yes
9812      fi
9813      ;;
9814
9815    hpux11*)
9816      if test yes,no = "$GCC,$with_gnu_ld"; then
9817	case $host_cpu in
9818	hppa*64*)
9819	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9820	  ;;
9821	ia64*)
9822	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823	  ;;
9824	*)
9825	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826	  ;;
9827	esac
9828      else
9829	case $host_cpu in
9830	hppa*64*)
9831	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9832	  ;;
9833	ia64*)
9834	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835	  ;;
9836	*)
9837
9838	  # Older versions of the 11.00 compiler do not understand -b yet
9839	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9840	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9841$as_echo_n "checking if $CC understands -b... " >&6; }
9842if ${lt_cv_prog_compiler__b+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  lt_cv_prog_compiler__b=no
9846   save_LDFLAGS=$LDFLAGS
9847   LDFLAGS="$LDFLAGS -b"
9848   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9849   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9850     # The linker can only warn and ignore the option if not recognized
9851     # So say no if there are warnings
9852     if test -s conftest.err; then
9853       # Append any errors to the config.log.
9854       cat conftest.err 1>&5
9855       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9856       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857       if diff conftest.exp conftest.er2 >/dev/null; then
9858         lt_cv_prog_compiler__b=yes
9859       fi
9860     else
9861       lt_cv_prog_compiler__b=yes
9862     fi
9863   fi
9864   $RM -r conftest*
9865   LDFLAGS=$save_LDFLAGS
9866
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9869$as_echo "$lt_cv_prog_compiler__b" >&6; }
9870
9871if test yes = "$lt_cv_prog_compiler__b"; then
9872    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873else
9874    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9875fi
9876
9877	  ;;
9878	esac
9879      fi
9880      if test no = "$with_gnu_ld"; then
9881	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9882	hardcode_libdir_separator=:
9883
9884	case $host_cpu in
9885	hppa*64*|ia64*)
9886	  hardcode_direct=no
9887	  hardcode_shlibpath_var=no
9888	  ;;
9889	*)
9890	  hardcode_direct=yes
9891	  hardcode_direct_absolute=yes
9892	  export_dynamic_flag_spec='$wl-E'
9893
9894	  # hardcode_minus_L: Not really in the search PATH,
9895	  # but as the default location of the library.
9896	  hardcode_minus_L=yes
9897	  ;;
9898	esac
9899      fi
9900      ;;
9901
9902    irix5* | irix6* | nonstopux*)
9903      if test yes = "$GCC"; then
9904	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'
9905	# Try to use the -exported_symbol ld option, if it does not
9906	# work, assume that -exports_file does not work either and
9907	# implicitly export all symbols.
9908	# This should be the same for all languages, so no per-tag cache variable.
9909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9910$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9911if ${lt_cv_irix_exported_symbol+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  save_LDFLAGS=$LDFLAGS
9915	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9916	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int foo (void) { return 0; }
9919_ACEOF
9920if ac_fn_c_try_link "$LINENO"; then :
9921  lt_cv_irix_exported_symbol=yes
9922else
9923  lt_cv_irix_exported_symbol=no
9924fi
9925rm -f core conftest.err conftest.$ac_objext \
9926    conftest$ac_exeext conftest.$ac_ext
9927           LDFLAGS=$save_LDFLAGS
9928fi
9929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9930$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9931	if test yes = "$lt_cv_irix_exported_symbol"; then
9932          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'
9933	fi
9934      else
9935	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'
9936	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'
9937      fi
9938      archive_cmds_need_lc='no'
9939      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9940      hardcode_libdir_separator=:
9941      inherit_rpath=yes
9942      link_all_deplibs=yes
9943      ;;
9944
9945    linux*)
9946      case $cc_basename in
9947      tcc*)
9948	# Fabrice Bellard et al's Tiny C Compiler
9949	ld_shlibs=yes
9950	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951	;;
9952      esac
9953      ;;
9954
9955    netbsd*)
9956      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9957	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9958      else
9959	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9960      fi
9961      hardcode_libdir_flag_spec='-R$libdir'
9962      hardcode_direct=yes
9963      hardcode_shlibpath_var=no
9964      ;;
9965
9966    newsos6)
9967      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968      hardcode_direct=yes
9969      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9970      hardcode_libdir_separator=:
9971      hardcode_shlibpath_var=no
9972      ;;
9973
9974    *nto* | *qnx*)
9975      ;;
9976
9977    openbsd* | bitrig*)
9978      if test -f /usr/libexec/ld.so; then
9979	hardcode_direct=yes
9980	hardcode_shlibpath_var=no
9981	hardcode_direct_absolute=yes
9982	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9983	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9984	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9985	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9986	  export_dynamic_flag_spec='$wl-E'
9987	else
9988	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9989	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9990	fi
9991      else
9992	ld_shlibs=no
9993      fi
9994      ;;
9995
9996    os2*)
9997      hardcode_libdir_flag_spec='-L$libdir'
9998      hardcode_minus_L=yes
9999      allow_undefined_flag=unsupported
10000      shrext_cmds=.dll
10001      archive_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	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10006	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10007	emximp -o $lib $output_objdir/$libname.def'
10008      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10009	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10010	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10011	$ECHO EXPORTS >> $output_objdir/$libname.def~
10012	prefix_cmds="$SED"~
10013	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10014	  prefix_cmds="$prefix_cmds -e 1d";
10015	fi~
10016	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10017	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10018	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10019	emximp -o $lib $output_objdir/$libname.def'
10020      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10021      enable_shared_with_static_runtimes=yes
10022      ;;
10023
10024    osf3*)
10025      if test yes = "$GCC"; then
10026	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10027	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'
10028      else
10029	allow_undefined_flag=' -expect_unresolved \*'
10030	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'
10031      fi
10032      archive_cmds_need_lc='no'
10033      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10034      hardcode_libdir_separator=:
10035      ;;
10036
10037    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10038      if test yes = "$GCC"; then
10039	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10040	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'
10041	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10042      else
10043	allow_undefined_flag=' -expect_unresolved \*'
10044	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'
10045	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~
10046          $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'
10047
10048	# Both c and cxx compiler support -rpath directly
10049	hardcode_libdir_flag_spec='-rpath $libdir'
10050      fi
10051      archive_cmds_need_lc='no'
10052      hardcode_libdir_separator=:
10053      ;;
10054
10055    solaris*)
10056      no_undefined_flag=' -z defs'
10057      if test yes = "$GCC"; then
10058	wlarc='$wl'
10059	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10060	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061          $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'
10062      else
10063	case `$CC -V 2>&1` in
10064	*"Compilers 5.0"*)
10065	  wlarc=''
10066	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10069	  ;;
10070	*)
10071	  wlarc='$wl'
10072	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10073	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10074            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10075	  ;;
10076	esac
10077      fi
10078      hardcode_libdir_flag_spec='-R$libdir'
10079      hardcode_shlibpath_var=no
10080      case $host_os in
10081      solaris2.[0-5] | solaris2.[0-5].*) ;;
10082      *)
10083	# The compiler driver will combine and reorder linker options,
10084	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10085	# but is careful enough not to reorder.
10086	# Supported since Solaris 2.6 (maybe 2.5.1?)
10087	if test yes = "$GCC"; then
10088	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10089	else
10090	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10091	fi
10092	;;
10093      esac
10094      link_all_deplibs=yes
10095      ;;
10096
10097    sunos4*)
10098      if test sequent = "$host_vendor"; then
10099	# Use $CC to link under sequent, because it throws in some extra .o
10100	# files that make .init and .fini sections work.
10101	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10102      else
10103	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10104      fi
10105      hardcode_libdir_flag_spec='-L$libdir'
10106      hardcode_direct=yes
10107      hardcode_minus_L=yes
10108      hardcode_shlibpath_var=no
10109      ;;
10110
10111    sysv4)
10112      case $host_vendor in
10113	sni)
10114	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115	  hardcode_direct=yes # is this really true???
10116	;;
10117	siemens)
10118	  ## LD is ld it makes a PLAMLIB
10119	  ## CC just makes a GrossModule.
10120	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10121	  reload_cmds='$CC -r -o $output$reload_objs'
10122	  hardcode_direct=no
10123        ;;
10124	motorola)
10125	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10126	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10127	;;
10128      esac
10129      runpath_var='LD_RUN_PATH'
10130      hardcode_shlibpath_var=no
10131      ;;
10132
10133    sysv4.3*)
10134      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135      hardcode_shlibpath_var=no
10136      export_dynamic_flag_spec='-Bexport'
10137      ;;
10138
10139    sysv4*MP*)
10140      if test -d /usr/nec; then
10141	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142	hardcode_shlibpath_var=no
10143	runpath_var=LD_RUN_PATH
10144	hardcode_runpath_var=yes
10145	ld_shlibs=yes
10146      fi
10147      ;;
10148
10149    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10150      no_undefined_flag='$wl-z,text'
10151      archive_cmds_need_lc=no
10152      hardcode_shlibpath_var=no
10153      runpath_var='LD_RUN_PATH'
10154
10155      if test yes = "$GCC"; then
10156	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158      else
10159	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161      fi
10162      ;;
10163
10164    sysv5* | sco3.2v5* | sco5v6*)
10165      # Note: We CANNOT use -z defs as we might desire, because we do not
10166      # link with -lc, and that would cause any symbols used from libc to
10167      # always be unresolved, which means just about no library would
10168      # ever link correctly.  If we're not using GNU ld we use -z text
10169      # though, which does catch some bad symbols but isn't as heavy-handed
10170      # as -z defs.
10171      no_undefined_flag='$wl-z,text'
10172      allow_undefined_flag='$wl-z,nodefs'
10173      archive_cmds_need_lc=no
10174      hardcode_shlibpath_var=no
10175      hardcode_libdir_flag_spec='$wl-R,$libdir'
10176      hardcode_libdir_separator=':'
10177      link_all_deplibs=yes
10178      export_dynamic_flag_spec='$wl-Bexport'
10179      runpath_var='LD_RUN_PATH'
10180
10181      if test yes = "$GCC"; then
10182	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184      else
10185	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187      fi
10188      ;;
10189
10190    uts4*)
10191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192      hardcode_libdir_flag_spec='-L$libdir'
10193      hardcode_shlibpath_var=no
10194      ;;
10195
10196    *)
10197      ld_shlibs=no
10198      ;;
10199    esac
10200
10201    if test sni = "$host_vendor"; then
10202      case $host in
10203      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10204	export_dynamic_flag_spec='$wl-Blargedynsym'
10205	;;
10206      esac
10207    fi
10208  fi
10209
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10211$as_echo "$ld_shlibs" >&6; }
10212test no = "$ld_shlibs" && can_build_shared=no
10213
10214with_gnu_ld=$with_gnu_ld
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230#
10231# Do we need to explicitly link libc?
10232#
10233case "x$archive_cmds_need_lc" in
10234x|xyes)
10235  # Assume -lc should be added
10236  archive_cmds_need_lc=yes
10237
10238  if test yes,yes = "$GCC,$enable_shared"; then
10239    case $archive_cmds in
10240    *'~'*)
10241      # FIXME: we may have to deal with multi-command sequences.
10242      ;;
10243    '$CC '*)
10244      # Test whether the compiler implicitly links with -lc since on some
10245      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10246      # to ld, don't add -lc before -lgcc.
10247      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10248$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10249if ${lt_cv_archive_cmds_need_lc+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  $RM conftest*
10253	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10254
10255	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10256  (eval $ac_compile) 2>&5
10257  ac_status=$?
10258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10259  test $ac_status = 0; } 2>conftest.err; then
10260	  soname=conftest
10261	  lib=conftest
10262	  libobjs=conftest.$ac_objext
10263	  deplibs=
10264	  wl=$lt_prog_compiler_wl
10265	  pic_flag=$lt_prog_compiler_pic
10266	  compiler_flags=-v
10267	  linker_flags=-v
10268	  verstring=
10269	  output_objdir=.
10270	  libname=conftest
10271	  lt_save_allow_undefined_flag=$allow_undefined_flag
10272	  allow_undefined_flag=
10273	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10274  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10275  ac_status=$?
10276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10277  test $ac_status = 0; }
10278	  then
10279	    lt_cv_archive_cmds_need_lc=no
10280	  else
10281	    lt_cv_archive_cmds_need_lc=yes
10282	  fi
10283	  allow_undefined_flag=$lt_save_allow_undefined_flag
10284	else
10285	  cat conftest.err 1>&5
10286	fi
10287	$RM conftest*
10288
10289fi
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10291$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10292      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10293      ;;
10294    esac
10295  fi
10296  ;;
10297esac
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
10444
10445
10446
10447
10448
10449
10450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10451$as_echo_n "checking dynamic linker characteristics... " >&6; }
10452
10453if test yes = "$GCC"; then
10454  case $host_os in
10455    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10456    *) lt_awk_arg='/^libraries:/' ;;
10457  esac
10458  case $host_os in
10459    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10460    *) lt_sed_strip_eq='s|=/|/|g' ;;
10461  esac
10462  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10463  case $lt_search_path_spec in
10464  *\;*)
10465    # if the path contains ";" then we assume it to be the separator
10466    # otherwise default to the standard path separator (i.e. ":") - it is
10467    # assumed that no part of a normal pathname contains ";" but that should
10468    # okay in the real world where ";" in dirpaths is itself problematic.
10469    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10470    ;;
10471  *)
10472    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10473    ;;
10474  esac
10475  # Ok, now we have the path, separated by spaces, we can step through it
10476  # and add multilib dir if necessary...
10477  lt_tmp_lt_search_path_spec=
10478  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10479  # ...but if some path component already ends with the multilib dir we assume
10480  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10481  case "$lt_multi_os_dir; $lt_search_path_spec " in
10482  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10483    lt_multi_os_dir=
10484    ;;
10485  esac
10486  for lt_sys_path in $lt_search_path_spec; do
10487    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10488      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10489    elif test -n "$lt_multi_os_dir"; then
10490      test -d "$lt_sys_path" && \
10491	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10492    fi
10493  done
10494  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10495BEGIN {RS = " "; FS = "/|\n";} {
10496  lt_foo = "";
10497  lt_count = 0;
10498  for (lt_i = NF; lt_i > 0; lt_i--) {
10499    if ($lt_i != "" && $lt_i != ".") {
10500      if ($lt_i == "..") {
10501        lt_count++;
10502      } else {
10503        if (lt_count == 0) {
10504          lt_foo = "/" $lt_i lt_foo;
10505        } else {
10506          lt_count--;
10507        }
10508      }
10509    }
10510  }
10511  if (lt_foo != "") { lt_freq[lt_foo]++; }
10512  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10513}'`
10514  # AWK program above erroneously prepends '/' to C:/dos/paths
10515  # for these hosts.
10516  case $host_os in
10517    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10518      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10519  esac
10520  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10521else
10522  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10523fi
10524library_names_spec=
10525libname_spec='lib$name'
10526soname_spec=
10527shrext_cmds=.so
10528postinstall_cmds=
10529postuninstall_cmds=
10530finish_cmds=
10531finish_eval=
10532shlibpath_var=
10533shlibpath_overrides_runpath=unknown
10534version_type=none
10535dynamic_linker="$host_os ld.so"
10536sys_lib_dlsearch_path_spec="/lib /usr/lib"
10537need_lib_prefix=unknown
10538hardcode_into_libs=no
10539
10540# when you set need_version to no, make sure it does not cause -set_version
10541# flags to be left without arguments
10542need_version=unknown
10543
10544
10545
10546case $host_os in
10547aix3*)
10548  version_type=linux # correct to gnu/linux during the next big refactor
10549  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10550  shlibpath_var=LIBPATH
10551
10552  # AIX 3 has no versioning support, so we append a major version to the name.
10553  soname_spec='$libname$release$shared_ext$major'
10554  ;;
10555
10556aix[4-9]*)
10557  version_type=linux # correct to gnu/linux during the next big refactor
10558  need_lib_prefix=no
10559  need_version=no
10560  hardcode_into_libs=yes
10561  if test ia64 = "$host_cpu"; then
10562    # AIX 5 supports IA64
10563    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10564    shlibpath_var=LD_LIBRARY_PATH
10565  else
10566    # With GCC up to 2.95.x, collect2 would create an import file
10567    # for dependence libraries.  The import file would start with
10568    # the line '#! .'.  This would cause the generated library to
10569    # depend on '.', always an invalid library.  This was fixed in
10570    # development snapshots of GCC prior to 3.0.
10571    case $host_os in
10572      aix4 | aix4.[01] | aix4.[01].*)
10573      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10574	   echo ' yes '
10575	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10576	:
10577      else
10578	can_build_shared=no
10579      fi
10580      ;;
10581    esac
10582    # Using Import Files as archive members, it is possible to support
10583    # filename-based versioning of shared library archives on AIX. While
10584    # this would work for both with and without runtime linking, it will
10585    # prevent static linking of such archives. So we do filename-based
10586    # shared library versioning with .so extension only, which is used
10587    # when both runtime linking and shared linking is enabled.
10588    # Unfortunately, runtime linking may impact performance, so we do
10589    # not want this to be the default eventually. Also, we use the
10590    # versioned .so libs for executables only if there is the -brtl
10591    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10592    # To allow for filename-based versioning support, we need to create
10593    # libNAME.so.V as an archive file, containing:
10594    # *) an Import File, referring to the versioned filename of the
10595    #    archive as well as the shared archive member, telling the
10596    #    bitwidth (32 or 64) of that shared object, and providing the
10597    #    list of exported symbols of that shared object, eventually
10598    #    decorated with the 'weak' keyword
10599    # *) the shared object with the F_LOADONLY flag set, to really avoid
10600    #    it being seen by the linker.
10601    # At run time we better use the real file rather than another symlink,
10602    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10603
10604    case $with_aix_soname,$aix_use_runtimelinking in
10605    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10606    # soname into executable. Probably we can add versioning support to
10607    # collect2, so additional links can be useful in future.
10608    aix,yes) # traditional libtool
10609      dynamic_linker='AIX unversionable lib.so'
10610      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611      # instead of lib<name>.a to let people know that these are not
10612      # typical AIX shared libraries.
10613      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10614      ;;
10615    aix,no) # traditional AIX only
10616      dynamic_linker='AIX lib.a(lib.so.V)'
10617      # We preserve .a as extension for shared libraries through AIX4.2
10618      # and later when we are not doing run time linking.
10619      library_names_spec='$libname$release.a $libname.a'
10620      soname_spec='$libname$release$shared_ext$major'
10621      ;;
10622    svr4,*) # full svr4 only
10623      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10624      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10625      # We do not specify a path in Import Files, so LIBPATH fires.
10626      shlibpath_overrides_runpath=yes
10627      ;;
10628    *,yes) # both, prefer svr4
10629      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10630      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10631      # unpreferred sharedlib libNAME.a needs extra handling
10632      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"'
10633      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"'
10634      # We do not specify a path in Import Files, so LIBPATH fires.
10635      shlibpath_overrides_runpath=yes
10636      ;;
10637    *,no) # both, prefer aix
10638      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10639      library_names_spec='$libname$release.a $libname.a'
10640      soname_spec='$libname$release$shared_ext$major'
10641      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10642      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)'
10643      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"'
10644      ;;
10645    esac
10646    shlibpath_var=LIBPATH
10647  fi
10648  ;;
10649
10650amigaos*)
10651  case $host_cpu in
10652  powerpc)
10653    # Since July 2007 AmigaOS4 officially supports .so libraries.
10654    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10656    ;;
10657  m68k)
10658    library_names_spec='$libname.ixlibrary $libname.a'
10659    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10660    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'
10661    ;;
10662  esac
10663  ;;
10664
10665beos*)
10666  library_names_spec='$libname$shared_ext'
10667  dynamic_linker="$host_os ld.so"
10668  shlibpath_var=LIBRARY_PATH
10669  ;;
10670
10671bsdi[45]*)
10672  version_type=linux # correct to gnu/linux during the next big refactor
10673  need_version=no
10674  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10675  soname_spec='$libname$release$shared_ext$major'
10676  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10677  shlibpath_var=LD_LIBRARY_PATH
10678  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10679  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10680  # the default ld.so.conf also contains /usr/contrib/lib and
10681  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10682  # libtool to hard-code these into programs
10683  ;;
10684
10685cygwin* | mingw* | pw32* | cegcc*)
10686  version_type=windows
10687  shrext_cmds=.dll
10688  need_version=no
10689  need_lib_prefix=no
10690
10691  case $GCC,$cc_basename in
10692  yes,*)
10693    # gcc
10694    library_names_spec='$libname.dll.a'
10695    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10696    postinstall_cmds='base_file=`basename \$file`~
10697      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10698      dldir=$destdir/`dirname \$dlpath`~
10699      test -d \$dldir || mkdir -p \$dldir~
10700      $install_prog $dir/$dlname \$dldir/$dlname~
10701      chmod a+x \$dldir/$dlname~
10702      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10703        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10704      fi'
10705    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10706      dlpath=$dir/\$dldll~
10707       $RM \$dlpath'
10708    shlibpath_overrides_runpath=yes
10709
10710    case $host_os in
10711    cygwin*)
10712      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10713      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10714
10715      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10716      ;;
10717    mingw* | cegcc*)
10718      # MinGW DLLs use traditional 'lib' prefix
10719      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10720      ;;
10721    pw32*)
10722      # pw32 DLLs use 'pw' prefix rather than 'lib'
10723      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10724      ;;
10725    esac
10726    dynamic_linker='Win32 ld.exe'
10727    ;;
10728
10729  *,cl*)
10730    # Native MSVC
10731    libname_spec='$name'
10732    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10733    library_names_spec='$libname.dll.lib'
10734
10735    case $build_os in
10736    mingw*)
10737      sys_lib_search_path_spec=
10738      lt_save_ifs=$IFS
10739      IFS=';'
10740      for lt_path in $LIB
10741      do
10742        IFS=$lt_save_ifs
10743        # Let DOS variable expansion print the short 8.3 style file name.
10744        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10745        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10746      done
10747      IFS=$lt_save_ifs
10748      # Convert to MSYS style.
10749      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10750      ;;
10751    cygwin*)
10752      # Convert to unix form, then to dos form, then back to unix form
10753      # but this time dos style (no spaces!) so that the unix form looks
10754      # like /cygdrive/c/PROGRA~1:/cygdr...
10755      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10756      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10757      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10758      ;;
10759    *)
10760      sys_lib_search_path_spec=$LIB
10761      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10762        # It is most probably a Windows format PATH.
10763        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10764      else
10765        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10766      fi
10767      # FIXME: find the short name or the path components, as spaces are
10768      # common. (e.g. "Program Files" -> "PROGRA~1")
10769      ;;
10770    esac
10771
10772    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10773    postinstall_cmds='base_file=`basename \$file`~
10774      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10775      dldir=$destdir/`dirname \$dlpath`~
10776      test -d \$dldir || mkdir -p \$dldir~
10777      $install_prog $dir/$dlname \$dldir/$dlname'
10778    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10779      dlpath=$dir/\$dldll~
10780       $RM \$dlpath'
10781    shlibpath_overrides_runpath=yes
10782    dynamic_linker='Win32 link.exe'
10783    ;;
10784
10785  *)
10786    # Assume MSVC wrapper
10787    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10788    dynamic_linker='Win32 ld.exe'
10789    ;;
10790  esac
10791  # FIXME: first we should search . and the directory the executable is in
10792  shlibpath_var=PATH
10793  ;;
10794
10795darwin* | rhapsody*)
10796  dynamic_linker="$host_os dyld"
10797  version_type=darwin
10798  need_lib_prefix=no
10799  need_version=no
10800  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10801  soname_spec='$libname$release$major$shared_ext'
10802  shlibpath_overrides_runpath=yes
10803  shlibpath_var=DYLD_LIBRARY_PATH
10804  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10805
10806  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10807  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10808  ;;
10809
10810dgux*)
10811  version_type=linux # correct to gnu/linux during the next big refactor
10812  need_lib_prefix=no
10813  need_version=no
10814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10815  soname_spec='$libname$release$shared_ext$major'
10816  shlibpath_var=LD_LIBRARY_PATH
10817  ;;
10818
10819freebsd* | dragonfly*)
10820  # DragonFly does not have aout.  When/if they implement a new
10821  # versioning mechanism, adjust this.
10822  if test -x /usr/bin/objformat; then
10823    objformat=`/usr/bin/objformat`
10824  else
10825    case $host_os in
10826    freebsd[23].*) objformat=aout ;;
10827    *) objformat=elf ;;
10828    esac
10829  fi
10830  version_type=freebsd-$objformat
10831  case $version_type in
10832    freebsd-elf*)
10833      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10834      soname_spec='$libname$release$shared_ext$major'
10835      need_version=no
10836      need_lib_prefix=no
10837      ;;
10838    freebsd-*)
10839      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10840      need_version=yes
10841      ;;
10842  esac
10843  shlibpath_var=LD_LIBRARY_PATH
10844  case $host_os in
10845  freebsd2.*)
10846    shlibpath_overrides_runpath=yes
10847    ;;
10848  freebsd3.[01]* | freebsdelf3.[01]*)
10849    shlibpath_overrides_runpath=yes
10850    hardcode_into_libs=yes
10851    ;;
10852  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10853  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10854    shlibpath_overrides_runpath=no
10855    hardcode_into_libs=yes
10856    ;;
10857  *) # from 4.6 on, and DragonFly
10858    shlibpath_overrides_runpath=yes
10859    hardcode_into_libs=yes
10860    ;;
10861  esac
10862  ;;
10863
10864haiku*)
10865  version_type=linux # correct to gnu/linux during the next big refactor
10866  need_lib_prefix=no
10867  need_version=no
10868  dynamic_linker="$host_os runtime_loader"
10869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870  soname_spec='$libname$release$shared_ext$major'
10871  shlibpath_var=LIBRARY_PATH
10872  shlibpath_overrides_runpath=no
10873  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10874  hardcode_into_libs=yes
10875  ;;
10876
10877hpux9* | hpux10* | hpux11*)
10878  # Give a soname corresponding to the major version so that dld.sl refuses to
10879  # link against other versions.
10880  version_type=sunos
10881  need_lib_prefix=no
10882  need_version=no
10883  case $host_cpu in
10884  ia64*)
10885    shrext_cmds='.so'
10886    hardcode_into_libs=yes
10887    dynamic_linker="$host_os dld.so"
10888    shlibpath_var=LD_LIBRARY_PATH
10889    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10890    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10891    soname_spec='$libname$release$shared_ext$major'
10892    if test 32 = "$HPUX_IA64_MODE"; then
10893      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10894      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10895    else
10896      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10897      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10898    fi
10899    ;;
10900  hppa*64*)
10901    shrext_cmds='.sl'
10902    hardcode_into_libs=yes
10903    dynamic_linker="$host_os dld.sl"
10904    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10905    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10907    soname_spec='$libname$release$shared_ext$major'
10908    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10909    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10910    ;;
10911  *)
10912    shrext_cmds='.sl'
10913    dynamic_linker="$host_os dld.sl"
10914    shlibpath_var=SHLIB_PATH
10915    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10916    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10917    soname_spec='$libname$release$shared_ext$major'
10918    ;;
10919  esac
10920  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10921  postinstall_cmds='chmod 555 $lib'
10922  # or fails outright, so override atomically:
10923  install_override_mode=555
10924  ;;
10925
10926interix[3-9]*)
10927  version_type=linux # correct to gnu/linux during the next big refactor
10928  need_lib_prefix=no
10929  need_version=no
10930  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10931  soname_spec='$libname$release$shared_ext$major'
10932  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10933  shlibpath_var=LD_LIBRARY_PATH
10934  shlibpath_overrides_runpath=no
10935  hardcode_into_libs=yes
10936  ;;
10937
10938irix5* | irix6* | nonstopux*)
10939  case $host_os in
10940    nonstopux*) version_type=nonstopux ;;
10941    *)
10942	if test yes = "$lt_cv_prog_gnu_ld"; then
10943		version_type=linux # correct to gnu/linux during the next big refactor
10944	else
10945		version_type=irix
10946	fi ;;
10947  esac
10948  need_lib_prefix=no
10949  need_version=no
10950  soname_spec='$libname$release$shared_ext$major'
10951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10952  case $host_os in
10953  irix5* | nonstopux*)
10954    libsuff= shlibsuff=
10955    ;;
10956  *)
10957    case $LD in # libtool.m4 will add one of these switches to LD
10958    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10959      libsuff= shlibsuff= libmagic=32-bit;;
10960    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10961      libsuff=32 shlibsuff=N32 libmagic=N32;;
10962    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10963      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10964    *) libsuff= shlibsuff= libmagic=never-match;;
10965    esac
10966    ;;
10967  esac
10968  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10969  shlibpath_overrides_runpath=no
10970  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10971  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10972  hardcode_into_libs=yes
10973  ;;
10974
10975# No shared lib support for Linux oldld, aout, or coff.
10976linux*oldld* | linux*aout* | linux*coff*)
10977  dynamic_linker=no
10978  ;;
10979
10980linux*android*)
10981  version_type=none # Android doesn't support versioned libraries.
10982  need_lib_prefix=no
10983  need_version=no
10984  library_names_spec='$libname$release$shared_ext'
10985  soname_spec='$libname$release$shared_ext'
10986  finish_cmds=
10987  shlibpath_var=LD_LIBRARY_PATH
10988  shlibpath_overrides_runpath=yes
10989
10990  # This implies no fast_install, which is unacceptable.
10991  # Some rework will be needed to allow for fast_install
10992  # before this can be enabled.
10993  hardcode_into_libs=yes
10994
10995  dynamic_linker='Android linker'
10996  # Don't embed -rpath directories since the linker doesn't support them.
10997  hardcode_libdir_flag_spec='-L$libdir'
10998  ;;
10999
11000# This must be glibc/ELF.
11001linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11002  version_type=linux # correct to gnu/linux during the next big refactor
11003  need_lib_prefix=no
11004  need_version=no
11005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11006  soname_spec='$libname$release$shared_ext$major'
11007  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11008  shlibpath_var=LD_LIBRARY_PATH
11009  shlibpath_overrides_runpath=no
11010
11011  # Some binutils ld are patched to set DT_RUNPATH
11012  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11013  $as_echo_n "(cached) " >&6
11014else
11015  lt_cv_shlibpath_overrides_runpath=no
11016    save_LDFLAGS=$LDFLAGS
11017    save_libdir=$libdir
11018    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11019	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021/* end confdefs.h.  */
11022
11023int
11024main ()
11025{
11026
11027  ;
11028  return 0;
11029}
11030_ACEOF
11031if ac_fn_c_try_link "$LINENO"; then :
11032  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11033  lt_cv_shlibpath_overrides_runpath=yes
11034fi
11035fi
11036rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038    LDFLAGS=$save_LDFLAGS
11039    libdir=$save_libdir
11040
11041fi
11042
11043  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11044
11045  # This implies no fast_install, which is unacceptable.
11046  # Some rework will be needed to allow for fast_install
11047  # before this can be enabled.
11048  hardcode_into_libs=yes
11049
11050  # Ideally, we could use ldconfig to report *all* directores which are
11051  # searched for libraries, however this is still not possible.  Aside from not
11052  # being certain /sbin/ldconfig is available, command
11053  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11054  # even though it is searched at run-time.  Try to do the best guess by
11055  # appending ld.so.conf contents (and includes) to the search path.
11056  if test -f /etc/ld.so.conf; then
11057    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' ' '`
11058    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11059  fi
11060
11061  # We used to test for /lib/ld.so.1 and disable shared libraries on
11062  # powerpc, because MkLinux only supported shared libraries with the
11063  # GNU dynamic linker.  Since this was broken with cross compilers,
11064  # most powerpc-linux boxes support dynamic linking these days and
11065  # people can always --disable-shared, the test was removed, and we
11066  # assume the GNU/Linux dynamic linker is in use.
11067  dynamic_linker='GNU/Linux ld.so'
11068  ;;
11069
11070netbsd*)
11071  version_type=sunos
11072  need_lib_prefix=no
11073  need_version=no
11074  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11075    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11076    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11077    dynamic_linker='NetBSD (a.out) ld.so'
11078  else
11079    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080    soname_spec='$libname$release$shared_ext$major'
11081    dynamic_linker='NetBSD ld.elf_so'
11082  fi
11083  shlibpath_var=LD_LIBRARY_PATH
11084  shlibpath_overrides_runpath=yes
11085  hardcode_into_libs=yes
11086  ;;
11087
11088newsos6)
11089  version_type=linux # correct to gnu/linux during the next big refactor
11090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11091  shlibpath_var=LD_LIBRARY_PATH
11092  shlibpath_overrides_runpath=yes
11093  ;;
11094
11095*nto* | *qnx*)
11096  version_type=qnx
11097  need_lib_prefix=no
11098  need_version=no
11099  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11100  soname_spec='$libname$release$shared_ext$major'
11101  shlibpath_var=LD_LIBRARY_PATH
11102  shlibpath_overrides_runpath=no
11103  hardcode_into_libs=yes
11104  dynamic_linker='ldqnx.so'
11105  ;;
11106
11107openbsd* | bitrig*)
11108  version_type=sunos
11109  sys_lib_dlsearch_path_spec=/usr/lib
11110  need_lib_prefix=no
11111  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11112    need_version=no
11113  else
11114    need_version=yes
11115  fi
11116  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11118  shlibpath_var=LD_LIBRARY_PATH
11119  shlibpath_overrides_runpath=yes
11120  ;;
11121
11122os2*)
11123  libname_spec='$name'
11124  version_type=windows
11125  shrext_cmds=.dll
11126  need_version=no
11127  need_lib_prefix=no
11128  # OS/2 can only load a DLL with a base name of 8 characters or less.
11129  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11130    v=$($ECHO $release$versuffix | tr -d .-);
11131    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11132    $ECHO $n$v`$shared_ext'
11133  library_names_spec='${libname}_dll.$libext'
11134  dynamic_linker='OS/2 ld.exe'
11135  shlibpath_var=BEGINLIBPATH
11136  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11137  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11138  postinstall_cmds='base_file=`basename \$file`~
11139    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11140    dldir=$destdir/`dirname \$dlpath`~
11141    test -d \$dldir || mkdir -p \$dldir~
11142    $install_prog $dir/$dlname \$dldir/$dlname~
11143    chmod a+x \$dldir/$dlname~
11144    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11145      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11146    fi'
11147  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11148    dlpath=$dir/\$dldll~
11149    $RM \$dlpath'
11150  ;;
11151
11152osf3* | osf4* | osf5*)
11153  version_type=osf
11154  need_lib_prefix=no
11155  need_version=no
11156  soname_spec='$libname$release$shared_ext$major'
11157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158  shlibpath_var=LD_LIBRARY_PATH
11159  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11160  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11161  ;;
11162
11163rdos*)
11164  dynamic_linker=no
11165  ;;
11166
11167solaris*)
11168  version_type=linux # correct to gnu/linux during the next big refactor
11169  need_lib_prefix=no
11170  need_version=no
11171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11172  soname_spec='$libname$release$shared_ext$major'
11173  shlibpath_var=LD_LIBRARY_PATH
11174  shlibpath_overrides_runpath=yes
11175  hardcode_into_libs=yes
11176  # ldd complains unless libraries are executable
11177  postinstall_cmds='chmod +x $lib'
11178  ;;
11179
11180sunos4*)
11181  version_type=sunos
11182  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11183  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11184  shlibpath_var=LD_LIBRARY_PATH
11185  shlibpath_overrides_runpath=yes
11186  if test yes = "$with_gnu_ld"; then
11187    need_lib_prefix=no
11188  fi
11189  need_version=yes
11190  ;;
11191
11192sysv4 | sysv4.3*)
11193  version_type=linux # correct to gnu/linux during the next big refactor
11194  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195  soname_spec='$libname$release$shared_ext$major'
11196  shlibpath_var=LD_LIBRARY_PATH
11197  case $host_vendor in
11198    sni)
11199      shlibpath_overrides_runpath=no
11200      need_lib_prefix=no
11201      runpath_var=LD_RUN_PATH
11202      ;;
11203    siemens)
11204      need_lib_prefix=no
11205      ;;
11206    motorola)
11207      need_lib_prefix=no
11208      need_version=no
11209      shlibpath_overrides_runpath=no
11210      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11211      ;;
11212  esac
11213  ;;
11214
11215sysv4*MP*)
11216  if test -d /usr/nec; then
11217    version_type=linux # correct to gnu/linux during the next big refactor
11218    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11219    soname_spec='$libname$shared_ext.$major'
11220    shlibpath_var=LD_LIBRARY_PATH
11221  fi
11222  ;;
11223
11224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11225  version_type=sco
11226  need_lib_prefix=no
11227  need_version=no
11228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11229  soname_spec='$libname$release$shared_ext$major'
11230  shlibpath_var=LD_LIBRARY_PATH
11231  shlibpath_overrides_runpath=yes
11232  hardcode_into_libs=yes
11233  if test yes = "$with_gnu_ld"; then
11234    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11235  else
11236    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11237    case $host_os in
11238      sco3.2v5*)
11239        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240	;;
11241    esac
11242  fi
11243  sys_lib_dlsearch_path_spec='/usr/lib'
11244  ;;
11245
11246tpf*)
11247  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  need_lib_prefix=no
11250  need_version=no
11251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252  shlibpath_var=LD_LIBRARY_PATH
11253  shlibpath_overrides_runpath=no
11254  hardcode_into_libs=yes
11255  ;;
11256
11257uts4*)
11258  version_type=linux # correct to gnu/linux during the next big refactor
11259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260  soname_spec='$libname$release$shared_ext$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  ;;
11263
11264*)
11265  dynamic_linker=no
11266  ;;
11267esac
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11269$as_echo "$dynamic_linker" >&6; }
11270test no = "$dynamic_linker" && can_build_shared=no
11271
11272variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11273if test yes = "$GCC"; then
11274  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11275fi
11276
11277if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11278  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11279fi
11280
11281if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11282  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11283fi
11284
11285# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11286configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11287
11288# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11289func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11290
11291# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11292configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11384
11385
11386
11387
11388
11389
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392hardcode_action=
11393if test -n "$hardcode_libdir_flag_spec" ||
11394   test -n "$runpath_var" ||
11395   test yes = "$hardcode_automatic"; then
11396
11397  # We can hardcode non-existent directories.
11398  if test no != "$hardcode_direct" &&
11399     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400     # have to relink, otherwise we might link with an installed library
11401     # when we should be linking with a yet-to-be-installed one
11402     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11403     test no != "$hardcode_minus_L"; then
11404    # Linking always hardcodes the temporary library directory.
11405    hardcode_action=relink
11406  else
11407    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408    hardcode_action=immediate
11409  fi
11410else
11411  # We cannot hardcode anything, or else we can only hardcode existing
11412  # directories.
11413  hardcode_action=unsupported
11414fi
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416$as_echo "$hardcode_action" >&6; }
11417
11418if test relink = "$hardcode_action" ||
11419   test yes = "$inherit_rpath"; then
11420  # Fast installation is not supported
11421  enable_fast_install=no
11422elif test yes = "$shlibpath_overrides_runpath" ||
11423     test no = "$enable_shared"; then
11424  # Fast installation is not necessary
11425  enable_fast_install=needless
11426fi
11427
11428
11429
11430
11431
11432
11433  if test yes != "$enable_dlopen"; then
11434  enable_dlopen=unknown
11435  enable_dlopen_self=unknown
11436  enable_dlopen_self_static=unknown
11437else
11438  lt_cv_dlopen=no
11439  lt_cv_dlopen_libs=
11440
11441  case $host_os in
11442  beos*)
11443    lt_cv_dlopen=load_add_on
11444    lt_cv_dlopen_libs=
11445    lt_cv_dlopen_self=yes
11446    ;;
11447
11448  mingw* | pw32* | cegcc*)
11449    lt_cv_dlopen=LoadLibrary
11450    lt_cv_dlopen_libs=
11451    ;;
11452
11453  cygwin*)
11454    lt_cv_dlopen=dlopen
11455    lt_cv_dlopen_libs=
11456    ;;
11457
11458  darwin*)
11459    # if libdl is installed we need to link against it
11460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461$as_echo_n "checking for dlopen in -ldl... " >&6; }
11462if ${ac_cv_lib_dl_dlopen+:} false; then :
11463  $as_echo_n "(cached) " >&6
11464else
11465  ac_check_lib_save_LIBS=$LIBS
11466LIBS="-ldl  $LIBS"
11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h.  */
11469
11470/* Override any GCC internal prototype to avoid an error.
11471   Use char because int might match the return type of a GCC
11472   builtin and then its argument prototype would still apply.  */
11473#ifdef __cplusplus
11474extern "C"
11475#endif
11476char dlopen ();
11477int
11478main ()
11479{
11480return dlopen ();
11481  ;
11482  return 0;
11483}
11484_ACEOF
11485if ac_fn_c_try_link "$LINENO"; then :
11486  ac_cv_lib_dl_dlopen=yes
11487else
11488  ac_cv_lib_dl_dlopen=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext \
11491    conftest$ac_exeext conftest.$ac_ext
11492LIBS=$ac_check_lib_save_LIBS
11493fi
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11497  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11498else
11499
11500    lt_cv_dlopen=dyld
11501    lt_cv_dlopen_libs=
11502    lt_cv_dlopen_self=yes
11503
11504fi
11505
11506    ;;
11507
11508  tpf*)
11509    # Don't try to run any link tests for TPF.  We know it's impossible
11510    # because TPF is a cross-compiler, and we know how we open DSOs.
11511    lt_cv_dlopen=dlopen
11512    lt_cv_dlopen_libs=
11513    lt_cv_dlopen_self=no
11514    ;;
11515
11516  *)
11517    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11518if test "x$ac_cv_func_shl_load" = xyes; then :
11519  lt_cv_dlopen=shl_load
11520else
11521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11522$as_echo_n "checking for shl_load in -ldld... " >&6; }
11523if ${ac_cv_lib_dld_shl_load+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  ac_check_lib_save_LIBS=$LIBS
11527LIBS="-ldld  $LIBS"
11528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529/* end confdefs.h.  */
11530
11531/* Override any GCC internal prototype to avoid an error.
11532   Use char because int might match the return type of a GCC
11533   builtin and then its argument prototype would still apply.  */
11534#ifdef __cplusplus
11535extern "C"
11536#endif
11537char shl_load ();
11538int
11539main ()
11540{
11541return shl_load ();
11542  ;
11543  return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547  ac_cv_lib_dld_shl_load=yes
11548else
11549  ac_cv_lib_dld_shl_load=no
11550fi
11551rm -f core conftest.err conftest.$ac_objext \
11552    conftest$ac_exeext conftest.$ac_ext
11553LIBS=$ac_check_lib_save_LIBS
11554fi
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11556$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11557if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11558  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11559else
11560  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11561if test "x$ac_cv_func_dlopen" = xyes; then :
11562  lt_cv_dlopen=dlopen
11563else
11564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11565$as_echo_n "checking for dlopen in -ldl... " >&6; }
11566if ${ac_cv_lib_dl_dlopen+:} false; then :
11567  $as_echo_n "(cached) " >&6
11568else
11569  ac_check_lib_save_LIBS=$LIBS
11570LIBS="-ldl  $LIBS"
11571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h.  */
11573
11574/* Override any GCC internal prototype to avoid an error.
11575   Use char because int might match the return type of a GCC
11576   builtin and then its argument prototype would still apply.  */
11577#ifdef __cplusplus
11578extern "C"
11579#endif
11580char dlopen ();
11581int
11582main ()
11583{
11584return dlopen ();
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_link "$LINENO"; then :
11590  ac_cv_lib_dl_dlopen=yes
11591else
11592  ac_cv_lib_dl_dlopen=no
11593fi
11594rm -f core conftest.err conftest.$ac_objext \
11595    conftest$ac_exeext conftest.$ac_ext
11596LIBS=$ac_check_lib_save_LIBS
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11599$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11600if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11601  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11602else
11603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11604$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11605if ${ac_cv_lib_svld_dlopen+:} false; then :
11606  $as_echo_n "(cached) " >&6
11607else
11608  ac_check_lib_save_LIBS=$LIBS
11609LIBS="-lsvld  $LIBS"
11610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611/* end confdefs.h.  */
11612
11613/* Override any GCC internal prototype to avoid an error.
11614   Use char because int might match the return type of a GCC
11615   builtin and then its argument prototype would still apply.  */
11616#ifdef __cplusplus
11617extern "C"
11618#endif
11619char dlopen ();
11620int
11621main ()
11622{
11623return dlopen ();
11624  ;
11625  return 0;
11626}
11627_ACEOF
11628if ac_fn_c_try_link "$LINENO"; then :
11629  ac_cv_lib_svld_dlopen=yes
11630else
11631  ac_cv_lib_svld_dlopen=no
11632fi
11633rm -f core conftest.err conftest.$ac_objext \
11634    conftest$ac_exeext conftest.$ac_ext
11635LIBS=$ac_check_lib_save_LIBS
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11638$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11639if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11640  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11641else
11642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11643$as_echo_n "checking for dld_link in -ldld... " >&6; }
11644if ${ac_cv_lib_dld_dld_link+:} false; then :
11645  $as_echo_n "(cached) " >&6
11646else
11647  ac_check_lib_save_LIBS=$LIBS
11648LIBS="-ldld  $LIBS"
11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650/* end confdefs.h.  */
11651
11652/* Override any GCC internal prototype to avoid an error.
11653   Use char because int might match the return type of a GCC
11654   builtin and then its argument prototype would still apply.  */
11655#ifdef __cplusplus
11656extern "C"
11657#endif
11658char dld_link ();
11659int
11660main ()
11661{
11662return dld_link ();
11663  ;
11664  return 0;
11665}
11666_ACEOF
11667if ac_fn_c_try_link "$LINENO"; then :
11668  ac_cv_lib_dld_dld_link=yes
11669else
11670  ac_cv_lib_dld_dld_link=no
11671fi
11672rm -f core conftest.err conftest.$ac_objext \
11673    conftest$ac_exeext conftest.$ac_ext
11674LIBS=$ac_check_lib_save_LIBS
11675fi
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11677$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11678if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11679  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11680fi
11681
11682
11683fi
11684
11685
11686fi
11687
11688
11689fi
11690
11691
11692fi
11693
11694
11695fi
11696
11697    ;;
11698  esac
11699
11700  if test no = "$lt_cv_dlopen"; then
11701    enable_dlopen=no
11702  else
11703    enable_dlopen=yes
11704  fi
11705
11706  case $lt_cv_dlopen in
11707  dlopen)
11708    save_CPPFLAGS=$CPPFLAGS
11709    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11710
11711    save_LDFLAGS=$LDFLAGS
11712    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11713
11714    save_LIBS=$LIBS
11715    LIBS="$lt_cv_dlopen_libs $LIBS"
11716
11717    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11718$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11719if ${lt_cv_dlopen_self+:} false; then :
11720  $as_echo_n "(cached) " >&6
11721else
11722  	  if test yes = "$cross_compiling"; then :
11723  lt_cv_dlopen_self=cross
11724else
11725  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726  lt_status=$lt_dlunknown
11727  cat > conftest.$ac_ext <<_LT_EOF
11728#line $LINENO "configure"
11729#include "confdefs.h"
11730
11731#if HAVE_DLFCN_H
11732#include <dlfcn.h>
11733#endif
11734
11735#include <stdio.h>
11736
11737#ifdef RTLD_GLOBAL
11738#  define LT_DLGLOBAL		RTLD_GLOBAL
11739#else
11740#  ifdef DL_GLOBAL
11741#    define LT_DLGLOBAL		DL_GLOBAL
11742#  else
11743#    define LT_DLGLOBAL		0
11744#  endif
11745#endif
11746
11747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748   find out it does not work in some platform. */
11749#ifndef LT_DLLAZY_OR_NOW
11750#  ifdef RTLD_LAZY
11751#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11752#  else
11753#    ifdef DL_LAZY
11754#      define LT_DLLAZY_OR_NOW		DL_LAZY
11755#    else
11756#      ifdef RTLD_NOW
11757#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11758#      else
11759#        ifdef DL_NOW
11760#          define LT_DLLAZY_OR_NOW	DL_NOW
11761#        else
11762#          define LT_DLLAZY_OR_NOW	0
11763#        endif
11764#      endif
11765#    endif
11766#  endif
11767#endif
11768
11769/* When -fvisibility=hidden is used, assume the code has been annotated
11770   correspondingly for the symbols needed.  */
11771#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772int fnord () __attribute__((visibility("default")));
11773#endif
11774
11775int fnord () { return 42; }
11776int main ()
11777{
11778  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779  int status = $lt_dlunknown;
11780
11781  if (self)
11782    {
11783      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11784      else
11785        {
11786	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11787          else puts (dlerror ());
11788	}
11789      /* dlclose (self); */
11790    }
11791  else
11792    puts (dlerror ());
11793
11794  return status;
11795}
11796_LT_EOF
11797  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798  (eval $ac_link) 2>&5
11799  ac_status=$?
11800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11802    (./conftest; exit; ) >&5 2>/dev/null
11803    lt_status=$?
11804    case x$lt_status in
11805      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11808    esac
11809  else :
11810    # compilation failed
11811    lt_cv_dlopen_self=no
11812  fi
11813fi
11814rm -fr conftest*
11815
11816
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11819$as_echo "$lt_cv_dlopen_self" >&6; }
11820
11821    if test yes = "$lt_cv_dlopen_self"; then
11822      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11823      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11824$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11825if ${lt_cv_dlopen_self_static+:} false; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  	  if test yes = "$cross_compiling"; then :
11829  lt_cv_dlopen_self_static=cross
11830else
11831  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832  lt_status=$lt_dlunknown
11833  cat > conftest.$ac_ext <<_LT_EOF
11834#line $LINENO "configure"
11835#include "confdefs.h"
11836
11837#if HAVE_DLFCN_H
11838#include <dlfcn.h>
11839#endif
11840
11841#include <stdio.h>
11842
11843#ifdef RTLD_GLOBAL
11844#  define LT_DLGLOBAL		RTLD_GLOBAL
11845#else
11846#  ifdef DL_GLOBAL
11847#    define LT_DLGLOBAL		DL_GLOBAL
11848#  else
11849#    define LT_DLGLOBAL		0
11850#  endif
11851#endif
11852
11853/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854   find out it does not work in some platform. */
11855#ifndef LT_DLLAZY_OR_NOW
11856#  ifdef RTLD_LAZY
11857#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11858#  else
11859#    ifdef DL_LAZY
11860#      define LT_DLLAZY_OR_NOW		DL_LAZY
11861#    else
11862#      ifdef RTLD_NOW
11863#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11864#      else
11865#        ifdef DL_NOW
11866#          define LT_DLLAZY_OR_NOW	DL_NOW
11867#        else
11868#          define LT_DLLAZY_OR_NOW	0
11869#        endif
11870#      endif
11871#    endif
11872#  endif
11873#endif
11874
11875/* When -fvisibility=hidden is used, assume the code has been annotated
11876   correspondingly for the symbols needed.  */
11877#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878int fnord () __attribute__((visibility("default")));
11879#endif
11880
11881int fnord () { return 42; }
11882int main ()
11883{
11884  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885  int status = $lt_dlunknown;
11886
11887  if (self)
11888    {
11889      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11890      else
11891        {
11892	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11893          else puts (dlerror ());
11894	}
11895      /* dlclose (self); */
11896    }
11897  else
11898    puts (dlerror ());
11899
11900  return status;
11901}
11902_LT_EOF
11903  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904  (eval $ac_link) 2>&5
11905  ac_status=$?
11906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11908    (./conftest; exit; ) >&5 2>/dev/null
11909    lt_status=$?
11910    case x$lt_status in
11911      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914    esac
11915  else :
11916    # compilation failed
11917    lt_cv_dlopen_self_static=no
11918  fi
11919fi
11920rm -fr conftest*
11921
11922
11923fi
11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11925$as_echo "$lt_cv_dlopen_self_static" >&6; }
11926    fi
11927
11928    CPPFLAGS=$save_CPPFLAGS
11929    LDFLAGS=$save_LDFLAGS
11930    LIBS=$save_LIBS
11931    ;;
11932  esac
11933
11934  case $lt_cv_dlopen_self in
11935  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936  *) enable_dlopen_self=unknown ;;
11937  esac
11938
11939  case $lt_cv_dlopen_self_static in
11940  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941  *) enable_dlopen_self_static=unknown ;;
11942  esac
11943fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961striplib=
11962old_striplib=
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11964$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11965if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11966  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11967  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969$as_echo "yes" >&6; }
11970else
11971# FIXME - insert some real tests, host_os isn't really good enough
11972  case $host_os in
11973  darwin*)
11974    if test -n "$STRIP"; then
11975      striplib="$STRIP -x"
11976      old_striplib="$STRIP -S"
11977      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978$as_echo "yes" >&6; }
11979    else
11980      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981$as_echo "no" >&6; }
11982    fi
11983    ;;
11984  *)
11985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986$as_echo "no" >&6; }
11987    ;;
11988  esac
11989fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002  # Report what library types will actually be built
12003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12004$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12006$as_echo "$can_build_shared" >&6; }
12007
12008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12009$as_echo_n "checking whether to build shared libraries... " >&6; }
12010  test no = "$can_build_shared" && enable_shared=no
12011
12012  # On AIX, shared libraries and static libraries use the same namespace, and
12013  # are all built from PIC.
12014  case $host_os in
12015  aix3*)
12016    test yes = "$enable_shared" && enable_static=no
12017    if test -n "$RANLIB"; then
12018      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12019      postinstall_cmds='$RANLIB $lib'
12020    fi
12021    ;;
12022
12023  aix[4-9]*)
12024    if test ia64 != "$host_cpu"; then
12025      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12026      yes,aix,yes) ;;			# shared object as lib.so file only
12027      yes,svr4,*) ;;			# shared object as lib.so archive member only
12028      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12029      esac
12030    fi
12031    ;;
12032  esac
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12034$as_echo "$enable_shared" >&6; }
12035
12036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12037$as_echo_n "checking whether to build static libraries... " >&6; }
12038  # Make sure either enable_shared or enable_static is yes.
12039  test yes = "$enable_shared" || enable_static=yes
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12041$as_echo "$enable_static" >&6; }
12042
12043
12044
12045
12046fi
12047ac_ext=c
12048ac_cpp='$CPP $CPPFLAGS'
12049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053CC=$lt_save_CC
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069        ac_config_commands="$ac_config_commands libtool"
12070
12071
12072
12073
12074# Only expand once:
12075
12076
12077
12078
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12080$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12081    # Check whether --enable-maintainer-mode was given.
12082if test "${enable_maintainer_mode+set}" = set; then :
12083  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12084else
12085  USE_MAINTAINER_MODE=no
12086fi
12087
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12089$as_echo "$USE_MAINTAINER_MODE" >&6; }
12090   if test $USE_MAINTAINER_MODE = yes; then
12091  MAINTAINER_MODE_TRUE=
12092  MAINTAINER_MODE_FALSE='#'
12093else
12094  MAINTAINER_MODE_TRUE='#'
12095  MAINTAINER_MODE_FALSE=
12096fi
12097
12098  MAINT=$MAINTAINER_MODE_TRUE
12099
12100
12101ac_config_headers="$ac_config_headers src/iperf_config.h"
12102
12103
12104
12105
12106# Checks for tools: c compiler, ranlib (used for creating static libraries),
12107# symlinks and libtool
12108ac_ext=c
12109ac_cpp='$CPP $CPPFLAGS'
12110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12112ac_compiler_gnu=$ac_cv_c_compiler_gnu
12113if test -n "$ac_tool_prefix"; then
12114  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12115set dummy ${ac_tool_prefix}gcc; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if ${ac_cv_prog_CC+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  if test -n "$CC"; then
12122  ac_cv_prog_CC="$CC" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127  IFS=$as_save_IFS
12128  test -z "$as_dir" && as_dir=.
12129    for ac_exec_ext in '' $ac_executable_extensions; do
12130  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133    break 2
12134  fi
12135done
12136  done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141CC=$ac_cv_prog_CC
12142if test -n "$CC"; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12144$as_echo "$CC" >&6; }
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151fi
12152if test -z "$ac_cv_prog_CC"; then
12153  ac_ct_CC=$CC
12154  # Extract the first word of "gcc", so it can be a program name with args.
12155set dummy gcc; ac_word=$2
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157$as_echo_n "checking for $ac_word... " >&6; }
12158if ${ac_cv_prog_ac_ct_CC+:} false; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161  if test -n "$ac_ct_CC"; then
12162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12163else
12164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165for as_dir in $PATH
12166do
12167  IFS=$as_save_IFS
12168  test -z "$as_dir" && as_dir=.
12169    for ac_exec_ext in '' $ac_executable_extensions; do
12170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171    ac_cv_prog_ac_ct_CC="gcc"
12172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173    break 2
12174  fi
12175done
12176  done
12177IFS=$as_save_IFS
12178
12179fi
12180fi
12181ac_ct_CC=$ac_cv_prog_ac_ct_CC
12182if test -n "$ac_ct_CC"; then
12183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12184$as_echo "$ac_ct_CC" >&6; }
12185else
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187$as_echo "no" >&6; }
12188fi
12189
12190  if test "x$ac_ct_CC" = x; then
12191    CC=""
12192  else
12193    case $cross_compiling:$ac_tool_warned in
12194yes:)
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12197ac_tool_warned=yes ;;
12198esac
12199    CC=$ac_ct_CC
12200  fi
12201else
12202  CC="$ac_cv_prog_CC"
12203fi
12204
12205if test -z "$CC"; then
12206          if test -n "$ac_tool_prefix"; then
12207    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12208set dummy ${ac_tool_prefix}cc; ac_word=$2
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210$as_echo_n "checking for $ac_word... " >&6; }
12211if ${ac_cv_prog_CC+:} false; then :
12212  $as_echo_n "(cached) " >&6
12213else
12214  if test -n "$CC"; then
12215  ac_cv_prog_CC="$CC" # Let the user override the test.
12216else
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220  IFS=$as_save_IFS
12221  test -z "$as_dir" && as_dir=.
12222    for ac_exec_ext in '' $ac_executable_extensions; do
12223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224    ac_cv_prog_CC="${ac_tool_prefix}cc"
12225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226    break 2
12227  fi
12228done
12229  done
12230IFS=$as_save_IFS
12231
12232fi
12233fi
12234CC=$ac_cv_prog_CC
12235if test -n "$CC"; then
12236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12237$as_echo "$CC" >&6; }
12238else
12239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
12241fi
12242
12243
12244  fi
12245fi
12246if test -z "$CC"; then
12247  # Extract the first word of "cc", so it can be a program name with args.
12248set dummy cc; ac_word=$2
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250$as_echo_n "checking for $ac_word... " >&6; }
12251if ${ac_cv_prog_CC+:} false; then :
12252  $as_echo_n "(cached) " >&6
12253else
12254  if test -n "$CC"; then
12255  ac_cv_prog_CC="$CC" # Let the user override the test.
12256else
12257  ac_prog_rejected=no
12258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12259for as_dir in $PATH
12260do
12261  IFS=$as_save_IFS
12262  test -z "$as_dir" && as_dir=.
12263    for ac_exec_ext in '' $ac_executable_extensions; do
12264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12265    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12266       ac_prog_rejected=yes
12267       continue
12268     fi
12269    ac_cv_prog_CC="cc"
12270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271    break 2
12272  fi
12273done
12274  done
12275IFS=$as_save_IFS
12276
12277if test $ac_prog_rejected = yes; then
12278  # We found a bogon in the path, so make sure we never use it.
12279  set dummy $ac_cv_prog_CC
12280  shift
12281  if test $# != 0; then
12282    # We chose a different compiler from the bogus one.
12283    # However, it has the same basename, so the bogon will be chosen
12284    # first if we set CC to just the basename; use the full file name.
12285    shift
12286    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12287  fi
12288fi
12289fi
12290fi
12291CC=$ac_cv_prog_CC
12292if test -n "$CC"; then
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12294$as_echo "$CC" >&6; }
12295else
12296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301fi
12302if test -z "$CC"; then
12303  if test -n "$ac_tool_prefix"; then
12304  for ac_prog in cl.exe
12305  do
12306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
12310if ${ac_cv_prog_CC+:} false; then :
12311  $as_echo_n "(cached) " >&6
12312else
12313  if test -n "$CC"; then
12314  ac_cv_prog_CC="$CC" # Let the user override the test.
12315else
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319  IFS=$as_save_IFS
12320  test -z "$as_dir" && as_dir=.
12321    for ac_exec_ext in '' $ac_executable_extensions; do
12322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325    break 2
12326  fi
12327done
12328  done
12329IFS=$as_save_IFS
12330
12331fi
12332fi
12333CC=$ac_cv_prog_CC
12334if test -n "$CC"; then
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12336$as_echo "$CC" >&6; }
12337else
12338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
12340fi
12341
12342
12343    test -n "$CC" && break
12344  done
12345fi
12346if test -z "$CC"; then
12347  ac_ct_CC=$CC
12348  for ac_prog in cl.exe
12349do
12350  # Extract the first word of "$ac_prog", so it can be a program name with args.
12351set dummy $ac_prog; ac_word=$2
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353$as_echo_n "checking for $ac_word... " >&6; }
12354if ${ac_cv_prog_ac_ct_CC+:} false; then :
12355  $as_echo_n "(cached) " >&6
12356else
12357  if test -n "$ac_ct_CC"; then
12358  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12359else
12360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in $PATH
12362do
12363  IFS=$as_save_IFS
12364  test -z "$as_dir" && as_dir=.
12365    for ac_exec_ext in '' $ac_executable_extensions; do
12366  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12367    ac_cv_prog_ac_ct_CC="$ac_prog"
12368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369    break 2
12370  fi
12371done
12372  done
12373IFS=$as_save_IFS
12374
12375fi
12376fi
12377ac_ct_CC=$ac_cv_prog_ac_ct_CC
12378if test -n "$ac_ct_CC"; then
12379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12380$as_echo "$ac_ct_CC" >&6; }
12381else
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383$as_echo "no" >&6; }
12384fi
12385
12386
12387  test -n "$ac_ct_CC" && break
12388done
12389
12390  if test "x$ac_ct_CC" = x; then
12391    CC=""
12392  else
12393    case $cross_compiling:$ac_tool_warned in
12394yes:)
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12397ac_tool_warned=yes ;;
12398esac
12399    CC=$ac_ct_CC
12400  fi
12401fi
12402
12403fi
12404
12405
12406test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12408as_fn_error $? "no acceptable C compiler found in \$PATH
12409See \`config.log' for more details" "$LINENO" 5; }
12410
12411# Provide some information about the compiler.
12412$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12413set X $ac_compile
12414ac_compiler=$2
12415for ac_option in --version -v -V -qversion; do
12416  { { ac_try="$ac_compiler $ac_option >&5"
12417case "(($ac_try" in
12418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419  *) ac_try_echo=$ac_try;;
12420esac
12421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12422$as_echo "$ac_try_echo"; } >&5
12423  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12424  ac_status=$?
12425  if test -s conftest.err; then
12426    sed '10a\
12427... rest of stderr output deleted ...
12428         10q' conftest.err >conftest.er1
12429    cat conftest.er1 >&5
12430  fi
12431  rm -f conftest.er1 conftest.err
12432  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12433  test $ac_status = 0; }
12434done
12435
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12437$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12438if ${ac_cv_c_compiler_gnu+:} false; then :
12439  $as_echo_n "(cached) " >&6
12440else
12441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442/* end confdefs.h.  */
12443
12444int
12445main ()
12446{
12447#ifndef __GNUC__
12448       choke me
12449#endif
12450
12451  ;
12452  return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_compile "$LINENO"; then :
12456  ac_compiler_gnu=yes
12457else
12458  ac_compiler_gnu=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461ac_cv_c_compiler_gnu=$ac_compiler_gnu
12462
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12465$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12466if test $ac_compiler_gnu = yes; then
12467  GCC=yes
12468else
12469  GCC=
12470fi
12471ac_test_CFLAGS=${CFLAGS+set}
12472ac_save_CFLAGS=$CFLAGS
12473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12474$as_echo_n "checking whether $CC accepts -g... " >&6; }
12475if ${ac_cv_prog_cc_g+:} false; then :
12476  $as_echo_n "(cached) " >&6
12477else
12478  ac_save_c_werror_flag=$ac_c_werror_flag
12479   ac_c_werror_flag=yes
12480   ac_cv_prog_cc_g=no
12481   CFLAGS="-g"
12482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483/* end confdefs.h.  */
12484
12485int
12486main ()
12487{
12488
12489  ;
12490  return 0;
12491}
12492_ACEOF
12493if ac_fn_c_try_compile "$LINENO"; then :
12494  ac_cv_prog_cc_g=yes
12495else
12496  CFLAGS=""
12497      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498/* end confdefs.h.  */
12499
12500int
12501main ()
12502{
12503
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508if ac_fn_c_try_compile "$LINENO"; then :
12509
12510else
12511  ac_c_werror_flag=$ac_save_c_werror_flag
12512	 CFLAGS="-g"
12513	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515
12516int
12517main ()
12518{
12519
12520  ;
12521  return 0;
12522}
12523_ACEOF
12524if ac_fn_c_try_compile "$LINENO"; then :
12525  ac_cv_prog_cc_g=yes
12526fi
12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528fi
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530fi
12531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532   ac_c_werror_flag=$ac_save_c_werror_flag
12533fi
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12535$as_echo "$ac_cv_prog_cc_g" >&6; }
12536if test "$ac_test_CFLAGS" = set; then
12537  CFLAGS=$ac_save_CFLAGS
12538elif test $ac_cv_prog_cc_g = yes; then
12539  if test "$GCC" = yes; then
12540    CFLAGS="-g -O2"
12541  else
12542    CFLAGS="-g"
12543  fi
12544else
12545  if test "$GCC" = yes; then
12546    CFLAGS="-O2"
12547  else
12548    CFLAGS=
12549  fi
12550fi
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12552$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12553if ${ac_cv_prog_cc_c89+:} false; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  ac_cv_prog_cc_c89=no
12557ac_save_CC=$CC
12558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559/* end confdefs.h.  */
12560#include <stdarg.h>
12561#include <stdio.h>
12562struct stat;
12563/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12564struct buf { int x; };
12565FILE * (*rcsopen) (struct buf *, struct stat *, int);
12566static char *e (p, i)
12567     char **p;
12568     int i;
12569{
12570  return p[i];
12571}
12572static char *f (char * (*g) (char **, int), char **p, ...)
12573{
12574  char *s;
12575  va_list v;
12576  va_start (v,p);
12577  s = g (p, va_arg (v,int));
12578  va_end (v);
12579  return s;
12580}
12581
12582/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12583   function prototypes and stuff, but not '\xHH' hex character constants.
12584   These don't provoke an error unfortunately, instead are silently treated
12585   as 'x'.  The following induces an error, until -std is added to get
12586   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12587   array size at least.  It's necessary to write '\x00'==0 to get something
12588   that's true only with -std.  */
12589int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12590
12591/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12592   inside strings and character constants.  */
12593#define FOO(x) 'x'
12594int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12595
12596int test (int i, double x);
12597struct s1 {int (*f) (int a);};
12598struct s2 {int (*f) (double a);};
12599int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12600int argc;
12601char **argv;
12602int
12603main ()
12604{
12605return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12606  ;
12607  return 0;
12608}
12609_ACEOF
12610for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12611	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12612do
12613  CC="$ac_save_CC $ac_arg"
12614  if ac_fn_c_try_compile "$LINENO"; then :
12615  ac_cv_prog_cc_c89=$ac_arg
12616fi
12617rm -f core conftest.err conftest.$ac_objext
12618  test "x$ac_cv_prog_cc_c89" != "xno" && break
12619done
12620rm -f conftest.$ac_ext
12621CC=$ac_save_CC
12622
12623fi
12624# AC_CACHE_VAL
12625case "x$ac_cv_prog_cc_c89" in
12626  x)
12627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12628$as_echo "none needed" >&6; } ;;
12629  xno)
12630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12631$as_echo "unsupported" >&6; } ;;
12632  *)
12633    CC="$CC $ac_cv_prog_cc_c89"
12634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12635$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12636esac
12637if test "x$ac_cv_prog_cc_c89" != xno; then :
12638
12639fi
12640
12641ac_ext=c
12642ac_cpp='$CPP $CPPFLAGS'
12643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646
12647ac_ext=c
12648ac_cpp='$CPP $CPPFLAGS'
12649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12653$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12654if ${am_cv_prog_cc_c_o+:} false; then :
12655  $as_echo_n "(cached) " >&6
12656else
12657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658/* end confdefs.h.  */
12659
12660int
12661main ()
12662{
12663
12664  ;
12665  return 0;
12666}
12667_ACEOF
12668  # Make sure it works both with $CC and with simple cc.
12669  # Following AC_PROG_CC_C_O, we do the test twice because some
12670  # compilers refuse to overwrite an existing .o file with -o,
12671  # though they will create one.
12672  am_cv_prog_cc_c_o=yes
12673  for am_i in 1 2; do
12674    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12675   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12676   ac_status=$?
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } \
12679         && test -f conftest2.$ac_objext; then
12680      : OK
12681    else
12682      am_cv_prog_cc_c_o=no
12683      break
12684    fi
12685  done
12686  rm -f core conftest*
12687  unset am_i
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12690$as_echo "$am_cv_prog_cc_c_o" >&6; }
12691if test "$am_cv_prog_cc_c_o" != yes; then
12692   # Losing compiler, so override with the script.
12693   # FIXME: It is wrong to rewrite CC.
12694   # But if we don't then we get into trouble of one sort or another.
12695   # A longer-term fix would be to have automake use am__CC in this case,
12696   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12697   CC="$am_aux_dir/compile $CC"
12698fi
12699ac_ext=c
12700ac_cpp='$CPP $CPPFLAGS'
12701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12703ac_compiler_gnu=$ac_cv_c_compiler_gnu
12704
12705
12706depcc="$CC"   am_compiler_list=
12707
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12709$as_echo_n "checking dependency style of $depcc... " >&6; }
12710if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12711  $as_echo_n "(cached) " >&6
12712else
12713  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12714  # We make a subdir and do the tests there.  Otherwise we can end up
12715  # making bogus files that we don't know about and never remove.  For
12716  # instance it was reported that on HP-UX the gcc test will end up
12717  # making a dummy file named 'D' -- because '-MD' means "put the output
12718  # in D".
12719  rm -rf conftest.dir
12720  mkdir conftest.dir
12721  # Copy depcomp to subdir because otherwise we won't find it if we're
12722  # using a relative directory.
12723  cp "$am_depcomp" conftest.dir
12724  cd conftest.dir
12725  # We will build objects and dependencies in a subdirectory because
12726  # it helps to detect inapplicable dependency modes.  For instance
12727  # both Tru64's cc and ICC support -MD to output dependencies as a
12728  # side effect of compilation, but ICC will put the dependencies in
12729  # the current directory while Tru64 will put them in the object
12730  # directory.
12731  mkdir sub
12732
12733  am_cv_CC_dependencies_compiler_type=none
12734  if test "$am_compiler_list" = ""; then
12735     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12736  fi
12737  am__universal=false
12738  case " $depcc " in #(
12739     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12740     esac
12741
12742  for depmode in $am_compiler_list; do
12743    # Setup a source with many dependencies, because some compilers
12744    # like to wrap large dependency lists on column 80 (with \), and
12745    # we should not choose a depcomp mode which is confused by this.
12746    #
12747    # We need to recreate these files for each test, as the compiler may
12748    # overwrite some of them when testing with obscure command lines.
12749    # This happens at least with the AIX C compiler.
12750    : > sub/conftest.c
12751    for i in 1 2 3 4 5 6; do
12752      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12753      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12754      # Solaris 10 /bin/sh.
12755      echo '/* dummy */' > sub/conftst$i.h
12756    done
12757    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12758
12759    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12760    # mode.  It turns out that the SunPro C++ compiler does not properly
12761    # handle '-M -o', and we need to detect this.  Also, some Intel
12762    # versions had trouble with output in subdirs.
12763    am__obj=sub/conftest.${OBJEXT-o}
12764    am__minus_obj="-o $am__obj"
12765    case $depmode in
12766    gcc)
12767      # This depmode causes a compiler race in universal mode.
12768      test "$am__universal" = false || continue
12769      ;;
12770    nosideeffect)
12771      # After this tag, mechanisms are not by side-effect, so they'll
12772      # only be used when explicitly requested.
12773      if test "x$enable_dependency_tracking" = xyes; then
12774	continue
12775      else
12776	break
12777      fi
12778      ;;
12779    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12780      # This compiler won't grok '-c -o', but also, the minuso test has
12781      # not run yet.  These depmodes are late enough in the game, and
12782      # so weak that their functioning should not be impacted.
12783      am__obj=conftest.${OBJEXT-o}
12784      am__minus_obj=
12785      ;;
12786    none) break ;;
12787    esac
12788    if depmode=$depmode \
12789       source=sub/conftest.c object=$am__obj \
12790       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12791       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12792         >/dev/null 2>conftest.err &&
12793       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12794       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12795       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12796       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12797      # icc doesn't choke on unknown options, it will just issue warnings
12798      # or remarks (even with -Werror).  So we grep stderr for any message
12799      # that says an option was ignored or not supported.
12800      # When given -MP, icc 7.0 and 7.1 complain thusly:
12801      #   icc: Command line warning: ignoring option '-M'; no argument required
12802      # The diagnosis changed in icc 8.0:
12803      #   icc: Command line remark: option '-MP' not supported
12804      if (grep 'ignoring option' conftest.err ||
12805          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12806        am_cv_CC_dependencies_compiler_type=$depmode
12807        break
12808      fi
12809    fi
12810  done
12811
12812  cd ..
12813  rm -rf conftest.dir
12814else
12815  am_cv_CC_dependencies_compiler_type=none
12816fi
12817
12818fi
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12820$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12821CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12822
12823 if
12824  test "x$enable_dependency_tracking" != xno \
12825  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12826  am__fastdepCC_TRUE=
12827  am__fastdepCC_FALSE='#'
12828else
12829  am__fastdepCC_TRUE='#'
12830  am__fastdepCC_FALSE=
12831fi
12832
12833
12834if test -n "$ac_tool_prefix"; then
12835  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12836set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838$as_echo_n "checking for $ac_word... " >&6; }
12839if ${ac_cv_prog_RANLIB+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  if test -n "$RANLIB"; then
12843  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12844else
12845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848  IFS=$as_save_IFS
12849  test -z "$as_dir" && as_dir=.
12850    for ac_exec_ext in '' $ac_executable_extensions; do
12851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12852    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854    break 2
12855  fi
12856done
12857  done
12858IFS=$as_save_IFS
12859
12860fi
12861fi
12862RANLIB=$ac_cv_prog_RANLIB
12863if test -n "$RANLIB"; then
12864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12865$as_echo "$RANLIB" >&6; }
12866else
12867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868$as_echo "no" >&6; }
12869fi
12870
12871
12872fi
12873if test -z "$ac_cv_prog_RANLIB"; then
12874  ac_ct_RANLIB=$RANLIB
12875  # Extract the first word of "ranlib", so it can be a program name with args.
12876set dummy ranlib; ac_word=$2
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
12879if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12880  $as_echo_n "(cached) " >&6
12881else
12882  if test -n "$ac_ct_RANLIB"; then
12883  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12884else
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888  IFS=$as_save_IFS
12889  test -z "$as_dir" && as_dir=.
12890    for ac_exec_ext in '' $ac_executable_extensions; do
12891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892    ac_cv_prog_ac_ct_RANLIB="ranlib"
12893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894    break 2
12895  fi
12896done
12897  done
12898IFS=$as_save_IFS
12899
12900fi
12901fi
12902ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12903if test -n "$ac_ct_RANLIB"; then
12904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12905$as_echo "$ac_ct_RANLIB" >&6; }
12906else
12907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
12909fi
12910
12911  if test "x$ac_ct_RANLIB" = x; then
12912    RANLIB=":"
12913  else
12914    case $cross_compiling:$ac_tool_warned in
12915yes:)
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918ac_tool_warned=yes ;;
12919esac
12920    RANLIB=$ac_ct_RANLIB
12921  fi
12922else
12923  RANLIB="$ac_cv_prog_RANLIB"
12924fi
12925
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12927$as_echo_n "checking whether ln -s works... " >&6; }
12928LN_S=$as_ln_s
12929if test "$LN_S" = "ln -s"; then
12930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12931$as_echo "yes" >&6; }
12932else
12933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12934$as_echo "no, using $LN_S" >&6; }
12935fi
12936
12937
12938
12939# Add -Wall if we are using GCC.
12940if test "x$GCC" = "xyes"; then
12941  CFLAGS="$CFLAGS -Wall"
12942fi
12943
12944# Check if enable profiling
12945# Check whether --enable-profiling was given.
12946if test "${enable_profiling+set}" = set; then :
12947  enableval=$enable_profiling; enable_profiling=yes
12948else
12949  :
12950fi
12951
12952 if test x$enable_profiling = xyes; then
12953  ENABLE_PROFILING_TRUE=
12954  ENABLE_PROFILING_FALSE='#'
12955else
12956  ENABLE_PROFILING_TRUE='#'
12957  ENABLE_PROFILING_FALSE=
12958fi
12959
12960
12961# Checks for header files.
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12963$as_echo_n "checking for ANSI C header files... " >&6; }
12964if ${ac_cv_header_stdc+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h.  */
12969#include <stdlib.h>
12970#include <stdarg.h>
12971#include <string.h>
12972#include <float.h>
12973
12974int
12975main ()
12976{
12977
12978  ;
12979  return 0;
12980}
12981_ACEOF
12982if ac_fn_c_try_compile "$LINENO"; then :
12983  ac_cv_header_stdc=yes
12984else
12985  ac_cv_header_stdc=no
12986fi
12987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988
12989if test $ac_cv_header_stdc = yes; then
12990  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992/* end confdefs.h.  */
12993#include <string.h>
12994
12995_ACEOF
12996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12997  $EGREP "memchr" >/dev/null 2>&1; then :
12998
12999else
13000  ac_cv_header_stdc=no
13001fi
13002rm -f conftest*
13003
13004fi
13005
13006if test $ac_cv_header_stdc = yes; then
13007  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009/* end confdefs.h.  */
13010#include <stdlib.h>
13011
13012_ACEOF
13013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13014  $EGREP "free" >/dev/null 2>&1; then :
13015
13016else
13017  ac_cv_header_stdc=no
13018fi
13019rm -f conftest*
13020
13021fi
13022
13023if test $ac_cv_header_stdc = yes; then
13024  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13025  if test "$cross_compiling" = yes; then :
13026  :
13027else
13028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030#include <ctype.h>
13031#include <stdlib.h>
13032#if ((' ' & 0x0FF) == 0x020)
13033# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13034# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13035#else
13036# define ISLOWER(c) \
13037		   (('a' <= (c) && (c) <= 'i') \
13038		     || ('j' <= (c) && (c) <= 'r') \
13039		     || ('s' <= (c) && (c) <= 'z'))
13040# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13041#endif
13042
13043#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13044int
13045main ()
13046{
13047  int i;
13048  for (i = 0; i < 256; i++)
13049    if (XOR (islower (i), ISLOWER (i))
13050	|| toupper (i) != TOUPPER (i))
13051      return 2;
13052  return 0;
13053}
13054_ACEOF
13055if ac_fn_c_try_run "$LINENO"; then :
13056
13057else
13058  ac_cv_header_stdc=no
13059fi
13060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13061  conftest.$ac_objext conftest.beam conftest.$ac_ext
13062fi
13063
13064fi
13065fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13067$as_echo "$ac_cv_header_stdc" >&6; }
13068if test $ac_cv_header_stdc = yes; then
13069
13070$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13071
13072fi
13073
13074
13075# Check for systems which need -lsocket and -lnsl
13076#AX_LIB_SOCKET_NSL
13077
13078# Check for the math library (needed by cjson on some platforms)
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13080$as_echo_n "checking for library containing floor... " >&6; }
13081if ${ac_cv_search_floor+:} false; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  ac_func_search_save_LIBS=$LIBS
13085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h.  */
13087
13088/* Override any GCC internal prototype to avoid an error.
13089   Use char because int might match the return type of a GCC
13090   builtin and then its argument prototype would still apply.  */
13091#ifdef __cplusplus
13092extern "C"
13093#endif
13094char floor ();
13095int
13096main ()
13097{
13098return floor ();
13099  ;
13100  return 0;
13101}
13102_ACEOF
13103for ac_lib in '' m; do
13104  if test -z "$ac_lib"; then
13105    ac_res="none required"
13106  else
13107    ac_res=-l$ac_lib
13108    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13109  fi
13110  if ac_fn_c_try_link "$LINENO"; then :
13111  ac_cv_search_floor=$ac_res
13112fi
13113rm -f core conftest.err conftest.$ac_objext \
13114    conftest$ac_exeext
13115  if ${ac_cv_search_floor+:} false; then :
13116  break
13117fi
13118done
13119if ${ac_cv_search_floor+:} false; then :
13120
13121else
13122  ac_cv_search_floor=no
13123fi
13124rm conftest.$ac_ext
13125LIBS=$ac_func_search_save_LIBS
13126fi
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13128$as_echo "$ac_cv_search_floor" >&6; }
13129ac_res=$ac_cv_search_floor
13130if test "$ac_res" != no; then :
13131  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13132
13133else
13134
13135echo "floor()"
13136exit 1
13137
13138fi
13139
13140
13141# On illumos we need -lsocket
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13143$as_echo_n "checking for library containing socket... " >&6; }
13144if ${ac_cv_search_socket+:} false; then :
13145  $as_echo_n "(cached) " >&6
13146else
13147  ac_func_search_save_LIBS=$LIBS
13148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h.  */
13150
13151/* Override any GCC internal prototype to avoid an error.
13152   Use char because int might match the return type of a GCC
13153   builtin and then its argument prototype would still apply.  */
13154#ifdef __cplusplus
13155extern "C"
13156#endif
13157char socket ();
13158int
13159main ()
13160{
13161return socket ();
13162  ;
13163  return 0;
13164}
13165_ACEOF
13166for ac_lib in '' socket; do
13167  if test -z "$ac_lib"; then
13168    ac_res="none required"
13169  else
13170    ac_res=-l$ac_lib
13171    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13172  fi
13173  if ac_fn_c_try_link "$LINENO"; then :
13174  ac_cv_search_socket=$ac_res
13175fi
13176rm -f core conftest.err conftest.$ac_objext \
13177    conftest$ac_exeext
13178  if ${ac_cv_search_socket+:} false; then :
13179  break
13180fi
13181done
13182if ${ac_cv_search_socket+:} false; then :
13183
13184else
13185  ac_cv_search_socket=no
13186fi
13187rm conftest.$ac_ext
13188LIBS=$ac_func_search_save_LIBS
13189fi
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13191$as_echo "$ac_cv_search_socket" >&6; }
13192ac_res=$ac_cv_search_socket
13193if test "$ac_res" != no; then :
13194  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195
13196else
13197
13198echo "socket()"
13199exit 1
13200
13201fi
13202
13203
13204# On illumos inet_ntop in in -lnsl
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13206$as_echo_n "checking for library containing inet_ntop... " >&6; }
13207if ${ac_cv_search_inet_ntop+:} false; then :
13208  $as_echo_n "(cached) " >&6
13209else
13210  ac_func_search_save_LIBS=$LIBS
13211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212/* end confdefs.h.  */
13213
13214/* Override any GCC internal prototype to avoid an error.
13215   Use char because int might match the return type of a GCC
13216   builtin and then its argument prototype would still apply.  */
13217#ifdef __cplusplus
13218extern "C"
13219#endif
13220char inet_ntop ();
13221int
13222main ()
13223{
13224return inet_ntop ();
13225  ;
13226  return 0;
13227}
13228_ACEOF
13229for ac_lib in '' nsl; do
13230  if test -z "$ac_lib"; then
13231    ac_res="none required"
13232  else
13233    ac_res=-l$ac_lib
13234    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13235  fi
13236  if ac_fn_c_try_link "$LINENO"; then :
13237  ac_cv_search_inet_ntop=$ac_res
13238fi
13239rm -f core conftest.err conftest.$ac_objext \
13240    conftest$ac_exeext
13241  if ${ac_cv_search_inet_ntop+:} false; then :
13242  break
13243fi
13244done
13245if ${ac_cv_search_inet_ntop+:} false; then :
13246
13247else
13248  ac_cv_search_inet_ntop=no
13249fi
13250rm conftest.$ac_ext
13251LIBS=$ac_func_search_save_LIBS
13252fi
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13254$as_echo "$ac_cv_search_inet_ntop" >&6; }
13255ac_res=$ac_cv_search_inet_ntop
13256if test "$ac_res" != no; then :
13257  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258
13259else
13260
13261echo "inet_ntop()"
13262exit 1
13263
13264fi
13265
13266
13267# Checks for typedefs, structures, and compiler characteristics.
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13269$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13270if ${ac_cv_c_const+:} false; then :
13271  $as_echo_n "(cached) " >&6
13272else
13273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274/* end confdefs.h.  */
13275
13276int
13277main ()
13278{
13279
13280#ifndef __cplusplus
13281  /* Ultrix mips cc rejects this sort of thing.  */
13282  typedef int charset[2];
13283  const charset cs = { 0, 0 };
13284  /* SunOS 4.1.1 cc rejects this.  */
13285  char const *const *pcpcc;
13286  char **ppc;
13287  /* NEC SVR4.0.2 mips cc rejects this.  */
13288  struct point {int x, y;};
13289  static struct point const zero = {0,0};
13290  /* AIX XL C 1.02.0.0 rejects this.
13291     It does not let you subtract one const X* pointer from another in
13292     an arm of an if-expression whose if-part is not a constant
13293     expression */
13294  const char *g = "string";
13295  pcpcc = &g + (g ? g-g : 0);
13296  /* HPUX 7.0 cc rejects these. */
13297  ++pcpcc;
13298  ppc = (char**) pcpcc;
13299  pcpcc = (char const *const *) ppc;
13300  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13301    char tx;
13302    char *t = &tx;
13303    char const *s = 0 ? (char *) 0 : (char const *) 0;
13304
13305    *t++ = 0;
13306    if (s) return 0;
13307  }
13308  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13309    int x[] = {25, 17};
13310    const int *foo = &x[0];
13311    ++foo;
13312  }
13313  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13314    typedef const int *iptr;
13315    iptr p = 0;
13316    ++p;
13317  }
13318  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13319       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13320    struct s { int j; const int *ap[3]; } bx;
13321    struct s *b = &bx; b->j = 5;
13322  }
13323  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13324    const int foo = 10;
13325    if (!foo) return 0;
13326  }
13327  return !cs[0] && !zero.x;
13328#endif
13329
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_compile "$LINENO"; then :
13335  ac_cv_c_const=yes
13336else
13337  ac_cv_c_const=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340fi
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13342$as_echo "$ac_cv_c_const" >&6; }
13343if test $ac_cv_c_const = no; then
13344
13345$as_echo "#define const /**/" >>confdefs.h
13346
13347fi
13348
13349
13350# Check for poll.h (it's in POSIX so everyone should have it?)
13351for ac_header in poll.h
13352do :
13353  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13354if test "x$ac_cv_header_poll_h" = xyes; then :
13355  cat >>confdefs.h <<_ACEOF
13356#define HAVE_POLL_H 1
13357_ACEOF
13358
13359fi
13360
13361done
13362
13363
13364# Check for SCTP support
13365for ac_header in sys/socket.h
13366do :
13367  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13368if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13369  cat >>confdefs.h <<_ACEOF
13370#define HAVE_SYS_SOCKET_H 1
13371_ACEOF
13372
13373fi
13374
13375done
13376
13377for ac_header in netinet/sctp.h
13378do :
13379  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
13380#include <sys/socket.h>
13381#endif
13382
13383"
13384if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
13385  cat >>confdefs.h <<_ACEOF
13386#define HAVE_NETINET_SCTP_H 1
13387_ACEOF
13388
13389$as_echo "#define HAVE_SCTP 1" >>confdefs.h
13390
13391		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
13392$as_echo_n "checking for library containing sctp_bindx... " >&6; }
13393if ${ac_cv_search_sctp_bindx+:} false; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  ac_func_search_save_LIBS=$LIBS
13397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398/* end confdefs.h.  */
13399
13400/* Override any GCC internal prototype to avoid an error.
13401   Use char because int might match the return type of a GCC
13402   builtin and then its argument prototype would still apply.  */
13403#ifdef __cplusplus
13404extern "C"
13405#endif
13406char sctp_bindx ();
13407int
13408main ()
13409{
13410return sctp_bindx ();
13411  ;
13412  return 0;
13413}
13414_ACEOF
13415for ac_lib in '' sctp; do
13416  if test -z "$ac_lib"; then
13417    ac_res="none required"
13418  else
13419    ac_res=-l$ac_lib
13420    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13421  fi
13422  if ac_fn_c_try_link "$LINENO"; then :
13423  ac_cv_search_sctp_bindx=$ac_res
13424fi
13425rm -f core conftest.err conftest.$ac_objext \
13426    conftest$ac_exeext
13427  if ${ac_cv_search_sctp_bindx+:} false; then :
13428  break
13429fi
13430done
13431if ${ac_cv_search_sctp_bindx+:} false; then :
13432
13433else
13434  ac_cv_search_sctp_bindx=no
13435fi
13436rm conftest.$ac_ext
13437LIBS=$ac_func_search_save_LIBS
13438fi
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
13440$as_echo "$ac_cv_search_sctp_bindx" >&6; }
13441ac_res=$ac_cv_search_sctp_bindx
13442if test "$ac_res" != no; then :
13443  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13444
13445fi
13446
13447
13448# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13449# -------------------------------------------
13450# Tests whether TYPE exists after having included INCLUDES, setting cache
13451# variable VAR accordingly.
13452ac_fn_c_check_type ()
13453{
13454  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13456$as_echo_n "checking for $2... " >&6; }
13457if eval \${$3+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  eval "$3=no"
13461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462/* end confdefs.h.  */
13463$4
13464int
13465main ()
13466{
13467if (sizeof ($2))
13468	 return 0;
13469  ;
13470  return 0;
13471}
13472_ACEOF
13473if ac_fn_c_try_compile "$LINENO"; then :
13474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475/* end confdefs.h.  */
13476$4
13477int
13478main ()
13479{
13480if (sizeof (($2)))
13481	    return 0;
13482  ;
13483  return 0;
13484}
13485_ACEOF
13486if ac_fn_c_try_compile "$LINENO"; then :
13487
13488else
13489  eval "$3=yes"
13490fi
13491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492fi
13493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494fi
13495eval ac_res=\$$3
13496	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13497$as_echo "$ac_res" >&6; }
13498  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13499
13500} # ac_fn_c_check_type
13501ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
13502"
13503if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
13504
13505cat >>confdefs.h <<_ACEOF
13506#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
13507_ACEOF
13508
13509
13510fi
13511
13512fi
13513
13514done
13515
13516
13517ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13518if test "x$ac_cv_header_endian_h" = xyes; then :
13519
13520$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
13521
13522else
13523  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13524if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13525
13526$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
13527
13528else
13529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
13530$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
13531
13532fi
13533
13534
13535
13536fi
13537
13538
13539
13540if test "x$with_openssl" = "xno"; then
13541    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
13542$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
13543else
13544    # Check for OPENSSL support
13545    havs_ssl=false
13546
13547    found=false
13548
13549# Check whether --with-openssl was given.
13550if test "${with_openssl+set}" = set; then :
13551  withval=$with_openssl;
13552            case "$withval" in
13553            "" | y | ye | yes | n | no)
13554            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13555              ;;
13556            *) ssldirs="$withval"
13557              ;;
13558            esac
13559
13560else
13561
13562            # if pkg-config is installed and openssl has installed a .pc file,
13563            # then use that information and don't search ssldirs
13564            if test -n "$ac_tool_prefix"; then
13565  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13566set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568$as_echo_n "checking for $ac_word... " >&6; }
13569if ${ac_cv_prog_PKG_CONFIG+:} false; then :
13570  $as_echo_n "(cached) " >&6
13571else
13572  if test -n "$PKG_CONFIG"; then
13573  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
13574else
13575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576for as_dir in $PATH
13577do
13578  IFS=$as_save_IFS
13579  test -z "$as_dir" && as_dir=.
13580    for ac_exec_ext in '' $ac_executable_extensions; do
13581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13582    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
13583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584    break 2
13585  fi
13586done
13587  done
13588IFS=$as_save_IFS
13589
13590fi
13591fi
13592PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
13593if test -n "$PKG_CONFIG"; then
13594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13595$as_echo "$PKG_CONFIG" >&6; }
13596else
13597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599fi
13600
13601
13602fi
13603if test -z "$ac_cv_prog_PKG_CONFIG"; then
13604  ac_ct_PKG_CONFIG=$PKG_CONFIG
13605  # Extract the first word of "pkg-config", so it can be a program name with args.
13606set dummy pkg-config; ac_word=$2
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
13609if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
13610  $as_echo_n "(cached) " >&6
13611else
13612  if test -n "$ac_ct_PKG_CONFIG"; then
13613  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618  IFS=$as_save_IFS
13619  test -z "$as_dir" && as_dir=.
13620    for ac_exec_ext in '' $ac_executable_extensions; do
13621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
13623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624    break 2
13625  fi
13626done
13627  done
13628IFS=$as_save_IFS
13629
13630fi
13631fi
13632ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
13633if test -n "$ac_ct_PKG_CONFIG"; then
13634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
13635$as_echo "$ac_ct_PKG_CONFIG" >&6; }
13636else
13637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
13639fi
13640
13641  if test "x$ac_ct_PKG_CONFIG" = x; then
13642    PKG_CONFIG=""
13643  else
13644    case $cross_compiling:$ac_tool_warned in
13645yes:)
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13648ac_tool_warned=yes ;;
13649esac
13650    PKG_CONFIG=$ac_ct_PKG_CONFIG
13651  fi
13652else
13653  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
13654fi
13655
13656            if test x"$PKG_CONFIG" != x""; then
13657                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13658                if test $? = 0; then
13659                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13660                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13661                    found=true
13662                fi
13663            fi
13664
13665            # no such luck; use some default ssldirs
13666            if ! $found; then
13667                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13668            fi
13669
13670
13671fi
13672
13673
13674
13675    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13676    # an 'openssl' subdirectory
13677
13678    if ! $found; then
13679        OPENSSL_INCLUDES=
13680        for ssldir in $ssldirs; do
13681            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13682$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13683            if test -f "$ssldir/include/openssl/ssl.h"; then
13684                OPENSSL_INCLUDES="-I$ssldir/include"
13685                OPENSSL_LDFLAGS="-L$ssldir/lib"
13686                OPENSSL_LIBS="-lssl -lcrypto"
13687                found=true
13688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13689$as_echo "yes" >&6; }
13690                break
13691            else
13692                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693$as_echo "no" >&6; }
13694            fi
13695        done
13696
13697        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13698        # it will just work!
13699    fi
13700
13701    # try the preprocessor and linker with our new flags,
13702    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13703
13704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13705$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13706    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13707        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13708
13709    save_LIBS="$LIBS"
13710    save_LDFLAGS="$LDFLAGS"
13711    save_CPPFLAGS="$CPPFLAGS"
13712    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13713    LIBS="$OPENSSL_LIBS $LIBS"
13714    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13715    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716/* end confdefs.h.  */
13717#include <openssl/ssl.h>
13718int
13719main ()
13720{
13721SSL_new(NULL)
13722  ;
13723  return 0;
13724}
13725_ACEOF
13726if ac_fn_c_try_link "$LINENO"; then :
13727
13728            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13729$as_echo "yes" >&6; }
13730
13731$as_echo "#define HAVE_SSL 1" >>confdefs.h
13732
13733          have_ssl=true
13734
13735else
13736
13737            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738$as_echo "no" >&6; }
13739             if test "x$with_openssl" != "x"; then
13740	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13742as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
13743See \`config.log' for more details" "$LINENO" 5; }
13744	  fi
13745
13746
13747fi
13748rm -f core conftest.err conftest.$ac_objext \
13749    conftest$ac_exeext conftest.$ac_ext
13750    CPPFLAGS="$save_CPPFLAGS"
13751    LDFLAGS="$save_LDFLAGS"
13752    LIBS="$save_LIBS"
13753
13754
13755
13756
13757
13758    if $have_ssl; then
13759        case $host in
13760           *-*-cygwin)
13761             CFLAGS="$CFLAGS -DNOCRYPT"
13762             ;;
13763        esac
13764        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13765        LIBS="$OPENSSL_LIBS $LIBS"
13766        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13767    fi
13768fi
13769
13770# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
13772$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
13773if ${iperf3_cv_header_tcp_congestion+:} false; then :
13774  $as_echo_n "(cached) " >&6
13775else
13776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777/* end confdefs.h.  */
13778#include <netinet/tcp.h>
13779#ifdef TCP_CONGESTION
13780  yes
13781#endif
13782
13783_ACEOF
13784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785  $EGREP "yes" >/dev/null 2>&1; then :
13786  iperf3_cv_header_tcp_congestion=yes
13787else
13788  iperf3_cv_header_tcp_congestion=no
13789fi
13790rm -f conftest*
13791
13792fi
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
13794$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
13795if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
13796
13797$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
13798
13799fi
13800
13801# Check for IPv6 flowlabel support (believed to be Linux only)
13802# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13803# don't use that file directly (we have our own stripped-down
13804# copy, see src/flowlabel.h for more details).
13805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
13806$as_echo_n "checking IPv6 flowlabel support... " >&6; }
13807if ${iperf3_cv_header_flowlabel+:} false; then :
13808  $as_echo_n "(cached) " >&6
13809else
13810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811/* end confdefs.h.  */
13812#include <sys/types.h>
13813#include <linux/in6.h>
13814#ifdef IPV6_FLOWLABEL_MGR
13815  yes
13816#endif
13817
13818_ACEOF
13819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13820  $EGREP "yes" >/dev/null 2>&1; then :
13821  iperf3_cv_header_flowlabel=yes
13822else
13823  iperf3_cv_header_flowlabel=no
13824fi
13825rm -f conftest*
13826
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
13829$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13830if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13831
13832$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
13833
13834fi
13835
13836# Check for CPU affinity support.  FreeBSD and Linux do this differently
13837# unfortunately so we have to check separately for each of them.
13838# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13839# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13840# generic concept is available.
13841for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13842do :
13843  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13844ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13845if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13846  cat >>confdefs.h <<_ACEOF
13847#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13848_ACEOF
13849
13850$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13851
13852fi
13853done
13854
13855
13856# Check for daemon().  Most systems have this but a few (IRIX) don't.
13857for ac_func in daemon
13858do :
13859  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13860if test "x$ac_cv_func_daemon" = xyes; then :
13861  cat >>confdefs.h <<_ACEOF
13862#define HAVE_DAEMON 1
13863_ACEOF
13864
13865fi
13866done
13867
13868
13869# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13870# this system call, but they're all different in terms of what headers
13871# it needs and what arguments it expects.
13872for ac_func in sendfile
13873do :
13874  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13875if test "x$ac_cv_func_sendfile" = xyes; then :
13876  cat >>confdefs.h <<_ACEOF
13877#define HAVE_SENDFILE 1
13878_ACEOF
13879
13880fi
13881done
13882
13883
13884# Check for getline support, used as a part of authenticated
13885# connections.
13886for ac_func in getline
13887do :
13888  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13889if test "x$ac_cv_func_getline" = xyes; then :
13890  cat >>confdefs.h <<_ACEOF
13891#define HAVE_GETLINE 1
13892_ACEOF
13893
13894fi
13895done
13896
13897
13898# Check for packet pacing socket option (Linux only for now).
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13900$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13901if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13902  $as_echo_n "(cached) " >&6
13903else
13904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905/* end confdefs.h.  */
13906#include <sys/socket.h>
13907#ifdef SO_MAX_PACING_RATE
13908  yes
13909#endif
13910
13911_ACEOF
13912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13913  $EGREP "yes" >/dev/null 2>&1; then :
13914  iperf3_cv_header_so_max_pacing_rate=yes
13915else
13916  iperf3_cv_header_so_max_pacing_rate=no
13917fi
13918rm -f conftest*
13919
13920fi
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13922$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13923if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13924
13925$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13926
13927fi
13928
13929# Check if we need -lrt for clock_gettime
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13931$as_echo_n "checking for library containing clock_gettime... " >&6; }
13932if ${ac_cv_search_clock_gettime+:} false; then :
13933  $as_echo_n "(cached) " >&6
13934else
13935  ac_func_search_save_LIBS=$LIBS
13936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938
13939/* Override any GCC internal prototype to avoid an error.
13940   Use char because int might match the return type of a GCC
13941   builtin and then its argument prototype would still apply.  */
13942#ifdef __cplusplus
13943extern "C"
13944#endif
13945char clock_gettime ();
13946int
13947main ()
13948{
13949return clock_gettime ();
13950  ;
13951  return 0;
13952}
13953_ACEOF
13954for ac_lib in '' rt posix4; do
13955  if test -z "$ac_lib"; then
13956    ac_res="none required"
13957  else
13958    ac_res=-l$ac_lib
13959    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13960  fi
13961  if ac_fn_c_try_link "$LINENO"; then :
13962  ac_cv_search_clock_gettime=$ac_res
13963fi
13964rm -f core conftest.err conftest.$ac_objext \
13965    conftest$ac_exeext
13966  if ${ac_cv_search_clock_gettime+:} false; then :
13967  break
13968fi
13969done
13970if ${ac_cv_search_clock_gettime+:} false; then :
13971
13972else
13973  ac_cv_search_clock_gettime=no
13974fi
13975rm conftest.$ac_ext
13976LIBS=$ac_func_search_save_LIBS
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13979$as_echo "$ac_cv_search_clock_gettime" >&6; }
13980ac_res=$ac_cv_search_clock_gettime
13981if test "$ac_res" != no; then :
13982  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13983
13984fi
13985
13986# Check for clock_gettime support
13987for ac_func in clock_gettime
13988do :
13989  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13990if test "x$ac_cv_func_clock_gettime" = xyes; then :
13991  cat >>confdefs.h <<_ACEOF
13992#define HAVE_CLOCK_GETTIME 1
13993_ACEOF
13994
13995fi
13996done
13997
13998
13999ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
14000
14001cat >confcache <<\_ACEOF
14002# This file is a shell script that caches the results of configure
14003# tests run on this system so they can be shared between configure
14004# scripts and configure runs, see configure's option --config-cache.
14005# It is not useful on other systems.  If it contains results you don't
14006# want to keep, you may remove or edit it.
14007#
14008# config.status only pays attention to the cache file if you give it
14009# the --recheck option to rerun configure.
14010#
14011# `ac_cv_env_foo' variables (set or unset) will be overridden when
14012# loading this file, other *unset* `ac_cv_foo' will be assigned the
14013# following values.
14014
14015_ACEOF
14016
14017# The following way of writing the cache mishandles newlines in values,
14018# but we know of no workaround that is simple, portable, and efficient.
14019# So, we kill variables containing newlines.
14020# Ultrix sh set writes to stderr and can't be redirected directly,
14021# and sets the high bit in the cache file unless we assign to the vars.
14022(
14023  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14024    eval ac_val=\$$ac_var
14025    case $ac_val in #(
14026    *${as_nl}*)
14027      case $ac_var in #(
14028      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14030      esac
14031      case $ac_var in #(
14032      _ | IFS | as_nl) ;; #(
14033      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14034      *) { eval $ac_var=; unset $ac_var;} ;;
14035      esac ;;
14036    esac
14037  done
14038
14039  (set) 2>&1 |
14040    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14041    *${as_nl}ac_space=\ *)
14042      # `set' does not quote correctly, so add quotes: double-quote
14043      # substitution turns \\\\ into \\, and sed turns \\ into \.
14044      sed -n \
14045	"s/'/'\\\\''/g;
14046	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14047      ;; #(
14048    *)
14049      # `set' quotes correctly as required by POSIX, so do not add quotes.
14050      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14051      ;;
14052    esac |
14053    sort
14054) |
14055  sed '
14056     /^ac_cv_env_/b end
14057     t clear
14058     :clear
14059     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14060     t end
14061     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14062     :end' >>confcache
14063if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14064  if test -w "$cache_file"; then
14065    if test "x$cache_file" != "x/dev/null"; then
14066      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14067$as_echo "$as_me: updating cache $cache_file" >&6;}
14068      if test ! -f "$cache_file" || test -h "$cache_file"; then
14069	cat confcache >"$cache_file"
14070      else
14071        case $cache_file in #(
14072        */* | ?:*)
14073	  mv -f confcache "$cache_file"$$ &&
14074	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14075        *)
14076	  mv -f confcache "$cache_file" ;;
14077	esac
14078      fi
14079    fi
14080  else
14081    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14082$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14083  fi
14084fi
14085rm -f confcache
14086
14087test "x$prefix" = xNONE && prefix=$ac_default_prefix
14088# Let make expand exec_prefix.
14089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14090
14091DEFS=-DHAVE_CONFIG_H
14092
14093ac_libobjs=
14094ac_ltlibobjs=
14095for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14096  # 1. Remove the extension, and $U if already installed.
14097  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14098  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14099  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14100  #    will be set to the directory where LIBOBJS objects are built.
14101  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14102  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14103done
14104LIBOBJS=$ac_libobjs
14105
14106LTLIBOBJS=$ac_ltlibobjs
14107
14108
14109if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14110  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14111Usually this means the macro was only invoked conditionally." "$LINENO" 5
14112fi
14113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14114$as_echo_n "checking that generated files are newer than configure... " >&6; }
14115   if test -n "$am_sleep_pid"; then
14116     # Hide warnings about reused PIDs.
14117     wait $am_sleep_pid 2>/dev/null
14118   fi
14119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14120$as_echo "done" >&6; }
14121 if test -n "$EXEEXT"; then
14122  am__EXEEXT_TRUE=
14123  am__EXEEXT_FALSE='#'
14124else
14125  am__EXEEXT_TRUE='#'
14126  am__EXEEXT_FALSE=
14127fi
14128
14129if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14130  as_fn_error $? "conditional \"AMDEP\" was never defined.
14131Usually this means the macro was only invoked conditionally." "$LINENO" 5
14132fi
14133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14134  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14135Usually this means the macro was only invoked conditionally." "$LINENO" 5
14136fi
14137if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14138  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14139Usually this means the macro was only invoked conditionally." "$LINENO" 5
14140fi
14141if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14142  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14143Usually this means the macro was only invoked conditionally." "$LINENO" 5
14144fi
14145if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14146  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
14147Usually this means the macro was only invoked conditionally." "$LINENO" 5
14148fi
14149
14150: "${CONFIG_STATUS=./config.status}"
14151ac_write_fail=0
14152ac_clean_files_save=$ac_clean_files
14153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14154{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14155$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14156as_write_fail=0
14157cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14158#! $SHELL
14159# Generated by $as_me.
14160# Run this file to recreate the current configuration.
14161# Compiler output produced by configure, useful for debugging
14162# configure, is in config.log if it exists.
14163
14164debug=false
14165ac_cs_recheck=false
14166ac_cs_silent=false
14167
14168SHELL=\${CONFIG_SHELL-$SHELL}
14169export SHELL
14170_ASEOF
14171cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14172## -------------------- ##
14173## M4sh Initialization. ##
14174## -------------------- ##
14175
14176# Be more Bourne compatible
14177DUALCASE=1; export DUALCASE # for MKS sh
14178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14179  emulate sh
14180  NULLCMD=:
14181  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14182  # is contrary to our usage.  Disable this feature.
14183  alias -g '${1+"$@"}'='"$@"'
14184  setopt NO_GLOB_SUBST
14185else
14186  case `(set -o) 2>/dev/null` in #(
14187  *posix*) :
14188    set -o posix ;; #(
14189  *) :
14190     ;;
14191esac
14192fi
14193
14194
14195as_nl='
14196'
14197export as_nl
14198# Printing a long string crashes Solaris 7 /usr/bin/printf.
14199as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14202# Prefer a ksh shell builtin over an external printf program on Solaris,
14203# but without wasting forks for bash or zsh.
14204if test -z "$BASH_VERSION$ZSH_VERSION" \
14205    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14206  as_echo='print -r --'
14207  as_echo_n='print -rn --'
14208elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14209  as_echo='printf %s\n'
14210  as_echo_n='printf %s'
14211else
14212  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14213    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14214    as_echo_n='/usr/ucb/echo -n'
14215  else
14216    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14217    as_echo_n_body='eval
14218      arg=$1;
14219      case $arg in #(
14220      *"$as_nl"*)
14221	expr "X$arg" : "X\\(.*\\)$as_nl";
14222	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14223      esac;
14224      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14225    '
14226    export as_echo_n_body
14227    as_echo_n='sh -c $as_echo_n_body as_echo'
14228  fi
14229  export as_echo_body
14230  as_echo='sh -c $as_echo_body as_echo'
14231fi
14232
14233# The user is always right.
14234if test "${PATH_SEPARATOR+set}" != set; then
14235  PATH_SEPARATOR=:
14236  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14237    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14238      PATH_SEPARATOR=';'
14239  }
14240fi
14241
14242
14243# IFS
14244# We need space, tab and new line, in precisely that order.  Quoting is
14245# there to prevent editors from complaining about space-tab.
14246# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14247# splitting by setting IFS to empty value.)
14248IFS=" ""	$as_nl"
14249
14250# Find who we are.  Look in the path if we contain no directory separator.
14251as_myself=
14252case $0 in #((
14253  *[\\/]* ) as_myself=$0 ;;
14254  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14255for as_dir in $PATH
14256do
14257  IFS=$as_save_IFS
14258  test -z "$as_dir" && as_dir=.
14259    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14260  done
14261IFS=$as_save_IFS
14262
14263     ;;
14264esac
14265# We did not find ourselves, most probably we were run as `sh COMMAND'
14266# in which case we are not to be found in the path.
14267if test "x$as_myself" = x; then
14268  as_myself=$0
14269fi
14270if test ! -f "$as_myself"; then
14271  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14272  exit 1
14273fi
14274
14275# Unset variables that we do not need and which cause bugs (e.g. in
14276# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14277# suppresses any "Segmentation fault" message there.  '((' could
14278# trigger a bug in pdksh 5.2.14.
14279for as_var in BASH_ENV ENV MAIL MAILPATH
14280do eval test x\${$as_var+set} = xset \
14281  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14282done
14283PS1='$ '
14284PS2='> '
14285PS4='+ '
14286
14287# NLS nuisances.
14288LC_ALL=C
14289export LC_ALL
14290LANGUAGE=C
14291export LANGUAGE
14292
14293# CDPATH.
14294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14295
14296
14297# as_fn_error STATUS ERROR [LINENO LOG_FD]
14298# ----------------------------------------
14299# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14300# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14301# script with STATUS, using 1 if that was 0.
14302as_fn_error ()
14303{
14304  as_status=$1; test $as_status -eq 0 && as_status=1
14305  if test "$4"; then
14306    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14307    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14308  fi
14309  $as_echo "$as_me: error: $2" >&2
14310  as_fn_exit $as_status
14311} # as_fn_error
14312
14313
14314# as_fn_set_status STATUS
14315# -----------------------
14316# Set $? to STATUS, without forking.
14317as_fn_set_status ()
14318{
14319  return $1
14320} # as_fn_set_status
14321
14322# as_fn_exit STATUS
14323# -----------------
14324# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14325as_fn_exit ()
14326{
14327  set +e
14328  as_fn_set_status $1
14329  exit $1
14330} # as_fn_exit
14331
14332# as_fn_unset VAR
14333# ---------------
14334# Portably unset VAR.
14335as_fn_unset ()
14336{
14337  { eval $1=; unset $1;}
14338}
14339as_unset=as_fn_unset
14340# as_fn_append VAR VALUE
14341# ----------------------
14342# Append the text in VALUE to the end of the definition contained in VAR. Take
14343# advantage of any shell optimizations that allow amortized linear growth over
14344# repeated appends, instead of the typical quadratic growth present in naive
14345# implementations.
14346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14347  eval 'as_fn_append ()
14348  {
14349    eval $1+=\$2
14350  }'
14351else
14352  as_fn_append ()
14353  {
14354    eval $1=\$$1\$2
14355  }
14356fi # as_fn_append
14357
14358# as_fn_arith ARG...
14359# ------------------
14360# Perform arithmetic evaluation on the ARGs, and store the result in the
14361# global $as_val. Take advantage of shells that can avoid forks. The arguments
14362# must be portable across $(()) and expr.
14363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14364  eval 'as_fn_arith ()
14365  {
14366    as_val=$(( $* ))
14367  }'
14368else
14369  as_fn_arith ()
14370  {
14371    as_val=`expr "$@" || test $? -eq 1`
14372  }
14373fi # as_fn_arith
14374
14375
14376if expr a : '\(a\)' >/dev/null 2>&1 &&
14377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14378  as_expr=expr
14379else
14380  as_expr=false
14381fi
14382
14383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14384  as_basename=basename
14385else
14386  as_basename=false
14387fi
14388
14389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14390  as_dirname=dirname
14391else
14392  as_dirname=false
14393fi
14394
14395as_me=`$as_basename -- "$0" ||
14396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14397	 X"$0" : 'X\(//\)$' \| \
14398	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14399$as_echo X/"$0" |
14400    sed '/^.*\/\([^/][^/]*\)\/*$/{
14401	    s//\1/
14402	    q
14403	  }
14404	  /^X\/\(\/\/\)$/{
14405	    s//\1/
14406	    q
14407	  }
14408	  /^X\/\(\/\).*/{
14409	    s//\1/
14410	    q
14411	  }
14412	  s/.*/./; q'`
14413
14414# Avoid depending upon Character Ranges.
14415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14418as_cr_digits='0123456789'
14419as_cr_alnum=$as_cr_Letters$as_cr_digits
14420
14421ECHO_C= ECHO_N= ECHO_T=
14422case `echo -n x` in #(((((
14423-n*)
14424  case `echo 'xy\c'` in
14425  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14426  xy)  ECHO_C='\c';;
14427  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14428       ECHO_T='	';;
14429  esac;;
14430*)
14431  ECHO_N='-n';;
14432esac
14433
14434rm -f conf$$ conf$$.exe conf$$.file
14435if test -d conf$$.dir; then
14436  rm -f conf$$.dir/conf$$.file
14437else
14438  rm -f conf$$.dir
14439  mkdir conf$$.dir 2>/dev/null
14440fi
14441if (echo >conf$$.file) 2>/dev/null; then
14442  if ln -s conf$$.file conf$$ 2>/dev/null; then
14443    as_ln_s='ln -s'
14444    # ... but there are two gotchas:
14445    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14446    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14447    # In both cases, we have to default to `cp -pR'.
14448    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14449      as_ln_s='cp -pR'
14450  elif ln conf$$.file conf$$ 2>/dev/null; then
14451    as_ln_s=ln
14452  else
14453    as_ln_s='cp -pR'
14454  fi
14455else
14456  as_ln_s='cp -pR'
14457fi
14458rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14459rmdir conf$$.dir 2>/dev/null
14460
14461
14462# as_fn_mkdir_p
14463# -------------
14464# Create "$as_dir" as a directory, including parents if necessary.
14465as_fn_mkdir_p ()
14466{
14467
14468  case $as_dir in #(
14469  -*) as_dir=./$as_dir;;
14470  esac
14471  test -d "$as_dir" || eval $as_mkdir_p || {
14472    as_dirs=
14473    while :; do
14474      case $as_dir in #(
14475      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14476      *) as_qdir=$as_dir;;
14477      esac
14478      as_dirs="'$as_qdir' $as_dirs"
14479      as_dir=`$as_dirname -- "$as_dir" ||
14480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14481	 X"$as_dir" : 'X\(//\)[^/]' \| \
14482	 X"$as_dir" : 'X\(//\)$' \| \
14483	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14484$as_echo X"$as_dir" |
14485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14486	    s//\1/
14487	    q
14488	  }
14489	  /^X\(\/\/\)[^/].*/{
14490	    s//\1/
14491	    q
14492	  }
14493	  /^X\(\/\/\)$/{
14494	    s//\1/
14495	    q
14496	  }
14497	  /^X\(\/\).*/{
14498	    s//\1/
14499	    q
14500	  }
14501	  s/.*/./; q'`
14502      test -d "$as_dir" && break
14503    done
14504    test -z "$as_dirs" || eval "mkdir $as_dirs"
14505  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14506
14507
14508} # as_fn_mkdir_p
14509if mkdir -p . 2>/dev/null; then
14510  as_mkdir_p='mkdir -p "$as_dir"'
14511else
14512  test -d ./-p && rmdir ./-p
14513  as_mkdir_p=false
14514fi
14515
14516
14517# as_fn_executable_p FILE
14518# -----------------------
14519# Test if FILE is an executable regular file.
14520as_fn_executable_p ()
14521{
14522  test -f "$1" && test -x "$1"
14523} # as_fn_executable_p
14524as_test_x='test -x'
14525as_executable_p=as_fn_executable_p
14526
14527# Sed expression to map a string onto a valid CPP name.
14528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14529
14530# Sed expression to map a string onto a valid variable name.
14531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14532
14533
14534exec 6>&1
14535## ----------------------------------- ##
14536## Main body of $CONFIG_STATUS script. ##
14537## ----------------------------------- ##
14538_ASEOF
14539test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14540
14541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14542# Save the log message, to keep $0 and so on meaningful, and to
14543# report actual input values of CONFIG_FILES etc. instead of their
14544# values after options handling.
14545ac_log="
14546This file was extended by iperf $as_me 3.7+, which was
14547generated by GNU Autoconf 2.69.  Invocation command line was
14548
14549  CONFIG_FILES    = $CONFIG_FILES
14550  CONFIG_HEADERS  = $CONFIG_HEADERS
14551  CONFIG_LINKS    = $CONFIG_LINKS
14552  CONFIG_COMMANDS = $CONFIG_COMMANDS
14553  $ $0 $@
14554
14555on `(hostname || uname -n) 2>/dev/null | sed 1q`
14556"
14557
14558_ACEOF
14559
14560case $ac_config_files in *"
14561"*) set x $ac_config_files; shift; ac_config_files=$*;;
14562esac
14563
14564case $ac_config_headers in *"
14565"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14566esac
14567
14568
14569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14570# Files that config.status was made for.
14571config_files="$ac_config_files"
14572config_headers="$ac_config_headers"
14573config_commands="$ac_config_commands"
14574
14575_ACEOF
14576
14577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14578ac_cs_usage="\
14579\`$as_me' instantiates files and other configuration actions
14580from templates according to the current configuration.  Unless the files
14581and actions are specified as TAGs, all are instantiated by default.
14582
14583Usage: $0 [OPTION]... [TAG]...
14584
14585  -h, --help       print this help, then exit
14586  -V, --version    print version number and configuration settings, then exit
14587      --config     print configuration, then exit
14588  -q, --quiet, --silent
14589                   do not print progress messages
14590  -d, --debug      don't remove temporary files
14591      --recheck    update $as_me by reconfiguring in the same conditions
14592      --file=FILE[:TEMPLATE]
14593                   instantiate the configuration file FILE
14594      --header=FILE[:TEMPLATE]
14595                   instantiate the configuration header FILE
14596
14597Configuration files:
14598$config_files
14599
14600Configuration headers:
14601$config_headers
14602
14603Configuration commands:
14604$config_commands
14605
14606Report bugs to <https://github.com/esnet/iperf>.
14607iperf home page: <https://software.es.net/iperf/>."
14608
14609_ACEOF
14610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14612ac_cs_version="\\
14613iperf config.status 3.7+
14614configured by $0, generated by GNU Autoconf 2.69,
14615  with options \\"\$ac_cs_config\\"
14616
14617Copyright (C) 2012 Free Software Foundation, Inc.
14618This config.status script is free software; the Free Software Foundation
14619gives unlimited permission to copy, distribute and modify it."
14620
14621ac_pwd='$ac_pwd'
14622srcdir='$srcdir'
14623INSTALL='$INSTALL'
14624MKDIR_P='$MKDIR_P'
14625AWK='$AWK'
14626test -n "\$AWK" || AWK=awk
14627_ACEOF
14628
14629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14630# The default lists apply if the user does not specify any file.
14631ac_need_defaults=:
14632while test $# != 0
14633do
14634  case $1 in
14635  --*=?*)
14636    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14637    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14638    ac_shift=:
14639    ;;
14640  --*=)
14641    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14642    ac_optarg=
14643    ac_shift=:
14644    ;;
14645  *)
14646    ac_option=$1
14647    ac_optarg=$2
14648    ac_shift=shift
14649    ;;
14650  esac
14651
14652  case $ac_option in
14653  # Handling of the options.
14654  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14655    ac_cs_recheck=: ;;
14656  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14657    $as_echo "$ac_cs_version"; exit ;;
14658  --config | --confi | --conf | --con | --co | --c )
14659    $as_echo "$ac_cs_config"; exit ;;
14660  --debug | --debu | --deb | --de | --d | -d )
14661    debug=: ;;
14662  --file | --fil | --fi | --f )
14663    $ac_shift
14664    case $ac_optarg in
14665    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14666    '') as_fn_error $? "missing file argument" ;;
14667    esac
14668    as_fn_append CONFIG_FILES " '$ac_optarg'"
14669    ac_need_defaults=false;;
14670  --header | --heade | --head | --hea )
14671    $ac_shift
14672    case $ac_optarg in
14673    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14674    esac
14675    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14676    ac_need_defaults=false;;
14677  --he | --h)
14678    # Conflict between --help and --header
14679    as_fn_error $? "ambiguous option: \`$1'
14680Try \`$0 --help' for more information.";;
14681  --help | --hel | -h )
14682    $as_echo "$ac_cs_usage"; exit ;;
14683  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14684  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14685    ac_cs_silent=: ;;
14686
14687  # This is an error.
14688  -*) as_fn_error $? "unrecognized option: \`$1'
14689Try \`$0 --help' for more information." ;;
14690
14691  *) as_fn_append ac_config_targets " $1"
14692     ac_need_defaults=false ;;
14693
14694  esac
14695  shift
14696done
14697
14698ac_configure_extra_args=
14699
14700if $ac_cs_silent; then
14701  exec 6>/dev/null
14702  ac_configure_extra_args="$ac_configure_extra_args --silent"
14703fi
14704
14705_ACEOF
14706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707if \$ac_cs_recheck; then
14708  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14709  shift
14710  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14711  CONFIG_SHELL='$SHELL'
14712  export CONFIG_SHELL
14713  exec "\$@"
14714fi
14715
14716_ACEOF
14717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14718exec 5>>config.log
14719{
14720  echo
14721  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14722## Running $as_me. ##
14723_ASBOX
14724  $as_echo "$ac_log"
14725} >&5
14726
14727_ACEOF
14728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729#
14730# INIT-COMMANDS
14731#
14732AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14733
14734
14735# The HP-UX ksh and POSIX shell print the target directory to stdout
14736# if CDPATH is set.
14737(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14738
14739sed_quote_subst='$sed_quote_subst'
14740double_quote_subst='$double_quote_subst'
14741delay_variable_subst='$delay_variable_subst'
14742enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14743macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14744macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14745enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14746pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14747enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14748shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14749SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14750ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14751PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14752host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14753host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14754host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14755build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14756build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14757build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14758SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14759Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14760GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14761EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14762FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14763LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14764NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14765LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14766max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14767ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14768exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14769lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14770lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14771lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14772lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14773lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14774reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14775reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14776OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14777deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14778file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14779file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14780want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14781DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14782sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14783AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14784AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14785archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14786STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14787RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14788old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14789old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14790old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14791lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14792CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14793CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14794compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14795GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14796lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14797lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14798lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14799lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14800lt_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"`'
14801lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14802nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14803lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14804lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14805objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14806MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14807lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14808lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14809lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14810lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14811lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14812need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14813MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14814DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14815NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14816LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14817OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14818OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14819libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14820shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14821extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14822archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14823enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14824export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14825whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14826compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14827old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14828old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14829archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14830archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14831module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14832module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14833with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14834allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14835no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14836hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14837hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14838hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14839hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14840hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14841hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14842hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14843inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14844link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14845always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14846export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14847exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14848include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14849prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14850postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14851file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14852variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14853need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14854need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14855version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14856runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14857shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14858shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14859libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14860library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14861soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14862install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14863postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14864postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14865finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14866finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14867hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14868sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14869configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14870configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14871hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14872enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14873enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14874enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14875old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14876striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14877
14878LTCC='$LTCC'
14879LTCFLAGS='$LTCFLAGS'
14880compiler='$compiler_DEFAULT'
14881
14882# A function that is used when there is no print builtin or printf.
14883func_fallback_echo ()
14884{
14885  eval 'cat <<_LTECHO_EOF
14886\$1
14887_LTECHO_EOF'
14888}
14889
14890# Quote evaled strings.
14891for var in SHELL \
14892ECHO \
14893PATH_SEPARATOR \
14894SED \
14895GREP \
14896EGREP \
14897FGREP \
14898LD \
14899NM \
14900LN_S \
14901lt_SP2NL \
14902lt_NL2SP \
14903reload_flag \
14904OBJDUMP \
14905deplibs_check_method \
14906file_magic_cmd \
14907file_magic_glob \
14908want_nocaseglob \
14909DLLTOOL \
14910sharedlib_from_linklib_cmd \
14911AR \
14912AR_FLAGS \
14913archiver_list_spec \
14914STRIP \
14915RANLIB \
14916CC \
14917CFLAGS \
14918compiler \
14919lt_cv_sys_global_symbol_pipe \
14920lt_cv_sys_global_symbol_to_cdecl \
14921lt_cv_sys_global_symbol_to_import \
14922lt_cv_sys_global_symbol_to_c_name_address \
14923lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14924lt_cv_nm_interface \
14925nm_file_list_spec \
14926lt_cv_truncate_bin \
14927lt_prog_compiler_no_builtin_flag \
14928lt_prog_compiler_pic \
14929lt_prog_compiler_wl \
14930lt_prog_compiler_static \
14931lt_cv_prog_compiler_c_o \
14932need_locks \
14933MANIFEST_TOOL \
14934DSYMUTIL \
14935NMEDIT \
14936LIPO \
14937OTOOL \
14938OTOOL64 \
14939shrext_cmds \
14940export_dynamic_flag_spec \
14941whole_archive_flag_spec \
14942compiler_needs_object \
14943with_gnu_ld \
14944allow_undefined_flag \
14945no_undefined_flag \
14946hardcode_libdir_flag_spec \
14947hardcode_libdir_separator \
14948exclude_expsyms \
14949include_expsyms \
14950file_list_spec \
14951variables_saved_for_relink \
14952libname_spec \
14953library_names_spec \
14954soname_spec \
14955install_override_mode \
14956finish_eval \
14957old_striplib \
14958striplib; do
14959    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14960    *[\\\\\\\`\\"\\\$]*)
14961      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14962      ;;
14963    *)
14964      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14965      ;;
14966    esac
14967done
14968
14969# Double-quote double-evaled strings.
14970for var in reload_cmds \
14971old_postinstall_cmds \
14972old_postuninstall_cmds \
14973old_archive_cmds \
14974extract_expsyms_cmds \
14975old_archive_from_new_cmds \
14976old_archive_from_expsyms_cmds \
14977archive_cmds \
14978archive_expsym_cmds \
14979module_cmds \
14980module_expsym_cmds \
14981export_symbols_cmds \
14982prelink_cmds \
14983postlink_cmds \
14984postinstall_cmds \
14985postuninstall_cmds \
14986finish_cmds \
14987sys_lib_search_path_spec \
14988configure_time_dlsearch_path \
14989configure_time_lt_sys_library_path; do
14990    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14991    *[\\\\\\\`\\"\\\$]*)
14992      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14993      ;;
14994    *)
14995      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14996      ;;
14997    esac
14998done
14999
15000ac_aux_dir='$ac_aux_dir'
15001
15002# See if we are running on zsh, and set the options that allow our
15003# commands through without removal of \ escapes INIT.
15004if test -n "\${ZSH_VERSION+set}"; then
15005   setopt NO_GLOB_SUBST
15006fi
15007
15008
15009    PACKAGE='$PACKAGE'
15010    VERSION='$VERSION'
15011    RM='$RM'
15012    ofile='$ofile'
15013
15014
15015
15016
15017_ACEOF
15018
15019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020
15021# Handling of arguments.
15022for ac_config_target in $ac_config_targets
15023do
15024  case $ac_config_target in
15025    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15026    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15027    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
15028    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15029    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15030    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
15031    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15032    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
15033
15034  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15035  esac
15036done
15037
15038
15039# If the user did not use the arguments to specify the items to instantiate,
15040# then the envvar interface is used.  Set only those that are not.
15041# We use the long form for the default assignment because of an extremely
15042# bizarre bug on SunOS 4.1.3.
15043if $ac_need_defaults; then
15044  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15045  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15046  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15047fi
15048
15049# Have a temporary directory for convenience.  Make it in the build tree
15050# simply because there is no reason against having it here, and in addition,
15051# creating and moving files from /tmp can sometimes cause problems.
15052# Hook for its removal unless debugging.
15053# Note that there is a small window in which the directory will not be cleaned:
15054# after its creation but before its name has been assigned to `$tmp'.
15055$debug ||
15056{
15057  tmp= ac_tmp=
15058  trap 'exit_status=$?
15059  : "${ac_tmp:=$tmp}"
15060  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15061' 0
15062  trap 'as_fn_exit 1' 1 2 13 15
15063}
15064# Create a (secure) tmp directory for tmp files.
15065
15066{
15067  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15068  test -d "$tmp"
15069}  ||
15070{
15071  tmp=./conf$$-$RANDOM
15072  (umask 077 && mkdir "$tmp")
15073} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15074ac_tmp=$tmp
15075
15076# Set up the scripts for CONFIG_FILES section.
15077# No need to generate them if there are no CONFIG_FILES.
15078# This happens for instance with `./config.status config.h'.
15079if test -n "$CONFIG_FILES"; then
15080
15081
15082ac_cr=`echo X | tr X '\015'`
15083# On cygwin, bash can eat \r inside `` if the user requested igncr.
15084# But we know of no other shell where ac_cr would be empty at this
15085# point, so we can use a bashism as a fallback.
15086if test "x$ac_cr" = x; then
15087  eval ac_cr=\$\'\\r\'
15088fi
15089ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15090if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15091  ac_cs_awk_cr='\\r'
15092else
15093  ac_cs_awk_cr=$ac_cr
15094fi
15095
15096echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15097_ACEOF
15098
15099
15100{
15101  echo "cat >conf$$subs.awk <<_ACEOF" &&
15102  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15103  echo "_ACEOF"
15104} >conf$$subs.sh ||
15105  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15106ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15107ac_delim='%!_!# '
15108for ac_last_try in false false false false false :; do
15109  . ./conf$$subs.sh ||
15110    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15111
15112  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15113  if test $ac_delim_n = $ac_delim_num; then
15114    break
15115  elif $ac_last_try; then
15116    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15117  else
15118    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15119  fi
15120done
15121rm -f conf$$subs.sh
15122
15123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15125_ACEOF
15126sed -n '
15127h
15128s/^/S["/; s/!.*/"]=/
15129p
15130g
15131s/^[^!]*!//
15132:repl
15133t repl
15134s/'"$ac_delim"'$//
15135t delim
15136:nl
15137h
15138s/\(.\{148\}\)..*/\1/
15139t more1
15140s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15141p
15142n
15143b repl
15144:more1
15145s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15146p
15147g
15148s/.\{148\}//
15149t nl
15150:delim
15151h
15152s/\(.\{148\}\)..*/\1/
15153t more2
15154s/["\\]/\\&/g; s/^/"/; s/$/"/
15155p
15156b
15157:more2
15158s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15159p
15160g
15161s/.\{148\}//
15162t delim
15163' <conf$$subs.awk | sed '
15164/^[^""]/{
15165  N
15166  s/\n//
15167}
15168' >>$CONFIG_STATUS || ac_write_fail=1
15169rm -f conf$$subs.awk
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171_ACAWK
15172cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15173  for (key in S) S_is_set[key] = 1
15174  FS = ""
15175
15176}
15177{
15178  line = $ 0
15179  nfields = split(line, field, "@")
15180  substed = 0
15181  len = length(field[1])
15182  for (i = 2; i < nfields; i++) {
15183    key = field[i]
15184    keylen = length(key)
15185    if (S_is_set[key]) {
15186      value = S[key]
15187      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15188      len += length(value) + length(field[++i])
15189      substed = 1
15190    } else
15191      len += 1 + keylen
15192  }
15193
15194  print line
15195}
15196
15197_ACAWK
15198_ACEOF
15199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15201  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15202else
15203  cat
15204fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15205  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15206_ACEOF
15207
15208# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15209# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15210# trailing colons and then remove the whole line if VPATH becomes empty
15211# (actually we leave an empty line to preserve line numbers).
15212if test "x$srcdir" = x.; then
15213  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15214h
15215s///
15216s/^/:/
15217s/[	 ]*$/:/
15218s/:\$(srcdir):/:/g
15219s/:\${srcdir}:/:/g
15220s/:@srcdir@:/:/g
15221s/^:*//
15222s/:*$//
15223x
15224s/\(=[	 ]*\).*/\1/
15225G
15226s/\n//
15227s/^[^=]*=[	 ]*$//
15228}'
15229fi
15230
15231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232fi # test -n "$CONFIG_FILES"
15233
15234# Set up the scripts for CONFIG_HEADERS section.
15235# No need to generate them if there are no CONFIG_HEADERS.
15236# This happens for instance with `./config.status Makefile'.
15237if test -n "$CONFIG_HEADERS"; then
15238cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15239BEGIN {
15240_ACEOF
15241
15242# Transform confdefs.h into an awk script `defines.awk', embedded as
15243# here-document in config.status, that substitutes the proper values into
15244# config.h.in to produce config.h.
15245
15246# Create a delimiter string that does not exist in confdefs.h, to ease
15247# handling of long lines.
15248ac_delim='%!_!# '
15249for ac_last_try in false false :; do
15250  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15251  if test -z "$ac_tt"; then
15252    break
15253  elif $ac_last_try; then
15254    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15255  else
15256    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15257  fi
15258done
15259
15260# For the awk script, D is an array of macro values keyed by name,
15261# likewise P contains macro parameters if any.  Preserve backslash
15262# newline sequences.
15263
15264ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15265sed -n '
15266s/.\{148\}/&'"$ac_delim"'/g
15267t rset
15268:rset
15269s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15270t def
15271d
15272:def
15273s/\\$//
15274t bsnl
15275s/["\\]/\\&/g
15276s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15277D["\1"]=" \3"/p
15278s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15279d
15280:bsnl
15281s/["\\]/\\&/g
15282s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15283D["\1"]=" \3\\\\\\n"\\/p
15284t cont
15285s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15286t cont
15287d
15288:cont
15289n
15290s/.\{148\}/&'"$ac_delim"'/g
15291t clear
15292:clear
15293s/\\$//
15294t bsnlc
15295s/["\\]/\\&/g; s/^/"/; s/$/"/p
15296d
15297:bsnlc
15298s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15299b cont
15300' <confdefs.h | sed '
15301s/'"$ac_delim"'/"\\\
15302"/g' >>$CONFIG_STATUS || ac_write_fail=1
15303
15304cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15305  for (key in D) D_is_set[key] = 1
15306  FS = ""
15307}
15308/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15309  line = \$ 0
15310  split(line, arg, " ")
15311  if (arg[1] == "#") {
15312    defundef = arg[2]
15313    mac1 = arg[3]
15314  } else {
15315    defundef = substr(arg[1], 2)
15316    mac1 = arg[2]
15317  }
15318  split(mac1, mac2, "(") #)
15319  macro = mac2[1]
15320  prefix = substr(line, 1, index(line, defundef) - 1)
15321  if (D_is_set[macro]) {
15322    # Preserve the white space surrounding the "#".
15323    print prefix "define", macro P[macro] D[macro]
15324    next
15325  } else {
15326    # Replace #undef with comments.  This is necessary, for example,
15327    # in the case of _POSIX_SOURCE, which is predefined and required
15328    # on some systems where configure will not decide to define it.
15329    if (defundef == "undef") {
15330      print "/*", prefix defundef, macro, "*/"
15331      next
15332    }
15333  }
15334}
15335{ print }
15336_ACAWK
15337_ACEOF
15338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15340fi # test -n "$CONFIG_HEADERS"
15341
15342
15343eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15344shift
15345for ac_tag
15346do
15347  case $ac_tag in
15348  :[FHLC]) ac_mode=$ac_tag; continue;;
15349  esac
15350  case $ac_mode$ac_tag in
15351  :[FHL]*:*);;
15352  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15353  :[FH]-) ac_tag=-:-;;
15354  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15355  esac
15356  ac_save_IFS=$IFS
15357  IFS=:
15358  set x $ac_tag
15359  IFS=$ac_save_IFS
15360  shift
15361  ac_file=$1
15362  shift
15363
15364  case $ac_mode in
15365  :L) ac_source=$1;;
15366  :[FH])
15367    ac_file_inputs=
15368    for ac_f
15369    do
15370      case $ac_f in
15371      -) ac_f="$ac_tmp/stdin";;
15372      *) # Look for the file first in the build tree, then in the source tree
15373	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15374	 # because $ac_f cannot contain `:'.
15375	 test -f "$ac_f" ||
15376	   case $ac_f in
15377	   [\\/$]*) false;;
15378	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15379	   esac ||
15380	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15381      esac
15382      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15383      as_fn_append ac_file_inputs " '$ac_f'"
15384    done
15385
15386    # Let's still pretend it is `configure' which instantiates (i.e., don't
15387    # use $as_me), people would be surprised to read:
15388    #    /* config.h.  Generated by config.status.  */
15389    configure_input='Generated from '`
15390	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15391	`' by configure.'
15392    if test x"$ac_file" != x-; then
15393      configure_input="$ac_file.  $configure_input"
15394      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15395$as_echo "$as_me: creating $ac_file" >&6;}
15396    fi
15397    # Neutralize special characters interpreted by sed in replacement strings.
15398    case $configure_input in #(
15399    *\&* | *\|* | *\\* )
15400       ac_sed_conf_input=`$as_echo "$configure_input" |
15401       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15402    *) ac_sed_conf_input=$configure_input;;
15403    esac
15404
15405    case $ac_tag in
15406    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15407      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15408    esac
15409    ;;
15410  esac
15411
15412  ac_dir=`$as_dirname -- "$ac_file" ||
15413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15414	 X"$ac_file" : 'X\(//\)[^/]' \| \
15415	 X"$ac_file" : 'X\(//\)$' \| \
15416	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15417$as_echo X"$ac_file" |
15418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15419	    s//\1/
15420	    q
15421	  }
15422	  /^X\(\/\/\)[^/].*/{
15423	    s//\1/
15424	    q
15425	  }
15426	  /^X\(\/\/\)$/{
15427	    s//\1/
15428	    q
15429	  }
15430	  /^X\(\/\).*/{
15431	    s//\1/
15432	    q
15433	  }
15434	  s/.*/./; q'`
15435  as_dir="$ac_dir"; as_fn_mkdir_p
15436  ac_builddir=.
15437
15438case "$ac_dir" in
15439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15440*)
15441  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15442  # A ".." for each directory in $ac_dir_suffix.
15443  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15444  case $ac_top_builddir_sub in
15445  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15446  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15447  esac ;;
15448esac
15449ac_abs_top_builddir=$ac_pwd
15450ac_abs_builddir=$ac_pwd$ac_dir_suffix
15451# for backward compatibility:
15452ac_top_builddir=$ac_top_build_prefix
15453
15454case $srcdir in
15455  .)  # We are building in place.
15456    ac_srcdir=.
15457    ac_top_srcdir=$ac_top_builddir_sub
15458    ac_abs_top_srcdir=$ac_pwd ;;
15459  [\\/]* | ?:[\\/]* )  # Absolute name.
15460    ac_srcdir=$srcdir$ac_dir_suffix;
15461    ac_top_srcdir=$srcdir
15462    ac_abs_top_srcdir=$srcdir ;;
15463  *) # Relative name.
15464    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15465    ac_top_srcdir=$ac_top_build_prefix$srcdir
15466    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15467esac
15468ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15469
15470
15471  case $ac_mode in
15472  :F)
15473  #
15474  # CONFIG_FILE
15475  #
15476
15477  case $INSTALL in
15478  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15479  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15480  esac
15481  ac_MKDIR_P=$MKDIR_P
15482  case $MKDIR_P in
15483  [\\/$]* | ?:[\\/]* ) ;;
15484  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15485  esac
15486_ACEOF
15487
15488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489# If the template does not know about datarootdir, expand it.
15490# FIXME: This hack should be removed a few years after 2.60.
15491ac_datarootdir_hack=; ac_datarootdir_seen=
15492ac_sed_dataroot='
15493/datarootdir/ {
15494  p
15495  q
15496}
15497/@datadir@/p
15498/@docdir@/p
15499/@infodir@/p
15500/@localedir@/p
15501/@mandir@/p'
15502case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15503*datarootdir*) ac_datarootdir_seen=yes;;
15504*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15505  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15506$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15507_ACEOF
15508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15509  ac_datarootdir_hack='
15510  s&@datadir@&$datadir&g
15511  s&@docdir@&$docdir&g
15512  s&@infodir@&$infodir&g
15513  s&@localedir@&$localedir&g
15514  s&@mandir@&$mandir&g
15515  s&\\\${datarootdir}&$datarootdir&g' ;;
15516esac
15517_ACEOF
15518
15519# Neutralize VPATH when `$srcdir' = `.'.
15520# Shell code in configure.ac might set extrasub.
15521# FIXME: do we really want to maintain this feature?
15522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15523ac_sed_extra="$ac_vpsub
15524$extrasub
15525_ACEOF
15526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15527:t
15528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15529s|@configure_input@|$ac_sed_conf_input|;t t
15530s&@top_builddir@&$ac_top_builddir_sub&;t t
15531s&@top_build_prefix@&$ac_top_build_prefix&;t t
15532s&@srcdir@&$ac_srcdir&;t t
15533s&@abs_srcdir@&$ac_abs_srcdir&;t t
15534s&@top_srcdir@&$ac_top_srcdir&;t t
15535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15536s&@builddir@&$ac_builddir&;t t
15537s&@abs_builddir@&$ac_abs_builddir&;t t
15538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15539s&@INSTALL@&$ac_INSTALL&;t t
15540s&@MKDIR_P@&$ac_MKDIR_P&;t t
15541$ac_datarootdir_hack
15542"
15543eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15544  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15545
15546test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15547  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15548  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15549      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15550  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15551which seems to be undefined.  Please make sure it is defined" >&5
15552$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15553which seems to be undefined.  Please make sure it is defined" >&2;}
15554
15555  rm -f "$ac_tmp/stdin"
15556  case $ac_file in
15557  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15558  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15559  esac \
15560  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15561 ;;
15562  :H)
15563  #
15564  # CONFIG_HEADER
15565  #
15566  if test x"$ac_file" != x-; then
15567    {
15568      $as_echo "/* $configure_input  */" \
15569      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15570    } >"$ac_tmp/config.h" \
15571      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15572    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15573      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15574$as_echo "$as_me: $ac_file is unchanged" >&6;}
15575    else
15576      rm -f "$ac_file"
15577      mv "$ac_tmp/config.h" "$ac_file" \
15578	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15579    fi
15580  else
15581    $as_echo "/* $configure_input  */" \
15582      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15583      || as_fn_error $? "could not create -" "$LINENO" 5
15584  fi
15585# Compute "$ac_file"'s index in $config_headers.
15586_am_arg="$ac_file"
15587_am_stamp_count=1
15588for _am_header in $config_headers :; do
15589  case $_am_header in
15590    $_am_arg | $_am_arg:* )
15591      break ;;
15592    * )
15593      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15594  esac
15595done
15596echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15597$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15598	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15599	 X"$_am_arg" : 'X\(//\)$' \| \
15600	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15601$as_echo X"$_am_arg" |
15602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15603	    s//\1/
15604	    q
15605	  }
15606	  /^X\(\/\/\)[^/].*/{
15607	    s//\1/
15608	    q
15609	  }
15610	  /^X\(\/\/\)$/{
15611	    s//\1/
15612	    q
15613	  }
15614	  /^X\(\/\).*/{
15615	    s//\1/
15616	    q
15617	  }
15618	  s/.*/./; q'`/stamp-h$_am_stamp_count
15619 ;;
15620
15621  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15622$as_echo "$as_me: executing $ac_file commands" >&6;}
15623 ;;
15624  esac
15625
15626
15627  case $ac_file$ac_mode in
15628    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15629  # Older Autoconf quotes --file arguments for eval, but not when files
15630  # are listed without --file.  Let's play safe and only enable the eval
15631  # if we detect the quoting.
15632  # TODO: see whether this extra hack can be removed once we start
15633  # requiring Autoconf 2.70 or later.
15634  case $CONFIG_FILES in #(
15635  *\'*) :
15636    eval set x "$CONFIG_FILES" ;; #(
15637  *) :
15638    set x $CONFIG_FILES ;; #(
15639  *) :
15640     ;;
15641esac
15642  shift
15643  # Used to flag and report bootstrapping failures.
15644  am_rc=0
15645  for am_mf
15646  do
15647    # Strip MF so we end up with the name of the file.
15648    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15649    # Check whether this is an Automake generated Makefile which includes
15650    # dependency-tracking related rules and includes.
15651    # Grep'ing the whole file directly is not great: AIX grep has a line
15652    # limit of 2048, but all sed's we know have understand at least 4000.
15653    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15654      || continue
15655    am_dirpart=`$as_dirname -- "$am_mf" ||
15656$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15657	 X"$am_mf" : 'X\(//\)[^/]' \| \
15658	 X"$am_mf" : 'X\(//\)$' \| \
15659	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15660$as_echo X"$am_mf" |
15661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15662	    s//\1/
15663	    q
15664	  }
15665	  /^X\(\/\/\)[^/].*/{
15666	    s//\1/
15667	    q
15668	  }
15669	  /^X\(\/\/\)$/{
15670	    s//\1/
15671	    q
15672	  }
15673	  /^X\(\/\).*/{
15674	    s//\1/
15675	    q
15676	  }
15677	  s/.*/./; q'`
15678    am_filepart=`$as_basename -- "$am_mf" ||
15679$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15680	 X"$am_mf" : 'X\(//\)$' \| \
15681	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15682$as_echo X/"$am_mf" |
15683    sed '/^.*\/\([^/][^/]*\)\/*$/{
15684	    s//\1/
15685	    q
15686	  }
15687	  /^X\/\(\/\/\)$/{
15688	    s//\1/
15689	    q
15690	  }
15691	  /^X\/\(\/\).*/{
15692	    s//\1/
15693	    q
15694	  }
15695	  s/.*/./; q'`
15696    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15697      && sed -e '/# am--include-marker/d' "$am_filepart" \
15698        | $MAKE -f - am--depfiles" >&5
15699   (cd "$am_dirpart" \
15700      && sed -e '/# am--include-marker/d' "$am_filepart" \
15701        | $MAKE -f - am--depfiles) >&5 2>&5
15702   ac_status=$?
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } || am_rc=$?
15705  done
15706  if test $am_rc -ne 0; then
15707    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15709as_fn_error $? "Something went wrong bootstrapping makefile fragments
15710    for automatic dependency tracking.  If GNU make was not used, consider
15711    re-running the configure script with MAKE=\"gmake\" (or whatever is
15712    necessary).  You can also try re-running configure with the
15713    '--disable-dependency-tracking' option to at least be able to build
15714    the package (albeit without support for automatic dependency tracking).
15715See \`config.log' for more details" "$LINENO" 5; }
15716  fi
15717  { am_dirpart=; unset am_dirpart;}
15718  { am_filepart=; unset am_filepart;}
15719  { am_mf=; unset am_mf;}
15720  { am_rc=; unset am_rc;}
15721  rm -f conftest-deps.mk
15722}
15723 ;;
15724    "libtool":C)
15725
15726    # See if we are running on zsh, and set the options that allow our
15727    # commands through without removal of \ escapes.
15728    if test -n "${ZSH_VERSION+set}"; then
15729      setopt NO_GLOB_SUBST
15730    fi
15731
15732    cfgfile=${ofile}T
15733    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15734    $RM "$cfgfile"
15735
15736    cat <<_LT_EOF >> "$cfgfile"
15737#! $SHELL
15738# Generated automatically by $as_me ($PACKAGE) $VERSION
15739# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15740# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15741
15742# Provide generalized library-building support services.
15743# Written by Gordon Matzigkeit, 1996
15744
15745# Copyright (C) 2014 Free Software Foundation, Inc.
15746# This is free software; see the source for copying conditions.  There is NO
15747# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15748
15749# GNU Libtool is free software; you can redistribute it and/or modify
15750# it under the terms of the GNU General Public License as published by
15751# the Free Software Foundation; either version 2 of of the License, or
15752# (at your option) any later version.
15753#
15754# As a special exception to the GNU General Public License, if you
15755# distribute this file as part of a program or library that is built
15756# using GNU Libtool, you may include this file under the  same
15757# distribution terms that you use for the rest of that program.
15758#
15759# GNU Libtool is distributed in the hope that it will be useful, but
15760# WITHOUT ANY WARRANTY; without even the implied warranty of
15761# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15762# GNU General Public License for more details.
15763#
15764# You should have received a copy of the GNU General Public License
15765# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15766
15767
15768# The names of the tagged configurations supported by this script.
15769available_tags=''
15770
15771# Configured defaults for sys_lib_dlsearch_path munging.
15772: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15773
15774# ### BEGIN LIBTOOL CONFIG
15775
15776# Whether or not to build shared libraries.
15777build_libtool_libs=$enable_shared
15778
15779# Which release of libtool.m4 was used?
15780macro_version=$macro_version
15781macro_revision=$macro_revision
15782
15783# Whether or not to build static libraries.
15784build_old_libs=$enable_static
15785
15786# What type of objects to build.
15787pic_mode=$pic_mode
15788
15789# Whether or not to optimize for fast installation.
15790fast_install=$enable_fast_install
15791
15792# Shared archive member basename,for filename based shared library versioning on AIX.
15793shared_archive_member_spec=$shared_archive_member_spec
15794
15795# Shell to use when invoking shell scripts.
15796SHELL=$lt_SHELL
15797
15798# An echo program that protects backslashes.
15799ECHO=$lt_ECHO
15800
15801# The PATH separator for the build system.
15802PATH_SEPARATOR=$lt_PATH_SEPARATOR
15803
15804# The host system.
15805host_alias=$host_alias
15806host=$host
15807host_os=$host_os
15808
15809# The build system.
15810build_alias=$build_alias
15811build=$build
15812build_os=$build_os
15813
15814# A sed program that does not truncate output.
15815SED=$lt_SED
15816
15817# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15818Xsed="\$SED -e 1s/^X//"
15819
15820# A grep program that handles long lines.
15821GREP=$lt_GREP
15822
15823# An ERE matcher.
15824EGREP=$lt_EGREP
15825
15826# A literal string matcher.
15827FGREP=$lt_FGREP
15828
15829# A BSD- or MS-compatible name lister.
15830NM=$lt_NM
15831
15832# Whether we need soft or hard links.
15833LN_S=$lt_LN_S
15834
15835# What is the maximum length of a command?
15836max_cmd_len=$max_cmd_len
15837
15838# Object file suffix (normally "o").
15839objext=$ac_objext
15840
15841# Executable file suffix (normally "").
15842exeext=$exeext
15843
15844# whether the shell understands "unset".
15845lt_unset=$lt_unset
15846
15847# turn spaces into newlines.
15848SP2NL=$lt_lt_SP2NL
15849
15850# turn newlines into spaces.
15851NL2SP=$lt_lt_NL2SP
15852
15853# convert \$build file names to \$host format.
15854to_host_file_cmd=$lt_cv_to_host_file_cmd
15855
15856# convert \$build files to toolchain format.
15857to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15858
15859# An object symbol dumper.
15860OBJDUMP=$lt_OBJDUMP
15861
15862# Method to check whether dependent libraries are shared objects.
15863deplibs_check_method=$lt_deplibs_check_method
15864
15865# Command to use when deplibs_check_method = "file_magic".
15866file_magic_cmd=$lt_file_magic_cmd
15867
15868# How to find potential files when deplibs_check_method = "file_magic".
15869file_magic_glob=$lt_file_magic_glob
15870
15871# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15872want_nocaseglob=$lt_want_nocaseglob
15873
15874# DLL creation program.
15875DLLTOOL=$lt_DLLTOOL
15876
15877# Command to associate shared and link libraries.
15878sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15879
15880# The archiver.
15881AR=$lt_AR
15882
15883# Flags to create an archive.
15884AR_FLAGS=$lt_AR_FLAGS
15885
15886# How to feed a file listing to the archiver.
15887archiver_list_spec=$lt_archiver_list_spec
15888
15889# A symbol stripping program.
15890STRIP=$lt_STRIP
15891
15892# Commands used to install an old-style archive.
15893RANLIB=$lt_RANLIB
15894old_postinstall_cmds=$lt_old_postinstall_cmds
15895old_postuninstall_cmds=$lt_old_postuninstall_cmds
15896
15897# Whether to use a lock for old archive extraction.
15898lock_old_archive_extraction=$lock_old_archive_extraction
15899
15900# A C compiler.
15901LTCC=$lt_CC
15902
15903# LTCC compiler flags.
15904LTCFLAGS=$lt_CFLAGS
15905
15906# Take the output of nm and produce a listing of raw symbols and C names.
15907global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15908
15909# Transform the output of nm in a proper C declaration.
15910global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15911
15912# Transform the output of nm into a list of symbols to manually relocate.
15913global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15914
15915# Transform the output of nm in a C name address pair.
15916global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15917
15918# Transform the output of nm in a C name address pair when lib prefix is needed.
15919global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15920
15921# The name lister interface.
15922nm_interface=$lt_lt_cv_nm_interface
15923
15924# Specify filename containing input files for \$NM.
15925nm_file_list_spec=$lt_nm_file_list_spec
15926
15927# The root where to search for dependent libraries,and where our libraries should be installed.
15928lt_sysroot=$lt_sysroot
15929
15930# Command to truncate a binary pipe.
15931lt_truncate_bin=$lt_lt_cv_truncate_bin
15932
15933# The name of the directory that contains temporary libtool files.
15934objdir=$objdir
15935
15936# Used to examine libraries when file_magic_cmd begins with "file".
15937MAGIC_CMD=$MAGIC_CMD
15938
15939# Must we lock files when doing compilation?
15940need_locks=$lt_need_locks
15941
15942# Manifest tool.
15943MANIFEST_TOOL=$lt_MANIFEST_TOOL
15944
15945# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15946DSYMUTIL=$lt_DSYMUTIL
15947
15948# Tool to change global to local symbols on Mac OS X.
15949NMEDIT=$lt_NMEDIT
15950
15951# Tool to manipulate fat objects and archives on Mac OS X.
15952LIPO=$lt_LIPO
15953
15954# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15955OTOOL=$lt_OTOOL
15956
15957# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15958OTOOL64=$lt_OTOOL64
15959
15960# Old archive suffix (normally "a").
15961libext=$libext
15962
15963# Shared library suffix (normally ".so").
15964shrext_cmds=$lt_shrext_cmds
15965
15966# The commands to extract the exported symbol list from a shared archive.
15967extract_expsyms_cmds=$lt_extract_expsyms_cmds
15968
15969# Variables whose values should be saved in libtool wrapper scripts and
15970# restored at link time.
15971variables_saved_for_relink=$lt_variables_saved_for_relink
15972
15973# Do we need the "lib" prefix for modules?
15974need_lib_prefix=$need_lib_prefix
15975
15976# Do we need a version for libraries?
15977need_version=$need_version
15978
15979# Library versioning type.
15980version_type=$version_type
15981
15982# Shared library runtime path variable.
15983runpath_var=$runpath_var
15984
15985# Shared library path variable.
15986shlibpath_var=$shlibpath_var
15987
15988# Is shlibpath searched before the hard-coded library search path?
15989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990
15991# Format of library name prefix.
15992libname_spec=$lt_libname_spec
15993
15994# List of archive names.  First name is the real one, the rest are links.
15995# The last name is the one that the linker finds with -lNAME
15996library_names_spec=$lt_library_names_spec
15997
15998# The coded name of the library, if different from the real name.
15999soname_spec=$lt_soname_spec
16000
16001# Permission mode override for installation of shared libraries.
16002install_override_mode=$lt_install_override_mode
16003
16004# Command to use after installation of a shared archive.
16005postinstall_cmds=$lt_postinstall_cmds
16006
16007# Command to use after uninstallation of a shared archive.
16008postuninstall_cmds=$lt_postuninstall_cmds
16009
16010# Commands used to finish a libtool library installation in a directory.
16011finish_cmds=$lt_finish_cmds
16012
16013# As "finish_cmds", except a single script fragment to be evaled but
16014# not shown.
16015finish_eval=$lt_finish_eval
16016
16017# Whether we should hardcode library paths into libraries.
16018hardcode_into_libs=$hardcode_into_libs
16019
16020# Compile-time system search path for libraries.
16021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16022
16023# Detected run-time system search path for libraries.
16024sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16025
16026# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16027configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16028
16029# Whether dlopen is supported.
16030dlopen_support=$enable_dlopen
16031
16032# Whether dlopen of programs is supported.
16033dlopen_self=$enable_dlopen_self
16034
16035# Whether dlopen of statically linked programs is supported.
16036dlopen_self_static=$enable_dlopen_self_static
16037
16038# Commands to strip libraries.
16039old_striplib=$lt_old_striplib
16040striplib=$lt_striplib
16041
16042
16043# The linker used to build libraries.
16044LD=$lt_LD
16045
16046# How to create reloadable object files.
16047reload_flag=$lt_reload_flag
16048reload_cmds=$lt_reload_cmds
16049
16050# Commands used to build an old-style archive.
16051old_archive_cmds=$lt_old_archive_cmds
16052
16053# A language specific compiler.
16054CC=$lt_compiler
16055
16056# Is the compiler the GNU compiler?
16057with_gcc=$GCC
16058
16059# Compiler flag to turn off builtin functions.
16060no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16061
16062# Additional compiler flags for building library objects.
16063pic_flag=$lt_lt_prog_compiler_pic
16064
16065# How to pass a linker flag through the compiler.
16066wl=$lt_lt_prog_compiler_wl
16067
16068# Compiler flag to prevent dynamic linking.
16069link_static_flag=$lt_lt_prog_compiler_static
16070
16071# Does compiler simultaneously support -c and -o options?
16072compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16073
16074# Whether or not to add -lc for building shared libraries.
16075build_libtool_need_lc=$archive_cmds_need_lc
16076
16077# Whether or not to disallow shared libs when runtime libs are static.
16078allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16079
16080# Compiler flag to allow reflexive dlopens.
16081export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16082
16083# Compiler flag to generate shared objects directly from archives.
16084whole_archive_flag_spec=$lt_whole_archive_flag_spec
16085
16086# Whether the compiler copes with passing no objects directly.
16087compiler_needs_object=$lt_compiler_needs_object
16088
16089# Create an old-style archive from a shared archive.
16090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16091
16092# Create a temporary old-style archive to link instead of a shared archive.
16093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16094
16095# Commands used to build a shared archive.
16096archive_cmds=$lt_archive_cmds
16097archive_expsym_cmds=$lt_archive_expsym_cmds
16098
16099# Commands used to build a loadable module if different from building
16100# a shared archive.
16101module_cmds=$lt_module_cmds
16102module_expsym_cmds=$lt_module_expsym_cmds
16103
16104# Whether we are building with GNU ld or not.
16105with_gnu_ld=$lt_with_gnu_ld
16106
16107# Flag that allows shared libraries with undefined symbols to be built.
16108allow_undefined_flag=$lt_allow_undefined_flag
16109
16110# Flag that enforces no undefined symbols.
16111no_undefined_flag=$lt_no_undefined_flag
16112
16113# Flag to hardcode \$libdir into a binary during linking.
16114# This must work even if \$libdir does not exist
16115hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16116
16117# Whether we need a single "-rpath" flag with a separated argument.
16118hardcode_libdir_separator=$lt_hardcode_libdir_separator
16119
16120# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16121# DIR into the resulting binary.
16122hardcode_direct=$hardcode_direct
16123
16124# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16125# DIR into the resulting binary and the resulting library dependency is
16126# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16127# library is relocated.
16128hardcode_direct_absolute=$hardcode_direct_absolute
16129
16130# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16131# into the resulting binary.
16132hardcode_minus_L=$hardcode_minus_L
16133
16134# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16135# into the resulting binary.
16136hardcode_shlibpath_var=$hardcode_shlibpath_var
16137
16138# Set to "yes" if building a shared library automatically hardcodes DIR
16139# into the library and all subsequent libraries and executables linked
16140# against it.
16141hardcode_automatic=$hardcode_automatic
16142
16143# Set to yes if linker adds runtime paths of dependent libraries
16144# to runtime path list.
16145inherit_rpath=$inherit_rpath
16146
16147# Whether libtool must link a program against all its dependency libraries.
16148link_all_deplibs=$link_all_deplibs
16149
16150# Set to "yes" if exported symbols are required.
16151always_export_symbols=$always_export_symbols
16152
16153# The commands to list exported symbols.
16154export_symbols_cmds=$lt_export_symbols_cmds
16155
16156# Symbols that should not be listed in the preloaded symbols.
16157exclude_expsyms=$lt_exclude_expsyms
16158
16159# Symbols that must always be exported.
16160include_expsyms=$lt_include_expsyms
16161
16162# Commands necessary for linking programs (against libraries) with templates.
16163prelink_cmds=$lt_prelink_cmds
16164
16165# Commands necessary for finishing linking programs.
16166postlink_cmds=$lt_postlink_cmds
16167
16168# Specify filename containing input files.
16169file_list_spec=$lt_file_list_spec
16170
16171# How to hardcode a shared library path into an executable.
16172hardcode_action=$hardcode_action
16173
16174# ### END LIBTOOL CONFIG
16175
16176_LT_EOF
16177
16178    cat <<'_LT_EOF' >> "$cfgfile"
16179
16180# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16181
16182# func_munge_path_list VARIABLE PATH
16183# -----------------------------------
16184# VARIABLE is name of variable containing _space_ separated list of
16185# directories to be munged by the contents of PATH, which is string
16186# having a format:
16187# "DIR[:DIR]:"
16188#       string "DIR[ DIR]" will be prepended to VARIABLE
16189# ":DIR[:DIR]"
16190#       string "DIR[ DIR]" will be appended to VARIABLE
16191# "DIRP[:DIRP]::[DIRA:]DIRA"
16192#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16193#       "DIRA[ DIRA]" will be appended to VARIABLE
16194# "DIR[:DIR]"
16195#       VARIABLE will be replaced by "DIR[ DIR]"
16196func_munge_path_list ()
16197{
16198    case x$2 in
16199    x)
16200        ;;
16201    *:)
16202        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16203        ;;
16204    x:*)
16205        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16206        ;;
16207    *::*)
16208        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16209        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16210        ;;
16211    *)
16212        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16213        ;;
16214    esac
16215}
16216
16217
16218# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16219func_cc_basename ()
16220{
16221    for cc_temp in $*""; do
16222      case $cc_temp in
16223        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16224        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16225        \-*) ;;
16226        *) break;;
16227      esac
16228    done
16229    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16230}
16231
16232
16233# ### END FUNCTIONS SHARED WITH CONFIGURE
16234
16235_LT_EOF
16236
16237  case $host_os in
16238  aix3*)
16239    cat <<\_LT_EOF >> "$cfgfile"
16240# AIX sometimes has problems with the GCC collect2 program.  For some
16241# reason, if we set the COLLECT_NAMES environment variable, the problems
16242# vanish in a puff of smoke.
16243if test set != "${COLLECT_NAMES+set}"; then
16244  COLLECT_NAMES=
16245  export COLLECT_NAMES
16246fi
16247_LT_EOF
16248    ;;
16249  esac
16250
16251
16252ltmain=$ac_aux_dir/ltmain.sh
16253
16254
16255  # We use sed instead of cat because bash on DJGPP gets confused if
16256  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16257  # text mode, it properly converts lines to CR/LF.  This bash problem
16258  # is reportedly fixed, but why not run on old versions too?
16259  sed '$q' "$ltmain" >> "$cfgfile" \
16260     || (rm -f "$cfgfile"; exit 1)
16261
16262   mv -f "$cfgfile" "$ofile" ||
16263    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16264  chmod +x "$ofile"
16265
16266 ;;
16267
16268  esac
16269done # for ac_tag
16270
16271
16272as_fn_exit 0
16273_ACEOF
16274ac_clean_files=$ac_clean_files_save
16275
16276test $ac_write_fail = 0 ||
16277  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16278
16279
16280# configure is writing to config.log, and then calls config.status.
16281# config.status does its own redirection, appending to config.log.
16282# Unfortunately, on DOS this fails, as config.log is still kept open
16283# by configure, so config.status won't be able to write to it; its
16284# output is simply discarded.  So we exec the FD to /dev/null,
16285# effectively closing config.log, so it can be properly (re)opened and
16286# appended to by config.status.  When coming back to configure, we
16287# need to make the FD available again.
16288if test "$no_create" != yes; then
16289  ac_cs_success=:
16290  ac_config_status_args=
16291  test "$silent" = yes &&
16292    ac_config_status_args="$ac_config_status_args --quiet"
16293  exec 5>/dev/null
16294  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16295  exec 5>>config.log
16296  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297  # would make configure fail if this is the last instruction.
16298  $ac_cs_success || as_fn_exit 1
16299fi
16300if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16301  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16302$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16303fi
16304
16305