1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Icecast 2.4.4.
4#
5# Report bugs to <icecast@xiph.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and icecast@xiph.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: 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='Icecast'
592PACKAGE_TARNAME='icecast'
593PACKAGE_VERSION='2.4.4'
594PACKAGE_STRING='Icecast 2.4.4'
595PACKAGE_BUGREPORT='icecast@xiph.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/main.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639KATE_LIBS
640HAVE_KATE
641ICECAST_OPTIONAL
642PROFILE
643DEBUG
644LIBTOOL_DEPS
645XIPH_LDFLAGS
646XIPH_LIBS
647XIPH_CFLAGS
648XIPH_CPPFLAGS
649PKGCONFIG
650CURL_LIBS
651CURL_CFLAGS
652CURL_CONFIG
653PTHREAD_CPPFLAGS
654PTHREAD_CFLAGS
655PTHREAD_LIBS
656PTHREAD_CC
657acx_pthread_config
658SPEEX_LIBS
659SPEEX_LDFLAGS
660SPEEX_CFLAGS
661SPEEX
662THEORA_LIBS
663THEORA_LDFLAGS
664THEORA_CFLAGS
665THEORA
666VORBISENC_LIBS
667VORBISFILE_LIBS
668VORBIS_LIBS
669VORBIS_LDFLAGS
670VORBIS_CFLAGS
671VORBIS_PREFIX
672OGG_LDFLAGS
673OGG_CFLAGS
674OGG_LIBS
675OGG_PREFIX
676XSLTCONFIG
677CPP
678LT_SYS_LIBRARY_PATH
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
684MANIFEST_TOOL
685RANLIB
686ac_ct_AR
687AR
688DLLTOOL
689OBJDUMP
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698SED
699LIBTOOL
700host_os
701host_vendor
702host_cpu
703host
704build_os
705build_vendor
706build_cpu
707build
708am__fastdepCC_FALSE
709am__fastdepCC_TRUE
710CCDEPMODE
711am__nodep
712AMDEPBACKSLASH
713AMDEP_FALSE
714AMDEP_TRUE
715am__include
716DEPDIR
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773runstatedir
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL
793am__quote'
794ac_subst_files=''
795ac_user_opts='
796enable_option_checking
797enable_silent_rules
798enable_maintainer_mode
799enable_dependency_tracking
800enable_shared
801enable_static
802with_pic
803enable_fast_install
804with_aix_soname
805with_gnu_ld
806with_sysroot
807enable_libtool_lock
808enable_largefile
809with_xslt_config
810with_ogg
811with_vorbis
812with_theora
813with_speex
814with_curl
815with_curl_config
816enable_yp
817with_openssl
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827LT_SYS_LIBRARY_PATH
828CPP
829XSLTCONFIG
830OGG_PREFIX
831VORBIS_PREFIX
832THEORA
833SPEEX'
834
835
836# Initialize some variables set by options.
837ac_init_help=
838ac_init_version=false
839ac_unrecognized_opts=
840ac_unrecognized_sep=
841# The variables have the same names as the options, with
842# dashes changed to underlines.
843cache_file=/dev/null
844exec_prefix=NONE
845no_create=
846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
854verbose=
855x_includes=NONE
856x_libraries=NONE
857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
863# (The list follows the same order as the GNU Coding Standards.)
864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
872runstatedir='${localstatedir}/run'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  # Accept the important Cygnus configure options, so we can diagnose typos.
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=no ;;
955
956  -docdir | --docdir | --docdi | --doc | --do)
957    ac_prev=docdir ;;
958  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959    docdir=$ac_optarg ;;
960
961  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962    ac_prev=dvidir ;;
963  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964    dvidir=$ac_optarg ;;
965
966  -enable-* | --enable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -runstatedir | --runstatedir | --runstatedi | --runstated \
1126  | --runstate | --runstat | --runsta | --runst | --runs \
1127  | --run | --ru | --r)
1128    ac_prev=runstatedir ;;
1129  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1130  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1131  | --run=* | --ru=* | --r=*)
1132    runstatedir=$ac_optarg ;;
1133
1134  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135    ac_prev=sbindir ;;
1136  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137  | --sbi=* | --sb=*)
1138    sbindir=$ac_optarg ;;
1139
1140  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142  | --sharedst | --shareds | --shared | --share | --shar \
1143  | --sha | --sh)
1144    ac_prev=sharedstatedir ;;
1145  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148  | --sha=* | --sh=*)
1149    sharedstatedir=$ac_optarg ;;
1150
1151  -site | --site | --sit)
1152    ac_prev=site ;;
1153  -site=* | --site=* | --sit=*)
1154    site=$ac_optarg ;;
1155
1156  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157    ac_prev=srcdir ;;
1158  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159    srcdir=$ac_optarg ;;
1160
1161  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162  | --syscon | --sysco | --sysc | --sys | --sy)
1163    ac_prev=sysconfdir ;;
1164  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166    sysconfdir=$ac_optarg ;;
1167
1168  -target | --target | --targe | --targ | --tar | --ta | --t)
1169    ac_prev=target_alias ;;
1170  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171    target_alias=$ac_optarg ;;
1172
1173  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174    verbose=yes ;;
1175
1176  -version | --version | --versio | --versi | --vers | -V)
1177    ac_init_version=: ;;
1178
1179  -with-* | --with-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=\$ac_optarg ;;
1194
1195  -without-* | --without-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: $ac_useropt"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=no ;;
1210
1211  --x)
1212    # Obsolete; use --with-x.
1213    with_x=yes ;;
1214
1215  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216  | --x-incl | --x-inc | --x-in | --x-i)
1217    ac_prev=x_includes ;;
1218  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220    x_includes=$ac_optarg ;;
1221
1222  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224    ac_prev=x_libraries ;;
1225  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227    x_libraries=$ac_optarg ;;
1228
1229  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information"
1231    ;;
1232
1233  *=*)
1234    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235    # Reject names that are not valid shell variable names.
1236    case $ac_envvar in #(
1237      '' | [0-9]* | *[!_$as_cr_alnum]* )
1238      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239    esac
1240    eval $ac_envvar=\$ac_optarg
1241    export $ac_envvar ;;
1242
1243  *)
1244    # FIXME: should be removed in autoconf 3.0.
1245    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249    ;;
1250
1251  esac
1252done
1253
1254if test -n "$ac_prev"; then
1255  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256  as_fn_error $? "missing argument to $ac_option"
1257fi
1258
1259if test -n "$ac_unrecognized_opts"; then
1260  case $enable_option_checking in
1261    no) ;;
1262    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264  esac
1265fi
1266
1267# Check all directory arguments for consistency.
1268for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269		datadir sysconfdir sharedstatedir localstatedir includedir \
1270		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271		libdir localedir mandir runstatedir
1272do
1273  eval ac_val=\$$ac_var
1274  # Remove trailing slashes.
1275  case $ac_val in
1276    */ )
1277      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278      eval $ac_var=\$ac_val;;
1279  esac
1280  # Be sure to have absolute directory names.
1281  case $ac_val in
1282    [\\/$]* | ?:[\\/]* )  continue;;
1283    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284  esac
1285  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297  if test "x$build_alias" = x; then
1298    cross_compiling=maybe
1299  elif test "x$build_alias" != "x$host_alias"; then
1300    cross_compiling=yes
1301  fi
1302fi
1303
1304ac_tool_prefix=
1305test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307test "$silent" = yes && exec 6>/dev/null
1308
1309
1310ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311ac_ls_di=`ls -di .` &&
1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313  as_fn_error $? "working directory cannot be determined"
1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315  as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320  ac_srcdir_defaulted=yes
1321  # Try the directory containing this script, then the parent directory.
1322  ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324	 X"$as_myself" : 'X\(//\)[^/]' \| \
1325	 X"$as_myself" : 'X\(//\)$' \| \
1326	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327$as_echo X"$as_myself" |
1328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)[^/].*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\/\)$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\).*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  s/.*/./; q'`
1345  srcdir=$ac_confdir
1346  if test ! -r "$srcdir/$ac_unique_file"; then
1347    srcdir=..
1348  fi
1349else
1350  ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355fi
1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359	pwd)`
1360# When building in place, set srcdir=.
1361if test "$ac_abs_confdir" = "$ac_pwd"; then
1362  srcdir=.
1363fi
1364# Remove unnecessary trailing slashes from srcdir.
1365# Double slashes in file names in object file debugging info
1366# mess up M-x gdb in Emacs.
1367case $srcdir in
1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369esac
1370for ac_var in $ac_precious_vars; do
1371  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_env_${ac_var}_value=\$${ac_var}
1373  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381  # Omit some internal or obsolete options to make the list less imposing.
1382  # This message is too long to be a string in the A/UX 3.1 sh.
1383  cat <<_ACEOF
1384\`configure' configures Icecast 2.4.4 to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394  -h, --help              display this help and exit
1395      --help=short        display options specific to this package
1396      --help=recursive    display the short help of all the included packages
1397  -V, --version           display version information and exit
1398  -q, --quiet, --silent   do not print \`checking ...' messages
1399      --cache-file=FILE   cache test results in FILE [disabled]
1400  -C, --config-cache      alias for \`--cache-file=config.cache'
1401  -n, --no-create         do not create output files
1402      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405  --prefix=PREFIX         install architecture-independent files in PREFIX
1406                          [$ac_default_prefix]
1407  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                          [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418  --bindir=DIR            user executables [EPREFIX/bin]
1419  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420  --libexecdir=DIR        program executables [EPREFIX/libexec]
1421  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1425  --libdir=DIR            object code libraries [EPREFIX/lib]
1426  --includedir=DIR        C header files [PREFIX/include]
1427  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430  --infodir=DIR           info documentation [DATAROOTDIR/info]
1431  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432  --mandir=DIR            man documentation [DATAROOTDIR/man]
1433  --docdir=DIR            documentation root [DATAROOTDIR/doc/icecast]
1434  --htmldir=DIR           html documentation [DOCDIR]
1435  --dvidir=DIR            dvi documentation [DOCDIR]
1436  --pdfdir=DIR            pdf documentation [DOCDIR]
1437  --psdir=DIR             ps documentation [DOCDIR]
1438_ACEOF
1439
1440  cat <<\_ACEOF
1441
1442Program names:
1443  --program-prefix=PREFIX            prepend PREFIX to installed program names
1444  --program-suffix=SUFFIX            append SUFFIX to installed program names
1445  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1446
1447System types:
1448  --build=BUILD     configure for building on BUILD [guessed]
1449  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454  case $ac_init_help in
1455     short | recursive ) echo "Configuration of Icecast 2.4.4:";;
1456   esac
1457  cat <<\_ACEOF
1458
1459Optional Features:
1460  --disable-option-checking  ignore unrecognized --enable/--with options
1461  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463  --enable-silent-rules   less verbose build output (undo: "make V=1")
1464  --disable-silent-rules  verbose build output (undo: "make V=0")
1465  --enable-maintainer-mode
1466                          enable make rules and dependencies not useful (and
1467                          sometimes confusing) to the casual installer
1468  --enable-dependency-tracking
1469                          do not reject slow dependency extractors
1470  --disable-dependency-tracking
1471                          speeds up one-time build
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477  --disable-largefile     omit support for large files
1478  --disable-yp            disable YP directory support
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1484                          both]
1485  --with-aix-soname=aix|svr4|both
1486                          shared library versioning (aka "SONAME") variant to
1487                          provide on AIX, [default=aix].
1488  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1489  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1490                          compiler's sysroot if not specified).
1491  --with-xslt-config=PATH use xslt-config in PATH to find libxslt
1492  --with-ogg=PREFIX       Prefix where libogg is installed (optional)
1493  --with-vorbis=PREFIX    Prefix where libvorbis is installed (optional)
1494  --with-theora=PREFIX    Prefix where libtheora is installed (optional)
1495  --with-speex=PREFIX     Prefix where libspeex is installed (optional)
1496  --with-curl=PFX         Prefix where libcurl is installed (optional)
1497  --with-curl-config=curl-config
1498                          Use curl-config to find libcurl
1499  --with-openssl=PFX      Prefix where openssl is installed (optional)
1500
1501Some influential environment variables:
1502  CC          C compiler command
1503  CFLAGS      C compiler flags
1504  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505              nonstandard directory <lib dir>
1506  LIBS        libraries to pass to the linker, e.g. -l<library>
1507  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508              you have headers in a nonstandard directory <include dir>
1509  LT_SYS_LIBRARY_PATH
1510              User-defined run-time library search path.
1511  CPP         C preprocessor
1512  XSLTCONFIG  XSLT configuration program
1513  OGG_PREFIX  path to ogg installation
1514  VORBIS_PREFIX
1515              path to vorbis installation
1516  THEORA      path to theora installation
1517  SPEEX       path to speex installation
1518
1519Use these variables to override the choices made by `configure' or to help
1520it to find libraries and programs with nonstandard names/locations.
1521
1522Report bugs to <icecast@xiph.org>.
1523_ACEOF
1524ac_status=$?
1525fi
1526
1527if test "$ac_init_help" = "recursive"; then
1528  # If there are subdirs, report their specific --help.
1529  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530    test -d "$ac_dir" ||
1531      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532      continue
1533    ac_builddir=.
1534
1535case "$ac_dir" in
1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537*)
1538  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539  # A ".." for each directory in $ac_dir_suffix.
1540  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541  case $ac_top_builddir_sub in
1542  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544  esac ;;
1545esac
1546ac_abs_top_builddir=$ac_pwd
1547ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548# for backward compatibility:
1549ac_top_builddir=$ac_top_build_prefix
1550
1551case $srcdir in
1552  .)  # We are building in place.
1553    ac_srcdir=.
1554    ac_top_srcdir=$ac_top_builddir_sub
1555    ac_abs_top_srcdir=$ac_pwd ;;
1556  [\\/]* | ?:[\\/]* )  # Absolute name.
1557    ac_srcdir=$srcdir$ac_dir_suffix;
1558    ac_top_srcdir=$srcdir
1559    ac_abs_top_srcdir=$srcdir ;;
1560  *) # Relative name.
1561    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562    ac_top_srcdir=$ac_top_build_prefix$srcdir
1563    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564esac
1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567    cd "$ac_dir" || { ac_status=$?; continue; }
1568    # Check for guested configure.
1569    if test -f "$ac_srcdir/configure.gnu"; then
1570      echo &&
1571      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572    elif test -f "$ac_srcdir/configure"; then
1573      echo &&
1574      $SHELL "$ac_srcdir/configure" --help=recursive
1575    else
1576      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577    fi || ac_status=$?
1578    cd "$ac_pwd" || { ac_status=$?; break; }
1579  done
1580fi
1581
1582test -n "$ac_init_help" && exit $ac_status
1583if $ac_init_version; then
1584  cat <<\_ACEOF
1585Icecast configure 2.4.4
1586generated by GNU Autoconf 2.69
1587
1588Copyright (C) 2012 Free Software Foundation, Inc.
1589This configure script is free software; the Free Software Foundation
1590gives unlimited permission to copy, distribute and modify it.
1591_ACEOF
1592  exit
1593fi
1594
1595## ------------------------ ##
1596## Autoconf initialization. ##
1597## ------------------------ ##
1598
1599# ac_fn_c_try_compile LINENO
1600# --------------------------
1601# Try to compile conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_compile ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  rm -f conftest.$ac_objext
1606  if { { ac_try="$ac_compile"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_compile") 2>conftest.err
1614  ac_status=$?
1615  if test -s conftest.err; then
1616    grep -v '^ *+' conftest.err >conftest.er1
1617    cat conftest.er1 >&5
1618    mv -f conftest.er1 conftest.err
1619  fi
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } && {
1622	 test -z "$ac_c_werror_flag" ||
1623	 test ! -s conftest.err
1624       } && test -s conftest.$ac_objext; then :
1625  ac_retval=0
1626else
1627  $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630	ac_retval=1
1631fi
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633  as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_compile
1636
1637# ac_fn_c_try_link LINENO
1638# -----------------------
1639# Try to link conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_link ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  rm -f conftest.$ac_objext conftest$ac_exeext
1644  if { { ac_try="$ac_link"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_link") 2>conftest.err
1652  ac_status=$?
1653  if test -s conftest.err; then
1654    grep -v '^ *+' conftest.err >conftest.er1
1655    cat conftest.er1 >&5
1656    mv -f conftest.er1 conftest.err
1657  fi
1658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659  test $ac_status = 0; } && {
1660	 test -z "$ac_c_werror_flag" ||
1661	 test ! -s conftest.err
1662       } && test -s conftest$ac_exeext && {
1663	 test "$cross_compiling" = yes ||
1664	 test -x conftest$ac_exeext
1665       }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671	ac_retval=1
1672fi
1673  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675  # interfere with the next link command; also delete a directory that is
1676  # left behind by Apple's compiler.  We do this before executing the actions.
1677  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679  as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_link
1682
1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684# -------------------------------------------------------
1685# Tests whether HEADER exists and can be compiled using the include files in
1686# INCLUDES, setting the cache variable VAR accordingly.
1687ac_fn_c_check_header_compile ()
1688{
1689  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691$as_echo_n "checking for $2... " >&6; }
1692if eval \${$3+:} false; then :
1693  $as_echo_n "(cached) " >&6
1694else
1695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h.  */
1697$4
1698#include <$2>
1699_ACEOF
1700if ac_fn_c_try_compile "$LINENO"; then :
1701  eval "$3=yes"
1702else
1703  eval "$3=no"
1704fi
1705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1706fi
1707eval ac_res=\$$3
1708	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712} # ac_fn_c_check_header_compile
1713
1714# ac_fn_c_try_cpp LINENO
1715# ----------------------
1716# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_cpp ()
1718{
1719  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720  if { { ac_try="$ac_cpp conftest.$ac_ext"
1721case "(($ac_try" in
1722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723  *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728  ac_status=$?
1729  if test -s conftest.err; then
1730    grep -v '^ *+' conftest.err >conftest.er1
1731    cat conftest.er1 >&5
1732    mv -f conftest.er1 conftest.err
1733  fi
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } > conftest.i && {
1736	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737	 test ! -s conftest.err
1738       }; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744    ac_retval=1
1745fi
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_cpp
1750
1751# ac_fn_c_try_run LINENO
1752# ----------------------
1753# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1754# that executables *can* be run.
1755ac_fn_c_try_run ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  if { { ac_try="$ac_link"
1759case "(($ac_try" in
1760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761  *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765  (eval "$ac_link") 2>&5
1766  ac_status=$?
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1769  { { case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_try") 2>&5
1776  ac_status=$?
1777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778  test $ac_status = 0; }; }; then :
1779  ac_retval=0
1780else
1781  $as_echo "$as_me: program exited with status $ac_status" >&5
1782       $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785       ac_retval=$ac_status
1786fi
1787  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789  as_fn_set_status $ac_retval
1790
1791} # ac_fn_c_try_run
1792
1793# ac_fn_c_check_func LINENO FUNC VAR
1794# ----------------------------------
1795# Tests whether FUNC exists, setting the cache variable VAR accordingly
1796ac_fn_c_check_func ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval \${$3+:} false; then :
1802  $as_echo_n "(cached) " >&6
1803else
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1807   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1808#define $2 innocuous_$2
1809
1810/* System header to define __stub macros and hopefully few prototypes,
1811    which can conflict with char $2 (); below.
1812    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1813    <limits.h> exists even on freestanding compilers.  */
1814
1815#ifdef __STDC__
1816# include <limits.h>
1817#else
1818# include <assert.h>
1819#endif
1820
1821#undef $2
1822
1823/* Override any GCC internal prototype to avoid an error.
1824   Use char because int might match the return type of a GCC
1825   builtin and then its argument prototype would still apply.  */
1826#ifdef __cplusplus
1827extern "C"
1828#endif
1829char $2 ();
1830/* The GNU C library defines this for functions which it implements
1831    to always fail with ENOSYS.  Some functions are actually named
1832    something starting with __ and the normal name is an alias.  */
1833#if defined __stub_$2 || defined __stub___$2
1834choke me
1835#endif
1836
1837int
1838main ()
1839{
1840return $2 ();
1841  ;
1842  return 0;
1843}
1844_ACEOF
1845if ac_fn_c_try_link "$LINENO"; then :
1846  eval "$3=yes"
1847else
1848  eval "$3=no"
1849fi
1850rm -f core conftest.err conftest.$ac_objext \
1851    conftest$ac_exeext conftest.$ac_ext
1852fi
1853eval ac_res=\$$3
1854	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855$as_echo "$ac_res" >&6; }
1856  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858} # ac_fn_c_check_func
1859
1860# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1861# -------------------------------------------------------
1862# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1863# the include files in INCLUDES and setting the cache variable VAR
1864# accordingly.
1865ac_fn_c_check_header_mongrel ()
1866{
1867  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868  if eval \${$3+:} false; then :
1869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872  $as_echo_n "(cached) " >&6
1873fi
1874eval ac_res=\$$3
1875	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877else
1878  # Is the header compilable?
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1880$as_echo_n "checking $2 usability... " >&6; }
1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h.  */
1883$4
1884#include <$2>
1885_ACEOF
1886if ac_fn_c_try_compile "$LINENO"; then :
1887  ac_header_compiler=yes
1888else
1889  ac_header_compiler=no
1890fi
1891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1893$as_echo "$ac_header_compiler" >&6; }
1894
1895# Is the header present?
1896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1897$as_echo_n "checking $2 presence... " >&6; }
1898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900#include <$2>
1901_ACEOF
1902if ac_fn_c_try_cpp "$LINENO"; then :
1903  ac_header_preproc=yes
1904else
1905  ac_header_preproc=no
1906fi
1907rm -f conftest.err conftest.i conftest.$ac_ext
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1909$as_echo "$ac_header_preproc" >&6; }
1910
1911# So?  What about this header?
1912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1913  yes:no: )
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1915$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1916    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918    ;;
1919  no:yes:* )
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1921$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1923$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1925$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1926    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1927$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1928    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930( $as_echo "## ------------------------------- ##
1931## Report this to icecast@xiph.org ##
1932## ------------------------------- ##"
1933     ) | sed "s/^/$as_me: WARNING:     /" >&2
1934    ;;
1935esac
1936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939  $as_echo_n "(cached) " >&6
1940else
1941  eval "$3=\$ac_header_compiler"
1942fi
1943eval ac_res=\$$3
1944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946fi
1947  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949} # ac_fn_c_check_header_mongrel
1950
1951# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1952# -------------------------------------------
1953# Tests whether TYPE exists after having included INCLUDES, setting cache
1954# variable VAR accordingly.
1955ac_fn_c_check_type ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961  $as_echo_n "(cached) " >&6
1962else
1963  eval "$3=no"
1964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h.  */
1966$4
1967int
1968main ()
1969{
1970if (sizeof ($2))
1971	 return 0;
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983if (sizeof (($2)))
1984	    return 0;
1985  ;
1986  return 0;
1987}
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990
1991else
1992  eval "$3=yes"
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003} # ac_fn_c_check_type
2004
2005# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006# ----------------------------------------------------
2007# Tries to find if the field MEMBER exists in type AGGR, after including
2008# INCLUDES, setting cache variable VAR accordingly.
2009ac_fn_c_check_member ()
2010{
2011  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013$as_echo_n "checking for $2.$3... " >&6; }
2014if eval \${$4+:} false; then :
2015  $as_echo_n "(cached) " >&6
2016else
2017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h.  */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (ac_aggr.$3)
2025return 0;
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031  eval "$4=yes"
2032else
2033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h.  */
2035$5
2036int
2037main ()
2038{
2039static $2 ac_aggr;
2040if (sizeof ac_aggr.$3)
2041return 0;
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  eval "$4=yes"
2048else
2049  eval "$4=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$4
2056	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
2058  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_member
2061
2062# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063# ---------------------------------------------
2064# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065# accordingly.
2066ac_fn_c_check_decl ()
2067{
2068  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069  as_decl_name=`echo $2|sed 's/ *(.*//'`
2070  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073if eval \${$3+:} false; then :
2074  $as_echo_n "(cached) " >&6
2075else
2076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082#ifndef $as_decl_name
2083#ifdef __cplusplus
2084  (void) $as_decl_use;
2085#else
2086  (void) $as_decl_name;
2087#endif
2088#endif
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
2095  eval "$3=yes"
2096else
2097  eval "$3=no"
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101eval ac_res=\$$3
2102	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103$as_echo "$ac_res" >&6; }
2104  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106} # ac_fn_c_check_decl
2107cat >config.log <<_ACEOF
2108This file contains any messages produced by compilers while
2109running configure, to aid debugging if configure makes a mistake.
2110
2111It was created by Icecast $as_me 2.4.4, which was
2112generated by GNU Autoconf 2.69.  Invocation command line was
2113
2114  $ $0 $@
2115
2116_ACEOF
2117exec 5>>config.log
2118{
2119cat <<_ASUNAME
2120## --------- ##
2121## Platform. ##
2122## --------- ##
2123
2124hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129
2130/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2132
2133/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2134/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2135/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2137/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2138/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2139/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2140
2141_ASUNAME
2142
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148    $as_echo "PATH: $as_dir"
2149  done
2150IFS=$as_save_IFS
2151
2152} >&5
2153
2154cat >&5 <<_ACEOF
2155
2156
2157## ----------- ##
2158## Core tests. ##
2159## ----------- ##
2160
2161_ACEOF
2162
2163
2164# Keep a trace of the command line.
2165# Strip out --no-create and --no-recursion so they do not pile up.
2166# Strip out --silent because we don't want to record it for future runs.
2167# Also quote any args containing shell meta-characters.
2168# Make two passes to allow for proper duplicate-argument suppression.
2169ac_configure_args=
2170ac_configure_args0=
2171ac_configure_args1=
2172ac_must_keep_next=false
2173for ac_pass in 1 2
2174do
2175  for ac_arg
2176  do
2177    case $ac_arg in
2178    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180    | -silent | --silent | --silen | --sile | --sil)
2181      continue ;;
2182    *\'*)
2183      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184    esac
2185    case $ac_pass in
2186    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187    2)
2188      as_fn_append ac_configure_args1 " '$ac_arg'"
2189      if test $ac_must_keep_next = true; then
2190	ac_must_keep_next=false # Got value, back to normal.
2191      else
2192	case $ac_arg in
2193	  *=* | --config-cache | -C | -disable-* | --disable-* \
2194	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196	  | -with-* | --with-* | -without-* | --without-* | --x)
2197	    case "$ac_configure_args0 " in
2198	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199	    esac
2200	    ;;
2201	  -* ) ac_must_keep_next=true ;;
2202	esac
2203      fi
2204      as_fn_append ac_configure_args " '$ac_arg'"
2205      ;;
2206    esac
2207  done
2208done
2209{ ac_configure_args0=; unset ac_configure_args0;}
2210{ ac_configure_args1=; unset ac_configure_args1;}
2211
2212# When interrupted or exit'd, cleanup temporary files, and complete
2213# config.log.  We remove comments because anyway the quotes in there
2214# would cause problems or look ugly.
2215# WARNING: Use '\'' to represent an apostrophe within the trap.
2216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217trap 'exit_status=$?
2218  # Save into config.log some information that might help in debugging.
2219  {
2220    echo
2221
2222    $as_echo "## ---------------- ##
2223## Cache variables. ##
2224## ---------------- ##"
2225    echo
2226    # The following way of writing the cache mishandles newlines in values,
2227(
2228  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229    eval ac_val=\$$ac_var
2230    case $ac_val in #(
2231    *${as_nl}*)
2232      case $ac_var in #(
2233      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235      esac
2236      case $ac_var in #(
2237      _ | IFS | as_nl) ;; #(
2238      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239      *) { eval $ac_var=; unset $ac_var;} ;;
2240      esac ;;
2241    esac
2242  done
2243  (set) 2>&1 |
2244    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245    *${as_nl}ac_space=\ *)
2246      sed -n \
2247	"s/'\''/'\''\\\\'\'''\''/g;
2248	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249      ;; #(
2250    *)
2251      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252      ;;
2253    esac |
2254    sort
2255)
2256    echo
2257
2258    $as_echo "## ----------------- ##
2259## Output variables. ##
2260## ----------------- ##"
2261    echo
2262    for ac_var in $ac_subst_vars
2263    do
2264      eval ac_val=\$$ac_var
2265      case $ac_val in
2266      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267      esac
2268      $as_echo "$ac_var='\''$ac_val'\''"
2269    done | sort
2270    echo
2271
2272    if test -n "$ac_subst_files"; then
2273      $as_echo "## ------------------- ##
2274## File substitutions. ##
2275## ------------------- ##"
2276      echo
2277      for ac_var in $ac_subst_files
2278      do
2279	eval ac_val=\$$ac_var
2280	case $ac_val in
2281	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282	esac
2283	$as_echo "$ac_var='\''$ac_val'\''"
2284      done | sort
2285      echo
2286    fi
2287
2288    if test -s confdefs.h; then
2289      $as_echo "## ----------- ##
2290## confdefs.h. ##
2291## ----------- ##"
2292      echo
2293      cat confdefs.h
2294      echo
2295    fi
2296    test "$ac_signal" != 0 &&
2297      $as_echo "$as_me: caught signal $ac_signal"
2298    $as_echo "$as_me: exit $exit_status"
2299  } >&5
2300  rm -f core *.core core.conftest.* &&
2301    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302    exit $exit_status
2303' 0
2304for ac_signal in 1 2 13 15; do
2305  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306done
2307ac_signal=0
2308
2309# confdefs.h avoids OS command line length limits that DEFS can exceed.
2310rm -f -r conftest* confdefs.h
2311
2312$as_echo "/* confdefs.h */" > confdefs.h
2313
2314# Predefined preprocessor variables.
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_NAME "$PACKAGE_NAME"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_VERSION "$PACKAGE_VERSION"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_STRING "$PACKAGE_STRING"
2330_ACEOF
2331
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334_ACEOF
2335
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_URL "$PACKAGE_URL"
2338_ACEOF
2339
2340
2341# Let the site file select an alternate cache file if it wants to.
2342# Prefer an explicitly selected file to automatically selected ones.
2343ac_site_file1=NONE
2344ac_site_file2=NONE
2345if test -n "$CONFIG_SITE"; then
2346  # We do not want a PATH search for config.site.
2347  case $CONFIG_SITE in #((
2348    -*)  ac_site_file1=./$CONFIG_SITE;;
2349    */*) ac_site_file1=$CONFIG_SITE;;
2350    *)   ac_site_file1=./$CONFIG_SITE;;
2351  esac
2352elif test "x$prefix" != xNONE; then
2353  ac_site_file1=$prefix/share/config.site
2354  ac_site_file2=$prefix/etc/config.site
2355else
2356  ac_site_file1=$ac_default_prefix/share/config.site
2357  ac_site_file2=$ac_default_prefix/etc/config.site
2358fi
2359for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2360do
2361  test "x$ac_site_file" = xNONE && continue
2362  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2363    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365    sed 's/^/| /' "$ac_site_file" >&5
2366    . "$ac_site_file" \
2367      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369as_fn_error $? "failed to load site script $ac_site_file
2370See \`config.log' for more details" "$LINENO" 5; }
2371  fi
2372done
2373
2374if test -r "$cache_file"; then
2375  # Some versions of bash will fail to source /dev/null (special files
2376  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2377  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379$as_echo "$as_me: loading cache $cache_file" >&6;}
2380    case $cache_file in
2381      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382      *)                      . "./$cache_file";;
2383    esac
2384  fi
2385else
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387$as_echo "$as_me: creating cache $cache_file" >&6;}
2388  >$cache_file
2389fi
2390
2391# Check that the precious variables saved in the cache have kept the same
2392# value.
2393ac_cache_corrupted=false
2394for ac_var in $ac_precious_vars; do
2395  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2396  eval ac_new_set=\$ac_env_${ac_var}_set
2397  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2398  eval ac_new_val=\$ac_env_${ac_var}_value
2399  case $ac_old_set,$ac_new_set in
2400    set,)
2401      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2402$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2403      ac_cache_corrupted=: ;;
2404    ,set)
2405      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2406$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2407      ac_cache_corrupted=: ;;
2408    ,);;
2409    *)
2410      if test "x$ac_old_val" != "x$ac_new_val"; then
2411	# differences in whitespace do not lead to failure.
2412	ac_old_val_w=`echo x $ac_old_val`
2413	ac_new_val_w=`echo x $ac_new_val`
2414	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2415	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2416$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2417	  ac_cache_corrupted=:
2418	else
2419	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2420$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2421	  eval $ac_var=\$ac_old_val
2422	fi
2423	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2424$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2425	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2426$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2427      fi;;
2428  esac
2429  # Pass precious variables to config.status.
2430  if test "$ac_new_set" = set; then
2431    case $ac_new_val in
2432    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2433    *) ac_arg=$ac_var=$ac_new_val ;;
2434    esac
2435    case " $ac_configure_args " in
2436      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2437      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2438    esac
2439  fi
2440done
2441if $ac_cache_corrupted; then
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2445$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2446  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447fi
2448## -------------------- ##
2449## Main body of script. ##
2450## -------------------- ##
2451
2452ac_ext=c
2453ac_cpp='$CPP $CPPFLAGS'
2454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457
2458
2459
2460
2461
2462
2463am__api_version='1.16'
2464
2465ac_aux_dir=
2466for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2467  if test -f "$ac_dir/install-sh"; then
2468    ac_aux_dir=$ac_dir
2469    ac_install_sh="$ac_aux_dir/install-sh -c"
2470    break
2471  elif test -f "$ac_dir/install.sh"; then
2472    ac_aux_dir=$ac_dir
2473    ac_install_sh="$ac_aux_dir/install.sh -c"
2474    break
2475  elif test -f "$ac_dir/shtool"; then
2476    ac_aux_dir=$ac_dir
2477    ac_install_sh="$ac_aux_dir/shtool install -c"
2478    break
2479  fi
2480done
2481if test -z "$ac_aux_dir"; then
2482  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483fi
2484
2485# These three variables are undocumented and unsupported,
2486# and are intended to be withdrawn in a future Autoconf release.
2487# They can cause serious problems if a builder's source tree is in a directory
2488# whose full name contains unusual characters.
2489ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2490ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2491ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2492
2493
2494# Find a good install program.  We prefer a C program (faster),
2495# so one script is as good as another.  But avoid the broken or
2496# incompatible versions:
2497# SysV /etc/install, /usr/sbin/install
2498# SunOS /usr/etc/install
2499# IRIX /sbin/install
2500# AIX /bin/install
2501# AmigaOS /C/install, which installs bootblocks on floppy discs
2502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505# OS/2's system install, which has a completely different semantic
2506# ./install, which can be erroneously created by make from ./install.sh.
2507# Reject install programs that cannot install multiple files.
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2509$as_echo_n "checking for a BSD-compatible install... " >&6; }
2510if test -z "$INSTALL"; then
2511if ${ac_cv_path_install+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    # Account for people who put trailing slashes in PATH elements.
2520case $as_dir/ in #((
2521  ./ | .// | /[cC]/* | \
2522  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2524  /usr/ucb/* ) ;;
2525  *)
2526    # OSF1 and SCO ODT 3.0 have their own names for install.
2527    # Don't use installbsd from OSF since it installs stuff as root
2528    # by default.
2529    for ac_prog in ginstall scoinst install; do
2530      for ac_exec_ext in '' $ac_executable_extensions; do
2531	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2532	  if test $ac_prog = install &&
2533	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534	    # AIX install.  It has an incompatible calling convention.
2535	    :
2536	  elif test $ac_prog = install &&
2537	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538	    # program-specific install script used by HP pwplus--don't use.
2539	    :
2540	  else
2541	    rm -rf conftest.one conftest.two conftest.dir
2542	    echo one > conftest.one
2543	    echo two > conftest.two
2544	    mkdir conftest.dir
2545	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2546	      test -s conftest.one && test -s conftest.two &&
2547	      test -s conftest.dir/conftest.one &&
2548	      test -s conftest.dir/conftest.two
2549	    then
2550	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551	      break 3
2552	    fi
2553	  fi
2554	fi
2555      done
2556    done
2557    ;;
2558esac
2559
2560  done
2561IFS=$as_save_IFS
2562
2563rm -rf conftest.one conftest.two conftest.dir
2564
2565fi
2566  if test "${ac_cv_path_install+set}" = set; then
2567    INSTALL=$ac_cv_path_install
2568  else
2569    # As a last resort, use the slow shell script.  Don't cache a
2570    # value for INSTALL within a source directory, because that will
2571    # break other packages using the cache if that directory is
2572    # removed, or if the value is a relative name.
2573    INSTALL=$ac_install_sh
2574  fi
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2577$as_echo "$INSTALL" >&6; }
2578
2579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580# It thinks the first close brace ends the variable substitution.
2581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2588$as_echo_n "checking whether build environment is sane... " >&6; }
2589# Reject unsafe characters in $srcdir or the absolute working directory
2590# name.  Accept space and tab only in the latter.
2591am_lf='
2592'
2593case `pwd` in
2594  *[\\\"\#\$\&\'\`$am_lf]*)
2595    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2596esac
2597case $srcdir in
2598  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2599    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2600esac
2601
2602# Do 'set' in a subshell so we don't clobber the current shell's
2603# arguments.  Must try -L first in case configure is actually a
2604# symlink; some systems play weird games with the mod time of symlinks
2605# (eg FreeBSD returns the mod time of the symlink's containing
2606# directory).
2607if (
2608   am_has_slept=no
2609   for am_try in 1 2; do
2610     echo "timestamp, slept: $am_has_slept" > conftest.file
2611     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2612     if test "$*" = "X"; then
2613	# -L didn't work.
2614	set X `ls -t "$srcdir/configure" conftest.file`
2615     fi
2616     if test "$*" != "X $srcdir/configure conftest.file" \
2617	&& test "$*" != "X conftest.file $srcdir/configure"; then
2618
2619	# If neither matched, then we have a broken ls.  This can happen
2620	# if, for instance, CONFIG_SHELL is bash and it inherits a
2621	# broken ls alias from the environment.  This has actually
2622	# happened.  Such a system could not be considered "sane".
2623	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2624  alias in your environment" "$LINENO" 5
2625     fi
2626     if test "$2" = conftest.file || test $am_try -eq 2; then
2627       break
2628     fi
2629     # Just in case.
2630     sleep 1
2631     am_has_slept=yes
2632   done
2633   test "$2" = conftest.file
2634   )
2635then
2636   # Ok.
2637   :
2638else
2639   as_fn_error $? "newly created file is older than distributed files!
2640Check your system clock" "$LINENO" 5
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643$as_echo "yes" >&6; }
2644# If we didn't sleep, we still need to ensure time stamps of config.status and
2645# generated files are strictly newer.
2646am_sleep_pid=
2647if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2648  ( sleep 1 ) &
2649  am_sleep_pid=$!
2650fi
2651
2652rm -f conftest.file
2653
2654test "$program_prefix" != NONE &&
2655  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2656# Use a double $ so make ignores it.
2657test "$program_suffix" != NONE &&
2658  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2659# Double any \ or $.
2660# By default was `s,x,x', remove it if useless.
2661ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2662program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2663
2664# Expand $ac_aux_dir to an absolute path.
2665am_aux_dir=`cd "$ac_aux_dir" && pwd`
2666
2667if test x"${MISSING+set}" != xset; then
2668  case $am_aux_dir in
2669  *\ * | *\	*)
2670    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2671  *)
2672    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2673  esac
2674fi
2675# Use eval to expand $SHELL
2676if eval "$MISSING --is-lightweight"; then
2677  am_missing_run="$MISSING "
2678else
2679  am_missing_run=
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2681$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2682fi
2683
2684if test x"${install_sh+set}" != xset; then
2685  case $am_aux_dir in
2686  *\ * | *\	*)
2687    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2688  *)
2689    install_sh="\${SHELL} $am_aux_dir/install-sh"
2690  esac
2691fi
2692
2693# Installed binaries are usually stripped using 'strip' when the user
2694# run "make install-strip".  However 'strip' might not be the right
2695# tool to use in cross-compilation environments, therefore Automake
2696# will honor the 'STRIP' environment variable to overrule this program.
2697if test "$cross_compiling" != no; then
2698  if test -n "$ac_tool_prefix"; then
2699  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}strip; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_STRIP+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test -n "$STRIP"; then
2707  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726STRIP=$ac_cv_prog_STRIP
2727if test -n "$STRIP"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2729$as_echo "$STRIP" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736fi
2737if test -z "$ac_cv_prog_STRIP"; then
2738  ac_ct_STRIP=$STRIP
2739  # Extract the first word of "strip", so it can be a program name with args.
2740set dummy strip; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  if test -n "$ac_ct_STRIP"; then
2747  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752  IFS=$as_save_IFS
2753  test -z "$as_dir" && as_dir=.
2754    for ac_exec_ext in '' $ac_executable_extensions; do
2755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756    ac_cv_prog_ac_ct_STRIP="strip"
2757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758    break 2
2759  fi
2760done
2761  done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2767if test -n "$ac_ct_STRIP"; then
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2769$as_echo "$ac_ct_STRIP" >&6; }
2770else
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775  if test "x$ac_ct_STRIP" = x; then
2776    STRIP=":"
2777  else
2778    case $cross_compiling:$ac_tool_warned in
2779yes:)
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782ac_tool_warned=yes ;;
2783esac
2784    STRIP=$ac_ct_STRIP
2785  fi
2786else
2787  STRIP="$ac_cv_prog_STRIP"
2788fi
2789
2790fi
2791INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2792
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2794$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2795if test -z "$MKDIR_P"; then
2796  if ${ac_cv_path_mkdir+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2801do
2802  IFS=$as_save_IFS
2803  test -z "$as_dir" && as_dir=.
2804    for ac_prog in mkdir gmkdir; do
2805	 for ac_exec_ext in '' $ac_executable_extensions; do
2806	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2807	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2808	     'mkdir (GNU coreutils) '* | \
2809	     'mkdir (coreutils) '* | \
2810	     'mkdir (fileutils) '4.1*)
2811	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2812	       break 3;;
2813	   esac
2814	 done
2815       done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820
2821  test -d ./--version && rmdir ./--version
2822  if test "${ac_cv_path_mkdir+set}" = set; then
2823    MKDIR_P="$ac_cv_path_mkdir -p"
2824  else
2825    # As a last resort, use the slow shell script.  Don't cache a
2826    # value for MKDIR_P within a source directory, because that will
2827    # break other packages using the cache if that directory is
2828    # removed, or if the value is a relative name.
2829    MKDIR_P="$ac_install_sh -d"
2830  fi
2831fi
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2833$as_echo "$MKDIR_P" >&6; }
2834
2835for ac_prog in gawk mawk nawk awk
2836do
2837  # Extract the first word of "$ac_prog", so it can be a program name with args.
2838set dummy $ac_prog; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if ${ac_cv_prog_AWK+:} false; then :
2842  $as_echo_n "(cached) " >&6
2843else
2844  if test -n "$AWK"; then
2845  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852    for ac_exec_ext in '' $ac_executable_extensions; do
2853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854    ac_cv_prog_AWK="$ac_prog"
2855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859  done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864AWK=$ac_cv_prog_AWK
2865if test -n "$AWK"; then
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2867$as_echo "$AWK" >&6; }
2868else
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874  test -n "$AWK" && break
2875done
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2879set x ${MAKE-make}
2880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2881if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  cat >conftest.make <<\_ACEOF
2885SHELL = /bin/sh
2886all:
2887	@echo '@@@%%%=$(MAKE)=@@@%%%'
2888_ACEOF
2889# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2890case `${MAKE-make} -f conftest.make 2>/dev/null` in
2891  *@@@%%%=?*=@@@%%%*)
2892    eval ac_cv_prog_make_${ac_make}_set=yes;;
2893  *)
2894    eval ac_cv_prog_make_${ac_make}_set=no;;
2895esac
2896rm -f conftest.make
2897fi
2898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900$as_echo "yes" >&6; }
2901  SET_MAKE=
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905  SET_MAKE="MAKE=${MAKE-make}"
2906fi
2907
2908rm -rf .tst 2>/dev/null
2909mkdir .tst 2>/dev/null
2910if test -d .tst; then
2911  am__leading_dot=.
2912else
2913  am__leading_dot=_
2914fi
2915rmdir .tst 2>/dev/null
2916
2917# Check whether --enable-silent-rules was given.
2918if test "${enable_silent_rules+set}" = set; then :
2919  enableval=$enable_silent_rules;
2920fi
2921
2922case $enable_silent_rules in # (((
2923  yes) AM_DEFAULT_VERBOSITY=0;;
2924   no) AM_DEFAULT_VERBOSITY=1;;
2925    *) AM_DEFAULT_VERBOSITY=1;;
2926esac
2927am_make=${MAKE-make}
2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2929$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2930if ${am_cv_make_support_nested_variables+:} false; then :
2931  $as_echo_n "(cached) " >&6
2932else
2933  if $as_echo 'TRUE=$(BAR$(V))
2934BAR0=false
2935BAR1=true
2936V=1
2937am__doit:
2938	@$(TRUE)
2939.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2940  am_cv_make_support_nested_variables=yes
2941else
2942  am_cv_make_support_nested_variables=no
2943fi
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2946$as_echo "$am_cv_make_support_nested_variables" >&6; }
2947if test $am_cv_make_support_nested_variables = yes; then
2948    AM_V='$(V)'
2949  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2950else
2951  AM_V=$AM_DEFAULT_VERBOSITY
2952  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2953fi
2954AM_BACKSLASH='\'
2955
2956if test "`cd $srcdir && pwd`" != "`pwd`"; then
2957  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2958  # is not polluted with repeated "-I."
2959  am__isrc=' -I$(srcdir)'
2960  # test to see if srcdir already configured
2961  if test -f $srcdir/config.status; then
2962    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2963  fi
2964fi
2965
2966# test whether we have cygpath
2967if test -z "$CYGPATH_W"; then
2968  if (cygpath --version) >/dev/null 2>/dev/null; then
2969    CYGPATH_W='cygpath -w'
2970  else
2971    CYGPATH_W=echo
2972  fi
2973fi
2974
2975
2976# Define the identity of the package.
2977 PACKAGE='icecast'
2978 VERSION='2.4.4'
2979
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE "$PACKAGE"
2983_ACEOF
2984
2985
2986cat >>confdefs.h <<_ACEOF
2987#define VERSION "$VERSION"
2988_ACEOF
2989
2990# Some tools Automake needs.
2991
2992ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2993
2994
2995AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2996
2997
2998AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2999
3000
3001AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3002
3003
3004MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3005
3006# For better backward compatibility.  To be removed once Automake 1.9.x
3007# dies out for good.  For more background, see:
3008# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3009# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3010mkdir_p='$(MKDIR_P)'
3011
3012# We need awk for the "check" target (and possibly the TAP driver).  The
3013# system "awk" is bad on some platforms.
3014# Always define AMTAR for backward compatibility.  Yes, it's still used
3015# in the wild :-(  We should find a proper way to deprecate it ...
3016AMTAR='$${TAR-tar}'
3017
3018
3019# We'll loop over all known methods to create a tar archive until one works.
3020_am_tools='gnutar  pax cpio none'
3021
3022am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3023
3024
3025
3026
3027
3028
3029# POSIX will say in a future version that running "rm -f" with no argument
3030# is OK; and we want to be able to make that assumption in our Makefile
3031# recipes.  So use an aggressive probe to check that the usage we want is
3032# actually supported "in the wild" to an acceptable degree.
3033# See automake bug#10828.
3034# To make any issue more visible, cause the running configure to be aborted
3035# by default if the 'rm' program in use doesn't match our expectations; the
3036# user can still override this though.
3037if rm -f && rm -fr && rm -rf; then : OK; else
3038  cat >&2 <<'END'
3039Oops!
3040
3041Your 'rm' program seems unable to run without file operands specified
3042on the command line, even when the '-f' option is present.  This is contrary
3043to the behaviour of most rm programs out there, and not conforming with
3044the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3045
3046Please tell bug-automake@gnu.org about your system, including the value
3047of your $PATH and any error possibly output before this message.  This
3048can help us improve future automake versions.
3049
3050END
3051  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3052    echo 'Configuration will proceed anyway, since you have set the' >&2
3053    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3054    echo >&2
3055  else
3056    cat >&2 <<'END'
3057Aborting the configuration process, to ensure you take notice of the issue.
3058
3059You can download and install GNU coreutils to get an 'rm' implementation
3060that behaves properly: <https://www.gnu.org/software/coreutils/>.
3061
3062If you want to complete the configuration process using your problematic
3063'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3064to "yes", and re-run configure.
3065
3066END
3067    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3068  fi
3069fi
3070
3071ac_config_headers="$ac_config_headers config.h"
3072
3073
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3075$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3076    # Check whether --enable-maintainer-mode was given.
3077if test "${enable_maintainer_mode+set}" = set; then :
3078  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3079else
3080  USE_MAINTAINER_MODE=no
3081fi
3082
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3084$as_echo "$USE_MAINTAINER_MODE" >&6; }
3085   if test $USE_MAINTAINER_MODE = yes; then
3086  MAINTAINER_MODE_TRUE=
3087  MAINTAINER_MODE_FALSE='#'
3088else
3089  MAINTAINER_MODE_TRUE='#'
3090  MAINTAINER_MODE_FALSE=
3091fi
3092
3093  MAINT=$MAINTAINER_MODE_TRUE
3094
3095
3096
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102if test -n "$ac_tool_prefix"; then
3103  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104set dummy ${ac_tool_prefix}gcc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_CC+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118    for ac_exec_ext in '' $ac_executable_extensions; do
3119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125  done
3126IFS=$as_save_IFS
3127
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133$as_echo "$CC" >&6; }
3134else
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136$as_echo "no" >&6; }
3137fi
3138
3139
3140fi
3141if test -z "$ac_cv_prog_CC"; then
3142  ac_ct_CC=$CC
3143  # Extract the first word of "gcc", so it can be a program name with args.
3144set dummy gcc; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if ${ac_cv_prog_ac_ct_CC+:} false; then :
3148  $as_echo_n "(cached) " >&6
3149else
3150  if test -n "$ac_ct_CC"; then
3151  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156  IFS=$as_save_IFS
3157  test -z "$as_dir" && as_dir=.
3158    for ac_exec_ext in '' $ac_executable_extensions; do
3159  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160    ac_cv_prog_ac_ct_CC="gcc"
3161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165  done
3166IFS=$as_save_IFS
3167
3168fi
3169fi
3170ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171if test -n "$ac_ct_CC"; then
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173$as_echo "$ac_ct_CC" >&6; }
3174else
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177fi
3178
3179  if test "x$ac_ct_CC" = x; then
3180    CC=""
3181  else
3182    case $cross_compiling:$ac_tool_warned in
3183yes:)
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186ac_tool_warned=yes ;;
3187esac
3188    CC=$ac_ct_CC
3189  fi
3190else
3191  CC="$ac_cv_prog_CC"
3192fi
3193
3194if test -z "$CC"; then
3195          if test -n "$ac_tool_prefix"; then
3196    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197set dummy ${ac_tool_prefix}cc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if ${ac_cv_prog_CC+:} false; then :
3201  $as_echo_n "(cached) " >&6
3202else
3203  if test -n "$CC"; then
3204  ac_cv_prog_CC="$CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211    for ac_exec_ext in '' $ac_executable_extensions; do
3212  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213    ac_cv_prog_CC="${ac_tool_prefix}cc"
3214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218  done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223CC=$ac_cv_prog_CC
3224if test -n "$CC"; then
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226$as_echo "$CC" >&6; }
3227else
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232
3233  fi
3234fi
3235if test -z "$CC"; then
3236  # Extract the first word of "cc", so it can be a program name with args.
3237set dummy cc; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_CC+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$CC"; then
3244  ac_cv_prog_CC="$CC" # Let the user override the test.
3245else
3246  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255       ac_prog_rejected=yes
3256       continue
3257     fi
3258    ac_cv_prog_CC="cc"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266if test $ac_prog_rejected = yes; then
3267  # We found a bogon in the path, so make sure we never use it.
3268  set dummy $ac_cv_prog_CC
3269  shift
3270  if test $# != 0; then
3271    # We chose a different compiler from the bogus one.
3272    # However, it has the same basename, so the bogon will be chosen
3273    # first if we set CC to just the basename; use the full file name.
3274    shift
3275    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3276  fi
3277fi
3278fi
3279fi
3280CC=$ac_cv_prog_CC
3281if test -n "$CC"; then
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283$as_echo "$CC" >&6; }
3284else
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287fi
3288
3289
3290fi
3291if test -z "$CC"; then
3292  if test -n "$ac_tool_prefix"; then
3293  for ac_prog in cl.exe
3294  do
3295    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298$as_echo_n "checking for $ac_word... " >&6; }
3299if ${ac_cv_prog_CC+:} false; then :
3300  $as_echo_n "(cached) " >&6
3301else
3302  if test -n "$CC"; then
3303  ac_cv_prog_CC="$CC" # Let the user override the test.
3304else
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322CC=$ac_cv_prog_CC
3323if test -n "$CC"; then
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325$as_echo "$CC" >&6; }
3326else
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329fi
3330
3331
3332    test -n "$CC" && break
3333  done
3334fi
3335if test -z "$CC"; then
3336  ac_ct_CC=$CC
3337  for ac_prog in cl.exe
3338do
3339  # Extract the first word of "$ac_prog", so it can be a program name with args.
3340set dummy $ac_prog; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344  $as_echo_n "(cached) " >&6
3345else
3346  if test -n "$ac_ct_CC"; then
3347  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354    for ac_exec_ext in '' $ac_executable_extensions; do
3355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_ac_ct_CC="$ac_prog"
3357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361  done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367if test -n "$ac_ct_CC"; then
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369$as_echo "$ac_ct_CC" >&6; }
3370else
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376  test -n "$ac_ct_CC" && break
3377done
3378
3379  if test "x$ac_ct_CC" = x; then
3380    CC=""
3381  else
3382    case $cross_compiling:$ac_tool_warned in
3383yes:)
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386ac_tool_warned=yes ;;
3387esac
3388    CC=$ac_ct_CC
3389  fi
3390fi
3391
3392fi
3393
3394
3395test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error $? "no acceptable C compiler found in \$PATH
3398See \`config.log' for more details" "$LINENO" 5; }
3399
3400# Provide some information about the compiler.
3401$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402set X $ac_compile
3403ac_compiler=$2
3404for ac_option in --version -v -V -qversion; do
3405  { { ac_try="$ac_compiler $ac_option >&5"
3406case "(($ac_try" in
3407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408  *) ac_try_echo=$ac_try;;
3409esac
3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411$as_echo "$ac_try_echo"; } >&5
3412  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3413  ac_status=$?
3414  if test -s conftest.err; then
3415    sed '10a\
3416... rest of stderr output deleted ...
3417         10q' conftest.err >conftest.er1
3418    cat conftest.er1 >&5
3419  fi
3420  rm -f conftest.er1 conftest.err
3421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422  test $ac_status = 0; }
3423done
3424
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427
3428int
3429main ()
3430{
3431
3432  ;
3433  return 0;
3434}
3435_ACEOF
3436ac_clean_files_save=$ac_clean_files
3437ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3438# Try to create an executable without -o first, disregard a.out.
3439# It will help us diagnose broken compilers, and finding out an intuition
3440# of exeext.
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3442$as_echo_n "checking whether the C compiler works... " >&6; }
3443ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3444
3445# The possible output files:
3446ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447
3448ac_rmfiles=
3449for ac_file in $ac_files
3450do
3451  case $ac_file in
3452    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3454  esac
3455done
3456rm -f $ac_rmfiles
3457
3458if { { ac_try="$ac_link_default"
3459case "(($ac_try" in
3460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461  *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465  (eval "$ac_link_default") 2>&5
3466  ac_status=$?
3467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468  test $ac_status = 0; }; then :
3469  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3470# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3471# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3472# so that the user can short-circuit this test for compilers unknown to
3473# Autoconf.
3474for ac_file in $ac_files ''
3475do
3476  test -f "$ac_file" || continue
3477  case $ac_file in
3478    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3479	;;
3480    [ab].out )
3481	# We found the default executable, but exeext='' is most
3482	# certainly right.
3483	break;;
3484    *.* )
3485	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3486	then :; else
3487	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488	fi
3489	# We set ac_cv_exeext here because the later test for it is not
3490	# safe: cross compilers may not add the suffix if given an `-o'
3491	# argument, so we may need to know it at that point already.
3492	# Even if this section looks crufty: it has the advantage of
3493	# actually working.
3494	break;;
3495    * )
3496	break;;
3497  esac
3498done
3499test "$ac_cv_exeext" = no && ac_cv_exeext=
3500
3501else
3502  ac_file=''
3503fi
3504if test -z "$ac_file"; then :
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507$as_echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512as_fn_error 77 "C compiler cannot create executables
3513See \`config.log' for more details" "$LINENO" 5; }
3514else
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516$as_echo "yes" >&6; }
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519$as_echo_n "checking for C compiler default output file name... " >&6; }
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3521$as_echo "$ac_file" >&6; }
3522ac_exeext=$ac_cv_exeext
3523
3524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3525ac_clean_files=$ac_clean_files_save
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3527$as_echo_n "checking for suffix of executables... " >&6; }
3528if { { ac_try="$ac_link"
3529case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534$as_echo "$ac_try_echo"; } >&5
3535  (eval "$ac_link") 2>&5
3536  ac_status=$?
3537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538  test $ac_status = 0; }; then :
3539  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3540# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3541# work properly (i.e., refer to `conftest.exe'), while it won't with
3542# `rm'.
3543for ac_file in conftest.exe conftest conftest.*; do
3544  test -f "$ac_file" || continue
3545  case $ac_file in
3546    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548	  break;;
3549    * ) break;;
3550  esac
3551done
3552else
3553  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3556See \`config.log' for more details" "$LINENO" 5; }
3557fi
3558rm -f conftest conftest$ac_cv_exeext
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3560$as_echo "$ac_cv_exeext" >&6; }
3561
3562rm -f conftest.$ac_ext
3563EXEEXT=$ac_cv_exeext
3564ac_exeext=$EXEEXT
3565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567#include <stdio.h>
3568int
3569main ()
3570{
3571FILE *f = fopen ("conftest.out", "w");
3572 return ferror (f) || fclose (f) != 0;
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578ac_clean_files="$ac_clean_files conftest.out"
3579# Check that the compiler produces executables we can run.  If not, either
3580# the compiler is broken, or we cross compile.
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3582$as_echo_n "checking whether we are cross compiling... " >&6; }
3583if test "$cross_compiling" != yes; then
3584  { { ac_try="$ac_link"
3585case "(($ac_try" in
3586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587  *) ac_try_echo=$ac_try;;
3588esac
3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590$as_echo "$ac_try_echo"; } >&5
3591  (eval "$ac_link") 2>&5
3592  ac_status=$?
3593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594  test $ac_status = 0; }
3595  if { ac_try='./conftest$ac_cv_exeext'
3596  { { case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602  (eval "$ac_try") 2>&5
3603  ac_status=$?
3604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605  test $ac_status = 0; }; }; then
3606    cross_compiling=no
3607  else
3608    if test "$cross_compiling" = maybe; then
3609	cross_compiling=yes
3610    else
3611	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613as_fn_error $? "cannot run C compiled programs.
3614If you meant to cross compile, use \`--host'.
3615See \`config.log' for more details" "$LINENO" 5; }
3616    fi
3617  fi
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620$as_echo "$cross_compiling" >&6; }
3621
3622rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3623ac_clean_files=$ac_clean_files_save
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625$as_echo_n "checking for suffix of object files... " >&6; }
3626if ${ac_cv_objext+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631
3632int
3633main ()
3634{
3635
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640rm -f conftest.o conftest.obj
3641if { { ac_try="$ac_compile"
3642case "(($ac_try" in
3643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644  *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647$as_echo "$ac_try_echo"; } >&5
3648  (eval "$ac_compile") 2>&5
3649  ac_status=$?
3650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651  test $ac_status = 0; }; then :
3652  for ac_file in conftest.o conftest.obj conftest.*; do
3653  test -f "$ac_file" || continue;
3654  case $ac_file in
3655    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657       break;;
3658  esac
3659done
3660else
3661  $as_echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error $? "cannot compute suffix of object files: cannot compile
3667See \`config.log' for more details" "$LINENO" 5; }
3668fi
3669rm -f conftest.$ac_cv_objext conftest.$ac_ext
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672$as_echo "$ac_cv_objext" >&6; }
3673OBJEXT=$ac_cv_objext
3674ac_objext=$OBJEXT
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677if ${ac_cv_c_compiler_gnu+:} false; then :
3678  $as_echo_n "(cached) " >&6
3679else
3680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681/* end confdefs.h.  */
3682
3683int
3684main ()
3685{
3686#ifndef __GNUC__
3687       choke me
3688#endif
3689
3690  ;
3691  return 0;
3692}
3693_ACEOF
3694if ac_fn_c_try_compile "$LINENO"; then :
3695  ac_compiler_gnu=yes
3696else
3697  ac_compiler_gnu=no
3698fi
3699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705if test $ac_compiler_gnu = yes; then
3706  GCC=yes
3707else
3708  GCC=
3709fi
3710ac_test_CFLAGS=${CFLAGS+set}
3711ac_save_CFLAGS=$CFLAGS
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713$as_echo_n "checking whether $CC accepts -g... " >&6; }
3714if ${ac_cv_prog_cc_g+:} false; then :
3715  $as_echo_n "(cached) " >&6
3716else
3717  ac_save_c_werror_flag=$ac_c_werror_flag
3718   ac_c_werror_flag=yes
3719   ac_cv_prog_cc_g=no
3720   CFLAGS="-g"
3721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732if ac_fn_c_try_compile "$LINENO"; then :
3733  ac_cv_prog_cc_g=yes
3734else
3735  CFLAGS=""
3736      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h.  */
3738
3739int
3740main ()
3741{
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"; then :
3748
3749else
3750  ac_c_werror_flag=$ac_save_c_werror_flag
3751	 CFLAGS="-g"
3752	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754
3755int
3756main ()
3757{
3758
3759  ;
3760  return 0;
3761}
3762_ACEOF
3763if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_cv_prog_cc_g=yes
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771   ac_c_werror_flag=$ac_save_c_werror_flag
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774$as_echo "$ac_cv_prog_cc_g" >&6; }
3775if test "$ac_test_CFLAGS" = set; then
3776  CFLAGS=$ac_save_CFLAGS
3777elif test $ac_cv_prog_cc_g = yes; then
3778  if test "$GCC" = yes; then
3779    CFLAGS="-g -O2"
3780  else
3781    CFLAGS="-g"
3782  fi
3783else
3784  if test "$GCC" = yes; then
3785    CFLAGS="-O2"
3786  else
3787    CFLAGS=
3788  fi
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792if ${ac_cv_prog_cc_c89+:} false; then :
3793  $as_echo_n "(cached) " >&6
3794else
3795  ac_cv_prog_cc_c89=no
3796ac_save_CC=$CC
3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799#include <stdarg.h>
3800#include <stdio.h>
3801struct stat;
3802/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3803struct buf { int x; };
3804FILE * (*rcsopen) (struct buf *, struct stat *, int);
3805static char *e (p, i)
3806     char **p;
3807     int i;
3808{
3809  return p[i];
3810}
3811static char *f (char * (*g) (char **, int), char **p, ...)
3812{
3813  char *s;
3814  va_list v;
3815  va_start (v,p);
3816  s = g (p, va_arg (v,int));
3817  va_end (v);
3818  return s;
3819}
3820
3821/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3822   function prototypes and stuff, but not '\xHH' hex character constants.
3823   These don't provoke an error unfortunately, instead are silently treated
3824   as 'x'.  The following induces an error, until -std is added to get
3825   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3826   array size at least.  It's necessary to write '\x00'==0 to get something
3827   that's true only with -std.  */
3828int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3829
3830/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3831   inside strings and character constants.  */
3832#define FOO(x) 'x'
3833int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3834
3835int test (int i, double x);
3836struct s1 {int (*f) (int a);};
3837struct s2 {int (*f) (double a);};
3838int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3839int argc;
3840char **argv;
3841int
3842main ()
3843{
3844return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3850	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851do
3852  CC="$ac_save_CC $ac_arg"
3853  if ac_fn_c_try_compile "$LINENO"; then :
3854  ac_cv_prog_cc_c89=$ac_arg
3855fi
3856rm -f core conftest.err conftest.$ac_objext
3857  test "x$ac_cv_prog_cc_c89" != "xno" && break
3858done
3859rm -f conftest.$ac_ext
3860CC=$ac_save_CC
3861
3862fi
3863# AC_CACHE_VAL
3864case "x$ac_cv_prog_cc_c89" in
3865  x)
3866    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3867$as_echo "none needed" >&6; } ;;
3868  xno)
3869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3870$as_echo "unsupported" >&6; } ;;
3871  *)
3872    CC="$CC $ac_cv_prog_cc_c89"
3873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3874$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3875esac
3876if test "x$ac_cv_prog_cc_c89" != xno; then :
3877
3878fi
3879
3880ac_ext=c
3881ac_cpp='$CPP $CPPFLAGS'
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885
3886ac_ext=c
3887ac_cpp='$CPP $CPPFLAGS'
3888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3892$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3893if ${am_cv_prog_cc_c_o+:} false; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898
3899int
3900main ()
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907  # Make sure it works both with $CC and with simple cc.
3908  # Following AC_PROG_CC_C_O, we do the test twice because some
3909  # compilers refuse to overwrite an existing .o file with -o,
3910  # though they will create one.
3911  am_cv_prog_cc_c_o=yes
3912  for am_i in 1 2; do
3913    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3914   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3915   ac_status=$?
3916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917   (exit $ac_status); } \
3918         && test -f conftest2.$ac_objext; then
3919      : OK
3920    else
3921      am_cv_prog_cc_c_o=no
3922      break
3923    fi
3924  done
3925  rm -f core conftest*
3926  unset am_i
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3929$as_echo "$am_cv_prog_cc_c_o" >&6; }
3930if test "$am_cv_prog_cc_c_o" != yes; then
3931   # Losing compiler, so override with the script.
3932   # FIXME: It is wrong to rewrite CC.
3933   # But if we don't then we get into trouble of one sort or another.
3934   # A longer-term fix would be to have automake use am__CC in this case,
3935   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3936   CC="$am_aux_dir/compile $CC"
3937fi
3938ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944DEPDIR="${am__leading_dot}deps"
3945
3946ac_config_commands="$ac_config_commands depfiles"
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3949$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3950cat > confinc.mk << 'END'
3951am__doit:
3952	@echo this is the am__doit target >confinc.out
3953.PHONY: am__doit
3954END
3955am__include="#"
3956am__quote=
3957# BSD make does it like this.
3958echo '.include "confinc.mk" # ignored' > confmf.BSD
3959# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3960echo 'include confinc.mk # ignored' > confmf.GNU
3961_am_result=no
3962for s in GNU BSD; do
3963  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3964   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }
3968  case $?:`cat confinc.out 2>/dev/null` in #(
3969  '0:this is the am__doit target') :
3970    case $s in #(
3971  BSD) :
3972    am__include='.include' am__quote='"' ;; #(
3973  *) :
3974    am__include='include' am__quote='' ;;
3975esac ;; #(
3976  *) :
3977     ;;
3978esac
3979  if test "$am__include" != "#"; then
3980    _am_result="yes ($s style)"
3981    break
3982  fi
3983done
3984rm -f confinc.* confmf.*
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3986$as_echo "${_am_result}" >&6; }
3987
3988# Check whether --enable-dependency-tracking was given.
3989if test "${enable_dependency_tracking+set}" = set; then :
3990  enableval=$enable_dependency_tracking;
3991fi
3992
3993if test "x$enable_dependency_tracking" != xno; then
3994  am_depcomp="$ac_aux_dir/depcomp"
3995  AMDEPBACKSLASH='\'
3996  am__nodep='_no'
3997fi
3998 if test "x$enable_dependency_tracking" != xno; then
3999  AMDEP_TRUE=
4000  AMDEP_FALSE='#'
4001else
4002  AMDEP_TRUE='#'
4003  AMDEP_FALSE=
4004fi
4005
4006
4007
4008depcc="$CC"   am_compiler_list=
4009
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4011$as_echo_n "checking dependency style of $depcc... " >&6; }
4012if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4013  $as_echo_n "(cached) " >&6
4014else
4015  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016  # We make a subdir and do the tests there.  Otherwise we can end up
4017  # making bogus files that we don't know about and never remove.  For
4018  # instance it was reported that on HP-UX the gcc test will end up
4019  # making a dummy file named 'D' -- because '-MD' means "put the output
4020  # in D".
4021  rm -rf conftest.dir
4022  mkdir conftest.dir
4023  # Copy depcomp to subdir because otherwise we won't find it if we're
4024  # using a relative directory.
4025  cp "$am_depcomp" conftest.dir
4026  cd conftest.dir
4027  # We will build objects and dependencies in a subdirectory because
4028  # it helps to detect inapplicable dependency modes.  For instance
4029  # both Tru64's cc and ICC support -MD to output dependencies as a
4030  # side effect of compilation, but ICC will put the dependencies in
4031  # the current directory while Tru64 will put them in the object
4032  # directory.
4033  mkdir sub
4034
4035  am_cv_CC_dependencies_compiler_type=none
4036  if test "$am_compiler_list" = ""; then
4037     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4038  fi
4039  am__universal=false
4040  case " $depcc " in #(
4041     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4042     esac
4043
4044  for depmode in $am_compiler_list; do
4045    # Setup a source with many dependencies, because some compilers
4046    # like to wrap large dependency lists on column 80 (with \), and
4047    # we should not choose a depcomp mode which is confused by this.
4048    #
4049    # We need to recreate these files for each test, as the compiler may
4050    # overwrite some of them when testing with obscure command lines.
4051    # This happens at least with the AIX C compiler.
4052    : > sub/conftest.c
4053    for i in 1 2 3 4 5 6; do
4054      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4055      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4056      # Solaris 10 /bin/sh.
4057      echo '/* dummy */' > sub/conftst$i.h
4058    done
4059    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4060
4061    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4062    # mode.  It turns out that the SunPro C++ compiler does not properly
4063    # handle '-M -o', and we need to detect this.  Also, some Intel
4064    # versions had trouble with output in subdirs.
4065    am__obj=sub/conftest.${OBJEXT-o}
4066    am__minus_obj="-o $am__obj"
4067    case $depmode in
4068    gcc)
4069      # This depmode causes a compiler race in universal mode.
4070      test "$am__universal" = false || continue
4071      ;;
4072    nosideeffect)
4073      # After this tag, mechanisms are not by side-effect, so they'll
4074      # only be used when explicitly requested.
4075      if test "x$enable_dependency_tracking" = xyes; then
4076	continue
4077      else
4078	break
4079      fi
4080      ;;
4081    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4082      # This compiler won't grok '-c -o', but also, the minuso test has
4083      # not run yet.  These depmodes are late enough in the game, and
4084      # so weak that their functioning should not be impacted.
4085      am__obj=conftest.${OBJEXT-o}
4086      am__minus_obj=
4087      ;;
4088    none) break ;;
4089    esac
4090    if depmode=$depmode \
4091       source=sub/conftest.c object=$am__obj \
4092       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4093       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4094         >/dev/null 2>conftest.err &&
4095       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4096       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4097       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4098       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4099      # icc doesn't choke on unknown options, it will just issue warnings
4100      # or remarks (even with -Werror).  So we grep stderr for any message
4101      # that says an option was ignored or not supported.
4102      # When given -MP, icc 7.0 and 7.1 complain thusly:
4103      #   icc: Command line warning: ignoring option '-M'; no argument required
4104      # The diagnosis changed in icc 8.0:
4105      #   icc: Command line remark: option '-MP' not supported
4106      if (grep 'ignoring option' conftest.err ||
4107          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4108        am_cv_CC_dependencies_compiler_type=$depmode
4109        break
4110      fi
4111    fi
4112  done
4113
4114  cd ..
4115  rm -rf conftest.dir
4116else
4117  am_cv_CC_dependencies_compiler_type=none
4118fi
4119
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4124
4125 if
4126  test "x$enable_dependency_tracking" != xno \
4127  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4128  am__fastdepCC_TRUE=
4129  am__fastdepCC_FALSE='#'
4130else
4131  am__fastdepCC_TRUE='#'
4132  am__fastdepCC_FALSE=
4133fi
4134
4135
4136# Make sure we can run config.sub.
4137$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4138  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4139
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4141$as_echo_n "checking build system type... " >&6; }
4142if ${ac_cv_build+:} false; then :
4143  $as_echo_n "(cached) " >&6
4144else
4145  ac_build_alias=$build_alias
4146test "x$ac_build_alias" = x &&
4147  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4148test "x$ac_build_alias" = x &&
4149  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4150ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4151  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4155$as_echo "$ac_cv_build" >&6; }
4156case $ac_cv_build in
4157*-*-*) ;;
4158*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4159esac
4160build=$ac_cv_build
4161ac_save_IFS=$IFS; IFS='-'
4162set x $ac_cv_build
4163shift
4164build_cpu=$1
4165build_vendor=$2
4166shift; shift
4167# Remember, the first character of IFS is used to create $*,
4168# except with old shells:
4169build_os=$*
4170IFS=$ac_save_IFS
4171case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4172
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4175$as_echo_n "checking host system type... " >&6; }
4176if ${ac_cv_host+:} false; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  if test "x$host_alias" = x; then
4180  ac_cv_host=$ac_cv_build
4181else
4182  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4183    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4184fi
4185
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4188$as_echo "$ac_cv_host" >&6; }
4189case $ac_cv_host in
4190*-*-*) ;;
4191*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4192esac
4193host=$ac_cv_host
4194ac_save_IFS=$IFS; IFS='-'
4195set x $ac_cv_host
4196shift
4197host_cpu=$1
4198host_vendor=$2
4199shift; shift
4200# Remember, the first character of IFS is used to create $*,
4201# except with old shells:
4202host_os=$*
4203IFS=$ac_save_IFS
4204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4205
4206
4207case `pwd` in
4208  *\ * | *\	*)
4209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4210$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4211esac
4212
4213
4214
4215macro_version='2.4.6'
4216macro_revision='2.4.6'
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230ltmain=$ac_aux_dir/ltmain.sh
4231
4232# Backslashify metacharacters that are still active within
4233# double-quoted strings.
4234sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4235
4236# Same as above, but do not quote variable references.
4237double_quote_subst='s/\(["`\\]\)/\\\1/g'
4238
4239# Sed substitution to delay expansion of an escaped shell variable in a
4240# double_quote_subst'ed string.
4241delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4242
4243# Sed substitution to delay expansion of an escaped single quote.
4244delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4245
4246# Sed substitution to avoid accidental globbing in evaled expressions
4247no_glob_subst='s/\*/\\\*/g'
4248
4249ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4250ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4251ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4254$as_echo_n "checking how to print strings... " >&6; }
4255# Test print first, because it will be a builtin if present.
4256if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4257   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4258  ECHO='print -r --'
4259elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4260  ECHO='printf %s\n'
4261else
4262  # Use this function as a fallback that always works.
4263  func_fallback_echo ()
4264  {
4265    eval 'cat <<_LTECHO_EOF
4266$1
4267_LTECHO_EOF'
4268  }
4269  ECHO='func_fallback_echo'
4270fi
4271
4272# func_echo_all arg...
4273# Invoke $ECHO with all args, space-separated.
4274func_echo_all ()
4275{
4276    $ECHO ""
4277}
4278
4279case $ECHO in
4280  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4281$as_echo "printf" >&6; } ;;
4282  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4283$as_echo "print -r" >&6; } ;;
4284  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4285$as_echo "cat" >&6; } ;;
4286esac
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4302$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4303if ${ac_cv_path_SED+:} false; then :
4304  $as_echo_n "(cached) " >&6
4305else
4306            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4307     for ac_i in 1 2 3 4 5 6 7; do
4308       ac_script="$ac_script$as_nl$ac_script"
4309     done
4310     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4311     { ac_script=; unset ac_script;}
4312     if test -z "$SED"; then
4313  ac_path_SED_found=false
4314  # Loop through the user's path and test for each of PROGNAME-LIST
4315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318  IFS=$as_save_IFS
4319  test -z "$as_dir" && as_dir=.
4320    for ac_prog in sed gsed; do
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4323      as_fn_executable_p "$ac_path_SED" || continue
4324# Check for GNU ac_path_SED and select it if it is found.
4325  # Check for GNU $ac_path_SED
4326case `"$ac_path_SED" --version 2>&1` in
4327*GNU*)
4328  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4329*)
4330  ac_count=0
4331  $as_echo_n 0123456789 >"conftest.in"
4332  while :
4333  do
4334    cat "conftest.in" "conftest.in" >"conftest.tmp"
4335    mv "conftest.tmp" "conftest.in"
4336    cp "conftest.in" "conftest.nl"
4337    $as_echo '' >> "conftest.nl"
4338    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340    as_fn_arith $ac_count + 1 && ac_count=$as_val
4341    if test $ac_count -gt ${ac_path_SED_max-0}; then
4342      # Best one so far, save it but keep looking for a better one
4343      ac_cv_path_SED="$ac_path_SED"
4344      ac_path_SED_max=$ac_count
4345    fi
4346    # 10*(2^10) chars as input seems more than enough
4347    test $ac_count -gt 10 && break
4348  done
4349  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350esac
4351
4352      $ac_path_SED_found && break 3
4353    done
4354  done
4355  done
4356IFS=$as_save_IFS
4357  if test -z "$ac_cv_path_SED"; then
4358    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4359  fi
4360else
4361  ac_cv_path_SED=$SED
4362fi
4363
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4366$as_echo "$ac_cv_path_SED" >&6; }
4367 SED="$ac_cv_path_SED"
4368  rm -f conftest.sed
4369
4370test -z "$SED" && SED=sed
4371Xsed="$SED -e 1s/^X//"
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4384$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4385if ${ac_cv_path_GREP+:} false; then :
4386  $as_echo_n "(cached) " >&6
4387else
4388  if test -z "$GREP"; then
4389  ac_path_GREP_found=false
4390  # Loop through the user's path and test for each of PROGNAME-LIST
4391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393do
4394  IFS=$as_save_IFS
4395  test -z "$as_dir" && as_dir=.
4396    for ac_prog in grep ggrep; do
4397    for ac_exec_ext in '' $ac_executable_extensions; do
4398      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399      as_fn_executable_p "$ac_path_GREP" || continue
4400# Check for GNU ac_path_GREP and select it if it is found.
4401  # Check for GNU $ac_path_GREP
4402case `"$ac_path_GREP" --version 2>&1` in
4403*GNU*)
4404  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4405*)
4406  ac_count=0
4407  $as_echo_n 0123456789 >"conftest.in"
4408  while :
4409  do
4410    cat "conftest.in" "conftest.in" >"conftest.tmp"
4411    mv "conftest.tmp" "conftest.in"
4412    cp "conftest.in" "conftest.nl"
4413    $as_echo 'GREP' >> "conftest.nl"
4414    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416    as_fn_arith $ac_count + 1 && ac_count=$as_val
4417    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418      # Best one so far, save it but keep looking for a better one
4419      ac_cv_path_GREP="$ac_path_GREP"
4420      ac_path_GREP_max=$ac_count
4421    fi
4422    # 10*(2^10) chars as input seems more than enough
4423    test $ac_count -gt 10 && break
4424  done
4425  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426esac
4427
4428      $ac_path_GREP_found && break 3
4429    done
4430  done
4431  done
4432IFS=$as_save_IFS
4433  if test -z "$ac_cv_path_GREP"; then
4434    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435  fi
4436else
4437  ac_cv_path_GREP=$GREP
4438fi
4439
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4442$as_echo "$ac_cv_path_GREP" >&6; }
4443 GREP="$ac_cv_path_GREP"
4444
4445
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4447$as_echo_n "checking for egrep... " >&6; }
4448if ${ac_cv_path_EGREP+:} false; then :
4449  $as_echo_n "(cached) " >&6
4450else
4451  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452   then ac_cv_path_EGREP="$GREP -E"
4453   else
4454     if test -z "$EGREP"; then
4455  ac_path_EGREP_found=false
4456  # Loop through the user's path and test for each of PROGNAME-LIST
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_prog in egrep; do
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465      as_fn_executable_p "$ac_path_EGREP" || continue
4466# Check for GNU ac_path_EGREP and select it if it is found.
4467  # Check for GNU $ac_path_EGREP
4468case `"$ac_path_EGREP" --version 2>&1` in
4469*GNU*)
4470  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4471*)
4472  ac_count=0
4473  $as_echo_n 0123456789 >"conftest.in"
4474  while :
4475  do
4476    cat "conftest.in" "conftest.in" >"conftest.tmp"
4477    mv "conftest.tmp" "conftest.in"
4478    cp "conftest.in" "conftest.nl"
4479    $as_echo 'EGREP' >> "conftest.nl"
4480    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482    as_fn_arith $ac_count + 1 && ac_count=$as_val
4483    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484      # Best one so far, save it but keep looking for a better one
4485      ac_cv_path_EGREP="$ac_path_EGREP"
4486      ac_path_EGREP_max=$ac_count
4487    fi
4488    # 10*(2^10) chars as input seems more than enough
4489    test $ac_count -gt 10 && break
4490  done
4491  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494      $ac_path_EGREP_found && break 3
4495    done
4496  done
4497  done
4498IFS=$as_save_IFS
4499  if test -z "$ac_cv_path_EGREP"; then
4500    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501  fi
4502else
4503  ac_cv_path_EGREP=$EGREP
4504fi
4505
4506   fi
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4509$as_echo "$ac_cv_path_EGREP" >&6; }
4510 EGREP="$ac_cv_path_EGREP"
4511
4512
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4514$as_echo_n "checking for fgrep... " >&6; }
4515if ${ac_cv_path_FGREP+:} false; then :
4516  $as_echo_n "(cached) " >&6
4517else
4518  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4519   then ac_cv_path_FGREP="$GREP -F"
4520   else
4521     if test -z "$FGREP"; then
4522  ac_path_FGREP_found=false
4523  # Loop through the user's path and test for each of PROGNAME-LIST
4524  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529    for ac_prog in fgrep; do
4530    for ac_exec_ext in '' $ac_executable_extensions; do
4531      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4532      as_fn_executable_p "$ac_path_FGREP" || continue
4533# Check for GNU ac_path_FGREP and select it if it is found.
4534  # Check for GNU $ac_path_FGREP
4535case `"$ac_path_FGREP" --version 2>&1` in
4536*GNU*)
4537  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4538*)
4539  ac_count=0
4540  $as_echo_n 0123456789 >"conftest.in"
4541  while :
4542  do
4543    cat "conftest.in" "conftest.in" >"conftest.tmp"
4544    mv "conftest.tmp" "conftest.in"
4545    cp "conftest.in" "conftest.nl"
4546    $as_echo 'FGREP' >> "conftest.nl"
4547    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549    as_fn_arith $ac_count + 1 && ac_count=$as_val
4550    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4551      # Best one so far, save it but keep looking for a better one
4552      ac_cv_path_FGREP="$ac_path_FGREP"
4553      ac_path_FGREP_max=$ac_count
4554    fi
4555    # 10*(2^10) chars as input seems more than enough
4556    test $ac_count -gt 10 && break
4557  done
4558  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559esac
4560
4561      $ac_path_FGREP_found && break 3
4562    done
4563  done
4564  done
4565IFS=$as_save_IFS
4566  if test -z "$ac_cv_path_FGREP"; then
4567    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568  fi
4569else
4570  ac_cv_path_FGREP=$FGREP
4571fi
4572
4573   fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4576$as_echo "$ac_cv_path_FGREP" >&6; }
4577 FGREP="$ac_cv_path_FGREP"
4578
4579
4580test -z "$GREP" && GREP=grep
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600# Check whether --with-gnu-ld was given.
4601if test "${with_gnu_ld+set}" = set; then :
4602  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4603else
4604  with_gnu_ld=no
4605fi
4606
4607ac_prog=ld
4608if test yes = "$GCC"; then
4609  # Check if gcc -print-prog-name=ld gives a path.
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4611$as_echo_n "checking for ld used by $CC... " >&6; }
4612  case $host in
4613  *-*-mingw*)
4614    # gcc leaves a trailing carriage return, which upsets mingw
4615    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4616  *)
4617    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4618  esac
4619  case $ac_prog in
4620    # Accept absolute paths.
4621    [\\/]* | ?:[\\/]*)
4622      re_direlt='/[^/][^/]*/\.\./'
4623      # Canonicalize the pathname of ld
4624      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4625      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4626	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4627      done
4628      test -z "$LD" && LD=$ac_prog
4629      ;;
4630  "")
4631    # If it fails, then pretend we aren't using GCC.
4632    ac_prog=ld
4633    ;;
4634  *)
4635    # If it is relative, then search for the first ld in PATH.
4636    with_gnu_ld=unknown
4637    ;;
4638  esac
4639elif test yes = "$with_gnu_ld"; then
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4641$as_echo_n "checking for GNU ld... " >&6; }
4642else
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4644$as_echo_n "checking for non-GNU ld... " >&6; }
4645fi
4646if ${lt_cv_path_LD+:} false; then :
4647  $as_echo_n "(cached) " >&6
4648else
4649  if test -z "$LD"; then
4650  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4651  for ac_dir in $PATH; do
4652    IFS=$lt_save_ifs
4653    test -z "$ac_dir" && ac_dir=.
4654    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4655      lt_cv_path_LD=$ac_dir/$ac_prog
4656      # Check to see if the program is GNU ld.  I'd rather use --version,
4657      # but apparently some variants of GNU ld only accept -v.
4658      # Break only if it was the GNU/non-GNU ld that we prefer.
4659      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4660      *GNU* | *'with BFD'*)
4661	test no != "$with_gnu_ld" && break
4662	;;
4663      *)
4664	test yes != "$with_gnu_ld" && break
4665	;;
4666      esac
4667    fi
4668  done
4669  IFS=$lt_save_ifs
4670else
4671  lt_cv_path_LD=$LD # Let the user override the test with a path.
4672fi
4673fi
4674
4675LD=$lt_cv_path_LD
4676if test -n "$LD"; then
4677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4678$as_echo "$LD" >&6; }
4679else
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4685$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4686if ${lt_cv_prog_gnu_ld+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4690case `$LD -v 2>&1 </dev/null` in
4691*GNU* | *'with BFD'*)
4692  lt_cv_prog_gnu_ld=yes
4693  ;;
4694*)
4695  lt_cv_prog_gnu_ld=no
4696  ;;
4697esac
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4700$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4701with_gnu_ld=$lt_cv_prog_gnu_ld
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4712$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4713if ${lt_cv_path_NM+:} false; then :
4714  $as_echo_n "(cached) " >&6
4715else
4716  if test -n "$NM"; then
4717  # Let the user override the test.
4718  lt_cv_path_NM=$NM
4719else
4720  lt_nm_to_check=${ac_tool_prefix}nm
4721  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4722    lt_nm_to_check="$lt_nm_to_check nm"
4723  fi
4724  for lt_tmp_nm in $lt_nm_to_check; do
4725    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4726    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4727      IFS=$lt_save_ifs
4728      test -z "$ac_dir" && ac_dir=.
4729      tmp_nm=$ac_dir/$lt_tmp_nm
4730      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4731	# Check to see if the nm accepts a BSD-compat flag.
4732	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4733	#   nm: unknown option "B" ignored
4734	# Tru64's nm complains that /dev/null is an invalid object file
4735	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4736	case $build_os in
4737	mingw*) lt_bad_file=conftest.nm/nofile ;;
4738	*) lt_bad_file=/dev/null ;;
4739	esac
4740	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4741	*$lt_bad_file* | *'Invalid file or object type'*)
4742	  lt_cv_path_NM="$tmp_nm -B"
4743	  break 2
4744	  ;;
4745	*)
4746	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4747	  */dev/null*)
4748	    lt_cv_path_NM="$tmp_nm -p"
4749	    break 2
4750	    ;;
4751	  *)
4752	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4753	    continue # so that we can try to find one that supports BSD flags
4754	    ;;
4755	  esac
4756	  ;;
4757	esac
4758      fi
4759    done
4760    IFS=$lt_save_ifs
4761  done
4762  : ${lt_cv_path_NM=no}
4763fi
4764fi
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4766$as_echo "$lt_cv_path_NM" >&6; }
4767if test no != "$lt_cv_path_NM"; then
4768  NM=$lt_cv_path_NM
4769else
4770  # Didn't find any BSD compatible name lister, look for dumpbin.
4771  if test -n "$DUMPBIN"; then :
4772    # Let the user override the test.
4773  else
4774    if test -n "$ac_tool_prefix"; then
4775  for ac_prog in dumpbin "link -dump"
4776  do
4777    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4778set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if ${ac_cv_prog_DUMPBIN+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  if test -n "$DUMPBIN"; then
4785  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804DUMPBIN=$ac_cv_prog_DUMPBIN
4805if test -n "$DUMPBIN"; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4807$as_echo "$DUMPBIN" >&6; }
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813
4814    test -n "$DUMPBIN" && break
4815  done
4816fi
4817if test -z "$DUMPBIN"; then
4818  ac_ct_DUMPBIN=$DUMPBIN
4819  for ac_prog in dumpbin "link -dump"
4820do
4821  # Extract the first word of "$ac_prog", so it can be a program name with args.
4822set dummy $ac_prog; ac_word=$2
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  if test -n "$ac_ct_DUMPBIN"; then
4829  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4849if test -n "$ac_ct_DUMPBIN"; then
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4851$as_echo "$ac_ct_DUMPBIN" >&6; }
4852else
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858  test -n "$ac_ct_DUMPBIN" && break
4859done
4860
4861  if test "x$ac_ct_DUMPBIN" = x; then
4862    DUMPBIN=":"
4863  else
4864    case $cross_compiling:$ac_tool_warned in
4865yes:)
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4868ac_tool_warned=yes ;;
4869esac
4870    DUMPBIN=$ac_ct_DUMPBIN
4871  fi
4872fi
4873
4874    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4875    *COFF*)
4876      DUMPBIN="$DUMPBIN -symbols -headers"
4877      ;;
4878    *)
4879      DUMPBIN=:
4880      ;;
4881    esac
4882  fi
4883
4884  if test : != "$DUMPBIN"; then
4885    NM=$DUMPBIN
4886  fi
4887fi
4888test -z "$NM" && NM=nm
4889
4890
4891
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4896$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4897if ${lt_cv_nm_interface+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  lt_cv_nm_interface="BSD nm"
4901  echo "int some_variable = 0;" > conftest.$ac_ext
4902  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4903  (eval "$ac_compile" 2>conftest.err)
4904  cat conftest.err >&5
4905  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4906  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4907  cat conftest.err >&5
4908  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4909  cat conftest.out >&5
4910  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4911    lt_cv_nm_interface="MS dumpbin"
4912  fi
4913  rm -f conftest*
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4916$as_echo "$lt_cv_nm_interface" >&6; }
4917
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4919$as_echo_n "checking whether ln -s works... " >&6; }
4920LN_S=$as_ln_s
4921if test "$LN_S" = "ln -s"; then
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4923$as_echo "yes" >&6; }
4924else
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4926$as_echo "no, using $LN_S" >&6; }
4927fi
4928
4929# find the maximum length of command line arguments
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4931$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4932if ${lt_cv_sys_max_cmd_len+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935    i=0
4936  teststring=ABCD
4937
4938  case $build_os in
4939  msdosdjgpp*)
4940    # On DJGPP, this test can blow up pretty badly due to problems in libc
4941    # (any single argument exceeding 2000 bytes causes a buffer overrun
4942    # during glob expansion).  Even if it were fixed, the result of this
4943    # check would be larger than it should be.
4944    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4945    ;;
4946
4947  gnu*)
4948    # Under GNU Hurd, this test is not required because there is
4949    # no limit to the length of command line arguments.
4950    # Libtool will interpret -1 as no limit whatsoever
4951    lt_cv_sys_max_cmd_len=-1;
4952    ;;
4953
4954  cygwin* | mingw* | cegcc*)
4955    # On Win9x/ME, this test blows up -- it succeeds, but takes
4956    # about 5 minutes as the teststring grows exponentially.
4957    # Worse, since 9x/ME are not pre-emptively multitasking,
4958    # you end up with a "frozen" computer, even though with patience
4959    # the test eventually succeeds (with a max line length of 256k).
4960    # Instead, let's just punt: use the minimum linelength reported by
4961    # all of the supported platforms: 8192 (on NT/2K/XP).
4962    lt_cv_sys_max_cmd_len=8192;
4963    ;;
4964
4965  mint*)
4966    # On MiNT this can take a long time and run out of memory.
4967    lt_cv_sys_max_cmd_len=8192;
4968    ;;
4969
4970  amigaos*)
4971    # On AmigaOS with pdksh, this test takes hours, literally.
4972    # So we just punt and use a minimum line length of 8192.
4973    lt_cv_sys_max_cmd_len=8192;
4974    ;;
4975
4976  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4977    # This has been around since 386BSD, at least.  Likely further.
4978    if test -x /sbin/sysctl; then
4979      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4980    elif test -x /usr/sbin/sysctl; then
4981      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4982    else
4983      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4984    fi
4985    # And add a safety zone
4986    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4987    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4988    ;;
4989
4990  interix*)
4991    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4992    lt_cv_sys_max_cmd_len=196608
4993    ;;
4994
4995  os2*)
4996    # The test takes a long time on OS/2.
4997    lt_cv_sys_max_cmd_len=8192
4998    ;;
4999
5000  osf*)
5001    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5002    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5003    # nice to cause kernel panics so lets avoid the loop below.
5004    # First set a reasonable default.
5005    lt_cv_sys_max_cmd_len=16384
5006    #
5007    if test -x /sbin/sysconfig; then
5008      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5009        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5010      esac
5011    fi
5012    ;;
5013  sco3.2v5*)
5014    lt_cv_sys_max_cmd_len=102400
5015    ;;
5016  sysv5* | sco5v6* | sysv4.2uw2*)
5017    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5018    if test -n "$kargmax"; then
5019      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5020    else
5021      lt_cv_sys_max_cmd_len=32768
5022    fi
5023    ;;
5024  *)
5025    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5026    if test -n "$lt_cv_sys_max_cmd_len" && \
5027       test undefined != "$lt_cv_sys_max_cmd_len"; then
5028      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5029      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5030    else
5031      # Make teststring a little bigger before we do anything with it.
5032      # a 1K string should be a reasonable start.
5033      for i in 1 2 3 4 5 6 7 8; do
5034        teststring=$teststring$teststring
5035      done
5036      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5037      # If test is not a shell built-in, we'll probably end up computing a
5038      # maximum length that is only half of the actual maximum length, but
5039      # we can't tell.
5040      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5041	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5042	      test 17 != "$i" # 1/2 MB should be enough
5043      do
5044        i=`expr $i + 1`
5045        teststring=$teststring$teststring
5046      done
5047      # Only check the string length outside the loop.
5048      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5049      teststring=
5050      # Add a significant safety factor because C++ compilers can tack on
5051      # massive amounts of additional arguments before passing them to the
5052      # linker.  It appears as though 1/2 is a usable value.
5053      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5054    fi
5055    ;;
5056  esac
5057
5058fi
5059
5060if test -n "$lt_cv_sys_max_cmd_len"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5062$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5063else
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5065$as_echo "none" >&6; }
5066fi
5067max_cmd_len=$lt_cv_sys_max_cmd_len
5068
5069
5070
5071
5072
5073
5074: ${CP="cp -f"}
5075: ${MV="mv -f"}
5076: ${RM="rm -f"}
5077
5078if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5079  lt_unset=unset
5080else
5081  lt_unset=false
5082fi
5083
5084
5085
5086
5087
5088# test EBCDIC or ASCII
5089case `echo X|tr X '\101'` in
5090 A) # ASCII based system
5091    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5092  lt_SP2NL='tr \040 \012'
5093  lt_NL2SP='tr \015\012 \040\040'
5094  ;;
5095 *) # EBCDIC based system
5096  lt_SP2NL='tr \100 \n'
5097  lt_NL2SP='tr \r\n \100\100'
5098  ;;
5099esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5110$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5111if ${lt_cv_to_host_file_cmd+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114  case $host in
5115  *-*-mingw* )
5116    case $build in
5117      *-*-mingw* ) # actually msys
5118        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5119        ;;
5120      *-*-cygwin* )
5121        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5122        ;;
5123      * ) # otherwise, assume *nix
5124        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5125        ;;
5126    esac
5127    ;;
5128  *-*-cygwin* )
5129    case $build in
5130      *-*-mingw* ) # actually msys
5131        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5132        ;;
5133      *-*-cygwin* )
5134        lt_cv_to_host_file_cmd=func_convert_file_noop
5135        ;;
5136      * ) # otherwise, assume *nix
5137        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5138        ;;
5139    esac
5140    ;;
5141  * ) # unhandled hosts (and "normal" native builds)
5142    lt_cv_to_host_file_cmd=func_convert_file_noop
5143    ;;
5144esac
5145
5146fi
5147
5148to_host_file_cmd=$lt_cv_to_host_file_cmd
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5150$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5151
5152
5153
5154
5155
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5157$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5158if ${lt_cv_to_tool_file_cmd+:} false; then :
5159  $as_echo_n "(cached) " >&6
5160else
5161  #assume ordinary cross tools, or native build.
5162lt_cv_to_tool_file_cmd=func_convert_file_noop
5163case $host in
5164  *-*-mingw* )
5165    case $build in
5166      *-*-mingw* ) # actually msys
5167        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5168        ;;
5169    esac
5170    ;;
5171esac
5172
5173fi
5174
5175to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5177$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5178
5179
5180
5181
5182
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5184$as_echo_n "checking for $LD option to reload object files... " >&6; }
5185if ${lt_cv_ld_reload_flag+:} false; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  lt_cv_ld_reload_flag='-r'
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5191$as_echo "$lt_cv_ld_reload_flag" >&6; }
5192reload_flag=$lt_cv_ld_reload_flag
5193case $reload_flag in
5194"" | " "*) ;;
5195*) reload_flag=" $reload_flag" ;;
5196esac
5197reload_cmds='$LD$reload_flag -o $output$reload_objs'
5198case $host_os in
5199  cygwin* | mingw* | pw32* | cegcc*)
5200    if test yes != "$GCC"; then
5201      reload_cmds=false
5202    fi
5203    ;;
5204  darwin*)
5205    if test yes = "$GCC"; then
5206      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5207    else
5208      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5209    fi
5210    ;;
5211esac
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221if test -n "$ac_tool_prefix"; then
5222  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5223set dummy ${ac_tool_prefix}objdump; ac_word=$2
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
5226if ${ac_cv_prog_OBJDUMP+:} false; then :
5227  $as_echo_n "(cached) " >&6
5228else
5229  if test -n "$OBJDUMP"; then
5230  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235  IFS=$as_save_IFS
5236  test -z "$as_dir" && as_dir=.
5237    for ac_exec_ext in '' $ac_executable_extensions; do
5238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241    break 2
5242  fi
5243done
5244  done
5245IFS=$as_save_IFS
5246
5247fi
5248fi
5249OBJDUMP=$ac_cv_prog_OBJDUMP
5250if test -n "$OBJDUMP"; then
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5252$as_echo "$OBJDUMP" >&6; }
5253else
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
5256fi
5257
5258
5259fi
5260if test -z "$ac_cv_prog_OBJDUMP"; then
5261  ac_ct_OBJDUMP=$OBJDUMP
5262  # Extract the first word of "objdump", so it can be a program name with args.
5263set dummy objdump; ac_word=$2
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265$as_echo_n "checking for $ac_word... " >&6; }
5266if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  if test -n "$ac_ct_OBJDUMP"; then
5270  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275  IFS=$as_save_IFS
5276  test -z "$as_dir" && as_dir=.
5277    for ac_exec_ext in '' $ac_executable_extensions; do
5278  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281    break 2
5282  fi
5283done
5284  done
5285IFS=$as_save_IFS
5286
5287fi
5288fi
5289ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5290if test -n "$ac_ct_OBJDUMP"; then
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5292$as_echo "$ac_ct_OBJDUMP" >&6; }
5293else
5294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295$as_echo "no" >&6; }
5296fi
5297
5298  if test "x$ac_ct_OBJDUMP" = x; then
5299    OBJDUMP="false"
5300  else
5301    case $cross_compiling:$ac_tool_warned in
5302yes:)
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305ac_tool_warned=yes ;;
5306esac
5307    OBJDUMP=$ac_ct_OBJDUMP
5308  fi
5309else
5310  OBJDUMP="$ac_cv_prog_OBJDUMP"
5311fi
5312
5313test -z "$OBJDUMP" && OBJDUMP=objdump
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5324$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5325if ${lt_cv_deplibs_check_method+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  lt_cv_file_magic_cmd='$MAGIC_CMD'
5329lt_cv_file_magic_test_file=
5330lt_cv_deplibs_check_method='unknown'
5331# Need to set the preceding variable on all platforms that support
5332# interlibrary dependencies.
5333# 'none' -- dependencies not supported.
5334# 'unknown' -- same as none, but documents that we really don't know.
5335# 'pass_all' -- all dependencies passed with no checks.
5336# 'test_compile' -- check by making test program.
5337# 'file_magic [[regex]]' -- check by looking for files in library path
5338# that responds to the $file_magic_cmd with a given extended regex.
5339# If you have 'file' or equivalent on your system and you're not sure
5340# whether 'pass_all' will *always* work, you probably want this one.
5341
5342case $host_os in
5343aix[4-9]*)
5344  lt_cv_deplibs_check_method=pass_all
5345  ;;
5346
5347beos*)
5348  lt_cv_deplibs_check_method=pass_all
5349  ;;
5350
5351bsdi[45]*)
5352  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5353  lt_cv_file_magic_cmd='/usr/bin/file -L'
5354  lt_cv_file_magic_test_file=/shlib/libc.so
5355  ;;
5356
5357cygwin*)
5358  # func_win32_libid is a shell function defined in ltmain.sh
5359  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5360  lt_cv_file_magic_cmd='func_win32_libid'
5361  ;;
5362
5363mingw* | pw32*)
5364  # Base MSYS/MinGW do not provide the 'file' command needed by
5365  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5366  # unless we find 'file', for example because we are cross-compiling.
5367  if ( file / ) >/dev/null 2>&1; then
5368    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5369    lt_cv_file_magic_cmd='func_win32_libid'
5370  else
5371    # Keep this pattern in sync with the one in func_win32_libid.
5372    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5373    lt_cv_file_magic_cmd='$OBJDUMP -f'
5374  fi
5375  ;;
5376
5377cegcc*)
5378  # use the weaker test based on 'objdump'. See mingw*.
5379  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5380  lt_cv_file_magic_cmd='$OBJDUMP -f'
5381  ;;
5382
5383darwin* | rhapsody*)
5384  lt_cv_deplibs_check_method=pass_all
5385  ;;
5386
5387freebsd* | dragonfly*)
5388  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5389    case $host_cpu in
5390    i*86 )
5391      # Not sure whether the presence of OpenBSD here was a mistake.
5392      # Let's accept both of them until this is cleared up.
5393      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5394      lt_cv_file_magic_cmd=/usr/bin/file
5395      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5396      ;;
5397    esac
5398  else
5399    lt_cv_deplibs_check_method=pass_all
5400  fi
5401  ;;
5402
5403haiku*)
5404  lt_cv_deplibs_check_method=pass_all
5405  ;;
5406
5407hpux10.20* | hpux11*)
5408  lt_cv_file_magic_cmd=/usr/bin/file
5409  case $host_cpu in
5410  ia64*)
5411    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5412    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5413    ;;
5414  hppa*64*)
5415    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]'
5416    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5417    ;;
5418  *)
5419    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5420    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5421    ;;
5422  esac
5423  ;;
5424
5425interix[3-9]*)
5426  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5427  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5428  ;;
5429
5430irix5* | irix6* | nonstopux*)
5431  case $LD in
5432  *-32|*"-32 ") libmagic=32-bit;;
5433  *-n32|*"-n32 ") libmagic=N32;;
5434  *-64|*"-64 ") libmagic=64-bit;;
5435  *) libmagic=never-match;;
5436  esac
5437  lt_cv_deplibs_check_method=pass_all
5438  ;;
5439
5440# This must be glibc/ELF.
5441linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445netbsd* | netbsdelf*-gnu)
5446  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5447    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5448  else
5449    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5450  fi
5451  ;;
5452
5453newos6*)
5454  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5455  lt_cv_file_magic_cmd=/usr/bin/file
5456  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5457  ;;
5458
5459*nto* | *qnx*)
5460  lt_cv_deplibs_check_method=pass_all
5461  ;;
5462
5463openbsd* | bitrig*)
5464  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5465    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5466  else
5467    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5468  fi
5469  ;;
5470
5471osf3* | osf4* | osf5*)
5472  lt_cv_deplibs_check_method=pass_all
5473  ;;
5474
5475rdos*)
5476  lt_cv_deplibs_check_method=pass_all
5477  ;;
5478
5479solaris*)
5480  lt_cv_deplibs_check_method=pass_all
5481  ;;
5482
5483sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5484  lt_cv_deplibs_check_method=pass_all
5485  ;;
5486
5487sysv4 | sysv4.3*)
5488  case $host_vendor in
5489  motorola)
5490    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]'
5491    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5492    ;;
5493  ncr)
5494    lt_cv_deplibs_check_method=pass_all
5495    ;;
5496  sequent)
5497    lt_cv_file_magic_cmd='/bin/file'
5498    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5499    ;;
5500  sni)
5501    lt_cv_file_magic_cmd='/bin/file'
5502    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5503    lt_cv_file_magic_test_file=/lib/libc.so
5504    ;;
5505  siemens)
5506    lt_cv_deplibs_check_method=pass_all
5507    ;;
5508  pc)
5509    lt_cv_deplibs_check_method=pass_all
5510    ;;
5511  esac
5512  ;;
5513
5514tpf*)
5515  lt_cv_deplibs_check_method=pass_all
5516  ;;
5517os2*)
5518  lt_cv_deplibs_check_method=pass_all
5519  ;;
5520esac
5521
5522fi
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5524$as_echo "$lt_cv_deplibs_check_method" >&6; }
5525
5526file_magic_glob=
5527want_nocaseglob=no
5528if test "$build" = "$host"; then
5529  case $host_os in
5530  mingw* | pw32*)
5531    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5532      want_nocaseglob=yes
5533    else
5534      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5535    fi
5536    ;;
5537  esac
5538fi
5539
5540file_magic_cmd=$lt_cv_file_magic_cmd
5541deplibs_check_method=$lt_cv_deplibs_check_method
5542test -z "$deplibs_check_method" && deplibs_check_method=unknown
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565if test -n "$ac_tool_prefix"; then
5566  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5567set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
5570if ${ac_cv_prog_DLLTOOL+:} false; then :
5571  $as_echo_n "(cached) " >&6
5572else
5573  if test -n "$DLLTOOL"; then
5574  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579  IFS=$as_save_IFS
5580  test -z "$as_dir" && as_dir=.
5581    for ac_exec_ext in '' $ac_executable_extensions; do
5582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585    break 2
5586  fi
5587done
5588  done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593DLLTOOL=$ac_cv_prog_DLLTOOL
5594if test -n "$DLLTOOL"; then
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5596$as_echo "$DLLTOOL" >&6; }
5597else
5598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602
5603fi
5604if test -z "$ac_cv_prog_DLLTOOL"; then
5605  ac_ct_DLLTOOL=$DLLTOOL
5606  # Extract the first word of "dlltool", so it can be a program name with args.
5607set dummy dlltool; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  if test -n "$ac_ct_DLLTOOL"; then
5614  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621    for ac_exec_ext in '' $ac_executable_extensions; do
5622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628  done
5629IFS=$as_save_IFS
5630
5631fi
5632fi
5633ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5634if test -n "$ac_ct_DLLTOOL"; then
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5636$as_echo "$ac_ct_DLLTOOL" >&6; }
5637else
5638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639$as_echo "no" >&6; }
5640fi
5641
5642  if test "x$ac_ct_DLLTOOL" = x; then
5643    DLLTOOL="false"
5644  else
5645    case $cross_compiling:$ac_tool_warned in
5646yes:)
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649ac_tool_warned=yes ;;
5650esac
5651    DLLTOOL=$ac_ct_DLLTOOL
5652  fi
5653else
5654  DLLTOOL="$ac_cv_prog_DLLTOOL"
5655fi
5656
5657test -z "$DLLTOOL" && DLLTOOL=dlltool
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5669$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5670if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  lt_cv_sharedlib_from_linklib_cmd='unknown'
5674
5675case $host_os in
5676cygwin* | mingw* | pw32* | cegcc*)
5677  # two different shell functions defined in ltmain.sh;
5678  # decide which one to use based on capabilities of $DLLTOOL
5679  case `$DLLTOOL --help 2>&1` in
5680  *--identify-strict*)
5681    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5682    ;;
5683  *)
5684    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5685    ;;
5686  esac
5687  ;;
5688*)
5689  # fallback: assume linklib IS sharedlib
5690  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5691  ;;
5692esac
5693
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5696$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5697sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5698test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5699
5700
5701
5702
5703
5704
5705
5706
5707if test -n "$ac_tool_prefix"; then
5708  for ac_prog in ar
5709  do
5710    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5711set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713$as_echo_n "checking for $ac_word... " >&6; }
5714if ${ac_cv_prog_AR+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  if test -n "$AR"; then
5718  ac_cv_prog_AR="$AR" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723  IFS=$as_save_IFS
5724  test -z "$as_dir" && as_dir=.
5725    for ac_exec_ext in '' $ac_executable_extensions; do
5726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729    break 2
5730  fi
5731done
5732  done
5733IFS=$as_save_IFS
5734
5735fi
5736fi
5737AR=$ac_cv_prog_AR
5738if test -n "$AR"; then
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5740$as_echo "$AR" >&6; }
5741else
5742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744fi
5745
5746
5747    test -n "$AR" && break
5748  done
5749fi
5750if test -z "$AR"; then
5751  ac_ct_AR=$AR
5752  for ac_prog in ar
5753do
5754  # Extract the first word of "$ac_prog", so it can be a program name with args.
5755set dummy $ac_prog; ac_word=$2
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757$as_echo_n "checking for $ac_word... " >&6; }
5758if ${ac_cv_prog_ac_ct_AR+:} false; then :
5759  $as_echo_n "(cached) " >&6
5760else
5761  if test -n "$ac_ct_AR"; then
5762  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769    for ac_exec_ext in '' $ac_executable_extensions; do
5770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771    ac_cv_prog_ac_ct_AR="$ac_prog"
5772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776  done
5777IFS=$as_save_IFS
5778
5779fi
5780fi
5781ac_ct_AR=$ac_cv_prog_ac_ct_AR
5782if test -n "$ac_ct_AR"; then
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5784$as_echo "$ac_ct_AR" >&6; }
5785else
5786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787$as_echo "no" >&6; }
5788fi
5789
5790
5791  test -n "$ac_ct_AR" && break
5792done
5793
5794  if test "x$ac_ct_AR" = x; then
5795    AR="false"
5796  else
5797    case $cross_compiling:$ac_tool_warned in
5798yes:)
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801ac_tool_warned=yes ;;
5802esac
5803    AR=$ac_ct_AR
5804  fi
5805fi
5806
5807: ${AR=ar}
5808: ${AR_FLAGS=cru}
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5821$as_echo_n "checking for archiver @FILE support... " >&6; }
5822if ${lt_cv_ar_at_file+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  lt_cv_ar_at_file=no
5826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828
5829int
5830main ()
5831{
5832
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"; then :
5838  echo conftest.$ac_objext > conftest.lst
5839      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5840      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5841  (eval $lt_ar_try) 2>&5
5842  ac_status=$?
5843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844  test $ac_status = 0; }
5845      if test 0 -eq "$ac_status"; then
5846	# Ensure the archiver fails upon bogus file names.
5847	rm -f conftest.$ac_objext libconftest.a
5848	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5849  (eval $lt_ar_try) 2>&5
5850  ac_status=$?
5851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5852  test $ac_status = 0; }
5853	if test 0 -ne "$ac_status"; then
5854          lt_cv_ar_at_file=@
5855        fi
5856      fi
5857      rm -f conftest.* libconftest.a
5858
5859fi
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5864$as_echo "$lt_cv_ar_at_file" >&6; }
5865
5866if test no = "$lt_cv_ar_at_file"; then
5867  archiver_list_spec=
5868else
5869  archiver_list_spec=$lt_cv_ar_at_file
5870fi
5871
5872
5873
5874
5875
5876
5877
5878if test -n "$ac_tool_prefix"; then
5879  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5880set dummy ${ac_tool_prefix}strip; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if ${ac_cv_prog_STRIP+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  if test -n "$STRIP"; then
5887  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892  IFS=$as_save_IFS
5893  test -z "$as_dir" && as_dir=.
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898    break 2
5899  fi
5900done
5901  done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906STRIP=$ac_cv_prog_STRIP
5907if test -n "$STRIP"; then
5908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5909$as_echo "$STRIP" >&6; }
5910else
5911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916fi
5917if test -z "$ac_cv_prog_STRIP"; then
5918  ac_ct_STRIP=$STRIP
5919  # Extract the first word of "strip", so it can be a program name with args.
5920set dummy strip; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  if test -n "$ac_ct_STRIP"; then
5927  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932  IFS=$as_save_IFS
5933  test -z "$as_dir" && as_dir=.
5934    for ac_exec_ext in '' $ac_executable_extensions; do
5935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5936    ac_cv_prog_ac_ct_STRIP="strip"
5937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938    break 2
5939  fi
5940done
5941  done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5947if test -n "$ac_ct_STRIP"; then
5948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5949$as_echo "$ac_ct_STRIP" >&6; }
5950else
5951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955  if test "x$ac_ct_STRIP" = x; then
5956    STRIP=":"
5957  else
5958    case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964    STRIP=$ac_ct_STRIP
5965  fi
5966else
5967  STRIP="$ac_cv_prog_STRIP"
5968fi
5969
5970test -z "$STRIP" && STRIP=:
5971
5972
5973
5974
5975
5976
5977if test -n "$ac_tool_prefix"; then
5978  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5979set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981$as_echo_n "checking for $ac_word... " >&6; }
5982if ${ac_cv_prog_RANLIB+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  if test -n "$RANLIB"; then
5986  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993    for ac_exec_ext in '' $ac_executable_extensions; do
5994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000  done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005RANLIB=$ac_cv_prog_RANLIB
6006if test -n "$RANLIB"; then
6007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6008$as_echo "$RANLIB" >&6; }
6009else
6010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011$as_echo "no" >&6; }
6012fi
6013
6014
6015fi
6016if test -z "$ac_cv_prog_RANLIB"; then
6017  ac_ct_RANLIB=$RANLIB
6018  # Extract the first word of "ranlib", so it can be a program name with args.
6019set dummy ranlib; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
6022if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  if test -n "$ac_ct_RANLIB"; then
6026  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031  IFS=$as_save_IFS
6032  test -z "$as_dir" && as_dir=.
6033    for ac_exec_ext in '' $ac_executable_extensions; do
6034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035    ac_cv_prog_ac_ct_RANLIB="ranlib"
6036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037    break 2
6038  fi
6039done
6040  done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6046if test -n "$ac_ct_RANLIB"; then
6047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6048$as_echo "$ac_ct_RANLIB" >&6; }
6049else
6050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054  if test "x$ac_ct_RANLIB" = x; then
6055    RANLIB=":"
6056  else
6057    case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061ac_tool_warned=yes ;;
6062esac
6063    RANLIB=$ac_ct_RANLIB
6064  fi
6065else
6066  RANLIB="$ac_cv_prog_RANLIB"
6067fi
6068
6069test -z "$RANLIB" && RANLIB=:
6070
6071
6072
6073
6074
6075
6076# Determine commands to create old-style static archives.
6077old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6078old_postinstall_cmds='chmod 644 $oldlib'
6079old_postuninstall_cmds=
6080
6081if test -n "$RANLIB"; then
6082  case $host_os in
6083  bitrig* | openbsd*)
6084    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6085    ;;
6086  *)
6087    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6088    ;;
6089  esac
6090  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6091fi
6092
6093case $host_os in
6094  darwin*)
6095    lock_old_archive_extraction=yes ;;
6096  *)
6097    lock_old_archive_extraction=no ;;
6098esac
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138# If no C compiler was specified, use CC.
6139LTCC=${LTCC-"$CC"}
6140
6141# If no C compiler flags were specified, use CFLAGS.
6142LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6143
6144# Allow CC to be a program name with arguments.
6145compiler=$CC
6146
6147
6148# Check for command to grab the raw symbol name followed by C symbol from nm.
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6150$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6151if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154
6155# These are sane defaults that work on at least a few old systems.
6156# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6157
6158# Character class describing NM global symbol codes.
6159symcode='[BCDEGRST]'
6160
6161# Regexp to match symbols that can be accessed directly from C.
6162sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6163
6164# Define system-specific variables.
6165case $host_os in
6166aix*)
6167  symcode='[BCDT]'
6168  ;;
6169cygwin* | mingw* | pw32* | cegcc*)
6170  symcode='[ABCDGISTW]'
6171  ;;
6172hpux*)
6173  if test ia64 = "$host_cpu"; then
6174    symcode='[ABCDEGRST]'
6175  fi
6176  ;;
6177irix* | nonstopux*)
6178  symcode='[BCDEGRST]'
6179  ;;
6180osf*)
6181  symcode='[BCDEGQRST]'
6182  ;;
6183solaris*)
6184  symcode='[BDRT]'
6185  ;;
6186sco3.2v5*)
6187  symcode='[DT]'
6188  ;;
6189sysv4.2uw2*)
6190  symcode='[DT]'
6191  ;;
6192sysv5* | sco5v6* | unixware* | OpenUNIX*)
6193  symcode='[ABDT]'
6194  ;;
6195sysv4)
6196  symcode='[DFNSTU]'
6197  ;;
6198esac
6199
6200# If we're using GNU nm, then use its standard symbol codes.
6201case `$NM -V 2>&1` in
6202*GNU* | *'with BFD'*)
6203  symcode='[ABCDGIRSTW]' ;;
6204esac
6205
6206if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6207  # Gets list of data symbols to import.
6208  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6209  # Adjust the below global symbol transforms to fixup imported variables.
6210  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6211  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6212  lt_c_name_lib_hook="\
6213  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6214  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6215else
6216  # Disable hooks by default.
6217  lt_cv_sys_global_symbol_to_import=
6218  lt_cdecl_hook=
6219  lt_c_name_hook=
6220  lt_c_name_lib_hook=
6221fi
6222
6223# Transform an extracted symbol line into a proper C declaration.
6224# Some systems (esp. on ia64) link data and code symbols differently,
6225# so use this general approach.
6226lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6227$lt_cdecl_hook\
6228" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6229" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6230
6231# Transform an extracted symbol line into symbol name and symbol address
6232lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6233$lt_c_name_hook\
6234" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6235" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6236
6237# Transform an extracted symbol line into symbol name with lib prefix and
6238# symbol address.
6239lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6240$lt_c_name_lib_hook\
6241" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6242" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6243" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6244
6245# Handle CRLF in mingw tool chain
6246opt_cr=
6247case $build_os in
6248mingw*)
6249  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6250  ;;
6251esac
6252
6253# Try without a prefix underscore, then with it.
6254for ac_symprfx in "" "_"; do
6255
6256  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6257  symxfrm="\\1 $ac_symprfx\\2 \\2"
6258
6259  # Write the raw and C identifiers.
6260  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6261    # Fake it for dumpbin and say T for any non-static function,
6262    # D for any global variable and I for any imported variable.
6263    # Also find C++ and __fastcall symbols from MSVC++,
6264    # which start with @ or ?.
6265    lt_cv_sys_global_symbol_pipe="$AWK '"\
6266"     {last_section=section; section=\$ 3};"\
6267"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6268"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6269"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6270"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6271"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6272"     \$ 0!~/External *\|/{next};"\
6273"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6274"     {if(hide[section]) next};"\
6275"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6276"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6277"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6278"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6279"     ' prfx=^$ac_symprfx"
6280  else
6281    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6282  fi
6283  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6284
6285  # Check to see that the pipe works correctly.
6286  pipe_works=no
6287
6288  rm -f conftest*
6289  cat > conftest.$ac_ext <<_LT_EOF
6290#ifdef __cplusplus
6291extern "C" {
6292#endif
6293char nm_test_var;
6294void nm_test_func(void);
6295void nm_test_func(void){}
6296#ifdef __cplusplus
6297}
6298#endif
6299int main(){nm_test_var='a';nm_test_func();return(0);}
6300_LT_EOF
6301
6302  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6303  (eval $ac_compile) 2>&5
6304  ac_status=$?
6305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306  test $ac_status = 0; }; then
6307    # Now try to grab the symbols.
6308    nlist=conftest.nm
6309    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6310    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6311      # Try sorting and uniquifying the output.
6312      if sort "$nlist" | uniq > "$nlist"T; then
6313	mv -f "$nlist"T "$nlist"
6314      else
6315	rm -f "$nlist"T
6316      fi
6317
6318      # Make sure that we snagged all the symbols we need.
6319      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6320	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6321	  cat <<_LT_EOF > conftest.$ac_ext
6322/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6323#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6324/* DATA imports from DLLs on WIN32 can't be const, because runtime
6325   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6326# define LT_DLSYM_CONST
6327#elif defined __osf__
6328/* This system does not cope well with relocations in const data.  */
6329# define LT_DLSYM_CONST
6330#else
6331# define LT_DLSYM_CONST const
6332#endif
6333
6334#ifdef __cplusplus
6335extern "C" {
6336#endif
6337
6338_LT_EOF
6339	  # Now generate the symbol file.
6340	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6341
6342	  cat <<_LT_EOF >> conftest.$ac_ext
6343
6344/* The mapping between symbol names and symbols.  */
6345LT_DLSYM_CONST struct {
6346  const char *name;
6347  void       *address;
6348}
6349lt__PROGRAM__LTX_preloaded_symbols[] =
6350{
6351  { "@PROGRAM@", (void *) 0 },
6352_LT_EOF
6353	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6354	  cat <<\_LT_EOF >> conftest.$ac_ext
6355  {0, (void *) 0}
6356};
6357
6358/* This works around a problem in FreeBSD linker */
6359#ifdef FREEBSD_WORKAROUND
6360static const void *lt_preloaded_setup() {
6361  return lt__PROGRAM__LTX_preloaded_symbols;
6362}
6363#endif
6364
6365#ifdef __cplusplus
6366}
6367#endif
6368_LT_EOF
6369	  # Now try linking the two files.
6370	  mv conftest.$ac_objext conftstm.$ac_objext
6371	  lt_globsym_save_LIBS=$LIBS
6372	  lt_globsym_save_CFLAGS=$CFLAGS
6373	  LIBS=conftstm.$ac_objext
6374	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6375	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6376  (eval $ac_link) 2>&5
6377  ac_status=$?
6378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6380	    pipe_works=yes
6381	  fi
6382	  LIBS=$lt_globsym_save_LIBS
6383	  CFLAGS=$lt_globsym_save_CFLAGS
6384	else
6385	  echo "cannot find nm_test_func in $nlist" >&5
6386	fi
6387      else
6388	echo "cannot find nm_test_var in $nlist" >&5
6389      fi
6390    else
6391      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6392    fi
6393  else
6394    echo "$progname: failed program was:" >&5
6395    cat conftest.$ac_ext >&5
6396  fi
6397  rm -rf conftest* conftst*
6398
6399  # Do not use the global_symbol_pipe unless it works.
6400  if test yes = "$pipe_works"; then
6401    break
6402  else
6403    lt_cv_sys_global_symbol_pipe=
6404  fi
6405done
6406
6407fi
6408
6409if test -z "$lt_cv_sys_global_symbol_pipe"; then
6410  lt_cv_sys_global_symbol_to_cdecl=
6411fi
6412if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6414$as_echo "failed" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6417$as_echo "ok" >&6; }
6418fi
6419
6420# Response file support.
6421if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6422  nm_file_list_spec='@'
6423elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6424  nm_file_list_spec='@'
6425fi
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6464$as_echo_n "checking for sysroot... " >&6; }
6465
6466# Check whether --with-sysroot was given.
6467if test "${with_sysroot+set}" = set; then :
6468  withval=$with_sysroot;
6469else
6470  with_sysroot=no
6471fi
6472
6473
6474lt_sysroot=
6475case $with_sysroot in #(
6476 yes)
6477   if test yes = "$GCC"; then
6478     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6479   fi
6480   ;; #(
6481 /*)
6482   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6483   ;; #(
6484 no|'')
6485   ;; #(
6486 *)
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6488$as_echo "$with_sysroot" >&6; }
6489   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6490   ;;
6491esac
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6494$as_echo "${lt_sysroot:-no}" >&6; }
6495
6496
6497
6498
6499
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6501$as_echo_n "checking for a working dd... " >&6; }
6502if ${ac_cv_path_lt_DD+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505  printf 0123456789abcdef0123456789abcdef >conftest.i
6506cat conftest.i conftest.i >conftest2.i
6507: ${lt_DD:=$DD}
6508if test -z "$lt_DD"; then
6509  ac_path_lt_DD_found=false
6510  # Loop through the user's path and test for each of PROGNAME-LIST
6511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514  IFS=$as_save_IFS
6515  test -z "$as_dir" && as_dir=.
6516    for ac_prog in dd; do
6517    for ac_exec_ext in '' $ac_executable_extensions; do
6518      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6519      as_fn_executable_p "$ac_path_lt_DD" || continue
6520if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6521  cmp -s conftest.i conftest.out \
6522  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6523fi
6524      $ac_path_lt_DD_found && break 3
6525    done
6526  done
6527  done
6528IFS=$as_save_IFS
6529  if test -z "$ac_cv_path_lt_DD"; then
6530    :
6531  fi
6532else
6533  ac_cv_path_lt_DD=$lt_DD
6534fi
6535
6536rm -f conftest.i conftest2.i conftest.out
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6539$as_echo "$ac_cv_path_lt_DD" >&6; }
6540
6541
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6543$as_echo_n "checking how to truncate binary pipes... " >&6; }
6544if ${lt_cv_truncate_bin+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  printf 0123456789abcdef0123456789abcdef >conftest.i
6548cat conftest.i conftest.i >conftest2.i
6549lt_cv_truncate_bin=
6550if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6551  cmp -s conftest.i conftest.out \
6552  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6553fi
6554rm -f conftest.i conftest2.i conftest.out
6555test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6558$as_echo "$lt_cv_truncate_bin" >&6; }
6559
6560
6561
6562
6563
6564
6565
6566# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6567func_cc_basename ()
6568{
6569    for cc_temp in $*""; do
6570      case $cc_temp in
6571        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6572        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6573        \-*) ;;
6574        *) break;;
6575      esac
6576    done
6577    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6578}
6579
6580# Check whether --enable-libtool-lock was given.
6581if test "${enable_libtool_lock+set}" = set; then :
6582  enableval=$enable_libtool_lock;
6583fi
6584
6585test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6586
6587# Some flags need to be propagated to the compiler or linker for good
6588# libtool support.
6589case $host in
6590ia64-*-hpux*)
6591  # Find out what ABI is being produced by ac_compile, and set mode
6592  # options accordingly.
6593  echo 'int i;' > conftest.$ac_ext
6594  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6595  (eval $ac_compile) 2>&5
6596  ac_status=$?
6597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598  test $ac_status = 0; }; then
6599    case `/usr/bin/file conftest.$ac_objext` in
6600      *ELF-32*)
6601	HPUX_IA64_MODE=32
6602	;;
6603      *ELF-64*)
6604	HPUX_IA64_MODE=64
6605	;;
6606    esac
6607  fi
6608  rm -rf conftest*
6609  ;;
6610*-*-irix6*)
6611  # Find out what ABI is being produced by ac_compile, and set linker
6612  # options accordingly.
6613  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6614  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6615  (eval $ac_compile) 2>&5
6616  ac_status=$?
6617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618  test $ac_status = 0; }; then
6619    if test yes = "$lt_cv_prog_gnu_ld"; then
6620      case `/usr/bin/file conftest.$ac_objext` in
6621	*32-bit*)
6622	  LD="${LD-ld} -melf32bsmip"
6623	  ;;
6624	*N32*)
6625	  LD="${LD-ld} -melf32bmipn32"
6626	  ;;
6627	*64-bit*)
6628	  LD="${LD-ld} -melf64bmip"
6629	;;
6630      esac
6631    else
6632      case `/usr/bin/file conftest.$ac_objext` in
6633	*32-bit*)
6634	  LD="${LD-ld} -32"
6635	  ;;
6636	*N32*)
6637	  LD="${LD-ld} -n32"
6638	  ;;
6639	*64-bit*)
6640	  LD="${LD-ld} -64"
6641	  ;;
6642      esac
6643    fi
6644  fi
6645  rm -rf conftest*
6646  ;;
6647
6648mips64*-*linux*)
6649  # Find out what ABI is being produced by ac_compile, and set linker
6650  # options accordingly.
6651  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6652  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653  (eval $ac_compile) 2>&5
6654  ac_status=$?
6655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656  test $ac_status = 0; }; then
6657    emul=elf
6658    case `/usr/bin/file conftest.$ac_objext` in
6659      *32-bit*)
6660	emul="${emul}32"
6661	;;
6662      *64-bit*)
6663	emul="${emul}64"
6664	;;
6665    esac
6666    case `/usr/bin/file conftest.$ac_objext` in
6667      *MSB*)
6668	emul="${emul}btsmip"
6669	;;
6670      *LSB*)
6671	emul="${emul}ltsmip"
6672	;;
6673    esac
6674    case `/usr/bin/file conftest.$ac_objext` in
6675      *N32*)
6676	emul="${emul}n32"
6677	;;
6678    esac
6679    LD="${LD-ld} -m $emul"
6680  fi
6681  rm -rf conftest*
6682  ;;
6683
6684x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6685s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6686  # Find out what ABI is being produced by ac_compile, and set linker
6687  # options accordingly.  Note that the listed cases only cover the
6688  # situations where additional linker options are needed (such as when
6689  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6690  # vice versa); the common cases where no linker options are needed do
6691  # not appear in the list.
6692  echo 'int i;' > conftest.$ac_ext
6693  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694  (eval $ac_compile) 2>&5
6695  ac_status=$?
6696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697  test $ac_status = 0; }; then
6698    case `/usr/bin/file conftest.o` in
6699      *32-bit*)
6700	case $host in
6701	  x86_64-*kfreebsd*-gnu)
6702	    LD="${LD-ld} -m elf_i386_fbsd"
6703	    ;;
6704	  x86_64-*linux*)
6705	    case `/usr/bin/file conftest.o` in
6706	      *x86-64*)
6707		LD="${LD-ld} -m elf32_x86_64"
6708		;;
6709	      *)
6710		LD="${LD-ld} -m elf_i386"
6711		;;
6712	    esac
6713	    ;;
6714	  powerpc64le-*linux*)
6715	    LD="${LD-ld} -m elf32lppclinux"
6716	    ;;
6717	  powerpc64-*linux*)
6718	    LD="${LD-ld} -m elf32ppclinux"
6719	    ;;
6720	  s390x-*linux*)
6721	    LD="${LD-ld} -m elf_s390"
6722	    ;;
6723	  sparc64-*linux*)
6724	    LD="${LD-ld} -m elf32_sparc"
6725	    ;;
6726	esac
6727	;;
6728      *64-bit*)
6729	case $host in
6730	  x86_64-*kfreebsd*-gnu)
6731	    LD="${LD-ld} -m elf_x86_64_fbsd"
6732	    ;;
6733	  x86_64-*linux*)
6734	    LD="${LD-ld} -m elf_x86_64"
6735	    ;;
6736	  powerpcle-*linux*)
6737	    LD="${LD-ld} -m elf64lppc"
6738	    ;;
6739	  powerpc-*linux*)
6740	    LD="${LD-ld} -m elf64ppc"
6741	    ;;
6742	  s390*-*linux*|s390*-*tpf*)
6743	    LD="${LD-ld} -m elf64_s390"
6744	    ;;
6745	  sparc*-*linux*)
6746	    LD="${LD-ld} -m elf64_sparc"
6747	    ;;
6748	esac
6749	;;
6750    esac
6751  fi
6752  rm -rf conftest*
6753  ;;
6754
6755*-*-sco3.2v5*)
6756  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6757  SAVE_CFLAGS=$CFLAGS
6758  CFLAGS="$CFLAGS -belf"
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6760$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6761if ${lt_cv_cc_needs_belf+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  ac_ext=c
6765ac_cpp='$CPP $CPPFLAGS'
6766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768ac_compiler_gnu=$ac_cv_c_compiler_gnu
6769
6770     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771/* end confdefs.h.  */
6772
6773int
6774main ()
6775{
6776
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781if ac_fn_c_try_link "$LINENO"; then :
6782  lt_cv_cc_needs_belf=yes
6783else
6784  lt_cv_cc_needs_belf=no
6785fi
6786rm -f core conftest.err conftest.$ac_objext \
6787    conftest$ac_exeext conftest.$ac_ext
6788     ac_ext=c
6789ac_cpp='$CPP $CPPFLAGS'
6790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792ac_compiler_gnu=$ac_cv_c_compiler_gnu
6793
6794fi
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6796$as_echo "$lt_cv_cc_needs_belf" >&6; }
6797  if test yes != "$lt_cv_cc_needs_belf"; then
6798    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6799    CFLAGS=$SAVE_CFLAGS
6800  fi
6801  ;;
6802*-*solaris*)
6803  # Find out what ABI is being produced by ac_compile, and set linker
6804  # options accordingly.
6805  echo 'int i;' > conftest.$ac_ext
6806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807  (eval $ac_compile) 2>&5
6808  ac_status=$?
6809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810  test $ac_status = 0; }; then
6811    case `/usr/bin/file conftest.o` in
6812    *64-bit*)
6813      case $lt_cv_prog_gnu_ld in
6814      yes*)
6815        case $host in
6816        i?86-*-solaris*|x86_64-*-solaris*)
6817          LD="${LD-ld} -m elf_x86_64"
6818          ;;
6819        sparc*-*-solaris*)
6820          LD="${LD-ld} -m elf64_sparc"
6821          ;;
6822        esac
6823        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6824        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6825          LD=${LD-ld}_sol2
6826        fi
6827        ;;
6828      *)
6829	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6830	  LD="${LD-ld} -64"
6831	fi
6832	;;
6833      esac
6834      ;;
6835    esac
6836  fi
6837  rm -rf conftest*
6838  ;;
6839esac
6840
6841need_locks=$enable_libtool_lock
6842
6843if test -n "$ac_tool_prefix"; then
6844  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6845set dummy ${ac_tool_prefix}mt; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -n "$MANIFEST_TOOL"; then
6852  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859    for ac_exec_ext in '' $ac_executable_extensions; do
6860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866  done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6872if test -n "$MANIFEST_TOOL"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6874$as_echo "$MANIFEST_TOOL" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880
6881fi
6882if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6883  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6884  # Extract the first word of "mt", so it can be a program name with args.
6885set dummy mt; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6889  $as_echo_n "(cached) " >&6
6890else
6891  if test -n "$ac_ct_MANIFEST_TOOL"; then
6892  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897  IFS=$as_save_IFS
6898  test -z "$as_dir" && as_dir=.
6899    for ac_exec_ext in '' $ac_executable_extensions; do
6900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903    break 2
6904  fi
6905done
6906  done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6912if test -n "$ac_ct_MANIFEST_TOOL"; then
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6914$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6915else
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6921    MANIFEST_TOOL=":"
6922  else
6923    case $cross_compiling:$ac_tool_warned in
6924yes:)
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927ac_tool_warned=yes ;;
6928esac
6929    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6930  fi
6931else
6932  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6933fi
6934
6935test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6937$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6938if ${lt_cv_path_mainfest_tool+:} false; then :
6939  $as_echo_n "(cached) " >&6
6940else
6941  lt_cv_path_mainfest_tool=no
6942  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6943  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6944  cat conftest.err >&5
6945  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6946    lt_cv_path_mainfest_tool=yes
6947  fi
6948  rm -f conftest*
6949fi
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6951$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6952if test yes != "$lt_cv_path_mainfest_tool"; then
6953  MANIFEST_TOOL=:
6954fi
6955
6956
6957
6958
6959
6960
6961  case $host_os in
6962    rhapsody* | darwin*)
6963    if test -n "$ac_tool_prefix"; then
6964  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if ${ac_cv_prog_DSYMUTIL+:} false; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  if test -n "$DSYMUTIL"; then
6972  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977  IFS=$as_save_IFS
6978  test -z "$as_dir" && as_dir=.
6979    for ac_exec_ext in '' $ac_executable_extensions; do
6980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986  done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991DSYMUTIL=$ac_cv_prog_DSYMUTIL
6992if test -n "$DSYMUTIL"; then
6993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6994$as_echo "$DSYMUTIL" >&6; }
6995else
6996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000
7001fi
7002if test -z "$ac_cv_prog_DSYMUTIL"; then
7003  ac_ct_DSYMUTIL=$DSYMUTIL
7004  # Extract the first word of "dsymutil", so it can be a program name with args.
7005set dummy dsymutil; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011  if test -n "$ac_ct_DSYMUTIL"; then
7012  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  test -z "$as_dir" && as_dir=.
7019    for ac_exec_ext in '' $ac_executable_extensions; do
7020  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023    break 2
7024  fi
7025done
7026  done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7032if test -n "$ac_ct_DSYMUTIL"; then
7033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7034$as_echo "$ac_ct_DSYMUTIL" >&6; }
7035else
7036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038fi
7039
7040  if test "x$ac_ct_DSYMUTIL" = x; then
7041    DSYMUTIL=":"
7042  else
7043    case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049    DSYMUTIL=$ac_ct_DSYMUTIL
7050  fi
7051else
7052  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7053fi
7054
7055    if test -n "$ac_tool_prefix"; then
7056  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if ${ac_cv_prog_NMEDIT+:} false; then :
7061  $as_echo_n "(cached) " >&6
7062else
7063  if test -n "$NMEDIT"; then
7064  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069  IFS=$as_save_IFS
7070  test -z "$as_dir" && as_dir=.
7071    for ac_exec_ext in '' $ac_executable_extensions; do
7072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075    break 2
7076  fi
7077done
7078  done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083NMEDIT=$ac_cv_prog_NMEDIT
7084if test -n "$NMEDIT"; then
7085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7086$as_echo "$NMEDIT" >&6; }
7087else
7088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092
7093fi
7094if test -z "$ac_cv_prog_NMEDIT"; then
7095  ac_ct_NMEDIT=$NMEDIT
7096  # Extract the first word of "nmedit", so it can be a program name with args.
7097set dummy nmedit; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103  if test -n "$ac_ct_NMEDIT"; then
7104  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109  IFS=$as_save_IFS
7110  test -z "$as_dir" && as_dir=.
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118  done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7124if test -n "$ac_ct_NMEDIT"; then
7125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7126$as_echo "$ac_ct_NMEDIT" >&6; }
7127else
7128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132  if test "x$ac_ct_NMEDIT" = x; then
7133    NMEDIT=":"
7134  else
7135    case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141    NMEDIT=$ac_ct_NMEDIT
7142  fi
7143else
7144  NMEDIT="$ac_cv_prog_NMEDIT"
7145fi
7146
7147    if test -n "$ac_tool_prefix"; then
7148  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}lipo; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if ${ac_cv_prog_LIPO+:} false; then :
7153  $as_echo_n "(cached) " >&6
7154else
7155  if test -n "$LIPO"; then
7156  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161  IFS=$as_save_IFS
7162  test -z "$as_dir" && as_dir=.
7163    for ac_exec_ext in '' $ac_executable_extensions; do
7164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167    break 2
7168  fi
7169done
7170  done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175LIPO=$ac_cv_prog_LIPO
7176if test -n "$LIPO"; then
7177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7178$as_echo "$LIPO" >&6; }
7179else
7180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185fi
7186if test -z "$ac_cv_prog_LIPO"; then
7187  ac_ct_LIPO=$LIPO
7188  # Extract the first word of "lipo", so it can be a program name with args.
7189set dummy lipo; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  if test -n "$ac_ct_LIPO"; then
7196  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203    for ac_exec_ext in '' $ac_executable_extensions; do
7204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205    ac_cv_prog_ac_ct_LIPO="lipo"
7206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210  done
7211IFS=$as_save_IFS
7212
7213fi
7214fi
7215ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7216if test -n "$ac_ct_LIPO"; then
7217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7218$as_echo "$ac_ct_LIPO" >&6; }
7219else
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
7222fi
7223
7224  if test "x$ac_ct_LIPO" = x; then
7225    LIPO=":"
7226  else
7227    case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233    LIPO=$ac_ct_LIPO
7234  fi
7235else
7236  LIPO="$ac_cv_prog_LIPO"
7237fi
7238
7239    if test -n "$ac_tool_prefix"; then
7240  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}otool; ac_word=$2
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243$as_echo_n "checking for $ac_word... " >&6; }
7244if ${ac_cv_prog_OTOOL+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  if test -n "$OTOOL"; then
7248  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253  IFS=$as_save_IFS
7254  test -z "$as_dir" && as_dir=.
7255    for ac_exec_ext in '' $ac_executable_extensions; do
7256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7259    break 2
7260  fi
7261done
7262  done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267OTOOL=$ac_cv_prog_OTOOL
7268if test -n "$OTOOL"; then
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7270$as_echo "$OTOOL" >&6; }
7271else
7272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273$as_echo "no" >&6; }
7274fi
7275
7276
7277fi
7278if test -z "$ac_cv_prog_OTOOL"; then
7279  ac_ct_OTOOL=$OTOOL
7280  # Extract the first word of "otool", so it can be a program name with args.
7281set dummy otool; ac_word=$2
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283$as_echo_n "checking for $ac_word... " >&6; }
7284if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7285  $as_echo_n "(cached) " >&6
7286else
7287  if test -n "$ac_ct_OTOOL"; then
7288  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293  IFS=$as_save_IFS
7294  test -z "$as_dir" && as_dir=.
7295    for ac_exec_ext in '' $ac_executable_extensions; do
7296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297    ac_cv_prog_ac_ct_OTOOL="otool"
7298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299    break 2
7300  fi
7301done
7302  done
7303IFS=$as_save_IFS
7304
7305fi
7306fi
7307ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7308if test -n "$ac_ct_OTOOL"; then
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7310$as_echo "$ac_ct_OTOOL" >&6; }
7311else
7312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313$as_echo "no" >&6; }
7314fi
7315
7316  if test "x$ac_ct_OTOOL" = x; then
7317    OTOOL=":"
7318  else
7319    case $cross_compiling:$ac_tool_warned in
7320yes:)
7321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323ac_tool_warned=yes ;;
7324esac
7325    OTOOL=$ac_ct_OTOOL
7326  fi
7327else
7328  OTOOL="$ac_cv_prog_OTOOL"
7329fi
7330
7331    if test -n "$ac_tool_prefix"; then
7332  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}otool64; ac_word=$2
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if ${ac_cv_prog_OTOOL64+:} false; then :
7337  $as_echo_n "(cached) " >&6
7338else
7339  if test -n "$OTOOL64"; then
7340  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347    for ac_exec_ext in '' $ac_executable_extensions; do
7348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354  done
7355IFS=$as_save_IFS
7356
7357fi
7358fi
7359OTOOL64=$ac_cv_prog_OTOOL64
7360if test -n "$OTOOL64"; then
7361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7362$as_echo "$OTOOL64" >&6; }
7363else
7364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366fi
7367
7368
7369fi
7370if test -z "$ac_cv_prog_OTOOL64"; then
7371  ac_ct_OTOOL64=$OTOOL64
7372  # Extract the first word of "otool64", so it can be a program name with args.
7373set dummy otool64; ac_word=$2
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7377  $as_echo_n "(cached) " >&6
7378else
7379  if test -n "$ac_ct_OTOOL64"; then
7380  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7381else
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385  IFS=$as_save_IFS
7386  test -z "$as_dir" && as_dir=.
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389    ac_cv_prog_ac_ct_OTOOL64="otool64"
7390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391    break 2
7392  fi
7393done
7394  done
7395IFS=$as_save_IFS
7396
7397fi
7398fi
7399ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7400if test -n "$ac_ct_OTOOL64"; then
7401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7402$as_echo "$ac_ct_OTOOL64" >&6; }
7403else
7404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
7406fi
7407
7408  if test "x$ac_ct_OTOOL64" = x; then
7409    OTOOL64=":"
7410  else
7411    case $cross_compiling:$ac_tool_warned in
7412yes:)
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415ac_tool_warned=yes ;;
7416esac
7417    OTOOL64=$ac_ct_OTOOL64
7418  fi
7419else
7420  OTOOL64="$ac_cv_prog_OTOOL64"
7421fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7450$as_echo_n "checking for -single_module linker flag... " >&6; }
7451if ${lt_cv_apple_cc_single_mod+:} false; then :
7452  $as_echo_n "(cached) " >&6
7453else
7454  lt_cv_apple_cc_single_mod=no
7455      if test -z "$LT_MULTI_MODULE"; then
7456	# By default we will add the -single_module flag. You can override
7457	# by either setting the environment variable LT_MULTI_MODULE
7458	# non-empty at configure time, or by adding -multi_module to the
7459	# link flags.
7460	rm -rf libconftest.dylib*
7461	echo "int foo(void){return 1;}" > conftest.c
7462	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7463-dynamiclib -Wl,-single_module conftest.c" >&5
7464	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7465	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7466        _lt_result=$?
7467	# If there is a non-empty error log, and "single_module"
7468	# appears in it, assume the flag caused a linker warning
7469        if test -s conftest.err && $GREP single_module conftest.err; then
7470	  cat conftest.err >&5
7471	# Otherwise, if the output was created with a 0 exit code from
7472	# the compiler, it worked.
7473	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7474	  lt_cv_apple_cc_single_mod=yes
7475	else
7476	  cat conftest.err >&5
7477	fi
7478	rm -rf libconftest.dylib*
7479	rm -f conftest.*
7480      fi
7481fi
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7483$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7484
7485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7486$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7487if ${lt_cv_ld_exported_symbols_list+:} false; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  lt_cv_ld_exported_symbols_list=no
7491      save_LDFLAGS=$LDFLAGS
7492      echo "_main" > conftest.sym
7493      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496
7497int
7498main ()
7499{
7500
7501  ;
7502  return 0;
7503}
7504_ACEOF
7505if ac_fn_c_try_link "$LINENO"; then :
7506  lt_cv_ld_exported_symbols_list=yes
7507else
7508  lt_cv_ld_exported_symbols_list=no
7509fi
7510rm -f core conftest.err conftest.$ac_objext \
7511    conftest$ac_exeext conftest.$ac_ext
7512	LDFLAGS=$save_LDFLAGS
7513
7514fi
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7516$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7517
7518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7519$as_echo_n "checking for -force_load linker flag... " >&6; }
7520if ${lt_cv_ld_force_load+:} false; then :
7521  $as_echo_n "(cached) " >&6
7522else
7523  lt_cv_ld_force_load=no
7524      cat > conftest.c << _LT_EOF
7525int forced_loaded() { return 2;}
7526_LT_EOF
7527      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7528      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7529      echo "$AR cru libconftest.a conftest.o" >&5
7530      $AR cru libconftest.a conftest.o 2>&5
7531      echo "$RANLIB libconftest.a" >&5
7532      $RANLIB libconftest.a 2>&5
7533      cat > conftest.c << _LT_EOF
7534int main() { return 0;}
7535_LT_EOF
7536      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7537      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7538      _lt_result=$?
7539      if test -s conftest.err && $GREP force_load conftest.err; then
7540	cat conftest.err >&5
7541      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7542	lt_cv_ld_force_load=yes
7543      else
7544	cat conftest.err >&5
7545      fi
7546        rm -f conftest.err libconftest.a conftest conftest.c
7547        rm -rf conftest.dSYM
7548
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7551$as_echo "$lt_cv_ld_force_load" >&6; }
7552    case $host_os in
7553    rhapsody* | darwin1.[012])
7554      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7555    darwin1.*)
7556      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7557    darwin*) # darwin 5.x on
7558      # if running on 10.5 or later, the deployment target defaults
7559      # to the OS version, if on x86, and 10.4, the deployment
7560      # target defaults to 10.4. Don't you love it?
7561      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7562	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7563	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7564	10.[012][,.]*)
7565	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7566	10.*)
7567	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7568      esac
7569    ;;
7570  esac
7571    if test yes = "$lt_cv_apple_cc_single_mod"; then
7572      _lt_dar_single_mod='$single_module'
7573    fi
7574    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7575      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7576    else
7577      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7578    fi
7579    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7580      _lt_dsymutil='~$DSYMUTIL $lib || :'
7581    else
7582      _lt_dsymutil=
7583    fi
7584    ;;
7585  esac
7586
7587# func_munge_path_list VARIABLE PATH
7588# -----------------------------------
7589# VARIABLE is name of variable containing _space_ separated list of
7590# directories to be munged by the contents of PATH, which is string
7591# having a format:
7592# "DIR[:DIR]:"
7593#       string "DIR[ DIR]" will be prepended to VARIABLE
7594# ":DIR[:DIR]"
7595#       string "DIR[ DIR]" will be appended to VARIABLE
7596# "DIRP[:DIRP]::[DIRA:]DIRA"
7597#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7598#       "DIRA[ DIRA]" will be appended to VARIABLE
7599# "DIR[:DIR]"
7600#       VARIABLE will be replaced by "DIR[ DIR]"
7601func_munge_path_list ()
7602{
7603    case x$2 in
7604    x)
7605        ;;
7606    *:)
7607        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7608        ;;
7609    x:*)
7610        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7611        ;;
7612    *::*)
7613        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7614        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7615        ;;
7616    *)
7617        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7618        ;;
7619    esac
7620}
7621
7622ac_ext=c
7623ac_cpp='$CPP $CPPFLAGS'
7624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7628$as_echo_n "checking how to run the C preprocessor... " >&6; }
7629# On Suns, sometimes $CPP names a directory.
7630if test -n "$CPP" && test -d "$CPP"; then
7631  CPP=
7632fi
7633if test -z "$CPP"; then
7634  if ${ac_cv_prog_CPP+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637      # Double quotes because CPP needs to be expanded
7638    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7639    do
7640      ac_preproc_ok=false
7641for ac_c_preproc_warn_flag in '' yes
7642do
7643  # Use a header file that comes with gcc, so configuring glibc
7644  # with a fresh cross-compiler works.
7645  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7646  # <limits.h> exists even on freestanding compilers.
7647  # On the NeXT, cc -E runs the code through the compiler's parser,
7648  # not just through cpp. "Syntax error" is here to catch this case.
7649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650/* end confdefs.h.  */
7651#ifdef __STDC__
7652# include <limits.h>
7653#else
7654# include <assert.h>
7655#endif
7656		     Syntax error
7657_ACEOF
7658if ac_fn_c_try_cpp "$LINENO"; then :
7659
7660else
7661  # Broken: fails on valid input.
7662continue
7663fi
7664rm -f conftest.err conftest.i conftest.$ac_ext
7665
7666  # OK, works on sane cases.  Now check whether nonexistent headers
7667  # can be detected and how.
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670#include <ac_nonexistent.h>
7671_ACEOF
7672if ac_fn_c_try_cpp "$LINENO"; then :
7673  # Broken: success on invalid input.
7674continue
7675else
7676  # Passes both tests.
7677ac_preproc_ok=:
7678break
7679fi
7680rm -f conftest.err conftest.i conftest.$ac_ext
7681
7682done
7683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7684rm -f conftest.i conftest.err conftest.$ac_ext
7685if $ac_preproc_ok; then :
7686  break
7687fi
7688
7689    done
7690    ac_cv_prog_CPP=$CPP
7691
7692fi
7693  CPP=$ac_cv_prog_CPP
7694else
7695  ac_cv_prog_CPP=$CPP
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7698$as_echo "$CPP" >&6; }
7699ac_preproc_ok=false
7700for ac_c_preproc_warn_flag in '' yes
7701do
7702  # Use a header file that comes with gcc, so configuring glibc
7703  # with a fresh cross-compiler works.
7704  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705  # <limits.h> exists even on freestanding compilers.
7706  # On the NeXT, cc -E runs the code through the compiler's parser,
7707  # not just through cpp. "Syntax error" is here to catch this case.
7708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h.  */
7710#ifdef __STDC__
7711# include <limits.h>
7712#else
7713# include <assert.h>
7714#endif
7715		     Syntax error
7716_ACEOF
7717if ac_fn_c_try_cpp "$LINENO"; then :
7718
7719else
7720  # Broken: fails on valid input.
7721continue
7722fi
7723rm -f conftest.err conftest.i conftest.$ac_ext
7724
7725  # OK, works on sane cases.  Now check whether nonexistent headers
7726  # can be detected and how.
7727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729#include <ac_nonexistent.h>
7730_ACEOF
7731if ac_fn_c_try_cpp "$LINENO"; then :
7732  # Broken: success on invalid input.
7733continue
7734else
7735  # Passes both tests.
7736ac_preproc_ok=:
7737break
7738fi
7739rm -f conftest.err conftest.i conftest.$ac_ext
7740
7741done
7742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7743rm -f conftest.i conftest.err conftest.$ac_ext
7744if $ac_preproc_ok; then :
7745
7746else
7747  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7749as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7750See \`config.log' for more details" "$LINENO" 5; }
7751fi
7752
7753ac_ext=c
7754ac_cpp='$CPP $CPPFLAGS'
7755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758
7759
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7761$as_echo_n "checking for ANSI C header files... " >&6; }
7762if ${ac_cv_header_stdc+:} false; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767#include <stdlib.h>
7768#include <stdarg.h>
7769#include <string.h>
7770#include <float.h>
7771
7772int
7773main ()
7774{
7775
7776  ;
7777  return 0;
7778}
7779_ACEOF
7780if ac_fn_c_try_compile "$LINENO"; then :
7781  ac_cv_header_stdc=yes
7782else
7783  ac_cv_header_stdc=no
7784fi
7785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786
7787if test $ac_cv_header_stdc = yes; then
7788  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h.  */
7791#include <string.h>
7792
7793_ACEOF
7794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795  $EGREP "memchr" >/dev/null 2>&1; then :
7796
7797else
7798  ac_cv_header_stdc=no
7799fi
7800rm -f conftest*
7801
7802fi
7803
7804if test $ac_cv_header_stdc = yes; then
7805  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808#include <stdlib.h>
7809
7810_ACEOF
7811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7812  $EGREP "free" >/dev/null 2>&1; then :
7813
7814else
7815  ac_cv_header_stdc=no
7816fi
7817rm -f conftest*
7818
7819fi
7820
7821if test $ac_cv_header_stdc = yes; then
7822  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7823  if test "$cross_compiling" = yes; then :
7824  :
7825else
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828#include <ctype.h>
7829#include <stdlib.h>
7830#if ((' ' & 0x0FF) == 0x020)
7831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7833#else
7834# define ISLOWER(c) \
7835		   (('a' <= (c) && (c) <= 'i') \
7836		     || ('j' <= (c) && (c) <= 'r') \
7837		     || ('s' <= (c) && (c) <= 'z'))
7838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7839#endif
7840
7841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7842int
7843main ()
7844{
7845  int i;
7846  for (i = 0; i < 256; i++)
7847    if (XOR (islower (i), ISLOWER (i))
7848	|| toupper (i) != TOUPPER (i))
7849      return 2;
7850  return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_run "$LINENO"; then :
7854
7855else
7856  ac_cv_header_stdc=no
7857fi
7858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7859  conftest.$ac_objext conftest.beam conftest.$ac_ext
7860fi
7861
7862fi
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7865$as_echo "$ac_cv_header_stdc" >&6; }
7866if test $ac_cv_header_stdc = yes; then
7867
7868$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7869
7870fi
7871
7872# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7873for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7874		  inttypes.h stdint.h unistd.h
7875do :
7876  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7877ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7878"
7879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7880  cat >>confdefs.h <<_ACEOF
7881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882_ACEOF
7883
7884fi
7885
7886done
7887
7888
7889for ac_header in dlfcn.h
7890do :
7891  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7892"
7893if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7894  cat >>confdefs.h <<_ACEOF
7895#define HAVE_DLFCN_H 1
7896_ACEOF
7897
7898fi
7899
7900done
7901
7902
7903
7904
7905
7906# Set options
7907
7908
7909
7910        enable_dlopen=no
7911
7912
7913  enable_win32_dll=no
7914
7915
7916            # Check whether --enable-shared was given.
7917if test "${enable_shared+set}" = set; then :
7918  enableval=$enable_shared; p=${PACKAGE-default}
7919    case $enableval in
7920    yes) enable_shared=yes ;;
7921    no) enable_shared=no ;;
7922    *)
7923      enable_shared=no
7924      # Look at the argument we got.  We use all the common list separators.
7925      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7926      for pkg in $enableval; do
7927	IFS=$lt_save_ifs
7928	if test "X$pkg" = "X$p"; then
7929	  enable_shared=yes
7930	fi
7931      done
7932      IFS=$lt_save_ifs
7933      ;;
7934    esac
7935else
7936  enable_shared=yes
7937fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947  # Check whether --enable-static was given.
7948if test "${enable_static+set}" = set; then :
7949  enableval=$enable_static; p=${PACKAGE-default}
7950    case $enableval in
7951    yes) enable_static=yes ;;
7952    no) enable_static=no ;;
7953    *)
7954     enable_static=no
7955      # Look at the argument we got.  We use all the common list separators.
7956      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7957      for pkg in $enableval; do
7958	IFS=$lt_save_ifs
7959	if test "X$pkg" = "X$p"; then
7960	  enable_static=yes
7961	fi
7962      done
7963      IFS=$lt_save_ifs
7964      ;;
7965    esac
7966else
7967  enable_static=yes
7968fi
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979# Check whether --with-pic was given.
7980if test "${with_pic+set}" = set; then :
7981  withval=$with_pic; lt_p=${PACKAGE-default}
7982    case $withval in
7983    yes|no) pic_mode=$withval ;;
7984    *)
7985      pic_mode=default
7986      # Look at the argument we got.  We use all the common list separators.
7987      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7988      for lt_pkg in $withval; do
7989	IFS=$lt_save_ifs
7990	if test "X$lt_pkg" = "X$lt_p"; then
7991	  pic_mode=yes
7992	fi
7993      done
7994      IFS=$lt_save_ifs
7995      ;;
7996    esac
7997else
7998  pic_mode=default
7999fi
8000
8001
8002
8003
8004
8005
8006
8007
8008  # Check whether --enable-fast-install was given.
8009if test "${enable_fast_install+set}" = set; then :
8010  enableval=$enable_fast_install; p=${PACKAGE-default}
8011    case $enableval in
8012    yes) enable_fast_install=yes ;;
8013    no) enable_fast_install=no ;;
8014    *)
8015      enable_fast_install=no
8016      # Look at the argument we got.  We use all the common list separators.
8017      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8018      for pkg in $enableval; do
8019	IFS=$lt_save_ifs
8020	if test "X$pkg" = "X$p"; then
8021	  enable_fast_install=yes
8022	fi
8023      done
8024      IFS=$lt_save_ifs
8025      ;;
8026    esac
8027else
8028  enable_fast_install=yes
8029fi
8030
8031
8032
8033
8034
8035
8036
8037
8038  shared_archive_member_spec=
8039case $host,$enable_shared in
8040power*-*-aix[5-9]*,yes)
8041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8042$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8043
8044# Check whether --with-aix-soname was given.
8045if test "${with_aix_soname+set}" = set; then :
8046  withval=$with_aix_soname; case $withval in
8047    aix|svr4|both)
8048      ;;
8049    *)
8050      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8051      ;;
8052    esac
8053    lt_cv_with_aix_soname=$with_aix_soname
8054else
8055  if ${lt_cv_with_aix_soname+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  lt_cv_with_aix_soname=aix
8059fi
8060
8061    with_aix_soname=$lt_cv_with_aix_soname
8062fi
8063
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8065$as_echo "$with_aix_soname" >&6; }
8066  if test aix != "$with_aix_soname"; then
8067    # For the AIX way of multilib, we name the shared archive member
8068    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8069    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8070    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8071    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8072    if test 64 = "${OBJECT_MODE-32}"; then
8073      shared_archive_member_spec=shr_64
8074    else
8075      shared_archive_member_spec=shr
8076    fi
8077  fi
8078  ;;
8079*)
8080  with_aix_soname=aix
8081  ;;
8082esac
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093# This can be used to rebuild libtool when needed
8094LIBTOOL_DEPS=$ltmain
8095
8096# Always use our own libtool.
8097LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128test -z "$LN_S" && LN_S="ln -s"
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143if test -n "${ZSH_VERSION+set}"; then
8144   setopt NO_GLOB_SUBST
8145fi
8146
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8148$as_echo_n "checking for objdir... " >&6; }
8149if ${lt_cv_objdir+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  rm -f .libs 2>/dev/null
8153mkdir .libs 2>/dev/null
8154if test -d .libs; then
8155  lt_cv_objdir=.libs
8156else
8157  # MS-DOS does not allow filenames that begin with a dot.
8158  lt_cv_objdir=_libs
8159fi
8160rmdir .libs 2>/dev/null
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8163$as_echo "$lt_cv_objdir" >&6; }
8164objdir=$lt_cv_objdir
8165
8166
8167
8168
8169
8170cat >>confdefs.h <<_ACEOF
8171#define LT_OBJDIR "$lt_cv_objdir/"
8172_ACEOF
8173
8174
8175
8176
8177case $host_os in
8178aix3*)
8179  # AIX sometimes has problems with the GCC collect2 program.  For some
8180  # reason, if we set the COLLECT_NAMES environment variable, the problems
8181  # vanish in a puff of smoke.
8182  if test set != "${COLLECT_NAMES+set}"; then
8183    COLLECT_NAMES=
8184    export COLLECT_NAMES
8185  fi
8186  ;;
8187esac
8188
8189# Global variables:
8190ofile=libtool
8191can_build_shared=yes
8192
8193# All known linkers require a '.a' archive for static linking (except MSVC,
8194# which needs '.lib').
8195libext=a
8196
8197with_gnu_ld=$lt_cv_prog_gnu_ld
8198
8199old_CC=$CC
8200old_CFLAGS=$CFLAGS
8201
8202# Set sane defaults for various variables
8203test -z "$CC" && CC=cc
8204test -z "$LTCC" && LTCC=$CC
8205test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8206test -z "$LD" && LD=ld
8207test -z "$ac_objext" && ac_objext=o
8208
8209func_cc_basename $compiler
8210cc_basename=$func_cc_basename_result
8211
8212
8213# Only perform the check for file, if the check method requires it
8214test -z "$MAGIC_CMD" && MAGIC_CMD=file
8215case $deplibs_check_method in
8216file_magic*)
8217  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8219$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8220if ${lt_cv_path_MAGIC_CMD+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  case $MAGIC_CMD in
8224[\\/*] |  ?:[\\/]*)
8225  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8226  ;;
8227*)
8228  lt_save_MAGIC_CMD=$MAGIC_CMD
8229  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231  for ac_dir in $ac_dummy; do
8232    IFS=$lt_save_ifs
8233    test -z "$ac_dir" && ac_dir=.
8234    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8235      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8236      if test -n "$file_magic_test_file"; then
8237	case $deplibs_check_method in
8238	"file_magic "*)
8239	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8241	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242	    $EGREP "$file_magic_regex" > /dev/null; then
8243	    :
8244	  else
8245	    cat <<_LT_EOF 1>&2
8246
8247*** Warning: the command libtool uses to detect shared libraries,
8248*** $file_magic_cmd, produces output that libtool cannot recognize.
8249*** The result is that libtool may fail to recognize shared libraries
8250*** as such.  This will affect the creation of libtool libraries that
8251*** depend on shared libraries, but programs linked with such libtool
8252*** libraries will work regardless of this problem.  Nevertheless, you
8253*** may want to report the problem to your system manager and/or to
8254*** bug-libtool@gnu.org
8255
8256_LT_EOF
8257	  fi ;;
8258	esac
8259      fi
8260      break
8261    fi
8262  done
8263  IFS=$lt_save_ifs
8264  MAGIC_CMD=$lt_save_MAGIC_CMD
8265  ;;
8266esac
8267fi
8268
8269MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8270if test -n "$MAGIC_CMD"; then
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272$as_echo "$MAGIC_CMD" >&6; }
8273else
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279
8280
8281
8282if test -z "$lt_cv_path_MAGIC_CMD"; then
8283  if test -n "$ac_tool_prefix"; then
8284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8285$as_echo_n "checking for file... " >&6; }
8286if ${lt_cv_path_MAGIC_CMD+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  case $MAGIC_CMD in
8290[\\/*] |  ?:[\\/]*)
8291  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8292  ;;
8293*)
8294  lt_save_MAGIC_CMD=$MAGIC_CMD
8295  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8296  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297  for ac_dir in $ac_dummy; do
8298    IFS=$lt_save_ifs
8299    test -z "$ac_dir" && ac_dir=.
8300    if test -f "$ac_dir/file"; then
8301      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8302      if test -n "$file_magic_test_file"; then
8303	case $deplibs_check_method in
8304	"file_magic "*)
8305	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8307	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308	    $EGREP "$file_magic_regex" > /dev/null; then
8309	    :
8310	  else
8311	    cat <<_LT_EOF 1>&2
8312
8313*** Warning: the command libtool uses to detect shared libraries,
8314*** $file_magic_cmd, produces output that libtool cannot recognize.
8315*** The result is that libtool may fail to recognize shared libraries
8316*** as such.  This will affect the creation of libtool libraries that
8317*** depend on shared libraries, but programs linked with such libtool
8318*** libraries will work regardless of this problem.  Nevertheless, you
8319*** may want to report the problem to your system manager and/or to
8320*** bug-libtool@gnu.org
8321
8322_LT_EOF
8323	  fi ;;
8324	esac
8325      fi
8326      break
8327    fi
8328  done
8329  IFS=$lt_save_ifs
8330  MAGIC_CMD=$lt_save_MAGIC_CMD
8331  ;;
8332esac
8333fi
8334
8335MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8336if test -n "$MAGIC_CMD"; then
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8338$as_echo "$MAGIC_CMD" >&6; }
8339else
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341$as_echo "no" >&6; }
8342fi
8343
8344
8345  else
8346    MAGIC_CMD=:
8347  fi
8348fi
8349
8350  fi
8351  ;;
8352esac
8353
8354# Use C for the default configuration in the libtool script
8355
8356lt_save_CC=$CC
8357ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362
8363
8364# Source file extension for C test sources.
8365ac_ext=c
8366
8367# Object file extension for compiled C test sources.
8368objext=o
8369objext=$objext
8370
8371# Code to be used in simple compile tests
8372lt_simple_compile_test_code="int some_variable = 0;"
8373
8374# Code to be used in simple link tests
8375lt_simple_link_test_code='int main(){return(0);}'
8376
8377
8378
8379
8380
8381
8382
8383# If no C compiler was specified, use CC.
8384LTCC=${LTCC-"$CC"}
8385
8386# If no C compiler flags were specified, use CFLAGS.
8387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8388
8389# Allow CC to be a program name with arguments.
8390compiler=$CC
8391
8392# Save the default compiler, since it gets overwritten when the other
8393# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8394compiler_DEFAULT=$CC
8395
8396# save warnings/boilerplate of simple test code
8397ac_outfile=conftest.$ac_objext
8398echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8399eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8400_lt_compiler_boilerplate=`cat conftest.err`
8401$RM conftest*
8402
8403ac_outfile=conftest.$ac_objext
8404echo "$lt_simple_link_test_code" >conftest.$ac_ext
8405eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8406_lt_linker_boilerplate=`cat conftest.err`
8407$RM -r conftest*
8408
8409
8410## CAVEAT EMPTOR:
8411## There is no encapsulation within the following macros, do not change
8412## the running order or otherwise move them around unless you know exactly
8413## what you are doing...
8414if test -n "$compiler"; then
8415
8416lt_prog_compiler_no_builtin_flag=
8417
8418if test yes = "$GCC"; then
8419  case $cc_basename in
8420  nvcc*)
8421    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8422  *)
8423    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8424  esac
8425
8426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8427$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8428if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  lt_cv_prog_compiler_rtti_exceptions=no
8432   ac_outfile=conftest.$ac_objext
8433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8434   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8435   # Insert the option either (1) after the last *FLAGS variable, or
8436   # (2) before a word containing "conftest.", or (3) at the end.
8437   # Note that $ac_compile itself does not contain backslashes and begins
8438   # with a dollar sign (not a hyphen), so the echo should work correctly.
8439   # The option is referenced via a variable to avoid confusing sed.
8440   lt_compile=`echo "$ac_compile" | $SED \
8441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443   -e 's:$: $lt_compiler_flag:'`
8444   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8445   (eval "$lt_compile" 2>conftest.err)
8446   ac_status=$?
8447   cat conftest.err >&5
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   if (exit $ac_status) && test -s "$ac_outfile"; then
8450     # The compiler can only warn and ignore the option if not recognized
8451     # So say no if there are warnings other than the usual output.
8452     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8453     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8454     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8455       lt_cv_prog_compiler_rtti_exceptions=yes
8456     fi
8457   fi
8458   $RM conftest*
8459
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8462$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8463
8464if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8465    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8466else
8467    :
8468fi
8469
8470fi
8471
8472
8473
8474
8475
8476
8477  lt_prog_compiler_wl=
8478lt_prog_compiler_pic=
8479lt_prog_compiler_static=
8480
8481
8482  if test yes = "$GCC"; then
8483    lt_prog_compiler_wl='-Wl,'
8484    lt_prog_compiler_static='-static'
8485
8486    case $host_os in
8487      aix*)
8488      # All AIX code is PIC.
8489      if test ia64 = "$host_cpu"; then
8490	# AIX 5 now supports IA64 processor
8491	lt_prog_compiler_static='-Bstatic'
8492      fi
8493      lt_prog_compiler_pic='-fPIC'
8494      ;;
8495
8496    amigaos*)
8497      case $host_cpu in
8498      powerpc)
8499            # see comment about AmigaOS4 .so support
8500            lt_prog_compiler_pic='-fPIC'
8501        ;;
8502      m68k)
8503            # FIXME: we need at least 68020 code to build shared libraries, but
8504            # adding the '-m68020' flag to GCC prevents building anything better,
8505            # like '-m68040'.
8506            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8507        ;;
8508      esac
8509      ;;
8510
8511    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8512      # PIC is the default for these OSes.
8513      ;;
8514
8515    mingw* | cygwin* | pw32* | os2* | cegcc*)
8516      # This hack is so that the source file can tell whether it is being
8517      # built for inclusion in a dll (and should export symbols for example).
8518      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8519      # (--disable-auto-import) libraries
8520      lt_prog_compiler_pic='-DDLL_EXPORT'
8521      case $host_os in
8522      os2*)
8523	lt_prog_compiler_static='$wl-static'
8524	;;
8525      esac
8526      ;;
8527
8528    darwin* | rhapsody*)
8529      # PIC is the default on this platform
8530      # Common symbols not allowed in MH_DYLIB files
8531      lt_prog_compiler_pic='-fno-common'
8532      ;;
8533
8534    haiku*)
8535      # PIC is the default for Haiku.
8536      # The "-static" flag exists, but is broken.
8537      lt_prog_compiler_static=
8538      ;;
8539
8540    hpux*)
8541      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8542      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8543      # sets the default TLS model and affects inlining.
8544      case $host_cpu in
8545      hppa*64*)
8546	# +Z the default
8547	;;
8548      *)
8549	lt_prog_compiler_pic='-fPIC'
8550	;;
8551      esac
8552      ;;
8553
8554    interix[3-9]*)
8555      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8556      # Instead, we relocate shared libraries at runtime.
8557      ;;
8558
8559    msdosdjgpp*)
8560      # Just because we use GCC doesn't mean we suddenly get shared libraries
8561      # on systems that don't support them.
8562      lt_prog_compiler_can_build_shared=no
8563      enable_shared=no
8564      ;;
8565
8566    *nto* | *qnx*)
8567      # QNX uses GNU C++, but need to define -shared option too, otherwise
8568      # it will coredump.
8569      lt_prog_compiler_pic='-fPIC -shared'
8570      ;;
8571
8572    sysv4*MP*)
8573      if test -d /usr/nec; then
8574	lt_prog_compiler_pic=-Kconform_pic
8575      fi
8576      ;;
8577
8578    *)
8579      lt_prog_compiler_pic='-fPIC'
8580      ;;
8581    esac
8582
8583    case $cc_basename in
8584    nvcc*) # Cuda Compiler Driver 2.2
8585      lt_prog_compiler_wl='-Xlinker '
8586      if test -n "$lt_prog_compiler_pic"; then
8587        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8588      fi
8589      ;;
8590    esac
8591  else
8592    # PORTME Check for flag to pass linker flags through the system compiler.
8593    case $host_os in
8594    aix*)
8595      lt_prog_compiler_wl='-Wl,'
8596      if test ia64 = "$host_cpu"; then
8597	# AIX 5 now supports IA64 processor
8598	lt_prog_compiler_static='-Bstatic'
8599      else
8600	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8601      fi
8602      ;;
8603
8604    darwin* | rhapsody*)
8605      # PIC is the default on this platform
8606      # Common symbols not allowed in MH_DYLIB files
8607      lt_prog_compiler_pic='-fno-common'
8608      case $cc_basename in
8609      nagfor*)
8610        # NAG Fortran compiler
8611        lt_prog_compiler_wl='-Wl,-Wl,,'
8612        lt_prog_compiler_pic='-PIC'
8613        lt_prog_compiler_static='-Bstatic'
8614        ;;
8615      esac
8616      ;;
8617
8618    mingw* | cygwin* | pw32* | os2* | cegcc*)
8619      # This hack is so that the source file can tell whether it is being
8620      # built for inclusion in a dll (and should export symbols for example).
8621      lt_prog_compiler_pic='-DDLL_EXPORT'
8622      case $host_os in
8623      os2*)
8624	lt_prog_compiler_static='$wl-static'
8625	;;
8626      esac
8627      ;;
8628
8629    hpux9* | hpux10* | hpux11*)
8630      lt_prog_compiler_wl='-Wl,'
8631      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8632      # not for PA HP-UX.
8633      case $host_cpu in
8634      hppa*64*|ia64*)
8635	# +Z the default
8636	;;
8637      *)
8638	lt_prog_compiler_pic='+Z'
8639	;;
8640      esac
8641      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8642      lt_prog_compiler_static='$wl-a ${wl}archive'
8643      ;;
8644
8645    irix5* | irix6* | nonstopux*)
8646      lt_prog_compiler_wl='-Wl,'
8647      # PIC (with -KPIC) is the default.
8648      lt_prog_compiler_static='-non_shared'
8649      ;;
8650
8651    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8652      case $cc_basename in
8653      # old Intel for x86_64, which still supported -KPIC.
8654      ecc*)
8655	lt_prog_compiler_wl='-Wl,'
8656	lt_prog_compiler_pic='-KPIC'
8657	lt_prog_compiler_static='-static'
8658        ;;
8659      # icc used to be incompatible with GCC.
8660      # ICC 10 doesn't accept -KPIC any more.
8661      icc* | ifort*)
8662	lt_prog_compiler_wl='-Wl,'
8663	lt_prog_compiler_pic='-fPIC'
8664	lt_prog_compiler_static='-static'
8665        ;;
8666      # Lahey Fortran 8.1.
8667      lf95*)
8668	lt_prog_compiler_wl='-Wl,'
8669	lt_prog_compiler_pic='--shared'
8670	lt_prog_compiler_static='--static'
8671	;;
8672      nagfor*)
8673	# NAG Fortran compiler
8674	lt_prog_compiler_wl='-Wl,-Wl,,'
8675	lt_prog_compiler_pic='-PIC'
8676	lt_prog_compiler_static='-Bstatic'
8677	;;
8678      tcc*)
8679	# Fabrice Bellard et al's Tiny C Compiler
8680	lt_prog_compiler_wl='-Wl,'
8681	lt_prog_compiler_pic='-fPIC'
8682	lt_prog_compiler_static='-static'
8683	;;
8684      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8685        # Portland Group compilers (*not* the Pentium gcc compiler,
8686	# which looks to be a dead project)
8687	lt_prog_compiler_wl='-Wl,'
8688	lt_prog_compiler_pic='-fpic'
8689	lt_prog_compiler_static='-Bstatic'
8690        ;;
8691      ccc*)
8692        lt_prog_compiler_wl='-Wl,'
8693        # All Alpha code is PIC.
8694        lt_prog_compiler_static='-non_shared'
8695        ;;
8696      xl* | bgxl* | bgf* | mpixl*)
8697	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8698	lt_prog_compiler_wl='-Wl,'
8699	lt_prog_compiler_pic='-qpic'
8700	lt_prog_compiler_static='-qstaticlink'
8701	;;
8702      *)
8703	case `$CC -V 2>&1 | sed 5q` in
8704	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8705	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8706	  lt_prog_compiler_pic='-KPIC'
8707	  lt_prog_compiler_static='-Bstatic'
8708	  lt_prog_compiler_wl=''
8709	  ;;
8710	*Sun\ F* | *Sun*Fortran*)
8711	  lt_prog_compiler_pic='-KPIC'
8712	  lt_prog_compiler_static='-Bstatic'
8713	  lt_prog_compiler_wl='-Qoption ld '
8714	  ;;
8715	*Sun\ C*)
8716	  # Sun C 5.9
8717	  lt_prog_compiler_pic='-KPIC'
8718	  lt_prog_compiler_static='-Bstatic'
8719	  lt_prog_compiler_wl='-Wl,'
8720	  ;;
8721        *Intel*\ [CF]*Compiler*)
8722	  lt_prog_compiler_wl='-Wl,'
8723	  lt_prog_compiler_pic='-fPIC'
8724	  lt_prog_compiler_static='-static'
8725	  ;;
8726	*Portland\ Group*)
8727	  lt_prog_compiler_wl='-Wl,'
8728	  lt_prog_compiler_pic='-fpic'
8729	  lt_prog_compiler_static='-Bstatic'
8730	  ;;
8731	esac
8732	;;
8733      esac
8734      ;;
8735
8736    newsos6)
8737      lt_prog_compiler_pic='-KPIC'
8738      lt_prog_compiler_static='-Bstatic'
8739      ;;
8740
8741    *nto* | *qnx*)
8742      # QNX uses GNU C++, but need to define -shared option too, otherwise
8743      # it will coredump.
8744      lt_prog_compiler_pic='-fPIC -shared'
8745      ;;
8746
8747    osf3* | osf4* | osf5*)
8748      lt_prog_compiler_wl='-Wl,'
8749      # All OSF/1 code is PIC.
8750      lt_prog_compiler_static='-non_shared'
8751      ;;
8752
8753    rdos*)
8754      lt_prog_compiler_static='-non_shared'
8755      ;;
8756
8757    solaris*)
8758      lt_prog_compiler_pic='-KPIC'
8759      lt_prog_compiler_static='-Bstatic'
8760      case $cc_basename in
8761      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8762	lt_prog_compiler_wl='-Qoption ld ';;
8763      *)
8764	lt_prog_compiler_wl='-Wl,';;
8765      esac
8766      ;;
8767
8768    sunos4*)
8769      lt_prog_compiler_wl='-Qoption ld '
8770      lt_prog_compiler_pic='-PIC'
8771      lt_prog_compiler_static='-Bstatic'
8772      ;;
8773
8774    sysv4 | sysv4.2uw2* | sysv4.3*)
8775      lt_prog_compiler_wl='-Wl,'
8776      lt_prog_compiler_pic='-KPIC'
8777      lt_prog_compiler_static='-Bstatic'
8778      ;;
8779
8780    sysv4*MP*)
8781      if test -d /usr/nec; then
8782	lt_prog_compiler_pic='-Kconform_pic'
8783	lt_prog_compiler_static='-Bstatic'
8784      fi
8785      ;;
8786
8787    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8788      lt_prog_compiler_wl='-Wl,'
8789      lt_prog_compiler_pic='-KPIC'
8790      lt_prog_compiler_static='-Bstatic'
8791      ;;
8792
8793    unicos*)
8794      lt_prog_compiler_wl='-Wl,'
8795      lt_prog_compiler_can_build_shared=no
8796      ;;
8797
8798    uts4*)
8799      lt_prog_compiler_pic='-pic'
8800      lt_prog_compiler_static='-Bstatic'
8801      ;;
8802
8803    *)
8804      lt_prog_compiler_can_build_shared=no
8805      ;;
8806    esac
8807  fi
8808
8809case $host_os in
8810  # For platforms that do not support PIC, -DPIC is meaningless:
8811  *djgpp*)
8812    lt_prog_compiler_pic=
8813    ;;
8814  *)
8815    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8816    ;;
8817esac
8818
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8820$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8821if ${lt_cv_prog_compiler_pic+:} false; then :
8822  $as_echo_n "(cached) " >&6
8823else
8824  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8825fi
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8827$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8828lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8829
8830#
8831# Check to make sure the PIC flag actually works.
8832#
8833if test -n "$lt_prog_compiler_pic"; then
8834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8835$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8836if ${lt_cv_prog_compiler_pic_works+:} false; then :
8837  $as_echo_n "(cached) " >&6
8838else
8839  lt_cv_prog_compiler_pic_works=no
8840   ac_outfile=conftest.$ac_objext
8841   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8843   # Insert the option either (1) after the last *FLAGS variable, or
8844   # (2) before a word containing "conftest.", or (3) at the end.
8845   # Note that $ac_compile itself does not contain backslashes and begins
8846   # with a dollar sign (not a hyphen), so the echo should work correctly.
8847   # The option is referenced via a variable to avoid confusing sed.
8848   lt_compile=`echo "$ac_compile" | $SED \
8849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8851   -e 's:$: $lt_compiler_flag:'`
8852   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8853   (eval "$lt_compile" 2>conftest.err)
8854   ac_status=$?
8855   cat conftest.err >&5
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   if (exit $ac_status) && test -s "$ac_outfile"; then
8858     # The compiler can only warn and ignore the option if not recognized
8859     # So say no if there are warnings other than the usual output.
8860     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8861     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8862     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8863       lt_cv_prog_compiler_pic_works=yes
8864     fi
8865   fi
8866   $RM conftest*
8867
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8870$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8871
8872if test yes = "$lt_cv_prog_compiler_pic_works"; then
8873    case $lt_prog_compiler_pic in
8874     "" | " "*) ;;
8875     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8876     esac
8877else
8878    lt_prog_compiler_pic=
8879     lt_prog_compiler_can_build_shared=no
8880fi
8881
8882fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894#
8895# Check to make sure the static flag actually works.
8896#
8897wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8899$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8900if ${lt_cv_prog_compiler_static_works+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  lt_cv_prog_compiler_static_works=no
8904   save_LDFLAGS=$LDFLAGS
8905   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8906   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8907   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8908     # The linker can only warn and ignore the option if not recognized
8909     # So say no if there are warnings
8910     if test -s conftest.err; then
8911       # Append any errors to the config.log.
8912       cat conftest.err 1>&5
8913       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8914       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8915       if diff conftest.exp conftest.er2 >/dev/null; then
8916         lt_cv_prog_compiler_static_works=yes
8917       fi
8918     else
8919       lt_cv_prog_compiler_static_works=yes
8920     fi
8921   fi
8922   $RM -r conftest*
8923   LDFLAGS=$save_LDFLAGS
8924
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8927$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8928
8929if test yes = "$lt_cv_prog_compiler_static_works"; then
8930    :
8931else
8932    lt_prog_compiler_static=
8933fi
8934
8935
8936
8937
8938
8939
8940
8941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8942$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8943if ${lt_cv_prog_compiler_c_o+:} false; then :
8944  $as_echo_n "(cached) " >&6
8945else
8946  lt_cv_prog_compiler_c_o=no
8947   $RM -r conftest 2>/dev/null
8948   mkdir conftest
8949   cd conftest
8950   mkdir out
8951   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8952
8953   lt_compiler_flag="-o out/conftest2.$ac_objext"
8954   # Insert the option either (1) after the last *FLAGS variable, or
8955   # (2) before a word containing "conftest.", or (3) at the end.
8956   # Note that $ac_compile itself does not contain backslashes and begins
8957   # with a dollar sign (not a hyphen), so the echo should work correctly.
8958   lt_compile=`echo "$ac_compile" | $SED \
8959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961   -e 's:$: $lt_compiler_flag:'`
8962   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8963   (eval "$lt_compile" 2>out/conftest.err)
8964   ac_status=$?
8965   cat out/conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968   then
8969     # The compiler can only warn and ignore the option if not recognized
8970     # So say no if there are warnings
8971     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8972     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8973     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8974       lt_cv_prog_compiler_c_o=yes
8975     fi
8976   fi
8977   chmod u+w . 2>&5
8978   $RM conftest*
8979   # SGI C++ compiler will create directory out/ii_files/ for
8980   # template instantiation
8981   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8982   $RM out/* && rmdir out
8983   cd ..
8984   $RM -r conftest
8985   $RM conftest*
8986
8987fi
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8989$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8990
8991
8992
8993
8994
8995
8996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998if ${lt_cv_prog_compiler_c_o+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  lt_cv_prog_compiler_c_o=no
9002   $RM -r conftest 2>/dev/null
9003   mkdir conftest
9004   cd conftest
9005   mkdir out
9006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008   lt_compiler_flag="-o out/conftest2.$ac_objext"
9009   # Insert the option either (1) after the last *FLAGS variable, or
9010   # (2) before a word containing "conftest.", or (3) at the end.
9011   # Note that $ac_compile itself does not contain backslashes and begins
9012   # with a dollar sign (not a hyphen), so the echo should work correctly.
9013   lt_compile=`echo "$ac_compile" | $SED \
9014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016   -e 's:$: $lt_compiler_flag:'`
9017   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018   (eval "$lt_compile" 2>out/conftest.err)
9019   ac_status=$?
9020   cat out/conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023   then
9024     # The compiler can only warn and ignore the option if not recognized
9025     # So say no if there are warnings
9026     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029       lt_cv_prog_compiler_c_o=yes
9030     fi
9031   fi
9032   chmod u+w . 2>&5
9033   $RM conftest*
9034   # SGI C++ compiler will create directory out/ii_files/ for
9035   # template instantiation
9036   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037   $RM out/* && rmdir out
9038   cd ..
9039   $RM -r conftest
9040   $RM conftest*
9041
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9045
9046
9047
9048
9049hard_links=nottested
9050if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9051  # do not overwrite the value of need_locks provided by the user
9052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9053$as_echo_n "checking if we can lock with hard links... " >&6; }
9054  hard_links=yes
9055  $RM conftest*
9056  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057  touch conftest.a
9058  ln conftest.a conftest.b 2>&5 || hard_links=no
9059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9061$as_echo "$hard_links" >&6; }
9062  if test no = "$hard_links"; then
9063    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9064$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9065    need_locks=warn
9066  fi
9067else
9068  need_locks=no
9069fi
9070
9071
9072
9073
9074
9075
9076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9077$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9078
9079  runpath_var=
9080  allow_undefined_flag=
9081  always_export_symbols=no
9082  archive_cmds=
9083  archive_expsym_cmds=
9084  compiler_needs_object=no
9085  enable_shared_with_static_runtimes=no
9086  export_dynamic_flag_spec=
9087  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9088  hardcode_automatic=no
9089  hardcode_direct=no
9090  hardcode_direct_absolute=no
9091  hardcode_libdir_flag_spec=
9092  hardcode_libdir_separator=
9093  hardcode_minus_L=no
9094  hardcode_shlibpath_var=unsupported
9095  inherit_rpath=no
9096  link_all_deplibs=unknown
9097  module_cmds=
9098  module_expsym_cmds=
9099  old_archive_from_new_cmds=
9100  old_archive_from_expsyms_cmds=
9101  thread_safe_flag_spec=
9102  whole_archive_flag_spec=
9103  # include_expsyms should be a list of space-separated symbols to be *always*
9104  # included in the symbol list
9105  include_expsyms=
9106  # exclude_expsyms can be an extended regexp of symbols to exclude
9107  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9108  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9109  # as well as any symbol that contains 'd'.
9110  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9111  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9112  # platforms (ab)use it in PIC code, but their linkers get confused if
9113  # the symbol is explicitly referenced.  Since portable code cannot
9114  # rely on this symbol name, it's probably fine to never include it in
9115  # preloaded symbol tables.
9116  # Exclude shared library initialization/finalization symbols.
9117  extract_expsyms_cmds=
9118
9119  case $host_os in
9120  cygwin* | mingw* | pw32* | cegcc*)
9121    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9122    # When not using gcc, we currently assume that we are using
9123    # Microsoft Visual C++.
9124    if test yes != "$GCC"; then
9125      with_gnu_ld=no
9126    fi
9127    ;;
9128  interix*)
9129    # we just hope/assume this is gcc and not c89 (= MSVC++)
9130    with_gnu_ld=yes
9131    ;;
9132  openbsd* | bitrig*)
9133    with_gnu_ld=no
9134    ;;
9135  linux* | k*bsd*-gnu | gnu*)
9136    link_all_deplibs=no
9137    ;;
9138  esac
9139
9140  ld_shlibs=yes
9141
9142  # On some targets, GNU ld is compatible enough with the native linker
9143  # that we're better off using the native interface for both.
9144  lt_use_gnu_ld_interface=no
9145  if test yes = "$with_gnu_ld"; then
9146    case $host_os in
9147      aix*)
9148	# The AIX port of GNU ld has always aspired to compatibility
9149	# with the native linker.  However, as the warning in the GNU ld
9150	# block says, versions before 2.19.5* couldn't really create working
9151	# shared libraries, regardless of the interface used.
9152	case `$LD -v 2>&1` in
9153	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9154	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9155	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9156	  *)
9157	    lt_use_gnu_ld_interface=yes
9158	    ;;
9159	esac
9160	;;
9161      *)
9162	lt_use_gnu_ld_interface=yes
9163	;;
9164    esac
9165  fi
9166
9167  if test yes = "$lt_use_gnu_ld_interface"; then
9168    # If archive_cmds runs LD, not CC, wlarc should be empty
9169    wlarc='$wl'
9170
9171    # Set some defaults for GNU ld with shared library support. These
9172    # are reset later if shared libraries are not supported. Putting them
9173    # here allows them to be overridden if necessary.
9174    runpath_var=LD_RUN_PATH
9175    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9176    export_dynamic_flag_spec='$wl--export-dynamic'
9177    # ancient GNU ld didn't support --whole-archive et. al.
9178    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9179      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9180    else
9181      whole_archive_flag_spec=
9182    fi
9183    supports_anon_versioning=no
9184    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9185      *GNU\ gold*) supports_anon_versioning=yes ;;
9186      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9187      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9188      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9189      *\ 2.11.*) ;; # other 2.11 versions
9190      *) supports_anon_versioning=yes ;;
9191    esac
9192
9193    # See if GNU ld supports shared libraries.
9194    case $host_os in
9195    aix[3-9]*)
9196      # On AIX/PPC, the GNU linker is very broken
9197      if test ia64 != "$host_cpu"; then
9198	ld_shlibs=no
9199	cat <<_LT_EOF 1>&2
9200
9201*** Warning: the GNU linker, at least up to release 2.19, is reported
9202*** to be unable to reliably create shared libraries on AIX.
9203*** Therefore, libtool is disabling shared libraries support.  If you
9204*** really care for shared libraries, you may want to install binutils
9205*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9206*** You will then need to restart the configuration process.
9207
9208_LT_EOF
9209      fi
9210      ;;
9211
9212    amigaos*)
9213      case $host_cpu in
9214      powerpc)
9215            # see comment about AmigaOS4 .so support
9216            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9217            archive_expsym_cmds=''
9218        ;;
9219      m68k)
9220            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)'
9221            hardcode_libdir_flag_spec='-L$libdir'
9222            hardcode_minus_L=yes
9223        ;;
9224      esac
9225      ;;
9226
9227    beos*)
9228      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229	allow_undefined_flag=unsupported
9230	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9231	# support --undefined.  This deserves some investigation.  FIXME
9232	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9233      else
9234	ld_shlibs=no
9235      fi
9236      ;;
9237
9238    cygwin* | mingw* | pw32* | cegcc*)
9239      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9240      # as there is no search path for DLLs.
9241      hardcode_libdir_flag_spec='-L$libdir'
9242      export_dynamic_flag_spec='$wl--export-all-symbols'
9243      allow_undefined_flag=unsupported
9244      always_export_symbols=no
9245      enable_shared_with_static_runtimes=yes
9246      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'
9247      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9248
9249      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9250        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9251	# If the export-symbols file already is a .def file, use it as
9252	# is; otherwise, prepend EXPORTS...
9253	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9254          cp $export_symbols $output_objdir/$soname.def;
9255        else
9256          echo EXPORTS > $output_objdir/$soname.def;
9257          cat $export_symbols >> $output_objdir/$soname.def;
9258        fi~
9259        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9260      else
9261	ld_shlibs=no
9262      fi
9263      ;;
9264
9265    haiku*)
9266      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267      link_all_deplibs=yes
9268      ;;
9269
9270    os2*)
9271      hardcode_libdir_flag_spec='-L$libdir'
9272      hardcode_minus_L=yes
9273      allow_undefined_flag=unsupported
9274      shrext_cmds=.dll
9275      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9276	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9277	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9278	$ECHO EXPORTS >> $output_objdir/$libname.def~
9279	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9280	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9281	emximp -o $lib $output_objdir/$libname.def'
9282      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9283	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9284	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9285	$ECHO EXPORTS >> $output_objdir/$libname.def~
9286	prefix_cmds="$SED"~
9287	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9288	  prefix_cmds="$prefix_cmds -e 1d";
9289	fi~
9290	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9291	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9292	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9293	emximp -o $lib $output_objdir/$libname.def'
9294      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9295      enable_shared_with_static_runtimes=yes
9296      ;;
9297
9298    interix[3-9]*)
9299      hardcode_direct=no
9300      hardcode_shlibpath_var=no
9301      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9302      export_dynamic_flag_spec='$wl-E'
9303      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9304      # Instead, shared libraries are loaded at an image base (0x10000000 by
9305      # default) and relocated if they conflict, which is a slow very memory
9306      # consuming and fragmenting process.  To avoid this, we pick a random,
9307      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9308      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9309      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9310      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'
9311      ;;
9312
9313    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9314      tmp_diet=no
9315      if test linux-dietlibc = "$host_os"; then
9316	case $cc_basename in
9317	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9318	esac
9319      fi
9320      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9321	 && test no = "$tmp_diet"
9322      then
9323	tmp_addflag=' $pic_flag'
9324	tmp_sharedflag='-shared'
9325	case $cc_basename,$host_cpu in
9326        pgcc*)				# Portland Group C compiler
9327	  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'
9328	  tmp_addflag=' $pic_flag'
9329	  ;;
9330	pgf77* | pgf90* | pgf95* | pgfortran*)
9331					# Portland Group f77 and f90 compilers
9332	  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'
9333	  tmp_addflag=' $pic_flag -Mnomain' ;;
9334	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9335	  tmp_addflag=' -i_dynamic' ;;
9336	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9337	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9338	ifc* | ifort*)			# Intel Fortran compiler
9339	  tmp_addflag=' -nofor_main' ;;
9340	lf95*)				# Lahey Fortran 8.1
9341	  whole_archive_flag_spec=
9342	  tmp_sharedflag='--shared' ;;
9343        nagfor*)                        # NAGFOR 5.3
9344          tmp_sharedflag='-Wl,-shared' ;;
9345	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9346	  tmp_sharedflag='-qmkshrobj'
9347	  tmp_addflag= ;;
9348	nvcc*)	# Cuda Compiler Driver 2.2
9349	  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'
9350	  compiler_needs_object=yes
9351	  ;;
9352	esac
9353	case `$CC -V 2>&1 | sed 5q` in
9354	*Sun\ C*)			# Sun C 5.9
9355	  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'
9356	  compiler_needs_object=yes
9357	  tmp_sharedflag='-G' ;;
9358	*Sun\ F*)			# Sun Fortran 8.3
9359	  tmp_sharedflag='-G' ;;
9360	esac
9361	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9362
9363        if test yes = "$supports_anon_versioning"; then
9364          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9365            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9366            echo "local: *; };" >> $output_objdir/$libname.ver~
9367            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9368        fi
9369
9370	case $cc_basename in
9371	tcc*)
9372	  export_dynamic_flag_spec='-rdynamic'
9373	  ;;
9374	xlf* | bgf* | bgxlf* | mpixlf*)
9375	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9378	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9379	  if test yes = "$supports_anon_versioning"; then
9380	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9381              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9382              echo "local: *; };" >> $output_objdir/$libname.ver~
9383              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9384	  fi
9385	  ;;
9386	esac
9387      else
9388        ld_shlibs=no
9389      fi
9390      ;;
9391
9392    netbsd* | netbsdelf*-gnu)
9393      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9394	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9395	wlarc=
9396      else
9397	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9398	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9399      fi
9400      ;;
9401
9402    solaris*)
9403      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9404	ld_shlibs=no
9405	cat <<_LT_EOF 1>&2
9406
9407*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9408*** create shared libraries on Solaris systems.  Therefore, libtool
9409*** is disabling shared libraries support.  We urge you to upgrade GNU
9410*** binutils to release 2.9.1 or newer.  Another option is to modify
9411*** your PATH or compiler configuration so that the native linker is
9412*** used, and then restart.
9413
9414_LT_EOF
9415      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9416	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9417	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9418      else
9419	ld_shlibs=no
9420      fi
9421      ;;
9422
9423    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9424      case `$LD -v 2>&1` in
9425        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9426	ld_shlibs=no
9427	cat <<_LT_EOF 1>&2
9428
9429*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9430*** reliably create shared libraries on SCO systems.  Therefore, libtool
9431*** is disabling shared libraries support.  We urge you to upgrade GNU
9432*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9433*** your PATH or compiler configuration so that the native linker is
9434*** used, and then restart.
9435
9436_LT_EOF
9437	;;
9438	*)
9439	  # For security reasons, it is highly recommended that you always
9440	  # use absolute paths for naming shared libraries, and exclude the
9441	  # DT_RUNPATH tag from executables and libraries.  But doing so
9442	  # requires that you compile everything twice, which is a pain.
9443	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9445	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9446	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9447	  else
9448	    ld_shlibs=no
9449	  fi
9450	;;
9451      esac
9452      ;;
9453
9454    sunos4*)
9455      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9456      wlarc=
9457      hardcode_direct=yes
9458      hardcode_shlibpath_var=no
9459      ;;
9460
9461    *)
9462      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9463	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9464	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9465      else
9466	ld_shlibs=no
9467      fi
9468      ;;
9469    esac
9470
9471    if test no = "$ld_shlibs"; then
9472      runpath_var=
9473      hardcode_libdir_flag_spec=
9474      export_dynamic_flag_spec=
9475      whole_archive_flag_spec=
9476    fi
9477  else
9478    # PORTME fill in a description of your system's linker (not GNU ld)
9479    case $host_os in
9480    aix3*)
9481      allow_undefined_flag=unsupported
9482      always_export_symbols=yes
9483      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'
9484      # Note: this linker hardcodes the directories in LIBPATH if there
9485      # are no directories specified by -L.
9486      hardcode_minus_L=yes
9487      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9488	# Neither direct hardcoding nor static linking is supported with a
9489	# broken collect2.
9490	hardcode_direct=unsupported
9491      fi
9492      ;;
9493
9494    aix[4-9]*)
9495      if test ia64 = "$host_cpu"; then
9496	# On IA64, the linker does run time linking by default, so we don't
9497	# have to do anything special.
9498	aix_use_runtimelinking=no
9499	exp_sym_flag='-Bexport'
9500	no_entry_flag=
9501      else
9502	# If we're using GNU nm, then we don't want the "-C" option.
9503	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9504	# Without the "-l" option, or with the "-B" option, AIX nm treats
9505	# weak defined symbols like other global defined symbols, whereas
9506	# GNU nm marks them as "W".
9507	# While the 'weak' keyword is ignored in the Export File, we need
9508	# it in the Import File for the 'aix-soname' feature, so we have
9509	# to replace the "-B" option with "-P" for AIX nm.
9510	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9511	  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'
9512	else
9513	  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'
9514	fi
9515	aix_use_runtimelinking=no
9516
9517	# Test if we are trying to use run time linking or normal
9518	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9519	# have runtime linking enabled, and use it for executables.
9520	# For shared libraries, we enable/disable runtime linking
9521	# depending on the kind of the shared library created -
9522	# when "with_aix_soname,aix_use_runtimelinking" is:
9523	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9524	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9525	#            lib.a           static archive
9526	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9527	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9528	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9529	#            lib.a(lib.so.V) shared, rtl:no
9530	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9531	#            lib.a           static archive
9532	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533	  for ld_flag in $LDFLAGS; do
9534	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9535	    aix_use_runtimelinking=yes
9536	    break
9537	  fi
9538	  done
9539	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9540	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9541	    # so we don't have lib.a shared libs to link our executables.
9542	    # We have to force runtime linking in this case.
9543	    aix_use_runtimelinking=yes
9544	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9545	  fi
9546	  ;;
9547	esac
9548
9549	exp_sym_flag='-bexport'
9550	no_entry_flag='-bnoentry'
9551      fi
9552
9553      # When large executables or shared objects are built, AIX ld can
9554      # have problems creating the table of contents.  If linking a library
9555      # or program results in "error TOC overflow" add -mminimal-toc to
9556      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9557      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9558
9559      archive_cmds=''
9560      hardcode_direct=yes
9561      hardcode_direct_absolute=yes
9562      hardcode_libdir_separator=':'
9563      link_all_deplibs=yes
9564      file_list_spec='$wl-f,'
9565      case $with_aix_soname,$aix_use_runtimelinking in
9566      aix,*) ;; # traditional, no import file
9567      svr4,* | *,yes) # use import file
9568	# The Import File defines what to hardcode.
9569	hardcode_direct=no
9570	hardcode_direct_absolute=no
9571	;;
9572      esac
9573
9574      if test yes = "$GCC"; then
9575	case $host_os in aix4.[012]|aix4.[012].*)
9576	# We only want to do this on AIX 4.2 and lower, the check
9577	# below for broken collect2 doesn't work under 4.3+
9578	  collect2name=`$CC -print-prog-name=collect2`
9579	  if test -f "$collect2name" &&
9580	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9581	  then
9582	  # We have reworked collect2
9583	  :
9584	  else
9585	  # We have old collect2
9586	  hardcode_direct=unsupported
9587	  # It fails to find uninstalled libraries when the uninstalled
9588	  # path is not listed in the libpath.  Setting hardcode_minus_L
9589	  # to unsupported forces relinking
9590	  hardcode_minus_L=yes
9591	  hardcode_libdir_flag_spec='-L$libdir'
9592	  hardcode_libdir_separator=
9593	  fi
9594	  ;;
9595	esac
9596	shared_flag='-shared'
9597	if test yes = "$aix_use_runtimelinking"; then
9598	  shared_flag="$shared_flag "'$wl-G'
9599	fi
9600	# Need to ensure runtime linking is disabled for the traditional
9601	# shared library, or the linker may eventually find shared libraries
9602	# /with/ Import File - we do not want to mix them.
9603	shared_flag_aix='-shared'
9604	shared_flag_svr4='-shared $wl-G'
9605      else
9606	# not using gcc
9607	if test ia64 = "$host_cpu"; then
9608	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9609	# chokes on -Wl,-G. The following line is correct:
9610	  shared_flag='-G'
9611	else
9612	  if test yes = "$aix_use_runtimelinking"; then
9613	    shared_flag='$wl-G'
9614	  else
9615	    shared_flag='$wl-bM:SRE'
9616	  fi
9617	  shared_flag_aix='$wl-bM:SRE'
9618	  shared_flag_svr4='$wl-G'
9619	fi
9620      fi
9621
9622      export_dynamic_flag_spec='$wl-bexpall'
9623      # It seems that -bexpall does not export symbols beginning with
9624      # underscore (_), so it is better to generate a list of symbols to export.
9625      always_export_symbols=yes
9626      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9627	# Warning - without using the other runtime loading flags (-brtl),
9628	# -berok will link without error, but may produce a broken library.
9629	allow_undefined_flag='-berok'
9630        # Determine the default libpath from the value encoded in an
9631        # empty executable.
9632        if test set = "${lt_cv_aix_libpath+set}"; then
9633  aix_libpath=$lt_cv_aix_libpath
9634else
9635  if ${lt_cv_aix_libpath_+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639/* end confdefs.h.  */
9640
9641int
9642main ()
9643{
9644
9645  ;
9646  return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650
9651  lt_aix_libpath_sed='
9652      /Import File Strings/,/^$/ {
9653	  /^0/ {
9654	      s/^0  *\([^ ]*\) *$/\1/
9655	      p
9656	  }
9657      }'
9658  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659  # Check for a 64-bit object if we didn't find anything.
9660  if test -z "$lt_cv_aix_libpath_"; then
9661    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9662  fi
9663fi
9664rm -f core conftest.err conftest.$ac_objext \
9665    conftest$ac_exeext conftest.$ac_ext
9666  if test -z "$lt_cv_aix_libpath_"; then
9667    lt_cv_aix_libpath_=/usr/lib:/lib
9668  fi
9669
9670fi
9671
9672  aix_libpath=$lt_cv_aix_libpath_
9673fi
9674
9675        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9676        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
9677      else
9678	if test ia64 = "$host_cpu"; then
9679	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9680	  allow_undefined_flag="-z nodefs"
9681	  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"
9682	else
9683	 # Determine the default libpath from the value encoded in an
9684	 # empty executable.
9685	 if test set = "${lt_cv_aix_libpath+set}"; then
9686  aix_libpath=$lt_cv_aix_libpath
9687else
9688  if ${lt_cv_aix_libpath_+:} false; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693
9694int
9695main ()
9696{
9697
9698  ;
9699  return 0;
9700}
9701_ACEOF
9702if ac_fn_c_try_link "$LINENO"; then :
9703
9704  lt_aix_libpath_sed='
9705      /Import File Strings/,/^$/ {
9706	  /^0/ {
9707	      s/^0  *\([^ ]*\) *$/\1/
9708	      p
9709	  }
9710      }'
9711  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712  # Check for a 64-bit object if we didn't find anything.
9713  if test -z "$lt_cv_aix_libpath_"; then
9714    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9715  fi
9716fi
9717rm -f core conftest.err conftest.$ac_objext \
9718    conftest$ac_exeext conftest.$ac_ext
9719  if test -z "$lt_cv_aix_libpath_"; then
9720    lt_cv_aix_libpath_=/usr/lib:/lib
9721  fi
9722
9723fi
9724
9725  aix_libpath=$lt_cv_aix_libpath_
9726fi
9727
9728	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9729	  # Warning - without using the other run time loading flags,
9730	  # -berok will link without error, but may produce a broken library.
9731	  no_undefined_flag=' $wl-bernotok'
9732	  allow_undefined_flag=' $wl-berok'
9733	  if test yes = "$with_gnu_ld"; then
9734	    # We only use this code for GNU lds that support --whole-archive.
9735	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9736	  else
9737	    # Exported symbols can be pulled into shared objects from archives
9738	    whole_archive_flag_spec='$convenience'
9739	  fi
9740	  archive_cmds_need_lc=yes
9741	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9742	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9743	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9744	  if test svr4 != "$with_aix_soname"; then
9745	    # This is similar to how AIX traditionally builds its shared libraries.
9746	    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'
9747	  fi
9748	  if test aix != "$with_aix_soname"; then
9749	    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'
9750	  else
9751	    # used by -dlpreopen to get the symbols
9752	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9753	  fi
9754	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9755	fi
9756      fi
9757      ;;
9758
9759    amigaos*)
9760      case $host_cpu in
9761      powerpc)
9762            # see comment about AmigaOS4 .so support
9763            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9764            archive_expsym_cmds=''
9765        ;;
9766      m68k)
9767            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)'
9768            hardcode_libdir_flag_spec='-L$libdir'
9769            hardcode_minus_L=yes
9770        ;;
9771      esac
9772      ;;
9773
9774    bsdi[45]*)
9775      export_dynamic_flag_spec=-rdynamic
9776      ;;
9777
9778    cygwin* | mingw* | pw32* | cegcc*)
9779      # When not using gcc, we currently assume that we are using
9780      # Microsoft Visual C++.
9781      # hardcode_libdir_flag_spec is actually meaningless, as there is
9782      # no search path for DLLs.
9783      case $cc_basename in
9784      cl*)
9785	# Native MSVC
9786	hardcode_libdir_flag_spec=' '
9787	allow_undefined_flag=unsupported
9788	always_export_symbols=yes
9789	file_list_spec='@'
9790	# Tell ltmain to make .lib files, not .a files.
9791	libext=lib
9792	# Tell ltmain to make .dll files, not .so files.
9793	shrext_cmds=.dll
9794	# FIXME: Setting linknames here is a bad hack.
9795	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9796	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9797            cp "$export_symbols" "$output_objdir/$soname.def";
9798            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9799          else
9800            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9801          fi~
9802          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9803          linknames='
9804	# The linker will not automatically build a static lib if we build a DLL.
9805	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9806	enable_shared_with_static_runtimes=yes
9807	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9808	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9809	# Don't use ranlib
9810	old_postinstall_cmds='chmod 644 $oldlib'
9811	postlink_cmds='lt_outputfile="@OUTPUT@"~
9812          lt_tool_outputfile="@TOOL_OUTPUT@"~
9813          case $lt_outputfile in
9814            *.exe|*.EXE) ;;
9815            *)
9816              lt_outputfile=$lt_outputfile.exe
9817              lt_tool_outputfile=$lt_tool_outputfile.exe
9818              ;;
9819          esac~
9820          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9821            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9822            $RM "$lt_outputfile.manifest";
9823          fi'
9824	;;
9825      *)
9826	# Assume MSVC wrapper
9827	hardcode_libdir_flag_spec=' '
9828	allow_undefined_flag=unsupported
9829	# Tell ltmain to make .lib files, not .a files.
9830	libext=lib
9831	# Tell ltmain to make .dll files, not .so files.
9832	shrext_cmds=.dll
9833	# FIXME: Setting linknames here is a bad hack.
9834	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9835	# The linker will automatically build a .lib file if we build a DLL.
9836	old_archive_from_new_cmds='true'
9837	# FIXME: Should let the user specify the lib program.
9838	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9839	enable_shared_with_static_runtimes=yes
9840	;;
9841      esac
9842      ;;
9843
9844    darwin* | rhapsody*)
9845
9846
9847  archive_cmds_need_lc=no
9848  hardcode_direct=no
9849  hardcode_automatic=yes
9850  hardcode_shlibpath_var=unsupported
9851  if test yes = "$lt_cv_ld_force_load"; then
9852    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\"`'
9853
9854  else
9855    whole_archive_flag_spec=''
9856  fi
9857  link_all_deplibs=yes
9858  allow_undefined_flag=$_lt_dar_allow_undefined
9859  case $cc_basename in
9860     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9861     *) _lt_dar_can_shared=$GCC ;;
9862  esac
9863  if test yes = "$_lt_dar_can_shared"; then
9864    output_verbose_link_cmd=func_echo_all
9865    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9866    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9867    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"
9868    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"
9869
9870  else
9871  ld_shlibs=no
9872  fi
9873
9874      ;;
9875
9876    dgux*)
9877      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878      hardcode_libdir_flag_spec='-L$libdir'
9879      hardcode_shlibpath_var=no
9880      ;;
9881
9882    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9883    # support.  Future versions do this automatically, but an explicit c++rt0.o
9884    # does not break anything, and helps significantly (at the cost of a little
9885    # extra space).
9886    freebsd2.2*)
9887      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9888      hardcode_libdir_flag_spec='-R$libdir'
9889      hardcode_direct=yes
9890      hardcode_shlibpath_var=no
9891      ;;
9892
9893    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9894    freebsd2.*)
9895      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896      hardcode_direct=yes
9897      hardcode_minus_L=yes
9898      hardcode_shlibpath_var=no
9899      ;;
9900
9901    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9902    freebsd* | dragonfly*)
9903      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904      hardcode_libdir_flag_spec='-R$libdir'
9905      hardcode_direct=yes
9906      hardcode_shlibpath_var=no
9907      ;;
9908
9909    hpux9*)
9910      if test yes = "$GCC"; then
9911	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'
9912      else
9913	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'
9914      fi
9915      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9916      hardcode_libdir_separator=:
9917      hardcode_direct=yes
9918
9919      # hardcode_minus_L: Not really in the search PATH,
9920      # but as the default location of the library.
9921      hardcode_minus_L=yes
9922      export_dynamic_flag_spec='$wl-E'
9923      ;;
9924
9925    hpux10*)
9926      if test yes,no = "$GCC,$with_gnu_ld"; then
9927	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928      else
9929	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930      fi
9931      if test no = "$with_gnu_ld"; then
9932	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9933	hardcode_libdir_separator=:
9934	hardcode_direct=yes
9935	hardcode_direct_absolute=yes
9936	export_dynamic_flag_spec='$wl-E'
9937	# hardcode_minus_L: Not really in the search PATH,
9938	# but as the default location of the library.
9939	hardcode_minus_L=yes
9940      fi
9941      ;;
9942
9943    hpux11*)
9944      if test yes,no = "$GCC,$with_gnu_ld"; then
9945	case $host_cpu in
9946	hppa*64*)
9947	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9948	  ;;
9949	ia64*)
9950	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951	  ;;
9952	*)
9953	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954	  ;;
9955	esac
9956      else
9957	case $host_cpu in
9958	hppa*64*)
9959	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9960	  ;;
9961	ia64*)
9962	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963	  ;;
9964	*)
9965
9966	  # Older versions of the 11.00 compiler do not understand -b yet
9967	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9968	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9969$as_echo_n "checking if $CC understands -b... " >&6; }
9970if ${lt_cv_prog_compiler__b+:} false; then :
9971  $as_echo_n "(cached) " >&6
9972else
9973  lt_cv_prog_compiler__b=no
9974   save_LDFLAGS=$LDFLAGS
9975   LDFLAGS="$LDFLAGS -b"
9976   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9977   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9978     # The linker can only warn and ignore the option if not recognized
9979     # So say no if there are warnings
9980     if test -s conftest.err; then
9981       # Append any errors to the config.log.
9982       cat conftest.err 1>&5
9983       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9984       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9985       if diff conftest.exp conftest.er2 >/dev/null; then
9986         lt_cv_prog_compiler__b=yes
9987       fi
9988     else
9989       lt_cv_prog_compiler__b=yes
9990     fi
9991   fi
9992   $RM -r conftest*
9993   LDFLAGS=$save_LDFLAGS
9994
9995fi
9996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9997$as_echo "$lt_cv_prog_compiler__b" >&6; }
9998
9999if test yes = "$lt_cv_prog_compiler__b"; then
10000    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10001else
10002    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003fi
10004
10005	  ;;
10006	esac
10007      fi
10008      if test no = "$with_gnu_ld"; then
10009	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10010	hardcode_libdir_separator=:
10011
10012	case $host_cpu in
10013	hppa*64*|ia64*)
10014	  hardcode_direct=no
10015	  hardcode_shlibpath_var=no
10016	  ;;
10017	*)
10018	  hardcode_direct=yes
10019	  hardcode_direct_absolute=yes
10020	  export_dynamic_flag_spec='$wl-E'
10021
10022	  # hardcode_minus_L: Not really in the search PATH,
10023	  # but as the default location of the library.
10024	  hardcode_minus_L=yes
10025	  ;;
10026	esac
10027      fi
10028      ;;
10029
10030    irix5* | irix6* | nonstopux*)
10031      if test yes = "$GCC"; then
10032	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'
10033	# Try to use the -exported_symbol ld option, if it does not
10034	# work, assume that -exports_file does not work either and
10035	# implicitly export all symbols.
10036	# This should be the same for all languages, so no per-tag cache variable.
10037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10038$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10039if ${lt_cv_irix_exported_symbol+:} false; then :
10040  $as_echo_n "(cached) " >&6
10041else
10042  save_LDFLAGS=$LDFLAGS
10043	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10044	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int foo (void) { return 0; }
10047_ACEOF
10048if ac_fn_c_try_link "$LINENO"; then :
10049  lt_cv_irix_exported_symbol=yes
10050else
10051  lt_cv_irix_exported_symbol=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext \
10054    conftest$ac_exeext conftest.$ac_ext
10055           LDFLAGS=$save_LDFLAGS
10056fi
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10058$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10059	if test yes = "$lt_cv_irix_exported_symbol"; then
10060          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'
10061	fi
10062	link_all_deplibs=no
10063      else
10064	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'
10065	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'
10066      fi
10067      archive_cmds_need_lc='no'
10068      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069      hardcode_libdir_separator=:
10070      inherit_rpath=yes
10071      link_all_deplibs=yes
10072      ;;
10073
10074    linux*)
10075      case $cc_basename in
10076      tcc*)
10077	# Fabrice Bellard et al's Tiny C Compiler
10078	ld_shlibs=yes
10079	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080	;;
10081      esac
10082      ;;
10083
10084    netbsd* | netbsdelf*-gnu)
10085      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10086	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10087      else
10088	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10089      fi
10090      hardcode_libdir_flag_spec='-R$libdir'
10091      hardcode_direct=yes
10092      hardcode_shlibpath_var=no
10093      ;;
10094
10095    newsos6)
10096      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097      hardcode_direct=yes
10098      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10099      hardcode_libdir_separator=:
10100      hardcode_shlibpath_var=no
10101      ;;
10102
10103    *nto* | *qnx*)
10104      ;;
10105
10106    openbsd* | bitrig*)
10107      if test -f /usr/libexec/ld.so; then
10108	hardcode_direct=yes
10109	hardcode_shlibpath_var=no
10110	hardcode_direct_absolute=yes
10111	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10112	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10113	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10114	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10115	  export_dynamic_flag_spec='$wl-E'
10116	else
10117	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10118	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10119	fi
10120      else
10121	ld_shlibs=no
10122      fi
10123      ;;
10124
10125    os2*)
10126      hardcode_libdir_flag_spec='-L$libdir'
10127      hardcode_minus_L=yes
10128      allow_undefined_flag=unsupported
10129      shrext_cmds=.dll
10130      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10131	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10132	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10133	$ECHO EXPORTS >> $output_objdir/$libname.def~
10134	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10135	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10136	emximp -o $lib $output_objdir/$libname.def'
10137      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10138	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10139	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10140	$ECHO EXPORTS >> $output_objdir/$libname.def~
10141	prefix_cmds="$SED"~
10142	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10143	  prefix_cmds="$prefix_cmds -e 1d";
10144	fi~
10145	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10146	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10147	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10148	emximp -o $lib $output_objdir/$libname.def'
10149      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10150      enable_shared_with_static_runtimes=yes
10151      ;;
10152
10153    osf3*)
10154      if test yes = "$GCC"; then
10155	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10156	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'
10157      else
10158	allow_undefined_flag=' -expect_unresolved \*'
10159	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'
10160      fi
10161      archive_cmds_need_lc='no'
10162      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10163      hardcode_libdir_separator=:
10164      ;;
10165
10166    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10167      if test yes = "$GCC"; then
10168	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10169	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'
10170	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10171      else
10172	allow_undefined_flag=' -expect_unresolved \*'
10173	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'
10174	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~
10175          $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'
10176
10177	# Both c and cxx compiler support -rpath directly
10178	hardcode_libdir_flag_spec='-rpath $libdir'
10179      fi
10180      archive_cmds_need_lc='no'
10181      hardcode_libdir_separator=:
10182      ;;
10183
10184    solaris*)
10185      no_undefined_flag=' -z defs'
10186      if test yes = "$GCC"; then
10187	wlarc='$wl'
10188	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10189	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10190          $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'
10191      else
10192	case `$CC -V 2>&1` in
10193	*"Compilers 5.0"*)
10194	  wlarc=''
10195	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10197            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10198	  ;;
10199	*)
10200	  wlarc='$wl'
10201	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10202	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10203            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10204	  ;;
10205	esac
10206      fi
10207      hardcode_libdir_flag_spec='-R$libdir'
10208      hardcode_shlibpath_var=no
10209      case $host_os in
10210      solaris2.[0-5] | solaris2.[0-5].*) ;;
10211      *)
10212	# The compiler driver will combine and reorder linker options,
10213	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10214	# but is careful enough not to reorder.
10215	# Supported since Solaris 2.6 (maybe 2.5.1?)
10216	if test yes = "$GCC"; then
10217	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10218	else
10219	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10220	fi
10221	;;
10222      esac
10223      link_all_deplibs=yes
10224      ;;
10225
10226    sunos4*)
10227      if test sequent = "$host_vendor"; then
10228	# Use $CC to link under sequent, because it throws in some extra .o
10229	# files that make .init and .fini sections work.
10230	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231      else
10232	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10233      fi
10234      hardcode_libdir_flag_spec='-L$libdir'
10235      hardcode_direct=yes
10236      hardcode_minus_L=yes
10237      hardcode_shlibpath_var=no
10238      ;;
10239
10240    sysv4)
10241      case $host_vendor in
10242	sni)
10243	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244	  hardcode_direct=yes # is this really true???
10245	;;
10246	siemens)
10247	  ## LD is ld it makes a PLAMLIB
10248	  ## CC just makes a GrossModule.
10249	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10250	  reload_cmds='$CC -r -o $output$reload_objs'
10251	  hardcode_direct=no
10252        ;;
10253	motorola)
10254	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10255	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10256	;;
10257      esac
10258      runpath_var='LD_RUN_PATH'
10259      hardcode_shlibpath_var=no
10260      ;;
10261
10262    sysv4.3*)
10263      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264      hardcode_shlibpath_var=no
10265      export_dynamic_flag_spec='-Bexport'
10266      ;;
10267
10268    sysv4*MP*)
10269      if test -d /usr/nec; then
10270	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271	hardcode_shlibpath_var=no
10272	runpath_var=LD_RUN_PATH
10273	hardcode_runpath_var=yes
10274	ld_shlibs=yes
10275      fi
10276      ;;
10277
10278    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10279      no_undefined_flag='$wl-z,text'
10280      archive_cmds_need_lc=no
10281      hardcode_shlibpath_var=no
10282      runpath_var='LD_RUN_PATH'
10283
10284      if test yes = "$GCC"; then
10285	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287      else
10288	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290      fi
10291      ;;
10292
10293    sysv5* | sco3.2v5* | sco5v6*)
10294      # Note: We CANNOT use -z defs as we might desire, because we do not
10295      # link with -lc, and that would cause any symbols used from libc to
10296      # always be unresolved, which means just about no library would
10297      # ever link correctly.  If we're not using GNU ld we use -z text
10298      # though, which does catch some bad symbols but isn't as heavy-handed
10299      # as -z defs.
10300      no_undefined_flag='$wl-z,text'
10301      allow_undefined_flag='$wl-z,nodefs'
10302      archive_cmds_need_lc=no
10303      hardcode_shlibpath_var=no
10304      hardcode_libdir_flag_spec='$wl-R,$libdir'
10305      hardcode_libdir_separator=':'
10306      link_all_deplibs=yes
10307      export_dynamic_flag_spec='$wl-Bexport'
10308      runpath_var='LD_RUN_PATH'
10309
10310      if test yes = "$GCC"; then
10311	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313      else
10314	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316      fi
10317      ;;
10318
10319    uts4*)
10320      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321      hardcode_libdir_flag_spec='-L$libdir'
10322      hardcode_shlibpath_var=no
10323      ;;
10324
10325    *)
10326      ld_shlibs=no
10327      ;;
10328    esac
10329
10330    if test sni = "$host_vendor"; then
10331      case $host in
10332      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10333	export_dynamic_flag_spec='$wl-Blargedynsym'
10334	;;
10335      esac
10336    fi
10337  fi
10338
10339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10340$as_echo "$ld_shlibs" >&6; }
10341test no = "$ld_shlibs" && can_build_shared=no
10342
10343with_gnu_ld=$with_gnu_ld
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359#
10360# Do we need to explicitly link libc?
10361#
10362case "x$archive_cmds_need_lc" in
10363x|xyes)
10364  # Assume -lc should be added
10365  archive_cmds_need_lc=yes
10366
10367  if test yes,yes = "$GCC,$enable_shared"; then
10368    case $archive_cmds in
10369    *'~'*)
10370      # FIXME: we may have to deal with multi-command sequences.
10371      ;;
10372    '$CC '*)
10373      # Test whether the compiler implicitly links with -lc since on some
10374      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10375      # to ld, don't add -lc before -lgcc.
10376      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10377$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10378if ${lt_cv_archive_cmds_need_lc+:} false; then :
10379  $as_echo_n "(cached) " >&6
10380else
10381  $RM conftest*
10382	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10383
10384	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10385  (eval $ac_compile) 2>&5
10386  ac_status=$?
10387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10388  test $ac_status = 0; } 2>conftest.err; then
10389	  soname=conftest
10390	  lib=conftest
10391	  libobjs=conftest.$ac_objext
10392	  deplibs=
10393	  wl=$lt_prog_compiler_wl
10394	  pic_flag=$lt_prog_compiler_pic
10395	  compiler_flags=-v
10396	  linker_flags=-v
10397	  verstring=
10398	  output_objdir=.
10399	  libname=conftest
10400	  lt_save_allow_undefined_flag=$allow_undefined_flag
10401	  allow_undefined_flag=
10402	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10403  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10404  ac_status=$?
10405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406  test $ac_status = 0; }
10407	  then
10408	    lt_cv_archive_cmds_need_lc=no
10409	  else
10410	    lt_cv_archive_cmds_need_lc=yes
10411	  fi
10412	  allow_undefined_flag=$lt_save_allow_undefined_flag
10413	else
10414	  cat conftest.err 1>&5
10415	fi
10416	$RM conftest*
10417
10418fi
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10420$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10421      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10422      ;;
10423    esac
10424  fi
10425  ;;
10426esac
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10580$as_echo_n "checking dynamic linker characteristics... " >&6; }
10581
10582if test yes = "$GCC"; then
10583  case $host_os in
10584    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10585    *) lt_awk_arg='/^libraries:/' ;;
10586  esac
10587  case $host_os in
10588    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10589    *) lt_sed_strip_eq='s|=/|/|g' ;;
10590  esac
10591  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10592  case $lt_search_path_spec in
10593  *\;*)
10594    # if the path contains ";" then we assume it to be the separator
10595    # otherwise default to the standard path separator (i.e. ":") - it is
10596    # assumed that no part of a normal pathname contains ";" but that should
10597    # okay in the real world where ";" in dirpaths is itself problematic.
10598    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10599    ;;
10600  *)
10601    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10602    ;;
10603  esac
10604  # Ok, now we have the path, separated by spaces, we can step through it
10605  # and add multilib dir if necessary...
10606  lt_tmp_lt_search_path_spec=
10607  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10608  # ...but if some path component already ends with the multilib dir we assume
10609  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10610  case "$lt_multi_os_dir; $lt_search_path_spec " in
10611  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10612    lt_multi_os_dir=
10613    ;;
10614  esac
10615  for lt_sys_path in $lt_search_path_spec; do
10616    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10617      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10618    elif test -n "$lt_multi_os_dir"; then
10619      test -d "$lt_sys_path" && \
10620	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10621    fi
10622  done
10623  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10624BEGIN {RS = " "; FS = "/|\n";} {
10625  lt_foo = "";
10626  lt_count = 0;
10627  for (lt_i = NF; lt_i > 0; lt_i--) {
10628    if ($lt_i != "" && $lt_i != ".") {
10629      if ($lt_i == "..") {
10630        lt_count++;
10631      } else {
10632        if (lt_count == 0) {
10633          lt_foo = "/" $lt_i lt_foo;
10634        } else {
10635          lt_count--;
10636        }
10637      }
10638    }
10639  }
10640  if (lt_foo != "") { lt_freq[lt_foo]++; }
10641  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10642}'`
10643  # AWK program above erroneously prepends '/' to C:/dos/paths
10644  # for these hosts.
10645  case $host_os in
10646    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10647      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10648  esac
10649  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10650else
10651  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10652fi
10653library_names_spec=
10654libname_spec='lib$name'
10655soname_spec=
10656shrext_cmds=.so
10657postinstall_cmds=
10658postuninstall_cmds=
10659finish_cmds=
10660finish_eval=
10661shlibpath_var=
10662shlibpath_overrides_runpath=unknown
10663version_type=none
10664dynamic_linker="$host_os ld.so"
10665sys_lib_dlsearch_path_spec="/lib /usr/lib"
10666need_lib_prefix=unknown
10667hardcode_into_libs=no
10668
10669# when you set need_version to no, make sure it does not cause -set_version
10670# flags to be left without arguments
10671need_version=unknown
10672
10673
10674
10675case $host_os in
10676aix3*)
10677  version_type=linux # correct to gnu/linux during the next big refactor
10678  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10679  shlibpath_var=LIBPATH
10680
10681  # AIX 3 has no versioning support, so we append a major version to the name.
10682  soname_spec='$libname$release$shared_ext$major'
10683  ;;
10684
10685aix[4-9]*)
10686  version_type=linux # correct to gnu/linux during the next big refactor
10687  need_lib_prefix=no
10688  need_version=no
10689  hardcode_into_libs=yes
10690  if test ia64 = "$host_cpu"; then
10691    # AIX 5 supports IA64
10692    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10693    shlibpath_var=LD_LIBRARY_PATH
10694  else
10695    # With GCC up to 2.95.x, collect2 would create an import file
10696    # for dependence libraries.  The import file would start with
10697    # the line '#! .'.  This would cause the generated library to
10698    # depend on '.', always an invalid library.  This was fixed in
10699    # development snapshots of GCC prior to 3.0.
10700    case $host_os in
10701      aix4 | aix4.[01] | aix4.[01].*)
10702      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10703	   echo ' yes '
10704	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10705	:
10706      else
10707	can_build_shared=no
10708      fi
10709      ;;
10710    esac
10711    # Using Import Files as archive members, it is possible to support
10712    # filename-based versioning of shared library archives on AIX. While
10713    # this would work for both with and without runtime linking, it will
10714    # prevent static linking of such archives. So we do filename-based
10715    # shared library versioning with .so extension only, which is used
10716    # when both runtime linking and shared linking is enabled.
10717    # Unfortunately, runtime linking may impact performance, so we do
10718    # not want this to be the default eventually. Also, we use the
10719    # versioned .so libs for executables only if there is the -brtl
10720    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10721    # To allow for filename-based versioning support, we need to create
10722    # libNAME.so.V as an archive file, containing:
10723    # *) an Import File, referring to the versioned filename of the
10724    #    archive as well as the shared archive member, telling the
10725    #    bitwidth (32 or 64) of that shared object, and providing the
10726    #    list of exported symbols of that shared object, eventually
10727    #    decorated with the 'weak' keyword
10728    # *) the shared object with the F_LOADONLY flag set, to really avoid
10729    #    it being seen by the linker.
10730    # At run time we better use the real file rather than another symlink,
10731    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10732
10733    case $with_aix_soname,$aix_use_runtimelinking in
10734    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10735    # soname into executable. Probably we can add versioning support to
10736    # collect2, so additional links can be useful in future.
10737    aix,yes) # traditional libtool
10738      dynamic_linker='AIX unversionable lib.so'
10739      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10740      # instead of lib<name>.a to let people know that these are not
10741      # typical AIX shared libraries.
10742      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743      ;;
10744    aix,no) # traditional AIX only
10745      dynamic_linker='AIX lib.a(lib.so.V)'
10746      # We preserve .a as extension for shared libraries through AIX4.2
10747      # and later when we are not doing run time linking.
10748      library_names_spec='$libname$release.a $libname.a'
10749      soname_spec='$libname$release$shared_ext$major'
10750      ;;
10751    svr4,*) # full svr4 only
10752      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10753      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10754      # We do not specify a path in Import Files, so LIBPATH fires.
10755      shlibpath_overrides_runpath=yes
10756      ;;
10757    *,yes) # both, prefer svr4
10758      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10759      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10760      # unpreferred sharedlib libNAME.a needs extra handling
10761      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"'
10762      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"'
10763      # We do not specify a path in Import Files, so LIBPATH fires.
10764      shlibpath_overrides_runpath=yes
10765      ;;
10766    *,no) # both, prefer aix
10767      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10768      library_names_spec='$libname$release.a $libname.a'
10769      soname_spec='$libname$release$shared_ext$major'
10770      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10771      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)'
10772      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"'
10773      ;;
10774    esac
10775    shlibpath_var=LIBPATH
10776  fi
10777  ;;
10778
10779amigaos*)
10780  case $host_cpu in
10781  powerpc)
10782    # Since July 2007 AmigaOS4 officially supports .so libraries.
10783    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10784    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10785    ;;
10786  m68k)
10787    library_names_spec='$libname.ixlibrary $libname.a'
10788    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10789    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'
10790    ;;
10791  esac
10792  ;;
10793
10794beos*)
10795  library_names_spec='$libname$shared_ext'
10796  dynamic_linker="$host_os ld.so"
10797  shlibpath_var=LIBRARY_PATH
10798  ;;
10799
10800bsdi[45]*)
10801  version_type=linux # correct to gnu/linux during the next big refactor
10802  need_version=no
10803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804  soname_spec='$libname$release$shared_ext$major'
10805  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10806  shlibpath_var=LD_LIBRARY_PATH
10807  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10808  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10809  # the default ld.so.conf also contains /usr/contrib/lib and
10810  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10811  # libtool to hard-code these into programs
10812  ;;
10813
10814cygwin* | mingw* | pw32* | cegcc*)
10815  version_type=windows
10816  shrext_cmds=.dll
10817  need_version=no
10818  need_lib_prefix=no
10819
10820  case $GCC,$cc_basename in
10821  yes,*)
10822    # gcc
10823    library_names_spec='$libname.dll.a'
10824    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10825    postinstall_cmds='base_file=`basename \$file`~
10826      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10827      dldir=$destdir/`dirname \$dlpath`~
10828      test -d \$dldir || mkdir -p \$dldir~
10829      $install_prog $dir/$dlname \$dldir/$dlname~
10830      chmod a+x \$dldir/$dlname~
10831      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10832        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10833      fi'
10834    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10835      dlpath=$dir/\$dldll~
10836       $RM \$dlpath'
10837    shlibpath_overrides_runpath=yes
10838
10839    case $host_os in
10840    cygwin*)
10841      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10842      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10843
10844      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10845      ;;
10846    mingw* | cegcc*)
10847      # MinGW DLLs use traditional 'lib' prefix
10848      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10849      ;;
10850    pw32*)
10851      # pw32 DLLs use 'pw' prefix rather than 'lib'
10852      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10853      ;;
10854    esac
10855    dynamic_linker='Win32 ld.exe'
10856    ;;
10857
10858  *,cl*)
10859    # Native MSVC
10860    libname_spec='$name'
10861    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10862    library_names_spec='$libname.dll.lib'
10863
10864    case $build_os in
10865    mingw*)
10866      sys_lib_search_path_spec=
10867      lt_save_ifs=$IFS
10868      IFS=';'
10869      for lt_path in $LIB
10870      do
10871        IFS=$lt_save_ifs
10872        # Let DOS variable expansion print the short 8.3 style file name.
10873        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10874        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10875      done
10876      IFS=$lt_save_ifs
10877      # Convert to MSYS style.
10878      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10879      ;;
10880    cygwin*)
10881      # Convert to unix form, then to dos form, then back to unix form
10882      # but this time dos style (no spaces!) so that the unix form looks
10883      # like /cygdrive/c/PROGRA~1:/cygdr...
10884      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10885      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10886      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10887      ;;
10888    *)
10889      sys_lib_search_path_spec=$LIB
10890      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10891        # It is most probably a Windows format PATH.
10892        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10893      else
10894        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10895      fi
10896      # FIXME: find the short name or the path components, as spaces are
10897      # common. (e.g. "Program Files" -> "PROGRA~1")
10898      ;;
10899    esac
10900
10901    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10902    postinstall_cmds='base_file=`basename \$file`~
10903      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10904      dldir=$destdir/`dirname \$dlpath`~
10905      test -d \$dldir || mkdir -p \$dldir~
10906      $install_prog $dir/$dlname \$dldir/$dlname'
10907    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10908      dlpath=$dir/\$dldll~
10909       $RM \$dlpath'
10910    shlibpath_overrides_runpath=yes
10911    dynamic_linker='Win32 link.exe'
10912    ;;
10913
10914  *)
10915    # Assume MSVC wrapper
10916    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10917    dynamic_linker='Win32 ld.exe'
10918    ;;
10919  esac
10920  # FIXME: first we should search . and the directory the executable is in
10921  shlibpath_var=PATH
10922  ;;
10923
10924darwin* | rhapsody*)
10925  dynamic_linker="$host_os dyld"
10926  version_type=darwin
10927  need_lib_prefix=no
10928  need_version=no
10929  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10930  soname_spec='$libname$release$major$shared_ext'
10931  shlibpath_overrides_runpath=yes
10932  shlibpath_var=DYLD_LIBRARY_PATH
10933  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10934
10935  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10936  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10937  ;;
10938
10939dgux*)
10940  version_type=linux # correct to gnu/linux during the next big refactor
10941  need_lib_prefix=no
10942  need_version=no
10943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10944  soname_spec='$libname$release$shared_ext$major'
10945  shlibpath_var=LD_LIBRARY_PATH
10946  ;;
10947
10948freebsd* | dragonfly*)
10949  # DragonFly does not have aout.  When/if they implement a new
10950  # versioning mechanism, adjust this.
10951  if test -x /usr/bin/objformat; then
10952    objformat=`/usr/bin/objformat`
10953  else
10954    case $host_os in
10955    freebsd[23].*) objformat=aout ;;
10956    *) objformat=elf ;;
10957    esac
10958  fi
10959  version_type=freebsd-$objformat
10960  case $version_type in
10961    freebsd-elf*)
10962      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963      soname_spec='$libname$release$shared_ext$major'
10964      need_version=no
10965      need_lib_prefix=no
10966      ;;
10967    freebsd-*)
10968      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10969      need_version=yes
10970      ;;
10971  esac
10972  shlibpath_var=LD_LIBRARY_PATH
10973  case $host_os in
10974  freebsd2.*)
10975    shlibpath_overrides_runpath=yes
10976    ;;
10977  freebsd3.[01]* | freebsdelf3.[01]*)
10978    shlibpath_overrides_runpath=yes
10979    hardcode_into_libs=yes
10980    ;;
10981  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10982  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10983    shlibpath_overrides_runpath=no
10984    hardcode_into_libs=yes
10985    ;;
10986  *) # from 4.6 on, and DragonFly
10987    shlibpath_overrides_runpath=yes
10988    hardcode_into_libs=yes
10989    ;;
10990  esac
10991  ;;
10992
10993haiku*)
10994  version_type=linux # correct to gnu/linux during the next big refactor
10995  need_lib_prefix=no
10996  need_version=no
10997  dynamic_linker="$host_os runtime_loader"
10998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999  soname_spec='$libname$release$shared_ext$major'
11000  shlibpath_var=LIBRARY_PATH
11001  shlibpath_overrides_runpath=no
11002  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11003  hardcode_into_libs=yes
11004  ;;
11005
11006hpux9* | hpux10* | hpux11*)
11007  # Give a soname corresponding to the major version so that dld.sl refuses to
11008  # link against other versions.
11009  version_type=sunos
11010  need_lib_prefix=no
11011  need_version=no
11012  case $host_cpu in
11013  ia64*)
11014    shrext_cmds='.so'
11015    hardcode_into_libs=yes
11016    dynamic_linker="$host_os dld.so"
11017    shlibpath_var=LD_LIBRARY_PATH
11018    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11019    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11020    soname_spec='$libname$release$shared_ext$major'
11021    if test 32 = "$HPUX_IA64_MODE"; then
11022      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11023      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11024    else
11025      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11026      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11027    fi
11028    ;;
11029  hppa*64*)
11030    shrext_cmds='.sl'
11031    hardcode_into_libs=yes
11032    dynamic_linker="$host_os dld.sl"
11033    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11034    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11035    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036    soname_spec='$libname$release$shared_ext$major'
11037    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11039    ;;
11040  *)
11041    shrext_cmds='.sl'
11042    dynamic_linker="$host_os dld.sl"
11043    shlibpath_var=SHLIB_PATH
11044    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11045    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046    soname_spec='$libname$release$shared_ext$major'
11047    ;;
11048  esac
11049  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11050  postinstall_cmds='chmod 555 $lib'
11051  # or fails outright, so override atomically:
11052  install_override_mode=555
11053  ;;
11054
11055interix[3-9]*)
11056  version_type=linux # correct to gnu/linux during the next big refactor
11057  need_lib_prefix=no
11058  need_version=no
11059  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11060  soname_spec='$libname$release$shared_ext$major'
11061  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11062  shlibpath_var=LD_LIBRARY_PATH
11063  shlibpath_overrides_runpath=no
11064  hardcode_into_libs=yes
11065  ;;
11066
11067irix5* | irix6* | nonstopux*)
11068  case $host_os in
11069    nonstopux*) version_type=nonstopux ;;
11070    *)
11071	if test yes = "$lt_cv_prog_gnu_ld"; then
11072		version_type=linux # correct to gnu/linux during the next big refactor
11073	else
11074		version_type=irix
11075	fi ;;
11076  esac
11077  need_lib_prefix=no
11078  need_version=no
11079  soname_spec='$libname$release$shared_ext$major'
11080  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11081  case $host_os in
11082  irix5* | nonstopux*)
11083    libsuff= shlibsuff=
11084    ;;
11085  *)
11086    case $LD in # libtool.m4 will add one of these switches to LD
11087    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11088      libsuff= shlibsuff= libmagic=32-bit;;
11089    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11090      libsuff=32 shlibsuff=N32 libmagic=N32;;
11091    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11092      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11093    *) libsuff= shlibsuff= libmagic=never-match;;
11094    esac
11095    ;;
11096  esac
11097  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11098  shlibpath_overrides_runpath=no
11099  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11100  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11101  hardcode_into_libs=yes
11102  ;;
11103
11104# No shared lib support for Linux oldld, aout, or coff.
11105linux*oldld* | linux*aout* | linux*coff*)
11106  dynamic_linker=no
11107  ;;
11108
11109linux*android*)
11110  version_type=none # Android doesn't support versioned libraries.
11111  need_lib_prefix=no
11112  need_version=no
11113  library_names_spec='$libname$release$shared_ext'
11114  soname_spec='$libname$release$shared_ext'
11115  finish_cmds=
11116  shlibpath_var=LD_LIBRARY_PATH
11117  shlibpath_overrides_runpath=yes
11118
11119  # This implies no fast_install, which is unacceptable.
11120  # Some rework will be needed to allow for fast_install
11121  # before this can be enabled.
11122  hardcode_into_libs=yes
11123
11124  dynamic_linker='Android linker'
11125  # Don't embed -rpath directories since the linker doesn't support them.
11126  hardcode_libdir_flag_spec='-L$libdir'
11127  ;;
11128
11129# This must be glibc/ELF.
11130linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11131  version_type=linux # correct to gnu/linux during the next big refactor
11132  need_lib_prefix=no
11133  need_version=no
11134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135  soname_spec='$libname$release$shared_ext$major'
11136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11137  shlibpath_var=LD_LIBRARY_PATH
11138  shlibpath_overrides_runpath=no
11139
11140  # Some binutils ld are patched to set DT_RUNPATH
11141  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11142  $as_echo_n "(cached) " >&6
11143else
11144  lt_cv_shlibpath_overrides_runpath=no
11145    save_LDFLAGS=$LDFLAGS
11146    save_libdir=$libdir
11147    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11148	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11149    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150/* end confdefs.h.  */
11151
11152int
11153main ()
11154{
11155
11156  ;
11157  return 0;
11158}
11159_ACEOF
11160if ac_fn_c_try_link "$LINENO"; then :
11161  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11162  lt_cv_shlibpath_overrides_runpath=yes
11163fi
11164fi
11165rm -f core conftest.err conftest.$ac_objext \
11166    conftest$ac_exeext conftest.$ac_ext
11167    LDFLAGS=$save_LDFLAGS
11168    libdir=$save_libdir
11169
11170fi
11171
11172  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11173
11174  # This implies no fast_install, which is unacceptable.
11175  # Some rework will be needed to allow for fast_install
11176  # before this can be enabled.
11177  hardcode_into_libs=yes
11178
11179  # Ideally, we could use ldconfig to report *all* directores which are
11180  # searched for libraries, however this is still not possible.  Aside from not
11181  # being certain /sbin/ldconfig is available, command
11182  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11183  # even though it is searched at run-time.  Try to do the best guess by
11184  # appending ld.so.conf contents (and includes) to the search path.
11185  if test -f /etc/ld.so.conf; then
11186    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' ' '`
11187    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11188  fi
11189
11190  # We used to test for /lib/ld.so.1 and disable shared libraries on
11191  # powerpc, because MkLinux only supported shared libraries with the
11192  # GNU dynamic linker.  Since this was broken with cross compilers,
11193  # most powerpc-linux boxes support dynamic linking these days and
11194  # people can always --disable-shared, the test was removed, and we
11195  # assume the GNU/Linux dynamic linker is in use.
11196  dynamic_linker='GNU/Linux ld.so'
11197  ;;
11198
11199netbsdelf*-gnu)
11200  version_type=linux
11201  need_lib_prefix=no
11202  need_version=no
11203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11204  soname_spec='${libname}${release}${shared_ext}$major'
11205  shlibpath_var=LD_LIBRARY_PATH
11206  shlibpath_overrides_runpath=no
11207  hardcode_into_libs=yes
11208  dynamic_linker='NetBSD ld.elf_so'
11209  ;;
11210
11211netbsd*)
11212  version_type=sunos
11213  need_lib_prefix=no
11214  need_version=no
11215  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11216    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11217    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11218    dynamic_linker='NetBSD (a.out) ld.so'
11219  else
11220    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221    soname_spec='$libname$release$shared_ext$major'
11222    dynamic_linker='NetBSD ld.elf_so'
11223  fi
11224  shlibpath_var=LD_LIBRARY_PATH
11225  shlibpath_overrides_runpath=yes
11226  hardcode_into_libs=yes
11227  ;;
11228
11229newsos6)
11230  version_type=linux # correct to gnu/linux during the next big refactor
11231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11232  shlibpath_var=LD_LIBRARY_PATH
11233  shlibpath_overrides_runpath=yes
11234  ;;
11235
11236*nto* | *qnx*)
11237  version_type=qnx
11238  need_lib_prefix=no
11239  need_version=no
11240  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241  soname_spec='$libname$release$shared_ext$major'
11242  shlibpath_var=LD_LIBRARY_PATH
11243  shlibpath_overrides_runpath=no
11244  hardcode_into_libs=yes
11245  dynamic_linker='ldqnx.so'
11246  ;;
11247
11248openbsd* | bitrig*)
11249  version_type=sunos
11250  sys_lib_dlsearch_path_spec=/usr/lib
11251  need_lib_prefix=no
11252  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11253    need_version=no
11254  else
11255    need_version=yes
11256  fi
11257  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11259  shlibpath_var=LD_LIBRARY_PATH
11260  shlibpath_overrides_runpath=yes
11261  ;;
11262
11263os2*)
11264  libname_spec='$name'
11265  version_type=windows
11266  shrext_cmds=.dll
11267  need_version=no
11268  need_lib_prefix=no
11269  # OS/2 can only load a DLL with a base name of 8 characters or less.
11270  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11271    v=$($ECHO $release$versuffix | tr -d .-);
11272    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11273    $ECHO $n$v`$shared_ext'
11274  library_names_spec='${libname}_dll.$libext'
11275  dynamic_linker='OS/2 ld.exe'
11276  shlibpath_var=BEGINLIBPATH
11277  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11278  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11279  postinstall_cmds='base_file=`basename \$file`~
11280    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11281    dldir=$destdir/`dirname \$dlpath`~
11282    test -d \$dldir || mkdir -p \$dldir~
11283    $install_prog $dir/$dlname \$dldir/$dlname~
11284    chmod a+x \$dldir/$dlname~
11285    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11286      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11287    fi'
11288  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11289    dlpath=$dir/\$dldll~
11290    $RM \$dlpath'
11291  ;;
11292
11293osf3* | osf4* | osf5*)
11294  version_type=osf
11295  need_lib_prefix=no
11296  need_version=no
11297  soname_spec='$libname$release$shared_ext$major'
11298  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11299  shlibpath_var=LD_LIBRARY_PATH
11300  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11301  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11302  ;;
11303
11304rdos*)
11305  dynamic_linker=no
11306  ;;
11307
11308solaris*)
11309  version_type=linux # correct to gnu/linux during the next big refactor
11310  need_lib_prefix=no
11311  need_version=no
11312  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11313  soname_spec='$libname$release$shared_ext$major'
11314  shlibpath_var=LD_LIBRARY_PATH
11315  shlibpath_overrides_runpath=yes
11316  hardcode_into_libs=yes
11317  # ldd complains unless libraries are executable
11318  postinstall_cmds='chmod +x $lib'
11319  ;;
11320
11321sunos4*)
11322  version_type=sunos
11323  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11324  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11325  shlibpath_var=LD_LIBRARY_PATH
11326  shlibpath_overrides_runpath=yes
11327  if test yes = "$with_gnu_ld"; then
11328    need_lib_prefix=no
11329  fi
11330  need_version=yes
11331  ;;
11332
11333sysv4 | sysv4.3*)
11334  version_type=linux # correct to gnu/linux during the next big refactor
11335  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336  soname_spec='$libname$release$shared_ext$major'
11337  shlibpath_var=LD_LIBRARY_PATH
11338  case $host_vendor in
11339    sni)
11340      shlibpath_overrides_runpath=no
11341      need_lib_prefix=no
11342      runpath_var=LD_RUN_PATH
11343      ;;
11344    siemens)
11345      need_lib_prefix=no
11346      ;;
11347    motorola)
11348      need_lib_prefix=no
11349      need_version=no
11350      shlibpath_overrides_runpath=no
11351      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11352      ;;
11353  esac
11354  ;;
11355
11356sysv4*MP*)
11357  if test -d /usr/nec; then
11358    version_type=linux # correct to gnu/linux during the next big refactor
11359    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11360    soname_spec='$libname$shared_ext.$major'
11361    shlibpath_var=LD_LIBRARY_PATH
11362  fi
11363  ;;
11364
11365sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11366  version_type=sco
11367  need_lib_prefix=no
11368  need_version=no
11369  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11370  soname_spec='$libname$release$shared_ext$major'
11371  shlibpath_var=LD_LIBRARY_PATH
11372  shlibpath_overrides_runpath=yes
11373  hardcode_into_libs=yes
11374  if test yes = "$with_gnu_ld"; then
11375    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11376  else
11377    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11378    case $host_os in
11379      sco3.2v5*)
11380        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11381	;;
11382    esac
11383  fi
11384  sys_lib_dlsearch_path_spec='/usr/lib'
11385  ;;
11386
11387tpf*)
11388  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11389  version_type=linux # correct to gnu/linux during the next big refactor
11390  need_lib_prefix=no
11391  need_version=no
11392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11393  shlibpath_var=LD_LIBRARY_PATH
11394  shlibpath_overrides_runpath=no
11395  hardcode_into_libs=yes
11396  ;;
11397
11398uts4*)
11399  version_type=linux # correct to gnu/linux during the next big refactor
11400  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401  soname_spec='$libname$release$shared_ext$major'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  ;;
11404
11405*)
11406  dynamic_linker=no
11407  ;;
11408esac
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11410$as_echo "$dynamic_linker" >&6; }
11411test no = "$dynamic_linker" && can_build_shared=no
11412
11413variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11414if test yes = "$GCC"; then
11415  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11416fi
11417
11418if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11419  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11420fi
11421
11422if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11423  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11424fi
11425
11426# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11427configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11428
11429# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11430func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11431
11432# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11433configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11532$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11533hardcode_action=
11534if test -n "$hardcode_libdir_flag_spec" ||
11535   test -n "$runpath_var" ||
11536   test yes = "$hardcode_automatic"; then
11537
11538  # We can hardcode non-existent directories.
11539  if test no != "$hardcode_direct" &&
11540     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11541     # have to relink, otherwise we might link with an installed library
11542     # when we should be linking with a yet-to-be-installed one
11543     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11544     test no != "$hardcode_minus_L"; then
11545    # Linking always hardcodes the temporary library directory.
11546    hardcode_action=relink
11547  else
11548    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11549    hardcode_action=immediate
11550  fi
11551else
11552  # We cannot hardcode anything, or else we can only hardcode existing
11553  # directories.
11554  hardcode_action=unsupported
11555fi
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11557$as_echo "$hardcode_action" >&6; }
11558
11559if test relink = "$hardcode_action" ||
11560   test yes = "$inherit_rpath"; then
11561  # Fast installation is not supported
11562  enable_fast_install=no
11563elif test yes = "$shlibpath_overrides_runpath" ||
11564     test no = "$enable_shared"; then
11565  # Fast installation is not necessary
11566  enable_fast_install=needless
11567fi
11568
11569
11570
11571
11572
11573
11574  if test yes != "$enable_dlopen"; then
11575  enable_dlopen=unknown
11576  enable_dlopen_self=unknown
11577  enable_dlopen_self_static=unknown
11578else
11579  lt_cv_dlopen=no
11580  lt_cv_dlopen_libs=
11581
11582  case $host_os in
11583  beos*)
11584    lt_cv_dlopen=load_add_on
11585    lt_cv_dlopen_libs=
11586    lt_cv_dlopen_self=yes
11587    ;;
11588
11589  mingw* | pw32* | cegcc*)
11590    lt_cv_dlopen=LoadLibrary
11591    lt_cv_dlopen_libs=
11592    ;;
11593
11594  cygwin*)
11595    lt_cv_dlopen=dlopen
11596    lt_cv_dlopen_libs=
11597    ;;
11598
11599  darwin*)
11600    # if libdl is installed we need to link against it
11601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11602$as_echo_n "checking for dlopen in -ldl... " >&6; }
11603if ${ac_cv_lib_dl_dlopen+:} false; then :
11604  $as_echo_n "(cached) " >&6
11605else
11606  ac_check_lib_save_LIBS=$LIBS
11607LIBS="-ldl  $LIBS"
11608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609/* end confdefs.h.  */
11610
11611/* Override any GCC internal prototype to avoid an error.
11612   Use char because int might match the return type of a GCC
11613   builtin and then its argument prototype would still apply.  */
11614#ifdef __cplusplus
11615extern "C"
11616#endif
11617char dlopen ();
11618int
11619main ()
11620{
11621return dlopen ();
11622  ;
11623  return 0;
11624}
11625_ACEOF
11626if ac_fn_c_try_link "$LINENO"; then :
11627  ac_cv_lib_dl_dlopen=yes
11628else
11629  ac_cv_lib_dl_dlopen=no
11630fi
11631rm -f core conftest.err conftest.$ac_objext \
11632    conftest$ac_exeext conftest.$ac_ext
11633LIBS=$ac_check_lib_save_LIBS
11634fi
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11636$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11637if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11638  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11639else
11640
11641    lt_cv_dlopen=dyld
11642    lt_cv_dlopen_libs=
11643    lt_cv_dlopen_self=yes
11644
11645fi
11646
11647    ;;
11648
11649  tpf*)
11650    # Don't try to run any link tests for TPF.  We know it's impossible
11651    # because TPF is a cross-compiler, and we know how we open DSOs.
11652    lt_cv_dlopen=dlopen
11653    lt_cv_dlopen_libs=
11654    lt_cv_dlopen_self=no
11655    ;;
11656
11657  *)
11658    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11659if test "x$ac_cv_func_shl_load" = xyes; then :
11660  lt_cv_dlopen=shl_load
11661else
11662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11663$as_echo_n "checking for shl_load in -ldld... " >&6; }
11664if ${ac_cv_lib_dld_shl_load+:} false; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  ac_check_lib_save_LIBS=$LIBS
11668LIBS="-ldld  $LIBS"
11669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h.  */
11671
11672/* Override any GCC internal prototype to avoid an error.
11673   Use char because int might match the return type of a GCC
11674   builtin and then its argument prototype would still apply.  */
11675#ifdef __cplusplus
11676extern "C"
11677#endif
11678char shl_load ();
11679int
11680main ()
11681{
11682return shl_load ();
11683  ;
11684  return 0;
11685}
11686_ACEOF
11687if ac_fn_c_try_link "$LINENO"; then :
11688  ac_cv_lib_dld_shl_load=yes
11689else
11690  ac_cv_lib_dld_shl_load=no
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693    conftest$ac_exeext conftest.$ac_ext
11694LIBS=$ac_check_lib_save_LIBS
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11697$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11698if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11699  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11700else
11701  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11702if test "x$ac_cv_func_dlopen" = xyes; then :
11703  lt_cv_dlopen=dlopen
11704else
11705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11706$as_echo_n "checking for dlopen in -ldl... " >&6; }
11707if ${ac_cv_lib_dl_dlopen+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  ac_check_lib_save_LIBS=$LIBS
11711LIBS="-ldl  $LIBS"
11712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713/* end confdefs.h.  */
11714
11715/* Override any GCC internal prototype to avoid an error.
11716   Use char because int might match the return type of a GCC
11717   builtin and then its argument prototype would still apply.  */
11718#ifdef __cplusplus
11719extern "C"
11720#endif
11721char dlopen ();
11722int
11723main ()
11724{
11725return dlopen ();
11726  ;
11727  return 0;
11728}
11729_ACEOF
11730if ac_fn_c_try_link "$LINENO"; then :
11731  ac_cv_lib_dl_dlopen=yes
11732else
11733  ac_cv_lib_dl_dlopen=no
11734fi
11735rm -f core conftest.err conftest.$ac_objext \
11736    conftest$ac_exeext conftest.$ac_ext
11737LIBS=$ac_check_lib_save_LIBS
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11740$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11741if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11742  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11743else
11744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11745$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11746if ${ac_cv_lib_svld_dlopen+:} false; then :
11747  $as_echo_n "(cached) " >&6
11748else
11749  ac_check_lib_save_LIBS=$LIBS
11750LIBS="-lsvld  $LIBS"
11751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752/* end confdefs.h.  */
11753
11754/* Override any GCC internal prototype to avoid an error.
11755   Use char because int might match the return type of a GCC
11756   builtin and then its argument prototype would still apply.  */
11757#ifdef __cplusplus
11758extern "C"
11759#endif
11760char dlopen ();
11761int
11762main ()
11763{
11764return dlopen ();
11765  ;
11766  return 0;
11767}
11768_ACEOF
11769if ac_fn_c_try_link "$LINENO"; then :
11770  ac_cv_lib_svld_dlopen=yes
11771else
11772  ac_cv_lib_svld_dlopen=no
11773fi
11774rm -f core conftest.err conftest.$ac_objext \
11775    conftest$ac_exeext conftest.$ac_ext
11776LIBS=$ac_check_lib_save_LIBS
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11779$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11780if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11781  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11782else
11783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11784$as_echo_n "checking for dld_link in -ldld... " >&6; }
11785if ${ac_cv_lib_dld_dld_link+:} false; then :
11786  $as_echo_n "(cached) " >&6
11787else
11788  ac_check_lib_save_LIBS=$LIBS
11789LIBS="-ldld  $LIBS"
11790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791/* end confdefs.h.  */
11792
11793/* Override any GCC internal prototype to avoid an error.
11794   Use char because int might match the return type of a GCC
11795   builtin and then its argument prototype would still apply.  */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799char dld_link ();
11800int
11801main ()
11802{
11803return dld_link ();
11804  ;
11805  return 0;
11806}
11807_ACEOF
11808if ac_fn_c_try_link "$LINENO"; then :
11809  ac_cv_lib_dld_dld_link=yes
11810else
11811  ac_cv_lib_dld_dld_link=no
11812fi
11813rm -f core conftest.err conftest.$ac_objext \
11814    conftest$ac_exeext conftest.$ac_ext
11815LIBS=$ac_check_lib_save_LIBS
11816fi
11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11818$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11819if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11820  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11821fi
11822
11823
11824fi
11825
11826
11827fi
11828
11829
11830fi
11831
11832
11833fi
11834
11835
11836fi
11837
11838    ;;
11839  esac
11840
11841  if test no = "$lt_cv_dlopen"; then
11842    enable_dlopen=no
11843  else
11844    enable_dlopen=yes
11845  fi
11846
11847  case $lt_cv_dlopen in
11848  dlopen)
11849    save_CPPFLAGS=$CPPFLAGS
11850    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11851
11852    save_LDFLAGS=$LDFLAGS
11853    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11854
11855    save_LIBS=$LIBS
11856    LIBS="$lt_cv_dlopen_libs $LIBS"
11857
11858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11859$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11860if ${lt_cv_dlopen_self+:} false; then :
11861  $as_echo_n "(cached) " >&6
11862else
11863  	  if test yes = "$cross_compiling"; then :
11864  lt_cv_dlopen_self=cross
11865else
11866  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11867  lt_status=$lt_dlunknown
11868  cat > conftest.$ac_ext <<_LT_EOF
11869#line $LINENO "configure"
11870#include "confdefs.h"
11871
11872#if HAVE_DLFCN_H
11873#include <dlfcn.h>
11874#endif
11875
11876#include <stdio.h>
11877
11878#ifdef RTLD_GLOBAL
11879#  define LT_DLGLOBAL		RTLD_GLOBAL
11880#else
11881#  ifdef DL_GLOBAL
11882#    define LT_DLGLOBAL		DL_GLOBAL
11883#  else
11884#    define LT_DLGLOBAL		0
11885#  endif
11886#endif
11887
11888/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11889   find out it does not work in some platform. */
11890#ifndef LT_DLLAZY_OR_NOW
11891#  ifdef RTLD_LAZY
11892#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11893#  else
11894#    ifdef DL_LAZY
11895#      define LT_DLLAZY_OR_NOW		DL_LAZY
11896#    else
11897#      ifdef RTLD_NOW
11898#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11899#      else
11900#        ifdef DL_NOW
11901#          define LT_DLLAZY_OR_NOW	DL_NOW
11902#        else
11903#          define LT_DLLAZY_OR_NOW	0
11904#        endif
11905#      endif
11906#    endif
11907#  endif
11908#endif
11909
11910/* When -fvisibility=hidden is used, assume the code has been annotated
11911   correspondingly for the symbols needed.  */
11912#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11913int fnord () __attribute__((visibility("default")));
11914#endif
11915
11916int fnord () { return 42; }
11917int main ()
11918{
11919  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11920  int status = $lt_dlunknown;
11921
11922  if (self)
11923    {
11924      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11925      else
11926        {
11927	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11928          else puts (dlerror ());
11929	}
11930      /* dlclose (self); */
11931    }
11932  else
11933    puts (dlerror ());
11934
11935  return status;
11936}
11937_LT_EOF
11938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11939  (eval $ac_link) 2>&5
11940  ac_status=$?
11941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11942  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11943    (./conftest; exit; ) >&5 2>/dev/null
11944    lt_status=$?
11945    case x$lt_status in
11946      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11947      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11948      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11949    esac
11950  else :
11951    # compilation failed
11952    lt_cv_dlopen_self=no
11953  fi
11954fi
11955rm -fr conftest*
11956
11957
11958fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11960$as_echo "$lt_cv_dlopen_self" >&6; }
11961
11962    if test yes = "$lt_cv_dlopen_self"; then
11963      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11965$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11966if ${lt_cv_dlopen_self_static+:} false; then :
11967  $as_echo_n "(cached) " >&6
11968else
11969  	  if test yes = "$cross_compiling"; then :
11970  lt_cv_dlopen_self_static=cross
11971else
11972  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973  lt_status=$lt_dlunknown
11974  cat > conftest.$ac_ext <<_LT_EOF
11975#line $LINENO "configure"
11976#include "confdefs.h"
11977
11978#if HAVE_DLFCN_H
11979#include <dlfcn.h>
11980#endif
11981
11982#include <stdio.h>
11983
11984#ifdef RTLD_GLOBAL
11985#  define LT_DLGLOBAL		RTLD_GLOBAL
11986#else
11987#  ifdef DL_GLOBAL
11988#    define LT_DLGLOBAL		DL_GLOBAL
11989#  else
11990#    define LT_DLGLOBAL		0
11991#  endif
11992#endif
11993
11994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995   find out it does not work in some platform. */
11996#ifndef LT_DLLAZY_OR_NOW
11997#  ifdef RTLD_LAZY
11998#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11999#  else
12000#    ifdef DL_LAZY
12001#      define LT_DLLAZY_OR_NOW		DL_LAZY
12002#    else
12003#      ifdef RTLD_NOW
12004#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12005#      else
12006#        ifdef DL_NOW
12007#          define LT_DLLAZY_OR_NOW	DL_NOW
12008#        else
12009#          define LT_DLLAZY_OR_NOW	0
12010#        endif
12011#      endif
12012#    endif
12013#  endif
12014#endif
12015
12016/* When -fvisibility=hidden is used, assume the code has been annotated
12017   correspondingly for the symbols needed.  */
12018#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019int fnord () __attribute__((visibility("default")));
12020#endif
12021
12022int fnord () { return 42; }
12023int main ()
12024{
12025  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026  int status = $lt_dlunknown;
12027
12028  if (self)
12029    {
12030      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12031      else
12032        {
12033	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12034          else puts (dlerror ());
12035	}
12036      /* dlclose (self); */
12037    }
12038  else
12039    puts (dlerror ());
12040
12041  return status;
12042}
12043_LT_EOF
12044  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045  (eval $ac_link) 2>&5
12046  ac_status=$?
12047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12049    (./conftest; exit; ) >&5 2>/dev/null
12050    lt_status=$?
12051    case x$lt_status in
12052      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12053      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12054      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12055    esac
12056  else :
12057    # compilation failed
12058    lt_cv_dlopen_self_static=no
12059  fi
12060fi
12061rm -fr conftest*
12062
12063
12064fi
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12066$as_echo "$lt_cv_dlopen_self_static" >&6; }
12067    fi
12068
12069    CPPFLAGS=$save_CPPFLAGS
12070    LDFLAGS=$save_LDFLAGS
12071    LIBS=$save_LIBS
12072    ;;
12073  esac
12074
12075  case $lt_cv_dlopen_self in
12076  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12077  *) enable_dlopen_self=unknown ;;
12078  esac
12079
12080  case $lt_cv_dlopen_self_static in
12081  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12082  *) enable_dlopen_self_static=unknown ;;
12083  esac
12084fi
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102striplib=
12103old_striplib=
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12105$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12106if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12107  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12108  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110$as_echo "yes" >&6; }
12111else
12112# FIXME - insert some real tests, host_os isn't really good enough
12113  case $host_os in
12114  darwin*)
12115    if test -n "$STRIP"; then
12116      striplib="$STRIP -x"
12117      old_striplib="$STRIP -S"
12118      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12119$as_echo "yes" >&6; }
12120    else
12121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122$as_echo "no" >&6; }
12123    fi
12124    ;;
12125  *)
12126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
12128    ;;
12129  esac
12130fi
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143  # Report what library types will actually be built
12144  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12145$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12147$as_echo "$can_build_shared" >&6; }
12148
12149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12150$as_echo_n "checking whether to build shared libraries... " >&6; }
12151  test no = "$can_build_shared" && enable_shared=no
12152
12153  # On AIX, shared libraries and static libraries use the same namespace, and
12154  # are all built from PIC.
12155  case $host_os in
12156  aix3*)
12157    test yes = "$enable_shared" && enable_static=no
12158    if test -n "$RANLIB"; then
12159      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12160      postinstall_cmds='$RANLIB $lib'
12161    fi
12162    ;;
12163
12164  aix[4-9]*)
12165    if test ia64 != "$host_cpu"; then
12166      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12167      yes,aix,yes) ;;			# shared object as lib.so file only
12168      yes,svr4,*) ;;			# shared object as lib.so archive member only
12169      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12170      esac
12171    fi
12172    ;;
12173  esac
12174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12175$as_echo "$enable_shared" >&6; }
12176
12177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12178$as_echo_n "checking whether to build static libraries... " >&6; }
12179  # Make sure either enable_shared or enable_static is yes.
12180  test yes = "$enable_shared" || enable_static=yes
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12182$as_echo "$enable_static" >&6; }
12183
12184
12185
12186
12187fi
12188ac_ext=c
12189ac_cpp='$CPP $CPPFLAGS'
12190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12192ac_compiler_gnu=$ac_cv_c_compiler_gnu
12193
12194CC=$lt_save_CC
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210        ac_config_commands="$ac_config_commands libtool"
12211
12212
12213
12214
12215# Only expand once:
12216
12217
12218# Check whether --enable-largefile was given.
12219if test "${enable_largefile+set}" = set; then :
12220  enableval=$enable_largefile;
12221fi
12222
12223if test "$enable_largefile" != no; then
12224
12225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12226$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12227if ${ac_cv_sys_largefile_CC+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230  ac_cv_sys_largefile_CC=no
12231     if test "$GCC" != yes; then
12232       ac_save_CC=$CC
12233       while :; do
12234	 # IRIX 6.2 and later do not support large files by default,
12235	 # so use the C compiler's -n32 option if that helps.
12236	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237/* end confdefs.h.  */
12238#include <sys/types.h>
12239 /* Check that off_t can represent 2**63 - 1 correctly.
12240    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12241    since some C++ compilers masquerading as C compilers
12242    incorrectly reject 9223372036854775807.  */
12243#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12244  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12245		       && LARGE_OFF_T % 2147483647 == 1)
12246		      ? 1 : -1];
12247int
12248main ()
12249{
12250
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255	 if ac_fn_c_try_compile "$LINENO"; then :
12256  break
12257fi
12258rm -f core conftest.err conftest.$ac_objext
12259	 CC="$CC -n32"
12260	 if ac_fn_c_try_compile "$LINENO"; then :
12261  ac_cv_sys_largefile_CC=' -n32'; break
12262fi
12263rm -f core conftest.err conftest.$ac_objext
12264	 break
12265       done
12266       CC=$ac_save_CC
12267       rm -f conftest.$ac_ext
12268    fi
12269fi
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12271$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12272  if test "$ac_cv_sys_largefile_CC" != no; then
12273    CC=$CC$ac_cv_sys_largefile_CC
12274  fi
12275
12276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12277$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12278if ${ac_cv_sys_file_offset_bits+:} false; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  while :; do
12282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283/* end confdefs.h.  */
12284#include <sys/types.h>
12285 /* Check that off_t can represent 2**63 - 1 correctly.
12286    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12287    since some C++ compilers masquerading as C compilers
12288    incorrectly reject 9223372036854775807.  */
12289#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12290  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12291		       && LARGE_OFF_T % 2147483647 == 1)
12292		      ? 1 : -1];
12293int
12294main ()
12295{
12296
12297  ;
12298  return 0;
12299}
12300_ACEOF
12301if ac_fn_c_try_compile "$LINENO"; then :
12302  ac_cv_sys_file_offset_bits=no; break
12303fi
12304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306/* end confdefs.h.  */
12307#define _FILE_OFFSET_BITS 64
12308#include <sys/types.h>
12309 /* Check that off_t can represent 2**63 - 1 correctly.
12310    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12311    since some C++ compilers masquerading as C compilers
12312    incorrectly reject 9223372036854775807.  */
12313#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12314  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12315		       && LARGE_OFF_T % 2147483647 == 1)
12316		      ? 1 : -1];
12317int
12318main ()
12319{
12320
12321  ;
12322  return 0;
12323}
12324_ACEOF
12325if ac_fn_c_try_compile "$LINENO"; then :
12326  ac_cv_sys_file_offset_bits=64; break
12327fi
12328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329  ac_cv_sys_file_offset_bits=unknown
12330  break
12331done
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12334$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12335case $ac_cv_sys_file_offset_bits in #(
12336  no | unknown) ;;
12337  *)
12338cat >>confdefs.h <<_ACEOF
12339#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12340_ACEOF
12341;;
12342esac
12343rm -rf conftest*
12344  if test $ac_cv_sys_file_offset_bits = unknown; then
12345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12346$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12347if ${ac_cv_sys_large_files+:} false; then :
12348  $as_echo_n "(cached) " >&6
12349else
12350  while :; do
12351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353#include <sys/types.h>
12354 /* Check that off_t can represent 2**63 - 1 correctly.
12355    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12356    since some C++ compilers masquerading as C compilers
12357    incorrectly reject 9223372036854775807.  */
12358#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12359  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12360		       && LARGE_OFF_T % 2147483647 == 1)
12361		      ? 1 : -1];
12362int
12363main ()
12364{
12365
12366  ;
12367  return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_compile "$LINENO"; then :
12371  ac_cv_sys_large_files=no; break
12372fi
12373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375/* end confdefs.h.  */
12376#define _LARGE_FILES 1
12377#include <sys/types.h>
12378 /* Check that off_t can represent 2**63 - 1 correctly.
12379    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12380    since some C++ compilers masquerading as C compilers
12381    incorrectly reject 9223372036854775807.  */
12382#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12383  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12384		       && LARGE_OFF_T % 2147483647 == 1)
12385		      ? 1 : -1];
12386int
12387main ()
12388{
12389
12390  ;
12391  return 0;
12392}
12393_ACEOF
12394if ac_fn_c_try_compile "$LINENO"; then :
12395  ac_cv_sys_large_files=1; break
12396fi
12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398  ac_cv_sys_large_files=unknown
12399  break
12400done
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12403$as_echo "$ac_cv_sys_large_files" >&6; }
12404case $ac_cv_sys_large_files in #(
12405  no | unknown) ;;
12406  *)
12407cat >>confdefs.h <<_ACEOF
12408#define _LARGE_FILES $ac_cv_sys_large_files
12409_ACEOF
12410;;
12411esac
12412rm -rf conftest*
12413  fi
12414
12415
12416fi
12417
12418
12419
12420DEBUG="-g"
12421if test -z "$GCC"; then
12422    XIPH_CPPFLAGS="-D_REENTRANT"
12423    PROFILE="-g -p"
12424else
12425    XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char"
12426    PROFILE="-pg -g"
12427
12428$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12429
12430fi
12431
12432
12433
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12435$as_echo_n "checking for ANSI C header files... " >&6; }
12436if ${ac_cv_header_stdc+:} false; then :
12437  $as_echo_n "(cached) " >&6
12438else
12439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441#include <stdlib.h>
12442#include <stdarg.h>
12443#include <string.h>
12444#include <float.h>
12445
12446int
12447main ()
12448{
12449
12450  ;
12451  return 0;
12452}
12453_ACEOF
12454if ac_fn_c_try_compile "$LINENO"; then :
12455  ac_cv_header_stdc=yes
12456else
12457  ac_cv_header_stdc=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460
12461if test $ac_cv_header_stdc = yes; then
12462  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464/* end confdefs.h.  */
12465#include <string.h>
12466
12467_ACEOF
12468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12469  $EGREP "memchr" >/dev/null 2>&1; then :
12470
12471else
12472  ac_cv_header_stdc=no
12473fi
12474rm -f conftest*
12475
12476fi
12477
12478if test $ac_cv_header_stdc = yes; then
12479  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h.  */
12482#include <stdlib.h>
12483
12484_ACEOF
12485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12486  $EGREP "free" >/dev/null 2>&1; then :
12487
12488else
12489  ac_cv_header_stdc=no
12490fi
12491rm -f conftest*
12492
12493fi
12494
12495if test $ac_cv_header_stdc = yes; then
12496  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12497  if test "$cross_compiling" = yes; then :
12498  :
12499else
12500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501/* end confdefs.h.  */
12502#include <ctype.h>
12503#include <stdlib.h>
12504#if ((' ' & 0x0FF) == 0x020)
12505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12507#else
12508# define ISLOWER(c) \
12509		   (('a' <= (c) && (c) <= 'i') \
12510		     || ('j' <= (c) && (c) <= 'r') \
12511		     || ('s' <= (c) && (c) <= 'z'))
12512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12513#endif
12514
12515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12516int
12517main ()
12518{
12519  int i;
12520  for (i = 0; i < 256; i++)
12521    if (XOR (islower (i), ISLOWER (i))
12522	|| toupper (i) != TOUPPER (i))
12523      return 2;
12524  return 0;
12525}
12526_ACEOF
12527if ac_fn_c_try_run "$LINENO"; then :
12528
12529else
12530  ac_cv_header_stdc=no
12531fi
12532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12533  conftest.$ac_objext conftest.beam conftest.$ac_ext
12534fi
12535
12536fi
12537fi
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12539$as_echo "$ac_cv_header_stdc" >&6; }
12540if test $ac_cv_header_stdc = yes; then
12541
12542$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12543
12544fi
12545
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12547$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12548if ${ac_cv_header_time+:} false; then :
12549  $as_echo_n "(cached) " >&6
12550else
12551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553#include <sys/types.h>
12554#include <sys/time.h>
12555#include <time.h>
12556
12557int
12558main ()
12559{
12560if ((struct tm *) 0)
12561return 0;
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_compile "$LINENO"; then :
12567  ac_cv_header_time=yes
12568else
12569  ac_cv_header_time=no
12570fi
12571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12574$as_echo "$ac_cv_header_time" >&6; }
12575if test $ac_cv_header_time = yes; then
12576
12577$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12578
12579fi
12580
12581
12582for ac_header in alloca.h sys/timeb.h
12583do :
12584  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12586if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12587  cat >>confdefs.h <<_ACEOF
12588#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12589_ACEOF
12590
12591fi
12592
12593done
12594
12595for ac_header in pwd.h unistd.h grp.h sys/types.h
12596do :
12597  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12598ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12599"
12600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12601  cat >>confdefs.h <<_ACEOF
12602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12603_ACEOF
12604
12605fi
12606
12607done
12608
12609for ac_func in setuid
12610do :
12611  ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid"
12612if test "x$ac_cv_func_setuid" = xyes; then :
12613  cat >>confdefs.h <<_ACEOF
12614#define HAVE_SETUID 1
12615_ACEOF
12616
12617fi
12618done
12619
12620for ac_func in chroot
12621do :
12622  ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
12623if test "x$ac_cv_func_chroot" = xyes; then :
12624  cat >>confdefs.h <<_ACEOF
12625#define HAVE_CHROOT 1
12626_ACEOF
12627
12628fi
12629done
12630
12631for ac_func in chown
12632do :
12633  ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
12634if test "x$ac_cv_func_chown" = xyes; then :
12635  cat >>confdefs.h <<_ACEOF
12636#define HAVE_CHOWN 1
12637_ACEOF
12638
12639fi
12640done
12641
12642for ac_func in strcasestr
12643do :
12644  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
12645if test "x$ac_cv_func_strcasestr" = xyes; then :
12646  cat >>confdefs.h <<_ACEOF
12647#define HAVE_STRCASESTR 1
12648_ACEOF
12649
12650fi
12651done
12652
12653
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
12655$as_echo_n "checking for __func__... " >&6; }
12656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657/* end confdefs.h.  */
12658
12659int
12660main ()
12661{
12662const char *x = __func__;
12663  ;
12664  return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12669$as_echo "yes" >&6; }
12670else
12671
12672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h.  */
12674
12675int
12676main ()
12677{
12678const char *x = __FUNCTION__;
12679  ;
12680  return 0;
12681}
12682_ACEOF
12683if ac_fn_c_try_compile "$LINENO"; then :
12684   $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
12685
12686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using __FUNCTION__" >&5
12687$as_echo "Using __FUNCTION__" >&6; }
12688else
12689   $as_echo "#define __func__ \"__FILE__\"" >>confdefs.h
12690
12691        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using __FILE__" >&5
12692$as_echo "using __FILE__" >&6; }
12693
12694fi
12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696
12697fi
12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699
12700
12701
12702for ac_func in localtime_r poll gettimeofday ftime
12703do :
12704  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12705ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12706if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12707  cat >>confdefs.h <<_ACEOF
12708#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709_ACEOF
12710
12711fi
12712done
12713
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12715$as_echo_n "checking for library containing nanosleep... " >&6; }
12716if ${ac_cv_search_nanosleep+:} false; then :
12717  $as_echo_n "(cached) " >&6
12718else
12719  ac_func_search_save_LIBS=$LIBS
12720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h.  */
12722
12723/* Override any GCC internal prototype to avoid an error.
12724   Use char because int might match the return type of a GCC
12725   builtin and then its argument prototype would still apply.  */
12726#ifdef __cplusplus
12727extern "C"
12728#endif
12729char nanosleep ();
12730int
12731main ()
12732{
12733return nanosleep ();
12734  ;
12735  return 0;
12736}
12737_ACEOF
12738for ac_lib in '' rt posix4; do
12739  if test -z "$ac_lib"; then
12740    ac_res="none required"
12741  else
12742    ac_res=-l$ac_lib
12743    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12744  fi
12745  if ac_fn_c_try_link "$LINENO"; then :
12746  ac_cv_search_nanosleep=$ac_res
12747fi
12748rm -f core conftest.err conftest.$ac_objext \
12749    conftest$ac_exeext
12750  if ${ac_cv_search_nanosleep+:} false; then :
12751  break
12752fi
12753done
12754if ${ac_cv_search_nanosleep+:} false; then :
12755
12756else
12757  ac_cv_search_nanosleep=no
12758fi
12759rm conftest.$ac_ext
12760LIBS=$ac_func_search_save_LIBS
12761fi
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12763$as_echo "$ac_cv_search_nanosleep" >&6; }
12764ac_res=$ac_cv_search_nanosleep
12765if test "$ac_res" != no; then :
12766  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12767
12768$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12769
12770fi
12771
12772for ac_header in sys/socket.h
12773do :
12774  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12775if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12776  cat >>confdefs.h <<_ACEOF
12777#define HAVE_SYS_SOCKET_H 1
12778_ACEOF
12779
12780fi
12781
12782done
12783
12784ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#if HAVE_SYS_TYPES_H
12785# include <sys/types.h>
12786#endif
12787#if HAVE_SYS_SOCKET_H
12788# include <sys/socket.h>
12789#endif
12790
12791"
12792if test "x$ac_cv_type_socklen_t" = xyes; then :
12793
12794cat >>confdefs.h <<_ACEOF
12795#define HAVE_SOCKLEN_T 1
12796_ACEOF
12797
12798
12799fi
12800
12801
12802
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12804$as_echo_n "checking for va_copy... " >&6; }
12805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807#include <stdarg.h>
12808int
12809main ()
12810{
12811va_list ap1, ap2; va_copy(ap1, ap2);
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"; then :
12817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
12818$as_echo "va_copy" >&6; }
12819else
12820
12821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823#include <stdarg.h>
12824int
12825main ()
12826{
12827va_list ap1, ap2; __va_copy(ap1, ap2);
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832if ac_fn_c_try_link "$LINENO"; then :
12833      $as_echo "#define va_copy __va_copy" >>confdefs.h
12834
12835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
12836$as_echo "__va_copy" >&6; }
12837else
12838      $as_echo "#define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))" >>confdefs.h
12839
12840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
12841$as_echo "memcpy" >&6; }
12842
12843fi
12844rm -f core conftest.err conftest.$ac_objext \
12845    conftest$ac_exeext conftest.$ac_ext
12846
12847fi
12848rm -f core conftest.err conftest.$ac_objext \
12849    conftest$ac_exeext conftest.$ac_ext
12850
12851
12852
12853for ac_header in sys/select.h sys/uio.h
12854do :
12855  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12858  cat >>confdefs.h <<_ACEOF
12859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12860_ACEOF
12861
12862fi
12863
12864done
12865
12866ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12867if test "x$ac_cv_header_winsock2_h" = xyes; then :
12868
12869$as_echo "#define HAVE_WINSOCK2_H 1" >>confdefs.h
12870
12871   LIBS="$LIBS -lwsock32"
12872fi
12873
12874
12875
12876# These tests are ordered based on solaris 8 tests
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sethostent" >&5
12878$as_echo_n "checking for library containing sethostent... " >&6; }
12879if ${ac_cv_search_sethostent+:} false; then :
12880  $as_echo_n "(cached) " >&6
12881else
12882  ac_func_search_save_LIBS=$LIBS
12883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h.  */
12885
12886/* Override any GCC internal prototype to avoid an error.
12887   Use char because int might match the return type of a GCC
12888   builtin and then its argument prototype would still apply.  */
12889#ifdef __cplusplus
12890extern "C"
12891#endif
12892char sethostent ();
12893int
12894main ()
12895{
12896return sethostent ();
12897  ;
12898  return 0;
12899}
12900_ACEOF
12901for ac_lib in '' nsl; do
12902  if test -z "$ac_lib"; then
12903    ac_res="none required"
12904  else
12905    ac_res=-l$ac_lib
12906    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12907  fi
12908  if ac_fn_c_try_link "$LINENO"; then :
12909  ac_cv_search_sethostent=$ac_res
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912    conftest$ac_exeext
12913  if ${ac_cv_search_sethostent+:} false; then :
12914  break
12915fi
12916done
12917if ${ac_cv_search_sethostent+:} false; then :
12918
12919else
12920  ac_cv_search_sethostent=no
12921fi
12922rm conftest.$ac_ext
12923LIBS=$ac_func_search_save_LIBS
12924fi
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sethostent" >&5
12926$as_echo "$ac_cv_search_sethostent" >&6; }
12927ac_res=$ac_cv_search_sethostent
12928if test "$ac_res" != no; then :
12929  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12930
12931$as_echo "#define HAVE_SETHOSTENT 1" >>confdefs.h
12932
12933fi
12934
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12936$as_echo_n "checking for library containing getnameinfo... " >&6; }
12937if ${ac_cv_search_getnameinfo+:} false; then :
12938  $as_echo_n "(cached) " >&6
12939else
12940  ac_func_search_save_LIBS=$LIBS
12941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942/* end confdefs.h.  */
12943
12944/* Override any GCC internal prototype to avoid an error.
12945   Use char because int might match the return type of a GCC
12946   builtin and then its argument prototype would still apply.  */
12947#ifdef __cplusplus
12948extern "C"
12949#endif
12950char getnameinfo ();
12951int
12952main ()
12953{
12954return getnameinfo ();
12955  ;
12956  return 0;
12957}
12958_ACEOF
12959for ac_lib in '' socket; do
12960  if test -z "$ac_lib"; then
12961    ac_res="none required"
12962  else
12963    ac_res=-l$ac_lib
12964    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12965  fi
12966  if ac_fn_c_try_link "$LINENO"; then :
12967  ac_cv_search_getnameinfo=$ac_res
12968fi
12969rm -f core conftest.err conftest.$ac_objext \
12970    conftest$ac_exeext
12971  if ${ac_cv_search_getnameinfo+:} false; then :
12972  break
12973fi
12974done
12975if ${ac_cv_search_getnameinfo+:} false; then :
12976
12977else
12978  ac_cv_search_getnameinfo=no
12979fi
12980rm conftest.$ac_ext
12981LIBS=$ac_func_search_save_LIBS
12982fi
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12984$as_echo "$ac_cv_search_getnameinfo" >&6; }
12985ac_res=$ac_cv_search_getnameinfo
12986if test "$ac_res" != no; then :
12987  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12988
12989$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
12990
12991fi
12992
12993for ac_func in endhostent getaddrinfo inet_aton writev
12994do :
12995  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12996ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12997if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12998  cat >>confdefs.h <<_ACEOF
12999#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000_ACEOF
13001
13002fi
13003done
13004
13005
13006# Irix defines INET_PTON but not sockaddr_storage!
13007ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
13008#include <sys/socket.h>
13009"
13010if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
13011
13012cat >>confdefs.h <<_ACEOF
13013#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13014_ACEOF
13015
13016for ac_func in inet_pton
13017do :
13018  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
13019if test "x$ac_cv_func_inet_pton" = xyes; then :
13020  cat >>confdefs.h <<_ACEOF
13021#define HAVE_INET_PTON 1
13022_ACEOF
13023
13024fi
13025done
13026
13027fi
13028
13029
13030
13031
13032
13033
13034# Check whether --with-xslt-config was given.
13035if test "${with_xslt_config+set}" = set; then :
13036  withval=$with_xslt_config; XSLTCONFIG="$withval"
13037else
13038  for ac_prog in xslt-config
13039do
13040  # Extract the first word of "$ac_prog", so it can be a program name with args.
13041set dummy $ac_prog; ac_word=$2
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
13044if ${ac_cv_path_XSLTCONFIG+:} false; then :
13045  $as_echo_n "(cached) " >&6
13046else
13047  case $XSLTCONFIG in
13048  [\\/]* | ?:[\\/]*)
13049  ac_cv_path_XSLTCONFIG="$XSLTCONFIG" # Let the user override the test with a path.
13050  ;;
13051  *)
13052  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053for as_dir in $PATH
13054do
13055  IFS=$as_save_IFS
13056  test -z "$as_dir" && as_dir=.
13057    for ac_exec_ext in '' $ac_executable_extensions; do
13058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13059    ac_cv_path_XSLTCONFIG="$as_dir/$ac_word$ac_exec_ext"
13060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061    break 2
13062  fi
13063done
13064  done
13065IFS=$as_save_IFS
13066
13067  ;;
13068esac
13069fi
13070XSLTCONFIG=$ac_cv_path_XSLTCONFIG
13071if test -n "$XSLTCONFIG"; then
13072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTCONFIG" >&5
13073$as_echo "$XSLTCONFIG" >&6; }
13074else
13075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076$as_echo "no" >&6; }
13077fi
13078
13079
13080  test -n "$XSLTCONFIG" && break
13081done
13082test -n "$XSLTCONFIG" || XSLTCONFIG=""""
13083
13084
13085fi
13086
13087if test "x$XSLTCONFIG" = "x"; then
13088    as_fn_error $? "XSLT configuration could not be found" "$LINENO" 5
13089fi
13090if ! test -x "$XSLTCONFIG"; then
13091    as_fn_error $? "$XSLTCONFIG cannot be executed" "$LINENO" 5
13092fi
13093XSLT_LIBS="$($XSLTCONFIG --libs)"
13094XSLT_CFLAGS="$($XSLTCONFIG --cflags)"
13095ac_xslt_save_LIBS="$LIBS"
13096ac_xslt_save_CFLAGS="$CFLAGS"
13097LIBS="$XSLT_LIBS $LIBS"
13098CFLAGS="$CFLAGS $XSLT_CFLAGS"
13099for ac_func in xsltSaveResultToString
13100do :
13101  ac_fn_c_check_func "$LINENO" "xsltSaveResultToString" "ac_cv_func_xsltSaveResultToString"
13102if test "x$ac_cv_func_xsltSaveResultToString" = xyes; then :
13103  cat >>confdefs.h <<_ACEOF
13104#define HAVE_XSLTSAVERESULTTOSTRING 1
13105_ACEOF
13106
13107fi
13108done
13109
13110CFLAGS="$ac_xslt_save_CFLAGS"
13111LIBS="$ac_xslt_save_LIBS"
13112
13113
13114for arg in $XSLT_CFLAGS
13115do
13116  if { cat <<EOF
13117 $XIPH_CPPFLAGS x
13118EOF
13119} | $FGREP -v -e " $arg " > /dev/null
13120  then
13121    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
13122  fi
13123done
13124
13125
13126xt_compare="$XIPH_LIBS"
13127xt_filtered=""
13128for arg in $XSLT_LIBS
13129do
13130  if { cat <<EOF
13131 $xt_compare x
13132EOF
13133} | $FGREP -v -e " $arg " > /dev/null
13134  then
13135    xt_compare="$arg $xt_compare"
13136    xt_filtered="$xt_filtered $arg"
13137  fi
13138done
13139XIPH_LIBS="$xt_filtered $XIPH_LIBS"
13140
13141
13142
13143
13144# Check whether --with-ogg was given.
13145if test "${with_ogg+set}" = set; then :
13146  withval=$with_ogg; ogg_prefix="$withval"
13147else
13148  ogg_prefix="$OGG_PREFIX"
13149
13150fi
13151
13152if test "x$ogg_prefix" = "x" -o "x$ogg_prefix" = "xyes"; then
13153    if test "x$prefix" = "xNONE"; then
13154        ogg_prefix=/usr/local
13155    else
13156        ogg_prefix="$prefix"
13157    fi
13158fi
13159
13160
13161xt_warning=no
13162if test x"$GCC" = "xyes"
13163then
13164  save_cflags="$CFLAGS"
13165  CFLAGS="-Werror -I$ogg_prefix/include"
13166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167/* end confdefs.h.  */
13168
13169int
13170main ()
13171{
13172
13173  ;
13174  return 0;
13175}
13176_ACEOF
13177if ac_fn_c_try_compile "$LINENO"; then :
13178
13179else
13180  xt_warning=yes
13181fi
13182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183  CFLAGS="$save_cflags"
13184fi
13185if test "$xt_warning" = "yes"
13186then
13187  :
13188else
13189   OGG_CFLAGS="-I$ogg_prefix/include"
13190      OGG_LDFLAGS="-L$ogg_prefix/lib"
13191
13192fi
13193
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libogg" >&5
13195$as_echo_n "checking for libogg... " >&6; }
13196if ${xt_cv_lib_ogg+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  OGG_LIBS="-logg"
13200
13201#
13202# check if the installed Ogg is sufficiently new.
13203#
13204ac_save_CFLAGS="$CFLAGS"
13205ac_save_LIBS="$LIBS"
13206ac_save_LDFLAGS="$LDFLAGS"
13207CFLAGS="$CFLAGS $OGG_CFLAGS"
13208LIBS="$LIBS $OGG_LIBS"
13209LDFLAGS="$LDFLAGS $OGG_LDFLAGS"
13210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* end confdefs.h.  */
13212
13213/* Override any GCC internal prototype to avoid an error.
13214   Use char because int might match the return type of a GCC
13215   builtin and then its argument prototype would still apply.  */
13216#ifdef __cplusplus
13217extern "C"
13218#endif
13219char ogg_sync_init ();
13220int
13221main ()
13222{
13223return ogg_sync_init ();
13224  ;
13225  return 0;
13226}
13227_ACEOF
13228if ac_fn_c_try_link "$LINENO"; then :
13229   xt_cv_lib_ogg=ok
13230else
13231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232/* end confdefs.h.  */
13233#include <ogg/ogg.h>
13234int
13235main ()
13236{
13237
13238  ;
13239  return 0;
13240}
13241_ACEOF
13242if ac_fn_c_try_link "$LINENO"; then :
13243   xt_cv_lib_ogg="pre v1.0, needs updating"
13244else
13245   xt_cv_lib_ogg="not found"
13246fi
13247rm -f core conftest.err conftest.$ac_objext \
13248    conftest$ac_exeext conftest.$ac_ext
13249
13250fi
13251rm -f core conftest.err conftest.$ac_objext \
13252    conftest$ac_exeext conftest.$ac_ext
13253CFLAGS="$ac_save_CFLAGS"
13254LDFLAGS="$ac_save_LDFLAGS"
13255LIBS="$ac_save_LIBS"
13256
13257fi
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_cv_lib_ogg" >&5
13259$as_echo "$xt_cv_lib_ogg" >&6; }
13260if test "x$xt_cv_lib_ogg" = "xok"; then
13261
13262
13263$as_echo "#define HAVE_OGG 1" >>confdefs.h
13264
13265else
13266    OGG_LIBS=""
13267    OGG_CFLAGS=""
13268    OGG_LDFLAGS=""
13269
13270fi
13271
13272
13273
13274
13275
13276
13277
13278
13279# Check whether --with-vorbis was given.
13280if test "${with_vorbis+set}" = set; then :
13281  withval=$with_vorbis; vorbis_prefix="$withval"
13282else
13283  vorbis_prefix="$VORBIS_PREFIX"
13284
13285fi
13286
13287if test "x$vorbis_prefix" = "x" -o "x$vorbis_prefix" = "xyes"; then
13288    if test "x$prefix" = "xNONE"; then
13289        vorbis_prefix="/usr/local"
13290    else
13291        vorbis_prefix="$prefix"
13292    fi
13293fi
13294
13295VORBIS_CFLAGS="$OGG_CFLAGS"
13296VORBIS_LDFLAGS="$OGG_LDFLAGS"
13297if test "x$vorbis_prefix" != "x$ogg_prefix"; then
13298
13299xt_warning=no
13300if test x"$GCC" = "xyes"
13301then
13302  save_cflags="$CFLAGS"
13303  CFLAGS="-Werror -I"$vorbis_prefix/include""
13304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306
13307int
13308main ()
13309{
13310
13311  ;
13312  return 0;
13313}
13314_ACEOF
13315if ac_fn_c_try_compile "$LINENO"; then :
13316
13317else
13318  xt_warning=yes
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321  CFLAGS="$save_cflags"
13322fi
13323if test "$xt_warning" = "yes"
13324then
13325  :
13326else
13327  VORBIS_CFLAGS="$VORBIS_CFLAGS -I$vorbis_prefix/include"
13328            VORBIS_LDFLAGS="-L$vorbis_prefix/lib $VORBIS_LDFLAGS"
13329
13330fi
13331
13332fi
13333
13334VORBIS_LIBS="-lvorbis"
13335VORBISFILE_LIBS="-lvorbisfile"
13336VORBISENC_LIBS="-lvorbisenc"
13337
13338xt_save_LIBS="$LIBS"
13339xt_save_LDFLAGS="$LDFLAGS"
13340xt_save_CPPFLAGS="$CPPFLAGS"
13341CPPFLAGS="$CPPFLAGS $VORBIS_CFLAGS"
13342LDFLAGS="$LDFLAGS $VORBIS_LDFLAGS"
13343LIBS="$LIBS $VORBIS_LIBS"
13344xt_lib_vorbis="not found"
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvorbis" >&5
13346$as_echo_n "checking for libvorbis... " >&6; }
13347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348/* end confdefs.h.  */
13349
13350/* Override any GCC internal prototype to avoid an error.
13351   Use char because int might match the return type of a GCC
13352   builtin and then its argument prototype would still apply.  */
13353#ifdef __cplusplus
13354extern "C"
13355#endif
13356char ogg_stream_init ();
13357int
13358main ()
13359{
13360return ogg_stream_init ();
13361  ;
13362  return 0;
13363}
13364_ACEOF
13365if ac_fn_c_try_link "$LINENO"; then :
13366  xt_lib_vorbis=ok
13367else
13368  LIBS="$LIBS $OGG_LIBS -lm"
13369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370/* end confdefs.h.  */
13371
13372/* Override any GCC internal prototype to avoid an error.
13373   Use char because int might match the return type of a GCC
13374   builtin and then its argument prototype would still apply.  */
13375#ifdef __cplusplus
13376extern "C"
13377#endif
13378char vorbis_info_init ();
13379int
13380main ()
13381{
13382return vorbis_info_init ();
13383  ;
13384  return 0;
13385}
13386_ACEOF
13387if ac_fn_c_try_link "$LINENO"; then :
13388  xt_lib_vorbis=ok
13389            VORBIS_LIBS="$VORBIS_LIBS $OGG_LIBS -lm"
13390fi
13391rm -f core conftest.err conftest.$ac_objext \
13392    conftest$ac_exeext conftest.$ac_ext
13393
13394fi
13395rm -f core conftest.err conftest.$ac_objext \
13396    conftest$ac_exeext conftest.$ac_ext
13397
13398if test "x$xt_lib_vorbis" = "xok"; then
13399#
13400# Now check if the installed Vorbis is sufficiently new.
13401#
13402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h.  */
13404
13405#include <vorbis/codec.h>
13406#include <vorbis/vorbisenc.h>
13407
13408int
13409main ()
13410{
13411
13412struct ovectl_ratemanage_arg a;
13413
13414  ;
13415  return 0;
13416}
13417_ACEOF
13418if ac_fn_c_try_compile "$LINENO"; then :
13419
13420else
13421  xt_lib_vorbis="old version found"
13422fi
13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_lib_vorbis" >&5
13425$as_echo "$xt_lib_vorbis" >&6; }
13426fi
13427CPPFLAGS="$xt_save_CPPFLAGS"
13428LIBS="$xt_save_LIBS"
13429LDFLAGS="$xt_save_LDFLAGS"
13430
13431if test "x$xt_lib_vorbis" = "xok"; then
13432
13433
13434for arg in $VORBIS_CFLAGS
13435do
13436  if { cat <<EOF
13437 $XIPH_CPPFLAGS x
13438EOF
13439} | $FGREP -v -e " $arg " > /dev/null
13440  then
13441    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
13442  fi
13443done
13444
13445
13446xt_compare="$XIPH_LIBS"
13447xt_filtered=""
13448for arg in $VORBIS_LIBS
13449do
13450  if { cat <<EOF
13451 $xt_compare x
13452EOF
13453} | $FGREP -v -e " $arg " > /dev/null
13454  then
13455    xt_compare="$arg $xt_compare"
13456    xt_filtered="$xt_filtered $arg"
13457  fi
13458done
13459XIPH_LIBS="$xt_filtered $XIPH_LIBS"
13460
13461
13462for arg in $VORBIS_LDFLAGS
13463do
13464  if { cat <<EOF
13465 $XIPH_LDFLAGS x
13466EOF
13467} | $FGREP -v -e " $arg " > /dev/null
13468  then
13469    XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
13470  fi
13471done
13472
13473    ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_vorbis.o"
13474
13475else
13476    VORBIS_CFLAGS=""
13477    VORBIS_LDFLAGS=""
13478    VORBIS_LIBS=""
13479    VORBISFILE_LIBS=""
13480    VORBISENC_LIBS=""
13481    as_fn_error $? "must have Ogg Vorbis v1.0 or above installed" "$LINENO" 5
13482
13483fi
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496# Check whether --with-theora was given.
13497if test "${with_theora+set}" = set; then :
13498  withval=$with_theora; theora_prefix="$withval"
13499else
13500  theora_prefix="$THEORA_PREFIX"
13501
13502fi
13503
13504
13505if test "x$with_theora" = "xno"
13506then
13507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Theora support disabled by request" >&5
13508$as_echo "Theora support disabled by request" >&6; }
13509else
13510  if test "x$theora_prefix" = "x" -o "x$theora_prefix" = "xyes"; then
13511    if test "x$prefix" = "xNONE"; then
13512        theora_prefix="/usr/local"
13513    else
13514        theora_prefix="$prefix"
13515    fi
13516  fi
13517
13518  THEORA_CFLAGS="$OGG_CFLAGS"
13519  THEORA_LDFLAGS="$OGG_LDFLAGS"
13520  if test "x$theora_prefix" != "x$ogg_prefix"; then
13521
13522xt_warning=no
13523if test x"$GCC" = "xyes"
13524then
13525  save_cflags="$CFLAGS"
13526  CFLAGS="-Werror -I"$theora_prefix/include""
13527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h.  */
13529
13530int
13531main ()
13532{
13533
13534  ;
13535  return 0;
13536}
13537_ACEOF
13538if ac_fn_c_try_compile "$LINENO"; then :
13539
13540else
13541  xt_warning=yes
13542fi
13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544  CFLAGS="$save_cflags"
13545fi
13546if test "$xt_warning" = "yes"
13547then
13548  :
13549else
13550  THEORA_CFLAGS="$THEORA_CFLAGS -I$theora_prefix/include"
13551              THEORA_LDFLAGS="-L$theora_prefix/lib $THEORA_LDFLAGS"
13552
13553fi
13554
13555  fi
13556
13557  THEORA_LIBS="-ltheora -logg"
13558
13559  ac_save_LIBS="$LIBS"
13560  ac_save_LDFLAGS="$LDFLAGS"
13561  LDFLAGS="$LDFLAGS $THEORA_LDFLAGS"
13562  LIBS="$LIBS $THEORA_LIBS"
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtheora" >&5
13564$as_echo_n "checking for libtheora... " >&6; }
13565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566/* end confdefs.h.  */
13567
13568/* Override any GCC internal prototype to avoid an error.
13569   Use char because int might match the return type of a GCC
13570   builtin and then its argument prototype would still apply.  */
13571#ifdef __cplusplus
13572extern "C"
13573#endif
13574char theora_decode_header ();
13575int
13576main ()
13577{
13578return theora_decode_header ();
13579  ;
13580  return 0;
13581}
13582_ACEOF
13583if ac_fn_c_try_link "$LINENO"; then :
13584  xt_have_theora="yes"
13585else
13586  xt_have_theora="Not found"
13587fi
13588rm -f core conftest.err conftest.$ac_objext \
13589    conftest$ac_exeext conftest.$ac_ext
13590  if test "x$xt_have_theora" = "xyes"
13591  then
13592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h.  */
13594
13595/* Override any GCC internal prototype to avoid an error.
13596   Use char because int might match the return type of a GCC
13597   builtin and then its argument prototype would still apply.  */
13598#ifdef __cplusplus
13599extern "C"
13600#endif
13601char theora_packet_isheader ();
13602int
13603main ()
13604{
13605return theora_packet_isheader ();
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610if ac_fn_c_try_link "$LINENO"; then :
13611  xt_have_theora="yes"
13612else
13613  xt_have_theora="newer version required"
13614fi
13615rm -f core conftest.err conftest.$ac_objext \
13616    conftest$ac_exeext conftest.$ac_ext
13617  fi
13618
13619  LIBS="$ac_save_LIBS"
13620  LDFLAGS="$ac_save_LDFLAGS"
13621
13622  if test "x$xt_have_theora" = "xyes"
13623  then
13624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13625$as_echo "ok" >&6; }
13626
13627$as_echo "#define HAVE_THEORA 1" >>confdefs.h
13628
13629
13630
13631for arg in $THEORA_CFLAGS
13632do
13633  if { cat <<EOF
13634 $XIPH_CPPFLAGS x
13635EOF
13636} | $FGREP -v -e " $arg " > /dev/null
13637  then
13638    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
13639  fi
13640done
13641
13642
13643for arg in $THEORA_LDFLAGS
13644do
13645  if { cat <<EOF
13646 $XIPH_LDFLAGS x
13647EOF
13648} | $FGREP -v -e " $arg " > /dev/null
13649  then
13650    XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
13651  fi
13652done
13653
13654
13655xt_compare="$XIPH_LIBS"
13656xt_filtered=""
13657for arg in $THEORA_LIBS
13658do
13659  if { cat <<EOF
13660 $xt_compare x
13661EOF
13662} | $FGREP -v -e " $arg " > /dev/null
13663  then
13664    xt_compare="$arg $xt_compare"
13665    xt_filtered="$xt_filtered $arg"
13666  fi
13667done
13668XIPH_LIBS="$xt_filtered $XIPH_LIBS"
13669
13670    ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_theora.o"
13671
13672  else
13673    THEORA_CFLAGS=""
13674    THEORA_LDFLAGS=""
13675    THEORA_LIBS=""
13676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xt_have_theora" >&5
13677$as_echo "$xt_have_theora" >&6; }
13678     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Theora disabled!" >&5
13679$as_echo "$as_me: WARNING: Theora disabled!" >&2;}
13680
13681  fi
13682fi
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693# Check whether --with-speex was given.
13694if test "${with_speex+set}" = set; then :
13695  withval=$with_speex; speex_prefix="$withval"
13696else
13697  speex_prefix="$SPEEX_PREFIX"
13698
13699fi
13700
13701if test "x$with_speex" = "xno"
13702then
13703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Speex support disabled by request" >&5
13704$as_echo "Speex support disabled by request" >&6; }
13705else
13706  if test "x$speex_prefix" = "x" -o "x$speex_prefix" = "xyes"; then
13707      if test "x$prefix" = "xNONE"; then
13708          speex_prefix="/usr/local"
13709      else
13710          speex_prefix="$prefix"
13711      fi
13712  fi
13713
13714  SPEEX_CFLAGS="$OGG_CFLAGS"
13715  SPEEX_LDFLAGS="$OGG_LDFLAGS"
13716  if test "x$speex_prefix" != "x$ogg_prefix"; then
13717
13718xt_warning=no
13719if test x"$GCC" = "xyes"
13720then
13721  save_cflags="$CFLAGS"
13722  CFLAGS="-Werror -I"$speex_prefix/include""
13723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h.  */
13725
13726int
13727main ()
13728{
13729
13730  ;
13731  return 0;
13732}
13733_ACEOF
13734if ac_fn_c_try_compile "$LINENO"; then :
13735
13736else
13737  xt_warning=yes
13738fi
13739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740  CFLAGS="$save_cflags"
13741fi
13742if test "$xt_warning" = "yes"
13743then
13744  :
13745else
13746  SPEEX_CFLAGS="$SPEEX_CFLAGS -I$speex_prefix/include"
13747              SPEEX_LDFLAGS="-L$speex_prefix/lib $SPEEX_LDFLAGS"
13748
13749fi
13750
13751  fi
13752
13753  SPEEX_LIBS="-lspeex"
13754
13755  xt_save_LIBS="$LIBS"
13756  xt_save_LDFLAGS="$LDFLAGS"
13757  LDFLAGS="$LDFLAGS $SPEEX_LDFLAGS"
13758  LIBS="$LIBS $SPEEX_LIBS"
13759  xt_have_speex="yes"
13760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libspeex" >&5
13761$as_echo_n "checking for libspeex... " >&6; }
13762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763/* end confdefs.h.  */
13764
13765/* Override any GCC internal prototype to avoid an error.
13766   Use char because int might match the return type of a GCC
13767   builtin and then its argument prototype would still apply.  */
13768#ifdef __cplusplus
13769extern "C"
13770#endif
13771char ogg_stream_init ();
13772int
13773main ()
13774{
13775return ogg_stream_init ();
13776  ;
13777  return 0;
13778}
13779_ACEOF
13780if ac_fn_c_try_link "$LINENO"; then :
13781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13782$as_echo "ok" >&6; }
13783else
13784  LIBS="$LIBS $OGG_LIBS"
13785          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786/* end confdefs.h.  */
13787
13788/* Override any GCC internal prototype to avoid an error.
13789   Use char because int might match the return type of a GCC
13790   builtin and then its argument prototype would still apply.  */
13791#ifdef __cplusplus
13792extern "C"
13793#endif
13794char ogg_stream_init ();
13795int
13796main ()
13797{
13798return ogg_stream_init ();
13799  ;
13800  return 0;
13801}
13802_ACEOF
13803if ac_fn_c_try_link "$LINENO"; then :
13804  SPEEX_LIBS="$SPEEX_LIBS $OGG_LIBS"
13805else
13806  xt_have_speex="no"
13807fi
13808rm -f core conftest.err conftest.$ac_objext \
13809    conftest$ac_exeext conftest.$ac_ext
13810
13811fi
13812rm -f core conftest.err conftest.$ac_objext \
13813    conftest$ac_exeext conftest.$ac_ext
13814  if test "x$xt_have_speex" = "xyes"
13815  then
13816      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818#include <speex/speex_header.h>
13819int
13820main ()
13821{
13822void *p = speex_packet_to_header;
13823  ;
13824  return 0;
13825}
13826_ACEOF
13827if ac_fn_c_try_link "$LINENO"; then :
13828
13829else
13830  xt_have_speex="no"
13831fi
13832rm -f core conftest.err conftest.$ac_objext \
13833    conftest$ac_exeext conftest.$ac_ext
13834  fi
13835
13836  LIBS="$xt_save_LIBS"
13837  LDFLAGS="$xt_save_LDFLAGS"
13838
13839  if test "x$xt_have_speex" = "xyes"
13840  then
13841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13842$as_echo "ok" >&6; }
13843
13844$as_echo "#define HAVE_SPEEX 1" >>confdefs.h
13845
13846
13847for arg in $SPEEX_CFLAGS
13848do
13849  if { cat <<EOF
13850 $XIPH_CPPFLAGS x
13851EOF
13852} | $FGREP -v -e " $arg " > /dev/null
13853  then
13854    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
13855  fi
13856done
13857
13858
13859xt_compare="$XIPH_LIBS"
13860xt_filtered=""
13861for arg in $SPEEX_LIBS
13862do
13863  if { cat <<EOF
13864 $xt_compare x
13865EOF
13866} | $FGREP -v -e " $arg " > /dev/null
13867  then
13868    xt_compare="$arg $xt_compare"
13869    xt_filtered="$xt_filtered $arg"
13870  fi
13871done
13872XIPH_LIBS="$xt_filtered $XIPH_LIBS"
13873
13874
13875for arg in $SPEEX_LDFLAGS
13876do
13877  if { cat <<EOF
13878 $XIPH_LDFLAGS x
13879EOF
13880} | $FGREP -v -e " $arg " > /dev/null
13881  then
13882    XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
13883  fi
13884done
13885
13886    ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_speex.o"
13887
13888  else
13889       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Speex support disabled!" >&5
13890$as_echo "$as_me: WARNING: Speex support disabled!" >&2;}
13891
13892      SPEEX_CFLAGS=""
13893      SPEEX_LDFLAGS=""
13894      SPEEX_LIBS=""
13895  fi
13896
13897
13898
13899fi
13900
13901
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_decode_init in -lkate" >&5
13903$as_echo_n "checking for kate_decode_init in -lkate... " >&6; }
13904if ${ac_cv_lib_kate_kate_decode_init+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907  ac_check_lib_save_LIBS=$LIBS
13908LIBS="-lkate -logg $LIBS"
13909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911
13912/* Override any GCC internal prototype to avoid an error.
13913   Use char because int might match the return type of a GCC
13914   builtin and then its argument prototype would still apply.  */
13915#ifdef __cplusplus
13916extern "C"
13917#endif
13918char kate_decode_init ();
13919int
13920main ()
13921{
13922return kate_decode_init ();
13923  ;
13924  return 0;
13925}
13926_ACEOF
13927if ac_fn_c_try_link "$LINENO"; then :
13928  ac_cv_lib_kate_kate_decode_init=yes
13929else
13930  ac_cv_lib_kate_kate_decode_init=no
13931fi
13932rm -f core conftest.err conftest.$ac_objext \
13933    conftest$ac_exeext conftest.$ac_ext
13934LIBS=$ac_check_lib_save_LIBS
13935fi
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kate_kate_decode_init" >&5
13937$as_echo "$ac_cv_lib_kate_kate_decode_init" >&6; }
13938if test "x$ac_cv_lib_kate_kate_decode_init" = xyes; then :
13939  have_kate=yes
13940else
13941  have_kate=no
13942fi
13943
13944if test "x$have_kate" == "xyes"
13945then
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kate_ogg_decode_headerin in -loggkate" >&5
13947$as_echo_n "checking for kate_ogg_decode_headerin in -loggkate... " >&6; }
13948if ${ac_cv_lib_oggkate_kate_ogg_decode_headerin+:} false; then :
13949  $as_echo_n "(cached) " >&6
13950else
13951  ac_check_lib_save_LIBS=$LIBS
13952LIBS="-loggkate -lkate -logg $LIBS"
13953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954/* end confdefs.h.  */
13955
13956/* Override any GCC internal prototype to avoid an error.
13957   Use char because int might match the return type of a GCC
13958   builtin and then its argument prototype would still apply.  */
13959#ifdef __cplusplus
13960extern "C"
13961#endif
13962char kate_ogg_decode_headerin ();
13963int
13964main ()
13965{
13966return kate_ogg_decode_headerin ();
13967  ;
13968  return 0;
13969}
13970_ACEOF
13971if ac_fn_c_try_link "$LINENO"; then :
13972  ac_cv_lib_oggkate_kate_ogg_decode_headerin=yes
13973else
13974  ac_cv_lib_oggkate_kate_ogg_decode_headerin=no
13975fi
13976rm -f core conftest.err conftest.$ac_objext \
13977    conftest$ac_exeext conftest.$ac_ext
13978LIBS=$ac_check_lib_save_LIBS
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&5
13981$as_echo "$ac_cv_lib_oggkate_kate_ogg_decode_headerin" >&6; }
13982if test "x$ac_cv_lib_oggkate_kate_ogg_decode_headerin" = xyes; then :
13983  have_kate=yes
13984else
13985  have_kate=no
13986fi
13987
13988  if test "x$have_kate" == "xyes"
13989  then
13990    KATE_LIBS="-loggkate -lkate -logg"
13991
13992$as_echo "#define HAVE_KATE 1" >>confdefs.h
13993
13994  fi
13995fi
13996#ICECAST_OPTIONAL="$ICECAST_OPTIONAL format_kate.o"
13997
13998
13999
14000
14001ac_ext=c
14002ac_cpp='$CPP $CPPFLAGS'
14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006
14007acx_pthread_ok=no
14008
14009# We used to check for pthread.h first, but this fails if pthread.h
14010# requires special compiler flags (e.g. on True64 or Sequent).
14011# It gets checked for in the link test anyway.
14012
14013# First of all, check if the user has set any of the PTHREAD_LIBS,
14014# etcetera environment variables, and if threads linking works using
14015# them:
14016if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14017        save_CFLAGS="$CFLAGS"
14018        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14019        save_LIBS="$LIBS"
14020        LIBS="$PTHREAD_LIBS $LIBS"
14021        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14022$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14023        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024/* end confdefs.h.  */
14025
14026/* Override any GCC internal prototype to avoid an error.
14027   Use char because int might match the return type of a GCC
14028   builtin and then its argument prototype would still apply.  */
14029#ifdef __cplusplus
14030extern "C"
14031#endif
14032char pthread_join ();
14033int
14034main ()
14035{
14036return pthread_join ();
14037  ;
14038  return 0;
14039}
14040_ACEOF
14041if ac_fn_c_try_link "$LINENO"; then :
14042  acx_pthread_ok=yes
14043fi
14044rm -f core conftest.err conftest.$ac_objext \
14045    conftest$ac_exeext conftest.$ac_ext
14046        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14047$as_echo "$acx_pthread_ok" >&6; }
14048        if test x"$acx_pthread_ok" = xno; then
14049                PTHREAD_LIBS=""
14050                PTHREAD_CFLAGS=""
14051        fi
14052        LIBS="$save_LIBS"
14053        CFLAGS="$save_CFLAGS"
14054fi
14055
14056# We must check for the threads library under a number of different
14057# names; the ordering is very important because some systems
14058# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14059# libraries is broken (non-POSIX).
14060
14061# Create a list of thread flags to try.  Items starting with a "-" are
14062# C compiler flags, and other items are library names, except for "none"
14063# which indicates that we try without any flags at all, and "pthread-config"
14064# which is a program returning the flags for the Pth emulation library.
14065
14066acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14067
14068# The ordering *is* (sometimes) important.  Some notes on the
14069# individual items follow:
14070
14071# pthreads: AIX (must check this before -lpthread)
14072# none: in case threads are in libc; should be tried before -Kthread and
14073#       other compiler flags to prevent continual compiler warnings
14074# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14075# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14076# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14077# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14078# -pthreads: Solaris/gcc
14079# -mthreads: Mingw32/gcc, Lynx/gcc
14080# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14081#      doesn't hurt to check since this sometimes defines pthreads too;
14082#      also defines -D_REENTRANT)
14083#      ... -mt is also the pthreads flag for HP/aCC
14084# pthread: Linux, etcetera
14085# --thread-safe: KAI C++
14086# pthread-config: use pthread-config program (for GNU Pth library)
14087
14088case "${host_cpu}-${host_os}" in
14089        *solaris*)
14090
14091        # On Solaris (at least, for some versions), libc contains stubbed
14092        # (non-functional) versions of the pthreads routines, so link-based
14093        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14094        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14095        # a function called by this macro, so we could check for that, but
14096        # who knows whether they'll stub that too in a future libc.)  So,
14097        # we'll just look for -pthreads and -lpthread first:
14098
14099        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14100        ;;
14101esac
14102
14103if test x"$acx_pthread_ok" = xno; then
14104for flag in $acx_pthread_flags; do
14105
14106        case $flag in
14107                none)
14108                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14109$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14110                ;;
14111
14112                -*)
14113                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14114$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14115                PTHREAD_CFLAGS="$flag"
14116                ;;
14117
14118                pthread-config)
14119                # Extract the first word of "pthread-config", so it can be a program name with args.
14120set dummy pthread-config; ac_word=$2
14121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14122$as_echo_n "checking for $ac_word... " >&6; }
14123if ${ac_cv_prog_acx_pthread_config+:} false; then :
14124  $as_echo_n "(cached) " >&6
14125else
14126  if test -n "$acx_pthread_config"; then
14127  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14128else
14129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130for as_dir in $PATH
14131do
14132  IFS=$as_save_IFS
14133  test -z "$as_dir" && as_dir=.
14134    for ac_exec_ext in '' $ac_executable_extensions; do
14135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136    ac_cv_prog_acx_pthread_config="yes"
14137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14138    break 2
14139  fi
14140done
14141  done
14142IFS=$as_save_IFS
14143
14144  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14145fi
14146fi
14147acx_pthread_config=$ac_cv_prog_acx_pthread_config
14148if test -n "$acx_pthread_config"; then
14149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14150$as_echo "$acx_pthread_config" >&6; }
14151else
14152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153$as_echo "no" >&6; }
14154fi
14155
14156
14157                if test x"$acx_pthread_config" = xno; then continue; fi
14158                PTHREAD_CFLAGS="`pthread-config --cflags`"
14159                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14160                ;;
14161
14162                *)
14163                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14164$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14165                PTHREAD_LIBS="-l$flag"
14166                ;;
14167        esac
14168
14169        save_LIBS="$LIBS"
14170        save_CFLAGS="$CFLAGS"
14171        LIBS="$PTHREAD_LIBS $LIBS"
14172        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14173
14174        # Check for various functions.  We must include pthread.h,
14175        # since some functions may be macros.  (On the Sequent, we
14176        # need a special flag -Kthread to make this header compile.)
14177        # We check for pthread_join because it is in -lpthread on IRIX
14178        # while pthread_create is in libc.  We check for pthread_attr_init
14179        # due to DEC craziness with -lpthreads.  We check for
14180        # pthread_cleanup_push because it is one of the few pthread
14181        # functions on Solaris that doesn't have a non-functional libc stub.
14182        # We try pthread_create on general principles.
14183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184/* end confdefs.h.  */
14185#include <pthread.h>
14186int
14187main ()
14188{
14189pthread_t th; pthread_join(th, 0);
14190                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
14191                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14192  ;
14193  return 0;
14194}
14195_ACEOF
14196if ac_fn_c_try_link "$LINENO"; then :
14197  acx_pthread_ok=yes
14198fi
14199rm -f core conftest.err conftest.$ac_objext \
14200    conftest$ac_exeext conftest.$ac_ext
14201
14202        LIBS="$save_LIBS"
14203        CFLAGS="$save_CFLAGS"
14204
14205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14206$as_echo "$acx_pthread_ok" >&6; }
14207        if test "x$acx_pthread_ok" = xyes; then
14208                break;
14209        fi
14210
14211        PTHREAD_LIBS=""
14212        PTHREAD_CFLAGS=""
14213done
14214fi
14215
14216# Various other checks:
14217if test "x$acx_pthread_ok" = xyes; then
14218        save_LIBS="$LIBS"
14219        LIBS="$PTHREAD_LIBS $LIBS"
14220        save_CFLAGS="$CFLAGS"
14221        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14222
14223        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14224        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14225$as_echo_n "checking for joinable pthread attribute... " >&6; }
14226        attr_name=unknown
14227        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14228            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h.  */
14230#include <pthread.h>
14231int
14232main ()
14233{
14234int attr=$attr; return attr;
14235  ;
14236  return 0;
14237}
14238_ACEOF
14239if ac_fn_c_try_link "$LINENO"; then :
14240  attr_name=$attr; break
14241fi
14242rm -f core conftest.err conftest.$ac_objext \
14243    conftest$ac_exeext conftest.$ac_ext
14244        done
14245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14246$as_echo "$attr_name" >&6; }
14247        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14248
14249cat >>confdefs.h <<_ACEOF
14250#define PTHREAD_CREATE_JOINABLE $attr_name
14251_ACEOF
14252
14253        fi
14254
14255        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14256$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14257        flag=no
14258        case "${host_cpu}-${host_os}" in
14259            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14260            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14261        esac
14262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14263$as_echo "${flag}" >&6; }
14264        if test "x$flag" != xno; then
14265            PTHREAD_CPPFLAGS="$flag $PTHREAD_CPPFLAGS"
14266        fi
14267
14268        for ac_func in pthread_spin_lock
14269do :
14270  ac_fn_c_check_func "$LINENO" "pthread_spin_lock" "ac_cv_func_pthread_spin_lock"
14271if test "x$ac_cv_func_pthread_spin_lock" = xyes; then :
14272  cat >>confdefs.h <<_ACEOF
14273#define HAVE_PTHREAD_SPIN_LOCK 1
14274_ACEOF
14275
14276fi
14277done
14278
14279        LIBS="$save_LIBS"
14280        CFLAGS="$save_CFLAGS"
14281
14282        # More AIX lossage: must compile with xlc_r or cc_r
14283        if test x"$GCC" != xyes; then
14284          for ac_prog in xlc_r cc_r
14285do
14286  # Extract the first word of "$ac_prog", so it can be a program name with args.
14287set dummy $ac_prog; ac_word=$2
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289$as_echo_n "checking for $ac_word... " >&6; }
14290if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14291  $as_echo_n "(cached) " >&6
14292else
14293  if test -n "$PTHREAD_CC"; then
14294  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14295else
14296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297for as_dir in $PATH
14298do
14299  IFS=$as_save_IFS
14300  test -z "$as_dir" && as_dir=.
14301    for ac_exec_ext in '' $ac_executable_extensions; do
14302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14303    ac_cv_prog_PTHREAD_CC="$ac_prog"
14304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305    break 2
14306  fi
14307done
14308  done
14309IFS=$as_save_IFS
14310
14311fi
14312fi
14313PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14314if test -n "$PTHREAD_CC"; then
14315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14316$as_echo "$PTHREAD_CC" >&6; }
14317else
14318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319$as_echo "no" >&6; }
14320fi
14321
14322
14323  test -n "$PTHREAD_CC" && break
14324done
14325test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14326
14327        else
14328          PTHREAD_CC=$CC
14329        fi
14330else
14331        PTHREAD_CC="$CC"
14332fi
14333
14334
14335
14336
14337
14338
14339# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14340if test x"$acx_pthread_ok" = xyes; then
14341
14342$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14343
14344        :
14345else
14346        acx_pthread_ok=no
14347        as_fn_error $? "POSIX threads missing" "$LINENO" 5
14348fi
14349ac_ext=c
14350ac_cpp='$CPP $CPPFLAGS'
14351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353ac_compiler_gnu=$ac_cv_c_compiler_gnu
14354
14355
14356
14357for arg in $PTHREAD_CFLAGS
14358do
14359  if { cat <<EOF
14360 $XIPH_CFLAGS x
14361EOF
14362} | $FGREP -v -e " $arg " > /dev/null
14363  then
14364    XIPH_CFLAGS="$XIPH_CFLAGS $arg"
14365  fi
14366done
14367
14368
14369for arg in $PTHREAD_CPPFLAGS
14370do
14371  if { cat <<EOF
14372 $XIPH_CPPFLAGS x
14373EOF
14374} | $FGREP -v -e " $arg " > /dev/null
14375  then
14376    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
14377  fi
14378done
14379
14380
14381xt_compare="$XIPH_LIBS"
14382xt_filtered=""
14383for arg in $PTHREAD_LIBS
14384do
14385  if { cat <<EOF
14386 $xt_compare x
14387EOF
14388} | $FGREP -v -e " $arg " > /dev/null
14389  then
14390    xt_compare="$arg $xt_compare"
14391    xt_filtered="$xt_filtered $arg"
14392  fi
14393done
14394XIPH_LIBS="$xt_filtered $XIPH_LIBS"
14395
14396
14397
14398# Check whether --with-curl was given.
14399if test "${with_curl+set}" = set; then :
14400  withval=$with_curl; curl_prefix="$withval"
14401else
14402  curl_prefix="$CURL_PREFIX"
14403fi
14404
14405
14406if test "x$curl_prefix" = "xno"
14407then
14408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libcurl support disabled by request" >&5
14409$as_echo "libcurl support disabled by request" >&6; }
14410else
14411
14412
14413# Check whether --with-curl-config was given.
14414if test "${with_curl_config+set}" = set; then :
14415  withval=$with_curl_config; CURL_CONFIG="$withval"
14416else
14417  for ac_prog in curl-config
14418do
14419  # Extract the first word of "$ac_prog", so it can be a program name with args.
14420set dummy $ac_prog; ac_word=$2
14421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422$as_echo_n "checking for $ac_word... " >&6; }
14423if ${ac_cv_path_CURL_CONFIG+:} false; then :
14424  $as_echo_n "(cached) " >&6
14425else
14426  case $CURL_CONFIG in
14427  [\\/]* | ?:[\\/]*)
14428  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
14429  ;;
14430  *)
14431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432for as_dir in $PATH
14433do
14434  IFS=$as_save_IFS
14435  test -z "$as_dir" && as_dir=.
14436    for ac_exec_ext in '' $ac_executable_extensions; do
14437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14438    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440    break 2
14441  fi
14442done
14443  done
14444IFS=$as_save_IFS
14445
14446  ;;
14447esac
14448fi
14449CURL_CONFIG=$ac_cv_path_CURL_CONFIG
14450if test -n "$CURL_CONFIG"; then
14451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
14452$as_echo "$CURL_CONFIG" >&6; }
14453else
14454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455$as_echo "no" >&6; }
14456fi
14457
14458
14459  test -n "$CURL_CONFIG" && break
14460done
14461test -n "$CURL_CONFIG" || CURL_CONFIG=""""
14462
14463fi
14464
14465
14466if test "x$curl_prefix" != "x" -a "x$curl_prefix" != "xyes"; then
14467    CURL_LIBS="-L$curl_prefix/lib -lcurl"
14468    CURL_CFLAGS="-I$curl_prefix/include"
14469elif test "x$CURL_CONFIG" != "x"; then
14470    if ! test -x "$CURL_CONFIG"; then
14471        as_fn_error $? "$CURL_CONFIG cannot be executed" "$LINENO" 5
14472    fi
14473    CURL_LIBS="$($CURL_CONFIG --libs)"
14474    CURL_CFLAGS="$($CURL_CONFIG --cflags)"
14475else
14476    if test "x$prefix" = "xNONE"; then
14477        curl_prefix="/usr/local"
14478    else
14479        curl_prefix="$prefix"
14480    fi
14481    CURL_LIBS="-L$curl_prefix/lib -lcurl"
14482    CURL_CFLAGS="-I$curl_prefix/include"
14483fi
14484
14485curl_ok="yes"
14486
14487xt_curl_CPPFLAGS="$CPPFLAGS"
14488xt_curl_LIBS="$LIBS"
14489CPPFLAGS="$CPPFLAGS $CURL_CFLAGS"
14490LIBS="$CURL_LIBS $LIBS"
14491for ac_header in curl/curl.h
14492do :
14493  ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
14494if test "x$ac_cv_header_curl_curl_h" = xyes; then :
14495  cat >>confdefs.h <<_ACEOF
14496#define HAVE_CURL_CURL_H 1
14497_ACEOF
14498
14499else
14500  curl_ok="no"
14501fi
14502
14503done
14504
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5
14506$as_echo_n "checking for libcurl... " >&6; }
14507if test "$curl_ok" = "yes"
14508then
14509    if test "$cross_compiling" = yes; then :
14510  curl_ok="yes"
14511else
14512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h.  */
14514
14515#include <curl/curl.h>
14516int main()
14517{
14518    return 0;
14519}
14520
14521_ACEOF
14522if ac_fn_c_try_run "$LINENO"; then :
14523
14524else
14525  curl_ok="no"
14526fi
14527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14528  conftest.$ac_objext conftest.beam conftest.$ac_ext
14529fi
14530
14531fi
14532if test "$curl_ok" = "yes"; then
14533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534$as_echo "yes" >&6; }
14535
14536$as_echo "#define HAVE_CURL 1" >>confdefs.h
14537
14538
14539    ac_fn_c_check_decl "$LINENO" "CURLOPT_NOSIGNAL" "ac_cv_have_decl_CURLOPT_NOSIGNAL" "#include <curl/curl.h>
14540
14541"
14542if test "x$ac_cv_have_decl_CURLOPT_NOSIGNAL" = xyes; then :
14543
14544$as_echo "#define HAVE_AUTH_URL 1" >>confdefs.h
14545
14546        for ac_func in curl_global_init
14547do :
14548  ac_fn_c_check_func "$LINENO" "curl_global_init" "ac_cv_func_curl_global_init"
14549if test "x$ac_cv_func_curl_global_init" = xyes; then :
14550  cat >>confdefs.h <<_ACEOF
14551#define HAVE_CURL_GLOBAL_INIT 1
14552_ACEOF
14553
14554fi
14555done
14556
14557        ICECAST_OPTIONAL="$ICECAST_OPTIONAL auth_url.o"
14558        enable_curl="yes"
14559
14560for arg in $CURL_CFLAGS
14561do
14562  if { cat <<EOF
14563 $XIPH_CPPFLAGS x
14564EOF
14565} | $FGREP -v -e " $arg " > /dev/null
14566  then
14567    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
14568  fi
14569done
14570
14571
14572xt_compare="$XIPH_LIBS"
14573xt_filtered=""
14574for arg in $CURL_LIBS
14575do
14576  if { cat <<EOF
14577 $xt_compare x
14578EOF
14579} | $FGREP -v -e " $arg " > /dev/null
14580  then
14581    xt_compare="$arg $xt_compare"
14582    xt_filtered="$xt_filtered $arg"
14583  fi
14584done
14585XIPH_LIBS="$xt_filtered $XIPH_LIBS"
14586
14587
14588else
14589   { $as_echo "$as_me:${as_lineno-$LINENO}: Your curl dev files are too old (7.10 or above required)" >&5
14590$as_echo "$as_me: Your curl dev files are too old (7.10 or above required)" >&6;}
14591
14592fi
14593
14594
14595else
14596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597$as_echo "no" >&6; }
14598    CURL_LIBS=""
14599    CURL_CFLAGS=""
14600     { $as_echo "$as_me:${as_lineno-$LINENO}: libcurl not found" >&5
14601$as_echo "$as_me: libcurl not found" >&6;}
14602
14603fi
14604CPPFLAGS="$xt_curl_CPPFLAGS"
14605LIBS="$xt_curl_LIBS"
14606fi
14607
14608
14609
14610# Check whether --enable-yp was given.
14611if test "${enable_yp+set}" = set; then :
14612  enableval=$enable_yp; enable_yp="$enableval"
14613else
14614  enable_yp="yes"
14615fi
14616
14617if test "x$enable_yp" = "xyes" -a "x$enable_curl" = xyes
14618then
14619
14620$as_echo "#define USE_YP 1" >>confdefs.h
14621
14622    ICECAST_OPTIONAL="$ICECAST_OPTIONAL yp.o"
14623else
14624    { $as_echo "$as_me:${as_lineno-$LINENO}: YP support disabled" >&5
14625$as_echo "$as_me: YP support disabled" >&6;}
14626fi
14627
14628# Check whether --with-openssl was given.
14629if test "${with_openssl+set}" = set; then :
14630  withval=$with_openssl; openssl_prefix="$withval"
14631else
14632  openssl_prefix=""
14633fi
14634
14635
14636if test "x$openssl_prefix" != "x" -a "x$openssl_prefix" != "xyes"; then
14637    OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
14638    OPENSSL_CFLAGS="-I$openssl_prefix/include"
14639else
14640    # Extract the first word of "pkg-config", so it can be a program name with args.
14641set dummy pkg-config; ac_word=$2
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643$as_echo_n "checking for $ac_word... " >&6; }
14644if ${ac_cv_path_PKGCONFIG+:} false; then :
14645  $as_echo_n "(cached) " >&6
14646else
14647  case $PKGCONFIG in
14648  [\\/]* | ?:[\\/]*)
14649  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
14650  ;;
14651  *)
14652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14653for as_dir in $PATH
14654do
14655  IFS=$as_save_IFS
14656  test -z "$as_dir" && as_dir=.
14657    for ac_exec_ext in '' $ac_executable_extensions; do
14658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14659    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
14660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14661    break 2
14662  fi
14663done
14664  done
14665IFS=$as_save_IFS
14666
14667  test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
14668  ;;
14669esac
14670fi
14671PKGCONFIG=$ac_cv_path_PKGCONFIG
14672if test -n "$PKGCONFIG"; then
14673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
14674$as_echo "$PKGCONFIG" >&6; }
14675else
14676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677$as_echo "no" >&6; }
14678fi
14679
14680
14681    if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists openssl`; then
14682        OPENSSL_CFLAGS=`$PKGCONFIG --cflags openssl`
14683        OPENSSL_LIBS=`$PKGCONFIG --libs openssl`
14684    else
14685        if test "x$prefix" = "xNONE"; then
14686            openssl_prefix="/usr/local"
14687        else
14688            openssl_prefix="$prefix"
14689        fi
14690        OPENSSL_LIBS="-L$openssl_prefix/lib -lssl"
14691        OPENSSL_CFLAGS="-I$openssl_prefix/include"
14692    fi
14693fi
14694
14695# Now try linking to openssl
14696xt_save_CFLAGS="$CFLAGS"
14697xt_save_LIBS="$LIBS"
14698CFLAGS="$CFLAGS $OPENSSL_CFLAGS"
14699LIBS="$OPENSSL_LIBS $LIBS"
14700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702#include <openssl/ssl.h>
14703int
14704main ()
14705{
14706void *a = SSL_new
14707  ;
14708  return 0;
14709}
14710_ACEOF
14711if ac_fn_c_try_link "$LINENO"; then :
14712  openssl_ok='yes'
14713fi
14714rm -f core conftest.err conftest.$ac_objext \
14715    conftest$ac_exeext conftest.$ac_ext
14716CFLAGS="$xt_save_CFLAGS"
14717LIBS="$xt_save_LIBS"
14718
14719if test "$openssl_ok" = "yes"; then
14720
14721$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14722
14723
14724
14725for arg in $OPENSSL_CFLAGS
14726do
14727  if { cat <<EOF
14728 $XIPH_CPPFLAGS x
14729EOF
14730} | $FGREP -v -e " $arg " > /dev/null
14731  then
14732    XIPH_CPPFLAGS="$XIPH_CPPFLAGS $arg"
14733  fi
14734done
14735
14736
14737for arg in $OPENSSL_LDFLAGS
14738do
14739  if { cat <<EOF
14740 $XIPH_LDFLAGS x
14741EOF
14742} | $FGREP -v -e " $arg " > /dev/null
14743  then
14744    XIPH_LDFLAGS="$XIPH_LDFLAGS $arg"
14745  fi
14746done
14747
14748
14749xt_compare="$XIPH_LIBS"
14750xt_filtered=""
14751for arg in $OPENSSL_LIBS
14752do
14753  if { cat <<EOF
14754 $xt_compare x
14755EOF
14756} | $FGREP -v -e " $arg " > /dev/null
14757  then
14758    xt_compare="$arg $xt_compare"
14759    xt_filtered="$xt_filtered $arg"
14760  fi
14761done
14762XIPH_LIBS="$xt_filtered $XIPH_LIBS"
14763
14764
14765else
14766    OPENSSL_LIBS=""
14767    OPENSSL_CFLAGS=""
14768     { $as_echo "$as_me:${as_lineno-$LINENO}: SSL disabled!" >&5
14769$as_echo "$as_me: SSL disabled!" >&6;}
14770
14771fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791ac_config_files="$ac_config_files Makefile conf/Makefile src/Makefile src/avl/Makefile src/httpp/Makefile src/thread/Makefile src/log/Makefile src/net/Makefile src/timing/Makefile doc/Makefile doc/img/Makefile doc/assets/Makefile doc/assets/css/Makefile doc/assets/font/Makefile doc/assets/img/Makefile web/Makefile admin/Makefile win32/Makefile examples/Makefile"
14792
14793cat >confcache <<\_ACEOF
14794# This file is a shell script that caches the results of configure
14795# tests run on this system so they can be shared between configure
14796# scripts and configure runs, see configure's option --config-cache.
14797# It is not useful on other systems.  If it contains results you don't
14798# want to keep, you may remove or edit it.
14799#
14800# config.status only pays attention to the cache file if you give it
14801# the --recheck option to rerun configure.
14802#
14803# `ac_cv_env_foo' variables (set or unset) will be overridden when
14804# loading this file, other *unset* `ac_cv_foo' will be assigned the
14805# following values.
14806
14807_ACEOF
14808
14809# The following way of writing the cache mishandles newlines in values,
14810# but we know of no workaround that is simple, portable, and efficient.
14811# So, we kill variables containing newlines.
14812# Ultrix sh set writes to stderr and can't be redirected directly,
14813# and sets the high bit in the cache file unless we assign to the vars.
14814(
14815  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14816    eval ac_val=\$$ac_var
14817    case $ac_val in #(
14818    *${as_nl}*)
14819      case $ac_var in #(
14820      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14821$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14822      esac
14823      case $ac_var in #(
14824      _ | IFS | as_nl) ;; #(
14825      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14826      *) { eval $ac_var=; unset $ac_var;} ;;
14827      esac ;;
14828    esac
14829  done
14830
14831  (set) 2>&1 |
14832    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14833    *${as_nl}ac_space=\ *)
14834      # `set' does not quote correctly, so add quotes: double-quote
14835      # substitution turns \\\\ into \\, and sed turns \\ into \.
14836      sed -n \
14837	"s/'/'\\\\''/g;
14838	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14839      ;; #(
14840    *)
14841      # `set' quotes correctly as required by POSIX, so do not add quotes.
14842      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14843      ;;
14844    esac |
14845    sort
14846) |
14847  sed '
14848     /^ac_cv_env_/b end
14849     t clear
14850     :clear
14851     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14852     t end
14853     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14854     :end' >>confcache
14855if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14856  if test -w "$cache_file"; then
14857    if test "x$cache_file" != "x/dev/null"; then
14858      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14859$as_echo "$as_me: updating cache $cache_file" >&6;}
14860      if test ! -f "$cache_file" || test -h "$cache_file"; then
14861	cat confcache >"$cache_file"
14862      else
14863        case $cache_file in #(
14864        */* | ?:*)
14865	  mv -f confcache "$cache_file"$$ &&
14866	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14867        *)
14868	  mv -f confcache "$cache_file" ;;
14869	esac
14870      fi
14871    fi
14872  else
14873    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14874$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14875  fi
14876fi
14877rm -f confcache
14878
14879test "x$prefix" = xNONE && prefix=$ac_default_prefix
14880# Let make expand exec_prefix.
14881test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14882
14883DEFS=-DHAVE_CONFIG_H
14884
14885ac_libobjs=
14886ac_ltlibobjs=
14887for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14888  # 1. Remove the extension, and $U if already installed.
14889  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14890  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14891  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14892  #    will be set to the directory where LIBOBJS objects are built.
14893  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14894  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14895done
14896LIBOBJS=$ac_libobjs
14897
14898LTLIBOBJS=$ac_ltlibobjs
14899
14900
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14902$as_echo_n "checking that generated files are newer than configure... " >&6; }
14903   if test -n "$am_sleep_pid"; then
14904     # Hide warnings about reused PIDs.
14905     wait $am_sleep_pid 2>/dev/null
14906   fi
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14908$as_echo "done" >&6; }
14909 if test -n "$EXEEXT"; then
14910  am__EXEEXT_TRUE=
14911  am__EXEEXT_FALSE='#'
14912else
14913  am__EXEEXT_TRUE='#'
14914  am__EXEEXT_FALSE=
14915fi
14916
14917if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14918  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14919Usually this means the macro was only invoked conditionally." "$LINENO" 5
14920fi
14921if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14922  as_fn_error $? "conditional \"AMDEP\" was never defined.
14923Usually this means the macro was only invoked conditionally." "$LINENO" 5
14924fi
14925if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14926  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14927Usually this means the macro was only invoked conditionally." "$LINENO" 5
14928fi
14929
14930: "${CONFIG_STATUS=./config.status}"
14931ac_write_fail=0
14932ac_clean_files_save=$ac_clean_files
14933ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14935$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14936as_write_fail=0
14937cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14938#! $SHELL
14939# Generated by $as_me.
14940# Run this file to recreate the current configuration.
14941# Compiler output produced by configure, useful for debugging
14942# configure, is in config.log if it exists.
14943
14944debug=false
14945ac_cs_recheck=false
14946ac_cs_silent=false
14947
14948SHELL=\${CONFIG_SHELL-$SHELL}
14949export SHELL
14950_ASEOF
14951cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14952## -------------------- ##
14953## M4sh Initialization. ##
14954## -------------------- ##
14955
14956# Be more Bourne compatible
14957DUALCASE=1; export DUALCASE # for MKS sh
14958if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14959  emulate sh
14960  NULLCMD=:
14961  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14962  # is contrary to our usage.  Disable this feature.
14963  alias -g '${1+"$@"}'='"$@"'
14964  setopt NO_GLOB_SUBST
14965else
14966  case `(set -o) 2>/dev/null` in #(
14967  *posix*) :
14968    set -o posix ;; #(
14969  *) :
14970     ;;
14971esac
14972fi
14973
14974
14975as_nl='
14976'
14977export as_nl
14978# Printing a long string crashes Solaris 7 /usr/bin/printf.
14979as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14980as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14981as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14982# Prefer a ksh shell builtin over an external printf program on Solaris,
14983# but without wasting forks for bash or zsh.
14984if test -z "$BASH_VERSION$ZSH_VERSION" \
14985    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14986  as_echo='print -r --'
14987  as_echo_n='print -rn --'
14988elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14989  as_echo='printf %s\n'
14990  as_echo_n='printf %s'
14991else
14992  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14993    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14994    as_echo_n='/usr/ucb/echo -n'
14995  else
14996    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14997    as_echo_n_body='eval
14998      arg=$1;
14999      case $arg in #(
15000      *"$as_nl"*)
15001	expr "X$arg" : "X\\(.*\\)$as_nl";
15002	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15003      esac;
15004      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15005    '
15006    export as_echo_n_body
15007    as_echo_n='sh -c $as_echo_n_body as_echo'
15008  fi
15009  export as_echo_body
15010  as_echo='sh -c $as_echo_body as_echo'
15011fi
15012
15013# The user is always right.
15014if test "${PATH_SEPARATOR+set}" != set; then
15015  PATH_SEPARATOR=:
15016  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15017    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15018      PATH_SEPARATOR=';'
15019  }
15020fi
15021
15022
15023# IFS
15024# We need space, tab and new line, in precisely that order.  Quoting is
15025# there to prevent editors from complaining about space-tab.
15026# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15027# splitting by setting IFS to empty value.)
15028IFS=" ""	$as_nl"
15029
15030# Find who we are.  Look in the path if we contain no directory separator.
15031as_myself=
15032case $0 in #((
15033  *[\\/]* ) as_myself=$0 ;;
15034  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15035for as_dir in $PATH
15036do
15037  IFS=$as_save_IFS
15038  test -z "$as_dir" && as_dir=.
15039    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15040  done
15041IFS=$as_save_IFS
15042
15043     ;;
15044esac
15045# We did not find ourselves, most probably we were run as `sh COMMAND'
15046# in which case we are not to be found in the path.
15047if test "x$as_myself" = x; then
15048  as_myself=$0
15049fi
15050if test ! -f "$as_myself"; then
15051  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15052  exit 1
15053fi
15054
15055# Unset variables that we do not need and which cause bugs (e.g. in
15056# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15057# suppresses any "Segmentation fault" message there.  '((' could
15058# trigger a bug in pdksh 5.2.14.
15059for as_var in BASH_ENV ENV MAIL MAILPATH
15060do eval test x\${$as_var+set} = xset \
15061  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15062done
15063PS1='$ '
15064PS2='> '
15065PS4='+ '
15066
15067# NLS nuisances.
15068LC_ALL=C
15069export LC_ALL
15070LANGUAGE=C
15071export LANGUAGE
15072
15073# CDPATH.
15074(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15075
15076
15077# as_fn_error STATUS ERROR [LINENO LOG_FD]
15078# ----------------------------------------
15079# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15080# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15081# script with STATUS, using 1 if that was 0.
15082as_fn_error ()
15083{
15084  as_status=$1; test $as_status -eq 0 && as_status=1
15085  if test "$4"; then
15086    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15087    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15088  fi
15089  $as_echo "$as_me: error: $2" >&2
15090  as_fn_exit $as_status
15091} # as_fn_error
15092
15093
15094# as_fn_set_status STATUS
15095# -----------------------
15096# Set $? to STATUS, without forking.
15097as_fn_set_status ()
15098{
15099  return $1
15100} # as_fn_set_status
15101
15102# as_fn_exit STATUS
15103# -----------------
15104# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15105as_fn_exit ()
15106{
15107  set +e
15108  as_fn_set_status $1
15109  exit $1
15110} # as_fn_exit
15111
15112# as_fn_unset VAR
15113# ---------------
15114# Portably unset VAR.
15115as_fn_unset ()
15116{
15117  { eval $1=; unset $1;}
15118}
15119as_unset=as_fn_unset
15120# as_fn_append VAR VALUE
15121# ----------------------
15122# Append the text in VALUE to the end of the definition contained in VAR. Take
15123# advantage of any shell optimizations that allow amortized linear growth over
15124# repeated appends, instead of the typical quadratic growth present in naive
15125# implementations.
15126if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15127  eval 'as_fn_append ()
15128  {
15129    eval $1+=\$2
15130  }'
15131else
15132  as_fn_append ()
15133  {
15134    eval $1=\$$1\$2
15135  }
15136fi # as_fn_append
15137
15138# as_fn_arith ARG...
15139# ------------------
15140# Perform arithmetic evaluation on the ARGs, and store the result in the
15141# global $as_val. Take advantage of shells that can avoid forks. The arguments
15142# must be portable across $(()) and expr.
15143if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15144  eval 'as_fn_arith ()
15145  {
15146    as_val=$(( $* ))
15147  }'
15148else
15149  as_fn_arith ()
15150  {
15151    as_val=`expr "$@" || test $? -eq 1`
15152  }
15153fi # as_fn_arith
15154
15155
15156if expr a : '\(a\)' >/dev/null 2>&1 &&
15157   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15158  as_expr=expr
15159else
15160  as_expr=false
15161fi
15162
15163if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15164  as_basename=basename
15165else
15166  as_basename=false
15167fi
15168
15169if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15170  as_dirname=dirname
15171else
15172  as_dirname=false
15173fi
15174
15175as_me=`$as_basename -- "$0" ||
15176$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15177	 X"$0" : 'X\(//\)$' \| \
15178	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15179$as_echo X/"$0" |
15180    sed '/^.*\/\([^/][^/]*\)\/*$/{
15181	    s//\1/
15182	    q
15183	  }
15184	  /^X\/\(\/\/\)$/{
15185	    s//\1/
15186	    q
15187	  }
15188	  /^X\/\(\/\).*/{
15189	    s//\1/
15190	    q
15191	  }
15192	  s/.*/./; q'`
15193
15194# Avoid depending upon Character Ranges.
15195as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15196as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15197as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15198as_cr_digits='0123456789'
15199as_cr_alnum=$as_cr_Letters$as_cr_digits
15200
15201ECHO_C= ECHO_N= ECHO_T=
15202case `echo -n x` in #(((((
15203-n*)
15204  case `echo 'xy\c'` in
15205  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15206  xy)  ECHO_C='\c';;
15207  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15208       ECHO_T='	';;
15209  esac;;
15210*)
15211  ECHO_N='-n';;
15212esac
15213
15214rm -f conf$$ conf$$.exe conf$$.file
15215if test -d conf$$.dir; then
15216  rm -f conf$$.dir/conf$$.file
15217else
15218  rm -f conf$$.dir
15219  mkdir conf$$.dir 2>/dev/null
15220fi
15221if (echo >conf$$.file) 2>/dev/null; then
15222  if ln -s conf$$.file conf$$ 2>/dev/null; then
15223    as_ln_s='ln -s'
15224    # ... but there are two gotchas:
15225    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15226    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15227    # In both cases, we have to default to `cp -pR'.
15228    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15229      as_ln_s='cp -pR'
15230  elif ln conf$$.file conf$$ 2>/dev/null; then
15231    as_ln_s=ln
15232  else
15233    as_ln_s='cp -pR'
15234  fi
15235else
15236  as_ln_s='cp -pR'
15237fi
15238rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15239rmdir conf$$.dir 2>/dev/null
15240
15241
15242# as_fn_mkdir_p
15243# -------------
15244# Create "$as_dir" as a directory, including parents if necessary.
15245as_fn_mkdir_p ()
15246{
15247
15248  case $as_dir in #(
15249  -*) as_dir=./$as_dir;;
15250  esac
15251  test -d "$as_dir" || eval $as_mkdir_p || {
15252    as_dirs=
15253    while :; do
15254      case $as_dir in #(
15255      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15256      *) as_qdir=$as_dir;;
15257      esac
15258      as_dirs="'$as_qdir' $as_dirs"
15259      as_dir=`$as_dirname -- "$as_dir" ||
15260$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15261	 X"$as_dir" : 'X\(//\)[^/]' \| \
15262	 X"$as_dir" : 'X\(//\)$' \| \
15263	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15264$as_echo X"$as_dir" |
15265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15266	    s//\1/
15267	    q
15268	  }
15269	  /^X\(\/\/\)[^/].*/{
15270	    s//\1/
15271	    q
15272	  }
15273	  /^X\(\/\/\)$/{
15274	    s//\1/
15275	    q
15276	  }
15277	  /^X\(\/\).*/{
15278	    s//\1/
15279	    q
15280	  }
15281	  s/.*/./; q'`
15282      test -d "$as_dir" && break
15283    done
15284    test -z "$as_dirs" || eval "mkdir $as_dirs"
15285  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15286
15287
15288} # as_fn_mkdir_p
15289if mkdir -p . 2>/dev/null; then
15290  as_mkdir_p='mkdir -p "$as_dir"'
15291else
15292  test -d ./-p && rmdir ./-p
15293  as_mkdir_p=false
15294fi
15295
15296
15297# as_fn_executable_p FILE
15298# -----------------------
15299# Test if FILE is an executable regular file.
15300as_fn_executable_p ()
15301{
15302  test -f "$1" && test -x "$1"
15303} # as_fn_executable_p
15304as_test_x='test -x'
15305as_executable_p=as_fn_executable_p
15306
15307# Sed expression to map a string onto a valid CPP name.
15308as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15309
15310# Sed expression to map a string onto a valid variable name.
15311as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15312
15313
15314exec 6>&1
15315## ----------------------------------- ##
15316## Main body of $CONFIG_STATUS script. ##
15317## ----------------------------------- ##
15318_ASEOF
15319test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15320
15321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322# Save the log message, to keep $0 and so on meaningful, and to
15323# report actual input values of CONFIG_FILES etc. instead of their
15324# values after options handling.
15325ac_log="
15326This file was extended by Icecast $as_me 2.4.4, which was
15327generated by GNU Autoconf 2.69.  Invocation command line was
15328
15329  CONFIG_FILES    = $CONFIG_FILES
15330  CONFIG_HEADERS  = $CONFIG_HEADERS
15331  CONFIG_LINKS    = $CONFIG_LINKS
15332  CONFIG_COMMANDS = $CONFIG_COMMANDS
15333  $ $0 $@
15334
15335on `(hostname || uname -n) 2>/dev/null | sed 1q`
15336"
15337
15338_ACEOF
15339
15340case $ac_config_files in *"
15341"*) set x $ac_config_files; shift; ac_config_files=$*;;
15342esac
15343
15344case $ac_config_headers in *"
15345"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15346esac
15347
15348
15349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350# Files that config.status was made for.
15351config_files="$ac_config_files"
15352config_headers="$ac_config_headers"
15353config_commands="$ac_config_commands"
15354
15355_ACEOF
15356
15357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15358ac_cs_usage="\
15359\`$as_me' instantiates files and other configuration actions
15360from templates according to the current configuration.  Unless the files
15361and actions are specified as TAGs, all are instantiated by default.
15362
15363Usage: $0 [OPTION]... [TAG]...
15364
15365  -h, --help       print this help, then exit
15366  -V, --version    print version number and configuration settings, then exit
15367      --config     print configuration, then exit
15368  -q, --quiet, --silent
15369                   do not print progress messages
15370  -d, --debug      don't remove temporary files
15371      --recheck    update $as_me by reconfiguring in the same conditions
15372      --file=FILE[:TEMPLATE]
15373                   instantiate the configuration file FILE
15374      --header=FILE[:TEMPLATE]
15375                   instantiate the configuration header FILE
15376
15377Configuration files:
15378$config_files
15379
15380Configuration headers:
15381$config_headers
15382
15383Configuration commands:
15384$config_commands
15385
15386Report bugs to <icecast@xiph.org>."
15387
15388_ACEOF
15389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15390ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15391ac_cs_version="\\
15392Icecast config.status 2.4.4
15393configured by $0, generated by GNU Autoconf 2.69,
15394  with options \\"\$ac_cs_config\\"
15395
15396Copyright (C) 2012 Free Software Foundation, Inc.
15397This config.status script is free software; the Free Software Foundation
15398gives unlimited permission to copy, distribute and modify it."
15399
15400ac_pwd='$ac_pwd'
15401srcdir='$srcdir'
15402INSTALL='$INSTALL'
15403MKDIR_P='$MKDIR_P'
15404AWK='$AWK'
15405test -n "\$AWK" || AWK=awk
15406_ACEOF
15407
15408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409# The default lists apply if the user does not specify any file.
15410ac_need_defaults=:
15411while test $# != 0
15412do
15413  case $1 in
15414  --*=?*)
15415    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15416    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15417    ac_shift=:
15418    ;;
15419  --*=)
15420    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15421    ac_optarg=
15422    ac_shift=:
15423    ;;
15424  *)
15425    ac_option=$1
15426    ac_optarg=$2
15427    ac_shift=shift
15428    ;;
15429  esac
15430
15431  case $ac_option in
15432  # Handling of the options.
15433  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15434    ac_cs_recheck=: ;;
15435  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15436    $as_echo "$ac_cs_version"; exit ;;
15437  --config | --confi | --conf | --con | --co | --c )
15438    $as_echo "$ac_cs_config"; exit ;;
15439  --debug | --debu | --deb | --de | --d | -d )
15440    debug=: ;;
15441  --file | --fil | --fi | --f )
15442    $ac_shift
15443    case $ac_optarg in
15444    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15445    '') as_fn_error $? "missing file argument" ;;
15446    esac
15447    as_fn_append CONFIG_FILES " '$ac_optarg'"
15448    ac_need_defaults=false;;
15449  --header | --heade | --head | --hea )
15450    $ac_shift
15451    case $ac_optarg in
15452    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15453    esac
15454    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15455    ac_need_defaults=false;;
15456  --he | --h)
15457    # Conflict between --help and --header
15458    as_fn_error $? "ambiguous option: \`$1'
15459Try \`$0 --help' for more information.";;
15460  --help | --hel | -h )
15461    $as_echo "$ac_cs_usage"; exit ;;
15462  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15463  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15464    ac_cs_silent=: ;;
15465
15466  # This is an error.
15467  -*) as_fn_error $? "unrecognized option: \`$1'
15468Try \`$0 --help' for more information." ;;
15469
15470  *) as_fn_append ac_config_targets " $1"
15471     ac_need_defaults=false ;;
15472
15473  esac
15474  shift
15475done
15476
15477ac_configure_extra_args=
15478
15479if $ac_cs_silent; then
15480  exec 6>/dev/null
15481  ac_configure_extra_args="$ac_configure_extra_args --silent"
15482fi
15483
15484_ACEOF
15485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15486if \$ac_cs_recheck; then
15487  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15488  shift
15489  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15490  CONFIG_SHELL='$SHELL'
15491  export CONFIG_SHELL
15492  exec "\$@"
15493fi
15494
15495_ACEOF
15496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15497exec 5>>config.log
15498{
15499  echo
15500  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15501## Running $as_me. ##
15502_ASBOX
15503  $as_echo "$ac_log"
15504} >&5
15505
15506_ACEOF
15507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508#
15509# INIT-COMMANDS
15510#
15511AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15512
15513
15514# The HP-UX ksh and POSIX shell print the target directory to stdout
15515# if CDPATH is set.
15516(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15517
15518sed_quote_subst='$sed_quote_subst'
15519double_quote_subst='$double_quote_subst'
15520delay_variable_subst='$delay_variable_subst'
15521macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15522macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15523enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15524enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15525pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15526enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15527shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15528SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15529ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15530PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15531host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15532host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15533host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15534build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15535build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15536build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15537SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15538Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15539GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15540EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15541FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15542LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15543NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15544LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15545max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15546ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15547exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15548lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15549lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15550lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15551lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15552lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15553reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15554reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15555OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15556deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15557file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15558file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15559want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15560DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15561sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15562AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15563AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15564archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15565STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15566RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15567old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15568old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15569old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15570lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15571CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15572CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15573compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15574GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15575lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15576lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15577lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15578lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15579lt_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"`'
15580lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15581nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15582lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15583lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15584objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15585MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15586lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15587lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15588lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15589lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15590lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15591need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15592MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15593DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15594NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15595LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15596OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15597OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15598libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15599shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15600extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15601archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15602enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15603export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15604whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15605compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15606old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15607old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15608archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15609archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15610module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15611module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15612with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15613allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15614no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15615hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15616hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15617hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15618hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15619hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15620hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15621hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15622inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15623link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15624always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15625export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15626exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15627include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15628prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15629postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15630file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15631variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15632need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15633need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15634version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15635runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15636shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15637shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15638libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15639library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15640soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15641install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15642postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15643postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15644finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15645finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15646hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15647sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15648configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15649configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15650hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15651enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15652enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15653enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15654old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15655striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15656
15657LTCC='$LTCC'
15658LTCFLAGS='$LTCFLAGS'
15659compiler='$compiler_DEFAULT'
15660
15661# A function that is used when there is no print builtin or printf.
15662func_fallback_echo ()
15663{
15664  eval 'cat <<_LTECHO_EOF
15665\$1
15666_LTECHO_EOF'
15667}
15668
15669# Quote evaled strings.
15670for var in SHELL \
15671ECHO \
15672PATH_SEPARATOR \
15673SED \
15674GREP \
15675EGREP \
15676FGREP \
15677LD \
15678NM \
15679LN_S \
15680lt_SP2NL \
15681lt_NL2SP \
15682reload_flag \
15683OBJDUMP \
15684deplibs_check_method \
15685file_magic_cmd \
15686file_magic_glob \
15687want_nocaseglob \
15688DLLTOOL \
15689sharedlib_from_linklib_cmd \
15690AR \
15691AR_FLAGS \
15692archiver_list_spec \
15693STRIP \
15694RANLIB \
15695CC \
15696CFLAGS \
15697compiler \
15698lt_cv_sys_global_symbol_pipe \
15699lt_cv_sys_global_symbol_to_cdecl \
15700lt_cv_sys_global_symbol_to_import \
15701lt_cv_sys_global_symbol_to_c_name_address \
15702lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15703lt_cv_nm_interface \
15704nm_file_list_spec \
15705lt_cv_truncate_bin \
15706lt_prog_compiler_no_builtin_flag \
15707lt_prog_compiler_pic \
15708lt_prog_compiler_wl \
15709lt_prog_compiler_static \
15710lt_cv_prog_compiler_c_o \
15711need_locks \
15712MANIFEST_TOOL \
15713DSYMUTIL \
15714NMEDIT \
15715LIPO \
15716OTOOL \
15717OTOOL64 \
15718shrext_cmds \
15719export_dynamic_flag_spec \
15720whole_archive_flag_spec \
15721compiler_needs_object \
15722with_gnu_ld \
15723allow_undefined_flag \
15724no_undefined_flag \
15725hardcode_libdir_flag_spec \
15726hardcode_libdir_separator \
15727exclude_expsyms \
15728include_expsyms \
15729file_list_spec \
15730variables_saved_for_relink \
15731libname_spec \
15732library_names_spec \
15733soname_spec \
15734install_override_mode \
15735finish_eval \
15736old_striplib \
15737striplib; do
15738    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15739    *[\\\\\\\`\\"\\\$]*)
15740      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15741      ;;
15742    *)
15743      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15744      ;;
15745    esac
15746done
15747
15748# Double-quote double-evaled strings.
15749for var in reload_cmds \
15750old_postinstall_cmds \
15751old_postuninstall_cmds \
15752old_archive_cmds \
15753extract_expsyms_cmds \
15754old_archive_from_new_cmds \
15755old_archive_from_expsyms_cmds \
15756archive_cmds \
15757archive_expsym_cmds \
15758module_cmds \
15759module_expsym_cmds \
15760export_symbols_cmds \
15761prelink_cmds \
15762postlink_cmds \
15763postinstall_cmds \
15764postuninstall_cmds \
15765finish_cmds \
15766sys_lib_search_path_spec \
15767configure_time_dlsearch_path \
15768configure_time_lt_sys_library_path; do
15769    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15770    *[\\\\\\\`\\"\\\$]*)
15771      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15772      ;;
15773    *)
15774      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15775      ;;
15776    esac
15777done
15778
15779ac_aux_dir='$ac_aux_dir'
15780
15781# See if we are running on zsh, and set the options that allow our
15782# commands through without removal of \ escapes INIT.
15783if test -n "\${ZSH_VERSION+set}"; then
15784   setopt NO_GLOB_SUBST
15785fi
15786
15787
15788    PACKAGE='$PACKAGE'
15789    VERSION='$VERSION'
15790    RM='$RM'
15791    ofile='$ofile'
15792
15793
15794
15795
15796_ACEOF
15797
15798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15799
15800# Handling of arguments.
15801for ac_config_target in $ac_config_targets
15802do
15803  case $ac_config_target in
15804    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15805    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15806    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15807    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15808    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
15809    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15810    "src/avl/Makefile") CONFIG_FILES="$CONFIG_FILES src/avl/Makefile" ;;
15811    "src/httpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/httpp/Makefile" ;;
15812    "src/thread/Makefile") CONFIG_FILES="$CONFIG_FILES src/thread/Makefile" ;;
15813    "src/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/log/Makefile" ;;
15814    "src/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/net/Makefile" ;;
15815    "src/timing/Makefile") CONFIG_FILES="$CONFIG_FILES src/timing/Makefile" ;;
15816    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15817    "doc/img/Makefile") CONFIG_FILES="$CONFIG_FILES doc/img/Makefile" ;;
15818    "doc/assets/Makefile") CONFIG_FILES="$CONFIG_FILES doc/assets/Makefile" ;;
15819    "doc/assets/css/Makefile") CONFIG_FILES="$CONFIG_FILES doc/assets/css/Makefile" ;;
15820    "doc/assets/font/Makefile") CONFIG_FILES="$CONFIG_FILES doc/assets/font/Makefile" ;;
15821    "doc/assets/img/Makefile") CONFIG_FILES="$CONFIG_FILES doc/assets/img/Makefile" ;;
15822    "web/Makefile") CONFIG_FILES="$CONFIG_FILES web/Makefile" ;;
15823    "admin/Makefile") CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
15824    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
15825    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15826
15827  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15828  esac
15829done
15830
15831
15832# If the user did not use the arguments to specify the items to instantiate,
15833# then the envvar interface is used.  Set only those that are not.
15834# We use the long form for the default assignment because of an extremely
15835# bizarre bug on SunOS 4.1.3.
15836if $ac_need_defaults; then
15837  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15838  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15839  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15840fi
15841
15842# Have a temporary directory for convenience.  Make it in the build tree
15843# simply because there is no reason against having it here, and in addition,
15844# creating and moving files from /tmp can sometimes cause problems.
15845# Hook for its removal unless debugging.
15846# Note that there is a small window in which the directory will not be cleaned:
15847# after its creation but before its name has been assigned to `$tmp'.
15848$debug ||
15849{
15850  tmp= ac_tmp=
15851  trap 'exit_status=$?
15852  : "${ac_tmp:=$tmp}"
15853  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15854' 0
15855  trap 'as_fn_exit 1' 1 2 13 15
15856}
15857# Create a (secure) tmp directory for tmp files.
15858
15859{
15860  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15861  test -d "$tmp"
15862}  ||
15863{
15864  tmp=./conf$$-$RANDOM
15865  (umask 077 && mkdir "$tmp")
15866} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15867ac_tmp=$tmp
15868
15869# Set up the scripts for CONFIG_FILES section.
15870# No need to generate them if there are no CONFIG_FILES.
15871# This happens for instance with `./config.status config.h'.
15872if test -n "$CONFIG_FILES"; then
15873
15874
15875ac_cr=`echo X | tr X '\015'`
15876# On cygwin, bash can eat \r inside `` if the user requested igncr.
15877# But we know of no other shell where ac_cr would be empty at this
15878# point, so we can use a bashism as a fallback.
15879if test "x$ac_cr" = x; then
15880  eval ac_cr=\$\'\\r\'
15881fi
15882ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15883if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15884  ac_cs_awk_cr='\\r'
15885else
15886  ac_cs_awk_cr=$ac_cr
15887fi
15888
15889echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15890_ACEOF
15891
15892
15893{
15894  echo "cat >conf$$subs.awk <<_ACEOF" &&
15895  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15896  echo "_ACEOF"
15897} >conf$$subs.sh ||
15898  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15899ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15900ac_delim='%!_!# '
15901for ac_last_try in false false false false false :; do
15902  . ./conf$$subs.sh ||
15903    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15904
15905  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15906  if test $ac_delim_n = $ac_delim_num; then
15907    break
15908  elif $ac_last_try; then
15909    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15910  else
15911    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15912  fi
15913done
15914rm -f conf$$subs.sh
15915
15916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15917cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15918_ACEOF
15919sed -n '
15920h
15921s/^/S["/; s/!.*/"]=/
15922p
15923g
15924s/^[^!]*!//
15925:repl
15926t repl
15927s/'"$ac_delim"'$//
15928t delim
15929:nl
15930h
15931s/\(.\{148\}\)..*/\1/
15932t more1
15933s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15934p
15935n
15936b repl
15937:more1
15938s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15939p
15940g
15941s/.\{148\}//
15942t nl
15943:delim
15944h
15945s/\(.\{148\}\)..*/\1/
15946t more2
15947s/["\\]/\\&/g; s/^/"/; s/$/"/
15948p
15949b
15950:more2
15951s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15952p
15953g
15954s/.\{148\}//
15955t delim
15956' <conf$$subs.awk | sed '
15957/^[^""]/{
15958  N
15959  s/\n//
15960}
15961' >>$CONFIG_STATUS || ac_write_fail=1
15962rm -f conf$$subs.awk
15963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964_ACAWK
15965cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15966  for (key in S) S_is_set[key] = 1
15967  FS = ""
15968
15969}
15970{
15971  line = $ 0
15972  nfields = split(line, field, "@")
15973  substed = 0
15974  len = length(field[1])
15975  for (i = 2; i < nfields; i++) {
15976    key = field[i]
15977    keylen = length(key)
15978    if (S_is_set[key]) {
15979      value = S[key]
15980      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15981      len += length(value) + length(field[++i])
15982      substed = 1
15983    } else
15984      len += 1 + keylen
15985  }
15986
15987  print line
15988}
15989
15990_ACAWK
15991_ACEOF
15992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15993if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15994  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15995else
15996  cat
15997fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15998  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15999_ACEOF
16000
16001# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16002# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16003# trailing colons and then remove the whole line if VPATH becomes empty
16004# (actually we leave an empty line to preserve line numbers).
16005if test "x$srcdir" = x.; then
16006  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16007h
16008s///
16009s/^/:/
16010s/[	 ]*$/:/
16011s/:\$(srcdir):/:/g
16012s/:\${srcdir}:/:/g
16013s/:@srcdir@:/:/g
16014s/^:*//
16015s/:*$//
16016x
16017s/\(=[	 ]*\).*/\1/
16018G
16019s/\n//
16020s/^[^=]*=[	 ]*$//
16021}'
16022fi
16023
16024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16025fi # test -n "$CONFIG_FILES"
16026
16027# Set up the scripts for CONFIG_HEADERS section.
16028# No need to generate them if there are no CONFIG_HEADERS.
16029# This happens for instance with `./config.status Makefile'.
16030if test -n "$CONFIG_HEADERS"; then
16031cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16032BEGIN {
16033_ACEOF
16034
16035# Transform confdefs.h into an awk script `defines.awk', embedded as
16036# here-document in config.status, that substitutes the proper values into
16037# config.h.in to produce config.h.
16038
16039# Create a delimiter string that does not exist in confdefs.h, to ease
16040# handling of long lines.
16041ac_delim='%!_!# '
16042for ac_last_try in false false :; do
16043  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16044  if test -z "$ac_tt"; then
16045    break
16046  elif $ac_last_try; then
16047    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16048  else
16049    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16050  fi
16051done
16052
16053# For the awk script, D is an array of macro values keyed by name,
16054# likewise P contains macro parameters if any.  Preserve backslash
16055# newline sequences.
16056
16057ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16058sed -n '
16059s/.\{148\}/&'"$ac_delim"'/g
16060t rset
16061:rset
16062s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16063t def
16064d
16065:def
16066s/\\$//
16067t bsnl
16068s/["\\]/\\&/g
16069s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16070D["\1"]=" \3"/p
16071s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16072d
16073:bsnl
16074s/["\\]/\\&/g
16075s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16076D["\1"]=" \3\\\\\\n"\\/p
16077t cont
16078s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16079t cont
16080d
16081:cont
16082n
16083s/.\{148\}/&'"$ac_delim"'/g
16084t clear
16085:clear
16086s/\\$//
16087t bsnlc
16088s/["\\]/\\&/g; s/^/"/; s/$/"/p
16089d
16090:bsnlc
16091s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16092b cont
16093' <confdefs.h | sed '
16094s/'"$ac_delim"'/"\\\
16095"/g' >>$CONFIG_STATUS || ac_write_fail=1
16096
16097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16098  for (key in D) D_is_set[key] = 1
16099  FS = ""
16100}
16101/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16102  line = \$ 0
16103  split(line, arg, " ")
16104  if (arg[1] == "#") {
16105    defundef = arg[2]
16106    mac1 = arg[3]
16107  } else {
16108    defundef = substr(arg[1], 2)
16109    mac1 = arg[2]
16110  }
16111  split(mac1, mac2, "(") #)
16112  macro = mac2[1]
16113  prefix = substr(line, 1, index(line, defundef) - 1)
16114  if (D_is_set[macro]) {
16115    # Preserve the white space surrounding the "#".
16116    print prefix "define", macro P[macro] D[macro]
16117    next
16118  } else {
16119    # Replace #undef with comments.  This is necessary, for example,
16120    # in the case of _POSIX_SOURCE, which is predefined and required
16121    # on some systems where configure will not decide to define it.
16122    if (defundef == "undef") {
16123      print "/*", prefix defundef, macro, "*/"
16124      next
16125    }
16126  }
16127}
16128{ print }
16129_ACAWK
16130_ACEOF
16131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16133fi # test -n "$CONFIG_HEADERS"
16134
16135
16136eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16137shift
16138for ac_tag
16139do
16140  case $ac_tag in
16141  :[FHLC]) ac_mode=$ac_tag; continue;;
16142  esac
16143  case $ac_mode$ac_tag in
16144  :[FHL]*:*);;
16145  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16146  :[FH]-) ac_tag=-:-;;
16147  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16148  esac
16149  ac_save_IFS=$IFS
16150  IFS=:
16151  set x $ac_tag
16152  IFS=$ac_save_IFS
16153  shift
16154  ac_file=$1
16155  shift
16156
16157  case $ac_mode in
16158  :L) ac_source=$1;;
16159  :[FH])
16160    ac_file_inputs=
16161    for ac_f
16162    do
16163      case $ac_f in
16164      -) ac_f="$ac_tmp/stdin";;
16165      *) # Look for the file first in the build tree, then in the source tree
16166	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16167	 # because $ac_f cannot contain `:'.
16168	 test -f "$ac_f" ||
16169	   case $ac_f in
16170	   [\\/$]*) false;;
16171	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16172	   esac ||
16173	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16174      esac
16175      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16176      as_fn_append ac_file_inputs " '$ac_f'"
16177    done
16178
16179    # Let's still pretend it is `configure' which instantiates (i.e., don't
16180    # use $as_me), people would be surprised to read:
16181    #    /* config.h.  Generated by config.status.  */
16182    configure_input='Generated from '`
16183	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16184	`' by configure.'
16185    if test x"$ac_file" != x-; then
16186      configure_input="$ac_file.  $configure_input"
16187      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16188$as_echo "$as_me: creating $ac_file" >&6;}
16189    fi
16190    # Neutralize special characters interpreted by sed in replacement strings.
16191    case $configure_input in #(
16192    *\&* | *\|* | *\\* )
16193       ac_sed_conf_input=`$as_echo "$configure_input" |
16194       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16195    *) ac_sed_conf_input=$configure_input;;
16196    esac
16197
16198    case $ac_tag in
16199    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16200      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16201    esac
16202    ;;
16203  esac
16204
16205  ac_dir=`$as_dirname -- "$ac_file" ||
16206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16207	 X"$ac_file" : 'X\(//\)[^/]' \| \
16208	 X"$ac_file" : 'X\(//\)$' \| \
16209	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16210$as_echo X"$ac_file" |
16211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16212	    s//\1/
16213	    q
16214	  }
16215	  /^X\(\/\/\)[^/].*/{
16216	    s//\1/
16217	    q
16218	  }
16219	  /^X\(\/\/\)$/{
16220	    s//\1/
16221	    q
16222	  }
16223	  /^X\(\/\).*/{
16224	    s//\1/
16225	    q
16226	  }
16227	  s/.*/./; q'`
16228  as_dir="$ac_dir"; as_fn_mkdir_p
16229  ac_builddir=.
16230
16231case "$ac_dir" in
16232.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16233*)
16234  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16235  # A ".." for each directory in $ac_dir_suffix.
16236  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16237  case $ac_top_builddir_sub in
16238  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16239  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16240  esac ;;
16241esac
16242ac_abs_top_builddir=$ac_pwd
16243ac_abs_builddir=$ac_pwd$ac_dir_suffix
16244# for backward compatibility:
16245ac_top_builddir=$ac_top_build_prefix
16246
16247case $srcdir in
16248  .)  # We are building in place.
16249    ac_srcdir=.
16250    ac_top_srcdir=$ac_top_builddir_sub
16251    ac_abs_top_srcdir=$ac_pwd ;;
16252  [\\/]* | ?:[\\/]* )  # Absolute name.
16253    ac_srcdir=$srcdir$ac_dir_suffix;
16254    ac_top_srcdir=$srcdir
16255    ac_abs_top_srcdir=$srcdir ;;
16256  *) # Relative name.
16257    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16258    ac_top_srcdir=$ac_top_build_prefix$srcdir
16259    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16260esac
16261ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16262
16263
16264  case $ac_mode in
16265  :F)
16266  #
16267  # CONFIG_FILE
16268  #
16269
16270  case $INSTALL in
16271  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16272  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16273  esac
16274  ac_MKDIR_P=$MKDIR_P
16275  case $MKDIR_P in
16276  [\\/$]* | ?:[\\/]* ) ;;
16277  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16278  esac
16279_ACEOF
16280
16281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282# If the template does not know about datarootdir, expand it.
16283# FIXME: This hack should be removed a few years after 2.60.
16284ac_datarootdir_hack=; ac_datarootdir_seen=
16285ac_sed_dataroot='
16286/datarootdir/ {
16287  p
16288  q
16289}
16290/@datadir@/p
16291/@docdir@/p
16292/@infodir@/p
16293/@localedir@/p
16294/@mandir@/p'
16295case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16296*datarootdir*) ac_datarootdir_seen=yes;;
16297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16298  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16299$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16300_ACEOF
16301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16302  ac_datarootdir_hack='
16303  s&@datadir@&$datadir&g
16304  s&@docdir@&$docdir&g
16305  s&@infodir@&$infodir&g
16306  s&@localedir@&$localedir&g
16307  s&@mandir@&$mandir&g
16308  s&\\\${datarootdir}&$datarootdir&g' ;;
16309esac
16310_ACEOF
16311
16312# Neutralize VPATH when `$srcdir' = `.'.
16313# Shell code in configure.ac might set extrasub.
16314# FIXME: do we really want to maintain this feature?
16315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316ac_sed_extra="$ac_vpsub
16317$extrasub
16318_ACEOF
16319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320:t
16321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16322s|@configure_input@|$ac_sed_conf_input|;t t
16323s&@top_builddir@&$ac_top_builddir_sub&;t t
16324s&@top_build_prefix@&$ac_top_build_prefix&;t t
16325s&@srcdir@&$ac_srcdir&;t t
16326s&@abs_srcdir@&$ac_abs_srcdir&;t t
16327s&@top_srcdir@&$ac_top_srcdir&;t t
16328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16329s&@builddir@&$ac_builddir&;t t
16330s&@abs_builddir@&$ac_abs_builddir&;t t
16331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16332s&@INSTALL@&$ac_INSTALL&;t t
16333s&@MKDIR_P@&$ac_MKDIR_P&;t t
16334$ac_datarootdir_hack
16335"
16336eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16337  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16338
16339test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16340  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16341  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16342      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16344which seems to be undefined.  Please make sure it is defined" >&5
16345$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346which seems to be undefined.  Please make sure it is defined" >&2;}
16347
16348  rm -f "$ac_tmp/stdin"
16349  case $ac_file in
16350  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16351  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16352  esac \
16353  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16354 ;;
16355  :H)
16356  #
16357  # CONFIG_HEADER
16358  #
16359  if test x"$ac_file" != x-; then
16360    {
16361      $as_echo "/* $configure_input  */" \
16362      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16363    } >"$ac_tmp/config.h" \
16364      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16365    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16366      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16367$as_echo "$as_me: $ac_file is unchanged" >&6;}
16368    else
16369      rm -f "$ac_file"
16370      mv "$ac_tmp/config.h" "$ac_file" \
16371	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16372    fi
16373  else
16374    $as_echo "/* $configure_input  */" \
16375      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16376      || as_fn_error $? "could not create -" "$LINENO" 5
16377  fi
16378# Compute "$ac_file"'s index in $config_headers.
16379_am_arg="$ac_file"
16380_am_stamp_count=1
16381for _am_header in $config_headers :; do
16382  case $_am_header in
16383    $_am_arg | $_am_arg:* )
16384      break ;;
16385    * )
16386      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16387  esac
16388done
16389echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16390$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16392	 X"$_am_arg" : 'X\(//\)$' \| \
16393	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16394$as_echo X"$_am_arg" |
16395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16396	    s//\1/
16397	    q
16398	  }
16399	  /^X\(\/\/\)[^/].*/{
16400	    s//\1/
16401	    q
16402	  }
16403	  /^X\(\/\/\)$/{
16404	    s//\1/
16405	    q
16406	  }
16407	  /^X\(\/\).*/{
16408	    s//\1/
16409	    q
16410	  }
16411	  s/.*/./; q'`/stamp-h$_am_stamp_count
16412 ;;
16413
16414  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16415$as_echo "$as_me: executing $ac_file commands" >&6;}
16416 ;;
16417  esac
16418
16419
16420  case $ac_file$ac_mode in
16421    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16422  # Older Autoconf quotes --file arguments for eval, but not when files
16423  # are listed without --file.  Let's play safe and only enable the eval
16424  # if we detect the quoting.
16425  # TODO: see whether this extra hack can be removed once we start
16426  # requiring Autoconf 2.70 or later.
16427  case $CONFIG_FILES in #(
16428  *\'*) :
16429    eval set x "$CONFIG_FILES" ;; #(
16430  *) :
16431    set x $CONFIG_FILES ;; #(
16432  *) :
16433     ;;
16434esac
16435  shift
16436  # Used to flag and report bootstrapping failures.
16437  am_rc=0
16438  for am_mf
16439  do
16440    # Strip MF so we end up with the name of the file.
16441    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16442    # Check whether this is an Automake generated Makefile which includes
16443    # dependency-tracking related rules and includes.
16444    # Grep'ing the whole file directly is not great: AIX grep has a line
16445    # limit of 2048, but all sed's we know have understand at least 4000.
16446    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16447      || continue
16448    am_dirpart=`$as_dirname -- "$am_mf" ||
16449$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16450	 X"$am_mf" : 'X\(//\)[^/]' \| \
16451	 X"$am_mf" : 'X\(//\)$' \| \
16452	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16453$as_echo X"$am_mf" |
16454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16455	    s//\1/
16456	    q
16457	  }
16458	  /^X\(\/\/\)[^/].*/{
16459	    s//\1/
16460	    q
16461	  }
16462	  /^X\(\/\/\)$/{
16463	    s//\1/
16464	    q
16465	  }
16466	  /^X\(\/\).*/{
16467	    s//\1/
16468	    q
16469	  }
16470	  s/.*/./; q'`
16471    am_filepart=`$as_basename -- "$am_mf" ||
16472$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16473	 X"$am_mf" : 'X\(//\)$' \| \
16474	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16475$as_echo X/"$am_mf" |
16476    sed '/^.*\/\([^/][^/]*\)\/*$/{
16477	    s//\1/
16478	    q
16479	  }
16480	  /^X\/\(\/\/\)$/{
16481	    s//\1/
16482	    q
16483	  }
16484	  /^X\/\(\/\).*/{
16485	    s//\1/
16486	    q
16487	  }
16488	  s/.*/./; q'`
16489    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16490      && sed -e '/# am--include-marker/d' "$am_filepart" \
16491        | $MAKE -f - am--depfiles" >&5
16492   (cd "$am_dirpart" \
16493      && sed -e '/# am--include-marker/d' "$am_filepart" \
16494        | $MAKE -f - am--depfiles) >&5 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } || am_rc=$?
16498  done
16499  if test $am_rc -ne 0; then
16500    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16502as_fn_error $? "Something went wrong bootstrapping makefile fragments
16503    for automatic dependency tracking.  Try re-running configure with the
16504    '--disable-dependency-tracking' option to at least be able to build
16505    the package (albeit without support for automatic dependency tracking).
16506See \`config.log' for more details" "$LINENO" 5; }
16507  fi
16508  { am_dirpart=; unset am_dirpart;}
16509  { am_filepart=; unset am_filepart;}
16510  { am_mf=; unset am_mf;}
16511  { am_rc=; unset am_rc;}
16512  rm -f conftest-deps.mk
16513}
16514 ;;
16515    "libtool":C)
16516
16517    # See if we are running on zsh, and set the options that allow our
16518    # commands through without removal of \ escapes.
16519    if test -n "${ZSH_VERSION+set}"; then
16520      setopt NO_GLOB_SUBST
16521    fi
16522
16523    cfgfile=${ofile}T
16524    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16525    $RM "$cfgfile"
16526
16527    cat <<_LT_EOF >> "$cfgfile"
16528#! $SHELL
16529# Generated automatically by $as_me ($PACKAGE) $VERSION
16530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16531
16532# Provide generalized library-building support services.
16533# Written by Gordon Matzigkeit, 1996
16534
16535# Copyright (C) 2014 Free Software Foundation, Inc.
16536# This is free software; see the source for copying conditions.  There is NO
16537# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16538
16539# GNU Libtool is free software; you can redistribute it and/or modify
16540# it under the terms of the GNU General Public License as published by
16541# the Free Software Foundation; either version 2 of of the License, or
16542# (at your option) any later version.
16543#
16544# As a special exception to the GNU General Public License, if you
16545# distribute this file as part of a program or library that is built
16546# using GNU Libtool, you may include this file under the  same
16547# distribution terms that you use for the rest of that program.
16548#
16549# GNU Libtool is distributed in the hope that it will be useful, but
16550# WITHOUT ANY WARRANTY; without even the implied warranty of
16551# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16552# GNU General Public License for more details.
16553#
16554# You should have received a copy of the GNU General Public License
16555# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16556
16557
16558# The names of the tagged configurations supported by this script.
16559available_tags=''
16560
16561# Configured defaults for sys_lib_dlsearch_path munging.
16562: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16563
16564# ### BEGIN LIBTOOL CONFIG
16565
16566# Which release of libtool.m4 was used?
16567macro_version=$macro_version
16568macro_revision=$macro_revision
16569
16570# Whether or not to build shared libraries.
16571build_libtool_libs=$enable_shared
16572
16573# Whether or not to build static libraries.
16574build_old_libs=$enable_static
16575
16576# What type of objects to build.
16577pic_mode=$pic_mode
16578
16579# Whether or not to optimize for fast installation.
16580fast_install=$enable_fast_install
16581
16582# Shared archive member basename,for filename based shared library versioning on AIX.
16583shared_archive_member_spec=$shared_archive_member_spec
16584
16585# Shell to use when invoking shell scripts.
16586SHELL=$lt_SHELL
16587
16588# An echo program that protects backslashes.
16589ECHO=$lt_ECHO
16590
16591# The PATH separator for the build system.
16592PATH_SEPARATOR=$lt_PATH_SEPARATOR
16593
16594# The host system.
16595host_alias=$host_alias
16596host=$host
16597host_os=$host_os
16598
16599# The build system.
16600build_alias=$build_alias
16601build=$build
16602build_os=$build_os
16603
16604# A sed program that does not truncate output.
16605SED=$lt_SED
16606
16607# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16608Xsed="\$SED -e 1s/^X//"
16609
16610# A grep program that handles long lines.
16611GREP=$lt_GREP
16612
16613# An ERE matcher.
16614EGREP=$lt_EGREP
16615
16616# A literal string matcher.
16617FGREP=$lt_FGREP
16618
16619# A BSD- or MS-compatible name lister.
16620NM=$lt_NM
16621
16622# Whether we need soft or hard links.
16623LN_S=$lt_LN_S
16624
16625# What is the maximum length of a command?
16626max_cmd_len=$max_cmd_len
16627
16628# Object file suffix (normally "o").
16629objext=$ac_objext
16630
16631# Executable file suffix (normally "").
16632exeext=$exeext
16633
16634# whether the shell understands "unset".
16635lt_unset=$lt_unset
16636
16637# turn spaces into newlines.
16638SP2NL=$lt_lt_SP2NL
16639
16640# turn newlines into spaces.
16641NL2SP=$lt_lt_NL2SP
16642
16643# convert \$build file names to \$host format.
16644to_host_file_cmd=$lt_cv_to_host_file_cmd
16645
16646# convert \$build files to toolchain format.
16647to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16648
16649# An object symbol dumper.
16650OBJDUMP=$lt_OBJDUMP
16651
16652# Method to check whether dependent libraries are shared objects.
16653deplibs_check_method=$lt_deplibs_check_method
16654
16655# Command to use when deplibs_check_method = "file_magic".
16656file_magic_cmd=$lt_file_magic_cmd
16657
16658# How to find potential files when deplibs_check_method = "file_magic".
16659file_magic_glob=$lt_file_magic_glob
16660
16661# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16662want_nocaseglob=$lt_want_nocaseglob
16663
16664# DLL creation program.
16665DLLTOOL=$lt_DLLTOOL
16666
16667# Command to associate shared and link libraries.
16668sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16669
16670# The archiver.
16671AR=$lt_AR
16672
16673# Flags to create an archive.
16674AR_FLAGS=$lt_AR_FLAGS
16675
16676# How to feed a file listing to the archiver.
16677archiver_list_spec=$lt_archiver_list_spec
16678
16679# A symbol stripping program.
16680STRIP=$lt_STRIP
16681
16682# Commands used to install an old-style archive.
16683RANLIB=$lt_RANLIB
16684old_postinstall_cmds=$lt_old_postinstall_cmds
16685old_postuninstall_cmds=$lt_old_postuninstall_cmds
16686
16687# Whether to use a lock for old archive extraction.
16688lock_old_archive_extraction=$lock_old_archive_extraction
16689
16690# A C compiler.
16691LTCC=$lt_CC
16692
16693# LTCC compiler flags.
16694LTCFLAGS=$lt_CFLAGS
16695
16696# Take the output of nm and produce a listing of raw symbols and C names.
16697global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16698
16699# Transform the output of nm in a proper C declaration.
16700global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16701
16702# Transform the output of nm into a list of symbols to manually relocate.
16703global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16704
16705# Transform the output of nm in a C name address pair.
16706global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16707
16708# Transform the output of nm in a C name address pair when lib prefix is needed.
16709global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16710
16711# The name lister interface.
16712nm_interface=$lt_lt_cv_nm_interface
16713
16714# Specify filename containing input files for \$NM.
16715nm_file_list_spec=$lt_nm_file_list_spec
16716
16717# The root where to search for dependent libraries,and where our libraries should be installed.
16718lt_sysroot=$lt_sysroot
16719
16720# Command to truncate a binary pipe.
16721lt_truncate_bin=$lt_lt_cv_truncate_bin
16722
16723# The name of the directory that contains temporary libtool files.
16724objdir=$objdir
16725
16726# Used to examine libraries when file_magic_cmd begins with "file".
16727MAGIC_CMD=$MAGIC_CMD
16728
16729# Must we lock files when doing compilation?
16730need_locks=$lt_need_locks
16731
16732# Manifest tool.
16733MANIFEST_TOOL=$lt_MANIFEST_TOOL
16734
16735# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16736DSYMUTIL=$lt_DSYMUTIL
16737
16738# Tool to change global to local symbols on Mac OS X.
16739NMEDIT=$lt_NMEDIT
16740
16741# Tool to manipulate fat objects and archives on Mac OS X.
16742LIPO=$lt_LIPO
16743
16744# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16745OTOOL=$lt_OTOOL
16746
16747# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16748OTOOL64=$lt_OTOOL64
16749
16750# Old archive suffix (normally "a").
16751libext=$libext
16752
16753# Shared library suffix (normally ".so").
16754shrext_cmds=$lt_shrext_cmds
16755
16756# The commands to extract the exported symbol list from a shared archive.
16757extract_expsyms_cmds=$lt_extract_expsyms_cmds
16758
16759# Variables whose values should be saved in libtool wrapper scripts and
16760# restored at link time.
16761variables_saved_for_relink=$lt_variables_saved_for_relink
16762
16763# Do we need the "lib" prefix for modules?
16764need_lib_prefix=$need_lib_prefix
16765
16766# Do we need a version for libraries?
16767need_version=$need_version
16768
16769# Library versioning type.
16770version_type=$version_type
16771
16772# Shared library runtime path variable.
16773runpath_var=$runpath_var
16774
16775# Shared library path variable.
16776shlibpath_var=$shlibpath_var
16777
16778# Is shlibpath searched before the hard-coded library search path?
16779shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16780
16781# Format of library name prefix.
16782libname_spec=$lt_libname_spec
16783
16784# List of archive names.  First name is the real one, the rest are links.
16785# The last name is the one that the linker finds with -lNAME
16786library_names_spec=$lt_library_names_spec
16787
16788# The coded name of the library, if different from the real name.
16789soname_spec=$lt_soname_spec
16790
16791# Permission mode override for installation of shared libraries.
16792install_override_mode=$lt_install_override_mode
16793
16794# Command to use after installation of a shared archive.
16795postinstall_cmds=$lt_postinstall_cmds
16796
16797# Command to use after uninstallation of a shared archive.
16798postuninstall_cmds=$lt_postuninstall_cmds
16799
16800# Commands used to finish a libtool library installation in a directory.
16801finish_cmds=$lt_finish_cmds
16802
16803# As "finish_cmds", except a single script fragment to be evaled but
16804# not shown.
16805finish_eval=$lt_finish_eval
16806
16807# Whether we should hardcode library paths into libraries.
16808hardcode_into_libs=$hardcode_into_libs
16809
16810# Compile-time system search path for libraries.
16811sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16812
16813# Detected run-time system search path for libraries.
16814sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16815
16816# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16817configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16818
16819# Whether dlopen is supported.
16820dlopen_support=$enable_dlopen
16821
16822# Whether dlopen of programs is supported.
16823dlopen_self=$enable_dlopen_self
16824
16825# Whether dlopen of statically linked programs is supported.
16826dlopen_self_static=$enable_dlopen_self_static
16827
16828# Commands to strip libraries.
16829old_striplib=$lt_old_striplib
16830striplib=$lt_striplib
16831
16832
16833# The linker used to build libraries.
16834LD=$lt_LD
16835
16836# How to create reloadable object files.
16837reload_flag=$lt_reload_flag
16838reload_cmds=$lt_reload_cmds
16839
16840# Commands used to build an old-style archive.
16841old_archive_cmds=$lt_old_archive_cmds
16842
16843# A language specific compiler.
16844CC=$lt_compiler
16845
16846# Is the compiler the GNU compiler?
16847with_gcc=$GCC
16848
16849# Compiler flag to turn off builtin functions.
16850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16851
16852# Additional compiler flags for building library objects.
16853pic_flag=$lt_lt_prog_compiler_pic
16854
16855# How to pass a linker flag through the compiler.
16856wl=$lt_lt_prog_compiler_wl
16857
16858# Compiler flag to prevent dynamic linking.
16859link_static_flag=$lt_lt_prog_compiler_static
16860
16861# Does compiler simultaneously support -c and -o options?
16862compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16863
16864# Whether or not to add -lc for building shared libraries.
16865build_libtool_need_lc=$archive_cmds_need_lc
16866
16867# Whether or not to disallow shared libs when runtime libs are static.
16868allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16869
16870# Compiler flag to allow reflexive dlopens.
16871export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16872
16873# Compiler flag to generate shared objects directly from archives.
16874whole_archive_flag_spec=$lt_whole_archive_flag_spec
16875
16876# Whether the compiler copes with passing no objects directly.
16877compiler_needs_object=$lt_compiler_needs_object
16878
16879# Create an old-style archive from a shared archive.
16880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16881
16882# Create a temporary old-style archive to link instead of a shared archive.
16883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16884
16885# Commands used to build a shared archive.
16886archive_cmds=$lt_archive_cmds
16887archive_expsym_cmds=$lt_archive_expsym_cmds
16888
16889# Commands used to build a loadable module if different from building
16890# a shared archive.
16891module_cmds=$lt_module_cmds
16892module_expsym_cmds=$lt_module_expsym_cmds
16893
16894# Whether we are building with GNU ld or not.
16895with_gnu_ld=$lt_with_gnu_ld
16896
16897# Flag that allows shared libraries with undefined symbols to be built.
16898allow_undefined_flag=$lt_allow_undefined_flag
16899
16900# Flag that enforces no undefined symbols.
16901no_undefined_flag=$lt_no_undefined_flag
16902
16903# Flag to hardcode \$libdir into a binary during linking.
16904# This must work even if \$libdir does not exist
16905hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16906
16907# Whether we need a single "-rpath" flag with a separated argument.
16908hardcode_libdir_separator=$lt_hardcode_libdir_separator
16909
16910# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16911# DIR into the resulting binary.
16912hardcode_direct=$hardcode_direct
16913
16914# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16915# DIR into the resulting binary and the resulting library dependency is
16916# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16917# library is relocated.
16918hardcode_direct_absolute=$hardcode_direct_absolute
16919
16920# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16921# into the resulting binary.
16922hardcode_minus_L=$hardcode_minus_L
16923
16924# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16925# into the resulting binary.
16926hardcode_shlibpath_var=$hardcode_shlibpath_var
16927
16928# Set to "yes" if building a shared library automatically hardcodes DIR
16929# into the library and all subsequent libraries and executables linked
16930# against it.
16931hardcode_automatic=$hardcode_automatic
16932
16933# Set to yes if linker adds runtime paths of dependent libraries
16934# to runtime path list.
16935inherit_rpath=$inherit_rpath
16936
16937# Whether libtool must link a program against all its dependency libraries.
16938link_all_deplibs=$link_all_deplibs
16939
16940# Set to "yes" if exported symbols are required.
16941always_export_symbols=$always_export_symbols
16942
16943# The commands to list exported symbols.
16944export_symbols_cmds=$lt_export_symbols_cmds
16945
16946# Symbols that should not be listed in the preloaded symbols.
16947exclude_expsyms=$lt_exclude_expsyms
16948
16949# Symbols that must always be exported.
16950include_expsyms=$lt_include_expsyms
16951
16952# Commands necessary for linking programs (against libraries) with templates.
16953prelink_cmds=$lt_prelink_cmds
16954
16955# Commands necessary for finishing linking programs.
16956postlink_cmds=$lt_postlink_cmds
16957
16958# Specify filename containing input files.
16959file_list_spec=$lt_file_list_spec
16960
16961# How to hardcode a shared library path into an executable.
16962hardcode_action=$hardcode_action
16963
16964# ### END LIBTOOL CONFIG
16965
16966_LT_EOF
16967
16968    cat <<'_LT_EOF' >> "$cfgfile"
16969
16970# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16971
16972# func_munge_path_list VARIABLE PATH
16973# -----------------------------------
16974# VARIABLE is name of variable containing _space_ separated list of
16975# directories to be munged by the contents of PATH, which is string
16976# having a format:
16977# "DIR[:DIR]:"
16978#       string "DIR[ DIR]" will be prepended to VARIABLE
16979# ":DIR[:DIR]"
16980#       string "DIR[ DIR]" will be appended to VARIABLE
16981# "DIRP[:DIRP]::[DIRA:]DIRA"
16982#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16983#       "DIRA[ DIRA]" will be appended to VARIABLE
16984# "DIR[:DIR]"
16985#       VARIABLE will be replaced by "DIR[ DIR]"
16986func_munge_path_list ()
16987{
16988    case x$2 in
16989    x)
16990        ;;
16991    *:)
16992        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16993        ;;
16994    x:*)
16995        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16996        ;;
16997    *::*)
16998        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16999        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17000        ;;
17001    *)
17002        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17003        ;;
17004    esac
17005}
17006
17007
17008# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17009func_cc_basename ()
17010{
17011    for cc_temp in $*""; do
17012      case $cc_temp in
17013        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17014        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17015        \-*) ;;
17016        *) break;;
17017      esac
17018    done
17019    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17020}
17021
17022
17023# ### END FUNCTIONS SHARED WITH CONFIGURE
17024
17025_LT_EOF
17026
17027  case $host_os in
17028  aix3*)
17029    cat <<\_LT_EOF >> "$cfgfile"
17030# AIX sometimes has problems with the GCC collect2 program.  For some
17031# reason, if we set the COLLECT_NAMES environment variable, the problems
17032# vanish in a puff of smoke.
17033if test set != "${COLLECT_NAMES+set}"; then
17034  COLLECT_NAMES=
17035  export COLLECT_NAMES
17036fi
17037_LT_EOF
17038    ;;
17039  esac
17040
17041
17042ltmain=$ac_aux_dir/ltmain.sh
17043
17044
17045  # We use sed instead of cat because bash on DJGPP gets confused if
17046  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17047  # text mode, it properly converts lines to CR/LF.  This bash problem
17048  # is reportedly fixed, but why not run on old versions too?
17049  sed '$q' "$ltmain" >> "$cfgfile" \
17050     || (rm -f "$cfgfile"; exit 1)
17051
17052   mv -f "$cfgfile" "$ofile" ||
17053    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17054  chmod +x "$ofile"
17055
17056 ;;
17057
17058  esac
17059done # for ac_tag
17060
17061
17062as_fn_exit 0
17063_ACEOF
17064ac_clean_files=$ac_clean_files_save
17065
17066test $ac_write_fail = 0 ||
17067  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17068
17069
17070# configure is writing to config.log, and then calls config.status.
17071# config.status does its own redirection, appending to config.log.
17072# Unfortunately, on DOS this fails, as config.log is still kept open
17073# by configure, so config.status won't be able to write to it; its
17074# output is simply discarded.  So we exec the FD to /dev/null,
17075# effectively closing config.log, so it can be properly (re)opened and
17076# appended to by config.status.  When coming back to configure, we
17077# need to make the FD available again.
17078if test "$no_create" != yes; then
17079  ac_cs_success=:
17080  ac_config_status_args=
17081  test "$silent" = yes &&
17082    ac_config_status_args="$ac_config_status_args --quiet"
17083  exec 5>/dev/null
17084  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17085  exec 5>>config.log
17086  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17087  # would make configure fail if this is the last instruction.
17088  $ac_cs_success || as_fn_exit 1
17089fi
17090if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17091  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17092$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17093fi
17094
17095