xref: /aosp_15_r20/external/libogg/configure (revision 4d5d8b54cec1a9622d79143ad0e145ea73da2224)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libogg 1.3.5.
4#
5# Report bugs to <[email protected]>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell [email protected] and [email protected]
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='libogg'
623PACKAGE_TARNAME='libogg'
624PACKAGE_VERSION='1.3.5'
625PACKAGE_STRING='libogg 1.3.5'
626PACKAGE_BUGREPORT='[email protected]'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_unique_file="src/framing.c"
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665PROFILE
666DEBUG
667OPT
668USIZE64
669SIZE64
670USIZE32
671SIZE32
672USIZE16
673SIZE16
674INCLUDE_SYS_TYPES_H
675INCLUDE_STDINT_H
676INCLUDE_INTTYPES_H
677LIBTOOL_DEPS
678LIBOBJS
679DISABLE_CRC_FALSE
680DISABLE_CRC_TRUE
681LIB_AGE
682LIB_REVISION
683LIB_CURRENT
684MAINT
685MAINTAINER_MODE_FALSE
686MAINTAINER_MODE_TRUE
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
691CSCOPE
692ETAGS
693CTAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703am__untar
704am__tar
705AMTAR
706am__leading_dot
707SET_MAKE
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724LT_SYS_LIBRARY_PATH
725OTOOL64
726OTOOL
727LIPO
728NMEDIT
729DSYMUTIL
730MANIFEST_TOOL
731AWK
732RANLIB
733STRIP
734ac_ct_AR
735AR
736DLLTOOL
737OBJDUMP
738FILECMD
739LN_S
740NM
741ac_ct_DUMPBIN
742DUMPBIN
743LD
744FGREP
745EGREP
746GREP
747SED
748OBJEXT
749EXEEXT
750ac_ct_CC
751CPPFLAGS
752LDFLAGS
753CFLAGS
754CC
755host_os
756host_vendor
757host_cpu
758host
759build_os
760build_vendor
761build_cpu
762build
763LIBTOOL
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783runstatedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL
803am__quote'
804ac_subst_files=''
805ac_user_opts='
806enable_option_checking
807enable_shared
808enable_static
809with_pic
810enable_fast_install
811with_aix_soname
812with_gnu_ld
813with_sysroot
814enable_libtool_lock
815enable_dependency_tracking
816enable_silent_rules
817enable_maintainer_mode
818enable_crc
819'
820      ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
826LIBS
827CPPFLAGS
828LT_SYS_LIBRARY_PATH'
829
830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834ac_unrecognized_opts=
835ac_unrecognized_sep=
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867runstatedir='${localstatedir}/run'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: \`$ac_useropt'"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: \`$ac_useropt'"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -runstatedir | --runstatedir | --runstatedi | --runstated \
1119  | --runstate | --runstat | --runsta | --runst | --runs \
1120  | --run | --ru | --r)
1121    ac_prev=runstatedir ;;
1122  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1123  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1124  | --run=* | --ru=* | --r=*)
1125    runstatedir=$ac_optarg ;;
1126
1127  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128    ac_prev=sbindir ;;
1129  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130  | --sbi=* | --sb=*)
1131    sbindir=$ac_optarg ;;
1132
1133  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135  | --sharedst | --shareds | --shared | --share | --shar \
1136  | --sha | --sh)
1137    ac_prev=sharedstatedir ;;
1138  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141  | --sha=* | --sh=*)
1142    sharedstatedir=$ac_optarg ;;
1143
1144  -site | --site | --sit)
1145    ac_prev=site ;;
1146  -site=* | --site=* | --sit=*)
1147    site=$ac_optarg ;;
1148
1149  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150    ac_prev=srcdir ;;
1151  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152    srcdir=$ac_optarg ;;
1153
1154  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155  | --syscon | --sysco | --sysc | --sys | --sy)
1156    ac_prev=sysconfdir ;;
1157  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159    sysconfdir=$ac_optarg ;;
1160
1161  -target | --target | --targe | --targ | --tar | --ta | --t)
1162    ac_prev=target_alias ;;
1163  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164    target_alias=$ac_optarg ;;
1165
1166  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167    verbose=yes ;;
1168
1169  -version | --version | --versio | --versi | --vers | -V)
1170    ac_init_version=: ;;
1171
1172  -with-* | --with-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: \`$ac_useropt'"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=\$ac_optarg ;;
1187
1188  -without-* | --without-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: \`$ac_useropt'"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=no ;;
1203
1204  --x)
1205    # Obsolete; use --with-x.
1206    with_x=yes ;;
1207
1208  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209  | --x-incl | --x-inc | --x-in | --x-i)
1210    ac_prev=x_includes ;;
1211  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213    x_includes=$ac_optarg ;;
1214
1215  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217    ac_prev=x_libraries ;;
1218  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220    x_libraries=$ac_optarg ;;
1221
1222  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information"
1224    ;;
1225
1226  *=*)
1227    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228    # Reject names that are not valid shell variable names.
1229    case $ac_envvar in #(
1230      '' | [0-9]* | *[!_$as_cr_alnum]* )
1231      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232    esac
1233    eval $ac_envvar=\$ac_optarg
1234    export $ac_envvar ;;
1235
1236  *)
1237    # FIXME: should be removed in autoconf 3.0.
1238    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1239    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1241    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242    ;;
1243
1244  esac
1245done
1246
1247if test -n "$ac_prev"; then
1248  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249  as_fn_error $? "missing argument to $ac_option"
1250fi
1251
1252if test -n "$ac_unrecognized_opts"; then
1253  case $enable_option_checking in
1254    no) ;;
1255    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257  esac
1258fi
1259
1260# Check all directory arguments for consistency.
1261for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262		datadir sysconfdir sharedstatedir localstatedir includedir \
1263		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264		libdir localedir mandir runstatedir
1265do
1266  eval ac_val=\$$ac_var
1267  # Remove trailing slashes.
1268  case $ac_val in
1269    */ )
1270      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271      eval $ac_var=\$ac_val;;
1272  esac
1273  # Be sure to have absolute directory names.
1274  case $ac_val in
1275    [\\/$]* | ?:[\\/]* )  continue;;
1276    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277  esac
1278  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279done
1280
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
1287
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290  if test "x$build_alias" = x; then
1291    cross_compiling=maybe
1292  elif test "x$build_alias" != "x$host_alias"; then
1293    cross_compiling=yes
1294  fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306  as_fn_error $? "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308  as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313  ac_srcdir_defaulted=yes
1314  # Try the directory containing this script, then the parent directory.
1315  ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317	 X"$as_myself" : 'X\(//\)[^/]' \| \
1318	 X"$as_myself" : 'X\(//\)$' \| \
1319	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320printf "%s\n" X"$as_myself" |
1321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)[^/].*/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\/\)$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\).*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  s/.*/./; q'`
1338  srcdir=$ac_confdir
1339  if test ! -r "$srcdir/$ac_unique_file"; then
1340    srcdir=..
1341  fi
1342else
1343  ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352	pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355  srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_env_${ac_var}_value=\$${ac_var}
1366  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374  # Omit some internal or obsolete options to make the list less imposing.
1375  # This message is too long to be a string in the A/UX 3.1 sh.
1376  cat <<_ACEOF
1377\`configure' configures libogg 1.3.5 to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387  -h, --help              display this help and exit
1388      --help=short        display options specific to this package
1389      --help=recursive    display the short help of all the included packages
1390  -V, --version           display version information and exit
1391  -q, --quiet, --silent   do not print \`checking ...' messages
1392      --cache-file=FILE   cache test results in FILE [disabled]
1393  -C, --config-cache      alias for \`--cache-file=config.cache'
1394  -n, --no-create         do not create output files
1395      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398  --prefix=PREFIX         install architecture-independent files in PREFIX
1399                          [$ac_default_prefix]
1400  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                          [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411  --bindir=DIR            user executables [EPREFIX/bin]
1412  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413  --libexecdir=DIR        program executables [EPREFIX/libexec]
1414  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1418  --libdir=DIR            object code libraries [EPREFIX/lib]
1419  --includedir=DIR        C header files [PREFIX/include]
1420  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR           info documentation [DATAROOTDIR/info]
1424  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR            man documentation [DATAROOTDIR/man]
1426  --docdir=DIR            documentation root [DATAROOTDIR/doc/libogg]
1427  --htmldir=DIR           html documentation [DOCDIR]
1428  --dvidir=DIR            dvi documentation [DOCDIR]
1429  --pdfdir=DIR            pdf documentation [DOCDIR]
1430  --psdir=DIR             ps documentation [DOCDIR]
1431_ACEOF
1432
1433  cat <<\_ACEOF
1434
1435Program names:
1436  --program-prefix=PREFIX            prepend PREFIX to installed program names
1437  --program-suffix=SUFFIX            append SUFFIX to installed program names
1438  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440System types:
1441  --build=BUILD     configure for building on BUILD [guessed]
1442  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447  case $ac_init_help in
1448     short | recursive ) echo "Configuration of libogg 1.3.5:";;
1449   esac
1450  cat <<\_ACEOF
1451
1452Optional Features:
1453  --disable-option-checking  ignore unrecognized --enable/--with options
1454  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1455  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1456  --enable-shared[=PKGS]  build shared libraries [default=yes]
1457  --enable-static[=PKGS]  build static libraries [default=yes]
1458  --enable-fast-install[=PKGS]
1459                          optimize for fast installation [default=yes]
1460  --disable-libtool-lock  avoid locking (might break parallel builds)
1461  --enable-dependency-tracking
1462                          do not reject slow dependency extractors
1463  --disable-dependency-tracking
1464                          speeds up one-time build
1465  --enable-silent-rules   less verbose build output (undo: "make V=1")
1466  --disable-silent-rules  verbose build output (undo: "make V=0")
1467  --disable-maintainer-mode
1468                          disable make rules and dependencies not useful (and
1469                          sometimes confusing) to the casual installer
1470  --disable-crc           Disable CRC in the demuxer
1471
1472Optional Packages:
1473  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1476                          both]
1477  --with-aix-soname=aix|svr4|both
1478                          shared library versioning (aka "SONAME") variant to
1479                          provide on AIX, [default=aix].
1480  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1482                          compiler's sysroot if not specified).
1483
1484Some influential environment variables:
1485  CC          C compiler command
1486  CFLAGS      C compiler flags
1487  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488              nonstandard directory <lib dir>
1489  LIBS        libraries to pass to the linker, e.g. -l<library>
1490  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491              you have headers in a nonstandard directory <include dir>
1492  LT_SYS_LIBRARY_PATH
1493              User-defined run-time library search path.
1494
1495Use these variables to override the choices made by `configure' or to help
1496it to find libraries and programs with nonstandard names/locations.
1497
1498Report bugs to <ogg-dev@xiph.org>.
1499_ACEOF
1500ac_status=$?
1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504  # If there are subdirs, report their specific --help.
1505  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506    test -d "$ac_dir" ||
1507      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508      continue
1509    ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1515  # A ".." for each directory in $ac_dir_suffix.
1516  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517  case $ac_top_builddir_sub in
1518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520  esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528  .)  # We are building in place.
1529    ac_srcdir=.
1530    ac_top_srcdir=$ac_top_builddir_sub
1531    ac_abs_top_srcdir=$ac_pwd ;;
1532  [\\/]* | ?:[\\/]* )  # Absolute name.
1533    ac_srcdir=$srcdir$ac_dir_suffix;
1534    ac_top_srcdir=$srcdir
1535    ac_abs_top_srcdir=$srcdir ;;
1536  *) # Relative name.
1537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543    cd "$ac_dir" || { ac_status=$?; continue; }
1544    # Check for configure.gnu first; this name is used for a wrapper for
1545    # Metaconfig's "Configure" on case-insensitive file systems.
1546    if test -f "$ac_srcdir/configure.gnu"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549    elif test -f "$ac_srcdir/configure"; then
1550      echo &&
1551      $SHELL "$ac_srcdir/configure" --help=recursive
1552    else
1553      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554    fi || ac_status=$?
1555    cd "$ac_pwd" || { ac_status=$?; break; }
1556  done
1557fi
1558
1559test -n "$ac_init_help" && exit $ac_status
1560if $ac_init_version; then
1561  cat <<\_ACEOF
1562libogg configure 1.3.5
1563generated by GNU Autoconf 2.71
1564
1565Copyright (C) 2021 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569  exit
1570fi
1571
1572## ------------------------ ##
1573## Autoconf initialization. ##
1574## ------------------------ ##
1575
1576# ac_fn_c_try_compile LINENO
1577# --------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_compile ()
1580{
1581  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582  rm -f conftest.$ac_objext conftest.beam
1583  if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586  *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589printf "%s\n" "$ac_try_echo"; } >&5
1590  (eval "$ac_compile") 2>conftest.err
1591  ac_status=$?
1592  if test -s conftest.err; then
1593    grep -v '^ *+' conftest.err >conftest.er1
1594    cat conftest.er1 >&5
1595    mv -f conftest.er1 conftest.err
1596  fi
1597  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598  test $ac_status = 0; } && {
1599	 test -z "$ac_c_werror_flag" ||
1600	 test ! -s conftest.err
1601       } && test -s conftest.$ac_objext
1602then :
1603  ac_retval=0
1604else $as_nop
1605  printf "%s\n" "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608	ac_retval=1
1609fi
1610  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_compile
1614
1615# ac_fn_c_try_link LINENO
1616# -----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_link ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1622  if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628printf "%s\n" "$ac_try_echo"; } >&5
1629  (eval "$ac_link") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest$ac_exeext && {
1641	 test "$cross_compiling" = yes ||
1642	 test -x conftest$ac_exeext
1643       }
1644then :
1645  ac_retval=0
1646else $as_nop
1647  printf "%s\n" "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650	ac_retval=1
1651fi
1652  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1653  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1654  # interfere with the next link command; also delete a directory that is
1655  # left behind by Apple's compiler.  We do this before executing the actions.
1656  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_link
1661
1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663# -------------------------------------------------------
1664# Tests whether HEADER exists and can be compiled using the include files in
1665# INCLUDES, setting the cache variable VAR accordingly.
1666ac_fn_c_check_header_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670printf %s "checking for $2... " >&6; }
1671if eval test \${$3+y}
1672then :
1673  printf %s "(cached) " >&6
1674else $as_nop
1675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"
1681then :
1682  eval "$3=yes"
1683else $as_nop
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690printf "%s\n" "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_check_func LINENO FUNC VAR
1696# ----------------------------------
1697# Tests whether FUNC exists, setting the cache variable VAR accordingly
1698ac_fn_c_check_func ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702printf %s "checking for $2... " >&6; }
1703if eval test \${$3+y}
1704then :
1705  printf %s "(cached) " >&6
1706else $as_nop
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1711#define $2 innocuous_$2
1712
1713/* System header to define __stub macros and hopefully few prototypes,
1714   which can conflict with char $2 (); below.  */
1715
1716#include <limits.h>
1717#undef $2
1718
1719/* Override any GCC internal prototype to avoid an error.
1720   Use char because int might match the return type of a GCC
1721   builtin and then its argument prototype would still apply.  */
1722#ifdef __cplusplus
1723extern "C"
1724#endif
1725char $2 ();
1726/* The GNU C library defines this for functions which it implements
1727    to always fail with ENOSYS.  Some functions are actually named
1728    something starting with __ and the normal name is an alias.  */
1729#if defined __stub_$2 || defined __stub___$2
1730choke me
1731#endif
1732
1733int
1734main (void)
1735{
1736return $2 ();
1737  ;
1738  return 0;
1739}
1740_ACEOF
1741if ac_fn_c_try_link "$LINENO"
1742then :
1743  eval "$3=yes"
1744else $as_nop
1745  eval "$3=no"
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.beam \
1748    conftest$ac_exeext conftest.$ac_ext
1749fi
1750eval ac_res=\$$3
1751	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752printf "%s\n" "$ac_res" >&6; }
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755} # ac_fn_c_check_func
1756
1757# ac_fn_c_try_run LINENO
1758# ----------------------
1759# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1760# executables *can* be run.
1761ac_fn_c_try_run ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770printf "%s\n" "$ac_try_echo"; } >&5
1771  (eval "$ac_link") 2>&5
1772  ac_status=$?
1773  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775  { { case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780printf "%s\n" "$ac_try_echo"; } >&5
1781  (eval "$ac_try") 2>&5
1782  ac_status=$?
1783  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; }; }
1785then :
1786  ac_retval=0
1787else $as_nop
1788  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1789       printf "%s\n" "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792       ac_retval=$ac_status
1793fi
1794  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_run
1799
1800# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1801# --------------------------------------------
1802# Tries to find the compile-time value of EXPR in a program that includes
1803# INCLUDES, setting VAR accordingly. Returns whether the value could be
1804# computed
1805ac_fn_c_compute_int ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  if test "$cross_compiling" = yes; then
1809    # Depending upon the size, compute the lo and hi bounds.
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813int
1814main (void)
1815{
1816static int test_array [1 - 2 * !(($2) >= 0)];
1817test_array [0] = 0;
1818return test_array [0];
1819
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"
1825then :
1826  ac_lo=0 ac_mid=0
1827  while :; do
1828    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h.  */
1830$4
1831int
1832main (void)
1833{
1834static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1835test_array [0] = 0;
1836return test_array [0];
1837
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"
1843then :
1844  ac_hi=$ac_mid; break
1845else $as_nop
1846  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1847			if test $ac_lo -le $ac_mid; then
1848			  ac_lo= ac_hi=
1849			  break
1850			fi
1851			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1852fi
1853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1854  done
1855else $as_nop
1856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h.  */
1858$4
1859int
1860main (void)
1861{
1862static int test_array [1 - 2 * !(($2) < 0)];
1863test_array [0] = 0;
1864return test_array [0];
1865
1866  ;
1867  return 0;
1868}
1869_ACEOF
1870if ac_fn_c_try_compile "$LINENO"
1871then :
1872  ac_hi=-1 ac_mid=-1
1873  while :; do
1874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h.  */
1876$4
1877int
1878main (void)
1879{
1880static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1881test_array [0] = 0;
1882return test_array [0];
1883
1884  ;
1885  return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_compile "$LINENO"
1889then :
1890  ac_lo=$ac_mid; break
1891else $as_nop
1892  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1893			if test $ac_mid -le $ac_hi; then
1894			  ac_lo= ac_hi=
1895			  break
1896			fi
1897			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1900  done
1901else $as_nop
1902  ac_lo= ac_hi=
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1907# Binary search between lo and hi bounds.
1908while test "x$ac_lo" != "x$ac_hi"; do
1909  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912$4
1913int
1914main (void)
1915{
1916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1917test_array [0] = 0;
1918return test_array [0];
1919
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"
1925then :
1926  ac_hi=$ac_mid
1927else $as_nop
1928  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1931done
1932case $ac_lo in #((
1933?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1934'') ac_retval=1 ;;
1935esac
1936  else
1937    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h.  */
1939$4
1940static long int longval (void) { return $2; }
1941static unsigned long int ulongval (void) { return $2; }
1942#include <stdio.h>
1943#include <stdlib.h>
1944int
1945main (void)
1946{
1947
1948  FILE *f = fopen ("conftest.val", "w");
1949  if (! f)
1950    return 1;
1951  if (($2) < 0)
1952    {
1953      long int i = longval ();
1954      if (i != ($2))
1955	return 1;
1956      fprintf (f, "%ld", i);
1957    }
1958  else
1959    {
1960      unsigned long int i = ulongval ();
1961      if (i != ($2))
1962	return 1;
1963      fprintf (f, "%lu", i);
1964    }
1965  /* Do not output a trailing newline, as this causes \r\n confusion
1966     on some platforms.  */
1967  return ferror (f) || fclose (f) != 0;
1968
1969  ;
1970  return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_run "$LINENO"
1974then :
1975  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1976else $as_nop
1977  ac_retval=1
1978fi
1979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1980  conftest.$ac_objext conftest.beam conftest.$ac_ext
1981rm -f conftest.val
1982
1983  fi
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985  as_fn_set_status $ac_retval
1986
1987} # ac_fn_c_compute_int
1988ac_configure_args_raw=
1989for ac_arg
1990do
1991  case $ac_arg in
1992  *\'*)
1993    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994  esac
1995  as_fn_append ac_configure_args_raw " '$ac_arg'"
1996done
1997
1998case $ac_configure_args_raw in
1999  *$as_nl*)
2000    ac_safe_unquote= ;;
2001  *)
2002    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2003    ac_unsafe_a="$ac_unsafe_z#~"
2004    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2005    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2006esac
2007
2008cat >config.log <<_ACEOF
2009This file contains any messages produced by compilers while
2010running configure, to aid debugging if configure makes a mistake.
2011
2012It was created by libogg $as_me 1.3.5, which was
2013generated by GNU Autoconf 2.71.  Invocation command line was
2014
2015  $ $0$ac_configure_args_raw
2016
2017_ACEOF
2018exec 5>>config.log
2019{
2020cat <<_ASUNAME
2021## --------- ##
2022## Platform. ##
2023## --------- ##
2024
2025hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2026uname -m = `(uname -m) 2>/dev/null || echo unknown`
2027uname -r = `(uname -r) 2>/dev/null || echo unknown`
2028uname -s = `(uname -s) 2>/dev/null || echo unknown`
2029uname -v = `(uname -v) 2>/dev/null || echo unknown`
2030
2031/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2032/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2033
2034/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2035/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2036/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2037/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2038/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2039/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2040/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2041
2042_ASUNAME
2043
2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045for as_dir in $PATH
2046do
2047  IFS=$as_save_IFS
2048  case $as_dir in #(((
2049    '') as_dir=./ ;;
2050    */) ;;
2051    *) as_dir=$as_dir/ ;;
2052  esac
2053    printf "%s\n" "PATH: $as_dir"
2054  done
2055IFS=$as_save_IFS
2056
2057} >&5
2058
2059cat >&5 <<_ACEOF
2060
2061
2062## ----------- ##
2063## Core tests. ##
2064## ----------- ##
2065
2066_ACEOF
2067
2068
2069# Keep a trace of the command line.
2070# Strip out --no-create and --no-recursion so they do not pile up.
2071# Strip out --silent because we don't want to record it for future runs.
2072# Also quote any args containing shell meta-characters.
2073# Make two passes to allow for proper duplicate-argument suppression.
2074ac_configure_args=
2075ac_configure_args0=
2076ac_configure_args1=
2077ac_must_keep_next=false
2078for ac_pass in 1 2
2079do
2080  for ac_arg
2081  do
2082    case $ac_arg in
2083    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2084    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2085    | -silent | --silent | --silen | --sile | --sil)
2086      continue ;;
2087    *\'*)
2088      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089    esac
2090    case $ac_pass in
2091    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092    2)
2093      as_fn_append ac_configure_args1 " '$ac_arg'"
2094      if test $ac_must_keep_next = true; then
2095	ac_must_keep_next=false # Got value, back to normal.
2096      else
2097	case $ac_arg in
2098	  *=* | --config-cache | -C | -disable-* | --disable-* \
2099	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2100	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2101	  | -with-* | --with-* | -without-* | --without-* | --x)
2102	    case "$ac_configure_args0 " in
2103	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2104	    esac
2105	    ;;
2106	  -* ) ac_must_keep_next=true ;;
2107	esac
2108      fi
2109      as_fn_append ac_configure_args " '$ac_arg'"
2110      ;;
2111    esac
2112  done
2113done
2114{ ac_configure_args0=; unset ac_configure_args0;}
2115{ ac_configure_args1=; unset ac_configure_args1;}
2116
2117# When interrupted or exit'd, cleanup temporary files, and complete
2118# config.log.  We remove comments because anyway the quotes in there
2119# would cause problems or look ugly.
2120# WARNING: Use '\'' to represent an apostrophe within the trap.
2121# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2122trap 'exit_status=$?
2123  # Sanitize IFS.
2124  IFS=" ""	$as_nl"
2125  # Save into config.log some information that might help in debugging.
2126  {
2127    echo
2128
2129    printf "%s\n" "## ---------------- ##
2130## Cache variables. ##
2131## ---------------- ##"
2132    echo
2133    # The following way of writing the cache mishandles newlines in values,
2134(
2135  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2136    eval ac_val=\$$ac_var
2137    case $ac_val in #(
2138    *${as_nl}*)
2139      case $ac_var in #(
2140      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2141printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2142      esac
2143      case $ac_var in #(
2144      _ | IFS | as_nl) ;; #(
2145      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2146      *) { eval $ac_var=; unset $ac_var;} ;;
2147      esac ;;
2148    esac
2149  done
2150  (set) 2>&1 |
2151    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2152    *${as_nl}ac_space=\ *)
2153      sed -n \
2154	"s/'\''/'\''\\\\'\'''\''/g;
2155	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2156      ;; #(
2157    *)
2158      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2159      ;;
2160    esac |
2161    sort
2162)
2163    echo
2164
2165    printf "%s\n" "## ----------------- ##
2166## Output variables. ##
2167## ----------------- ##"
2168    echo
2169    for ac_var in $ac_subst_vars
2170    do
2171      eval ac_val=\$$ac_var
2172      case $ac_val in
2173      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174      esac
2175      printf "%s\n" "$ac_var='\''$ac_val'\''"
2176    done | sort
2177    echo
2178
2179    if test -n "$ac_subst_files"; then
2180      printf "%s\n" "## ------------------- ##
2181## File substitutions. ##
2182## ------------------- ##"
2183      echo
2184      for ac_var in $ac_subst_files
2185      do
2186	eval ac_val=\$$ac_var
2187	case $ac_val in
2188	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189	esac
2190	printf "%s\n" "$ac_var='\''$ac_val'\''"
2191      done | sort
2192      echo
2193    fi
2194
2195    if test -s confdefs.h; then
2196      printf "%s\n" "## ----------- ##
2197## confdefs.h. ##
2198## ----------- ##"
2199      echo
2200      cat confdefs.h
2201      echo
2202    fi
2203    test "$ac_signal" != 0 &&
2204      printf "%s\n" "$as_me: caught signal $ac_signal"
2205    printf "%s\n" "$as_me: exit $exit_status"
2206  } >&5
2207  rm -f core *.core core.conftest.* &&
2208    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2209    exit $exit_status
2210' 0
2211for ac_signal in 1 2 13 15; do
2212  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
2217rm -f -r conftest* confdefs.h
2218
2219printf "%s\n" "/* confdefs.h */" > confdefs.h
2220
2221# Predefined preprocessor variables.
2222
2223printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2224
2225printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2226
2227printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2228
2229printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2230
2231printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2232
2233printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2234
2235
2236# Let the site file select an alternate cache file if it wants to.
2237# Prefer an explicitly selected file to automatically selected ones.
2238if test -n "$CONFIG_SITE"; then
2239  ac_site_files="$CONFIG_SITE"
2240elif test "x$prefix" != xNONE; then
2241  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2242else
2243  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2244fi
2245
2246for ac_site_file in $ac_site_files
2247do
2248  case $ac_site_file in #(
2249  */*) :
2250     ;; #(
2251  *) :
2252    ac_site_file=./$ac_site_file ;;
2253esac
2254  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2255    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2257    sed 's/^/| /' "$ac_site_file" >&5
2258    . "$ac_site_file" \
2259      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2261as_fn_error $? "failed to load site script $ac_site_file
2262See \`config.log' for more details" "$LINENO" 5; }
2263  fi
2264done
2265
2266if test -r "$cache_file"; then
2267  # Some versions of bash will fail to source /dev/null (special files
2268  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2269  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2272    case $cache_file in
2273      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274      *)                      . "./$cache_file";;
2275    esac
2276  fi
2277else
2278  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2280  >$cache_file
2281fi
2282
2283# Test code for whether the C compiler supports C89 (global declarations)
2284ac_c_conftest_c89_globals='
2285/* Does the compiler advertise C89 conformance?
2286   Do not test the value of __STDC__, because some compilers set it to 0
2287   while being otherwise adequately conformant. */
2288#if !defined __STDC__
2289# error "Compiler does not advertise C89 conformance"
2290#endif
2291
2292#include <stddef.h>
2293#include <stdarg.h>
2294struct stat;
2295/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2296struct buf { int x; };
2297struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2298static char *e (p, i)
2299     char **p;
2300     int i;
2301{
2302  return p[i];
2303}
2304static char *f (char * (*g) (char **, int), char **p, ...)
2305{
2306  char *s;
2307  va_list v;
2308  va_start (v,p);
2309  s = g (p, va_arg (v,int));
2310  va_end (v);
2311  return s;
2312}
2313
2314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2315   function prototypes and stuff, but not \xHH hex character constants.
2316   These do not provoke an error unfortunately, instead are silently treated
2317   as an "x".  The following induces an error, until -std is added to get
2318   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2319   array size at least.  It is necessary to write \x00 == 0 to get something
2320   that is true only with -std.  */
2321int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2322
2323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2324   inside strings and character constants.  */
2325#define FOO(x) '\''x'\''
2326int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2327
2328int test (int i, double x);
2329struct s1 {int (*f) (int a);};
2330struct s2 {int (*f) (double a);};
2331int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2332               int, int);'
2333
2334# Test code for whether the C compiler supports C89 (body of main).
2335ac_c_conftest_c89_main='
2336ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2337'
2338
2339# Test code for whether the C compiler supports C99 (global declarations)
2340ac_c_conftest_c99_globals='
2341// Does the compiler advertise C99 conformance?
2342#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2343# error "Compiler does not advertise C99 conformance"
2344#endif
2345
2346#include <stdbool.h>
2347extern int puts (const char *);
2348extern int printf (const char *, ...);
2349extern int dprintf (int, const char *, ...);
2350extern void *malloc (size_t);
2351
2352// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2353// dprintf is used instead of fprintf to avoid needing to declare
2354// FILE and stderr.
2355#define debug(...) dprintf (2, __VA_ARGS__)
2356#define showlist(...) puts (#__VA_ARGS__)
2357#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2358static void
2359test_varargs_macros (void)
2360{
2361  int x = 1234;
2362  int y = 5678;
2363  debug ("Flag");
2364  debug ("X = %d\n", x);
2365  showlist (The first, second, and third items.);
2366  report (x>y, "x is %d but y is %d", x, y);
2367}
2368
2369// Check long long types.
2370#define BIG64 18446744073709551615ull
2371#define BIG32 4294967295ul
2372#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2373#if !BIG_OK
2374  #error "your preprocessor is broken"
2375#endif
2376#if BIG_OK
2377#else
2378  #error "your preprocessor is broken"
2379#endif
2380static long long int bignum = -9223372036854775807LL;
2381static unsigned long long int ubignum = BIG64;
2382
2383struct incomplete_array
2384{
2385  int datasize;
2386  double data[];
2387};
2388
2389struct named_init {
2390  int number;
2391  const wchar_t *name;
2392  double average;
2393};
2394
2395typedef const char *ccp;
2396
2397static inline int
2398test_restrict (ccp restrict text)
2399{
2400  // See if C++-style comments work.
2401  // Iterate through items via the restricted pointer.
2402  // Also check for declarations in for loops.
2403  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2404    continue;
2405  return 0;
2406}
2407
2408// Check varargs and va_copy.
2409static bool
2410test_varargs (const char *format, ...)
2411{
2412  va_list args;
2413  va_start (args, format);
2414  va_list args_copy;
2415  va_copy (args_copy, args);
2416
2417  const char *str = "";
2418  int number = 0;
2419  float fnumber = 0;
2420
2421  while (*format)
2422    {
2423      switch (*format++)
2424	{
2425	case '\''s'\'': // string
2426	  str = va_arg (args_copy, const char *);
2427	  break;
2428	case '\''d'\'': // int
2429	  number = va_arg (args_copy, int);
2430	  break;
2431	case '\''f'\'': // float
2432	  fnumber = va_arg (args_copy, double);
2433	  break;
2434	default:
2435	  break;
2436	}
2437    }
2438  va_end (args_copy);
2439  va_end (args);
2440
2441  return *str && number && fnumber;
2442}
2443'
2444
2445# Test code for whether the C compiler supports C99 (body of main).
2446ac_c_conftest_c99_main='
2447  // Check bool.
2448  _Bool success = false;
2449  success |= (argc != 0);
2450
2451  // Check restrict.
2452  if (test_restrict ("String literal") == 0)
2453    success = true;
2454  char *restrict newvar = "Another string";
2455
2456  // Check varargs.
2457  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2458  test_varargs_macros ();
2459
2460  // Check flexible array members.
2461  struct incomplete_array *ia =
2462    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2463  ia->datasize = 10;
2464  for (int i = 0; i < ia->datasize; ++i)
2465    ia->data[i] = i * 1.234;
2466
2467  // Check named initializers.
2468  struct named_init ni = {
2469    .number = 34,
2470    .name = L"Test wide string",
2471    .average = 543.34343,
2472  };
2473
2474  ni.number = 58;
2475
2476  int dynamic_array[ni.number];
2477  dynamic_array[0] = argv[0][0];
2478  dynamic_array[ni.number - 1] = 543;
2479
2480  // work around unused variable warnings
2481  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2482	 || dynamic_array[ni.number - 1] != 543);
2483'
2484
2485# Test code for whether the C compiler supports C11 (global declarations)
2486ac_c_conftest_c11_globals='
2487// Does the compiler advertise C11 conformance?
2488#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2489# error "Compiler does not advertise C11 conformance"
2490#endif
2491
2492// Check _Alignas.
2493char _Alignas (double) aligned_as_double;
2494char _Alignas (0) no_special_alignment;
2495extern char aligned_as_int;
2496char _Alignas (0) _Alignas (int) aligned_as_int;
2497
2498// Check _Alignof.
2499enum
2500{
2501  int_alignment = _Alignof (int),
2502  int_array_alignment = _Alignof (int[100]),
2503  char_alignment = _Alignof (char)
2504};
2505_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2506
2507// Check _Noreturn.
2508int _Noreturn does_not_return (void) { for (;;) continue; }
2509
2510// Check _Static_assert.
2511struct test_static_assert
2512{
2513  int x;
2514  _Static_assert (sizeof (int) <= sizeof (long int),
2515                  "_Static_assert does not work in struct");
2516  long int y;
2517};
2518
2519// Check UTF-8 literals.
2520#define u8 syntax error!
2521char const utf8_literal[] = u8"happens to be ASCII" "another string";
2522
2523// Check duplicate typedefs.
2524typedef long *long_ptr;
2525typedef long int *long_ptr;
2526typedef long_ptr long_ptr;
2527
2528// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2529struct anonymous
2530{
2531  union {
2532    struct { int i; int j; };
2533    struct { int k; long int l; } w;
2534  };
2535  int m;
2536} v1;
2537'
2538
2539# Test code for whether the C compiler supports C11 (body of main).
2540ac_c_conftest_c11_main='
2541  _Static_assert ((offsetof (struct anonymous, i)
2542		   == offsetof (struct anonymous, w.k)),
2543		  "Anonymous union alignment botch");
2544  v1.i = 2;
2545  v1.w.k = 5;
2546  ok |= v1.i != 5;
2547'
2548
2549# Test code for whether the C compiler supports C11 (complete).
2550ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2551${ac_c_conftest_c99_globals}
2552${ac_c_conftest_c11_globals}
2553
2554int
2555main (int argc, char **argv)
2556{
2557  int ok = 0;
2558  ${ac_c_conftest_c89_main}
2559  ${ac_c_conftest_c99_main}
2560  ${ac_c_conftest_c11_main}
2561  return ok;
2562}
2563"
2564
2565# Test code for whether the C compiler supports C99 (complete).
2566ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2567${ac_c_conftest_c99_globals}
2568
2569int
2570main (int argc, char **argv)
2571{
2572  int ok = 0;
2573  ${ac_c_conftest_c89_main}
2574  ${ac_c_conftest_c99_main}
2575  return ok;
2576}
2577"
2578
2579# Test code for whether the C compiler supports C89 (complete).
2580ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2581
2582int
2583main (int argc, char **argv)
2584{
2585  int ok = 0;
2586  ${ac_c_conftest_c89_main}
2587  return ok;
2588}
2589"
2590
2591as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2592as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2593as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2594as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2595as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2596as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2597as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2598as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2599as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2600
2601# Auxiliary files required by this configure script.
2602ac_aux_files="missing install-sh compile config.guess config.sub ltmain.sh"
2603
2604# Locations in which to look for auxiliary files.
2605ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2606
2607# Search for a directory containing all of the required auxiliary files,
2608# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2609# If we don't find one directory that contains all the files we need,
2610# we report the set of missing files from the *first* directory in
2611# $ac_aux_dir_candidates and give up.
2612ac_missing_aux_files=""
2613ac_first_candidate=:
2614printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616as_found=false
2617for as_dir in $ac_aux_dir_candidates
2618do
2619  IFS=$as_save_IFS
2620  case $as_dir in #(((
2621    '') as_dir=./ ;;
2622    */) ;;
2623    *) as_dir=$as_dir/ ;;
2624  esac
2625  as_found=:
2626
2627  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2628  ac_aux_dir_found=yes
2629  ac_install_sh=
2630  for ac_aux in $ac_aux_files
2631  do
2632    # As a special case, if "install-sh" is required, that requirement
2633    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2634    # and $ac_install_sh is set appropriately for whichever one is found.
2635    if test x"$ac_aux" = x"install-sh"
2636    then
2637      if test -f "${as_dir}install-sh"; then
2638        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2639        ac_install_sh="${as_dir}install-sh -c"
2640      elif test -f "${as_dir}install.sh"; then
2641        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2642        ac_install_sh="${as_dir}install.sh -c"
2643      elif test -f "${as_dir}shtool"; then
2644        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2645        ac_install_sh="${as_dir}shtool install -c"
2646      else
2647        ac_aux_dir_found=no
2648        if $ac_first_candidate; then
2649          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2650        else
2651          break
2652        fi
2653      fi
2654    else
2655      if test -f "${as_dir}${ac_aux}"; then
2656        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2657      else
2658        ac_aux_dir_found=no
2659        if $ac_first_candidate; then
2660          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2661        else
2662          break
2663        fi
2664      fi
2665    fi
2666  done
2667  if test "$ac_aux_dir_found" = yes; then
2668    ac_aux_dir="$as_dir"
2669    break
2670  fi
2671  ac_first_candidate=false
2672
2673  as_found=false
2674done
2675IFS=$as_save_IFS
2676if $as_found
2677then :
2678
2679else $as_nop
2680  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2681fi
2682
2683
2684# These three variables are undocumented and unsupported,
2685# and are intended to be withdrawn in a future Autoconf release.
2686# They can cause serious problems if a builder's source tree is in a directory
2687# whose full name contains unusual characters.
2688if test -f "${ac_aux_dir}config.guess"; then
2689  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2690fi
2691if test -f "${ac_aux_dir}config.sub"; then
2692  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2693fi
2694if test -f "$ac_aux_dir/configure"; then
2695  ac_configure="$SHELL ${ac_aux_dir}configure"
2696fi
2697
2698# Check that the precious variables saved in the cache have kept the same
2699# value.
2700ac_cache_corrupted=false
2701for ac_var in $ac_precious_vars; do
2702  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2703  eval ac_new_set=\$ac_env_${ac_var}_set
2704  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2705  eval ac_new_val=\$ac_env_${ac_var}_value
2706  case $ac_old_set,$ac_new_set in
2707    set,)
2708      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710      ac_cache_corrupted=: ;;
2711    ,set)
2712      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714      ac_cache_corrupted=: ;;
2715    ,);;
2716    *)
2717      if test "x$ac_old_val" != "x$ac_new_val"; then
2718	# differences in whitespace do not lead to failure.
2719	ac_old_val_w=`echo x $ac_old_val`
2720	ac_new_val_w=`echo x $ac_new_val`
2721	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724	  ac_cache_corrupted=:
2725	else
2726	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728	  eval $ac_var=\$ac_old_val
2729	fi
2730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2731printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2733printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2734      fi;;
2735  esac
2736  # Pass precious variables to config.status.
2737  if test "$ac_new_set" = set; then
2738    case $ac_new_val in
2739    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740    *) ac_arg=$ac_var=$ac_new_val ;;
2741    esac
2742    case " $ac_configure_args " in
2743      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2744      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745    esac
2746  fi
2747done
2748if $ac_cache_corrupted; then
2749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2753  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2754	    and start over" "$LINENO" 5
2755fi
2756## -------------------- ##
2757## Main body of script. ##
2758## -------------------- ##
2759
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766
2767
2768
2769
2770case `pwd` in
2771  *\ * | *\	*)
2772    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2773printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2774esac
2775
2776
2777
2778macro_version='2.4.7'
2779macro_revision='2.4.7'
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794ltmain=$ac_aux_dir/ltmain.sh
2795
2796
2797
2798  # Make sure we can run config.sub.
2799$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2800  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2801
2802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2803printf %s "checking build system type... " >&6; }
2804if test ${ac_cv_build+y}
2805then :
2806  printf %s "(cached) " >&6
2807else $as_nop
2808  ac_build_alias=$build_alias
2809test "x$ac_build_alias" = x &&
2810  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2811test "x$ac_build_alias" = x &&
2812  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2813ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2814  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2815
2816fi
2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2818printf "%s\n" "$ac_cv_build" >&6; }
2819case $ac_cv_build in
2820*-*-*) ;;
2821*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2822esac
2823build=$ac_cv_build
2824ac_save_IFS=$IFS; IFS='-'
2825set x $ac_cv_build
2826shift
2827build_cpu=$1
2828build_vendor=$2
2829shift; shift
2830# Remember, the first character of IFS is used to create $*,
2831# except with old shells:
2832build_os=$*
2833IFS=$ac_save_IFS
2834case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2835
2836
2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2838printf %s "checking host system type... " >&6; }
2839if test ${ac_cv_host+y}
2840then :
2841  printf %s "(cached) " >&6
2842else $as_nop
2843  if test "x$host_alias" = x; then
2844  ac_cv_host=$ac_cv_build
2845else
2846  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2847    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2848fi
2849
2850fi
2851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2852printf "%s\n" "$ac_cv_host" >&6; }
2853case $ac_cv_host in
2854*-*-*) ;;
2855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2856esac
2857host=$ac_cv_host
2858ac_save_IFS=$IFS; IFS='-'
2859set x $ac_cv_host
2860shift
2861host_cpu=$1
2862host_vendor=$2
2863shift; shift
2864# Remember, the first character of IFS is used to create $*,
2865# except with old shells:
2866host_os=$*
2867IFS=$ac_save_IFS
2868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2869
2870
2871# Backslashify metacharacters that are still active within
2872# double-quoted strings.
2873sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2874
2875# Same as above, but do not quote variable references.
2876double_quote_subst='s/\(["`\\]\)/\\\1/g'
2877
2878# Sed substitution to delay expansion of an escaped shell variable in a
2879# double_quote_subst'ed string.
2880delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2881
2882# Sed substitution to delay expansion of an escaped single quote.
2883delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2884
2885# Sed substitution to avoid accidental globbing in evaled expressions
2886no_glob_subst='s/\*/\\\*/g'
2887
2888ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2889ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2890ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2891
2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2893printf %s "checking how to print strings... " >&6; }
2894# Test print first, because it will be a builtin if present.
2895if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2896   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2897  ECHO='print -r --'
2898elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2899  ECHO='printf %s\n'
2900else
2901  # Use this function as a fallback that always works.
2902  func_fallback_echo ()
2903  {
2904    eval 'cat <<_LTECHO_EOF
2905$1
2906_LTECHO_EOF'
2907  }
2908  ECHO='func_fallback_echo'
2909fi
2910
2911# func_echo_all arg...
2912# Invoke $ECHO with all args, space-separated.
2913func_echo_all ()
2914{
2915    $ECHO ""
2916}
2917
2918case $ECHO in
2919  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2920printf "%s\n" "printf" >&6; } ;;
2921  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2922printf "%s\n" "print -r" >&6; } ;;
2923  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2924printf "%s\n" "cat" >&6; } ;;
2925esac
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949# Expand $ac_aux_dir to an absolute path.
2950am_aux_dir=`cd "$ac_aux_dir" && pwd`
2951
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957if test -n "$ac_tool_prefix"; then
2958  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961printf %s "checking for $ac_word... " >&6; }
2962if test ${ac_cv_prog_CC+y}
2963then :
2964  printf %s "(cached) " >&6
2965else $as_nop
2966  if test -n "$CC"; then
2967  ac_cv_prog_CC="$CC" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972  IFS=$as_save_IFS
2973  case $as_dir in #(((
2974    '') as_dir=./ ;;
2975    */) ;;
2976    *) as_dir=$as_dir/ ;;
2977  esac
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2980    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993printf "%s\n" "$CC" >&6; }
2994else
2995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996printf "%s\n" "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_CC"; then
3002  ac_ct_CC=$CC
3003  # Extract the first word of "gcc", so it can be a program name with args.
3004set dummy gcc; ac_word=$2
3005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006printf %s "checking for $ac_word... " >&6; }
3007if test ${ac_cv_prog_ac_ct_CC+y}
3008then :
3009  printf %s "(cached) " >&6
3010else $as_nop
3011  if test -n "$ac_ct_CC"; then
3012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  case $as_dir in #(((
3019    '') as_dir=./ ;;
3020    */) ;;
3021    *) as_dir=$as_dir/ ;;
3022  esac
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_ac_ct_CC="gcc"
3026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
3037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038printf "%s\n" "$ac_ct_CC" >&6; }
3039else
3040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041printf "%s\n" "no" >&6; }
3042fi
3043
3044  if test "x$ac_ct_CC" = x; then
3045    CC=""
3046  else
3047    case $cross_compiling:$ac_tool_warned in
3048yes:)
3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051ac_tool_warned=yes ;;
3052esac
3053    CC=$ac_ct_CC
3054  fi
3055else
3056  CC="$ac_cv_prog_CC"
3057fi
3058
3059if test -z "$CC"; then
3060          if test -n "$ac_tool_prefix"; then
3061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}cc; ac_word=$2
3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064printf %s "checking for $ac_word... " >&6; }
3065if test ${ac_cv_prog_CC+y}
3066then :
3067  printf %s "(cached) " >&6
3068else $as_nop
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  case $as_dir in #(((
3077    '') as_dir=./ ;;
3078    */) ;;
3079    *) as_dir=$as_dir/ ;;
3080  esac
3081    for ac_exec_ext in '' $ac_executable_extensions; do
3082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3083    ac_cv_prog_CC="${ac_tool_prefix}cc"
3084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088  done
3089IFS=$as_save_IFS
3090
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096printf "%s\n" "$CC" >&6; }
3097else
3098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099printf "%s\n" "no" >&6; }
3100fi
3101
3102
3103  fi
3104fi
3105if test -z "$CC"; then
3106  # Extract the first word of "cc", so it can be a program name with args.
3107set dummy cc; ac_word=$2
3108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109printf %s "checking for $ac_word... " >&6; }
3110if test ${ac_cv_prog_CC+y}
3111then :
3112  printf %s "(cached) " >&6
3113else $as_nop
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117  ac_prog_rejected=no
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  case $as_dir in #(((
3123    '') as_dir=./ ;;
3124    */) ;;
3125    *) as_dir=$as_dir/ ;;
3126  esac
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3129    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3130       ac_prog_rejected=yes
3131       continue
3132     fi
3133    ac_cv_prog_CC="cc"
3134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135    break 2
3136  fi
3137done
3138  done
3139IFS=$as_save_IFS
3140
3141if test $ac_prog_rejected = yes; then
3142  # We found a bogon in the path, so make sure we never use it.
3143  set dummy $ac_cv_prog_CC
3144  shift
3145  if test $# != 0; then
3146    # We chose a different compiler from the bogus one.
3147    # However, it has the same basename, so the bogon will be chosen
3148    # first if we set CC to just the basename; use the full file name.
3149    shift
3150    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3151  fi
3152fi
3153fi
3154fi
3155CC=$ac_cv_prog_CC
3156if test -n "$CC"; then
3157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158printf "%s\n" "$CC" >&6; }
3159else
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161printf "%s\n" "no" >&6; }
3162fi
3163
3164
3165fi
3166if test -z "$CC"; then
3167  if test -n "$ac_tool_prefix"; then
3168  for ac_prog in cl.exe
3169  do
3170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173printf %s "checking for $ac_word... " >&6; }
3174if test ${ac_cv_prog_CC+y}
3175then :
3176  printf %s "(cached) " >&6
3177else $as_nop
3178  if test -n "$CC"; then
3179  ac_cv_prog_CC="$CC" # Let the user override the test.
3180else
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184  IFS=$as_save_IFS
3185  case $as_dir in #(((
3186    '') as_dir=./ ;;
3187    */) ;;
3188    *) as_dir=$as_dir/ ;;
3189  esac
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202CC=$ac_cv_prog_CC
3203if test -n "$CC"; then
3204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205printf "%s\n" "$CC" >&6; }
3206else
3207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208printf "%s\n" "no" >&6; }
3209fi
3210
3211
3212    test -n "$CC" && break
3213  done
3214fi
3215if test -z "$CC"; then
3216  ac_ct_CC=$CC
3217  for ac_prog in cl.exe
3218do
3219  # Extract the first word of "$ac_prog", so it can be a program name with args.
3220set dummy $ac_prog; ac_word=$2
3221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222printf %s "checking for $ac_word... " >&6; }
3223if test ${ac_cv_prog_ac_ct_CC+y}
3224then :
3225  printf %s "(cached) " >&6
3226else $as_nop
3227  if test -n "$ac_ct_CC"; then
3228  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  case $as_dir in #(((
3235    '') as_dir=./ ;;
3236    */) ;;
3237    *) as_dir=$as_dir/ ;;
3238  esac
3239    for ac_exec_ext in '' $ac_executable_extensions; do
3240  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3241    ac_cv_prog_ac_ct_CC="$ac_prog"
3242    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246  done
3247IFS=$as_save_IFS
3248
3249fi
3250fi
3251ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252if test -n "$ac_ct_CC"; then
3253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254printf "%s\n" "$ac_ct_CC" >&6; }
3255else
3256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257printf "%s\n" "no" >&6; }
3258fi
3259
3260
3261  test -n "$ac_ct_CC" && break
3262done
3263
3264  if test "x$ac_ct_CC" = x; then
3265    CC=""
3266  else
3267    case $cross_compiling:$ac_tool_warned in
3268yes:)
3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271ac_tool_warned=yes ;;
3272esac
3273    CC=$ac_ct_CC
3274  fi
3275fi
3276
3277fi
3278if test -z "$CC"; then
3279  if test -n "$ac_tool_prefix"; then
3280  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3281set dummy ${ac_tool_prefix}clang; ac_word=$2
3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283printf %s "checking for $ac_word... " >&6; }
3284if test ${ac_cv_prog_CC+y}
3285then :
3286  printf %s "(cached) " >&6
3287else $as_nop
3288  if test -n "$CC"; then
3289  ac_cv_prog_CC="$CC" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294  IFS=$as_save_IFS
3295  case $as_dir in #(((
3296    '') as_dir=./ ;;
3297    */) ;;
3298    *) as_dir=$as_dir/ ;;
3299  esac
3300    for ac_exec_ext in '' $ac_executable_extensions; do
3301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_CC="${ac_tool_prefix}clang"
3303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312CC=$ac_cv_prog_CC
3313if test -n "$CC"; then
3314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315printf "%s\n" "$CC" >&6; }
3316else
3317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318printf "%s\n" "no" >&6; }
3319fi
3320
3321
3322fi
3323if test -z "$ac_cv_prog_CC"; then
3324  ac_ct_CC=$CC
3325  # Extract the first word of "clang", so it can be a program name with args.
3326set dummy clang; ac_word=$2
3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328printf %s "checking for $ac_word... " >&6; }
3329if test ${ac_cv_prog_ac_ct_CC+y}
3330then :
3331  printf %s "(cached) " >&6
3332else $as_nop
3333  if test -n "$ac_ct_CC"; then
3334  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  case $as_dir in #(((
3341    '') as_dir=./ ;;
3342    */) ;;
3343    *) as_dir=$as_dir/ ;;
3344  esac
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_ac_ct_CC="clang"
3348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358if test -n "$ac_ct_CC"; then
3359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360printf "%s\n" "$ac_ct_CC" >&6; }
3361else
3362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363printf "%s\n" "no" >&6; }
3364fi
3365
3366  if test "x$ac_ct_CC" = x; then
3367    CC=""
3368  else
3369    case $cross_compiling:$ac_tool_warned in
3370yes:)
3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373ac_tool_warned=yes ;;
3374esac
3375    CC=$ac_ct_CC
3376  fi
3377else
3378  CC="$ac_cv_prog_CC"
3379fi
3380
3381fi
3382
3383
3384test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error $? "no acceptable C compiler found in \$PATH
3387See \`config.log' for more details" "$LINENO" 5; }
3388
3389# Provide some information about the compiler.
3390printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3391set X $ac_compile
3392ac_compiler=$2
3393for ac_option in --version -v -V -qversion -version; do
3394  { { ac_try="$ac_compiler $ac_option >&5"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400printf "%s\n" "$ac_try_echo"; } >&5
3401  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3402  ac_status=$?
3403  if test -s conftest.err; then
3404    sed '10a\
3405... rest of stderr output deleted ...
3406         10q' conftest.err >conftest.er1
3407    cat conftest.er1 >&5
3408  fi
3409  rm -f conftest.er1 conftest.err
3410  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411  test $ac_status = 0; }
3412done
3413
3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h.  */
3416
3417int
3418main (void)
3419{
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425ac_clean_files_save=$ac_clean_files
3426ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3427# Try to create an executable without -o first, disregard a.out.
3428# It will help us diagnose broken compilers, and finding out an intuition
3429# of exeext.
3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431printf %s "checking whether the C compiler works... " >&6; }
3432ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3433
3434# The possible output files:
3435ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3436
3437ac_rmfiles=
3438for ac_file in $ac_files
3439do
3440  case $ac_file in
3441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3443  esac
3444done
3445rm -f $ac_rmfiles
3446
3447if { { ac_try="$ac_link_default"
3448case "(($ac_try" in
3449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450  *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453printf "%s\n" "$ac_try_echo"; } >&5
3454  (eval "$ac_link_default") 2>&5
3455  ac_status=$?
3456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457  test $ac_status = 0; }
3458then :
3459  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3462# so that the user can short-circuit this test for compilers unknown to
3463# Autoconf.
3464for ac_file in $ac_files ''
3465do
3466  test -f "$ac_file" || continue
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469	;;
3470    [ab].out )
3471	# We found the default executable, but exeext='' is most
3472	# certainly right.
3473	break;;
3474    *.* )
3475	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3476	then :; else
3477	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478	fi
3479	# We set ac_cv_exeext here because the later test for it is not
3480	# safe: cross compilers may not add the suffix if given an `-o'
3481	# argument, so we may need to know it at that point already.
3482	# Even if this section looks crufty: it has the advantage of
3483	# actually working.
3484	break;;
3485    * )
3486	break;;
3487  esac
3488done
3489test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491else $as_nop
3492  ac_file=''
3493fi
3494if test -z "$ac_file"
3495then :
3496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497printf "%s\n" "no" >&6; }
3498printf "%s\n" "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3503as_fn_error 77 "C compiler cannot create executables
3504See \`config.log' for more details" "$LINENO" 5; }
3505else $as_nop
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507printf "%s\n" "yes" >&6; }
3508fi
3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3510printf %s "checking for C compiler default output file name... " >&6; }
3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512printf "%s\n" "$ac_file" >&6; }
3513ac_exeext=$ac_cv_exeext
3514
3515rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3516ac_clean_files=$ac_clean_files_save
3517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3518printf %s "checking for suffix of executables... " >&6; }
3519if { { ac_try="$ac_link"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525printf "%s\n" "$ac_try_echo"; } >&5
3526  (eval "$ac_link") 2>&5
3527  ac_status=$?
3528  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529  test $ac_status = 0; }
3530then :
3531  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3532# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3533# work properly (i.e., refer to `conftest.exe'), while it won't with
3534# `rm'.
3535for ac_file in conftest.exe conftest conftest.*; do
3536  test -f "$ac_file" || continue
3537  case $ac_file in
3538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3539    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540	  break;;
3541    * ) break;;
3542  esac
3543done
3544else $as_nop
3545  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3547as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3548See \`config.log' for more details" "$LINENO" 5; }
3549fi
3550rm -f conftest conftest$ac_cv_exeext
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3552printf "%s\n" "$ac_cv_exeext" >&6; }
3553
3554rm -f conftest.$ac_ext
3555EXEEXT=$ac_cv_exeext
3556ac_exeext=$EXEEXT
3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559#include <stdio.h>
3560int
3561main (void)
3562{
3563FILE *f = fopen ("conftest.out", "w");
3564 return ferror (f) || fclose (f) != 0;
3565
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570ac_clean_files="$ac_clean_files conftest.out"
3571# Check that the compiler produces executables we can run.  If not, either
3572# the compiler is broken, or we cross compile.
3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3574printf %s "checking whether we are cross compiling... " >&6; }
3575if test "$cross_compiling" != yes; then
3576  { { ac_try="$ac_link"
3577case "(($ac_try" in
3578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579  *) ac_try_echo=$ac_try;;
3580esac
3581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582printf "%s\n" "$ac_try_echo"; } >&5
3583  (eval "$ac_link") 2>&5
3584  ac_status=$?
3585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586  test $ac_status = 0; }
3587  if { ac_try='./conftest$ac_cv_exeext'
3588  { { case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593printf "%s\n" "$ac_try_echo"; } >&5
3594  (eval "$ac_try") 2>&5
3595  ac_status=$?
3596  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597  test $ac_status = 0; }; }; then
3598    cross_compiling=no
3599  else
3600    if test "$cross_compiling" = maybe; then
3601	cross_compiling=yes
3602    else
3603	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3605as_fn_error 77 "cannot run C compiled programs.
3606If you meant to cross compile, use \`--host'.
3607See \`config.log' for more details" "$LINENO" 5; }
3608    fi
3609  fi
3610fi
3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3612printf "%s\n" "$cross_compiling" >&6; }
3613
3614rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3615ac_clean_files=$ac_clean_files_save
3616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3617printf %s "checking for suffix of object files... " >&6; }
3618if test ${ac_cv_objext+y}
3619then :
3620  printf %s "(cached) " >&6
3621else $as_nop
3622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623/* end confdefs.h.  */
3624
3625int
3626main (void)
3627{
3628
3629  ;
3630  return 0;
3631}
3632_ACEOF
3633rm -f conftest.o conftest.obj
3634if { { ac_try="$ac_compile"
3635case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640printf "%s\n" "$ac_try_echo"; } >&5
3641  (eval "$ac_compile") 2>&5
3642  ac_status=$?
3643  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644  test $ac_status = 0; }
3645then :
3646  for ac_file in conftest.o conftest.obj conftest.*; do
3647  test -f "$ac_file" || continue;
3648  case $ac_file in
3649    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3650    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3651       break;;
3652  esac
3653done
3654else $as_nop
3655  printf "%s\n" "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3660as_fn_error $? "cannot compute suffix of object files: cannot compile
3661See \`config.log' for more details" "$LINENO" 5; }
3662fi
3663rm -f conftest.$ac_cv_objext conftest.$ac_ext
3664fi
3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3666printf "%s\n" "$ac_cv_objext" >&6; }
3667OBJEXT=$ac_cv_objext
3668ac_objext=$OBJEXT
3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3670printf %s "checking whether the compiler supports GNU C... " >&6; }
3671if test ${ac_cv_c_compiler_gnu+y}
3672then :
3673  printf %s "(cached) " >&6
3674else $as_nop
3675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676/* end confdefs.h.  */
3677
3678int
3679main (void)
3680{
3681#ifndef __GNUC__
3682       choke me
3683#endif
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689if ac_fn_c_try_compile "$LINENO"
3690then :
3691  ac_compiler_gnu=yes
3692else $as_nop
3693  ac_compiler_gnu=no
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3696ac_cv_c_compiler_gnu=$ac_compiler_gnu
3697
3698fi
3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3700printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3701ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
3703if test $ac_compiler_gnu = yes; then
3704  GCC=yes
3705else
3706  GCC=
3707fi
3708ac_test_CFLAGS=${CFLAGS+y}
3709ac_save_CFLAGS=$CFLAGS
3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711printf %s "checking whether $CC accepts -g... " >&6; }
3712if test ${ac_cv_prog_cc_g+y}
3713then :
3714  printf %s "(cached) " >&6
3715else $as_nop
3716  ac_save_c_werror_flag=$ac_c_werror_flag
3717   ac_c_werror_flag=yes
3718   ac_cv_prog_cc_g=no
3719   CFLAGS="-g"
3720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main (void)
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"
3732then :
3733  ac_cv_prog_cc_g=yes
3734else $as_nop
3735  CFLAGS=""
3736      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h.  */
3738
3739int
3740main (void)
3741{
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"
3748then :
3749
3750else $as_nop
3751  ac_c_werror_flag=$ac_save_c_werror_flag
3752	 CFLAGS="-g"
3753	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h.  */
3755
3756int
3757main (void)
3758{
3759
3760  ;
3761  return 0;
3762}
3763_ACEOF
3764if ac_fn_c_try_compile "$LINENO"
3765then :
3766  ac_cv_prog_cc_g=yes
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3773   ac_c_werror_flag=$ac_save_c_werror_flag
3774fi
3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3776printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3777if test $ac_test_CFLAGS; then
3778  CFLAGS=$ac_save_CFLAGS
3779elif test $ac_cv_prog_cc_g = yes; then
3780  if test "$GCC" = yes; then
3781    CFLAGS="-g -O2"
3782  else
3783    CFLAGS="-g"
3784  fi
3785else
3786  if test "$GCC" = yes; then
3787    CFLAGS="-O2"
3788  else
3789    CFLAGS=
3790  fi
3791fi
3792ac_prog_cc_stdc=no
3793if test x$ac_prog_cc_stdc = xno
3794then :
3795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3796printf %s "checking for $CC option to enable C11 features... " >&6; }
3797if test ${ac_cv_prog_cc_c11+y}
3798then :
3799  printf %s "(cached) " >&6
3800else $as_nop
3801  ac_cv_prog_cc_c11=no
3802ac_save_CC=$CC
3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805$ac_c_conftest_c11_program
3806_ACEOF
3807for ac_arg in '' -std=gnu11
3808do
3809  CC="$ac_save_CC $ac_arg"
3810  if ac_fn_c_try_compile "$LINENO"
3811then :
3812  ac_cv_prog_cc_c11=$ac_arg
3813fi
3814rm -f core conftest.err conftest.$ac_objext conftest.beam
3815  test "x$ac_cv_prog_cc_c11" != "xno" && break
3816done
3817rm -f conftest.$ac_ext
3818CC=$ac_save_CC
3819fi
3820
3821if test "x$ac_cv_prog_cc_c11" = xno
3822then :
3823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3824printf "%s\n" "unsupported" >&6; }
3825else $as_nop
3826  if test "x$ac_cv_prog_cc_c11" = x
3827then :
3828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829printf "%s\n" "none needed" >&6; }
3830else $as_nop
3831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3832printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3833     CC="$CC $ac_cv_prog_cc_c11"
3834fi
3835  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3836  ac_prog_cc_stdc=c11
3837fi
3838fi
3839if test x$ac_prog_cc_stdc = xno
3840then :
3841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3842printf %s "checking for $CC option to enable C99 features... " >&6; }
3843if test ${ac_cv_prog_cc_c99+y}
3844then :
3845  printf %s "(cached) " >&6
3846else $as_nop
3847  ac_cv_prog_cc_c99=no
3848ac_save_CC=$CC
3849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851$ac_c_conftest_c99_program
3852_ACEOF
3853for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3854do
3855  CC="$ac_save_CC $ac_arg"
3856  if ac_fn_c_try_compile "$LINENO"
3857then :
3858  ac_cv_prog_cc_c99=$ac_arg
3859fi
3860rm -f core conftest.err conftest.$ac_objext conftest.beam
3861  test "x$ac_cv_prog_cc_c99" != "xno" && break
3862done
3863rm -f conftest.$ac_ext
3864CC=$ac_save_CC
3865fi
3866
3867if test "x$ac_cv_prog_cc_c99" = xno
3868then :
3869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3870printf "%s\n" "unsupported" >&6; }
3871else $as_nop
3872  if test "x$ac_cv_prog_cc_c99" = x
3873then :
3874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3875printf "%s\n" "none needed" >&6; }
3876else $as_nop
3877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3878printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3879     CC="$CC $ac_cv_prog_cc_c99"
3880fi
3881  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3882  ac_prog_cc_stdc=c99
3883fi
3884fi
3885if test x$ac_prog_cc_stdc = xno
3886then :
3887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3888printf %s "checking for $CC option to enable C89 features... " >&6; }
3889if test ${ac_cv_prog_cc_c89+y}
3890then :
3891  printf %s "(cached) " >&6
3892else $as_nop
3893  ac_cv_prog_cc_c89=no
3894ac_save_CC=$CC
3895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897$ac_c_conftest_c89_program
3898_ACEOF
3899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900do
3901  CC="$ac_save_CC $ac_arg"
3902  if ac_fn_c_try_compile "$LINENO"
3903then :
3904  ac_cv_prog_cc_c89=$ac_arg
3905fi
3906rm -f core conftest.err conftest.$ac_objext conftest.beam
3907  test "x$ac_cv_prog_cc_c89" != "xno" && break
3908done
3909rm -f conftest.$ac_ext
3910CC=$ac_save_CC
3911fi
3912
3913if test "x$ac_cv_prog_cc_c89" = xno
3914then :
3915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916printf "%s\n" "unsupported" >&6; }
3917else $as_nop
3918  if test "x$ac_cv_prog_cc_c89" = x
3919then :
3920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921printf "%s\n" "none needed" >&6; }
3922else $as_nop
3923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3925     CC="$CC $ac_cv_prog_cc_c89"
3926fi
3927  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3928  ac_prog_cc_stdc=c89
3929fi
3930fi
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938
3939  ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3945printf %s "checking whether $CC understands -c and -o together... " >&6; }
3946if test ${am_cv_prog_cc_c_o+y}
3947then :
3948  printf %s "(cached) " >&6
3949else $as_nop
3950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h.  */
3952
3953int
3954main (void)
3955{
3956
3957  ;
3958  return 0;
3959}
3960_ACEOF
3961  # Make sure it works both with $CC and with simple cc.
3962  # Following AC_PROG_CC_C_O, we do the test twice because some
3963  # compilers refuse to overwrite an existing .o file with -o,
3964  # though they will create one.
3965  am_cv_prog_cc_c_o=yes
3966  for am_i in 1 2; do
3967    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3968   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } \
3972         && test -f conftest2.$ac_objext; then
3973      : OK
3974    else
3975      am_cv_prog_cc_c_o=no
3976      break
3977    fi
3978  done
3979  rm -f core conftest*
3980  unset am_i
3981fi
3982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3983printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3984if test "$am_cv_prog_cc_c_o" != yes; then
3985   # Losing compiler, so override with the script.
3986   # FIXME: It is wrong to rewrite CC.
3987   # But if we don't then we get into trouble of one sort or another.
3988   # A longer-term fix would be to have automake use am__CC in this case,
3989   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3990   CC="$am_aux_dir/compile $CC"
3991fi
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998
3999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4000printf %s "checking for a sed that does not truncate output... " >&6; }
4001if test ${ac_cv_path_SED+y}
4002then :
4003  printf %s "(cached) " >&6
4004else $as_nop
4005            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4006     for ac_i in 1 2 3 4 5 6 7; do
4007       ac_script="$ac_script$as_nl$ac_script"
4008     done
4009     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4010     { ac_script=; unset ac_script;}
4011     if test -z "$SED"; then
4012  ac_path_SED_found=false
4013  # Loop through the user's path and test for each of PROGNAME-LIST
4014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  case $as_dir in #(((
4019    '') as_dir=./ ;;
4020    */) ;;
4021    *) as_dir=$as_dir/ ;;
4022  esac
4023    for ac_prog in sed gsed
4024   do
4025    for ac_exec_ext in '' $ac_executable_extensions; do
4026      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4027      as_fn_executable_p "$ac_path_SED" || continue
4028# Check for GNU ac_path_SED and select it if it is found.
4029  # Check for GNU $ac_path_SED
4030case `"$ac_path_SED" --version 2>&1` in
4031*GNU*)
4032  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4033*)
4034  ac_count=0
4035  printf %s 0123456789 >"conftest.in"
4036  while :
4037  do
4038    cat "conftest.in" "conftest.in" >"conftest.tmp"
4039    mv "conftest.tmp" "conftest.in"
4040    cp "conftest.in" "conftest.nl"
4041    printf "%s\n" '' >> "conftest.nl"
4042    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044    as_fn_arith $ac_count + 1 && ac_count=$as_val
4045    if test $ac_count -gt ${ac_path_SED_max-0}; then
4046      # Best one so far, save it but keep looking for a better one
4047      ac_cv_path_SED="$ac_path_SED"
4048      ac_path_SED_max=$ac_count
4049    fi
4050    # 10*(2^10) chars as input seems more than enough
4051    test $ac_count -gt 10 && break
4052  done
4053  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054esac
4055
4056      $ac_path_SED_found && break 3
4057    done
4058  done
4059  done
4060IFS=$as_save_IFS
4061  if test -z "$ac_cv_path_SED"; then
4062    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4063  fi
4064else
4065  ac_cv_path_SED=$SED
4066fi
4067
4068fi
4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4070printf "%s\n" "$ac_cv_path_SED" >&6; }
4071 SED="$ac_cv_path_SED"
4072  rm -f conftest.sed
4073
4074test -z "$SED" && SED=sed
4075Xsed="$SED -e 1s/^X//"
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4088printf %s "checking for grep that handles long lines and -e... " >&6; }
4089if test ${ac_cv_path_GREP+y}
4090then :
4091  printf %s "(cached) " >&6
4092else $as_nop
4093  if test -z "$GREP"; then
4094  ac_path_GREP_found=false
4095  # Loop through the user's path and test for each of PROGNAME-LIST
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098do
4099  IFS=$as_save_IFS
4100  case $as_dir in #(((
4101    '') as_dir=./ ;;
4102    */) ;;
4103    *) as_dir=$as_dir/ ;;
4104  esac
4105    for ac_prog in grep ggrep
4106   do
4107    for ac_exec_ext in '' $ac_executable_extensions; do
4108      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4109      as_fn_executable_p "$ac_path_GREP" || continue
4110# Check for GNU ac_path_GREP and select it if it is found.
4111  # Check for GNU $ac_path_GREP
4112case `"$ac_path_GREP" --version 2>&1` in
4113*GNU*)
4114  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115*)
4116  ac_count=0
4117  printf %s 0123456789 >"conftest.in"
4118  while :
4119  do
4120    cat "conftest.in" "conftest.in" >"conftest.tmp"
4121    mv "conftest.tmp" "conftest.in"
4122    cp "conftest.in" "conftest.nl"
4123    printf "%s\n" 'GREP' >> "conftest.nl"
4124    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126    as_fn_arith $ac_count + 1 && ac_count=$as_val
4127    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128      # Best one so far, save it but keep looking for a better one
4129      ac_cv_path_GREP="$ac_path_GREP"
4130      ac_path_GREP_max=$ac_count
4131    fi
4132    # 10*(2^10) chars as input seems more than enough
4133    test $ac_count -gt 10 && break
4134  done
4135  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136esac
4137
4138      $ac_path_GREP_found && break 3
4139    done
4140  done
4141  done
4142IFS=$as_save_IFS
4143  if test -z "$ac_cv_path_GREP"; then
4144    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145  fi
4146else
4147  ac_cv_path_GREP=$GREP
4148fi
4149
4150fi
4151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4152printf "%s\n" "$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4154
4155
4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4157printf %s "checking for egrep... " >&6; }
4158if test ${ac_cv_path_EGREP+y}
4159then :
4160  printf %s "(cached) " >&6
4161else $as_nop
4162  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163   then ac_cv_path_EGREP="$GREP -E"
4164   else
4165     if test -z "$EGREP"; then
4166  ac_path_EGREP_found=false
4167  # Loop through the user's path and test for each of PROGNAME-LIST
4168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170do
4171  IFS=$as_save_IFS
4172  case $as_dir in #(((
4173    '') as_dir=./ ;;
4174    */) ;;
4175    *) as_dir=$as_dir/ ;;
4176  esac
4177    for ac_prog in egrep
4178   do
4179    for ac_exec_ext in '' $ac_executable_extensions; do
4180      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4181      as_fn_executable_p "$ac_path_EGREP" || continue
4182# Check for GNU ac_path_EGREP and select it if it is found.
4183  # Check for GNU $ac_path_EGREP
4184case `"$ac_path_EGREP" --version 2>&1` in
4185*GNU*)
4186  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4187*)
4188  ac_count=0
4189  printf %s 0123456789 >"conftest.in"
4190  while :
4191  do
4192    cat "conftest.in" "conftest.in" >"conftest.tmp"
4193    mv "conftest.tmp" "conftest.in"
4194    cp "conftest.in" "conftest.nl"
4195    printf "%s\n" 'EGREP' >> "conftest.nl"
4196    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198    as_fn_arith $ac_count + 1 && ac_count=$as_val
4199    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4200      # Best one so far, save it but keep looking for a better one
4201      ac_cv_path_EGREP="$ac_path_EGREP"
4202      ac_path_EGREP_max=$ac_count
4203    fi
4204    # 10*(2^10) chars as input seems more than enough
4205    test $ac_count -gt 10 && break
4206  done
4207  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208esac
4209
4210      $ac_path_EGREP_found && break 3
4211    done
4212  done
4213  done
4214IFS=$as_save_IFS
4215  if test -z "$ac_cv_path_EGREP"; then
4216    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4217  fi
4218else
4219  ac_cv_path_EGREP=$EGREP
4220fi
4221
4222   fi
4223fi
4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4225printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4226 EGREP="$ac_cv_path_EGREP"
4227
4228
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4230printf %s "checking for fgrep... " >&6; }
4231if test ${ac_cv_path_FGREP+y}
4232then :
4233  printf %s "(cached) " >&6
4234else $as_nop
4235  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4236   then ac_cv_path_FGREP="$GREP -F"
4237   else
4238     if test -z "$FGREP"; then
4239  ac_path_FGREP_found=false
4240  # Loop through the user's path and test for each of PROGNAME-LIST
4241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243do
4244  IFS=$as_save_IFS
4245  case $as_dir in #(((
4246    '') as_dir=./ ;;
4247    */) ;;
4248    *) as_dir=$as_dir/ ;;
4249  esac
4250    for ac_prog in fgrep
4251   do
4252    for ac_exec_ext in '' $ac_executable_extensions; do
4253      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4254      as_fn_executable_p "$ac_path_FGREP" || continue
4255# Check for GNU ac_path_FGREP and select it if it is found.
4256  # Check for GNU $ac_path_FGREP
4257case `"$ac_path_FGREP" --version 2>&1` in
4258*GNU*)
4259  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4260*)
4261  ac_count=0
4262  printf %s 0123456789 >"conftest.in"
4263  while :
4264  do
4265    cat "conftest.in" "conftest.in" >"conftest.tmp"
4266    mv "conftest.tmp" "conftest.in"
4267    cp "conftest.in" "conftest.nl"
4268    printf "%s\n" 'FGREP' >> "conftest.nl"
4269    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271    as_fn_arith $ac_count + 1 && ac_count=$as_val
4272    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4273      # Best one so far, save it but keep looking for a better one
4274      ac_cv_path_FGREP="$ac_path_FGREP"
4275      ac_path_FGREP_max=$ac_count
4276    fi
4277    # 10*(2^10) chars as input seems more than enough
4278    test $ac_count -gt 10 && break
4279  done
4280  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281esac
4282
4283      $ac_path_FGREP_found && break 3
4284    done
4285  done
4286  done
4287IFS=$as_save_IFS
4288  if test -z "$ac_cv_path_FGREP"; then
4289    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290  fi
4291else
4292  ac_cv_path_FGREP=$FGREP
4293fi
4294
4295   fi
4296fi
4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4298printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4299 FGREP="$ac_cv_path_FGREP"
4300
4301
4302test -z "$GREP" && GREP=grep
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322# Check whether --with-gnu-ld was given.
4323if test ${with_gnu_ld+y}
4324then :
4325  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4326else $as_nop
4327  with_gnu_ld=no
4328fi
4329
4330ac_prog=ld
4331if test yes = "$GCC"; then
4332  # Check if gcc -print-prog-name=ld gives a path.
4333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4334printf %s "checking for ld used by $CC... " >&6; }
4335  case $host in
4336  *-*-mingw*)
4337    # gcc leaves a trailing carriage return, which upsets mingw
4338    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4339  *)
4340    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4341  esac
4342  case $ac_prog in
4343    # Accept absolute paths.
4344    [\\/]* | ?:[\\/]*)
4345      re_direlt='/[^/][^/]*/\.\./'
4346      # Canonicalize the pathname of ld
4347      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4348      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4349	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4350      done
4351      test -z "$LD" && LD=$ac_prog
4352      ;;
4353  "")
4354    # If it fails, then pretend we aren't using GCC.
4355    ac_prog=ld
4356    ;;
4357  *)
4358    # If it is relative, then search for the first ld in PATH.
4359    with_gnu_ld=unknown
4360    ;;
4361  esac
4362elif test yes = "$with_gnu_ld"; then
4363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4364printf %s "checking for GNU ld... " >&6; }
4365else
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4367printf %s "checking for non-GNU ld... " >&6; }
4368fi
4369if test ${lt_cv_path_LD+y}
4370then :
4371  printf %s "(cached) " >&6
4372else $as_nop
4373  if test -z "$LD"; then
4374  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4375  for ac_dir in $PATH; do
4376    IFS=$lt_save_ifs
4377    test -z "$ac_dir" && ac_dir=.
4378    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4379      lt_cv_path_LD=$ac_dir/$ac_prog
4380      # Check to see if the program is GNU ld.  I'd rather use --version,
4381      # but apparently some variants of GNU ld only accept -v.
4382      # Break only if it was the GNU/non-GNU ld that we prefer.
4383      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4384      *GNU* | *'with BFD'*)
4385	test no != "$with_gnu_ld" && break
4386	;;
4387      *)
4388	test yes != "$with_gnu_ld" && break
4389	;;
4390      esac
4391    fi
4392  done
4393  IFS=$lt_save_ifs
4394else
4395  lt_cv_path_LD=$LD # Let the user override the test with a path.
4396fi
4397fi
4398
4399LD=$lt_cv_path_LD
4400if test -n "$LD"; then
4401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4402printf "%s\n" "$LD" >&6; }
4403else
4404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405printf "%s\n" "no" >&6; }
4406fi
4407test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4409printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4410if test ${lt_cv_prog_gnu_ld+y}
4411then :
4412  printf %s "(cached) " >&6
4413else $as_nop
4414  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4415case `$LD -v 2>&1 </dev/null` in
4416*GNU* | *'with BFD'*)
4417  lt_cv_prog_gnu_ld=yes
4418  ;;
4419*)
4420  lt_cv_prog_gnu_ld=no
4421  ;;
4422esac
4423fi
4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4425printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4426with_gnu_ld=$lt_cv_prog_gnu_ld
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4437printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4438if test ${lt_cv_path_NM+y}
4439then :
4440  printf %s "(cached) " >&6
4441else $as_nop
4442  if test -n "$NM"; then
4443  # Let the user override the test.
4444  lt_cv_path_NM=$NM
4445else
4446  lt_nm_to_check=${ac_tool_prefix}nm
4447  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4448    lt_nm_to_check="$lt_nm_to_check nm"
4449  fi
4450  for lt_tmp_nm in $lt_nm_to_check; do
4451    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4452    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4453      IFS=$lt_save_ifs
4454      test -z "$ac_dir" && ac_dir=.
4455      tmp_nm=$ac_dir/$lt_tmp_nm
4456      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4457	# Check to see if the nm accepts a BSD-compat flag.
4458	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4459	#   nm: unknown option "B" ignored
4460	# Tru64's nm complains that /dev/null is an invalid object file
4461	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4462	case $build_os in
4463	mingw*) lt_bad_file=conftest.nm/nofile ;;
4464	*) lt_bad_file=/dev/null ;;
4465	esac
4466	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4467	*$lt_bad_file* | *'Invalid file or object type'*)
4468	  lt_cv_path_NM="$tmp_nm -B"
4469	  break 2
4470	  ;;
4471	*)
4472	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4473	  */dev/null*)
4474	    lt_cv_path_NM="$tmp_nm -p"
4475	    break 2
4476	    ;;
4477	  *)
4478	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4479	    continue # so that we can try to find one that supports BSD flags
4480	    ;;
4481	  esac
4482	  ;;
4483	esac
4484      fi
4485    done
4486    IFS=$lt_save_ifs
4487  done
4488  : ${lt_cv_path_NM=no}
4489fi
4490fi
4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4492printf "%s\n" "$lt_cv_path_NM" >&6; }
4493if test no != "$lt_cv_path_NM"; then
4494  NM=$lt_cv_path_NM
4495else
4496  # Didn't find any BSD compatible name lister, look for dumpbin.
4497  if test -n "$DUMPBIN"; then :
4498    # Let the user override the test.
4499  else
4500    if test -n "$ac_tool_prefix"; then
4501  for ac_prog in dumpbin "link -dump"
4502  do
4503    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506printf %s "checking for $ac_word... " >&6; }
4507if test ${ac_cv_prog_DUMPBIN+y}
4508then :
4509  printf %s "(cached) " >&6
4510else $as_nop
4511  if test -n "$DUMPBIN"; then
4512  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517  IFS=$as_save_IFS
4518  case $as_dir in #(((
4519    '') as_dir=./ ;;
4520    */) ;;
4521    *) as_dir=$as_dir/ ;;
4522  esac
4523    for ac_exec_ext in '' $ac_executable_extensions; do
4524  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4525    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4526    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530  done
4531IFS=$as_save_IFS
4532
4533fi
4534fi
4535DUMPBIN=$ac_cv_prog_DUMPBIN
4536if test -n "$DUMPBIN"; then
4537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4538printf "%s\n" "$DUMPBIN" >&6; }
4539else
4540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541printf "%s\n" "no" >&6; }
4542fi
4543
4544
4545    test -n "$DUMPBIN" && break
4546  done
4547fi
4548if test -z "$DUMPBIN"; then
4549  ac_ct_DUMPBIN=$DUMPBIN
4550  for ac_prog in dumpbin "link -dump"
4551do
4552  # Extract the first word of "$ac_prog", so it can be a program name with args.
4553set dummy $ac_prog; ac_word=$2
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555printf %s "checking for $ac_word... " >&6; }
4556if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4557then :
4558  printf %s "(cached) " >&6
4559else $as_nop
4560  if test -n "$ac_ct_DUMPBIN"; then
4561  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  case $as_dir in #(((
4568    '') as_dir=./ ;;
4569    */) ;;
4570    *) as_dir=$as_dir/ ;;
4571  esac
4572    for ac_exec_ext in '' $ac_executable_extensions; do
4573  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4574    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4575    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582fi
4583fi
4584ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4585if test -n "$ac_ct_DUMPBIN"; then
4586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4587printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4588else
4589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590printf "%s\n" "no" >&6; }
4591fi
4592
4593
4594  test -n "$ac_ct_DUMPBIN" && break
4595done
4596
4597  if test "x$ac_ct_DUMPBIN" = x; then
4598    DUMPBIN=":"
4599  else
4600    case $cross_compiling:$ac_tool_warned in
4601yes:)
4602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604ac_tool_warned=yes ;;
4605esac
4606    DUMPBIN=$ac_ct_DUMPBIN
4607  fi
4608fi
4609
4610    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4611    *COFF*)
4612      DUMPBIN="$DUMPBIN -symbols -headers"
4613      ;;
4614    *)
4615      DUMPBIN=:
4616      ;;
4617    esac
4618  fi
4619
4620  if test : != "$DUMPBIN"; then
4621    NM=$DUMPBIN
4622  fi
4623fi
4624test -z "$NM" && NM=nm
4625
4626
4627
4628
4629
4630
4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4632printf %s "checking the name lister ($NM) interface... " >&6; }
4633if test ${lt_cv_nm_interface+y}
4634then :
4635  printf %s "(cached) " >&6
4636else $as_nop
4637  lt_cv_nm_interface="BSD nm"
4638  echo "int some_variable = 0;" > conftest.$ac_ext
4639  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4640  (eval "$ac_compile" 2>conftest.err)
4641  cat conftest.err >&5
4642  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4643  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4644  cat conftest.err >&5
4645  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4646  cat conftest.out >&5
4647  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4648    lt_cv_nm_interface="MS dumpbin"
4649  fi
4650  rm -f conftest*
4651fi
4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4653printf "%s\n" "$lt_cv_nm_interface" >&6; }
4654
4655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4656printf %s "checking whether ln -s works... " >&6; }
4657LN_S=$as_ln_s
4658if test "$LN_S" = "ln -s"; then
4659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4660printf "%s\n" "yes" >&6; }
4661else
4662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4663printf "%s\n" "no, using $LN_S" >&6; }
4664fi
4665
4666# find the maximum length of command line arguments
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4668printf %s "checking the maximum length of command line arguments... " >&6; }
4669if test ${lt_cv_sys_max_cmd_len+y}
4670then :
4671  printf %s "(cached) " >&6
4672else $as_nop
4673    i=0
4674  teststring=ABCD
4675
4676  case $build_os in
4677  msdosdjgpp*)
4678    # On DJGPP, this test can blow up pretty badly due to problems in libc
4679    # (any single argument exceeding 2000 bytes causes a buffer overrun
4680    # during glob expansion).  Even if it were fixed, the result of this
4681    # check would be larger than it should be.
4682    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4683    ;;
4684
4685  gnu*)
4686    # Under GNU Hurd, this test is not required because there is
4687    # no limit to the length of command line arguments.
4688    # Libtool will interpret -1 as no limit whatsoever
4689    lt_cv_sys_max_cmd_len=-1;
4690    ;;
4691
4692  cygwin* | mingw* | cegcc*)
4693    # On Win9x/ME, this test blows up -- it succeeds, but takes
4694    # about 5 minutes as the teststring grows exponentially.
4695    # Worse, since 9x/ME are not pre-emptively multitasking,
4696    # you end up with a "frozen" computer, even though with patience
4697    # the test eventually succeeds (with a max line length of 256k).
4698    # Instead, let's just punt: use the minimum linelength reported by
4699    # all of the supported platforms: 8192 (on NT/2K/XP).
4700    lt_cv_sys_max_cmd_len=8192;
4701    ;;
4702
4703  mint*)
4704    # On MiNT this can take a long time and run out of memory.
4705    lt_cv_sys_max_cmd_len=8192;
4706    ;;
4707
4708  amigaos*)
4709    # On AmigaOS with pdksh, this test takes hours, literally.
4710    # So we just punt and use a minimum line length of 8192.
4711    lt_cv_sys_max_cmd_len=8192;
4712    ;;
4713
4714  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4715    # This has been around since 386BSD, at least.  Likely further.
4716    if test -x /sbin/sysctl; then
4717      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4718    elif test -x /usr/sbin/sysctl; then
4719      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4720    else
4721      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4722    fi
4723    # And add a safety zone
4724    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4725    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4726    ;;
4727
4728  interix*)
4729    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4730    lt_cv_sys_max_cmd_len=196608
4731    ;;
4732
4733  os2*)
4734    # The test takes a long time on OS/2.
4735    lt_cv_sys_max_cmd_len=8192
4736    ;;
4737
4738  osf*)
4739    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4740    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4741    # nice to cause kernel panics so lets avoid the loop below.
4742    # First set a reasonable default.
4743    lt_cv_sys_max_cmd_len=16384
4744    #
4745    if test -x /sbin/sysconfig; then
4746      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4747        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4748      esac
4749    fi
4750    ;;
4751  sco3.2v5*)
4752    lt_cv_sys_max_cmd_len=102400
4753    ;;
4754  sysv5* | sco5v6* | sysv4.2uw2*)
4755    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4756    if test -n "$kargmax"; then
4757      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
4758    else
4759      lt_cv_sys_max_cmd_len=32768
4760    fi
4761    ;;
4762  *)
4763    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4764    if test -n "$lt_cv_sys_max_cmd_len" && \
4765       test undefined != "$lt_cv_sys_max_cmd_len"; then
4766      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4767      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4768    else
4769      # Make teststring a little bigger before we do anything with it.
4770      # a 1K string should be a reasonable start.
4771      for i in 1 2 3 4 5 6 7 8; do
4772        teststring=$teststring$teststring
4773      done
4774      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4775      # If test is not a shell built-in, we'll probably end up computing a
4776      # maximum length that is only half of the actual maximum length, but
4777      # we can't tell.
4778      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4779	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4780	      test 17 != "$i" # 1/2 MB should be enough
4781      do
4782        i=`expr $i + 1`
4783        teststring=$teststring$teststring
4784      done
4785      # Only check the string length outside the loop.
4786      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4787      teststring=
4788      # Add a significant safety factor because C++ compilers can tack on
4789      # massive amounts of additional arguments before passing them to the
4790      # linker.  It appears as though 1/2 is a usable value.
4791      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4792    fi
4793    ;;
4794  esac
4795
4796fi
4797
4798if test -n "$lt_cv_sys_max_cmd_len"; then
4799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4800printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4801else
4802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4803printf "%s\n" "none" >&6; }
4804fi
4805max_cmd_len=$lt_cv_sys_max_cmd_len
4806
4807
4808
4809
4810
4811
4812: ${CP="cp -f"}
4813: ${MV="mv -f"}
4814: ${RM="rm -f"}
4815
4816if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4817  lt_unset=unset
4818else
4819  lt_unset=false
4820fi
4821
4822
4823
4824
4825
4826# test EBCDIC or ASCII
4827case `echo X|tr X '\101'` in
4828 A) # ASCII based system
4829    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4830  lt_SP2NL='tr \040 \012'
4831  lt_NL2SP='tr \015\012 \040\040'
4832  ;;
4833 *) # EBCDIC based system
4834  lt_SP2NL='tr \100 \n'
4835  lt_NL2SP='tr \r\n \100\100'
4836  ;;
4837esac
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4848printf %s "checking how to convert $build file names to $host format... " >&6; }
4849if test ${lt_cv_to_host_file_cmd+y}
4850then :
4851  printf %s "(cached) " >&6
4852else $as_nop
4853  case $host in
4854  *-*-mingw* )
4855    case $build in
4856      *-*-mingw* ) # actually msys
4857        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4858        ;;
4859      *-*-cygwin* )
4860        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4861        ;;
4862      * ) # otherwise, assume *nix
4863        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4864        ;;
4865    esac
4866    ;;
4867  *-*-cygwin* )
4868    case $build in
4869      *-*-mingw* ) # actually msys
4870        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4871        ;;
4872      *-*-cygwin* )
4873        lt_cv_to_host_file_cmd=func_convert_file_noop
4874        ;;
4875      * ) # otherwise, assume *nix
4876        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4877        ;;
4878    esac
4879    ;;
4880  * ) # unhandled hosts (and "normal" native builds)
4881    lt_cv_to_host_file_cmd=func_convert_file_noop
4882    ;;
4883esac
4884
4885fi
4886
4887to_host_file_cmd=$lt_cv_to_host_file_cmd
4888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4889printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4890
4891
4892
4893
4894
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4896printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4897if test ${lt_cv_to_tool_file_cmd+y}
4898then :
4899  printf %s "(cached) " >&6
4900else $as_nop
4901  #assume ordinary cross tools, or native build.
4902lt_cv_to_tool_file_cmd=func_convert_file_noop
4903case $host in
4904  *-*-mingw* )
4905    case $build in
4906      *-*-mingw* ) # actually msys
4907        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4908        ;;
4909    esac
4910    ;;
4911esac
4912
4913fi
4914
4915to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4917printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4918
4919
4920
4921
4922
4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4924printf %s "checking for $LD option to reload object files... " >&6; }
4925if test ${lt_cv_ld_reload_flag+y}
4926then :
4927  printf %s "(cached) " >&6
4928else $as_nop
4929  lt_cv_ld_reload_flag='-r'
4930fi
4931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4932printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4933reload_flag=$lt_cv_ld_reload_flag
4934case $reload_flag in
4935"" | " "*) ;;
4936*) reload_flag=" $reload_flag" ;;
4937esac
4938reload_cmds='$LD$reload_flag -o $output$reload_objs'
4939case $host_os in
4940  cygwin* | mingw* | pw32* | cegcc*)
4941    if test yes != "$GCC"; then
4942      reload_cmds=false
4943    fi
4944    ;;
4945  darwin*)
4946    if test yes = "$GCC"; then
4947      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4948    else
4949      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950    fi
4951    ;;
4952esac
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962if test -n "$ac_tool_prefix"; then
4963  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
4964set dummy ${ac_tool_prefix}file; ac_word=$2
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966printf %s "checking for $ac_word... " >&6; }
4967if test ${ac_cv_prog_FILECMD+y}
4968then :
4969  printf %s "(cached) " >&6
4970else $as_nop
4971  if test -n "$FILECMD"; then
4972  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  case $as_dir in #(((
4979    '') as_dir=./ ;;
4980    */) ;;
4981    *) as_dir=$as_dir/ ;;
4982  esac
4983    for ac_exec_ext in '' $ac_executable_extensions; do
4984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4985    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
4986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4987    break 2
4988  fi
4989done
4990  done
4991IFS=$as_save_IFS
4992
4993fi
4994fi
4995FILECMD=$ac_cv_prog_FILECMD
4996if test -n "$FILECMD"; then
4997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
4998printf "%s\n" "$FILECMD" >&6; }
4999else
5000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001printf "%s\n" "no" >&6; }
5002fi
5003
5004
5005fi
5006if test -z "$ac_cv_prog_FILECMD"; then
5007  ac_ct_FILECMD=$FILECMD
5008  # Extract the first word of "file", so it can be a program name with args.
5009set dummy file; ac_word=$2
5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011printf %s "checking for $ac_word... " >&6; }
5012if test ${ac_cv_prog_ac_ct_FILECMD+y}
5013then :
5014  printf %s "(cached) " >&6
5015else $as_nop
5016  if test -n "$ac_ct_FILECMD"; then
5017  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022  IFS=$as_save_IFS
5023  case $as_dir in #(((
5024    '') as_dir=./ ;;
5025    */) ;;
5026    *) as_dir=$as_dir/ ;;
5027  esac
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5030    ac_cv_prog_ac_ct_FILECMD="file"
5031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5041if test -n "$ac_ct_FILECMD"; then
5042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5043printf "%s\n" "$ac_ct_FILECMD" >&6; }
5044else
5045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046printf "%s\n" "no" >&6; }
5047fi
5048
5049  if test "x$ac_ct_FILECMD" = x; then
5050    FILECMD=":"
5051  else
5052    case $cross_compiling:$ac_tool_warned in
5053yes:)
5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056ac_tool_warned=yes ;;
5057esac
5058    FILECMD=$ac_ct_FILECMD
5059  fi
5060else
5061  FILECMD="$ac_cv_prog_FILECMD"
5062fi
5063
5064
5065
5066
5067
5068
5069
5070if test -n "$ac_tool_prefix"; then
5071  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5072set dummy ${ac_tool_prefix}objdump; ac_word=$2
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074printf %s "checking for $ac_word... " >&6; }
5075if test ${ac_cv_prog_OBJDUMP+y}
5076then :
5077  printf %s "(cached) " >&6
5078else $as_nop
5079  if test -n "$OBJDUMP"; then
5080  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085  IFS=$as_save_IFS
5086  case $as_dir in #(((
5087    '') as_dir=./ ;;
5088    */) ;;
5089    *) as_dir=$as_dir/ ;;
5090  esac
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5093    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5094    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103OBJDUMP=$ac_cv_prog_OBJDUMP
5104if test -n "$OBJDUMP"; then
5105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5106printf "%s\n" "$OBJDUMP" >&6; }
5107else
5108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109printf "%s\n" "no" >&6; }
5110fi
5111
5112
5113fi
5114if test -z "$ac_cv_prog_OBJDUMP"; then
5115  ac_ct_OBJDUMP=$OBJDUMP
5116  # Extract the first word of "objdump", so it can be a program name with args.
5117set dummy objdump; ac_word=$2
5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119printf %s "checking for $ac_word... " >&6; }
5120if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5121then :
5122  printf %s "(cached) " >&6
5123else $as_nop
5124  if test -n "$ac_ct_OBJDUMP"; then
5125  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  case $as_dir in #(((
5132    '') as_dir=./ ;;
5133    */) ;;
5134    *) as_dir=$as_dir/ ;;
5135  esac
5136    for ac_exec_ext in '' $ac_executable_extensions; do
5137  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5138    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5139    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5140    break 2
5141  fi
5142done
5143  done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5149if test -n "$ac_ct_OBJDUMP"; then
5150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5151printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5152else
5153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154printf "%s\n" "no" >&6; }
5155fi
5156
5157  if test "x$ac_ct_OBJDUMP" = x; then
5158    OBJDUMP="false"
5159  else
5160    case $cross_compiling:$ac_tool_warned in
5161yes:)
5162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164ac_tool_warned=yes ;;
5165esac
5166    OBJDUMP=$ac_ct_OBJDUMP
5167  fi
5168else
5169  OBJDUMP="$ac_cv_prog_OBJDUMP"
5170fi
5171
5172test -z "$OBJDUMP" && OBJDUMP=objdump
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5183printf %s "checking how to recognize dependent libraries... " >&6; }
5184if test ${lt_cv_deplibs_check_method+y}
5185then :
5186  printf %s "(cached) " >&6
5187else $as_nop
5188  lt_cv_file_magic_cmd='$MAGIC_CMD'
5189lt_cv_file_magic_test_file=
5190lt_cv_deplibs_check_method='unknown'
5191# Need to set the preceding variable on all platforms that support
5192# interlibrary dependencies.
5193# 'none' -- dependencies not supported.
5194# 'unknown' -- same as none, but documents that we really don't know.
5195# 'pass_all' -- all dependencies passed with no checks.
5196# 'test_compile' -- check by making test program.
5197# 'file_magic [[regex]]' -- check by looking for files in library path
5198# that responds to the $file_magic_cmd with a given extended regex.
5199# If you have 'file' or equivalent on your system and you're not sure
5200# whether 'pass_all' will *always* work, you probably want this one.
5201
5202case $host_os in
5203aix[4-9]*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207beos*)
5208  lt_cv_deplibs_check_method=pass_all
5209  ;;
5210
5211bsdi[45]*)
5212  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5213  lt_cv_file_magic_cmd='$FILECMD -L'
5214  lt_cv_file_magic_test_file=/shlib/libc.so
5215  ;;
5216
5217cygwin*)
5218  # func_win32_libid is a shell function defined in ltmain.sh
5219  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5220  lt_cv_file_magic_cmd='func_win32_libid'
5221  ;;
5222
5223mingw* | pw32*)
5224  # Base MSYS/MinGW do not provide the 'file' command needed by
5225  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5226  # unless we find 'file', for example because we are cross-compiling.
5227  if ( file / ) >/dev/null 2>&1; then
5228    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5229    lt_cv_file_magic_cmd='func_win32_libid'
5230  else
5231    # Keep this pattern in sync with the one in func_win32_libid.
5232    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5233    lt_cv_file_magic_cmd='$OBJDUMP -f'
5234  fi
5235  ;;
5236
5237cegcc*)
5238  # use the weaker test based on 'objdump'. See mingw*.
5239  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5240  lt_cv_file_magic_cmd='$OBJDUMP -f'
5241  ;;
5242
5243darwin* | rhapsody*)
5244  lt_cv_deplibs_check_method=pass_all
5245  ;;
5246
5247freebsd* | dragonfly* | midnightbsd*)
5248  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5249    case $host_cpu in
5250    i*86 )
5251      # Not sure whether the presence of OpenBSD here was a mistake.
5252      # Let's accept both of them until this is cleared up.
5253      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5254      lt_cv_file_magic_cmd=$FILECMD
5255      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5256      ;;
5257    esac
5258  else
5259    lt_cv_deplibs_check_method=pass_all
5260  fi
5261  ;;
5262
5263haiku*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266
5267hpux10.20* | hpux11*)
5268  lt_cv_file_magic_cmd=$FILECMD
5269  case $host_cpu in
5270  ia64*)
5271    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5272    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5273    ;;
5274  hppa*64*)
5275    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]'
5276    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5277    ;;
5278  *)
5279    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5280    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5281    ;;
5282  esac
5283  ;;
5284
5285interix[3-9]*)
5286  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5287  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5288  ;;
5289
5290irix5* | irix6* | nonstopux*)
5291  case $LD in
5292  *-32|*"-32 ") libmagic=32-bit;;
5293  *-n32|*"-n32 ") libmagic=N32;;
5294  *-64|*"-64 ") libmagic=64-bit;;
5295  *) libmagic=never-match;;
5296  esac
5297  lt_cv_deplibs_check_method=pass_all
5298  ;;
5299
5300# This must be glibc/ELF.
5301linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5302  lt_cv_deplibs_check_method=pass_all
5303  ;;
5304
5305netbsd* | netbsdelf*-gnu)
5306  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5307    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5308  else
5309    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5310  fi
5311  ;;
5312
5313newos6*)
5314  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5315  lt_cv_file_magic_cmd=$FILECMD
5316  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5317  ;;
5318
5319*nto* | *qnx*)
5320  lt_cv_deplibs_check_method=pass_all
5321  ;;
5322
5323openbsd* | bitrig*)
5324  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5325    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5326  else
5327    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5328  fi
5329  ;;
5330
5331osf3* | osf4* | osf5*)
5332  lt_cv_deplibs_check_method=pass_all
5333  ;;
5334
5335rdos*)
5336  lt_cv_deplibs_check_method=pass_all
5337  ;;
5338
5339solaris*)
5340  lt_cv_deplibs_check_method=pass_all
5341  ;;
5342
5343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5344  lt_cv_deplibs_check_method=pass_all
5345  ;;
5346
5347sysv4 | sysv4.3*)
5348  case $host_vendor in
5349  motorola)
5350    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]'
5351    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5352    ;;
5353  ncr)
5354    lt_cv_deplibs_check_method=pass_all
5355    ;;
5356  sequent)
5357    lt_cv_file_magic_cmd='/bin/file'
5358    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5359    ;;
5360  sni)
5361    lt_cv_file_magic_cmd='/bin/file'
5362    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5363    lt_cv_file_magic_test_file=/lib/libc.so
5364    ;;
5365  siemens)
5366    lt_cv_deplibs_check_method=pass_all
5367    ;;
5368  pc)
5369    lt_cv_deplibs_check_method=pass_all
5370    ;;
5371  esac
5372  ;;
5373
5374tpf*)
5375  lt_cv_deplibs_check_method=pass_all
5376  ;;
5377os2*)
5378  lt_cv_deplibs_check_method=pass_all
5379  ;;
5380esac
5381
5382fi
5383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5384printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5385
5386file_magic_glob=
5387want_nocaseglob=no
5388if test "$build" = "$host"; then
5389  case $host_os in
5390  mingw* | pw32*)
5391    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5392      want_nocaseglob=yes
5393    else
5394      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5395    fi
5396    ;;
5397  esac
5398fi
5399
5400file_magic_cmd=$lt_cv_file_magic_cmd
5401deplibs_check_method=$lt_cv_deplibs_check_method
5402test -z "$deplibs_check_method" && deplibs_check_method=unknown
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425if test -n "$ac_tool_prefix"; then
5426  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5427set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429printf %s "checking for $ac_word... " >&6; }
5430if test ${ac_cv_prog_DLLTOOL+y}
5431then :
5432  printf %s "(cached) " >&6
5433else $as_nop
5434  if test -n "$DLLTOOL"; then
5435  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5436else
5437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438for as_dir in $PATH
5439do
5440  IFS=$as_save_IFS
5441  case $as_dir in #(((
5442    '') as_dir=./ ;;
5443    */) ;;
5444    *) as_dir=$as_dir/ ;;
5445  esac
5446    for ac_exec_ext in '' $ac_executable_extensions; do
5447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5448    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5449    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5450    break 2
5451  fi
5452done
5453  done
5454IFS=$as_save_IFS
5455
5456fi
5457fi
5458DLLTOOL=$ac_cv_prog_DLLTOOL
5459if test -n "$DLLTOOL"; then
5460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5461printf "%s\n" "$DLLTOOL" >&6; }
5462else
5463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464printf "%s\n" "no" >&6; }
5465fi
5466
5467
5468fi
5469if test -z "$ac_cv_prog_DLLTOOL"; then
5470  ac_ct_DLLTOOL=$DLLTOOL
5471  # Extract the first word of "dlltool", so it can be a program name with args.
5472set dummy dlltool; ac_word=$2
5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474printf %s "checking for $ac_word... " >&6; }
5475if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5476then :
5477  printf %s "(cached) " >&6
5478else $as_nop
5479  if test -n "$ac_ct_DLLTOOL"; then
5480  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5481else
5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483for as_dir in $PATH
5484do
5485  IFS=$as_save_IFS
5486  case $as_dir in #(((
5487    '') as_dir=./ ;;
5488    */) ;;
5489    *) as_dir=$as_dir/ ;;
5490  esac
5491    for ac_exec_ext in '' $ac_executable_extensions; do
5492  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5494    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498  done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5504if test -n "$ac_ct_DLLTOOL"; then
5505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5506printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5507else
5508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509printf "%s\n" "no" >&6; }
5510fi
5511
5512  if test "x$ac_ct_DLLTOOL" = x; then
5513    DLLTOOL="false"
5514  else
5515    case $cross_compiling:$ac_tool_warned in
5516yes:)
5517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519ac_tool_warned=yes ;;
5520esac
5521    DLLTOOL=$ac_ct_DLLTOOL
5522  fi
5523else
5524  DLLTOOL="$ac_cv_prog_DLLTOOL"
5525fi
5526
5527test -z "$DLLTOOL" && DLLTOOL=dlltool
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5539printf %s "checking how to associate runtime and link libraries... " >&6; }
5540if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5541then :
5542  printf %s "(cached) " >&6
5543else $as_nop
5544  lt_cv_sharedlib_from_linklib_cmd='unknown'
5545
5546case $host_os in
5547cygwin* | mingw* | pw32* | cegcc*)
5548  # two different shell functions defined in ltmain.sh;
5549  # decide which one to use based on capabilities of $DLLTOOL
5550  case `$DLLTOOL --help 2>&1` in
5551  *--identify-strict*)
5552    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5553    ;;
5554  *)
5555    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5556    ;;
5557  esac
5558  ;;
5559*)
5560  # fallback: assume linklib IS sharedlib
5561  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5562  ;;
5563esac
5564
5565fi
5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5567printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5568sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5569test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5570
5571
5572
5573
5574
5575
5576
5577
5578if test -n "$ac_tool_prefix"; then
5579  for ac_prog in ar
5580  do
5581    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5582set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584printf %s "checking for $ac_word... " >&6; }
5585if test ${ac_cv_prog_AR+y}
5586then :
5587  printf %s "(cached) " >&6
5588else $as_nop
5589  if test -n "$AR"; then
5590  ac_cv_prog_AR="$AR" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595  IFS=$as_save_IFS
5596  case $as_dir in #(((
5597    '') as_dir=./ ;;
5598    */) ;;
5599    *) as_dir=$as_dir/ ;;
5600  esac
5601    for ac_exec_ext in '' $ac_executable_extensions; do
5602  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5603    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5604    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5605    break 2
5606  fi
5607done
5608  done
5609IFS=$as_save_IFS
5610
5611fi
5612fi
5613AR=$ac_cv_prog_AR
5614if test -n "$AR"; then
5615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5616printf "%s\n" "$AR" >&6; }
5617else
5618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619printf "%s\n" "no" >&6; }
5620fi
5621
5622
5623    test -n "$AR" && break
5624  done
5625fi
5626if test -z "$AR"; then
5627  ac_ct_AR=$AR
5628  for ac_prog in ar
5629do
5630  # Extract the first word of "$ac_prog", so it can be a program name with args.
5631set dummy $ac_prog; ac_word=$2
5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633printf %s "checking for $ac_word... " >&6; }
5634if test ${ac_cv_prog_ac_ct_AR+y}
5635then :
5636  printf %s "(cached) " >&6
5637else $as_nop
5638  if test -n "$ac_ct_AR"; then
5639  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  case $as_dir in #(((
5646    '') as_dir=./ ;;
5647    */) ;;
5648    *) as_dir=$as_dir/ ;;
5649  esac
5650    for ac_exec_ext in '' $ac_executable_extensions; do
5651  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5652    ac_cv_prog_ac_ct_AR="$ac_prog"
5653    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657  done
5658IFS=$as_save_IFS
5659
5660fi
5661fi
5662ac_ct_AR=$ac_cv_prog_ac_ct_AR
5663if test -n "$ac_ct_AR"; then
5664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5665printf "%s\n" "$ac_ct_AR" >&6; }
5666else
5667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668printf "%s\n" "no" >&6; }
5669fi
5670
5671
5672  test -n "$ac_ct_AR" && break
5673done
5674
5675  if test "x$ac_ct_AR" = x; then
5676    AR="false"
5677  else
5678    case $cross_compiling:$ac_tool_warned in
5679yes:)
5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684    AR=$ac_ct_AR
5685  fi
5686fi
5687
5688: ${AR=ar}
5689
5690
5691
5692
5693
5694
5695# Use ARFLAGS variable as AR's operation code to sync the variable naming with
5696# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5697# higher priority because thats what people were doing historically (setting
5698# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
5699# variable obsoleted/removed.
5700
5701test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5702lt_ar_flags=$AR_FLAGS
5703
5704
5705
5706
5707
5708
5709# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
5710# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5711
5712
5713
5714
5715
5716
5717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5718printf %s "checking for archiver @FILE support... " >&6; }
5719if test ${lt_cv_ar_at_file+y}
5720then :
5721  printf %s "(cached) " >&6
5722else $as_nop
5723  lt_cv_ar_at_file=no
5724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h.  */
5726
5727int
5728main (void)
5729{
5730
5731  ;
5732  return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"
5736then :
5737  echo conftest.$ac_objext > conftest.lst
5738      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5739      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5740  (eval $lt_ar_try) 2>&5
5741  ac_status=$?
5742  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743  test $ac_status = 0; }
5744      if test 0 -eq "$ac_status"; then
5745	# Ensure the archiver fails upon bogus file names.
5746	rm -f conftest.$ac_objext libconftest.a
5747	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5748  (eval $lt_ar_try) 2>&5
5749  ac_status=$?
5750  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5751  test $ac_status = 0; }
5752	if test 0 -ne "$ac_status"; then
5753          lt_cv_ar_at_file=@
5754        fi
5755      fi
5756      rm -f conftest.* libconftest.a
5757
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5760
5761fi
5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5763printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5764
5765if test no = "$lt_cv_ar_at_file"; then
5766  archiver_list_spec=
5767else
5768  archiver_list_spec=$lt_cv_ar_at_file
5769fi
5770
5771
5772
5773
5774
5775
5776
5777if test -n "$ac_tool_prefix"; then
5778  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}strip; ac_word=$2
5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781printf %s "checking for $ac_word... " >&6; }
5782if test ${ac_cv_prog_STRIP+y}
5783then :
5784  printf %s "(cached) " >&6
5785else $as_nop
5786  if test -n "$STRIP"; then
5787  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5788else
5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792  IFS=$as_save_IFS
5793  case $as_dir in #(((
5794    '') as_dir=./ ;;
5795    */) ;;
5796    *) as_dir=$as_dir/ ;;
5797  esac
5798    for ac_exec_ext in '' $ac_executable_extensions; do
5799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5800    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5802    break 2
5803  fi
5804done
5805  done
5806IFS=$as_save_IFS
5807
5808fi
5809fi
5810STRIP=$ac_cv_prog_STRIP
5811if test -n "$STRIP"; then
5812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5813printf "%s\n" "$STRIP" >&6; }
5814else
5815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816printf "%s\n" "no" >&6; }
5817fi
5818
5819
5820fi
5821if test -z "$ac_cv_prog_STRIP"; then
5822  ac_ct_STRIP=$STRIP
5823  # Extract the first word of "strip", so it can be a program name with args.
5824set dummy strip; ac_word=$2
5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826printf %s "checking for $ac_word... " >&6; }
5827if test ${ac_cv_prog_ac_ct_STRIP+y}
5828then :
5829  printf %s "(cached) " >&6
5830else $as_nop
5831  if test -n "$ac_ct_STRIP"; then
5832  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837  IFS=$as_save_IFS
5838  case $as_dir in #(((
5839    '') as_dir=./ ;;
5840    */) ;;
5841    *) as_dir=$as_dir/ ;;
5842  esac
5843    for ac_exec_ext in '' $ac_executable_extensions; do
5844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5845    ac_cv_prog_ac_ct_STRIP="strip"
5846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5847    break 2
5848  fi
5849done
5850  done
5851IFS=$as_save_IFS
5852
5853fi
5854fi
5855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5856if test -n "$ac_ct_STRIP"; then
5857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5858printf "%s\n" "$ac_ct_STRIP" >&6; }
5859else
5860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861printf "%s\n" "no" >&6; }
5862fi
5863
5864  if test "x$ac_ct_STRIP" = x; then
5865    STRIP=":"
5866  else
5867    case $cross_compiling:$ac_tool_warned in
5868yes:)
5869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5870printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5871ac_tool_warned=yes ;;
5872esac
5873    STRIP=$ac_ct_STRIP
5874  fi
5875else
5876  STRIP="$ac_cv_prog_STRIP"
5877fi
5878
5879test -z "$STRIP" && STRIP=:
5880
5881
5882
5883
5884
5885
5886if test -n "$ac_tool_prefix"; then
5887  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5888set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890printf %s "checking for $ac_word... " >&6; }
5891if test ${ac_cv_prog_RANLIB+y}
5892then :
5893  printf %s "(cached) " >&6
5894else $as_nop
5895  if test -n "$RANLIB"; then
5896  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901  IFS=$as_save_IFS
5902  case $as_dir in #(((
5903    '') as_dir=./ ;;
5904    */) ;;
5905    *) as_dir=$as_dir/ ;;
5906  esac
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5909    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919RANLIB=$ac_cv_prog_RANLIB
5920if test -n "$RANLIB"; then
5921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5922printf "%s\n" "$RANLIB" >&6; }
5923else
5924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925printf "%s\n" "no" >&6; }
5926fi
5927
5928
5929fi
5930if test -z "$ac_cv_prog_RANLIB"; then
5931  ac_ct_RANLIB=$RANLIB
5932  # Extract the first word of "ranlib", so it can be a program name with args.
5933set dummy ranlib; ac_word=$2
5934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935printf %s "checking for $ac_word... " >&6; }
5936if test ${ac_cv_prog_ac_ct_RANLIB+y}
5937then :
5938  printf %s "(cached) " >&6
5939else $as_nop
5940  if test -n "$ac_ct_RANLIB"; then
5941  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  case $as_dir in #(((
5948    '') as_dir=./ ;;
5949    */) ;;
5950    *) as_dir=$as_dir/ ;;
5951  esac
5952    for ac_exec_ext in '' $ac_executable_extensions; do
5953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5954    ac_cv_prog_ac_ct_RANLIB="ranlib"
5955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959  done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5965if test -n "$ac_ct_RANLIB"; then
5966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5967printf "%s\n" "$ac_ct_RANLIB" >&6; }
5968else
5969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970printf "%s\n" "no" >&6; }
5971fi
5972
5973  if test "x$ac_ct_RANLIB" = x; then
5974    RANLIB=":"
5975  else
5976    case $cross_compiling:$ac_tool_warned in
5977yes:)
5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980ac_tool_warned=yes ;;
5981esac
5982    RANLIB=$ac_ct_RANLIB
5983  fi
5984else
5985  RANLIB="$ac_cv_prog_RANLIB"
5986fi
5987
5988test -z "$RANLIB" && RANLIB=:
5989
5990
5991
5992
5993
5994
5995# Determine commands to create old-style static archives.
5996old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5997old_postinstall_cmds='chmod 644 $oldlib'
5998old_postuninstall_cmds=
5999
6000if test -n "$RANLIB"; then
6001  case $host_os in
6002  bitrig* | openbsd*)
6003    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6004    ;;
6005  *)
6006    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6007    ;;
6008  esac
6009  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6010fi
6011
6012case $host_os in
6013  darwin*)
6014    lock_old_archive_extraction=yes ;;
6015  *)
6016    lock_old_archive_extraction=no ;;
6017esac
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039for ac_prog in gawk mawk nawk awk
6040do
6041  # Extract the first word of "$ac_prog", so it can be a program name with args.
6042set dummy $ac_prog; ac_word=$2
6043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044printf %s "checking for $ac_word... " >&6; }
6045if test ${ac_cv_prog_AWK+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  if test -n "$AWK"; then
6050  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6051else
6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053for as_dir in $PATH
6054do
6055  IFS=$as_save_IFS
6056  case $as_dir in #(((
6057    '') as_dir=./ ;;
6058    */) ;;
6059    *) as_dir=$as_dir/ ;;
6060  esac
6061    for ac_exec_ext in '' $ac_executable_extensions; do
6062  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6063    ac_cv_prog_AWK="$ac_prog"
6064    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6065    break 2
6066  fi
6067done
6068  done
6069IFS=$as_save_IFS
6070
6071fi
6072fi
6073AWK=$ac_cv_prog_AWK
6074if test -n "$AWK"; then
6075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6076printf "%s\n" "$AWK" >&6; }
6077else
6078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079printf "%s\n" "no" >&6; }
6080fi
6081
6082
6083  test -n "$AWK" && break
6084done
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104# If no C compiler was specified, use CC.
6105LTCC=${LTCC-"$CC"}
6106
6107# If no C compiler flags were specified, use CFLAGS.
6108LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6109
6110# Allow CC to be a program name with arguments.
6111compiler=$CC
6112
6113
6114# Check for command to grab the raw symbol name followed by C symbol from nm.
6115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6116printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6117if test ${lt_cv_sys_global_symbol_pipe+y}
6118then :
6119  printf %s "(cached) " >&6
6120else $as_nop
6121
6122# These are sane defaults that work on at least a few old systems.
6123# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6124
6125# Character class describing NM global symbol codes.
6126symcode='[BCDEGRST]'
6127
6128# Regexp to match symbols that can be accessed directly from C.
6129sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6130
6131# Define system-specific variables.
6132case $host_os in
6133aix*)
6134  symcode='[BCDT]'
6135  ;;
6136cygwin* | mingw* | pw32* | cegcc*)
6137  symcode='[ABCDGISTW]'
6138  ;;
6139hpux*)
6140  if test ia64 = "$host_cpu"; then
6141    symcode='[ABCDEGRST]'
6142  fi
6143  ;;
6144irix* | nonstopux*)
6145  symcode='[BCDEGRST]'
6146  ;;
6147osf*)
6148  symcode='[BCDEGQRST]'
6149  ;;
6150solaris*)
6151  symcode='[BDRT]'
6152  ;;
6153sco3.2v5*)
6154  symcode='[DT]'
6155  ;;
6156sysv4.2uw2*)
6157  symcode='[DT]'
6158  ;;
6159sysv5* | sco5v6* | unixware* | OpenUNIX*)
6160  symcode='[ABDT]'
6161  ;;
6162sysv4)
6163  symcode='[DFNSTU]'
6164  ;;
6165esac
6166
6167# If we're using GNU nm, then use its standard symbol codes.
6168case `$NM -V 2>&1` in
6169*GNU* | *'with BFD'*)
6170  symcode='[ABCDGIRSTW]' ;;
6171esac
6172
6173if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6174  # Gets list of data symbols to import.
6175  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6176  # Adjust the below global symbol transforms to fixup imported variables.
6177  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6178  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6179  lt_c_name_lib_hook="\
6180  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6181  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6182else
6183  # Disable hooks by default.
6184  lt_cv_sys_global_symbol_to_import=
6185  lt_cdecl_hook=
6186  lt_c_name_hook=
6187  lt_c_name_lib_hook=
6188fi
6189
6190# Transform an extracted symbol line into a proper C declaration.
6191# Some systems (esp. on ia64) link data and code symbols differently,
6192# so use this general approach.
6193lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6194$lt_cdecl_hook\
6195" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6196" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6197
6198# Transform an extracted symbol line into symbol name and symbol address
6199lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6200$lt_c_name_hook\
6201" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6202" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6203
6204# Transform an extracted symbol line into symbol name with lib prefix and
6205# symbol address.
6206lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6207$lt_c_name_lib_hook\
6208" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6209" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6210" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6211
6212# Handle CRLF in mingw tool chain
6213opt_cr=
6214case $build_os in
6215mingw*)
6216  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6217  ;;
6218esac
6219
6220# Try without a prefix underscore, then with it.
6221for ac_symprfx in "" "_"; do
6222
6223  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6224  symxfrm="\\1 $ac_symprfx\\2 \\2"
6225
6226  # Write the raw and C identifiers.
6227  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6228    # Fake it for dumpbin and say T for any non-static function,
6229    # D for any global variable and I for any imported variable.
6230    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6231    # which start with @ or ?.
6232    lt_cv_sys_global_symbol_pipe="$AWK '"\
6233"     {last_section=section; section=\$ 3};"\
6234"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6235"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6236"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6237"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6238"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6239"     \$ 0!~/External *\|/{next};"\
6240"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6241"     {if(hide[section]) next};"\
6242"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6243"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6244"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6245"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6246"     ' prfx=^$ac_symprfx"
6247  else
6248    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6249  fi
6250  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6251
6252  # Check to see that the pipe works correctly.
6253  pipe_works=no
6254
6255  rm -f conftest*
6256  cat > conftest.$ac_ext <<_LT_EOF
6257#ifdef __cplusplus
6258extern "C" {
6259#endif
6260char nm_test_var;
6261void nm_test_func(void);
6262void nm_test_func(void){}
6263#ifdef __cplusplus
6264}
6265#endif
6266int main(){nm_test_var='a';nm_test_func();return(0);}
6267_LT_EOF
6268
6269  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6270  (eval $ac_compile) 2>&5
6271  ac_status=$?
6272  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273  test $ac_status = 0; }; then
6274    # Now try to grab the symbols.
6275    nlist=conftest.nm
6276    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6277    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6278      # Try sorting and uniquifying the output.
6279      if sort "$nlist" | uniq > "$nlist"T; then
6280	mv -f "$nlist"T "$nlist"
6281      else
6282	rm -f "$nlist"T
6283      fi
6284
6285      # Make sure that we snagged all the symbols we need.
6286      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6287	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6288	  cat <<_LT_EOF > conftest.$ac_ext
6289/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6290#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6291/* DATA imports from DLLs on WIN32 can't be const, because runtime
6292   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6293# define LT_DLSYM_CONST
6294#elif defined __osf__
6295/* This system does not cope well with relocations in const data.  */
6296# define LT_DLSYM_CONST
6297#else
6298# define LT_DLSYM_CONST const
6299#endif
6300
6301#ifdef __cplusplus
6302extern "C" {
6303#endif
6304
6305_LT_EOF
6306	  # Now generate the symbol file.
6307	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6308
6309	  cat <<_LT_EOF >> conftest.$ac_ext
6310
6311/* The mapping between symbol names and symbols.  */
6312LT_DLSYM_CONST struct {
6313  const char *name;
6314  void       *address;
6315}
6316lt__PROGRAM__LTX_preloaded_symbols[] =
6317{
6318  { "@PROGRAM@", (void *) 0 },
6319_LT_EOF
6320	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6321	  cat <<\_LT_EOF >> conftest.$ac_ext
6322  {0, (void *) 0}
6323};
6324
6325/* This works around a problem in FreeBSD linker */
6326#ifdef FREEBSD_WORKAROUND
6327static const void *lt_preloaded_setup() {
6328  return lt__PROGRAM__LTX_preloaded_symbols;
6329}
6330#endif
6331
6332#ifdef __cplusplus
6333}
6334#endif
6335_LT_EOF
6336	  # Now try linking the two files.
6337	  mv conftest.$ac_objext conftstm.$ac_objext
6338	  lt_globsym_save_LIBS=$LIBS
6339	  lt_globsym_save_CFLAGS=$CFLAGS
6340	  LIBS=conftstm.$ac_objext
6341	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6342	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6343  (eval $ac_link) 2>&5
6344  ac_status=$?
6345  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6347	    pipe_works=yes
6348	  fi
6349	  LIBS=$lt_globsym_save_LIBS
6350	  CFLAGS=$lt_globsym_save_CFLAGS
6351	else
6352	  echo "cannot find nm_test_func in $nlist" >&5
6353	fi
6354      else
6355	echo "cannot find nm_test_var in $nlist" >&5
6356      fi
6357    else
6358      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6359    fi
6360  else
6361    echo "$progname: failed program was:" >&5
6362    cat conftest.$ac_ext >&5
6363  fi
6364  rm -rf conftest* conftst*
6365
6366  # Do not use the global_symbol_pipe unless it works.
6367  if test yes = "$pipe_works"; then
6368    break
6369  else
6370    lt_cv_sys_global_symbol_pipe=
6371  fi
6372done
6373
6374fi
6375
6376if test -z "$lt_cv_sys_global_symbol_pipe"; then
6377  lt_cv_sys_global_symbol_to_cdecl=
6378fi
6379if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6381printf "%s\n" "failed" >&6; }
6382else
6383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6384printf "%s\n" "ok" >&6; }
6385fi
6386
6387# Response file support.
6388if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6389  nm_file_list_spec='@'
6390elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6391  nm_file_list_spec='@'
6392fi
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6431printf %s "checking for sysroot... " >&6; }
6432
6433# Check whether --with-sysroot was given.
6434if test ${with_sysroot+y}
6435then :
6436  withval=$with_sysroot;
6437else $as_nop
6438  with_sysroot=no
6439fi
6440
6441
6442lt_sysroot=
6443case $with_sysroot in #(
6444 yes)
6445   if test yes = "$GCC"; then
6446     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6447   fi
6448   ;; #(
6449 /*)
6450   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6451   ;; #(
6452 no|'')
6453   ;; #(
6454 *)
6455   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6456printf "%s\n" "$with_sysroot" >&6; }
6457   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6458   ;;
6459esac
6460
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6462printf "%s\n" "${lt_sysroot:-no}" >&6; }
6463
6464
6465
6466
6467
6468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6469printf %s "checking for a working dd... " >&6; }
6470if test ${ac_cv_path_lt_DD+y}
6471then :
6472  printf %s "(cached) " >&6
6473else $as_nop
6474  printf 0123456789abcdef0123456789abcdef >conftest.i
6475cat conftest.i conftest.i >conftest2.i
6476: ${lt_DD:=$DD}
6477if test -z "$lt_DD"; then
6478  ac_path_lt_DD_found=false
6479  # Loop through the user's path and test for each of PROGNAME-LIST
6480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  case $as_dir in #(((
6485    '') as_dir=./ ;;
6486    */) ;;
6487    *) as_dir=$as_dir/ ;;
6488  esac
6489    for ac_prog in dd
6490   do
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6493      as_fn_executable_p "$ac_path_lt_DD" || continue
6494if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6495  cmp -s conftest.i conftest.out \
6496  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6497fi
6498      $ac_path_lt_DD_found && break 3
6499    done
6500  done
6501  done
6502IFS=$as_save_IFS
6503  if test -z "$ac_cv_path_lt_DD"; then
6504    :
6505  fi
6506else
6507  ac_cv_path_lt_DD=$lt_DD
6508fi
6509
6510rm -f conftest.i conftest2.i conftest.out
6511fi
6512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6513printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6514
6515
6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6517printf %s "checking how to truncate binary pipes... " >&6; }
6518if test ${lt_cv_truncate_bin+y}
6519then :
6520  printf %s "(cached) " >&6
6521else $as_nop
6522  printf 0123456789abcdef0123456789abcdef >conftest.i
6523cat conftest.i conftest.i >conftest2.i
6524lt_cv_truncate_bin=
6525if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6526  cmp -s conftest.i conftest.out \
6527  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6528fi
6529rm -f conftest.i conftest2.i conftest.out
6530test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6531fi
6532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6533printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6534
6535
6536
6537
6538
6539
6540
6541# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6542func_cc_basename ()
6543{
6544    for cc_temp in $*""; do
6545      case $cc_temp in
6546        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6547        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6548        \-*) ;;
6549        *) break;;
6550      esac
6551    done
6552    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6553}
6554
6555# Check whether --enable-libtool-lock was given.
6556if test ${enable_libtool_lock+y}
6557then :
6558  enableval=$enable_libtool_lock;
6559fi
6560
6561test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6562
6563# Some flags need to be propagated to the compiler or linker for good
6564# libtool support.
6565case $host in
6566ia64-*-hpux*)
6567  # Find out what ABI is being produced by ac_compile, and set mode
6568  # options accordingly.
6569  echo 'int i;' > conftest.$ac_ext
6570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6571  (eval $ac_compile) 2>&5
6572  ac_status=$?
6573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574  test $ac_status = 0; }; then
6575    case `$FILECMD conftest.$ac_objext` in
6576      *ELF-32*)
6577	HPUX_IA64_MODE=32
6578	;;
6579      *ELF-64*)
6580	HPUX_IA64_MODE=64
6581	;;
6582    esac
6583  fi
6584  rm -rf conftest*
6585  ;;
6586*-*-irix6*)
6587  # Find out what ABI is being produced by ac_compile, and set linker
6588  # options accordingly.
6589  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6590  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6591  (eval $ac_compile) 2>&5
6592  ac_status=$?
6593  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6594  test $ac_status = 0; }; then
6595    if test yes = "$lt_cv_prog_gnu_ld"; then
6596      case `$FILECMD conftest.$ac_objext` in
6597	*32-bit*)
6598	  LD="${LD-ld} -melf32bsmip"
6599	  ;;
6600	*N32*)
6601	  LD="${LD-ld} -melf32bmipn32"
6602	  ;;
6603	*64-bit*)
6604	  LD="${LD-ld} -melf64bmip"
6605	;;
6606      esac
6607    else
6608      case `$FILECMD conftest.$ac_objext` in
6609	*32-bit*)
6610	  LD="${LD-ld} -32"
6611	  ;;
6612	*N32*)
6613	  LD="${LD-ld} -n32"
6614	  ;;
6615	*64-bit*)
6616	  LD="${LD-ld} -64"
6617	  ;;
6618      esac
6619    fi
6620  fi
6621  rm -rf conftest*
6622  ;;
6623
6624mips64*-*linux*)
6625  # Find out what ABI is being produced by ac_compile, and set linker
6626  # options accordingly.
6627  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6628  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629  (eval $ac_compile) 2>&5
6630  ac_status=$?
6631  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632  test $ac_status = 0; }; then
6633    emul=elf
6634    case `$FILECMD conftest.$ac_objext` in
6635      *32-bit*)
6636	emul="${emul}32"
6637	;;
6638      *64-bit*)
6639	emul="${emul}64"
6640	;;
6641    esac
6642    case `$FILECMD conftest.$ac_objext` in
6643      *MSB*)
6644	emul="${emul}btsmip"
6645	;;
6646      *LSB*)
6647	emul="${emul}ltsmip"
6648	;;
6649    esac
6650    case `$FILECMD conftest.$ac_objext` in
6651      *N32*)
6652	emul="${emul}n32"
6653	;;
6654    esac
6655    LD="${LD-ld} -m $emul"
6656  fi
6657  rm -rf conftest*
6658  ;;
6659
6660x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6661s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6662  # Find out what ABI is being produced by ac_compile, and set linker
6663  # options accordingly.  Note that the listed cases only cover the
6664  # situations where additional linker options are needed (such as when
6665  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6666  # vice versa); the common cases where no linker options are needed do
6667  # not appear in the list.
6668  echo 'int i;' > conftest.$ac_ext
6669  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6670  (eval $ac_compile) 2>&5
6671  ac_status=$?
6672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673  test $ac_status = 0; }; then
6674    case `$FILECMD conftest.o` in
6675      *32-bit*)
6676	case $host in
6677	  x86_64-*kfreebsd*-gnu)
6678	    LD="${LD-ld} -m elf_i386_fbsd"
6679	    ;;
6680	  x86_64-*linux*)
6681	    case `$FILECMD conftest.o` in
6682	      *x86-64*)
6683		LD="${LD-ld} -m elf32_x86_64"
6684		;;
6685	      *)
6686		LD="${LD-ld} -m elf_i386"
6687		;;
6688	    esac
6689	    ;;
6690	  powerpc64le-*linux*)
6691	    LD="${LD-ld} -m elf32lppclinux"
6692	    ;;
6693	  powerpc64-*linux*)
6694	    LD="${LD-ld} -m elf32ppclinux"
6695	    ;;
6696	  s390x-*linux*)
6697	    LD="${LD-ld} -m elf_s390"
6698	    ;;
6699	  sparc64-*linux*)
6700	    LD="${LD-ld} -m elf32_sparc"
6701	    ;;
6702	esac
6703	;;
6704      *64-bit*)
6705	case $host in
6706	  x86_64-*kfreebsd*-gnu)
6707	    LD="${LD-ld} -m elf_x86_64_fbsd"
6708	    ;;
6709	  x86_64-*linux*)
6710	    LD="${LD-ld} -m elf_x86_64"
6711	    ;;
6712	  powerpcle-*linux*)
6713	    LD="${LD-ld} -m elf64lppc"
6714	    ;;
6715	  powerpc-*linux*)
6716	    LD="${LD-ld} -m elf64ppc"
6717	    ;;
6718	  s390*-*linux*|s390*-*tpf*)
6719	    LD="${LD-ld} -m elf64_s390"
6720	    ;;
6721	  sparc*-*linux*)
6722	    LD="${LD-ld} -m elf64_sparc"
6723	    ;;
6724	esac
6725	;;
6726    esac
6727  fi
6728  rm -rf conftest*
6729  ;;
6730
6731*-*-sco3.2v5*)
6732  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6733  SAVE_CFLAGS=$CFLAGS
6734  CFLAGS="$CFLAGS -belf"
6735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6736printf %s "checking whether the C compiler needs -belf... " >&6; }
6737if test ${lt_cv_cc_needs_belf+y}
6738then :
6739  printf %s "(cached) " >&6
6740else $as_nop
6741  ac_ext=c
6742ac_cpp='$CPP $CPPFLAGS'
6743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h.  */
6749
6750int
6751main (void)
6752{
6753
6754  ;
6755  return 0;
6756}
6757_ACEOF
6758if ac_fn_c_try_link "$LINENO"
6759then :
6760  lt_cv_cc_needs_belf=yes
6761else $as_nop
6762  lt_cv_cc_needs_belf=no
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.beam \
6765    conftest$ac_exeext conftest.$ac_ext
6766     ac_ext=c
6767ac_cpp='$CPP $CPPFLAGS'
6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772fi
6773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6774printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6775  if test yes != "$lt_cv_cc_needs_belf"; then
6776    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6777    CFLAGS=$SAVE_CFLAGS
6778  fi
6779  ;;
6780*-*solaris*)
6781  # Find out what ABI is being produced by ac_compile, and set linker
6782  # options accordingly.
6783  echo 'int i;' > conftest.$ac_ext
6784  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785  (eval $ac_compile) 2>&5
6786  ac_status=$?
6787  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788  test $ac_status = 0; }; then
6789    case `$FILECMD conftest.o` in
6790    *64-bit*)
6791      case $lt_cv_prog_gnu_ld in
6792      yes*)
6793        case $host in
6794        i?86-*-solaris*|x86_64-*-solaris*)
6795          LD="${LD-ld} -m elf_x86_64"
6796          ;;
6797        sparc*-*-solaris*)
6798          LD="${LD-ld} -m elf64_sparc"
6799          ;;
6800        esac
6801        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6802        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6803          LD=${LD-ld}_sol2
6804        fi
6805        ;;
6806      *)
6807	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6808	  LD="${LD-ld} -64"
6809	fi
6810	;;
6811      esac
6812      ;;
6813    esac
6814  fi
6815  rm -rf conftest*
6816  ;;
6817esac
6818
6819need_locks=$enable_libtool_lock
6820
6821if test -n "$ac_tool_prefix"; then
6822  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6823set dummy ${ac_tool_prefix}mt; ac_word=$2
6824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825printf %s "checking for $ac_word... " >&6; }
6826if test ${ac_cv_prog_MANIFEST_TOOL+y}
6827then :
6828  printf %s "(cached) " >&6
6829else $as_nop
6830  if test -n "$MANIFEST_TOOL"; then
6831  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6832else
6833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834for as_dir in $PATH
6835do
6836  IFS=$as_save_IFS
6837  case $as_dir in #(((
6838    '') as_dir=./ ;;
6839    */) ;;
6840    *) as_dir=$as_dir/ ;;
6841  esac
6842    for ac_exec_ext in '' $ac_executable_extensions; do
6843  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6844    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6845    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6846    break 2
6847  fi
6848done
6849  done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6855if test -n "$MANIFEST_TOOL"; then
6856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6857printf "%s\n" "$MANIFEST_TOOL" >&6; }
6858else
6859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860printf "%s\n" "no" >&6; }
6861fi
6862
6863
6864fi
6865if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6866  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6867  # Extract the first word of "mt", so it can be a program name with args.
6868set dummy mt; ac_word=$2
6869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870printf %s "checking for $ac_word... " >&6; }
6871if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6872then :
6873  printf %s "(cached) " >&6
6874else $as_nop
6875  if test -n "$ac_ct_MANIFEST_TOOL"; then
6876  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6877else
6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH
6880do
6881  IFS=$as_save_IFS
6882  case $as_dir in #(((
6883    '') as_dir=./ ;;
6884    */) ;;
6885    *) as_dir=$as_dir/ ;;
6886  esac
6887    for ac_exec_ext in '' $ac_executable_extensions; do
6888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6889    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894  done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6900if test -n "$ac_ct_MANIFEST_TOOL"; then
6901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6902printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6903else
6904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905printf "%s\n" "no" >&6; }
6906fi
6907
6908  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6909    MANIFEST_TOOL=":"
6910  else
6911    case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6918  fi
6919else
6920  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6921fi
6922
6923test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6925printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6926if test ${lt_cv_path_mainfest_tool+y}
6927then :
6928  printf %s "(cached) " >&6
6929else $as_nop
6930  lt_cv_path_mainfest_tool=no
6931  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6932  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6933  cat conftest.err >&5
6934  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6935    lt_cv_path_mainfest_tool=yes
6936  fi
6937  rm -f conftest*
6938fi
6939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6940printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6941if test yes != "$lt_cv_path_mainfest_tool"; then
6942  MANIFEST_TOOL=:
6943fi
6944
6945
6946
6947
6948
6949
6950  case $host_os in
6951    rhapsody* | darwin*)
6952    if test -n "$ac_tool_prefix"; then
6953  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6954set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956printf %s "checking for $ac_word... " >&6; }
6957if test ${ac_cv_prog_DSYMUTIL+y}
6958then :
6959  printf %s "(cached) " >&6
6960else $as_nop
6961  if test -n "$DSYMUTIL"; then
6962  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967  IFS=$as_save_IFS
6968  case $as_dir in #(((
6969    '') as_dir=./ ;;
6970    */) ;;
6971    *) as_dir=$as_dir/ ;;
6972  esac
6973    for ac_exec_ext in '' $ac_executable_extensions; do
6974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6975    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6977    break 2
6978  fi
6979done
6980  done
6981IFS=$as_save_IFS
6982
6983fi
6984fi
6985DSYMUTIL=$ac_cv_prog_DSYMUTIL
6986if test -n "$DSYMUTIL"; then
6987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6988printf "%s\n" "$DSYMUTIL" >&6; }
6989else
6990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991printf "%s\n" "no" >&6; }
6992fi
6993
6994
6995fi
6996if test -z "$ac_cv_prog_DSYMUTIL"; then
6997  ac_ct_DSYMUTIL=$DSYMUTIL
6998  # Extract the first word of "dsymutil", so it can be a program name with args.
6999set dummy dsymutil; ac_word=$2
7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001printf %s "checking for $ac_word... " >&6; }
7002if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7003then :
7004  printf %s "(cached) " >&6
7005else $as_nop
7006  if test -n "$ac_ct_DSYMUTIL"; then
7007  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012  IFS=$as_save_IFS
7013  case $as_dir in #(((
7014    '') as_dir=./ ;;
7015    */) ;;
7016    *) as_dir=$as_dir/ ;;
7017  esac
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7020    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7021    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025  done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7031if test -n "$ac_ct_DSYMUTIL"; then
7032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7033printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7034else
7035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036printf "%s\n" "no" >&6; }
7037fi
7038
7039  if test "x$ac_ct_DSYMUTIL" = x; then
7040    DSYMUTIL=":"
7041  else
7042    case $cross_compiling:$ac_tool_warned in
7043yes:)
7044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046ac_tool_warned=yes ;;
7047esac
7048    DSYMUTIL=$ac_ct_DSYMUTIL
7049  fi
7050else
7051  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7052fi
7053
7054    if test -n "$ac_tool_prefix"; then
7055  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7056set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058printf %s "checking for $ac_word... " >&6; }
7059if test ${ac_cv_prog_NMEDIT+y}
7060then :
7061  printf %s "(cached) " >&6
7062else $as_nop
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  case $as_dir in #(((
7071    '') as_dir=./ ;;
7072    */) ;;
7073    *) as_dir=$as_dir/ ;;
7074  esac
7075    for ac_exec_ext in '' $ac_executable_extensions; do
7076  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7077    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7078    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082  done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087NMEDIT=$ac_cv_prog_NMEDIT
7088if test -n "$NMEDIT"; then
7089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7090printf "%s\n" "$NMEDIT" >&6; }
7091else
7092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093printf "%s\n" "no" >&6; }
7094fi
7095
7096
7097fi
7098if test -z "$ac_cv_prog_NMEDIT"; then
7099  ac_ct_NMEDIT=$NMEDIT
7100  # Extract the first word of "nmedit", so it can be a program name with args.
7101set dummy nmedit; ac_word=$2
7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103printf %s "checking for $ac_word... " >&6; }
7104if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7105then :
7106  printf %s "(cached) " >&6
7107else $as_nop
7108  if test -n "$ac_ct_NMEDIT"; then
7109  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7110else
7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112for as_dir in $PATH
7113do
7114  IFS=$as_save_IFS
7115  case $as_dir in #(((
7116    '') as_dir=./ ;;
7117    */) ;;
7118    *) as_dir=$as_dir/ ;;
7119  esac
7120    for ac_exec_ext in '' $ac_executable_extensions; do
7121  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7122    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7123    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7124    break 2
7125  fi
7126done
7127  done
7128IFS=$as_save_IFS
7129
7130fi
7131fi
7132ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7133if test -n "$ac_ct_NMEDIT"; then
7134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7135printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7136else
7137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138printf "%s\n" "no" >&6; }
7139fi
7140
7141  if test "x$ac_ct_NMEDIT" = x; then
7142    NMEDIT=":"
7143  else
7144    case $cross_compiling:$ac_tool_warned in
7145yes:)
7146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148ac_tool_warned=yes ;;
7149esac
7150    NMEDIT=$ac_ct_NMEDIT
7151  fi
7152else
7153  NMEDIT="$ac_cv_prog_NMEDIT"
7154fi
7155
7156    if test -n "$ac_tool_prefix"; then
7157  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7158set dummy ${ac_tool_prefix}lipo; ac_word=$2
7159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160printf %s "checking for $ac_word... " >&6; }
7161if test ${ac_cv_prog_LIPO+y}
7162then :
7163  printf %s "(cached) " >&6
7164else $as_nop
7165  if test -n "$LIPO"; then
7166  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7167else
7168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169for as_dir in $PATH
7170do
7171  IFS=$as_save_IFS
7172  case $as_dir in #(((
7173    '') as_dir=./ ;;
7174    */) ;;
7175    *) as_dir=$as_dir/ ;;
7176  esac
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189LIPO=$ac_cv_prog_LIPO
7190if test -n "$LIPO"; then
7191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7192printf "%s\n" "$LIPO" >&6; }
7193else
7194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195printf "%s\n" "no" >&6; }
7196fi
7197
7198
7199fi
7200if test -z "$ac_cv_prog_LIPO"; then
7201  ac_ct_LIPO=$LIPO
7202  # Extract the first word of "lipo", so it can be a program name with args.
7203set dummy lipo; ac_word=$2
7204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205printf %s "checking for $ac_word... " >&6; }
7206if test ${ac_cv_prog_ac_ct_LIPO+y}
7207then :
7208  printf %s "(cached) " >&6
7209else $as_nop
7210  if test -n "$ac_ct_LIPO"; then
7211  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7212else
7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216  IFS=$as_save_IFS
7217  case $as_dir in #(((
7218    '') as_dir=./ ;;
7219    */) ;;
7220    *) as_dir=$as_dir/ ;;
7221  esac
7222    for ac_exec_ext in '' $ac_executable_extensions; do
7223  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7224    ac_cv_prog_ac_ct_LIPO="lipo"
7225    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7226    break 2
7227  fi
7228done
7229  done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7235if test -n "$ac_ct_LIPO"; then
7236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7237printf "%s\n" "$ac_ct_LIPO" >&6; }
7238else
7239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240printf "%s\n" "no" >&6; }
7241fi
7242
7243  if test "x$ac_ct_LIPO" = x; then
7244    LIPO=":"
7245  else
7246    case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250ac_tool_warned=yes ;;
7251esac
7252    LIPO=$ac_ct_LIPO
7253  fi
7254else
7255  LIPO="$ac_cv_prog_LIPO"
7256fi
7257
7258    if test -n "$ac_tool_prefix"; then
7259  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7260set dummy ${ac_tool_prefix}otool; ac_word=$2
7261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262printf %s "checking for $ac_word... " >&6; }
7263if test ${ac_cv_prog_OTOOL+y}
7264then :
7265  printf %s "(cached) " >&6
7266else $as_nop
7267  if test -n "$OTOOL"; then
7268  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  case $as_dir in #(((
7275    '') as_dir=./ ;;
7276    */) ;;
7277    *) as_dir=$as_dir/ ;;
7278  esac
7279    for ac_exec_ext in '' $ac_executable_extensions; do
7280  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7281    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7282    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7283    break 2
7284  fi
7285done
7286  done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291OTOOL=$ac_cv_prog_OTOOL
7292if test -n "$OTOOL"; then
7293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7294printf "%s\n" "$OTOOL" >&6; }
7295else
7296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297printf "%s\n" "no" >&6; }
7298fi
7299
7300
7301fi
7302if test -z "$ac_cv_prog_OTOOL"; then
7303  ac_ct_OTOOL=$OTOOL
7304  # Extract the first word of "otool", so it can be a program name with args.
7305set dummy otool; ac_word=$2
7306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307printf %s "checking for $ac_word... " >&6; }
7308if test ${ac_cv_prog_ac_ct_OTOOL+y}
7309then :
7310  printf %s "(cached) " >&6
7311else $as_nop
7312  if test -n "$ac_ct_OTOOL"; then
7313  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318  IFS=$as_save_IFS
7319  case $as_dir in #(((
7320    '') as_dir=./ ;;
7321    */) ;;
7322    *) as_dir=$as_dir/ ;;
7323  esac
7324    for ac_exec_ext in '' $ac_executable_extensions; do
7325  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7326    ac_cv_prog_ac_ct_OTOOL="otool"
7327    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7328    break 2
7329  fi
7330done
7331  done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7337if test -n "$ac_ct_OTOOL"; then
7338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7339printf "%s\n" "$ac_ct_OTOOL" >&6; }
7340else
7341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342printf "%s\n" "no" >&6; }
7343fi
7344
7345  if test "x$ac_ct_OTOOL" = x; then
7346    OTOOL=":"
7347  else
7348    case $cross_compiling:$ac_tool_warned in
7349yes:)
7350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352ac_tool_warned=yes ;;
7353esac
7354    OTOOL=$ac_ct_OTOOL
7355  fi
7356else
7357  OTOOL="$ac_cv_prog_OTOOL"
7358fi
7359
7360    if test -n "$ac_tool_prefix"; then
7361  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7362set dummy ${ac_tool_prefix}otool64; ac_word=$2
7363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364printf %s "checking for $ac_word... " >&6; }
7365if test ${ac_cv_prog_OTOOL64+y}
7366then :
7367  printf %s "(cached) " >&6
7368else $as_nop
7369  if test -n "$OTOOL64"; then
7370  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7371else
7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375  IFS=$as_save_IFS
7376  case $as_dir in #(((
7377    '') as_dir=./ ;;
7378    */) ;;
7379    *) as_dir=$as_dir/ ;;
7380  esac
7381    for ac_exec_ext in '' $ac_executable_extensions; do
7382  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7383    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7384    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7385    break 2
7386  fi
7387done
7388  done
7389IFS=$as_save_IFS
7390
7391fi
7392fi
7393OTOOL64=$ac_cv_prog_OTOOL64
7394if test -n "$OTOOL64"; then
7395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7396printf "%s\n" "$OTOOL64" >&6; }
7397else
7398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399printf "%s\n" "no" >&6; }
7400fi
7401
7402
7403fi
7404if test -z "$ac_cv_prog_OTOOL64"; then
7405  ac_ct_OTOOL64=$OTOOL64
7406  # Extract the first word of "otool64", so it can be a program name with args.
7407set dummy otool64; ac_word=$2
7408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409printf %s "checking for $ac_word... " >&6; }
7410if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7411then :
7412  printf %s "(cached) " >&6
7413else $as_nop
7414  if test -n "$ac_ct_OTOOL64"; then
7415  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7416else
7417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420  IFS=$as_save_IFS
7421  case $as_dir in #(((
7422    '') as_dir=./ ;;
7423    */) ;;
7424    *) as_dir=$as_dir/ ;;
7425  esac
7426    for ac_exec_ext in '' $ac_executable_extensions; do
7427  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7428    ac_cv_prog_ac_ct_OTOOL64="otool64"
7429    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433  done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7439if test -n "$ac_ct_OTOOL64"; then
7440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7441printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7442else
7443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444printf "%s\n" "no" >&6; }
7445fi
7446
7447  if test "x$ac_ct_OTOOL64" = x; then
7448    OTOOL64=":"
7449  else
7450    case $cross_compiling:$ac_tool_warned in
7451yes:)
7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454ac_tool_warned=yes ;;
7455esac
7456    OTOOL64=$ac_ct_OTOOL64
7457  fi
7458else
7459  OTOOL64="$ac_cv_prog_OTOOL64"
7460fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7489printf %s "checking for -single_module linker flag... " >&6; }
7490if test ${lt_cv_apple_cc_single_mod+y}
7491then :
7492  printf %s "(cached) " >&6
7493else $as_nop
7494  lt_cv_apple_cc_single_mod=no
7495      if test -z "$LT_MULTI_MODULE"; then
7496	# By default we will add the -single_module flag. You can override
7497	# by either setting the environment variable LT_MULTI_MODULE
7498	# non-empty at configure time, or by adding -multi_module to the
7499	# link flags.
7500	rm -rf libconftest.dylib*
7501	echo "int foo(void){return 1;}" > conftest.c
7502	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7503-dynamiclib -Wl,-single_module conftest.c" >&5
7504	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7506        _lt_result=$?
7507	# If there is a non-empty error log, and "single_module"
7508	# appears in it, assume the flag caused a linker warning
7509        if test -s conftest.err && $GREP single_module conftest.err; then
7510	  cat conftest.err >&5
7511	# Otherwise, if the output was created with a 0 exit code from
7512	# the compiler, it worked.
7513	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7514	  lt_cv_apple_cc_single_mod=yes
7515	else
7516	  cat conftest.err >&5
7517	fi
7518	rm -rf libconftest.dylib*
7519	rm -f conftest.*
7520      fi
7521fi
7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7523printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7524
7525    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7526printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7527if test ${lt_cv_ld_exported_symbols_list+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  lt_cv_ld_exported_symbols_list=no
7532      save_LDFLAGS=$LDFLAGS
7533      echo "_main" > conftest.sym
7534      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7535      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h.  */
7537
7538int
7539main (void)
7540{
7541
7542  ;
7543  return 0;
7544}
7545_ACEOF
7546if ac_fn_c_try_link "$LINENO"
7547then :
7548  lt_cv_ld_exported_symbols_list=yes
7549else $as_nop
7550  lt_cv_ld_exported_symbols_list=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.beam \
7553    conftest$ac_exeext conftest.$ac_ext
7554	LDFLAGS=$save_LDFLAGS
7555
7556fi
7557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7558printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7559
7560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7561printf %s "checking for -force_load linker flag... " >&6; }
7562if test ${lt_cv_ld_force_load+y}
7563then :
7564  printf %s "(cached) " >&6
7565else $as_nop
7566  lt_cv_ld_force_load=no
7567      cat > conftest.c << _LT_EOF
7568int forced_loaded() { return 2;}
7569_LT_EOF
7570      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7571      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7572      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7573      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7574      echo "$RANLIB libconftest.a" >&5
7575      $RANLIB libconftest.a 2>&5
7576      cat > conftest.c << _LT_EOF
7577int main() { return 0;}
7578_LT_EOF
7579      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7580      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7581      _lt_result=$?
7582      if test -s conftest.err && $GREP force_load conftest.err; then
7583	cat conftest.err >&5
7584      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7585	lt_cv_ld_force_load=yes
7586      else
7587	cat conftest.err >&5
7588      fi
7589        rm -f conftest.err libconftest.a conftest conftest.c
7590        rm -rf conftest.dSYM
7591
7592fi
7593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7594printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7595    case $host_os in
7596    rhapsody* | darwin1.[012])
7597      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7598    darwin1.*)
7599      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7600    darwin*)
7601      case $MACOSX_DEPLOYMENT_TARGET,$host in
7602        10.[012],*|,*powerpc*-darwin[5-8]*)
7603          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7604        *)
7605          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7606      esac
7607    ;;
7608  esac
7609    if test yes = "$lt_cv_apple_cc_single_mod"; then
7610      _lt_dar_single_mod='$single_module'
7611    fi
7612    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7613      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7614    else
7615      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7616    fi
7617    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7618      _lt_dsymutil='~$DSYMUTIL $lib || :'
7619    else
7620      _lt_dsymutil=
7621    fi
7622    ;;
7623  esac
7624
7625# func_munge_path_list VARIABLE PATH
7626# -----------------------------------
7627# VARIABLE is name of variable containing _space_ separated list of
7628# directories to be munged by the contents of PATH, which is string
7629# having a format:
7630# "DIR[:DIR]:"
7631#       string "DIR[ DIR]" will be prepended to VARIABLE
7632# ":DIR[:DIR]"
7633#       string "DIR[ DIR]" will be appended to VARIABLE
7634# "DIRP[:DIRP]::[DIRA:]DIRA"
7635#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7636#       "DIRA[ DIRA]" will be appended to VARIABLE
7637# "DIR[:DIR]"
7638#       VARIABLE will be replaced by "DIR[ DIR]"
7639func_munge_path_list ()
7640{
7641    case x$2 in
7642    x)
7643        ;;
7644    *:)
7645        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7646        ;;
7647    x:*)
7648        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7649        ;;
7650    *::*)
7651        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7652        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7653        ;;
7654    *)
7655        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7656        ;;
7657    esac
7658}
7659
7660ac_header= ac_cache=
7661for ac_item in $ac_header_c_list
7662do
7663  if test $ac_cache; then
7664    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7665    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7666      printf "%s\n" "#define $ac_item 1" >> confdefs.h
7667    fi
7668    ac_header= ac_cache=
7669  elif test $ac_header; then
7670    ac_cache=$ac_item
7671  else
7672    ac_header=$ac_item
7673  fi
7674done
7675
7676
7677
7678
7679
7680
7681
7682
7683if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7684then :
7685
7686printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7687
7688fi
7689ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7690"
7691if test "x$ac_cv_header_dlfcn_h" = xyes
7692then :
7693  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7694
7695fi
7696
7697
7698
7699
7700
7701# Set options
7702
7703
7704
7705        enable_dlopen=no
7706
7707
7708  enable_win32_dll=no
7709
7710
7711            # Check whether --enable-shared was given.
7712if test ${enable_shared+y}
7713then :
7714  enableval=$enable_shared; p=${PACKAGE-default}
7715    case $enableval in
7716    yes) enable_shared=yes ;;
7717    no) enable_shared=no ;;
7718    *)
7719      enable_shared=no
7720      # Look at the argument we got.  We use all the common list separators.
7721      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7722      for pkg in $enableval; do
7723	IFS=$lt_save_ifs
7724	if test "X$pkg" = "X$p"; then
7725	  enable_shared=yes
7726	fi
7727      done
7728      IFS=$lt_save_ifs
7729      ;;
7730    esac
7731else $as_nop
7732  enable_shared=yes
7733fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743  # Check whether --enable-static was given.
7744if test ${enable_static+y}
7745then :
7746  enableval=$enable_static; p=${PACKAGE-default}
7747    case $enableval in
7748    yes) enable_static=yes ;;
7749    no) enable_static=no ;;
7750    *)
7751     enable_static=no
7752      # Look at the argument we got.  We use all the common list separators.
7753      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7754      for pkg in $enableval; do
7755	IFS=$lt_save_ifs
7756	if test "X$pkg" = "X$p"; then
7757	  enable_static=yes
7758	fi
7759      done
7760      IFS=$lt_save_ifs
7761      ;;
7762    esac
7763else $as_nop
7764  enable_static=yes
7765fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776# Check whether --with-pic was given.
7777if test ${with_pic+y}
7778then :
7779  withval=$with_pic; lt_p=${PACKAGE-default}
7780    case $withval in
7781    yes|no) pic_mode=$withval ;;
7782    *)
7783      pic_mode=default
7784      # Look at the argument we got.  We use all the common list separators.
7785      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7786      for lt_pkg in $withval; do
7787	IFS=$lt_save_ifs
7788	if test "X$lt_pkg" = "X$lt_p"; then
7789	  pic_mode=yes
7790	fi
7791      done
7792      IFS=$lt_save_ifs
7793      ;;
7794    esac
7795else $as_nop
7796  pic_mode=default
7797fi
7798
7799
7800
7801
7802
7803
7804
7805
7806  # Check whether --enable-fast-install was given.
7807if test ${enable_fast_install+y}
7808then :
7809  enableval=$enable_fast_install; p=${PACKAGE-default}
7810    case $enableval in
7811    yes) enable_fast_install=yes ;;
7812    no) enable_fast_install=no ;;
7813    *)
7814      enable_fast_install=no
7815      # Look at the argument we got.  We use all the common list separators.
7816      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7817      for pkg in $enableval; do
7818	IFS=$lt_save_ifs
7819	if test "X$pkg" = "X$p"; then
7820	  enable_fast_install=yes
7821	fi
7822      done
7823      IFS=$lt_save_ifs
7824      ;;
7825    esac
7826else $as_nop
7827  enable_fast_install=yes
7828fi
7829
7830
7831
7832
7833
7834
7835
7836
7837  shared_archive_member_spec=
7838case $host,$enable_shared in
7839power*-*-aix[5-9]*,yes)
7840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7841printf %s "checking which variant of shared library versioning to provide... " >&6; }
7842
7843# Check whether --with-aix-soname was given.
7844if test ${with_aix_soname+y}
7845then :
7846  withval=$with_aix_soname; case $withval in
7847    aix|svr4|both)
7848      ;;
7849    *)
7850      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7851      ;;
7852    esac
7853    lt_cv_with_aix_soname=$with_aix_soname
7854else $as_nop
7855  if test ${lt_cv_with_aix_soname+y}
7856then :
7857  printf %s "(cached) " >&6
7858else $as_nop
7859  lt_cv_with_aix_soname=aix
7860fi
7861
7862    with_aix_soname=$lt_cv_with_aix_soname
7863fi
7864
7865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7866printf "%s\n" "$with_aix_soname" >&6; }
7867  if test aix != "$with_aix_soname"; then
7868    # For the AIX way of multilib, we name the shared archive member
7869    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7870    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7871    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7872    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7873    if test 64 = "${OBJECT_MODE-32}"; then
7874      shared_archive_member_spec=shr_64
7875    else
7876      shared_archive_member_spec=shr
7877    fi
7878  fi
7879  ;;
7880*)
7881  with_aix_soname=aix
7882  ;;
7883esac
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894# This can be used to rebuild libtool when needed
7895LIBTOOL_DEPS=$ltmain
7896
7897# Always use our own libtool.
7898LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929test -z "$LN_S" && LN_S="ln -s"
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944if test -n "${ZSH_VERSION+set}"; then
7945   setopt NO_GLOB_SUBST
7946fi
7947
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7949printf %s "checking for objdir... " >&6; }
7950if test ${lt_cv_objdir+y}
7951then :
7952  printf %s "(cached) " >&6
7953else $as_nop
7954  rm -f .libs 2>/dev/null
7955mkdir .libs 2>/dev/null
7956if test -d .libs; then
7957  lt_cv_objdir=.libs
7958else
7959  # MS-DOS does not allow filenames that begin with a dot.
7960  lt_cv_objdir=_libs
7961fi
7962rmdir .libs 2>/dev/null
7963fi
7964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7965printf "%s\n" "$lt_cv_objdir" >&6; }
7966objdir=$lt_cv_objdir
7967
7968
7969
7970
7971
7972printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7973
7974
7975
7976
7977case $host_os in
7978aix3*)
7979  # AIX sometimes has problems with the GCC collect2 program.  For some
7980  # reason, if we set the COLLECT_NAMES environment variable, the problems
7981  # vanish in a puff of smoke.
7982  if test set != "${COLLECT_NAMES+set}"; then
7983    COLLECT_NAMES=
7984    export COLLECT_NAMES
7985  fi
7986  ;;
7987esac
7988
7989# Global variables:
7990ofile=libtool
7991can_build_shared=yes
7992
7993# All known linkers require a '.a' archive for static linking (except MSVC and
7994# ICC, which need '.lib').
7995libext=a
7996
7997with_gnu_ld=$lt_cv_prog_gnu_ld
7998
7999old_CC=$CC
8000old_CFLAGS=$CFLAGS
8001
8002# Set sane defaults for various variables
8003test -z "$CC" && CC=cc
8004test -z "$LTCC" && LTCC=$CC
8005test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8006test -z "$LD" && LD=ld
8007test -z "$ac_objext" && ac_objext=o
8008
8009func_cc_basename $compiler
8010cc_basename=$func_cc_basename_result
8011
8012
8013# Only perform the check for file, if the check method requires it
8014test -z "$MAGIC_CMD" && MAGIC_CMD=file
8015case $deplibs_check_method in
8016file_magic*)
8017  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8018    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8019printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8020if test ${lt_cv_path_MAGIC_CMD+y}
8021then :
8022  printf %s "(cached) " >&6
8023else $as_nop
8024  case $MAGIC_CMD in
8025[\\/*] |  ?:[\\/]*)
8026  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8027  ;;
8028*)
8029  lt_save_MAGIC_CMD=$MAGIC_CMD
8030  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8031  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032  for ac_dir in $ac_dummy; do
8033    IFS=$lt_save_ifs
8034    test -z "$ac_dir" && ac_dir=.
8035    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8036      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8037      if test -n "$file_magic_test_file"; then
8038	case $deplibs_check_method in
8039	"file_magic "*)
8040	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8042	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043	    $EGREP "$file_magic_regex" > /dev/null; then
8044	    :
8045	  else
8046	    cat <<_LT_EOF 1>&2
8047
8048*** Warning: the command libtool uses to detect shared libraries,
8049*** $file_magic_cmd, produces output that libtool cannot recognize.
8050*** The result is that libtool may fail to recognize shared libraries
8051*** as such.  This will affect the creation of libtool libraries that
8052*** depend on shared libraries, but programs linked with such libtool
8053*** libraries will work regardless of this problem.  Nevertheless, you
8054*** may want to report the problem to your system manager and/or to
8055*** [email protected]
8056
8057_LT_EOF
8058	  fi ;;
8059	esac
8060      fi
8061      break
8062    fi
8063  done
8064  IFS=$lt_save_ifs
8065  MAGIC_CMD=$lt_save_MAGIC_CMD
8066  ;;
8067esac
8068fi
8069
8070MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8071if test -n "$MAGIC_CMD"; then
8072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073printf "%s\n" "$MAGIC_CMD" >&6; }
8074else
8075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076printf "%s\n" "no" >&6; }
8077fi
8078
8079
8080
8081
8082
8083if test -z "$lt_cv_path_MAGIC_CMD"; then
8084  if test -n "$ac_tool_prefix"; then
8085    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8086printf %s "checking for file... " >&6; }
8087if test ${lt_cv_path_MAGIC_CMD+y}
8088then :
8089  printf %s "(cached) " >&6
8090else $as_nop
8091  case $MAGIC_CMD in
8092[\\/*] |  ?:[\\/]*)
8093  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8094  ;;
8095*)
8096  lt_save_MAGIC_CMD=$MAGIC_CMD
8097  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8098  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8099  for ac_dir in $ac_dummy; do
8100    IFS=$lt_save_ifs
8101    test -z "$ac_dir" && ac_dir=.
8102    if test -f "$ac_dir/file"; then
8103      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8104      if test -n "$file_magic_test_file"; then
8105	case $deplibs_check_method in
8106	"file_magic "*)
8107	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8108	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8109	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8110	    $EGREP "$file_magic_regex" > /dev/null; then
8111	    :
8112	  else
8113	    cat <<_LT_EOF 1>&2
8114
8115*** Warning: the command libtool uses to detect shared libraries,
8116*** $file_magic_cmd, produces output that libtool cannot recognize.
8117*** The result is that libtool may fail to recognize shared libraries
8118*** as such.  This will affect the creation of libtool libraries that
8119*** depend on shared libraries, but programs linked with such libtool
8120*** libraries will work regardless of this problem.  Nevertheless, you
8121*** may want to report the problem to your system manager and/or to
8122*** [email protected]
8123
8124_LT_EOF
8125	  fi ;;
8126	esac
8127      fi
8128      break
8129    fi
8130  done
8131  IFS=$lt_save_ifs
8132  MAGIC_CMD=$lt_save_MAGIC_CMD
8133  ;;
8134esac
8135fi
8136
8137MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8138if test -n "$MAGIC_CMD"; then
8139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8140printf "%s\n" "$MAGIC_CMD" >&6; }
8141else
8142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143printf "%s\n" "no" >&6; }
8144fi
8145
8146
8147  else
8148    MAGIC_CMD=:
8149  fi
8150fi
8151
8152  fi
8153  ;;
8154esac
8155
8156# Use C for the default configuration in the libtool script
8157
8158lt_save_CC=$CC
8159ac_ext=c
8160ac_cpp='$CPP $CPPFLAGS'
8161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
8165
8166# Source file extension for C test sources.
8167ac_ext=c
8168
8169# Object file extension for compiled C test sources.
8170objext=o
8171objext=$objext
8172
8173# Code to be used in simple compile tests
8174lt_simple_compile_test_code="int some_variable = 0;"
8175
8176# Code to be used in simple link tests
8177lt_simple_link_test_code='int main(){return(0);}'
8178
8179
8180
8181
8182
8183
8184
8185# If no C compiler was specified, use CC.
8186LTCC=${LTCC-"$CC"}
8187
8188# If no C compiler flags were specified, use CFLAGS.
8189LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8190
8191# Allow CC to be a program name with arguments.
8192compiler=$CC
8193
8194# Save the default compiler, since it gets overwritten when the other
8195# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8196compiler_DEFAULT=$CC
8197
8198# save warnings/boilerplate of simple test code
8199ac_outfile=conftest.$ac_objext
8200echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8201eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202_lt_compiler_boilerplate=`cat conftest.err`
8203$RM conftest*
8204
8205ac_outfile=conftest.$ac_objext
8206echo "$lt_simple_link_test_code" >conftest.$ac_ext
8207eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8208_lt_linker_boilerplate=`cat conftest.err`
8209$RM -r conftest*
8210
8211
8212## CAVEAT EMPTOR:
8213## There is no encapsulation within the following macros, do not change
8214## the running order or otherwise move them around unless you know exactly
8215## what you are doing...
8216if test -n "$compiler"; then
8217
8218lt_prog_compiler_no_builtin_flag=
8219
8220if test yes = "$GCC"; then
8221  case $cc_basename in
8222  nvcc*)
8223    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8224  *)
8225    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8226  esac
8227
8228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8229printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8230if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8231then :
8232  printf %s "(cached) " >&6
8233else $as_nop
8234  lt_cv_prog_compiler_rtti_exceptions=no
8235   ac_outfile=conftest.$ac_objext
8236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8237   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8238   # Insert the option either (1) after the last *FLAGS variable, or
8239   # (2) before a word containing "conftest.", or (3) at the end.
8240   # Note that $ac_compile itself does not contain backslashes and begins
8241   # with a dollar sign (not a hyphen), so the echo should work correctly.
8242   # The option is referenced via a variable to avoid confusing sed.
8243   lt_compile=`echo "$ac_compile" | $SED \
8244   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8246   -e 's:$: $lt_compiler_flag:'`
8247   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8248   (eval "$lt_compile" 2>conftest.err)
8249   ac_status=$?
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   if (exit $ac_status) && test -s "$ac_outfile"; then
8253     # The compiler can only warn and ignore the option if not recognized
8254     # So say no if there are warnings other than the usual output.
8255     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8256     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8258       lt_cv_prog_compiler_rtti_exceptions=yes
8259     fi
8260   fi
8261   $RM conftest*
8262
8263fi
8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8265printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8266
8267if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8268    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8269else
8270    :
8271fi
8272
8273fi
8274
8275
8276
8277
8278
8279
8280  lt_prog_compiler_wl=
8281lt_prog_compiler_pic=
8282lt_prog_compiler_static=
8283
8284
8285  if test yes = "$GCC"; then
8286    lt_prog_compiler_wl='-Wl,'
8287    lt_prog_compiler_static='-static'
8288
8289    case $host_os in
8290      aix*)
8291      # All AIX code is PIC.
8292      if test ia64 = "$host_cpu"; then
8293	# AIX 5 now supports IA64 processor
8294	lt_prog_compiler_static='-Bstatic'
8295      fi
8296      lt_prog_compiler_pic='-fPIC'
8297      ;;
8298
8299    amigaos*)
8300      case $host_cpu in
8301      powerpc)
8302            # see comment about AmigaOS4 .so support
8303            lt_prog_compiler_pic='-fPIC'
8304        ;;
8305      m68k)
8306            # FIXME: we need at least 68020 code to build shared libraries, but
8307            # adding the '-m68020' flag to GCC prevents building anything better,
8308            # like '-m68040'.
8309            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8310        ;;
8311      esac
8312      ;;
8313
8314    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8315      # PIC is the default for these OSes.
8316      ;;
8317
8318    mingw* | cygwin* | pw32* | os2* | cegcc*)
8319      # This hack is so that the source file can tell whether it is being
8320      # built for inclusion in a dll (and should export symbols for example).
8321      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8322      # (--disable-auto-import) libraries
8323      lt_prog_compiler_pic='-DDLL_EXPORT'
8324      case $host_os in
8325      os2*)
8326	lt_prog_compiler_static='$wl-static'
8327	;;
8328      esac
8329      ;;
8330
8331    darwin* | rhapsody*)
8332      # PIC is the default on this platform
8333      # Common symbols not allowed in MH_DYLIB files
8334      lt_prog_compiler_pic='-fno-common'
8335      ;;
8336
8337    haiku*)
8338      # PIC is the default for Haiku.
8339      # The "-static" flag exists, but is broken.
8340      lt_prog_compiler_static=
8341      ;;
8342
8343    hpux*)
8344      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8345      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8346      # sets the default TLS model and affects inlining.
8347      case $host_cpu in
8348      hppa*64*)
8349	# +Z the default
8350	;;
8351      *)
8352	lt_prog_compiler_pic='-fPIC'
8353	;;
8354      esac
8355      ;;
8356
8357    interix[3-9]*)
8358      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8359      # Instead, we relocate shared libraries at runtime.
8360      ;;
8361
8362    msdosdjgpp*)
8363      # Just because we use GCC doesn't mean we suddenly get shared libraries
8364      # on systems that don't support them.
8365      lt_prog_compiler_can_build_shared=no
8366      enable_shared=no
8367      ;;
8368
8369    *nto* | *qnx*)
8370      # QNX uses GNU C++, but need to define -shared option too, otherwise
8371      # it will coredump.
8372      lt_prog_compiler_pic='-fPIC -shared'
8373      ;;
8374
8375    sysv4*MP*)
8376      if test -d /usr/nec; then
8377	lt_prog_compiler_pic=-Kconform_pic
8378      fi
8379      ;;
8380
8381    *)
8382      lt_prog_compiler_pic='-fPIC'
8383      ;;
8384    esac
8385
8386    case $cc_basename in
8387    nvcc*) # Cuda Compiler Driver 2.2
8388      lt_prog_compiler_wl='-Xlinker '
8389      if test -n "$lt_prog_compiler_pic"; then
8390        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8391      fi
8392      ;;
8393    esac
8394  else
8395    # PORTME Check for flag to pass linker flags through the system compiler.
8396    case $host_os in
8397    aix*)
8398      lt_prog_compiler_wl='-Wl,'
8399      if test ia64 = "$host_cpu"; then
8400	# AIX 5 now supports IA64 processor
8401	lt_prog_compiler_static='-Bstatic'
8402      else
8403	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8404      fi
8405      ;;
8406
8407    darwin* | rhapsody*)
8408      # PIC is the default on this platform
8409      # Common symbols not allowed in MH_DYLIB files
8410      lt_prog_compiler_pic='-fno-common'
8411      case $cc_basename in
8412      nagfor*)
8413        # NAG Fortran compiler
8414        lt_prog_compiler_wl='-Wl,-Wl,,'
8415        lt_prog_compiler_pic='-PIC'
8416        lt_prog_compiler_static='-Bstatic'
8417        ;;
8418      esac
8419      ;;
8420
8421    mingw* | cygwin* | pw32* | os2* | cegcc*)
8422      # This hack is so that the source file can tell whether it is being
8423      # built for inclusion in a dll (and should export symbols for example).
8424      lt_prog_compiler_pic='-DDLL_EXPORT'
8425      case $host_os in
8426      os2*)
8427	lt_prog_compiler_static='$wl-static'
8428	;;
8429      esac
8430      ;;
8431
8432    hpux9* | hpux10* | hpux11*)
8433      lt_prog_compiler_wl='-Wl,'
8434      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8435      # not for PA HP-UX.
8436      case $host_cpu in
8437      hppa*64*|ia64*)
8438	# +Z the default
8439	;;
8440      *)
8441	lt_prog_compiler_pic='+Z'
8442	;;
8443      esac
8444      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8445      lt_prog_compiler_static='$wl-a ${wl}archive'
8446      ;;
8447
8448    irix5* | irix6* | nonstopux*)
8449      lt_prog_compiler_wl='-Wl,'
8450      # PIC (with -KPIC) is the default.
8451      lt_prog_compiler_static='-non_shared'
8452      ;;
8453
8454    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8455      case $cc_basename in
8456      # old Intel for x86_64, which still supported -KPIC.
8457      ecc*)
8458	lt_prog_compiler_wl='-Wl,'
8459	lt_prog_compiler_pic='-KPIC'
8460	lt_prog_compiler_static='-static'
8461        ;;
8462      # flang / f18. f95 an alias for gfortran or flang on Debian
8463      flang* | f18* | f95*)
8464	lt_prog_compiler_wl='-Wl,'
8465	lt_prog_compiler_pic='-fPIC'
8466	lt_prog_compiler_static='-static'
8467        ;;
8468      # icc used to be incompatible with GCC.
8469      # ICC 10 doesn't accept -KPIC any more.
8470      icc* | ifort*)
8471	lt_prog_compiler_wl='-Wl,'
8472	lt_prog_compiler_pic='-fPIC'
8473	lt_prog_compiler_static='-static'
8474        ;;
8475      # Lahey Fortran 8.1.
8476      lf95*)
8477	lt_prog_compiler_wl='-Wl,'
8478	lt_prog_compiler_pic='--shared'
8479	lt_prog_compiler_static='--static'
8480	;;
8481      nagfor*)
8482	# NAG Fortran compiler
8483	lt_prog_compiler_wl='-Wl,-Wl,,'
8484	lt_prog_compiler_pic='-PIC'
8485	lt_prog_compiler_static='-Bstatic'
8486	;;
8487      tcc*)
8488	# Fabrice Bellard et al's Tiny C Compiler
8489	lt_prog_compiler_wl='-Wl,'
8490	lt_prog_compiler_pic='-fPIC'
8491	lt_prog_compiler_static='-static'
8492	;;
8493      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8494        # Portland Group compilers (*not* the Pentium gcc compiler,
8495	# which looks to be a dead project)
8496	lt_prog_compiler_wl='-Wl,'
8497	lt_prog_compiler_pic='-fpic'
8498	lt_prog_compiler_static='-Bstatic'
8499        ;;
8500      ccc*)
8501        lt_prog_compiler_wl='-Wl,'
8502        # All Alpha code is PIC.
8503        lt_prog_compiler_static='-non_shared'
8504        ;;
8505      xl* | bgxl* | bgf* | mpixl*)
8506	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8507	lt_prog_compiler_wl='-Wl,'
8508	lt_prog_compiler_pic='-qpic'
8509	lt_prog_compiler_static='-qstaticlink'
8510	;;
8511      *)
8512	case `$CC -V 2>&1 | $SED 5q` in
8513	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8514	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8515	  lt_prog_compiler_pic='-KPIC'
8516	  lt_prog_compiler_static='-Bstatic'
8517	  lt_prog_compiler_wl=''
8518	  ;;
8519	*Sun\ F* | *Sun*Fortran*)
8520	  lt_prog_compiler_pic='-KPIC'
8521	  lt_prog_compiler_static='-Bstatic'
8522	  lt_prog_compiler_wl='-Qoption ld '
8523	  ;;
8524	*Sun\ C*)
8525	  # Sun C 5.9
8526	  lt_prog_compiler_pic='-KPIC'
8527	  lt_prog_compiler_static='-Bstatic'
8528	  lt_prog_compiler_wl='-Wl,'
8529	  ;;
8530        *Intel*\ [CF]*Compiler*)
8531	  lt_prog_compiler_wl='-Wl,'
8532	  lt_prog_compiler_pic='-fPIC'
8533	  lt_prog_compiler_static='-static'
8534	  ;;
8535	*Portland\ Group*)
8536	  lt_prog_compiler_wl='-Wl,'
8537	  lt_prog_compiler_pic='-fpic'
8538	  lt_prog_compiler_static='-Bstatic'
8539	  ;;
8540	esac
8541	;;
8542      esac
8543      ;;
8544
8545    newsos6)
8546      lt_prog_compiler_pic='-KPIC'
8547      lt_prog_compiler_static='-Bstatic'
8548      ;;
8549
8550    *nto* | *qnx*)
8551      # QNX uses GNU C++, but need to define -shared option too, otherwise
8552      # it will coredump.
8553      lt_prog_compiler_pic='-fPIC -shared'
8554      ;;
8555
8556    osf3* | osf4* | osf5*)
8557      lt_prog_compiler_wl='-Wl,'
8558      # All OSF/1 code is PIC.
8559      lt_prog_compiler_static='-non_shared'
8560      ;;
8561
8562    rdos*)
8563      lt_prog_compiler_static='-non_shared'
8564      ;;
8565
8566    solaris*)
8567      lt_prog_compiler_pic='-KPIC'
8568      lt_prog_compiler_static='-Bstatic'
8569      case $cc_basename in
8570      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8571	lt_prog_compiler_wl='-Qoption ld ';;
8572      *)
8573	lt_prog_compiler_wl='-Wl,';;
8574      esac
8575      ;;
8576
8577    sunos4*)
8578      lt_prog_compiler_wl='-Qoption ld '
8579      lt_prog_compiler_pic='-PIC'
8580      lt_prog_compiler_static='-Bstatic'
8581      ;;
8582
8583    sysv4 | sysv4.2uw2* | sysv4.3*)
8584      lt_prog_compiler_wl='-Wl,'
8585      lt_prog_compiler_pic='-KPIC'
8586      lt_prog_compiler_static='-Bstatic'
8587      ;;
8588
8589    sysv4*MP*)
8590      if test -d /usr/nec; then
8591	lt_prog_compiler_pic='-Kconform_pic'
8592	lt_prog_compiler_static='-Bstatic'
8593      fi
8594      ;;
8595
8596    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8597      lt_prog_compiler_wl='-Wl,'
8598      lt_prog_compiler_pic='-KPIC'
8599      lt_prog_compiler_static='-Bstatic'
8600      ;;
8601
8602    unicos*)
8603      lt_prog_compiler_wl='-Wl,'
8604      lt_prog_compiler_can_build_shared=no
8605      ;;
8606
8607    uts4*)
8608      lt_prog_compiler_pic='-pic'
8609      lt_prog_compiler_static='-Bstatic'
8610      ;;
8611
8612    *)
8613      lt_prog_compiler_can_build_shared=no
8614      ;;
8615    esac
8616  fi
8617
8618case $host_os in
8619  # For platforms that do not support PIC, -DPIC is meaningless:
8620  *djgpp*)
8621    lt_prog_compiler_pic=
8622    ;;
8623  *)
8624    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8625    ;;
8626esac
8627
8628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8629printf %s "checking for $compiler option to produce PIC... " >&6; }
8630if test ${lt_cv_prog_compiler_pic+y}
8631then :
8632  printf %s "(cached) " >&6
8633else $as_nop
8634  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8635fi
8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8637printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8638lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8639
8640#
8641# Check to make sure the PIC flag actually works.
8642#
8643if test -n "$lt_prog_compiler_pic"; then
8644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8645printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8646if test ${lt_cv_prog_compiler_pic_works+y}
8647then :
8648  printf %s "(cached) " >&6
8649else $as_nop
8650  lt_cv_prog_compiler_pic_works=no
8651   ac_outfile=conftest.$ac_objext
8652   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8654   # Insert the option either (1) after the last *FLAGS variable, or
8655   # (2) before a word containing "conftest.", or (3) at the end.
8656   # Note that $ac_compile itself does not contain backslashes and begins
8657   # with a dollar sign (not a hyphen), so the echo should work correctly.
8658   # The option is referenced via a variable to avoid confusing sed.
8659   lt_compile=`echo "$ac_compile" | $SED \
8660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662   -e 's:$: $lt_compiler_flag:'`
8663   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664   (eval "$lt_compile" 2>conftest.err)
8665   ac_status=$?
8666   cat conftest.err >&5
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   if (exit $ac_status) && test -s "$ac_outfile"; then
8669     # The compiler can only warn and ignore the option if not recognized
8670     # So say no if there are warnings other than the usual output.
8671     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8672     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8673     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8674       lt_cv_prog_compiler_pic_works=yes
8675     fi
8676   fi
8677   $RM conftest*
8678
8679fi
8680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8681printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8682
8683if test yes = "$lt_cv_prog_compiler_pic_works"; then
8684    case $lt_prog_compiler_pic in
8685     "" | " "*) ;;
8686     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8687     esac
8688else
8689    lt_prog_compiler_pic=
8690     lt_prog_compiler_can_build_shared=no
8691fi
8692
8693fi
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705#
8706# Check to make sure the static flag actually works.
8707#
8708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8710printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8711if test ${lt_cv_prog_compiler_static_works+y}
8712then :
8713  printf %s "(cached) " >&6
8714else $as_nop
8715  lt_cv_prog_compiler_static_works=no
8716   save_LDFLAGS=$LDFLAGS
8717   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8718   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8719   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8720     # The linker can only warn and ignore the option if not recognized
8721     # So say no if there are warnings
8722     if test -s conftest.err; then
8723       # Append any errors to the config.log.
8724       cat conftest.err 1>&5
8725       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8726       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8727       if diff conftest.exp conftest.er2 >/dev/null; then
8728         lt_cv_prog_compiler_static_works=yes
8729       fi
8730     else
8731       lt_cv_prog_compiler_static_works=yes
8732     fi
8733   fi
8734   $RM -r conftest*
8735   LDFLAGS=$save_LDFLAGS
8736
8737fi
8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8739printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8740
8741if test yes = "$lt_cv_prog_compiler_static_works"; then
8742    :
8743else
8744    lt_prog_compiler_static=
8745fi
8746
8747
8748
8749
8750
8751
8752
8753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8754printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8755if test ${lt_cv_prog_compiler_c_o+y}
8756then :
8757  printf %s "(cached) " >&6
8758else $as_nop
8759  lt_cv_prog_compiler_c_o=no
8760   $RM -r conftest 2>/dev/null
8761   mkdir conftest
8762   cd conftest
8763   mkdir out
8764   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8765
8766   lt_compiler_flag="-o out/conftest2.$ac_objext"
8767   # Insert the option either (1) after the last *FLAGS variable, or
8768   # (2) before a word containing "conftest.", or (3) at the end.
8769   # Note that $ac_compile itself does not contain backslashes and begins
8770   # with a dollar sign (not a hyphen), so the echo should work correctly.
8771   lt_compile=`echo "$ac_compile" | $SED \
8772   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8773   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774   -e 's:$: $lt_compiler_flag:'`
8775   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8776   (eval "$lt_compile" 2>out/conftest.err)
8777   ac_status=$?
8778   cat out/conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8781   then
8782     # The compiler can only warn and ignore the option if not recognized
8783     # So say no if there are warnings
8784     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8785     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8786     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8787       lt_cv_prog_compiler_c_o=yes
8788     fi
8789   fi
8790   chmod u+w . 2>&5
8791   $RM conftest*
8792   # SGI C++ compiler will create directory out/ii_files/ for
8793   # template instantiation
8794   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8795   $RM out/* && rmdir out
8796   cd ..
8797   $RM -r conftest
8798   $RM conftest*
8799
8800fi
8801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8802printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8803
8804
8805
8806
8807
8808
8809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8810printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8811if test ${lt_cv_prog_compiler_c_o+y}
8812then :
8813  printf %s "(cached) " >&6
8814else $as_nop
8815  lt_cv_prog_compiler_c_o=no
8816   $RM -r conftest 2>/dev/null
8817   mkdir conftest
8818   cd conftest
8819   mkdir out
8820   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822   lt_compiler_flag="-o out/conftest2.$ac_objext"
8823   # Insert the option either (1) after the last *FLAGS variable, or
8824   # (2) before a word containing "conftest.", or (3) at the end.
8825   # Note that $ac_compile itself does not contain backslashes and begins
8826   # with a dollar sign (not a hyphen), so the echo should work correctly.
8827   lt_compile=`echo "$ac_compile" | $SED \
8828   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830   -e 's:$: $lt_compiler_flag:'`
8831   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832   (eval "$lt_compile" 2>out/conftest.err)
8833   ac_status=$?
8834   cat out/conftest.err >&5
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8837   then
8838     # The compiler can only warn and ignore the option if not recognized
8839     # So say no if there are warnings
8840     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8841     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8842     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8843       lt_cv_prog_compiler_c_o=yes
8844     fi
8845   fi
8846   chmod u+w . 2>&5
8847   $RM conftest*
8848   # SGI C++ compiler will create directory out/ii_files/ for
8849   # template instantiation
8850   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8851   $RM out/* && rmdir out
8852   cd ..
8853   $RM -r conftest
8854   $RM conftest*
8855
8856fi
8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8858printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8859
8860
8861
8862
8863hard_links=nottested
8864if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8865  # do not overwrite the value of need_locks provided by the user
8866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8867printf %s "checking if we can lock with hard links... " >&6; }
8868  hard_links=yes
8869  $RM conftest*
8870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871  touch conftest.a
8872  ln conftest.a conftest.b 2>&5 || hard_links=no
8873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8875printf "%s\n" "$hard_links" >&6; }
8876  if test no = "$hard_links"; then
8877    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8878printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8879    need_locks=warn
8880  fi
8881else
8882  need_locks=no
8883fi
8884
8885
8886
8887
8888
8889
8890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8891printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8892
8893  runpath_var=
8894  allow_undefined_flag=
8895  always_export_symbols=no
8896  archive_cmds=
8897  archive_expsym_cmds=
8898  compiler_needs_object=no
8899  enable_shared_with_static_runtimes=no
8900  export_dynamic_flag_spec=
8901  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8902  hardcode_automatic=no
8903  hardcode_direct=no
8904  hardcode_direct_absolute=no
8905  hardcode_libdir_flag_spec=
8906  hardcode_libdir_separator=
8907  hardcode_minus_L=no
8908  hardcode_shlibpath_var=unsupported
8909  inherit_rpath=no
8910  link_all_deplibs=unknown
8911  module_cmds=
8912  module_expsym_cmds=
8913  old_archive_from_new_cmds=
8914  old_archive_from_expsyms_cmds=
8915  thread_safe_flag_spec=
8916  whole_archive_flag_spec=
8917  # include_expsyms should be a list of space-separated symbols to be *always*
8918  # included in the symbol list
8919  include_expsyms=
8920  # exclude_expsyms can be an extended regexp of symbols to exclude
8921  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8922  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8923  # as well as any symbol that contains 'd'.
8924  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8925  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8926  # platforms (ab)use it in PIC code, but their linkers get confused if
8927  # the symbol is explicitly referenced.  Since portable code cannot
8928  # rely on this symbol name, it's probably fine to never include it in
8929  # preloaded symbol tables.
8930  # Exclude shared library initialization/finalization symbols.
8931  extract_expsyms_cmds=
8932
8933  case $host_os in
8934  cygwin* | mingw* | pw32* | cegcc*)
8935    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
8936    # When not using gcc, we currently assume that we are using
8937    # Microsoft Visual C++ or Intel C++ Compiler.
8938    if test yes != "$GCC"; then
8939      with_gnu_ld=no
8940    fi
8941    ;;
8942  interix*)
8943    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
8944    with_gnu_ld=yes
8945    ;;
8946  openbsd* | bitrig*)
8947    with_gnu_ld=no
8948    ;;
8949  linux* | k*bsd*-gnu | gnu*)
8950    link_all_deplibs=no
8951    ;;
8952  esac
8953
8954  ld_shlibs=yes
8955
8956  # On some targets, GNU ld is compatible enough with the native linker
8957  # that we're better off using the native interface for both.
8958  lt_use_gnu_ld_interface=no
8959  if test yes = "$with_gnu_ld"; then
8960    case $host_os in
8961      aix*)
8962	# The AIX port of GNU ld has always aspired to compatibility
8963	# with the native linker.  However, as the warning in the GNU ld
8964	# block says, versions before 2.19.5* couldn't really create working
8965	# shared libraries, regardless of the interface used.
8966	case `$LD -v 2>&1` in
8967	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8968	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8969	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8970	  *)
8971	    lt_use_gnu_ld_interface=yes
8972	    ;;
8973	esac
8974	;;
8975      *)
8976	lt_use_gnu_ld_interface=yes
8977	;;
8978    esac
8979  fi
8980
8981  if test yes = "$lt_use_gnu_ld_interface"; then
8982    # If archive_cmds runs LD, not CC, wlarc should be empty
8983    wlarc='$wl'
8984
8985    # Set some defaults for GNU ld with shared library support. These
8986    # are reset later if shared libraries are not supported. Putting them
8987    # here allows them to be overridden if necessary.
8988    runpath_var=LD_RUN_PATH
8989    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8990    export_dynamic_flag_spec='$wl--export-dynamic'
8991    # ancient GNU ld didn't support --whole-archive et. al.
8992    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8993      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8994    else
8995      whole_archive_flag_spec=
8996    fi
8997    supports_anon_versioning=no
8998    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
8999      *GNU\ gold*) supports_anon_versioning=yes ;;
9000      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9001      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9002      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9003      *\ 2.11.*) ;; # other 2.11 versions
9004      *) supports_anon_versioning=yes ;;
9005    esac
9006
9007    # See if GNU ld supports shared libraries.
9008    case $host_os in
9009    aix[3-9]*)
9010      # On AIX/PPC, the GNU linker is very broken
9011      if test ia64 != "$host_cpu"; then
9012	ld_shlibs=no
9013	cat <<_LT_EOF 1>&2
9014
9015*** Warning: the GNU linker, at least up to release 2.19, is reported
9016*** to be unable to reliably create shared libraries on AIX.
9017*** Therefore, libtool is disabling shared libraries support.  If you
9018*** really care for shared libraries, you may want to install binutils
9019*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9020*** You will then need to restart the configuration process.
9021
9022_LT_EOF
9023      fi
9024      ;;
9025
9026    amigaos*)
9027      case $host_cpu in
9028      powerpc)
9029            # see comment about AmigaOS4 .so support
9030            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9031            archive_expsym_cmds=''
9032        ;;
9033      m68k)
9034            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)'
9035            hardcode_libdir_flag_spec='-L$libdir'
9036            hardcode_minus_L=yes
9037        ;;
9038      esac
9039      ;;
9040
9041    beos*)
9042      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9043	allow_undefined_flag=unsupported
9044	# Joseph Beckenbach <[email protected]> says some releases of gcc
9045	# support --undefined.  This deserves some investigation.  FIXME
9046	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9047      else
9048	ld_shlibs=no
9049      fi
9050      ;;
9051
9052    cygwin* | mingw* | pw32* | cegcc*)
9053      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9054      # as there is no search path for DLLs.
9055      hardcode_libdir_flag_spec='-L$libdir'
9056      export_dynamic_flag_spec='$wl--export-all-symbols'
9057      allow_undefined_flag=unsupported
9058      always_export_symbols=no
9059      enable_shared_with_static_runtimes=yes
9060      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'
9061      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9062
9063      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9064        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9065	# If the export-symbols file already is a .def file, use it as
9066	# is; otherwise, prepend EXPORTS...
9067	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9068          cp $export_symbols $output_objdir/$soname.def;
9069        else
9070          echo EXPORTS > $output_objdir/$soname.def;
9071          cat $export_symbols >> $output_objdir/$soname.def;
9072        fi~
9073        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9074      else
9075	ld_shlibs=no
9076      fi
9077      ;;
9078
9079    haiku*)
9080      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081      link_all_deplibs=yes
9082      ;;
9083
9084    os2*)
9085      hardcode_libdir_flag_spec='-L$libdir'
9086      hardcode_minus_L=yes
9087      allow_undefined_flag=unsupported
9088      shrext_cmds=.dll
9089      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9090	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9091	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9092	$ECHO EXPORTS >> $output_objdir/$libname.def~
9093	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9094	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9095	emximp -o $lib $output_objdir/$libname.def'
9096      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9097	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9098	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9099	$ECHO EXPORTS >> $output_objdir/$libname.def~
9100	prefix_cmds="$SED"~
9101	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9102	  prefix_cmds="$prefix_cmds -e 1d";
9103	fi~
9104	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9105	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9106	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9107	emximp -o $lib $output_objdir/$libname.def'
9108      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9109      enable_shared_with_static_runtimes=yes
9110      file_list_spec='@'
9111      ;;
9112
9113    interix[3-9]*)
9114      hardcode_direct=no
9115      hardcode_shlibpath_var=no
9116      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9117      export_dynamic_flag_spec='$wl-E'
9118      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9119      # Instead, shared libraries are loaded at an image base (0x10000000 by
9120      # default) and relocated if they conflict, which is a slow very memory
9121      # consuming and fragmenting process.  To avoid this, we pick a random,
9122      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9123      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9124      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9125      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'
9126      ;;
9127
9128    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9129      tmp_diet=no
9130      if test linux-dietlibc = "$host_os"; then
9131	case $cc_basename in
9132	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9133	esac
9134      fi
9135      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9136	 && test no = "$tmp_diet"
9137      then
9138	tmp_addflag=' $pic_flag'
9139	tmp_sharedflag='-shared'
9140	case $cc_basename,$host_cpu in
9141        pgcc*)				# Portland Group C compiler
9142	  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'
9143	  tmp_addflag=' $pic_flag'
9144	  ;;
9145	pgf77* | pgf90* | pgf95* | pgfortran*)
9146					# Portland Group f77 and f90 compilers
9147	  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'
9148	  tmp_addflag=' $pic_flag -Mnomain' ;;
9149	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9150	  tmp_addflag=' -i_dynamic' ;;
9151	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9152	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9153	ifc* | ifort*)			# Intel Fortran compiler
9154	  tmp_addflag=' -nofor_main' ;;
9155	lf95*)				# Lahey Fortran 8.1
9156	  whole_archive_flag_spec=
9157	  tmp_sharedflag='--shared' ;;
9158        nagfor*)                        # NAGFOR 5.3
9159          tmp_sharedflag='-Wl,-shared' ;;
9160	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9161	  tmp_sharedflag='-qmkshrobj'
9162	  tmp_addflag= ;;
9163	nvcc*)	# Cuda Compiler Driver 2.2
9164	  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'
9165	  compiler_needs_object=yes
9166	  ;;
9167	esac
9168	case `$CC -V 2>&1 | $SED 5q` in
9169	*Sun\ C*)			# Sun C 5.9
9170	  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'
9171	  compiler_needs_object=yes
9172	  tmp_sharedflag='-G' ;;
9173	*Sun\ F*)			# Sun Fortran 8.3
9174	  tmp_sharedflag='-G' ;;
9175	esac
9176	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9177
9178        if test yes = "$supports_anon_versioning"; then
9179          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9180            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9181            echo "local: *; };" >> $output_objdir/$libname.ver~
9182            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9183        fi
9184
9185	case $cc_basename in
9186	tcc*)
9187	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9188	  export_dynamic_flag_spec='-rdynamic'
9189	  ;;
9190	xlf* | bgf* | bgxlf* | mpixlf*)
9191	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9192	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9193	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9194	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9195	  if test yes = "$supports_anon_versioning"; then
9196	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198              echo "local: *; };" >> $output_objdir/$libname.ver~
9199              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9200	  fi
9201	  ;;
9202	esac
9203      else
9204        ld_shlibs=no
9205      fi
9206      ;;
9207
9208    netbsd* | netbsdelf*-gnu)
9209      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9210	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9211	wlarc=
9212      else
9213	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9214	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9215      fi
9216      ;;
9217
9218    solaris*)
9219      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9220	ld_shlibs=no
9221	cat <<_LT_EOF 1>&2
9222
9223*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9224*** create shared libraries on Solaris systems.  Therefore, libtool
9225*** is disabling shared libraries support.  We urge you to upgrade GNU
9226*** binutils to release 2.9.1 or newer.  Another option is to modify
9227*** your PATH or compiler configuration so that the native linker is
9228*** used, and then restart.
9229
9230_LT_EOF
9231      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9233	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9234      else
9235	ld_shlibs=no
9236      fi
9237      ;;
9238
9239    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9240      case `$LD -v 2>&1` in
9241        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9242	ld_shlibs=no
9243	cat <<_LT_EOF 1>&2
9244
9245*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9246*** reliably create shared libraries on SCO systems.  Therefore, libtool
9247*** is disabling shared libraries support.  We urge you to upgrade GNU
9248*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9249*** your PATH or compiler configuration so that the native linker is
9250*** used, and then restart.
9251
9252_LT_EOF
9253	;;
9254	*)
9255	  # For security reasons, it is highly recommended that you always
9256	  # use absolute paths for naming shared libraries, and exclude the
9257	  # DT_RUNPATH tag from executables and libraries.  But doing so
9258	  # requires that you compile everything twice, which is a pain.
9259	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9261	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9262	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9263	  else
9264	    ld_shlibs=no
9265	  fi
9266	;;
9267      esac
9268      ;;
9269
9270    sunos4*)
9271      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272      wlarc=
9273      hardcode_direct=yes
9274      hardcode_shlibpath_var=no
9275      ;;
9276
9277    *)
9278      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9280	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9281      else
9282	ld_shlibs=no
9283      fi
9284      ;;
9285    esac
9286
9287    if test no = "$ld_shlibs"; then
9288      runpath_var=
9289      hardcode_libdir_flag_spec=
9290      export_dynamic_flag_spec=
9291      whole_archive_flag_spec=
9292    fi
9293  else
9294    # PORTME fill in a description of your system's linker (not GNU ld)
9295    case $host_os in
9296    aix3*)
9297      allow_undefined_flag=unsupported
9298      always_export_symbols=yes
9299      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'
9300      # Note: this linker hardcodes the directories in LIBPATH if there
9301      # are no directories specified by -L.
9302      hardcode_minus_L=yes
9303      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9304	# Neither direct hardcoding nor static linking is supported with a
9305	# broken collect2.
9306	hardcode_direct=unsupported
9307      fi
9308      ;;
9309
9310    aix[4-9]*)
9311      if test ia64 = "$host_cpu"; then
9312	# On IA64, the linker does run time linking by default, so we don't
9313	# have to do anything special.
9314	aix_use_runtimelinking=no
9315	exp_sym_flag='-Bexport'
9316	no_entry_flag=
9317      else
9318	# If we're using GNU nm, then we don't want the "-C" option.
9319	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9320	# Without the "-l" option, or with the "-B" option, AIX nm treats
9321	# weak defined symbols like other global defined symbols, whereas
9322	# GNU nm marks them as "W".
9323	# While the 'weak' keyword is ignored in the Export File, we need
9324	# it in the Import File for the 'aix-soname' feature, so we have
9325	# to replace the "-B" option with "-P" for AIX nm.
9326	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9327	  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'
9328	else
9329	  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 == "L") || (\$ 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'
9330	fi
9331	aix_use_runtimelinking=no
9332
9333	# Test if we are trying to use run time linking or normal
9334	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9335	# have runtime linking enabled, and use it for executables.
9336	# For shared libraries, we enable/disable runtime linking
9337	# depending on the kind of the shared library created -
9338	# when "with_aix_soname,aix_use_runtimelinking" is:
9339	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9340	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9341	#            lib.a           static archive
9342	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9343	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9344	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9345	#            lib.a(lib.so.V) shared, rtl:no
9346	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9347	#            lib.a           static archive
9348	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9349	  for ld_flag in $LDFLAGS; do
9350	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9351	    aix_use_runtimelinking=yes
9352	    break
9353	  fi
9354	  done
9355	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9356	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9357	    # so we don't have lib.a shared libs to link our executables.
9358	    # We have to force runtime linking in this case.
9359	    aix_use_runtimelinking=yes
9360	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9361	  fi
9362	  ;;
9363	esac
9364
9365	exp_sym_flag='-bexport'
9366	no_entry_flag='-bnoentry'
9367      fi
9368
9369      # When large executables or shared objects are built, AIX ld can
9370      # have problems creating the table of contents.  If linking a library
9371      # or program results in "error TOC overflow" add -mminimal-toc to
9372      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9373      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9374
9375      archive_cmds=''
9376      hardcode_direct=yes
9377      hardcode_direct_absolute=yes
9378      hardcode_libdir_separator=':'
9379      link_all_deplibs=yes
9380      file_list_spec='$wl-f,'
9381      case $with_aix_soname,$aix_use_runtimelinking in
9382      aix,*) ;; # traditional, no import file
9383      svr4,* | *,yes) # use import file
9384	# The Import File defines what to hardcode.
9385	hardcode_direct=no
9386	hardcode_direct_absolute=no
9387	;;
9388      esac
9389
9390      if test yes = "$GCC"; then
9391	case $host_os in aix4.[012]|aix4.[012].*)
9392	# We only want to do this on AIX 4.2 and lower, the check
9393	# below for broken collect2 doesn't work under 4.3+
9394	  collect2name=`$CC -print-prog-name=collect2`
9395	  if test -f "$collect2name" &&
9396	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9397	  then
9398	  # We have reworked collect2
9399	  :
9400	  else
9401	  # We have old collect2
9402	  hardcode_direct=unsupported
9403	  # It fails to find uninstalled libraries when the uninstalled
9404	  # path is not listed in the libpath.  Setting hardcode_minus_L
9405	  # to unsupported forces relinking
9406	  hardcode_minus_L=yes
9407	  hardcode_libdir_flag_spec='-L$libdir'
9408	  hardcode_libdir_separator=
9409	  fi
9410	  ;;
9411	esac
9412	shared_flag='-shared'
9413	if test yes = "$aix_use_runtimelinking"; then
9414	  shared_flag="$shared_flag "'$wl-G'
9415	fi
9416	# Need to ensure runtime linking is disabled for the traditional
9417	# shared library, or the linker may eventually find shared libraries
9418	# /with/ Import File - we do not want to mix them.
9419	shared_flag_aix='-shared'
9420	shared_flag_svr4='-shared $wl-G'
9421      else
9422	# not using gcc
9423	if test ia64 = "$host_cpu"; then
9424	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9425	# chokes on -Wl,-G. The following line is correct:
9426	  shared_flag='-G'
9427	else
9428	  if test yes = "$aix_use_runtimelinking"; then
9429	    shared_flag='$wl-G'
9430	  else
9431	    shared_flag='$wl-bM:SRE'
9432	  fi
9433	  shared_flag_aix='$wl-bM:SRE'
9434	  shared_flag_svr4='$wl-G'
9435	fi
9436      fi
9437
9438      export_dynamic_flag_spec='$wl-bexpall'
9439      # It seems that -bexpall does not export symbols beginning with
9440      # underscore (_), so it is better to generate a list of symbols to export.
9441      always_export_symbols=yes
9442      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9443	# Warning - without using the other runtime loading flags (-brtl),
9444	# -berok will link without error, but may produce a broken library.
9445	allow_undefined_flag='-berok'
9446        # Determine the default libpath from the value encoded in an
9447        # empty executable.
9448        if test set = "${lt_cv_aix_libpath+set}"; then
9449  aix_libpath=$lt_cv_aix_libpath
9450else
9451  if test ${lt_cv_aix_libpath_+y}
9452then :
9453  printf %s "(cached) " >&6
9454else $as_nop
9455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457
9458int
9459main (void)
9460{
9461
9462  ;
9463  return 0;
9464}
9465_ACEOF
9466if ac_fn_c_try_link "$LINENO"
9467then :
9468
9469  lt_aix_libpath_sed='
9470      /Import File Strings/,/^$/ {
9471	  /^0/ {
9472	      s/^0  *\([^ ]*\) *$/\1/
9473	      p
9474	  }
9475      }'
9476  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477  # Check for a 64-bit object if we didn't find anything.
9478  if test -z "$lt_cv_aix_libpath_"; then
9479    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480  fi
9481fi
9482rm -f core conftest.err conftest.$ac_objext conftest.beam \
9483    conftest$ac_exeext conftest.$ac_ext
9484  if test -z "$lt_cv_aix_libpath_"; then
9485    lt_cv_aix_libpath_=/usr/lib:/lib
9486  fi
9487
9488fi
9489
9490  aix_libpath=$lt_cv_aix_libpath_
9491fi
9492
9493        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9494        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
9495      else
9496	if test ia64 = "$host_cpu"; then
9497	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9498	  allow_undefined_flag="-z nodefs"
9499	  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"
9500	else
9501	 # Determine the default libpath from the value encoded in an
9502	 # empty executable.
9503	 if test set = "${lt_cv_aix_libpath+set}"; then
9504  aix_libpath=$lt_cv_aix_libpath
9505else
9506  if test ${lt_cv_aix_libpath_+y}
9507then :
9508  printf %s "(cached) " >&6
9509else $as_nop
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512
9513int
9514main (void)
9515{
9516
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"
9522then :
9523
9524  lt_aix_libpath_sed='
9525      /Import File Strings/,/^$/ {
9526	  /^0/ {
9527	      s/^0  *\([^ ]*\) *$/\1/
9528	      p
9529	  }
9530      }'
9531  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9532  # Check for a 64-bit object if we didn't find anything.
9533  if test -z "$lt_cv_aix_libpath_"; then
9534    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535  fi
9536fi
9537rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538    conftest$ac_exeext conftest.$ac_ext
9539  if test -z "$lt_cv_aix_libpath_"; then
9540    lt_cv_aix_libpath_=/usr/lib:/lib
9541  fi
9542
9543fi
9544
9545  aix_libpath=$lt_cv_aix_libpath_
9546fi
9547
9548	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9549	  # Warning - without using the other run time loading flags,
9550	  # -berok will link without error, but may produce a broken library.
9551	  no_undefined_flag=' $wl-bernotok'
9552	  allow_undefined_flag=' $wl-berok'
9553	  if test yes = "$with_gnu_ld"; then
9554	    # We only use this code for GNU lds that support --whole-archive.
9555	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9556	  else
9557	    # Exported symbols can be pulled into shared objects from archives
9558	    whole_archive_flag_spec='$convenience'
9559	  fi
9560	  archive_cmds_need_lc=yes
9561	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9562	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9563	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9564	  if test svr4 != "$with_aix_soname"; then
9565	    # This is similar to how AIX traditionally builds its shared libraries.
9566	    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'
9567	  fi
9568	  if test aix != "$with_aix_soname"; then
9569	    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'
9570	  else
9571	    # used by -dlpreopen to get the symbols
9572	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9573	  fi
9574	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9575	fi
9576      fi
9577      ;;
9578
9579    amigaos*)
9580      case $host_cpu in
9581      powerpc)
9582            # see comment about AmigaOS4 .so support
9583            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584            archive_expsym_cmds=''
9585        ;;
9586      m68k)
9587            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)'
9588            hardcode_libdir_flag_spec='-L$libdir'
9589            hardcode_minus_L=yes
9590        ;;
9591      esac
9592      ;;
9593
9594    bsdi[45]*)
9595      export_dynamic_flag_spec=-rdynamic
9596      ;;
9597
9598    cygwin* | mingw* | pw32* | cegcc*)
9599      # When not using gcc, we currently assume that we are using
9600      # Microsoft Visual C++ or Intel C++ Compiler.
9601      # hardcode_libdir_flag_spec is actually meaningless, as there is
9602      # no search path for DLLs.
9603      case $cc_basename in
9604      cl* | icl*)
9605	# Native MSVC or ICC
9606	hardcode_libdir_flag_spec=' '
9607	allow_undefined_flag=unsupported
9608	always_export_symbols=yes
9609	file_list_spec='@'
9610	# Tell ltmain to make .lib files, not .a files.
9611	libext=lib
9612	# Tell ltmain to make .dll files, not .so files.
9613	shrext_cmds=.dll
9614	# FIXME: Setting linknames here is a bad hack.
9615	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9616	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9617            cp "$export_symbols" "$output_objdir/$soname.def";
9618            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9619          else
9620            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9621          fi~
9622          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9623          linknames='
9624	# The linker will not automatically build a static lib if we build a DLL.
9625	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9626	enable_shared_with_static_runtimes=yes
9627	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9628	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9629	# Don't use ranlib
9630	old_postinstall_cmds='chmod 644 $oldlib'
9631	postlink_cmds='lt_outputfile="@OUTPUT@"~
9632          lt_tool_outputfile="@TOOL_OUTPUT@"~
9633          case $lt_outputfile in
9634            *.exe|*.EXE) ;;
9635            *)
9636              lt_outputfile=$lt_outputfile.exe
9637              lt_tool_outputfile=$lt_tool_outputfile.exe
9638              ;;
9639          esac~
9640          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9641            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9642            $RM "$lt_outputfile.manifest";
9643          fi'
9644	;;
9645      *)
9646	# Assume MSVC and ICC wrapper
9647	hardcode_libdir_flag_spec=' '
9648	allow_undefined_flag=unsupported
9649	# Tell ltmain to make .lib files, not .a files.
9650	libext=lib
9651	# Tell ltmain to make .dll files, not .so files.
9652	shrext_cmds=.dll
9653	# FIXME: Setting linknames here is a bad hack.
9654	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9655	# The linker will automatically build a .lib file if we build a DLL.
9656	old_archive_from_new_cmds='true'
9657	# FIXME: Should let the user specify the lib program.
9658	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9659	enable_shared_with_static_runtimes=yes
9660	;;
9661      esac
9662      ;;
9663
9664    darwin* | rhapsody*)
9665
9666
9667  archive_cmds_need_lc=no
9668  hardcode_direct=no
9669  hardcode_automatic=yes
9670  hardcode_shlibpath_var=unsupported
9671  if test yes = "$lt_cv_ld_force_load"; then
9672    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\"`'
9673
9674  else
9675    whole_archive_flag_spec=''
9676  fi
9677  link_all_deplibs=yes
9678  allow_undefined_flag=$_lt_dar_allow_undefined
9679  case $cc_basename in
9680     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9681     *) _lt_dar_can_shared=$GCC ;;
9682  esac
9683  if test yes = "$_lt_dar_can_shared"; then
9684    output_verbose_link_cmd=func_echo_all
9685    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9686    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9687    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"
9688    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"
9689
9690  else
9691  ld_shlibs=no
9692  fi
9693
9694      ;;
9695
9696    dgux*)
9697      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698      hardcode_libdir_flag_spec='-L$libdir'
9699      hardcode_shlibpath_var=no
9700      ;;
9701
9702    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9703    # support.  Future versions do this automatically, but an explicit c++rt0.o
9704    # does not break anything, and helps significantly (at the cost of a little
9705    # extra space).
9706    freebsd2.2*)
9707      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9708      hardcode_libdir_flag_spec='-R$libdir'
9709      hardcode_direct=yes
9710      hardcode_shlibpath_var=no
9711      ;;
9712
9713    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9714    freebsd2.*)
9715      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716      hardcode_direct=yes
9717      hardcode_minus_L=yes
9718      hardcode_shlibpath_var=no
9719      ;;
9720
9721    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9722    freebsd* | dragonfly* | midnightbsd*)
9723      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9724      hardcode_libdir_flag_spec='-R$libdir'
9725      hardcode_direct=yes
9726      hardcode_shlibpath_var=no
9727      ;;
9728
9729    hpux9*)
9730      if test yes = "$GCC"; then
9731	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'
9732      else
9733	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'
9734      fi
9735      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9736      hardcode_libdir_separator=:
9737      hardcode_direct=yes
9738
9739      # hardcode_minus_L: Not really in the search PATH,
9740      # but as the default location of the library.
9741      hardcode_minus_L=yes
9742      export_dynamic_flag_spec='$wl-E'
9743      ;;
9744
9745    hpux10*)
9746      if test yes,no = "$GCC,$with_gnu_ld"; then
9747	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9748      else
9749	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9750      fi
9751      if test no = "$with_gnu_ld"; then
9752	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9753	hardcode_libdir_separator=:
9754	hardcode_direct=yes
9755	hardcode_direct_absolute=yes
9756	export_dynamic_flag_spec='$wl-E'
9757	# hardcode_minus_L: Not really in the search PATH,
9758	# but as the default location of the library.
9759	hardcode_minus_L=yes
9760      fi
9761      ;;
9762
9763    hpux11*)
9764      if test yes,no = "$GCC,$with_gnu_ld"; then
9765	case $host_cpu in
9766	hppa*64*)
9767	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9768	  ;;
9769	ia64*)
9770	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9771	  ;;
9772	*)
9773	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774	  ;;
9775	esac
9776      else
9777	case $host_cpu in
9778	hppa*64*)
9779	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9780	  ;;
9781	ia64*)
9782	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783	  ;;
9784	*)
9785
9786	  # Older versions of the 11.00 compiler do not understand -b yet
9787	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9788	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9789printf %s "checking if $CC understands -b... " >&6; }
9790if test ${lt_cv_prog_compiler__b+y}
9791then :
9792  printf %s "(cached) " >&6
9793else $as_nop
9794  lt_cv_prog_compiler__b=no
9795   save_LDFLAGS=$LDFLAGS
9796   LDFLAGS="$LDFLAGS -b"
9797   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9798   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9799     # The linker can only warn and ignore the option if not recognized
9800     # So say no if there are warnings
9801     if test -s conftest.err; then
9802       # Append any errors to the config.log.
9803       cat conftest.err 1>&5
9804       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9805       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9806       if diff conftest.exp conftest.er2 >/dev/null; then
9807         lt_cv_prog_compiler__b=yes
9808       fi
9809     else
9810       lt_cv_prog_compiler__b=yes
9811     fi
9812   fi
9813   $RM -r conftest*
9814   LDFLAGS=$save_LDFLAGS
9815
9816fi
9817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9818printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9819
9820if test yes = "$lt_cv_prog_compiler__b"; then
9821    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822else
9823    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9824fi
9825
9826	  ;;
9827	esac
9828      fi
9829      if test no = "$with_gnu_ld"; then
9830	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9831	hardcode_libdir_separator=:
9832
9833	case $host_cpu in
9834	hppa*64*|ia64*)
9835	  hardcode_direct=no
9836	  hardcode_shlibpath_var=no
9837	  ;;
9838	*)
9839	  hardcode_direct=yes
9840	  hardcode_direct_absolute=yes
9841	  export_dynamic_flag_spec='$wl-E'
9842
9843	  # hardcode_minus_L: Not really in the search PATH,
9844	  # but as the default location of the library.
9845	  hardcode_minus_L=yes
9846	  ;;
9847	esac
9848      fi
9849      ;;
9850
9851    irix5* | irix6* | nonstopux*)
9852      if test yes = "$GCC"; then
9853	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'
9854	# Try to use the -exported_symbol ld option, if it does not
9855	# work, assume that -exports_file does not work either and
9856	# implicitly export all symbols.
9857	# This should be the same for all languages, so no per-tag cache variable.
9858	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9859printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9860if test ${lt_cv_irix_exported_symbol+y}
9861then :
9862  printf %s "(cached) " >&6
9863else $as_nop
9864  save_LDFLAGS=$LDFLAGS
9865	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9866	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int foo (void) { return 0; }
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"
9871then :
9872  lt_cv_irix_exported_symbol=yes
9873else $as_nop
9874  lt_cv_irix_exported_symbol=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext conftest.beam \
9877    conftest$ac_exeext conftest.$ac_ext
9878           LDFLAGS=$save_LDFLAGS
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9881printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9882	if test yes = "$lt_cv_irix_exported_symbol"; then
9883          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'
9884	fi
9885	link_all_deplibs=no
9886      else
9887	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'
9888	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'
9889      fi
9890      archive_cmds_need_lc='no'
9891      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9892      hardcode_libdir_separator=:
9893      inherit_rpath=yes
9894      link_all_deplibs=yes
9895      ;;
9896
9897    linux*)
9898      case $cc_basename in
9899      tcc*)
9900	# Fabrice Bellard et al's Tiny C Compiler
9901	ld_shlibs=yes
9902	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904	;;
9905      esac
9906      ;;
9907
9908    netbsd* | netbsdelf*-gnu)
9909      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9911      else
9912	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9913      fi
9914      hardcode_libdir_flag_spec='-R$libdir'
9915      hardcode_direct=yes
9916      hardcode_shlibpath_var=no
9917      ;;
9918
9919    newsos6)
9920      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921      hardcode_direct=yes
9922      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923      hardcode_libdir_separator=:
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    *nto* | *qnx*)
9928      ;;
9929
9930    openbsd* | bitrig*)
9931      if test -f /usr/libexec/ld.so; then
9932	hardcode_direct=yes
9933	hardcode_shlibpath_var=no
9934	hardcode_direct_absolute=yes
9935	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9936	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9938	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9939	  export_dynamic_flag_spec='$wl-E'
9940	else
9941	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943	fi
9944      else
9945	ld_shlibs=no
9946      fi
9947      ;;
9948
9949    os2*)
9950      hardcode_libdir_flag_spec='-L$libdir'
9951      hardcode_minus_L=yes
9952      allow_undefined_flag=unsupported
9953      shrext_cmds=.dll
9954      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9955	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9956	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9957	$ECHO EXPORTS >> $output_objdir/$libname.def~
9958	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9959	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9960	emximp -o $lib $output_objdir/$libname.def'
9961      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9962	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9963	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9964	$ECHO EXPORTS >> $output_objdir/$libname.def~
9965	prefix_cmds="$SED"~
9966	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9967	  prefix_cmds="$prefix_cmds -e 1d";
9968	fi~
9969	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9970	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9971	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9972	emximp -o $lib $output_objdir/$libname.def'
9973      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9974      enable_shared_with_static_runtimes=yes
9975      file_list_spec='@'
9976      ;;
9977
9978    osf3*)
9979      if test yes = "$GCC"; then
9980	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9981	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'
9982      else
9983	allow_undefined_flag=' -expect_unresolved \*'
9984	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'
9985      fi
9986      archive_cmds_need_lc='no'
9987      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9988      hardcode_libdir_separator=:
9989      ;;
9990
9991    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9992      if test yes = "$GCC"; then
9993	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9994	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'
9995	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9996      else
9997	allow_undefined_flag=' -expect_unresolved \*'
9998	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'
9999	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~
10000          $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'
10001
10002	# Both c and cxx compiler support -rpath directly
10003	hardcode_libdir_flag_spec='-rpath $libdir'
10004      fi
10005      archive_cmds_need_lc='no'
10006      hardcode_libdir_separator=:
10007      ;;
10008
10009    solaris*)
10010      no_undefined_flag=' -z defs'
10011      if test yes = "$GCC"; then
10012	wlarc='$wl'
10013	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10014	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015          $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'
10016      else
10017	case `$CC -V 2>&1` in
10018	*"Compilers 5.0"*)
10019	  wlarc=''
10020	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10022            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10023	  ;;
10024	*)
10025	  wlarc='$wl'
10026	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10028            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10029	  ;;
10030	esac
10031      fi
10032      hardcode_libdir_flag_spec='-R$libdir'
10033      hardcode_shlibpath_var=no
10034      case $host_os in
10035      solaris2.[0-5] | solaris2.[0-5].*) ;;
10036      *)
10037	# The compiler driver will combine and reorder linker options,
10038	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10039	# but is careful enough not to reorder.
10040	# Supported since Solaris 2.6 (maybe 2.5.1?)
10041	if test yes = "$GCC"; then
10042	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10043	else
10044	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10045	fi
10046	;;
10047      esac
10048      link_all_deplibs=yes
10049      ;;
10050
10051    sunos4*)
10052      if test sequent = "$host_vendor"; then
10053	# Use $CC to link under sequent, because it throws in some extra .o
10054	# files that make .init and .fini sections work.
10055	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10056      else
10057	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10058      fi
10059      hardcode_libdir_flag_spec='-L$libdir'
10060      hardcode_direct=yes
10061      hardcode_minus_L=yes
10062      hardcode_shlibpath_var=no
10063      ;;
10064
10065    sysv4)
10066      case $host_vendor in
10067	sni)
10068	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069	  hardcode_direct=yes # is this really true???
10070	;;
10071	siemens)
10072	  ## LD is ld it makes a PLAMLIB
10073	  ## CC just makes a GrossModule.
10074	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10075	  reload_cmds='$CC -r -o $output$reload_objs'
10076	  hardcode_direct=no
10077        ;;
10078	motorola)
10079	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10081	;;
10082      esac
10083      runpath_var='LD_RUN_PATH'
10084      hardcode_shlibpath_var=no
10085      ;;
10086
10087    sysv4.3*)
10088      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089      hardcode_shlibpath_var=no
10090      export_dynamic_flag_spec='-Bexport'
10091      ;;
10092
10093    sysv4*MP*)
10094      if test -d /usr/nec; then
10095	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096	hardcode_shlibpath_var=no
10097	runpath_var=LD_RUN_PATH
10098	hardcode_runpath_var=yes
10099	ld_shlibs=yes
10100      fi
10101      ;;
10102
10103    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10104      no_undefined_flag='$wl-z,text'
10105      archive_cmds_need_lc=no
10106      hardcode_shlibpath_var=no
10107      runpath_var='LD_RUN_PATH'
10108
10109      if test yes = "$GCC"; then
10110	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112      else
10113	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115      fi
10116      ;;
10117
10118    sysv5* | sco3.2v5* | sco5v6*)
10119      # Note: We CANNOT use -z defs as we might desire, because we do not
10120      # link with -lc, and that would cause any symbols used from libc to
10121      # always be unresolved, which means just about no library would
10122      # ever link correctly.  If we're not using GNU ld we use -z text
10123      # though, which does catch some bad symbols but isn't as heavy-handed
10124      # as -z defs.
10125      no_undefined_flag='$wl-z,text'
10126      allow_undefined_flag='$wl-z,nodefs'
10127      archive_cmds_need_lc=no
10128      hardcode_shlibpath_var=no
10129      hardcode_libdir_flag_spec='$wl-R,$libdir'
10130      hardcode_libdir_separator=':'
10131      link_all_deplibs=yes
10132      export_dynamic_flag_spec='$wl-Bexport'
10133      runpath_var='LD_RUN_PATH'
10134
10135      if test yes = "$GCC"; then
10136	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138      else
10139	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141      fi
10142      ;;
10143
10144    uts4*)
10145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146      hardcode_libdir_flag_spec='-L$libdir'
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    *)
10151      ld_shlibs=no
10152      ;;
10153    esac
10154
10155    if test sni = "$host_vendor"; then
10156      case $host in
10157      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10158	export_dynamic_flag_spec='$wl-Blargedynsym'
10159	;;
10160      esac
10161    fi
10162  fi
10163
10164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10165printf "%s\n" "$ld_shlibs" >&6; }
10166test no = "$ld_shlibs" && can_build_shared=no
10167
10168with_gnu_ld=$with_gnu_ld
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184#
10185# Do we need to explicitly link libc?
10186#
10187case "x$archive_cmds_need_lc" in
10188x|xyes)
10189  # Assume -lc should be added
10190  archive_cmds_need_lc=yes
10191
10192  if test yes,yes = "$GCC,$enable_shared"; then
10193    case $archive_cmds in
10194    *'~'*)
10195      # FIXME: we may have to deal with multi-command sequences.
10196      ;;
10197    '$CC '*)
10198      # Test whether the compiler implicitly links with -lc since on some
10199      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10200      # to ld, don't add -lc before -lgcc.
10201      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10202printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10203if test ${lt_cv_archive_cmds_need_lc+y}
10204then :
10205  printf %s "(cached) " >&6
10206else $as_nop
10207  $RM conftest*
10208	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209
10210	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10211  (eval $ac_compile) 2>&5
10212  ac_status=$?
10213  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10214  test $ac_status = 0; } 2>conftest.err; then
10215	  soname=conftest
10216	  lib=conftest
10217	  libobjs=conftest.$ac_objext
10218	  deplibs=
10219	  wl=$lt_prog_compiler_wl
10220	  pic_flag=$lt_prog_compiler_pic
10221	  compiler_flags=-v
10222	  linker_flags=-v
10223	  verstring=
10224	  output_objdir=.
10225	  libname=conftest
10226	  lt_save_allow_undefined_flag=$allow_undefined_flag
10227	  allow_undefined_flag=
10228	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10229  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10230  ac_status=$?
10231  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232  test $ac_status = 0; }
10233	  then
10234	    lt_cv_archive_cmds_need_lc=no
10235	  else
10236	    lt_cv_archive_cmds_need_lc=yes
10237	  fi
10238	  allow_undefined_flag=$lt_save_allow_undefined_flag
10239	else
10240	  cat conftest.err 1>&5
10241	fi
10242	$RM conftest*
10243
10244fi
10245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10246printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10247      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10248      ;;
10249    esac
10250  fi
10251  ;;
10252esac
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10406printf %s "checking dynamic linker characteristics... " >&6; }
10407
10408if test yes = "$GCC"; then
10409  case $host_os in
10410    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10411    *) lt_awk_arg='/^libraries:/' ;;
10412  esac
10413  case $host_os in
10414    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10415    *) lt_sed_strip_eq='s|=/|/|g' ;;
10416  esac
10417  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10418  case $lt_search_path_spec in
10419  *\;*)
10420    # if the path contains ";" then we assume it to be the separator
10421    # otherwise default to the standard path separator (i.e. ":") - it is
10422    # assumed that no part of a normal pathname contains ";" but that should
10423    # okay in the real world where ";" in dirpaths is itself problematic.
10424    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10425    ;;
10426  *)
10427    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10428    ;;
10429  esac
10430  # Ok, now we have the path, separated by spaces, we can step through it
10431  # and add multilib dir if necessary...
10432  lt_tmp_lt_search_path_spec=
10433  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10434  # ...but if some path component already ends with the multilib dir we assume
10435  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10436  case "$lt_multi_os_dir; $lt_search_path_spec " in
10437  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10438    lt_multi_os_dir=
10439    ;;
10440  esac
10441  for lt_sys_path in $lt_search_path_spec; do
10442    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10443      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10444    elif test -n "$lt_multi_os_dir"; then
10445      test -d "$lt_sys_path" && \
10446	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10447    fi
10448  done
10449  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10450BEGIN {RS = " "; FS = "/|\n";} {
10451  lt_foo = "";
10452  lt_count = 0;
10453  for (lt_i = NF; lt_i > 0; lt_i--) {
10454    if ($lt_i != "" && $lt_i != ".") {
10455      if ($lt_i == "..") {
10456        lt_count++;
10457      } else {
10458        if (lt_count == 0) {
10459          lt_foo = "/" $lt_i lt_foo;
10460        } else {
10461          lt_count--;
10462        }
10463      }
10464    }
10465  }
10466  if (lt_foo != "") { lt_freq[lt_foo]++; }
10467  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10468}'`
10469  # AWK program above erroneously prepends '/' to C:/dos/paths
10470  # for these hosts.
10471  case $host_os in
10472    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10473      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10474  esac
10475  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10476else
10477  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10478fi
10479library_names_spec=
10480libname_spec='lib$name'
10481soname_spec=
10482shrext_cmds=.so
10483postinstall_cmds=
10484postuninstall_cmds=
10485finish_cmds=
10486finish_eval=
10487shlibpath_var=
10488shlibpath_overrides_runpath=unknown
10489version_type=none
10490dynamic_linker="$host_os ld.so"
10491sys_lib_dlsearch_path_spec="/lib /usr/lib"
10492need_lib_prefix=unknown
10493hardcode_into_libs=no
10494
10495# when you set need_version to no, make sure it does not cause -set_version
10496# flags to be left without arguments
10497need_version=unknown
10498
10499
10500
10501case $host_os in
10502aix3*)
10503  version_type=linux # correct to gnu/linux during the next big refactor
10504  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10505  shlibpath_var=LIBPATH
10506
10507  # AIX 3 has no versioning support, so we append a major version to the name.
10508  soname_spec='$libname$release$shared_ext$major'
10509  ;;
10510
10511aix[4-9]*)
10512  version_type=linux # correct to gnu/linux during the next big refactor
10513  need_lib_prefix=no
10514  need_version=no
10515  hardcode_into_libs=yes
10516  if test ia64 = "$host_cpu"; then
10517    # AIX 5 supports IA64
10518    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10519    shlibpath_var=LD_LIBRARY_PATH
10520  else
10521    # With GCC up to 2.95.x, collect2 would create an import file
10522    # for dependence libraries.  The import file would start with
10523    # the line '#! .'.  This would cause the generated library to
10524    # depend on '.', always an invalid library.  This was fixed in
10525    # development snapshots of GCC prior to 3.0.
10526    case $host_os in
10527      aix4 | aix4.[01] | aix4.[01].*)
10528      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10529	   echo ' yes '
10530	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10531	:
10532      else
10533	can_build_shared=no
10534      fi
10535      ;;
10536    esac
10537    # Using Import Files as archive members, it is possible to support
10538    # filename-based versioning of shared library archives on AIX. While
10539    # this would work for both with and without runtime linking, it will
10540    # prevent static linking of such archives. So we do filename-based
10541    # shared library versioning with .so extension only, which is used
10542    # when both runtime linking and shared linking is enabled.
10543    # Unfortunately, runtime linking may impact performance, so we do
10544    # not want this to be the default eventually. Also, we use the
10545    # versioned .so libs for executables only if there is the -brtl
10546    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10547    # To allow for filename-based versioning support, we need to create
10548    # libNAME.so.V as an archive file, containing:
10549    # *) an Import File, referring to the versioned filename of the
10550    #    archive as well as the shared archive member, telling the
10551    #    bitwidth (32 or 64) of that shared object, and providing the
10552    #    list of exported symbols of that shared object, eventually
10553    #    decorated with the 'weak' keyword
10554    # *) the shared object with the F_LOADONLY flag set, to really avoid
10555    #    it being seen by the linker.
10556    # At run time we better use the real file rather than another symlink,
10557    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10558
10559    case $with_aix_soname,$aix_use_runtimelinking in
10560    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10561    # soname into executable. Probably we can add versioning support to
10562    # collect2, so additional links can be useful in future.
10563    aix,yes) # traditional libtool
10564      dynamic_linker='AIX unversionable lib.so'
10565      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10566      # instead of lib<name>.a to let people know that these are not
10567      # typical AIX shared libraries.
10568      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10569      ;;
10570    aix,no) # traditional AIX only
10571      dynamic_linker='AIX lib.a(lib.so.V)'
10572      # We preserve .a as extension for shared libraries through AIX4.2
10573      # and later when we are not doing run time linking.
10574      library_names_spec='$libname$release.a $libname.a'
10575      soname_spec='$libname$release$shared_ext$major'
10576      ;;
10577    svr4,*) # full svr4 only
10578      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10579      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10580      # We do not specify a path in Import Files, so LIBPATH fires.
10581      shlibpath_overrides_runpath=yes
10582      ;;
10583    *,yes) # both, prefer svr4
10584      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10585      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10586      # unpreferred sharedlib libNAME.a needs extra handling
10587      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"'
10588      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"'
10589      # We do not specify a path in Import Files, so LIBPATH fires.
10590      shlibpath_overrides_runpath=yes
10591      ;;
10592    *,no) # both, prefer aix
10593      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10594      library_names_spec='$libname$release.a $libname.a'
10595      soname_spec='$libname$release$shared_ext$major'
10596      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10597      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)'
10598      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"'
10599      ;;
10600    esac
10601    shlibpath_var=LIBPATH
10602  fi
10603  ;;
10604
10605amigaos*)
10606  case $host_cpu in
10607  powerpc)
10608    # Since July 2007 AmigaOS4 officially supports .so libraries.
10609    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10610    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10611    ;;
10612  m68k)
10613    library_names_spec='$libname.ixlibrary $libname.a'
10614    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10615    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'
10616    ;;
10617  esac
10618  ;;
10619
10620beos*)
10621  library_names_spec='$libname$shared_ext'
10622  dynamic_linker="$host_os ld.so"
10623  shlibpath_var=LIBRARY_PATH
10624  ;;
10625
10626bsdi[45]*)
10627  version_type=linux # correct to gnu/linux during the next big refactor
10628  need_version=no
10629  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10630  soname_spec='$libname$release$shared_ext$major'
10631  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10632  shlibpath_var=LD_LIBRARY_PATH
10633  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10634  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10635  # the default ld.so.conf also contains /usr/contrib/lib and
10636  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10637  # libtool to hard-code these into programs
10638  ;;
10639
10640cygwin* | mingw* | pw32* | cegcc*)
10641  version_type=windows
10642  shrext_cmds=.dll
10643  need_version=no
10644  need_lib_prefix=no
10645
10646  case $GCC,$cc_basename in
10647  yes,*)
10648    # gcc
10649    library_names_spec='$libname.dll.a'
10650    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10651    postinstall_cmds='base_file=`basename \$file`~
10652      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10653      dldir=$destdir/`dirname \$dlpath`~
10654      test -d \$dldir || mkdir -p \$dldir~
10655      $install_prog $dir/$dlname \$dldir/$dlname~
10656      chmod a+x \$dldir/$dlname~
10657      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10658        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10659      fi'
10660    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10661      dlpath=$dir/\$dldll~
10662       $RM \$dlpath'
10663    shlibpath_overrides_runpath=yes
10664
10665    case $host_os in
10666    cygwin*)
10667      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10668      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10669
10670      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10671      ;;
10672    mingw* | cegcc*)
10673      # MinGW DLLs use traditional 'lib' prefix
10674      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10675      ;;
10676    pw32*)
10677      # pw32 DLLs use 'pw' prefix rather than 'lib'
10678      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10679      ;;
10680    esac
10681    dynamic_linker='Win32 ld.exe'
10682    ;;
10683
10684  *,cl* | *,icl*)
10685    # Native MSVC or ICC
10686    libname_spec='$name'
10687    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10688    library_names_spec='$libname.dll.lib'
10689
10690    case $build_os in
10691    mingw*)
10692      sys_lib_search_path_spec=
10693      lt_save_ifs=$IFS
10694      IFS=';'
10695      for lt_path in $LIB
10696      do
10697        IFS=$lt_save_ifs
10698        # Let DOS variable expansion print the short 8.3 style file name.
10699        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10700        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10701      done
10702      IFS=$lt_save_ifs
10703      # Convert to MSYS style.
10704      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10705      ;;
10706    cygwin*)
10707      # Convert to unix form, then to dos form, then back to unix form
10708      # but this time dos style (no spaces!) so that the unix form looks
10709      # like /cygdrive/c/PROGRA~1:/cygdr...
10710      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10711      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10712      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10713      ;;
10714    *)
10715      sys_lib_search_path_spec=$LIB
10716      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10717        # It is most probably a Windows format PATH.
10718        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10719      else
10720        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10721      fi
10722      # FIXME: find the short name or the path components, as spaces are
10723      # common. (e.g. "Program Files" -> "PROGRA~1")
10724      ;;
10725    esac
10726
10727    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10728    postinstall_cmds='base_file=`basename \$file`~
10729      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10730      dldir=$destdir/`dirname \$dlpath`~
10731      test -d \$dldir || mkdir -p \$dldir~
10732      $install_prog $dir/$dlname \$dldir/$dlname'
10733    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10734      dlpath=$dir/\$dldll~
10735       $RM \$dlpath'
10736    shlibpath_overrides_runpath=yes
10737    dynamic_linker='Win32 link.exe'
10738    ;;
10739
10740  *)
10741    # Assume MSVC and ICC wrapper
10742    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10743    dynamic_linker='Win32 ld.exe'
10744    ;;
10745  esac
10746  # FIXME: first we should search . and the directory the executable is in
10747  shlibpath_var=PATH
10748  ;;
10749
10750darwin* | rhapsody*)
10751  dynamic_linker="$host_os dyld"
10752  version_type=darwin
10753  need_lib_prefix=no
10754  need_version=no
10755  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10756  soname_spec='$libname$release$major$shared_ext'
10757  shlibpath_overrides_runpath=yes
10758  shlibpath_var=DYLD_LIBRARY_PATH
10759  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10760
10761  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10762  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10763  ;;
10764
10765dgux*)
10766  version_type=linux # correct to gnu/linux during the next big refactor
10767  need_lib_prefix=no
10768  need_version=no
10769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10770  soname_spec='$libname$release$shared_ext$major'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  ;;
10773
10774freebsd* | dragonfly* | midnightbsd*)
10775  # DragonFly does not have aout.  When/if they implement a new
10776  # versioning mechanism, adjust this.
10777  if test -x /usr/bin/objformat; then
10778    objformat=`/usr/bin/objformat`
10779  else
10780    case $host_os in
10781    freebsd[23].*) objformat=aout ;;
10782    *) objformat=elf ;;
10783    esac
10784  fi
10785  version_type=freebsd-$objformat
10786  case $version_type in
10787    freebsd-elf*)
10788      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10789      soname_spec='$libname$release$shared_ext$major'
10790      need_version=no
10791      need_lib_prefix=no
10792      ;;
10793    freebsd-*)
10794      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10795      need_version=yes
10796      ;;
10797  esac
10798  shlibpath_var=LD_LIBRARY_PATH
10799  case $host_os in
10800  freebsd2.*)
10801    shlibpath_overrides_runpath=yes
10802    ;;
10803  freebsd3.[01]* | freebsdelf3.[01]*)
10804    shlibpath_overrides_runpath=yes
10805    hardcode_into_libs=yes
10806    ;;
10807  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10808  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10809    shlibpath_overrides_runpath=no
10810    hardcode_into_libs=yes
10811    ;;
10812  *) # from 4.6 on, and DragonFly
10813    shlibpath_overrides_runpath=yes
10814    hardcode_into_libs=yes
10815    ;;
10816  esac
10817  ;;
10818
10819haiku*)
10820  version_type=linux # correct to gnu/linux during the next big refactor
10821  need_lib_prefix=no
10822  need_version=no
10823  dynamic_linker="$host_os runtime_loader"
10824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10825  soname_spec='$libname$release$shared_ext$major'
10826  shlibpath_var=LIBRARY_PATH
10827  shlibpath_overrides_runpath=no
10828  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10829  hardcode_into_libs=yes
10830  ;;
10831
10832hpux9* | hpux10* | hpux11*)
10833  # Give a soname corresponding to the major version so that dld.sl refuses to
10834  # link against other versions.
10835  version_type=sunos
10836  need_lib_prefix=no
10837  need_version=no
10838  case $host_cpu in
10839  ia64*)
10840    shrext_cmds='.so'
10841    hardcode_into_libs=yes
10842    dynamic_linker="$host_os dld.so"
10843    shlibpath_var=LD_LIBRARY_PATH
10844    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10845    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846    soname_spec='$libname$release$shared_ext$major'
10847    if test 32 = "$HPUX_IA64_MODE"; then
10848      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10849      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10850    else
10851      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10852      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10853    fi
10854    ;;
10855  hppa*64*)
10856    shrext_cmds='.sl'
10857    hardcode_into_libs=yes
10858    dynamic_linker="$host_os dld.sl"
10859    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10860    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10861    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862    soname_spec='$libname$release$shared_ext$major'
10863    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10864    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10865    ;;
10866  *)
10867    shrext_cmds='.sl'
10868    dynamic_linker="$host_os dld.sl"
10869    shlibpath_var=SHLIB_PATH
10870    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10871    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872    soname_spec='$libname$release$shared_ext$major'
10873    ;;
10874  esac
10875  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10876  postinstall_cmds='chmod 555 $lib'
10877  # or fails outright, so override atomically:
10878  install_override_mode=555
10879  ;;
10880
10881interix[3-9]*)
10882  version_type=linux # correct to gnu/linux during the next big refactor
10883  need_lib_prefix=no
10884  need_version=no
10885  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10886  soname_spec='$libname$release$shared_ext$major'
10887  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10888  shlibpath_var=LD_LIBRARY_PATH
10889  shlibpath_overrides_runpath=no
10890  hardcode_into_libs=yes
10891  ;;
10892
10893irix5* | irix6* | nonstopux*)
10894  case $host_os in
10895    nonstopux*) version_type=nonstopux ;;
10896    *)
10897	if test yes = "$lt_cv_prog_gnu_ld"; then
10898		version_type=linux # correct to gnu/linux during the next big refactor
10899	else
10900		version_type=irix
10901	fi ;;
10902  esac
10903  need_lib_prefix=no
10904  need_version=no
10905  soname_spec='$libname$release$shared_ext$major'
10906  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10907  case $host_os in
10908  irix5* | nonstopux*)
10909    libsuff= shlibsuff=
10910    ;;
10911  *)
10912    case $LD in # libtool.m4 will add one of these switches to LD
10913    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10914      libsuff= shlibsuff= libmagic=32-bit;;
10915    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10916      libsuff=32 shlibsuff=N32 libmagic=N32;;
10917    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10918      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10919    *) libsuff= shlibsuff= libmagic=never-match;;
10920    esac
10921    ;;
10922  esac
10923  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10924  shlibpath_overrides_runpath=no
10925  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10926  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10927  hardcode_into_libs=yes
10928  ;;
10929
10930# No shared lib support for Linux oldld, aout, or coff.
10931linux*oldld* | linux*aout* | linux*coff*)
10932  dynamic_linker=no
10933  ;;
10934
10935linux*android*)
10936  version_type=none # Android doesn't support versioned libraries.
10937  need_lib_prefix=no
10938  need_version=no
10939  library_names_spec='$libname$release$shared_ext'
10940  soname_spec='$libname$release$shared_ext'
10941  finish_cmds=
10942  shlibpath_var=LD_LIBRARY_PATH
10943  shlibpath_overrides_runpath=yes
10944
10945  # This implies no fast_install, which is unacceptable.
10946  # Some rework will be needed to allow for fast_install
10947  # before this can be enabled.
10948  hardcode_into_libs=yes
10949
10950  dynamic_linker='Android linker'
10951  # Don't embed -rpath directories since the linker doesn't support them.
10952  hardcode_libdir_flag_spec='-L$libdir'
10953  ;;
10954
10955# This must be glibc/ELF.
10956linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10957  version_type=linux # correct to gnu/linux during the next big refactor
10958  need_lib_prefix=no
10959  need_version=no
10960  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10961  soname_spec='$libname$release$shared_ext$major'
10962  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10963  shlibpath_var=LD_LIBRARY_PATH
10964  shlibpath_overrides_runpath=no
10965
10966  # Some binutils ld are patched to set DT_RUNPATH
10967  if test ${lt_cv_shlibpath_overrides_runpath+y}
10968then :
10969  printf %s "(cached) " >&6
10970else $as_nop
10971  lt_cv_shlibpath_overrides_runpath=no
10972    save_LDFLAGS=$LDFLAGS
10973    save_libdir=$libdir
10974    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10975	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10976    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977/* end confdefs.h.  */
10978
10979int
10980main (void)
10981{
10982
10983  ;
10984  return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_link "$LINENO"
10988then :
10989  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10990then :
10991  lt_cv_shlibpath_overrides_runpath=yes
10992fi
10993fi
10994rm -f core conftest.err conftest.$ac_objext conftest.beam \
10995    conftest$ac_exeext conftest.$ac_ext
10996    LDFLAGS=$save_LDFLAGS
10997    libdir=$save_libdir
10998
10999fi
11000
11001  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11002
11003  # This implies no fast_install, which is unacceptable.
11004  # Some rework will be needed to allow for fast_install
11005  # before this can be enabled.
11006  hardcode_into_libs=yes
11007
11008  # Ideally, we could use ldconfig to report *all* directores which are
11009  # searched for libraries, however this is still not possible.  Aside from not
11010  # being certain /sbin/ldconfig is available, command
11011  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11012  # even though it is searched at run-time.  Try to do the best guess by
11013  # appending ld.so.conf contents (and includes) to the search path.
11014  if test -f /etc/ld.so.conf; then
11015    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' ' '`
11016    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11017  fi
11018
11019  # We used to test for /lib/ld.so.1 and disable shared libraries on
11020  # powerpc, because MkLinux only supported shared libraries with the
11021  # GNU dynamic linker.  Since this was broken with cross compilers,
11022  # most powerpc-linux boxes support dynamic linking these days and
11023  # people can always --disable-shared, the test was removed, and we
11024  # assume the GNU/Linux dynamic linker is in use.
11025  dynamic_linker='GNU/Linux ld.so'
11026  ;;
11027
11028netbsdelf*-gnu)
11029  version_type=linux
11030  need_lib_prefix=no
11031  need_version=no
11032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11033  soname_spec='${libname}${release}${shared_ext}$major'
11034  shlibpath_var=LD_LIBRARY_PATH
11035  shlibpath_overrides_runpath=no
11036  hardcode_into_libs=yes
11037  dynamic_linker='NetBSD ld.elf_so'
11038  ;;
11039
11040netbsd*)
11041  version_type=sunos
11042  need_lib_prefix=no
11043  need_version=no
11044  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11045    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11046    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11047    dynamic_linker='NetBSD (a.out) ld.so'
11048  else
11049    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050    soname_spec='$libname$release$shared_ext$major'
11051    dynamic_linker='NetBSD ld.elf_so'
11052  fi
11053  shlibpath_var=LD_LIBRARY_PATH
11054  shlibpath_overrides_runpath=yes
11055  hardcode_into_libs=yes
11056  ;;
11057
11058newsos6)
11059  version_type=linux # correct to gnu/linux during the next big refactor
11060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061  shlibpath_var=LD_LIBRARY_PATH
11062  shlibpath_overrides_runpath=yes
11063  ;;
11064
11065*nto* | *qnx*)
11066  version_type=qnx
11067  need_lib_prefix=no
11068  need_version=no
11069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070  soname_spec='$libname$release$shared_ext$major'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  shlibpath_overrides_runpath=no
11073  hardcode_into_libs=yes
11074  dynamic_linker='ldqnx.so'
11075  ;;
11076
11077openbsd* | bitrig*)
11078  version_type=sunos
11079  sys_lib_dlsearch_path_spec=/usr/lib
11080  need_lib_prefix=no
11081  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11082    need_version=no
11083  else
11084    need_version=yes
11085  fi
11086  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11087  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088  shlibpath_var=LD_LIBRARY_PATH
11089  shlibpath_overrides_runpath=yes
11090  ;;
11091
11092os2*)
11093  libname_spec='$name'
11094  version_type=windows
11095  shrext_cmds=.dll
11096  need_version=no
11097  need_lib_prefix=no
11098  # OS/2 can only load a DLL with a base name of 8 characters or less.
11099  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11100    v=$($ECHO $release$versuffix | tr -d .-);
11101    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11102    $ECHO $n$v`$shared_ext'
11103  library_names_spec='${libname}_dll.$libext'
11104  dynamic_linker='OS/2 ld.exe'
11105  shlibpath_var=BEGINLIBPATH
11106  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11107  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11108  postinstall_cmds='base_file=`basename \$file`~
11109    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11110    dldir=$destdir/`dirname \$dlpath`~
11111    test -d \$dldir || mkdir -p \$dldir~
11112    $install_prog $dir/$dlname \$dldir/$dlname~
11113    chmod a+x \$dldir/$dlname~
11114    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11115      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11116    fi'
11117  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11118    dlpath=$dir/\$dldll~
11119    $RM \$dlpath'
11120  ;;
11121
11122osf3* | osf4* | osf5*)
11123  version_type=osf
11124  need_lib_prefix=no
11125  need_version=no
11126  soname_spec='$libname$release$shared_ext$major'
11127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128  shlibpath_var=LD_LIBRARY_PATH
11129  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11130  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11131  ;;
11132
11133rdos*)
11134  dynamic_linker=no
11135  ;;
11136
11137solaris*)
11138  version_type=linux # correct to gnu/linux during the next big refactor
11139  need_lib_prefix=no
11140  need_version=no
11141  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142  soname_spec='$libname$release$shared_ext$major'
11143  shlibpath_var=LD_LIBRARY_PATH
11144  shlibpath_overrides_runpath=yes
11145  hardcode_into_libs=yes
11146  # ldd complains unless libraries are executable
11147  postinstall_cmds='chmod +x $lib'
11148  ;;
11149
11150sunos4*)
11151  version_type=sunos
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11153  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11154  shlibpath_var=LD_LIBRARY_PATH
11155  shlibpath_overrides_runpath=yes
11156  if test yes = "$with_gnu_ld"; then
11157    need_lib_prefix=no
11158  fi
11159  need_version=yes
11160  ;;
11161
11162sysv4 | sysv4.3*)
11163  version_type=linux # correct to gnu/linux during the next big refactor
11164  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165  soname_spec='$libname$release$shared_ext$major'
11166  shlibpath_var=LD_LIBRARY_PATH
11167  case $host_vendor in
11168    sni)
11169      shlibpath_overrides_runpath=no
11170      need_lib_prefix=no
11171      runpath_var=LD_RUN_PATH
11172      ;;
11173    siemens)
11174      need_lib_prefix=no
11175      ;;
11176    motorola)
11177      need_lib_prefix=no
11178      need_version=no
11179      shlibpath_overrides_runpath=no
11180      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11181      ;;
11182  esac
11183  ;;
11184
11185sysv4*MP*)
11186  if test -d /usr/nec; then
11187    version_type=linux # correct to gnu/linux during the next big refactor
11188    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11189    soname_spec='$libname$shared_ext.$major'
11190    shlibpath_var=LD_LIBRARY_PATH
11191  fi
11192  ;;
11193
11194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11195  version_type=sco
11196  need_lib_prefix=no
11197  need_version=no
11198  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11199  soname_spec='$libname$release$shared_ext$major'
11200  shlibpath_var=LD_LIBRARY_PATH
11201  shlibpath_overrides_runpath=yes
11202  hardcode_into_libs=yes
11203  if test yes = "$with_gnu_ld"; then
11204    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205  else
11206    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11207    case $host_os in
11208      sco3.2v5*)
11209        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11210	;;
11211    esac
11212  fi
11213  sys_lib_dlsearch_path_spec='/usr/lib'
11214  ;;
11215
11216tpf*)
11217  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11218  version_type=linux # correct to gnu/linux during the next big refactor
11219  need_lib_prefix=no
11220  need_version=no
11221  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222  shlibpath_var=LD_LIBRARY_PATH
11223  shlibpath_overrides_runpath=no
11224  hardcode_into_libs=yes
11225  ;;
11226
11227uts4*)
11228  version_type=linux # correct to gnu/linux during the next big refactor
11229  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11230  soname_spec='$libname$release$shared_ext$major'
11231  shlibpath_var=LD_LIBRARY_PATH
11232  ;;
11233
11234*)
11235  dynamic_linker=no
11236  ;;
11237esac
11238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11239printf "%s\n" "$dynamic_linker" >&6; }
11240test no = "$dynamic_linker" && can_build_shared=no
11241
11242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11243if test yes = "$GCC"; then
11244  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11245fi
11246
11247if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11248  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11249fi
11250
11251if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11252  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11253fi
11254
11255# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11256configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11257
11258# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11259func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11260
11261# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11262configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11361printf %s "checking how to hardcode library paths into programs... " >&6; }
11362hardcode_action=
11363if test -n "$hardcode_libdir_flag_spec" ||
11364   test -n "$runpath_var" ||
11365   test yes = "$hardcode_automatic"; then
11366
11367  # We can hardcode non-existent directories.
11368  if test no != "$hardcode_direct" &&
11369     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11370     # have to relink, otherwise we might link with an installed library
11371     # when we should be linking with a yet-to-be-installed one
11372     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11373     test no != "$hardcode_minus_L"; then
11374    # Linking always hardcodes the temporary library directory.
11375    hardcode_action=relink
11376  else
11377    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11378    hardcode_action=immediate
11379  fi
11380else
11381  # We cannot hardcode anything, or else we can only hardcode existing
11382  # directories.
11383  hardcode_action=unsupported
11384fi
11385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11386printf "%s\n" "$hardcode_action" >&6; }
11387
11388if test relink = "$hardcode_action" ||
11389   test yes = "$inherit_rpath"; then
11390  # Fast installation is not supported
11391  enable_fast_install=no
11392elif test yes = "$shlibpath_overrides_runpath" ||
11393     test no = "$enable_shared"; then
11394  # Fast installation is not necessary
11395  enable_fast_install=needless
11396fi
11397
11398
11399
11400
11401
11402
11403  if test yes != "$enable_dlopen"; then
11404  enable_dlopen=unknown
11405  enable_dlopen_self=unknown
11406  enable_dlopen_self_static=unknown
11407else
11408  lt_cv_dlopen=no
11409  lt_cv_dlopen_libs=
11410
11411  case $host_os in
11412  beos*)
11413    lt_cv_dlopen=load_add_on
11414    lt_cv_dlopen_libs=
11415    lt_cv_dlopen_self=yes
11416    ;;
11417
11418  mingw* | pw32* | cegcc*)
11419    lt_cv_dlopen=LoadLibrary
11420    lt_cv_dlopen_libs=
11421    ;;
11422
11423  cygwin*)
11424    lt_cv_dlopen=dlopen
11425    lt_cv_dlopen_libs=
11426    ;;
11427
11428  darwin*)
11429    # if libdl is installed we need to link against it
11430    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11431printf %s "checking for dlopen in -ldl... " >&6; }
11432if test ${ac_cv_lib_dl_dlopen+y}
11433then :
11434  printf %s "(cached) " >&6
11435else $as_nop
11436  ac_check_lib_save_LIBS=$LIBS
11437LIBS="-ldl  $LIBS"
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h.  */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442   Use char because int might match the return type of a GCC
11443   builtin and then its argument prototype would still apply.  */
11444char dlopen ();
11445int
11446main (void)
11447{
11448return dlopen ();
11449  ;
11450  return 0;
11451}
11452_ACEOF
11453if ac_fn_c_try_link "$LINENO"
11454then :
11455  ac_cv_lib_dl_dlopen=yes
11456else $as_nop
11457  ac_cv_lib_dl_dlopen=no
11458fi
11459rm -f core conftest.err conftest.$ac_objext conftest.beam \
11460    conftest$ac_exeext conftest.$ac_ext
11461LIBS=$ac_check_lib_save_LIBS
11462fi
11463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11464printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11465if test "x$ac_cv_lib_dl_dlopen" = xyes
11466then :
11467  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11468else $as_nop
11469
11470    lt_cv_dlopen=dyld
11471    lt_cv_dlopen_libs=
11472    lt_cv_dlopen_self=yes
11473
11474fi
11475
11476    ;;
11477
11478  tpf*)
11479    # Don't try to run any link tests for TPF.  We know it's impossible
11480    # because TPF is a cross-compiler, and we know how we open DSOs.
11481    lt_cv_dlopen=dlopen
11482    lt_cv_dlopen_libs=
11483    lt_cv_dlopen_self=no
11484    ;;
11485
11486  *)
11487    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11488if test "x$ac_cv_func_shl_load" = xyes
11489then :
11490  lt_cv_dlopen=shl_load
11491else $as_nop
11492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11493printf %s "checking for shl_load in -ldld... " >&6; }
11494if test ${ac_cv_lib_dld_shl_load+y}
11495then :
11496  printf %s "(cached) " >&6
11497else $as_nop
11498  ac_check_lib_save_LIBS=$LIBS
11499LIBS="-ldld  $LIBS"
11500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501/* end confdefs.h.  */
11502
11503/* Override any GCC internal prototype to avoid an error.
11504   Use char because int might match the return type of a GCC
11505   builtin and then its argument prototype would still apply.  */
11506char shl_load ();
11507int
11508main (void)
11509{
11510return shl_load ();
11511  ;
11512  return 0;
11513}
11514_ACEOF
11515if ac_fn_c_try_link "$LINENO"
11516then :
11517  ac_cv_lib_dld_shl_load=yes
11518else $as_nop
11519  ac_cv_lib_dld_shl_load=no
11520fi
11521rm -f core conftest.err conftest.$ac_objext conftest.beam \
11522    conftest$ac_exeext conftest.$ac_ext
11523LIBS=$ac_check_lib_save_LIBS
11524fi
11525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11526printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11527if test "x$ac_cv_lib_dld_shl_load" = xyes
11528then :
11529  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11530else $as_nop
11531  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11532if test "x$ac_cv_func_dlopen" = xyes
11533then :
11534  lt_cv_dlopen=dlopen
11535else $as_nop
11536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11537printf %s "checking for dlopen in -ldl... " >&6; }
11538if test ${ac_cv_lib_dl_dlopen+y}
11539then :
11540  printf %s "(cached) " >&6
11541else $as_nop
11542  ac_check_lib_save_LIBS=$LIBS
11543LIBS="-ldl  $LIBS"
11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h.  */
11546
11547/* Override any GCC internal prototype to avoid an error.
11548   Use char because int might match the return type of a GCC
11549   builtin and then its argument prototype would still apply.  */
11550char dlopen ();
11551int
11552main (void)
11553{
11554return dlopen ();
11555  ;
11556  return 0;
11557}
11558_ACEOF
11559if ac_fn_c_try_link "$LINENO"
11560then :
11561  ac_cv_lib_dl_dlopen=yes
11562else $as_nop
11563  ac_cv_lib_dl_dlopen=no
11564fi
11565rm -f core conftest.err conftest.$ac_objext conftest.beam \
11566    conftest$ac_exeext conftest.$ac_ext
11567LIBS=$ac_check_lib_save_LIBS
11568fi
11569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11571if test "x$ac_cv_lib_dl_dlopen" = xyes
11572then :
11573  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11574else $as_nop
11575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11576printf %s "checking for dlopen in -lsvld... " >&6; }
11577if test ${ac_cv_lib_svld_dlopen+y}
11578then :
11579  printf %s "(cached) " >&6
11580else $as_nop
11581  ac_check_lib_save_LIBS=$LIBS
11582LIBS="-lsvld  $LIBS"
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587   Use char because int might match the return type of a GCC
11588   builtin and then its argument prototype would still apply.  */
11589char dlopen ();
11590int
11591main (void)
11592{
11593return dlopen ();
11594  ;
11595  return 0;
11596}
11597_ACEOF
11598if ac_fn_c_try_link "$LINENO"
11599then :
11600  ac_cv_lib_svld_dlopen=yes
11601else $as_nop
11602  ac_cv_lib_svld_dlopen=no
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.beam \
11605    conftest$ac_exeext conftest.$ac_ext
11606LIBS=$ac_check_lib_save_LIBS
11607fi
11608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11609printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11610if test "x$ac_cv_lib_svld_dlopen" = xyes
11611then :
11612  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11613else $as_nop
11614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11615printf %s "checking for dld_link in -ldld... " >&6; }
11616if test ${ac_cv_lib_dld_dld_link+y}
11617then :
11618  printf %s "(cached) " >&6
11619else $as_nop
11620  ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldld  $LIBS"
11622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623/* end confdefs.h.  */
11624
11625/* Override any GCC internal prototype to avoid an error.
11626   Use char because int might match the return type of a GCC
11627   builtin and then its argument prototype would still apply.  */
11628char dld_link ();
11629int
11630main (void)
11631{
11632return dld_link ();
11633  ;
11634  return 0;
11635}
11636_ACEOF
11637if ac_fn_c_try_link "$LINENO"
11638then :
11639  ac_cv_lib_dld_dld_link=yes
11640else $as_nop
11641  ac_cv_lib_dld_dld_link=no
11642fi
11643rm -f core conftest.err conftest.$ac_objext conftest.beam \
11644    conftest$ac_exeext conftest.$ac_ext
11645LIBS=$ac_check_lib_save_LIBS
11646fi
11647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11648printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11649if test "x$ac_cv_lib_dld_dld_link" = xyes
11650then :
11651  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11652fi
11653
11654
11655fi
11656
11657
11658fi
11659
11660
11661fi
11662
11663
11664fi
11665
11666
11667fi
11668
11669    ;;
11670  esac
11671
11672  if test no = "$lt_cv_dlopen"; then
11673    enable_dlopen=no
11674  else
11675    enable_dlopen=yes
11676  fi
11677
11678  case $lt_cv_dlopen in
11679  dlopen)
11680    save_CPPFLAGS=$CPPFLAGS
11681    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11682
11683    save_LDFLAGS=$LDFLAGS
11684    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11685
11686    save_LIBS=$LIBS
11687    LIBS="$lt_cv_dlopen_libs $LIBS"
11688
11689    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11690printf %s "checking whether a program can dlopen itself... " >&6; }
11691if test ${lt_cv_dlopen_self+y}
11692then :
11693  printf %s "(cached) " >&6
11694else $as_nop
11695  	  if test yes = "$cross_compiling"; then :
11696  lt_cv_dlopen_self=cross
11697else
11698  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11699  lt_status=$lt_dlunknown
11700  cat > conftest.$ac_ext <<_LT_EOF
11701#line $LINENO "configure"
11702#include "confdefs.h"
11703
11704#if HAVE_DLFCN_H
11705#include <dlfcn.h>
11706#endif
11707
11708#include <stdio.h>
11709
11710#ifdef RTLD_GLOBAL
11711#  define LT_DLGLOBAL		RTLD_GLOBAL
11712#else
11713#  ifdef DL_GLOBAL
11714#    define LT_DLGLOBAL		DL_GLOBAL
11715#  else
11716#    define LT_DLGLOBAL		0
11717#  endif
11718#endif
11719
11720/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11721   find out it does not work in some platform. */
11722#ifndef LT_DLLAZY_OR_NOW
11723#  ifdef RTLD_LAZY
11724#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11725#  else
11726#    ifdef DL_LAZY
11727#      define LT_DLLAZY_OR_NOW		DL_LAZY
11728#    else
11729#      ifdef RTLD_NOW
11730#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11731#      else
11732#        ifdef DL_NOW
11733#          define LT_DLLAZY_OR_NOW	DL_NOW
11734#        else
11735#          define LT_DLLAZY_OR_NOW	0
11736#        endif
11737#      endif
11738#    endif
11739#  endif
11740#endif
11741
11742/* When -fvisibility=hidden is used, assume the code has been annotated
11743   correspondingly for the symbols needed.  */
11744#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11745int fnord () __attribute__((visibility("default")));
11746#endif
11747
11748int fnord () { return 42; }
11749int main ()
11750{
11751  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11752  int status = $lt_dlunknown;
11753
11754  if (self)
11755    {
11756      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11757      else
11758        {
11759	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11760          else puts (dlerror ());
11761	}
11762      /* dlclose (self); */
11763    }
11764  else
11765    puts (dlerror ());
11766
11767  return status;
11768}
11769_LT_EOF
11770  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11771  (eval $ac_link) 2>&5
11772  ac_status=$?
11773  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11775    (./conftest; exit; ) >&5 2>/dev/null
11776    lt_status=$?
11777    case x$lt_status in
11778      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11779      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11780      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11781    esac
11782  else :
11783    # compilation failed
11784    lt_cv_dlopen_self=no
11785  fi
11786fi
11787rm -fr conftest*
11788
11789
11790fi
11791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11792printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11793
11794    if test yes = "$lt_cv_dlopen_self"; then
11795      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11796      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11797printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11798if test ${lt_cv_dlopen_self_static+y}
11799then :
11800  printf %s "(cached) " >&6
11801else $as_nop
11802  	  if test yes = "$cross_compiling"; then :
11803  lt_cv_dlopen_self_static=cross
11804else
11805  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806  lt_status=$lt_dlunknown
11807  cat > conftest.$ac_ext <<_LT_EOF
11808#line $LINENO "configure"
11809#include "confdefs.h"
11810
11811#if HAVE_DLFCN_H
11812#include <dlfcn.h>
11813#endif
11814
11815#include <stdio.h>
11816
11817#ifdef RTLD_GLOBAL
11818#  define LT_DLGLOBAL		RTLD_GLOBAL
11819#else
11820#  ifdef DL_GLOBAL
11821#    define LT_DLGLOBAL		DL_GLOBAL
11822#  else
11823#    define LT_DLGLOBAL		0
11824#  endif
11825#endif
11826
11827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828   find out it does not work in some platform. */
11829#ifndef LT_DLLAZY_OR_NOW
11830#  ifdef RTLD_LAZY
11831#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11832#  else
11833#    ifdef DL_LAZY
11834#      define LT_DLLAZY_OR_NOW		DL_LAZY
11835#    else
11836#      ifdef RTLD_NOW
11837#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11838#      else
11839#        ifdef DL_NOW
11840#          define LT_DLLAZY_OR_NOW	DL_NOW
11841#        else
11842#          define LT_DLLAZY_OR_NOW	0
11843#        endif
11844#      endif
11845#    endif
11846#  endif
11847#endif
11848
11849/* When -fvisibility=hidden is used, assume the code has been annotated
11850   correspondingly for the symbols needed.  */
11851#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11852int fnord () __attribute__((visibility("default")));
11853#endif
11854
11855int fnord () { return 42; }
11856int main ()
11857{
11858  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859  int status = $lt_dlunknown;
11860
11861  if (self)
11862    {
11863      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11864      else
11865        {
11866	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11867          else puts (dlerror ());
11868	}
11869      /* dlclose (self); */
11870    }
11871  else
11872    puts (dlerror ());
11873
11874  return status;
11875}
11876_LT_EOF
11877  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11878  (eval $ac_link) 2>&5
11879  ac_status=$?
11880  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11882    (./conftest; exit; ) >&5 2>/dev/null
11883    lt_status=$?
11884    case x$lt_status in
11885      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11886      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11887      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11888    esac
11889  else :
11890    # compilation failed
11891    lt_cv_dlopen_self_static=no
11892  fi
11893fi
11894rm -fr conftest*
11895
11896
11897fi
11898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11899printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11900    fi
11901
11902    CPPFLAGS=$save_CPPFLAGS
11903    LDFLAGS=$save_LDFLAGS
11904    LIBS=$save_LIBS
11905    ;;
11906  esac
11907
11908  case $lt_cv_dlopen_self in
11909  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11910  *) enable_dlopen_self=unknown ;;
11911  esac
11912
11913  case $lt_cv_dlopen_self_static in
11914  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11915  *) enable_dlopen_self_static=unknown ;;
11916  esac
11917fi
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935striplib=
11936old_striplib=
11937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11938printf %s "checking whether stripping libraries is possible... " >&6; }
11939if test -z "$STRIP"; then
11940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941printf "%s\n" "no" >&6; }
11942else
11943  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11944    old_striplib="$STRIP --strip-debug"
11945    striplib="$STRIP --strip-unneeded"
11946    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947printf "%s\n" "yes" >&6; }
11948  else
11949    case $host_os in
11950    darwin*)
11951      # FIXME - insert some real tests, host_os isn't really good enough
11952      striplib="$STRIP -x"
11953      old_striplib="$STRIP -S"
11954      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11955printf "%s\n" "yes" >&6; }
11956      ;;
11957    freebsd*)
11958      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11959        old_striplib="$STRIP --strip-debug"
11960        striplib="$STRIP --strip-unneeded"
11961        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962printf "%s\n" "yes" >&6; }
11963      else
11964        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965printf "%s\n" "no" >&6; }
11966      fi
11967      ;;
11968    *)
11969      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970printf "%s\n" "no" >&6; }
11971      ;;
11972    esac
11973  fi
11974fi
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987  # Report what library types will actually be built
11988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11989printf %s "checking if libtool supports shared libraries... " >&6; }
11990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11991printf "%s\n" "$can_build_shared" >&6; }
11992
11993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11994printf %s "checking whether to build shared libraries... " >&6; }
11995  test no = "$can_build_shared" && enable_shared=no
11996
11997  # On AIX, shared libraries and static libraries use the same namespace, and
11998  # are all built from PIC.
11999  case $host_os in
12000  aix3*)
12001    test yes = "$enable_shared" && enable_static=no
12002    if test -n "$RANLIB"; then
12003      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12004      postinstall_cmds='$RANLIB $lib'
12005    fi
12006    ;;
12007
12008  aix[4-9]*)
12009    if test ia64 != "$host_cpu"; then
12010      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12011      yes,aix,yes) ;;			# shared object as lib.so file only
12012      yes,svr4,*) ;;			# shared object as lib.so archive member only
12013      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12014      esac
12015    fi
12016    ;;
12017  esac
12018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12019printf "%s\n" "$enable_shared" >&6; }
12020
12021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12022printf %s "checking whether to build static libraries... " >&6; }
12023  # Make sure either enable_shared or enable_static is yes.
12024  test yes = "$enable_shared" || enable_static=yes
12025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12026printf "%s\n" "$enable_static" >&6; }
12027
12028
12029
12030
12031fi
12032ac_ext=c
12033ac_cpp='$CPP $CPPFLAGS'
12034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037
12038CC=$lt_save_CC
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054        ac_config_commands="$ac_config_commands libtool"
12055
12056
12057
12058
12059# Only expand once:
12060
12061
12062
12063
12064
12065am__api_version='1.16'
12066
12067
12068  # Find a good install program.  We prefer a C program (faster),
12069# so one script is as good as another.  But avoid the broken or
12070# incompatible versions:
12071# SysV /etc/install, /usr/sbin/install
12072# SunOS /usr/etc/install
12073# IRIX /sbin/install
12074# AIX /bin/install
12075# AmigaOS /C/install, which installs bootblocks on floppy discs
12076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12077# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12079# OS/2's system install, which has a completely different semantic
12080# ./install, which can be erroneously created by make from ./install.sh.
12081# Reject install programs that cannot install multiple files.
12082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12083printf %s "checking for a BSD-compatible install... " >&6; }
12084if test -z "$INSTALL"; then
12085if test ${ac_cv_path_install+y}
12086then :
12087  printf %s "(cached) " >&6
12088else $as_nop
12089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
12091do
12092  IFS=$as_save_IFS
12093  case $as_dir in #(((
12094    '') as_dir=./ ;;
12095    */) ;;
12096    *) as_dir=$as_dir/ ;;
12097  esac
12098    # Account for fact that we put trailing slashes in our PATH walk.
12099case $as_dir in #((
12100  ./ | /[cC]/* | \
12101  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12102  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12103  /usr/ucb/* ) ;;
12104  *)
12105    # OSF1 and SCO ODT 3.0 have their own names for install.
12106    # Don't use installbsd from OSF since it installs stuff as root
12107    # by default.
12108    for ac_prog in ginstall scoinst install; do
12109      for ac_exec_ext in '' $ac_executable_extensions; do
12110	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12111	  if test $ac_prog = install &&
12112	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12113	    # AIX install.  It has an incompatible calling convention.
12114	    :
12115	  elif test $ac_prog = install &&
12116	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12117	    # program-specific install script used by HP pwplus--don't use.
12118	    :
12119	  else
12120	    rm -rf conftest.one conftest.two conftest.dir
12121	    echo one > conftest.one
12122	    echo two > conftest.two
12123	    mkdir conftest.dir
12124	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12125	      test -s conftest.one && test -s conftest.two &&
12126	      test -s conftest.dir/conftest.one &&
12127	      test -s conftest.dir/conftest.two
12128	    then
12129	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12130	      break 3
12131	    fi
12132	  fi
12133	fi
12134      done
12135    done
12136    ;;
12137esac
12138
12139  done
12140IFS=$as_save_IFS
12141
12142rm -rf conftest.one conftest.two conftest.dir
12143
12144fi
12145  if test ${ac_cv_path_install+y}; then
12146    INSTALL=$ac_cv_path_install
12147  else
12148    # As a last resort, use the slow shell script.  Don't cache a
12149    # value for INSTALL within a source directory, because that will
12150    # break other packages using the cache if that directory is
12151    # removed, or if the value is a relative name.
12152    INSTALL=$ac_install_sh
12153  fi
12154fi
12155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12156printf "%s\n" "$INSTALL" >&6; }
12157
12158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12159# It thinks the first close brace ends the variable substitution.
12160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12161
12162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12163
12164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12165
12166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12167printf %s "checking whether build environment is sane... " >&6; }
12168# Reject unsafe characters in $srcdir or the absolute working directory
12169# name.  Accept space and tab only in the latter.
12170am_lf='
12171'
12172case `pwd` in
12173  *[\\\"\#\$\&\'\`$am_lf]*)
12174    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12175esac
12176case $srcdir in
12177  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
12178    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12179esac
12180
12181# Do 'set' in a subshell so we don't clobber the current shell's
12182# arguments.  Must try -L first in case configure is actually a
12183# symlink; some systems play weird games with the mod time of symlinks
12184# (eg FreeBSD returns the mod time of the symlink's containing
12185# directory).
12186if (
12187   am_has_slept=no
12188   for am_try in 1 2; do
12189     echo "timestamp, slept: $am_has_slept" > conftest.file
12190     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12191     if test "$*" = "X"; then
12192	# -L didn't work.
12193	set X `ls -t "$srcdir/configure" conftest.file`
12194     fi
12195     if test "$*" != "X $srcdir/configure conftest.file" \
12196	&& test "$*" != "X conftest.file $srcdir/configure"; then
12197
12198	# If neither matched, then we have a broken ls.  This can happen
12199	# if, for instance, CONFIG_SHELL is bash and it inherits a
12200	# broken ls alias from the environment.  This has actually
12201	# happened.  Such a system could not be considered "sane".
12202	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
12203  alias in your environment" "$LINENO" 5
12204     fi
12205     if test "$2" = conftest.file || test $am_try -eq 2; then
12206       break
12207     fi
12208     # Just in case.
12209     sleep 1
12210     am_has_slept=yes
12211   done
12212   test "$2" = conftest.file
12213   )
12214then
12215   # Ok.
12216   :
12217else
12218   as_fn_error $? "newly created file is older than distributed files!
12219Check your system clock" "$LINENO" 5
12220fi
12221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222printf "%s\n" "yes" >&6; }
12223# If we didn't sleep, we still need to ensure time stamps of config.status and
12224# generated files are strictly newer.
12225am_sleep_pid=
12226if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12227  ( sleep 1 ) &
12228  am_sleep_pid=$!
12229fi
12230
12231rm -f conftest.file
12232
12233test "$program_prefix" != NONE &&
12234  program_transform_name="s&^&$program_prefix&;$program_transform_name"
12235# Use a double $ so make ignores it.
12236test "$program_suffix" != NONE &&
12237  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12238# Double any \ or $.
12239# By default was `s,x,x', remove it if useless.
12240ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12241program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
12242
12243
12244  if test x"${MISSING+set}" != xset; then
12245  MISSING="\${SHELL} '$am_aux_dir/missing'"
12246fi
12247# Use eval to expand $SHELL
12248if eval "$MISSING --is-lightweight"; then
12249  am_missing_run="$MISSING "
12250else
12251  am_missing_run=
12252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12253printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12254fi
12255
12256if test x"${install_sh+set}" != xset; then
12257  case $am_aux_dir in
12258  *\ * | *\	*)
12259    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12260  *)
12261    install_sh="\${SHELL} $am_aux_dir/install-sh"
12262  esac
12263fi
12264
12265# Installed binaries are usually stripped using 'strip' when the user
12266# run "make install-strip".  However 'strip' might not be the right
12267# tool to use in cross-compilation environments, therefore Automake
12268# will honor the 'STRIP' environment variable to overrule this program.
12269if test "$cross_compiling" != no; then
12270  if test -n "$ac_tool_prefix"; then
12271  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12272set dummy ${ac_tool_prefix}strip; ac_word=$2
12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274printf %s "checking for $ac_word... " >&6; }
12275if test ${ac_cv_prog_STRIP+y}
12276then :
12277  printf %s "(cached) " >&6
12278else $as_nop
12279  if test -n "$STRIP"; then
12280  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285  IFS=$as_save_IFS
12286  case $as_dir in #(((
12287    '') as_dir=./ ;;
12288    */) ;;
12289    *) as_dir=$as_dir/ ;;
12290  esac
12291    for ac_exec_ext in '' $ac_executable_extensions; do
12292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12293    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12295    break 2
12296  fi
12297done
12298  done
12299IFS=$as_save_IFS
12300
12301fi
12302fi
12303STRIP=$ac_cv_prog_STRIP
12304if test -n "$STRIP"; then
12305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12306printf "%s\n" "$STRIP" >&6; }
12307else
12308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309printf "%s\n" "no" >&6; }
12310fi
12311
12312
12313fi
12314if test -z "$ac_cv_prog_STRIP"; then
12315  ac_ct_STRIP=$STRIP
12316  # Extract the first word of "strip", so it can be a program name with args.
12317set dummy strip; ac_word=$2
12318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319printf %s "checking for $ac_word... " >&6; }
12320if test ${ac_cv_prog_ac_ct_STRIP+y}
12321then :
12322  printf %s "(cached) " >&6
12323else $as_nop
12324  if test -n "$ac_ct_STRIP"; then
12325  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12326else
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330  IFS=$as_save_IFS
12331  case $as_dir in #(((
12332    '') as_dir=./ ;;
12333    */) ;;
12334    *) as_dir=$as_dir/ ;;
12335  esac
12336    for ac_exec_ext in '' $ac_executable_extensions; do
12337  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12338    ac_cv_prog_ac_ct_STRIP="strip"
12339    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12340    break 2
12341  fi
12342done
12343  done
12344IFS=$as_save_IFS
12345
12346fi
12347fi
12348ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12349if test -n "$ac_ct_STRIP"; then
12350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12351printf "%s\n" "$ac_ct_STRIP" >&6; }
12352else
12353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354printf "%s\n" "no" >&6; }
12355fi
12356
12357  if test "x$ac_ct_STRIP" = x; then
12358    STRIP=":"
12359  else
12360    case $cross_compiling:$ac_tool_warned in
12361yes:)
12362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12363printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12364ac_tool_warned=yes ;;
12365esac
12366    STRIP=$ac_ct_STRIP
12367  fi
12368else
12369  STRIP="$ac_cv_prog_STRIP"
12370fi
12371
12372fi
12373INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12374
12375
12376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
12377printf %s "checking for a race-free mkdir -p... " >&6; }
12378if test -z "$MKDIR_P"; then
12379  if test ${ac_cv_path_mkdir+y}
12380then :
12381  printf %s "(cached) " >&6
12382else $as_nop
12383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12385do
12386  IFS=$as_save_IFS
12387  case $as_dir in #(((
12388    '') as_dir=./ ;;
12389    */) ;;
12390    *) as_dir=$as_dir/ ;;
12391  esac
12392    for ac_prog in mkdir gmkdir; do
12393	 for ac_exec_ext in '' $ac_executable_extensions; do
12394	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
12395	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
12396	     'mkdir ('*'coreutils) '* | \
12397	     'BusyBox '* | \
12398	     'mkdir (fileutils) '4.1*)
12399	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
12400	       break 3;;
12401	   esac
12402	 done
12403       done
12404  done
12405IFS=$as_save_IFS
12406
12407fi
12408
12409  test -d ./--version && rmdir ./--version
12410  if test ${ac_cv_path_mkdir+y}; then
12411    MKDIR_P="$ac_cv_path_mkdir -p"
12412  else
12413    # As a last resort, use the slow shell script.  Don't cache a
12414    # value for MKDIR_P within a source directory, because that will
12415    # break other packages using the cache if that directory is
12416    # removed, or if the value is a relative name.
12417    MKDIR_P="$ac_install_sh -d"
12418  fi
12419fi
12420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12421printf "%s\n" "$MKDIR_P" >&6; }
12422
12423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12424printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12425set x ${MAKE-make}
12426ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12427if eval test \${ac_cv_prog_make_${ac_make}_set+y}
12428then :
12429  printf %s "(cached) " >&6
12430else $as_nop
12431  cat >conftest.make <<\_ACEOF
12432SHELL = /bin/sh
12433all:
12434	@echo '@@@%%%=$(MAKE)=@@@%%%'
12435_ACEOF
12436# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12437case `${MAKE-make} -f conftest.make 2>/dev/null` in
12438  *@@@%%%=?*=@@@%%%*)
12439    eval ac_cv_prog_make_${ac_make}_set=yes;;
12440  *)
12441    eval ac_cv_prog_make_${ac_make}_set=no;;
12442esac
12443rm -f conftest.make
12444fi
12445if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447printf "%s\n" "yes" >&6; }
12448  SET_MAKE=
12449else
12450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451printf "%s\n" "no" >&6; }
12452  SET_MAKE="MAKE=${MAKE-make}"
12453fi
12454
12455rm -rf .tst 2>/dev/null
12456mkdir .tst 2>/dev/null
12457if test -d .tst; then
12458  am__leading_dot=.
12459else
12460  am__leading_dot=_
12461fi
12462rmdir .tst 2>/dev/null
12463
12464DEPDIR="${am__leading_dot}deps"
12465
12466ac_config_commands="$ac_config_commands depfiles"
12467
12468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12469printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
12470cat > confinc.mk << 'END'
12471am__doit:
12472	@echo this is the am__doit target >confinc.out
12473.PHONY: am__doit
12474END
12475am__include="#"
12476am__quote=
12477# BSD make does it like this.
12478echo '.include "confinc.mk" # ignored' > confmf.BSD
12479# Other make implementations (GNU, Solaris 10, AIX) do it like this.
12480echo 'include confinc.mk # ignored' > confmf.GNU
12481_am_result=no
12482for s in GNU BSD; do
12483  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12484   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }
12488  case $?:`cat confinc.out 2>/dev/null` in #(
12489  '0:this is the am__doit target') :
12490    case $s in #(
12491  BSD) :
12492    am__include='.include' am__quote='"' ;; #(
12493  *) :
12494    am__include='include' am__quote='' ;;
12495esac ;; #(
12496  *) :
12497     ;;
12498esac
12499  if test "$am__include" != "#"; then
12500    _am_result="yes ($s style)"
12501    break
12502  fi
12503done
12504rm -f confinc.* confmf.*
12505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12506printf "%s\n" "${_am_result}" >&6; }
12507
12508# Check whether --enable-dependency-tracking was given.
12509if test ${enable_dependency_tracking+y}
12510then :
12511  enableval=$enable_dependency_tracking;
12512fi
12513
12514if test "x$enable_dependency_tracking" != xno; then
12515  am_depcomp="$ac_aux_dir/depcomp"
12516  AMDEPBACKSLASH='\'
12517  am__nodep='_no'
12518fi
12519 if test "x$enable_dependency_tracking" != xno; then
12520  AMDEP_TRUE=
12521  AMDEP_FALSE='#'
12522else
12523  AMDEP_TRUE='#'
12524  AMDEP_FALSE=
12525fi
12526
12527
12528# Check whether --enable-silent-rules was given.
12529if test ${enable_silent_rules+y}
12530then :
12531  enableval=$enable_silent_rules;
12532fi
12533
12534case $enable_silent_rules in # (((
12535  yes) AM_DEFAULT_VERBOSITY=0;;
12536   no) AM_DEFAULT_VERBOSITY=1;;
12537    *) AM_DEFAULT_VERBOSITY=1;;
12538esac
12539am_make=${MAKE-make}
12540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12541printf %s "checking whether $am_make supports nested variables... " >&6; }
12542if test ${am_cv_make_support_nested_variables+y}
12543then :
12544  printf %s "(cached) " >&6
12545else $as_nop
12546  if printf "%s\n" 'TRUE=$(BAR$(V))
12547BAR0=false
12548BAR1=true
12549V=1
12550am__doit:
12551	@$(TRUE)
12552.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12553  am_cv_make_support_nested_variables=yes
12554else
12555  am_cv_make_support_nested_variables=no
12556fi
12557fi
12558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12559printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12560if test $am_cv_make_support_nested_variables = yes; then
12561    AM_V='$(V)'
12562  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12563else
12564  AM_V=$AM_DEFAULT_VERBOSITY
12565  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12566fi
12567AM_BACKSLASH='\'
12568
12569if test "`cd $srcdir && pwd`" != "`pwd`"; then
12570  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12571  # is not polluted with repeated "-I."
12572  am__isrc=' -I$(srcdir)'
12573  # test to see if srcdir already configured
12574  if test -f $srcdir/config.status; then
12575    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12576  fi
12577fi
12578
12579# test whether we have cygpath
12580if test -z "$CYGPATH_W"; then
12581  if (cygpath --version) >/dev/null 2>/dev/null; then
12582    CYGPATH_W='cygpath -w'
12583  else
12584    CYGPATH_W=echo
12585  fi
12586fi
12587
12588
12589# Define the identity of the package.
12590 PACKAGE='libogg'
12591 VERSION='1.3.5'
12592
12593
12594printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
12595
12596
12597printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
12598
12599# Some tools Automake needs.
12600
12601ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12602
12603
12604AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12605
12606
12607AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12608
12609
12610AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12611
12612
12613MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12614
12615# For better backward compatibility.  To be removed once Automake 1.9.x
12616# dies out for good.  For more background, see:
12617# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12618# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12619mkdir_p='$(MKDIR_P)'
12620
12621# We need awk for the "check" target (and possibly the TAP driver).  The
12622# system "awk" is bad on some platforms.
12623# Always define AMTAR for backward compatibility.  Yes, it's still used
12624# in the wild :-(  We should find a proper way to deprecate it ...
12625AMTAR='$${TAR-tar}'
12626
12627
12628# We'll loop over all known methods to create a tar archive until one works.
12629_am_tools='gnutar  pax cpio none'
12630
12631am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12632
12633
12634
12635
12636
12637depcc="$CC"   am_compiler_list=
12638
12639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12640printf %s "checking dependency style of $depcc... " >&6; }
12641if test ${am_cv_CC_dependencies_compiler_type+y}
12642then :
12643  printf %s "(cached) " >&6
12644else $as_nop
12645  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12646  # We make a subdir and do the tests there.  Otherwise we can end up
12647  # making bogus files that we don't know about and never remove.  For
12648  # instance it was reported that on HP-UX the gcc test will end up
12649  # making a dummy file named 'D' -- because '-MD' means "put the output
12650  # in D".
12651  rm -rf conftest.dir
12652  mkdir conftest.dir
12653  # Copy depcomp to subdir because otherwise we won't find it if we're
12654  # using a relative directory.
12655  cp "$am_depcomp" conftest.dir
12656  cd conftest.dir
12657  # We will build objects and dependencies in a subdirectory because
12658  # it helps to detect inapplicable dependency modes.  For instance
12659  # both Tru64's cc and ICC support -MD to output dependencies as a
12660  # side effect of compilation, but ICC will put the dependencies in
12661  # the current directory while Tru64 will put them in the object
12662  # directory.
12663  mkdir sub
12664
12665  am_cv_CC_dependencies_compiler_type=none
12666  if test "$am_compiler_list" = ""; then
12667     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12668  fi
12669  am__universal=false
12670  case " $depcc " in #(
12671     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12672     esac
12673
12674  for depmode in $am_compiler_list; do
12675    # Setup a source with many dependencies, because some compilers
12676    # like to wrap large dependency lists on column 80 (with \), and
12677    # we should not choose a depcomp mode which is confused by this.
12678    #
12679    # We need to recreate these files for each test, as the compiler may
12680    # overwrite some of them when testing with obscure command lines.
12681    # This happens at least with the AIX C compiler.
12682    : > sub/conftest.c
12683    for i in 1 2 3 4 5 6; do
12684      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12685      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12686      # Solaris 10 /bin/sh.
12687      echo '/* dummy */' > sub/conftst$i.h
12688    done
12689    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12690
12691    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12692    # mode.  It turns out that the SunPro C++ compiler does not properly
12693    # handle '-M -o', and we need to detect this.  Also, some Intel
12694    # versions had trouble with output in subdirs.
12695    am__obj=sub/conftest.${OBJEXT-o}
12696    am__minus_obj="-o $am__obj"
12697    case $depmode in
12698    gcc)
12699      # This depmode causes a compiler race in universal mode.
12700      test "$am__universal" = false || continue
12701      ;;
12702    nosideeffect)
12703      # After this tag, mechanisms are not by side-effect, so they'll
12704      # only be used when explicitly requested.
12705      if test "x$enable_dependency_tracking" = xyes; then
12706	continue
12707      else
12708	break
12709      fi
12710      ;;
12711    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12712      # This compiler won't grok '-c -o', but also, the minuso test has
12713      # not run yet.  These depmodes are late enough in the game, and
12714      # so weak that their functioning should not be impacted.
12715      am__obj=conftest.${OBJEXT-o}
12716      am__minus_obj=
12717      ;;
12718    none) break ;;
12719    esac
12720    if depmode=$depmode \
12721       source=sub/conftest.c object=$am__obj \
12722       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12723       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12724         >/dev/null 2>conftest.err &&
12725       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12726       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12727       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12728       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12729      # icc doesn't choke on unknown options, it will just issue warnings
12730      # or remarks (even with -Werror).  So we grep stderr for any message
12731      # that says an option was ignored or not supported.
12732      # When given -MP, icc 7.0 and 7.1 complain thusly:
12733      #   icc: Command line warning: ignoring option '-M'; no argument required
12734      # The diagnosis changed in icc 8.0:
12735      #   icc: Command line remark: option '-MP' not supported
12736      if (grep 'ignoring option' conftest.err ||
12737          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12738        am_cv_CC_dependencies_compiler_type=$depmode
12739        break
12740      fi
12741    fi
12742  done
12743
12744  cd ..
12745  rm -rf conftest.dir
12746else
12747  am_cv_CC_dependencies_compiler_type=none
12748fi
12749
12750fi
12751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12752printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
12753CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12754
12755 if
12756  test "x$enable_dependency_tracking" != xno \
12757  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12758  am__fastdepCC_TRUE=
12759  am__fastdepCC_FALSE='#'
12760else
12761  am__fastdepCC_TRUE='#'
12762  am__fastdepCC_FALSE=
12763fi
12764
12765
12766# Variables for tags utilities; see am/tags.am
12767if test -z "$CTAGS"; then
12768  CTAGS=ctags
12769fi
12770
12771if test -z "$ETAGS"; then
12772  ETAGS=etags
12773fi
12774
12775if test -z "$CSCOPE"; then
12776  CSCOPE=cscope
12777fi
12778
12779
12780
12781# POSIX will say in a future version that running "rm -f" with no argument
12782# is OK; and we want to be able to make that assumption in our Makefile
12783# recipes.  So use an aggressive probe to check that the usage we want is
12784# actually supported "in the wild" to an acceptable degree.
12785# See automake bug#10828.
12786# To make any issue more visible, cause the running configure to be aborted
12787# by default if the 'rm' program in use doesn't match our expectations; the
12788# user can still override this though.
12789if rm -f && rm -fr && rm -rf; then : OK; else
12790  cat >&2 <<'END'
12791Oops!
12792
12793Your 'rm' program seems unable to run without file operands specified
12794on the command line, even when the '-f' option is present.  This is contrary
12795to the behaviour of most rm programs out there, and not conforming with
12796the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12797
12798Please tell bug-automake@gnu.org about your system, including the value
12799of your $PATH and any error possibly output before this message.  This
12800can help us improve future automake versions.
12801
12802END
12803  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12804    echo 'Configuration will proceed anyway, since you have set the' >&2
12805    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12806    echo >&2
12807  else
12808    cat >&2 <<'END'
12809Aborting the configuration process, to ensure you take notice of the issue.
12810
12811You can download and install GNU coreutils to get an 'rm' implementation
12812that behaves properly: <https://www.gnu.org/software/coreutils/>.
12813
12814If you want to complete the configuration process using your problematic
12815'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12816to "yes", and re-run configure.
12817
12818END
12819    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12820  fi
12821fi
12822
12823
12824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12825printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12826    # Check whether --enable-maintainer-mode was given.
12827if test ${enable_maintainer_mode+y}
12828then :
12829  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12830else $as_nop
12831  USE_MAINTAINER_MODE=yes
12832fi
12833
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12835printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12836   if test $USE_MAINTAINER_MODE = yes; then
12837  MAINTAINER_MODE_TRUE=
12838  MAINTAINER_MODE_FALSE='#'
12839else
12840  MAINTAINER_MODE_TRUE='#'
12841  MAINTAINER_MODE_FALSE=
12842fi
12843
12844  MAINT=$MAINTAINER_MODE_TRUE
12845
12846
12847
12848
12849LIB_CURRENT=8
12850LIB_REVISION=5
12851LIB_AGE=8
12852
12853
12854
12855
12856ac_ext=c
12857ac_cpp='$CPP $CPPFLAGS'
12858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861if test -n "$ac_tool_prefix"; then
12862  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12863set dummy ${ac_tool_prefix}gcc; ac_word=$2
12864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865printf %s "checking for $ac_word... " >&6; }
12866if test ${ac_cv_prog_CC+y}
12867then :
12868  printf %s "(cached) " >&6
12869else $as_nop
12870  if test -n "$CC"; then
12871  ac_cv_prog_CC="$CC" # Let the user override the test.
12872else
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876  IFS=$as_save_IFS
12877  case $as_dir in #(((
12878    '') as_dir=./ ;;
12879    */) ;;
12880    *) as_dir=$as_dir/ ;;
12881  esac
12882    for ac_exec_ext in '' $ac_executable_extensions; do
12883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12884    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12886    break 2
12887  fi
12888done
12889  done
12890IFS=$as_save_IFS
12891
12892fi
12893fi
12894CC=$ac_cv_prog_CC
12895if test -n "$CC"; then
12896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12897printf "%s\n" "$CC" >&6; }
12898else
12899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900printf "%s\n" "no" >&6; }
12901fi
12902
12903
12904fi
12905if test -z "$ac_cv_prog_CC"; then
12906  ac_ct_CC=$CC
12907  # Extract the first word of "gcc", so it can be a program name with args.
12908set dummy gcc; ac_word=$2
12909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12910printf %s "checking for $ac_word... " >&6; }
12911if test ${ac_cv_prog_ac_ct_CC+y}
12912then :
12913  printf %s "(cached) " >&6
12914else $as_nop
12915  if test -n "$ac_ct_CC"; then
12916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12917else
12918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919for as_dir in $PATH
12920do
12921  IFS=$as_save_IFS
12922  case $as_dir in #(((
12923    '') as_dir=./ ;;
12924    */) ;;
12925    *) as_dir=$as_dir/ ;;
12926  esac
12927    for ac_exec_ext in '' $ac_executable_extensions; do
12928  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12929    ac_cv_prog_ac_ct_CC="gcc"
12930    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12931    break 2
12932  fi
12933done
12934  done
12935IFS=$as_save_IFS
12936
12937fi
12938fi
12939ac_ct_CC=$ac_cv_prog_ac_ct_CC
12940if test -n "$ac_ct_CC"; then
12941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12942printf "%s\n" "$ac_ct_CC" >&6; }
12943else
12944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945printf "%s\n" "no" >&6; }
12946fi
12947
12948  if test "x$ac_ct_CC" = x; then
12949    CC=""
12950  else
12951    case $cross_compiling:$ac_tool_warned in
12952yes:)
12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12954printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12955ac_tool_warned=yes ;;
12956esac
12957    CC=$ac_ct_CC
12958  fi
12959else
12960  CC="$ac_cv_prog_CC"
12961fi
12962
12963if test -z "$CC"; then
12964          if test -n "$ac_tool_prefix"; then
12965    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12966set dummy ${ac_tool_prefix}cc; ac_word=$2
12967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968printf %s "checking for $ac_word... " >&6; }
12969if test ${ac_cv_prog_CC+y}
12970then :
12971  printf %s "(cached) " >&6
12972else $as_nop
12973  if test -n "$CC"; then
12974  ac_cv_prog_CC="$CC" # Let the user override the test.
12975else
12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979  IFS=$as_save_IFS
12980  case $as_dir in #(((
12981    '') as_dir=./ ;;
12982    */) ;;
12983    *) as_dir=$as_dir/ ;;
12984  esac
12985    for ac_exec_ext in '' $ac_executable_extensions; do
12986  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12987    ac_cv_prog_CC="${ac_tool_prefix}cc"
12988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12989    break 2
12990  fi
12991done
12992  done
12993IFS=$as_save_IFS
12994
12995fi
12996fi
12997CC=$ac_cv_prog_CC
12998if test -n "$CC"; then
12999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13000printf "%s\n" "$CC" >&6; }
13001else
13002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003printf "%s\n" "no" >&6; }
13004fi
13005
13006
13007  fi
13008fi
13009if test -z "$CC"; then
13010  # Extract the first word of "cc", so it can be a program name with args.
13011set dummy cc; ac_word=$2
13012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013printf %s "checking for $ac_word... " >&6; }
13014if test ${ac_cv_prog_CC+y}
13015then :
13016  printf %s "(cached) " >&6
13017else $as_nop
13018  if test -n "$CC"; then
13019  ac_cv_prog_CC="$CC" # Let the user override the test.
13020else
13021  ac_prog_rejected=no
13022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $PATH
13024do
13025  IFS=$as_save_IFS
13026  case $as_dir in #(((
13027    '') as_dir=./ ;;
13028    */) ;;
13029    *) as_dir=$as_dir/ ;;
13030  esac
13031    for ac_exec_ext in '' $ac_executable_extensions; do
13032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13033    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13034       ac_prog_rejected=yes
13035       continue
13036     fi
13037    ac_cv_prog_CC="cc"
13038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13039    break 2
13040  fi
13041done
13042  done
13043IFS=$as_save_IFS
13044
13045if test $ac_prog_rejected = yes; then
13046  # We found a bogon in the path, so make sure we never use it.
13047  set dummy $ac_cv_prog_CC
13048  shift
13049  if test $# != 0; then
13050    # We chose a different compiler from the bogus one.
13051    # However, it has the same basename, so the bogon will be chosen
13052    # first if we set CC to just the basename; use the full file name.
13053    shift
13054    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13055  fi
13056fi
13057fi
13058fi
13059CC=$ac_cv_prog_CC
13060if test -n "$CC"; then
13061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13062printf "%s\n" "$CC" >&6; }
13063else
13064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065printf "%s\n" "no" >&6; }
13066fi
13067
13068
13069fi
13070if test -z "$CC"; then
13071  if test -n "$ac_tool_prefix"; then
13072  for ac_prog in cl.exe
13073  do
13074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077printf %s "checking for $ac_word... " >&6; }
13078if test ${ac_cv_prog_CC+y}
13079then :
13080  printf %s "(cached) " >&6
13081else $as_nop
13082  if test -n "$CC"; then
13083  ac_cv_prog_CC="$CC" # Let the user override the test.
13084else
13085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $PATH
13087do
13088  IFS=$as_save_IFS
13089  case $as_dir in #(((
13090    '') as_dir=./ ;;
13091    */) ;;
13092    *) as_dir=$as_dir/ ;;
13093  esac
13094    for ac_exec_ext in '' $ac_executable_extensions; do
13095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13096    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13098    break 2
13099  fi
13100done
13101  done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106CC=$ac_cv_prog_CC
13107if test -n "$CC"; then
13108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13109printf "%s\n" "$CC" >&6; }
13110else
13111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112printf "%s\n" "no" >&6; }
13113fi
13114
13115
13116    test -n "$CC" && break
13117  done
13118fi
13119if test -z "$CC"; then
13120  ac_ct_CC=$CC
13121  for ac_prog in cl.exe
13122do
13123  # Extract the first word of "$ac_prog", so it can be a program name with args.
13124set dummy $ac_prog; ac_word=$2
13125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126printf %s "checking for $ac_word... " >&6; }
13127if test ${ac_cv_prog_ac_ct_CC+y}
13128then :
13129  printf %s "(cached) " >&6
13130else $as_nop
13131  if test -n "$ac_ct_CC"; then
13132  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13133else
13134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135for as_dir in $PATH
13136do
13137  IFS=$as_save_IFS
13138  case $as_dir in #(((
13139    '') as_dir=./ ;;
13140    */) ;;
13141    *) as_dir=$as_dir/ ;;
13142  esac
13143    for ac_exec_ext in '' $ac_executable_extensions; do
13144  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13145    ac_cv_prog_ac_ct_CC="$ac_prog"
13146    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13147    break 2
13148  fi
13149done
13150  done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155ac_ct_CC=$ac_cv_prog_ac_ct_CC
13156if test -n "$ac_ct_CC"; then
13157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13158printf "%s\n" "$ac_ct_CC" >&6; }
13159else
13160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161printf "%s\n" "no" >&6; }
13162fi
13163
13164
13165  test -n "$ac_ct_CC" && break
13166done
13167
13168  if test "x$ac_ct_CC" = x; then
13169    CC=""
13170  else
13171    case $cross_compiling:$ac_tool_warned in
13172yes:)
13173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13174printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13175ac_tool_warned=yes ;;
13176esac
13177    CC=$ac_ct_CC
13178  fi
13179fi
13180
13181fi
13182if test -z "$CC"; then
13183  if test -n "$ac_tool_prefix"; then
13184  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13185set dummy ${ac_tool_prefix}clang; ac_word=$2
13186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187printf %s "checking for $ac_word... " >&6; }
13188if test ${ac_cv_prog_CC+y}
13189then :
13190  printf %s "(cached) " >&6
13191else $as_nop
13192  if test -n "$CC"; then
13193  ac_cv_prog_CC="$CC" # Let the user override the test.
13194else
13195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $PATH
13197do
13198  IFS=$as_save_IFS
13199  case $as_dir in #(((
13200    '') as_dir=./ ;;
13201    */) ;;
13202    *) as_dir=$as_dir/ ;;
13203  esac
13204    for ac_exec_ext in '' $ac_executable_extensions; do
13205  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13206    ac_cv_prog_CC="${ac_tool_prefix}clang"
13207    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13208    break 2
13209  fi
13210done
13211  done
13212IFS=$as_save_IFS
13213
13214fi
13215fi
13216CC=$ac_cv_prog_CC
13217if test -n "$CC"; then
13218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13219printf "%s\n" "$CC" >&6; }
13220else
13221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222printf "%s\n" "no" >&6; }
13223fi
13224
13225
13226fi
13227if test -z "$ac_cv_prog_CC"; then
13228  ac_ct_CC=$CC
13229  # Extract the first word of "clang", so it can be a program name with args.
13230set dummy clang; ac_word=$2
13231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232printf %s "checking for $ac_word... " >&6; }
13233if test ${ac_cv_prog_ac_ct_CC+y}
13234then :
13235  printf %s "(cached) " >&6
13236else $as_nop
13237  if test -n "$ac_ct_CC"; then
13238  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13239else
13240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241for as_dir in $PATH
13242do
13243  IFS=$as_save_IFS
13244  case $as_dir in #(((
13245    '') as_dir=./ ;;
13246    */) ;;
13247    *) as_dir=$as_dir/ ;;
13248  esac
13249    for ac_exec_ext in '' $ac_executable_extensions; do
13250  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13251    ac_cv_prog_ac_ct_CC="clang"
13252    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13253    break 2
13254  fi
13255done
13256  done
13257IFS=$as_save_IFS
13258
13259fi
13260fi
13261ac_ct_CC=$ac_cv_prog_ac_ct_CC
13262if test -n "$ac_ct_CC"; then
13263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13264printf "%s\n" "$ac_ct_CC" >&6; }
13265else
13266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267printf "%s\n" "no" >&6; }
13268fi
13269
13270  if test "x$ac_ct_CC" = x; then
13271    CC=""
13272  else
13273    case $cross_compiling:$ac_tool_warned in
13274yes:)
13275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13277ac_tool_warned=yes ;;
13278esac
13279    CC=$ac_ct_CC
13280  fi
13281else
13282  CC="$ac_cv_prog_CC"
13283fi
13284
13285fi
13286
13287
13288test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13290as_fn_error $? "no acceptable C compiler found in \$PATH
13291See \`config.log' for more details" "$LINENO" 5; }
13292
13293# Provide some information about the compiler.
13294printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13295set X $ac_compile
13296ac_compiler=$2
13297for ac_option in --version -v -V -qversion -version; do
13298  { { ac_try="$ac_compiler $ac_option >&5"
13299case "(($ac_try" in
13300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301  *) ac_try_echo=$ac_try;;
13302esac
13303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13304printf "%s\n" "$ac_try_echo"; } >&5
13305  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13306  ac_status=$?
13307  if test -s conftest.err; then
13308    sed '10a\
13309... rest of stderr output deleted ...
13310         10q' conftest.err >conftest.er1
13311    cat conftest.er1 >&5
13312  fi
13313  rm -f conftest.er1 conftest.err
13314  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13315  test $ac_status = 0; }
13316done
13317
13318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13319printf %s "checking whether the compiler supports GNU C... " >&6; }
13320if test ${ac_cv_c_compiler_gnu+y}
13321then :
13322  printf %s "(cached) " >&6
13323else $as_nop
13324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h.  */
13326
13327int
13328main (void)
13329{
13330#ifndef __GNUC__
13331       choke me
13332#endif
13333
13334  ;
13335  return 0;
13336}
13337_ACEOF
13338if ac_fn_c_try_compile "$LINENO"
13339then :
13340  ac_compiler_gnu=yes
13341else $as_nop
13342  ac_compiler_gnu=no
13343fi
13344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13345ac_cv_c_compiler_gnu=$ac_compiler_gnu
13346
13347fi
13348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13349printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13350ac_compiler_gnu=$ac_cv_c_compiler_gnu
13351
13352if test $ac_compiler_gnu = yes; then
13353  GCC=yes
13354else
13355  GCC=
13356fi
13357ac_test_CFLAGS=${CFLAGS+y}
13358ac_save_CFLAGS=$CFLAGS
13359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13360printf %s "checking whether $CC accepts -g... " >&6; }
13361if test ${ac_cv_prog_cc_g+y}
13362then :
13363  printf %s "(cached) " >&6
13364else $as_nop
13365  ac_save_c_werror_flag=$ac_c_werror_flag
13366   ac_c_werror_flag=yes
13367   ac_cv_prog_cc_g=no
13368   CFLAGS="-g"
13369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370/* end confdefs.h.  */
13371
13372int
13373main (void)
13374{
13375
13376  ;
13377  return 0;
13378}
13379_ACEOF
13380if ac_fn_c_try_compile "$LINENO"
13381then :
13382  ac_cv_prog_cc_g=yes
13383else $as_nop
13384  CFLAGS=""
13385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387
13388int
13389main (void)
13390{
13391
13392  ;
13393  return 0;
13394}
13395_ACEOF
13396if ac_fn_c_try_compile "$LINENO"
13397then :
13398
13399else $as_nop
13400  ac_c_werror_flag=$ac_save_c_werror_flag
13401	 CFLAGS="-g"
13402	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403/* end confdefs.h.  */
13404
13405int
13406main (void)
13407{
13408
13409  ;
13410  return 0;
13411}
13412_ACEOF
13413if ac_fn_c_try_compile "$LINENO"
13414then :
13415  ac_cv_prog_cc_g=yes
13416fi
13417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13418fi
13419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13420fi
13421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13422   ac_c_werror_flag=$ac_save_c_werror_flag
13423fi
13424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13425printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13426if test $ac_test_CFLAGS; then
13427  CFLAGS=$ac_save_CFLAGS
13428elif test $ac_cv_prog_cc_g = yes; then
13429  if test "$GCC" = yes; then
13430    CFLAGS="-g -O2"
13431  else
13432    CFLAGS="-g"
13433  fi
13434else
13435  if test "$GCC" = yes; then
13436    CFLAGS="-O2"
13437  else
13438    CFLAGS=
13439  fi
13440fi
13441ac_prog_cc_stdc=no
13442if test x$ac_prog_cc_stdc = xno
13443then :
13444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13445printf %s "checking for $CC option to enable C11 features... " >&6; }
13446if test ${ac_cv_prog_cc_c11+y}
13447then :
13448  printf %s "(cached) " >&6
13449else $as_nop
13450  ac_cv_prog_cc_c11=no
13451ac_save_CC=$CC
13452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h.  */
13454$ac_c_conftest_c11_program
13455_ACEOF
13456for ac_arg in '' -std=gnu11
13457do
13458  CC="$ac_save_CC $ac_arg"
13459  if ac_fn_c_try_compile "$LINENO"
13460then :
13461  ac_cv_prog_cc_c11=$ac_arg
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.beam
13464  test "x$ac_cv_prog_cc_c11" != "xno" && break
13465done
13466rm -f conftest.$ac_ext
13467CC=$ac_save_CC
13468fi
13469
13470if test "x$ac_cv_prog_cc_c11" = xno
13471then :
13472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13473printf "%s\n" "unsupported" >&6; }
13474else $as_nop
13475  if test "x$ac_cv_prog_cc_c11" = x
13476then :
13477  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13478printf "%s\n" "none needed" >&6; }
13479else $as_nop
13480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13481printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13482     CC="$CC $ac_cv_prog_cc_c11"
13483fi
13484  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13485  ac_prog_cc_stdc=c11
13486fi
13487fi
13488if test x$ac_prog_cc_stdc = xno
13489then :
13490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13491printf %s "checking for $CC option to enable C99 features... " >&6; }
13492if test ${ac_cv_prog_cc_c99+y}
13493then :
13494  printf %s "(cached) " >&6
13495else $as_nop
13496  ac_cv_prog_cc_c99=no
13497ac_save_CC=$CC
13498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499/* end confdefs.h.  */
13500$ac_c_conftest_c99_program
13501_ACEOF
13502for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13503do
13504  CC="$ac_save_CC $ac_arg"
13505  if ac_fn_c_try_compile "$LINENO"
13506then :
13507  ac_cv_prog_cc_c99=$ac_arg
13508fi
13509rm -f core conftest.err conftest.$ac_objext conftest.beam
13510  test "x$ac_cv_prog_cc_c99" != "xno" && break
13511done
13512rm -f conftest.$ac_ext
13513CC=$ac_save_CC
13514fi
13515
13516if test "x$ac_cv_prog_cc_c99" = xno
13517then :
13518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13519printf "%s\n" "unsupported" >&6; }
13520else $as_nop
13521  if test "x$ac_cv_prog_cc_c99" = x
13522then :
13523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13524printf "%s\n" "none needed" >&6; }
13525else $as_nop
13526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13527printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13528     CC="$CC $ac_cv_prog_cc_c99"
13529fi
13530  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13531  ac_prog_cc_stdc=c99
13532fi
13533fi
13534if test x$ac_prog_cc_stdc = xno
13535then :
13536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13537printf %s "checking for $CC option to enable C89 features... " >&6; }
13538if test ${ac_cv_prog_cc_c89+y}
13539then :
13540  printf %s "(cached) " >&6
13541else $as_nop
13542  ac_cv_prog_cc_c89=no
13543ac_save_CC=$CC
13544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h.  */
13546$ac_c_conftest_c89_program
13547_ACEOF
13548for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13549do
13550  CC="$ac_save_CC $ac_arg"
13551  if ac_fn_c_try_compile "$LINENO"
13552then :
13553  ac_cv_prog_cc_c89=$ac_arg
13554fi
13555rm -f core conftest.err conftest.$ac_objext conftest.beam
13556  test "x$ac_cv_prog_cc_c89" != "xno" && break
13557done
13558rm -f conftest.$ac_ext
13559CC=$ac_save_CC
13560fi
13561
13562if test "x$ac_cv_prog_cc_c89" = xno
13563then :
13564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13565printf "%s\n" "unsupported" >&6; }
13566else $as_nop
13567  if test "x$ac_cv_prog_cc_c89" = x
13568then :
13569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13570printf "%s\n" "none needed" >&6; }
13571else $as_nop
13572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13573printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13574     CC="$CC $ac_cv_prog_cc_c89"
13575fi
13576  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13577  ac_prog_cc_stdc=c89
13578fi
13579fi
13580
13581ac_ext=c
13582ac_cpp='$CPP $CPPFLAGS'
13583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13585ac_compiler_gnu=$ac_cv_c_compiler_gnu
13586
13587
13588  ac_ext=c
13589ac_cpp='$CPP $CPPFLAGS'
13590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592ac_compiler_gnu=$ac_cv_c_compiler_gnu
13593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13594printf %s "checking whether $CC understands -c and -o together... " >&6; }
13595if test ${am_cv_prog_cc_c_o+y}
13596then :
13597  printf %s "(cached) " >&6
13598else $as_nop
13599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601
13602int
13603main (void)
13604{
13605
13606  ;
13607  return 0;
13608}
13609_ACEOF
13610  # Make sure it works both with $CC and with simple cc.
13611  # Following AC_PROG_CC_C_O, we do the test twice because some
13612  # compilers refuse to overwrite an existing .o file with -o,
13613  # though they will create one.
13614  am_cv_prog_cc_c_o=yes
13615  for am_i in 1 2; do
13616    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13617   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13618   ac_status=$?
13619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620   (exit $ac_status); } \
13621         && test -f conftest2.$ac_objext; then
13622      : OK
13623    else
13624      am_cv_prog_cc_c_o=no
13625      break
13626    fi
13627  done
13628  rm -f core conftest*
13629  unset am_i
13630fi
13631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13632printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13633if test "$am_cv_prog_cc_c_o" != yes; then
13634   # Losing compiler, so override with the script.
13635   # FIXME: It is wrong to rewrite CC.
13636   # But if we don't then we get into trouble of one sort or another.
13637   # A longer-term fix would be to have automake use am__CC in this case,
13638   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13639   CC="$am_aux_dir/compile $CC"
13640fi
13641ac_ext=c
13642ac_cpp='$CPP $CPPFLAGS'
13643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646
13647
13648
13649
13650
13651cflags_save="$CFLAGS"
13652if test -z "$GCC"; then
13653        case $host in
13654        *-*-irix*)
13655                DEBUG="-g -signed"
13656                CFLAGS="-O2 -w -signed"
13657                PROFILE="-p -g3 -O2 -signed"
13658		;;
13659        sparc-sun-solaris*)
13660                DEBUG="-v -g"
13661                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
13662                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
13663		;;
13664        *)
13665                DEBUG="-g"
13666                CFLAGS="-O"
13667                PROFILE="-g -p"
13668		;;
13669        esac
13670else
13671        case $host in
13672        *-*-linux*)
13673                DEBUG="-g -Wall -fsigned-char"
13674                CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
13675                PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
13676		;;
13677        sparc-sun-*)
13678                DEBUG="-g -Wall -fsigned-char"
13679                CFLAGS="-O2 -ffast-math -fsigned-char"
13680                PROFILE="-pg -g -O2 -fsigned-char"
13681		;;
13682	*-*-darwin*)
13683		DEBUG="-fno-common -g -Wall -fsigned-char"
13684		CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
13685		PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
13686		;;
13687        *)
13688                DEBUG="-g -Wall -fsigned-char"
13689                CFLAGS="-O2 -fsigned-char"
13690                PROFILE="-O2 -g -pg -fsigned-char"
13691		;;
13692        esac
13693fi
13694CFLAGS="$CFLAGS $cflags_save"
13695DEBUG="$DEBUG $cflags_save"
13696PROFILE="$PROFILE $cflags_save"
13697
13698
13699
13700# Autoupdate added the next two lines to ensure that your configure
13701# script's behavior did not change.  They are probably safe to remove.
13702
13703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13704printf %s "checking for egrep... " >&6; }
13705if test ${ac_cv_path_EGREP+y}
13706then :
13707  printf %s "(cached) " >&6
13708else $as_nop
13709  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13710   then ac_cv_path_EGREP="$GREP -E"
13711   else
13712     if test -z "$EGREP"; then
13713  ac_path_EGREP_found=false
13714  # Loop through the user's path and test for each of PROGNAME-LIST
13715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13717do
13718  IFS=$as_save_IFS
13719  case $as_dir in #(((
13720    '') as_dir=./ ;;
13721    */) ;;
13722    *) as_dir=$as_dir/ ;;
13723  esac
13724    for ac_prog in egrep
13725   do
13726    for ac_exec_ext in '' $ac_executable_extensions; do
13727      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13728      as_fn_executable_p "$ac_path_EGREP" || continue
13729# Check for GNU ac_path_EGREP and select it if it is found.
13730  # Check for GNU $ac_path_EGREP
13731case `"$ac_path_EGREP" --version 2>&1` in
13732*GNU*)
13733  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13734*)
13735  ac_count=0
13736  printf %s 0123456789 >"conftest.in"
13737  while :
13738  do
13739    cat "conftest.in" "conftest.in" >"conftest.tmp"
13740    mv "conftest.tmp" "conftest.in"
13741    cp "conftest.in" "conftest.nl"
13742    printf "%s\n" 'EGREP' >> "conftest.nl"
13743    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13744    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13745    as_fn_arith $ac_count + 1 && ac_count=$as_val
13746    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13747      # Best one so far, save it but keep looking for a better one
13748      ac_cv_path_EGREP="$ac_path_EGREP"
13749      ac_path_EGREP_max=$ac_count
13750    fi
13751    # 10*(2^10) chars as input seems more than enough
13752    test $ac_count -gt 10 && break
13753  done
13754  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13755esac
13756
13757      $ac_path_EGREP_found && break 3
13758    done
13759  done
13760  done
13761IFS=$as_save_IFS
13762  if test -z "$ac_cv_path_EGREP"; then
13763    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13764  fi
13765else
13766  ac_cv_path_EGREP=$EGREP
13767fi
13768
13769   fi
13770fi
13771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13772printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13773 EGREP="$ac_cv_path_EGREP"
13774
13775
13776
13777INCLUDE_INTTYPES_H=0
13778INCLUDE_STDINT_H=0
13779INCLUDE_SYS_TYPES_H=0
13780ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13781if test "x$ac_cv_header_inttypes_h" = xyes
13782then :
13783  INCLUDE_INTTYPES_H=1
13784fi
13785
13786ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13787if test "x$ac_cv_header_stdint_h" = xyes
13788then :
13789  INCLUDE_STDINT_H=1
13790fi
13791
13792ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13793if test "x$ac_cv_header_sys_types_h" = xyes
13794then :
13795  INCLUDE_SYS_TYPES_H=1
13796fi
13797
13798
13799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13800printf %s "checking for an ANSI C-conforming const... " >&6; }
13801if test ${ac_cv_c_const+y}
13802then :
13803  printf %s "(cached) " >&6
13804else $as_nop
13805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806/* end confdefs.h.  */
13807
13808int
13809main (void)
13810{
13811
13812#ifndef __cplusplus
13813  /* Ultrix mips cc rejects this sort of thing.  */
13814  typedef int charset[2];
13815  const charset cs = { 0, 0 };
13816  /* SunOS 4.1.1 cc rejects this.  */
13817  char const *const *pcpcc;
13818  char **ppc;
13819  /* NEC SVR4.0.2 mips cc rejects this.  */
13820  struct point {int x, y;};
13821  static struct point const zero = {0,0};
13822  /* IBM XL C 1.02.0.0 rejects this.
13823     It does not let you subtract one const X* pointer from another in
13824     an arm of an if-expression whose if-part is not a constant
13825     expression */
13826  const char *g = "string";
13827  pcpcc = &g + (g ? g-g : 0);
13828  /* HPUX 7.0 cc rejects these. */
13829  ++pcpcc;
13830  ppc = (char**) pcpcc;
13831  pcpcc = (char const *const *) ppc;
13832  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13833    char tx;
13834    char *t = &tx;
13835    char const *s = 0 ? (char *) 0 : (char const *) 0;
13836
13837    *t++ = 0;
13838    if (s) return 0;
13839  }
13840  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13841    int x[] = {25, 17};
13842    const int *foo = &x[0];
13843    ++foo;
13844  }
13845  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13846    typedef const int *iptr;
13847    iptr p = 0;
13848    ++p;
13849  }
13850  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13851       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13852    struct s { int j; const int *ap[3]; } bx;
13853    struct s *b = &bx; b->j = 5;
13854  }
13855  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13856    const int foo = 10;
13857    if (!foo) return 0;
13858  }
13859  return !cs[0] && !zero.x;
13860#endif
13861
13862  ;
13863  return 0;
13864}
13865_ACEOF
13866if ac_fn_c_try_compile "$LINENO"
13867then :
13868  ac_cv_c_const=yes
13869else $as_nop
13870  ac_cv_c_const=no
13871fi
13872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13873fi
13874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13875printf "%s\n" "$ac_cv_c_const" >&6; }
13876if test $ac_cv_c_const = no; then
13877
13878printf "%s\n" "#define const /**/" >>confdefs.h
13879
13880fi
13881
13882
13883
13884# The cast to long int works around a bug in the HP C Compiler
13885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13887# This bug is HP SR number 8606223364.
13888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
13889printf %s "checking size of int16_t... " >&6; }
13890if test ${ac_cv_sizeof_int16_t+y}
13891then :
13892  printf %s "(cached) " >&6
13893else $as_nop
13894  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t"        "$ac_includes_default"
13895then :
13896
13897else $as_nop
13898  if test "$ac_cv_type_int16_t" = yes; then
13899     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13901as_fn_error 77 "cannot compute sizeof (int16_t)
13902See \`config.log' for more details" "$LINENO" 5; }
13903   else
13904     ac_cv_sizeof_int16_t=0
13905   fi
13906fi
13907
13908fi
13909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
13910printf "%s\n" "$ac_cv_sizeof_int16_t" >&6; }
13911
13912
13913
13914printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h
13915
13916
13917# The cast to long int works around a bug in the HP C Compiler
13918# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13919# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13920# This bug is HP SR number 8606223364.
13921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
13922printf %s "checking size of uint16_t... " >&6; }
13923if test ${ac_cv_sizeof_uint16_t+y}
13924then :
13925  printf %s "(cached) " >&6
13926else $as_nop
13927  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t"        "$ac_includes_default"
13928then :
13929
13930else $as_nop
13931  if test "$ac_cv_type_uint16_t" = yes; then
13932     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13933printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13934as_fn_error 77 "cannot compute sizeof (uint16_t)
13935See \`config.log' for more details" "$LINENO" 5; }
13936   else
13937     ac_cv_sizeof_uint16_t=0
13938   fi
13939fi
13940
13941fi
13942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
13943printf "%s\n" "$ac_cv_sizeof_uint16_t" >&6; }
13944
13945
13946
13947printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h
13948
13949
13950# The cast to long int works around a bug in the HP C Compiler
13951# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13952# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13953# This bug is HP SR number 8606223364.
13954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
13955printf %s "checking size of u_int16_t... " >&6; }
13956if test ${ac_cv_sizeof_u_int16_t+y}
13957then :
13958  printf %s "(cached) " >&6
13959else $as_nop
13960  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t"        "$ac_includes_default"
13961then :
13962
13963else $as_nop
13964  if test "$ac_cv_type_u_int16_t" = yes; then
13965     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13966printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13967as_fn_error 77 "cannot compute sizeof (u_int16_t)
13968See \`config.log' for more details" "$LINENO" 5; }
13969   else
13970     ac_cv_sizeof_u_int16_t=0
13971   fi
13972fi
13973
13974fi
13975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
13976printf "%s\n" "$ac_cv_sizeof_u_int16_t" >&6; }
13977
13978
13979
13980printf "%s\n" "#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t" >>confdefs.h
13981
13982
13983# The cast to long int works around a bug in the HP C Compiler
13984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13986# This bug is HP SR number 8606223364.
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
13988printf %s "checking size of int32_t... " >&6; }
13989if test ${ac_cv_sizeof_int32_t+y}
13990then :
13991  printf %s "(cached) " >&6
13992else $as_nop
13993  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t"        "$ac_includes_default"
13994then :
13995
13996else $as_nop
13997  if test "$ac_cv_type_int32_t" = yes; then
13998     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13999printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14000as_fn_error 77 "cannot compute sizeof (int32_t)
14001See \`config.log' for more details" "$LINENO" 5; }
14002   else
14003     ac_cv_sizeof_int32_t=0
14004   fi
14005fi
14006
14007fi
14008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
14009printf "%s\n" "$ac_cv_sizeof_int32_t" >&6; }
14010
14011
14012
14013printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h
14014
14015
14016# The cast to long int works around a bug in the HP C Compiler
14017# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14018# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14019# This bug is HP SR number 8606223364.
14020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
14021printf %s "checking size of uint32_t... " >&6; }
14022if test ${ac_cv_sizeof_uint32_t+y}
14023then :
14024  printf %s "(cached) " >&6
14025else $as_nop
14026  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t"        "$ac_includes_default"
14027then :
14028
14029else $as_nop
14030  if test "$ac_cv_type_uint32_t" = yes; then
14031     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14032printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14033as_fn_error 77 "cannot compute sizeof (uint32_t)
14034See \`config.log' for more details" "$LINENO" 5; }
14035   else
14036     ac_cv_sizeof_uint32_t=0
14037   fi
14038fi
14039
14040fi
14041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
14042printf "%s\n" "$ac_cv_sizeof_uint32_t" >&6; }
14043
14044
14045
14046printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h
14047
14048
14049# The cast to long int works around a bug in the HP C Compiler
14050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14052# This bug is HP SR number 8606223364.
14053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
14054printf %s "checking size of u_int32_t... " >&6; }
14055if test ${ac_cv_sizeof_u_int32_t+y}
14056then :
14057  printf %s "(cached) " >&6
14058else $as_nop
14059  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t"        "$ac_includes_default"
14060then :
14061
14062else $as_nop
14063  if test "$ac_cv_type_u_int32_t" = yes; then
14064     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14066as_fn_error 77 "cannot compute sizeof (u_int32_t)
14067See \`config.log' for more details" "$LINENO" 5; }
14068   else
14069     ac_cv_sizeof_u_int32_t=0
14070   fi
14071fi
14072
14073fi
14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
14075printf "%s\n" "$ac_cv_sizeof_u_int32_t" >&6; }
14076
14077
14078
14079printf "%s\n" "#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t" >>confdefs.h
14080
14081
14082# The cast to long int works around a bug in the HP C Compiler
14083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14085# This bug is HP SR number 8606223364.
14086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
14087printf %s "checking size of int64_t... " >&6; }
14088if test ${ac_cv_sizeof_int64_t+y}
14089then :
14090  printf %s "(cached) " >&6
14091else $as_nop
14092  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"
14093then :
14094
14095else $as_nop
14096  if test "$ac_cv_type_int64_t" = yes; then
14097     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14099as_fn_error 77 "cannot compute sizeof (int64_t)
14100See \`config.log' for more details" "$LINENO" 5; }
14101   else
14102     ac_cv_sizeof_int64_t=0
14103   fi
14104fi
14105
14106fi
14107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
14108printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; }
14109
14110
14111
14112printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h
14113
14114
14115# The cast to long int works around a bug in the HP C Compiler
14116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14118# This bug is HP SR number 8606223364.
14119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
14120printf %s "checking size of uint64_t... " >&6; }
14121if test ${ac_cv_sizeof_uint64_t+y}
14122then :
14123  printf %s "(cached) " >&6
14124else $as_nop
14125  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t"        "$ac_includes_default"
14126then :
14127
14128else $as_nop
14129  if test "$ac_cv_type_uint64_t" = yes; then
14130     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14131printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14132as_fn_error 77 "cannot compute sizeof (uint64_t)
14133See \`config.log' for more details" "$LINENO" 5; }
14134   else
14135     ac_cv_sizeof_uint64_t=0
14136   fi
14137fi
14138
14139fi
14140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
14141printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; }
14142
14143
14144
14145printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h
14146
14147
14148# The cast to long int works around a bug in the HP C Compiler
14149# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14150# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14151# This bug is HP SR number 8606223364.
14152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14153printf %s "checking size of short... " >&6; }
14154if test ${ac_cv_sizeof_short+y}
14155then :
14156  printf %s "(cached) " >&6
14157else $as_nop
14158  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
14159then :
14160
14161else $as_nop
14162  if test "$ac_cv_type_short" = yes; then
14163     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14164printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14165as_fn_error 77 "cannot compute sizeof (short)
14166See \`config.log' for more details" "$LINENO" 5; }
14167   else
14168     ac_cv_sizeof_short=0
14169   fi
14170fi
14171
14172fi
14173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14174printf "%s\n" "$ac_cv_sizeof_short" >&6; }
14175
14176
14177
14178printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
14179
14180
14181# The cast to long int works around a bug in the HP C Compiler
14182# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14183# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14184# This bug is HP SR number 8606223364.
14185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14186printf %s "checking size of int... " >&6; }
14187if test ${ac_cv_sizeof_int+y}
14188then :
14189  printf %s "(cached) " >&6
14190else $as_nop
14191  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
14192then :
14193
14194else $as_nop
14195  if test "$ac_cv_type_int" = yes; then
14196     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14197printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14198as_fn_error 77 "cannot compute sizeof (int)
14199See \`config.log' for more details" "$LINENO" 5; }
14200   else
14201     ac_cv_sizeof_int=0
14202   fi
14203fi
14204
14205fi
14206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14207printf "%s\n" "$ac_cv_sizeof_int" >&6; }
14208
14209
14210
14211printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
14212
14213
14214# The cast to long int works around a bug in the HP C Compiler
14215# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14216# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14217# This bug is HP SR number 8606223364.
14218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14219printf %s "checking size of long... " >&6; }
14220if test ${ac_cv_sizeof_long+y}
14221then :
14222  printf %s "(cached) " >&6
14223else $as_nop
14224  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
14225then :
14226
14227else $as_nop
14228  if test "$ac_cv_type_long" = yes; then
14229     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14230printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14231as_fn_error 77 "cannot compute sizeof (long)
14232See \`config.log' for more details" "$LINENO" 5; }
14233   else
14234     ac_cv_sizeof_long=0
14235   fi
14236fi
14237
14238fi
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14240printf "%s\n" "$ac_cv_sizeof_long" >&6; }
14241
14242
14243
14244printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
14245
14246
14247# The cast to long int works around a bug in the HP C Compiler
14248# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14249# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14250# This bug is HP SR number 8606223364.
14251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14252printf %s "checking size of long long... " >&6; }
14253if test ${ac_cv_sizeof_long_long+y}
14254then :
14255  printf %s "(cached) " >&6
14256else $as_nop
14257  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
14258then :
14259
14260else $as_nop
14261  if test "$ac_cv_type_long_long" = yes; then
14262     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14263printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14264as_fn_error 77 "cannot compute sizeof (long long)
14265See \`config.log' for more details" "$LINENO" 5; }
14266   else
14267     ac_cv_sizeof_long_long=0
14268   fi
14269fi
14270
14271fi
14272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14273printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
14274
14275
14276
14277printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
14278
14279
14280
14281case 2 in
14282     $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
14283     $ac_cv_sizeof_short) SIZE16="short";;
14284     $ac_cv_sizeof_int) SIZE16="int";;
14285esac
14286
14287case 2 in
14288     $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
14289     $ac_cv_sizeof_short) USIZE16="unsigned short";;
14290     $ac_cv_sizeof_int) USIZE16="unsigned int";;
14291     $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
14292esac
14293
14294case 4 in
14295     $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
14296     $ac_cv_sizeof_short) SIZE32="short";;
14297     $ac_cv_sizeof_int) SIZE32="int";;
14298     $ac_cv_sizeof_long) SIZE32="long";;
14299esac
14300
14301case 4 in
14302     $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
14303     $ac_cv_sizeof_short) USIZE32="unsigned short";;
14304     $ac_cv_sizeof_int) USIZE32="unsigned int";;
14305     $ac_cv_sizeof_long) USIZE32="unsigned long";;
14306     $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
14307esac
14308
14309case 8 in
14310     $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
14311     $ac_cv_sizeof_int) SIZE64="int";;
14312     $ac_cv_sizeof_long) SIZE64="long";;
14313     $ac_cv_sizeof_long_long) SIZE64="long long";;
14314esac
14315
14316case 8 in
14317     $ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
14318     $ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
14319     $ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
14320     $ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
14321esac
14322
14323if test -z "$SIZE16"; then
14324        as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
14325fi
14326if test -z "$USIZE16"; then
14327        as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
14328fi
14329if test -z "$SIZE32"; then
14330        as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
14331fi
14332if test -z "$USIZE32"; then
14333        as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
14334fi
14335if test -z "$SIZE64"; then
14336        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
14337printf "%s\n" "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
14338fi
14339if test -z "$USIZE64"; then
14340        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No unsigned 64 bit type found on this platform!" >&5
14341printf "%s\n" "$as_me: WARNING: No unsigned 64 bit type found on this platform!" >&2;}
14342fi
14343
14344# Check whether --enable-crc was given.
14345if test ${enable_crc+y}
14346then :
14347  enableval=$enable_crc;
14348else $as_nop
14349  enable_crc=yes
14350fi
14351
14352
14353 if test "$enable_crc" = "no"; then
14354  DISABLE_CRC_TRUE=
14355  DISABLE_CRC_FALSE='#'
14356else
14357  DISABLE_CRC_TRUE='#'
14358  DISABLE_CRC_FALSE=
14359fi
14360
14361
14362if test "$enable_crc" = "no"
14363then :
14364
14365
14366printf "%s\n" "#define DISABLE_CRC 1" >>confdefs.h
14367
14368
14369fi
14370
14371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14372printf %s "checking for working memcmp... " >&6; }
14373if test ${ac_cv_func_memcmp_working+y}
14374then :
14375  printf %s "(cached) " >&6
14376else $as_nop
14377  if test "$cross_compiling" = yes
14378then :
14379  ac_cv_func_memcmp_working=no
14380else $as_nop
14381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382/* end confdefs.h.  */
14383$ac_includes_default
14384int
14385main (void)
14386{
14387
14388  /* Some versions of memcmp are not 8-bit clean.  */
14389  char c0 = '\100', c1 = '\200', c2 = '\201';
14390  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14391    return 1;
14392
14393  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14394     or more and with at least one buffer not starting on a 4-byte boundary.
14395     William Lewis provided this test program.   */
14396  {
14397    char foo[21];
14398    char bar[21];
14399    int i;
14400    for (i = 0; i < 4; i++)
14401      {
14402	char *a = foo + i;
14403	char *b = bar + i;
14404	strcpy (a, "--------01111111");
14405	strcpy (b, "--------10000000");
14406	if (memcmp (a, b, 16) >= 0)
14407	  return 1;
14408      }
14409    return 0;
14410  }
14411
14412  ;
14413  return 0;
14414}
14415_ACEOF
14416if ac_fn_c_try_run "$LINENO"
14417then :
14418  ac_cv_func_memcmp_working=yes
14419else $as_nop
14420  ac_cv_func_memcmp_working=no
14421fi
14422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14423  conftest.$ac_objext conftest.beam conftest.$ac_ext
14424fi
14425
14426fi
14427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14428printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
14429test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14430  *" memcmp.$ac_objext "* ) ;;
14431  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14432 ;;
14433esac
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
14456
14457ac_config_headers="$ac_config_headers config.h"
14458
14459
14460cat >confcache <<\_ACEOF
14461# This file is a shell script that caches the results of configure
14462# tests run on this system so they can be shared between configure
14463# scripts and configure runs, see configure's option --config-cache.
14464# It is not useful on other systems.  If it contains results you don't
14465# want to keep, you may remove or edit it.
14466#
14467# config.status only pays attention to the cache file if you give it
14468# the --recheck option to rerun configure.
14469#
14470# `ac_cv_env_foo' variables (set or unset) will be overridden when
14471# loading this file, other *unset* `ac_cv_foo' will be assigned the
14472# following values.
14473
14474_ACEOF
14475
14476# The following way of writing the cache mishandles newlines in values,
14477# but we know of no workaround that is simple, portable, and efficient.
14478# So, we kill variables containing newlines.
14479# Ultrix sh set writes to stderr and can't be redirected directly,
14480# and sets the high bit in the cache file unless we assign to the vars.
14481(
14482  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14483    eval ac_val=\$$ac_var
14484    case $ac_val in #(
14485    *${as_nl}*)
14486      case $ac_var in #(
14487      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14488printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14489      esac
14490      case $ac_var in #(
14491      _ | IFS | as_nl) ;; #(
14492      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14493      *) { eval $ac_var=; unset $ac_var;} ;;
14494      esac ;;
14495    esac
14496  done
14497
14498  (set) 2>&1 |
14499    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14500    *${as_nl}ac_space=\ *)
14501      # `set' does not quote correctly, so add quotes: double-quote
14502      # substitution turns \\\\ into \\, and sed turns \\ into \.
14503      sed -n \
14504	"s/'/'\\\\''/g;
14505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14506      ;; #(
14507    *)
14508      # `set' quotes correctly as required by POSIX, so do not add quotes.
14509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14510      ;;
14511    esac |
14512    sort
14513) |
14514  sed '
14515     /^ac_cv_env_/b end
14516     t clear
14517     :clear
14518     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14519     t end
14520     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14521     :end' >>confcache
14522if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14523  if test -w "$cache_file"; then
14524    if test "x$cache_file" != "x/dev/null"; then
14525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14526printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14527      if test ! -f "$cache_file" || test -h "$cache_file"; then
14528	cat confcache >"$cache_file"
14529      else
14530        case $cache_file in #(
14531        */* | ?:*)
14532	  mv -f confcache "$cache_file"$$ &&
14533	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14534        *)
14535	  mv -f confcache "$cache_file" ;;
14536	esac
14537      fi
14538    fi
14539  else
14540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14541printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14542  fi
14543fi
14544rm -f confcache
14545
14546test "x$prefix" = xNONE && prefix=$ac_default_prefix
14547# Let make expand exec_prefix.
14548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14549
14550DEFS=-DHAVE_CONFIG_H
14551
14552ac_libobjs=
14553ac_ltlibobjs=
14554U=
14555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14556  # 1. Remove the extension, and $U if already installed.
14557  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14558  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14559  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14560  #    will be set to the directory where LIBOBJS objects are built.
14561  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14562  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14563done
14564LIBOBJS=$ac_libobjs
14565
14566LTLIBOBJS=$ac_ltlibobjs
14567
14568
14569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14570printf %s "checking that generated files are newer than configure... " >&6; }
14571   if test -n "$am_sleep_pid"; then
14572     # Hide warnings about reused PIDs.
14573     wait $am_sleep_pid 2>/dev/null
14574   fi
14575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14576printf "%s\n" "done" >&6; }
14577if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14578  as_fn_error $? "conditional \"AMDEP\" was never defined.
14579Usually this means the macro was only invoked conditionally." "$LINENO" 5
14580fi
14581if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14582  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14583Usually this means the macro was only invoked conditionally." "$LINENO" 5
14584fi
14585 if test -n "$EXEEXT"; then
14586  am__EXEEXT_TRUE=
14587  am__EXEEXT_FALSE='#'
14588else
14589  am__EXEEXT_TRUE='#'
14590  am__EXEEXT_FALSE=
14591fi
14592
14593if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14594  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14595Usually this means the macro was only invoked conditionally." "$LINENO" 5
14596fi
14597if test -z "${DISABLE_CRC_TRUE}" && test -z "${DISABLE_CRC_FALSE}"; then
14598  as_fn_error $? "conditional \"DISABLE_CRC\" was never defined.
14599Usually this means the macro was only invoked conditionally." "$LINENO" 5
14600fi
14601
14602: "${CONFIG_STATUS=./config.status}"
14603ac_write_fail=0
14604ac_clean_files_save=$ac_clean_files
14605ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14607printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14608as_write_fail=0
14609cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14610#! $SHELL
14611# Generated by $as_me.
14612# Run this file to recreate the current configuration.
14613# Compiler output produced by configure, useful for debugging
14614# configure, is in config.log if it exists.
14615
14616debug=false
14617ac_cs_recheck=false
14618ac_cs_silent=false
14619
14620SHELL=\${CONFIG_SHELL-$SHELL}
14621export SHELL
14622_ASEOF
14623cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14624## -------------------- ##
14625## M4sh Initialization. ##
14626## -------------------- ##
14627
14628# Be more Bourne compatible
14629DUALCASE=1; export DUALCASE # for MKS sh
14630as_nop=:
14631if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14632then :
14633  emulate sh
14634  NULLCMD=:
14635  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14636  # is contrary to our usage.  Disable this feature.
14637  alias -g '${1+"$@"}'='"$@"'
14638  setopt NO_GLOB_SUBST
14639else $as_nop
14640  case `(set -o) 2>/dev/null` in #(
14641  *posix*) :
14642    set -o posix ;; #(
14643  *) :
14644     ;;
14645esac
14646fi
14647
14648
14649
14650# Reset variables that may have inherited troublesome values from
14651# the environment.
14652
14653# IFS needs to be set, to space, tab, and newline, in precisely that order.
14654# (If _AS_PATH_WALK were called with IFS unset, it would have the
14655# side effect of setting IFS to empty, thus disabling word splitting.)
14656# Quoting is to prevent editors from complaining about space-tab.
14657as_nl='
14658'
14659export as_nl
14660IFS=" ""	$as_nl"
14661
14662PS1='$ '
14663PS2='> '
14664PS4='+ '
14665
14666# Ensure predictable behavior from utilities with locale-dependent output.
14667LC_ALL=C
14668export LC_ALL
14669LANGUAGE=C
14670export LANGUAGE
14671
14672# We cannot yet rely on "unset" to work, but we need these variables
14673# to be unset--not just set to an empty or harmless value--now, to
14674# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
14675# also avoids known problems related to "unset" and subshell syntax
14676# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14677for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14678do eval test \${$as_var+y} \
14679  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14680done
14681
14682# Ensure that fds 0, 1, and 2 are open.
14683if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14684if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14685if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
14686
14687# The user is always right.
14688if ${PATH_SEPARATOR+false} :; then
14689  PATH_SEPARATOR=:
14690  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14691    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14692      PATH_SEPARATOR=';'
14693  }
14694fi
14695
14696
14697# Find who we are.  Look in the path if we contain no directory separator.
14698as_myself=
14699case $0 in #((
14700  *[\\/]* ) as_myself=$0 ;;
14701  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14702for as_dir in $PATH
14703do
14704  IFS=$as_save_IFS
14705  case $as_dir in #(((
14706    '') as_dir=./ ;;
14707    */) ;;
14708    *) as_dir=$as_dir/ ;;
14709  esac
14710    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14711  done
14712IFS=$as_save_IFS
14713
14714     ;;
14715esac
14716# We did not find ourselves, most probably we were run as `sh COMMAND'
14717# in which case we are not to be found in the path.
14718if test "x$as_myself" = x; then
14719  as_myself=$0
14720fi
14721if test ! -f "$as_myself"; then
14722  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14723  exit 1
14724fi
14725
14726
14727
14728# as_fn_error STATUS ERROR [LINENO LOG_FD]
14729# ----------------------------------------
14730# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14731# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14732# script with STATUS, using 1 if that was 0.
14733as_fn_error ()
14734{
14735  as_status=$1; test $as_status -eq 0 && as_status=1
14736  if test "$4"; then
14737    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14739  fi
14740  printf "%s\n" "$as_me: error: $2" >&2
14741  as_fn_exit $as_status
14742} # as_fn_error
14743
14744
14745
14746# as_fn_set_status STATUS
14747# -----------------------
14748# Set $? to STATUS, without forking.
14749as_fn_set_status ()
14750{
14751  return $1
14752} # as_fn_set_status
14753
14754# as_fn_exit STATUS
14755# -----------------
14756# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14757as_fn_exit ()
14758{
14759  set +e
14760  as_fn_set_status $1
14761  exit $1
14762} # as_fn_exit
14763
14764# as_fn_unset VAR
14765# ---------------
14766# Portably unset VAR.
14767as_fn_unset ()
14768{
14769  { eval $1=; unset $1;}
14770}
14771as_unset=as_fn_unset
14772
14773# as_fn_append VAR VALUE
14774# ----------------------
14775# Append the text in VALUE to the end of the definition contained in VAR. Take
14776# advantage of any shell optimizations that allow amortized linear growth over
14777# repeated appends, instead of the typical quadratic growth present in naive
14778# implementations.
14779if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14780then :
14781  eval 'as_fn_append ()
14782  {
14783    eval $1+=\$2
14784  }'
14785else $as_nop
14786  as_fn_append ()
14787  {
14788    eval $1=\$$1\$2
14789  }
14790fi # as_fn_append
14791
14792# as_fn_arith ARG...
14793# ------------------
14794# Perform arithmetic evaluation on the ARGs, and store the result in the
14795# global $as_val. Take advantage of shells that can avoid forks. The arguments
14796# must be portable across $(()) and expr.
14797if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14798then :
14799  eval 'as_fn_arith ()
14800  {
14801    as_val=$(( $* ))
14802  }'
14803else $as_nop
14804  as_fn_arith ()
14805  {
14806    as_val=`expr "$@" || test $? -eq 1`
14807  }
14808fi # as_fn_arith
14809
14810
14811if expr a : '\(a\)' >/dev/null 2>&1 &&
14812   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14813  as_expr=expr
14814else
14815  as_expr=false
14816fi
14817
14818if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14819  as_basename=basename
14820else
14821  as_basename=false
14822fi
14823
14824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14825  as_dirname=dirname
14826else
14827  as_dirname=false
14828fi
14829
14830as_me=`$as_basename -- "$0" ||
14831$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14832	 X"$0" : 'X\(//\)$' \| \
14833	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14834printf "%s\n" X/"$0" |
14835    sed '/^.*\/\([^/][^/]*\)\/*$/{
14836	    s//\1/
14837	    q
14838	  }
14839	  /^X\/\(\/\/\)$/{
14840	    s//\1/
14841	    q
14842	  }
14843	  /^X\/\(\/\).*/{
14844	    s//\1/
14845	    q
14846	  }
14847	  s/.*/./; q'`
14848
14849# Avoid depending upon Character Ranges.
14850as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14851as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14852as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14853as_cr_digits='0123456789'
14854as_cr_alnum=$as_cr_Letters$as_cr_digits
14855
14856
14857# Determine whether it's possible to make 'echo' print without a newline.
14858# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14859# for compatibility with existing Makefiles.
14860ECHO_C= ECHO_N= ECHO_T=
14861case `echo -n x` in #(((((
14862-n*)
14863  case `echo 'xy\c'` in
14864  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14865  xy)  ECHO_C='\c';;
14866  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14867       ECHO_T='	';;
14868  esac;;
14869*)
14870  ECHO_N='-n';;
14871esac
14872
14873# For backward compatibility with old third-party macros, we provide
14874# the shell variables $as_echo and $as_echo_n.  New code should use
14875# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14876as_echo='printf %s\n'
14877as_echo_n='printf %s'
14878
14879rm -f conf$$ conf$$.exe conf$$.file
14880if test -d conf$$.dir; then
14881  rm -f conf$$.dir/conf$$.file
14882else
14883  rm -f conf$$.dir
14884  mkdir conf$$.dir 2>/dev/null
14885fi
14886if (echo >conf$$.file) 2>/dev/null; then
14887  if ln -s conf$$.file conf$$ 2>/dev/null; then
14888    as_ln_s='ln -s'
14889    # ... but there are two gotchas:
14890    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14891    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14892    # In both cases, we have to default to `cp -pR'.
14893    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14894      as_ln_s='cp -pR'
14895  elif ln conf$$.file conf$$ 2>/dev/null; then
14896    as_ln_s=ln
14897  else
14898    as_ln_s='cp -pR'
14899  fi
14900else
14901  as_ln_s='cp -pR'
14902fi
14903rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14904rmdir conf$$.dir 2>/dev/null
14905
14906
14907# as_fn_mkdir_p
14908# -------------
14909# Create "$as_dir" as a directory, including parents if necessary.
14910as_fn_mkdir_p ()
14911{
14912
14913  case $as_dir in #(
14914  -*) as_dir=./$as_dir;;
14915  esac
14916  test -d "$as_dir" || eval $as_mkdir_p || {
14917    as_dirs=
14918    while :; do
14919      case $as_dir in #(
14920      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14921      *) as_qdir=$as_dir;;
14922      esac
14923      as_dirs="'$as_qdir' $as_dirs"
14924      as_dir=`$as_dirname -- "$as_dir" ||
14925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14926	 X"$as_dir" : 'X\(//\)[^/]' \| \
14927	 X"$as_dir" : 'X\(//\)$' \| \
14928	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14929printf "%s\n" X"$as_dir" |
14930    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14931	    s//\1/
14932	    q
14933	  }
14934	  /^X\(\/\/\)[^/].*/{
14935	    s//\1/
14936	    q
14937	  }
14938	  /^X\(\/\/\)$/{
14939	    s//\1/
14940	    q
14941	  }
14942	  /^X\(\/\).*/{
14943	    s//\1/
14944	    q
14945	  }
14946	  s/.*/./; q'`
14947      test -d "$as_dir" && break
14948    done
14949    test -z "$as_dirs" || eval "mkdir $as_dirs"
14950  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14951
14952
14953} # as_fn_mkdir_p
14954if mkdir -p . 2>/dev/null; then
14955  as_mkdir_p='mkdir -p "$as_dir"'
14956else
14957  test -d ./-p && rmdir ./-p
14958  as_mkdir_p=false
14959fi
14960
14961
14962# as_fn_executable_p FILE
14963# -----------------------
14964# Test if FILE is an executable regular file.
14965as_fn_executable_p ()
14966{
14967  test -f "$1" && test -x "$1"
14968} # as_fn_executable_p
14969as_test_x='test -x'
14970as_executable_p=as_fn_executable_p
14971
14972# Sed expression to map a string onto a valid CPP name.
14973as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14974
14975# Sed expression to map a string onto a valid variable name.
14976as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14977
14978
14979exec 6>&1
14980## ----------------------------------- ##
14981## Main body of $CONFIG_STATUS script. ##
14982## ----------------------------------- ##
14983_ASEOF
14984test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14985
14986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987# Save the log message, to keep $0 and so on meaningful, and to
14988# report actual input values of CONFIG_FILES etc. instead of their
14989# values after options handling.
14990ac_log="
14991This file was extended by libogg $as_me 1.3.5, which was
14992generated by GNU Autoconf 2.71.  Invocation command line was
14993
14994  CONFIG_FILES    = $CONFIG_FILES
14995  CONFIG_HEADERS  = $CONFIG_HEADERS
14996  CONFIG_LINKS    = $CONFIG_LINKS
14997  CONFIG_COMMANDS = $CONFIG_COMMANDS
14998  $ $0 $@
14999
15000on `(hostname || uname -n) 2>/dev/null | sed 1q`
15001"
15002
15003_ACEOF
15004
15005case $ac_config_files in *"
15006"*) set x $ac_config_files; shift; ac_config_files=$*;;
15007esac
15008
15009case $ac_config_headers in *"
15010"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15011esac
15012
15013
15014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015# Files that config.status was made for.
15016config_files="$ac_config_files"
15017config_headers="$ac_config_headers"
15018config_commands="$ac_config_commands"
15019
15020_ACEOF
15021
15022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023ac_cs_usage="\
15024\`$as_me' instantiates files and other configuration actions
15025from templates according to the current configuration.  Unless the files
15026and actions are specified as TAGs, all are instantiated by default.
15027
15028Usage: $0 [OPTION]... [TAG]...
15029
15030  -h, --help       print this help, then exit
15031  -V, --version    print version number and configuration settings, then exit
15032      --config     print configuration, then exit
15033  -q, --quiet, --silent
15034                   do not print progress messages
15035  -d, --debug      don't remove temporary files
15036      --recheck    update $as_me by reconfiguring in the same conditions
15037      --file=FILE[:TEMPLATE]
15038                   instantiate the configuration file FILE
15039      --header=FILE[:TEMPLATE]
15040                   instantiate the configuration header FILE
15041
15042Configuration files:
15043$config_files
15044
15045Configuration headers:
15046$config_headers
15047
15048Configuration commands:
15049$config_commands
15050
15051Report bugs to <[email protected]>."
15052
15053_ACEOF
15054ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15055ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057ac_cs_config='$ac_cs_config_escaped'
15058ac_cs_version="\\
15059libogg config.status 1.3.5
15060configured by $0, generated by GNU Autoconf 2.71,
15061  with options \\"\$ac_cs_config\\"
15062
15063Copyright (C) 2021 Free Software Foundation, Inc.
15064This config.status script is free software; the Free Software Foundation
15065gives unlimited permission to copy, distribute and modify it."
15066
15067ac_pwd='$ac_pwd'
15068srcdir='$srcdir'
15069INSTALL='$INSTALL'
15070MKDIR_P='$MKDIR_P'
15071AWK='$AWK'
15072test -n "\$AWK" || AWK=awk
15073_ACEOF
15074
15075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15076# The default lists apply if the user does not specify any file.
15077ac_need_defaults=:
15078while test $# != 0
15079do
15080  case $1 in
15081  --*=?*)
15082    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15083    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15084    ac_shift=:
15085    ;;
15086  --*=)
15087    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15088    ac_optarg=
15089    ac_shift=:
15090    ;;
15091  *)
15092    ac_option=$1
15093    ac_optarg=$2
15094    ac_shift=shift
15095    ;;
15096  esac
15097
15098  case $ac_option in
15099  # Handling of the options.
15100  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15101    ac_cs_recheck=: ;;
15102  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15103    printf "%s\n" "$ac_cs_version"; exit ;;
15104  --config | --confi | --conf | --con | --co | --c )
15105    printf "%s\n" "$ac_cs_config"; exit ;;
15106  --debug | --debu | --deb | --de | --d | -d )
15107    debug=: ;;
15108  --file | --fil | --fi | --f )
15109    $ac_shift
15110    case $ac_optarg in
15111    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15112    '') as_fn_error $? "missing file argument" ;;
15113    esac
15114    as_fn_append CONFIG_FILES " '$ac_optarg'"
15115    ac_need_defaults=false;;
15116  --header | --heade | --head | --hea )
15117    $ac_shift
15118    case $ac_optarg in
15119    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15120    esac
15121    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15122    ac_need_defaults=false;;
15123  --he | --h)
15124    # Conflict between --help and --header
15125    as_fn_error $? "ambiguous option: \`$1'
15126Try \`$0 --help' for more information.";;
15127  --help | --hel | -h )
15128    printf "%s\n" "$ac_cs_usage"; exit ;;
15129  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15130  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15131    ac_cs_silent=: ;;
15132
15133  # This is an error.
15134  -*) as_fn_error $? "unrecognized option: \`$1'
15135Try \`$0 --help' for more information." ;;
15136
15137  *) as_fn_append ac_config_targets " $1"
15138     ac_need_defaults=false ;;
15139
15140  esac
15141  shift
15142done
15143
15144ac_configure_extra_args=
15145
15146if $ac_cs_silent; then
15147  exec 6>/dev/null
15148  ac_configure_extra_args="$ac_configure_extra_args --silent"
15149fi
15150
15151_ACEOF
15152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15153if \$ac_cs_recheck; then
15154  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15155  shift
15156  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15157  CONFIG_SHELL='$SHELL'
15158  export CONFIG_SHELL
15159  exec "\$@"
15160fi
15161
15162_ACEOF
15163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15164exec 5>>config.log
15165{
15166  echo
15167  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15168## Running $as_me. ##
15169_ASBOX
15170  printf "%s\n" "$ac_log"
15171} >&5
15172
15173_ACEOF
15174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15175#
15176# INIT-COMMANDS
15177#
15178
15179
15180# The HP-UX ksh and POSIX shell print the target directory to stdout
15181# if CDPATH is set.
15182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15183
15184sed_quote_subst='$sed_quote_subst'
15185double_quote_subst='$double_quote_subst'
15186delay_variable_subst='$delay_variable_subst'
15187macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15188macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15189enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15190enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15191pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15192enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15193shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15194SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15195ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15196PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15197host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15198host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15199host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15200build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15201build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15202build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15203SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15204Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15205GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15206EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15207FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15208LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15209NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15210LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15211max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15212ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15213exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15214lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15215lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15216lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15217lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15218lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15219reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15220reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15221FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15222OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15223deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15224file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15225file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15226want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15227DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15228sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15229AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15230lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15231AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15232archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15233STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15234RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15235old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15236old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15237old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15238lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15239CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15240CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15241compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15242GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15243lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15244lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15245lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15246lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15247lt_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"`'
15248lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15249nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15250lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15251lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15252objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15253MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15254lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15255lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15256lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15257lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15258lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15259need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15260MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15261DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15262NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15263LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15264OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15265OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15266libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15267shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15268extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15269archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15270enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15271export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15272whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15273compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15274old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15275old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15276archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15277archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15278module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15279module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15280with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15281allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15282no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15283hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15284hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15285hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15286hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15287hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15288hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15289hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15290inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15291link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15292always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15293export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15294exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15295include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15296prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15297postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15298file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15299variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15300need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15301need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15302version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15303runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15304shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15305shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15306libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15307library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15308soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15309install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15310postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15311postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15312finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15313finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15314hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15315sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15316configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15317configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15318hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15319enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15320enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15321enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15322old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15323striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15324
15325LTCC='$LTCC'
15326LTCFLAGS='$LTCFLAGS'
15327compiler='$compiler_DEFAULT'
15328
15329# A function that is used when there is no print builtin or printf.
15330func_fallback_echo ()
15331{
15332  eval 'cat <<_LTECHO_EOF
15333\$1
15334_LTECHO_EOF'
15335}
15336
15337# Quote evaled strings.
15338for var in SHELL \
15339ECHO \
15340PATH_SEPARATOR \
15341SED \
15342GREP \
15343EGREP \
15344FGREP \
15345LD \
15346NM \
15347LN_S \
15348lt_SP2NL \
15349lt_NL2SP \
15350reload_flag \
15351FILECMD \
15352OBJDUMP \
15353deplibs_check_method \
15354file_magic_cmd \
15355file_magic_glob \
15356want_nocaseglob \
15357DLLTOOL \
15358sharedlib_from_linklib_cmd \
15359AR \
15360archiver_list_spec \
15361STRIP \
15362RANLIB \
15363CC \
15364CFLAGS \
15365compiler \
15366lt_cv_sys_global_symbol_pipe \
15367lt_cv_sys_global_symbol_to_cdecl \
15368lt_cv_sys_global_symbol_to_import \
15369lt_cv_sys_global_symbol_to_c_name_address \
15370lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15371lt_cv_nm_interface \
15372nm_file_list_spec \
15373lt_cv_truncate_bin \
15374lt_prog_compiler_no_builtin_flag \
15375lt_prog_compiler_pic \
15376lt_prog_compiler_wl \
15377lt_prog_compiler_static \
15378lt_cv_prog_compiler_c_o \
15379need_locks \
15380MANIFEST_TOOL \
15381DSYMUTIL \
15382NMEDIT \
15383LIPO \
15384OTOOL \
15385OTOOL64 \
15386shrext_cmds \
15387export_dynamic_flag_spec \
15388whole_archive_flag_spec \
15389compiler_needs_object \
15390with_gnu_ld \
15391allow_undefined_flag \
15392no_undefined_flag \
15393hardcode_libdir_flag_spec \
15394hardcode_libdir_separator \
15395exclude_expsyms \
15396include_expsyms \
15397file_list_spec \
15398variables_saved_for_relink \
15399libname_spec \
15400library_names_spec \
15401soname_spec \
15402install_override_mode \
15403finish_eval \
15404old_striplib \
15405striplib; do
15406    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15407    *[\\\\\\\`\\"\\\$]*)
15408      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15409      ;;
15410    *)
15411      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15412      ;;
15413    esac
15414done
15415
15416# Double-quote double-evaled strings.
15417for var in reload_cmds \
15418old_postinstall_cmds \
15419old_postuninstall_cmds \
15420old_archive_cmds \
15421extract_expsyms_cmds \
15422old_archive_from_new_cmds \
15423old_archive_from_expsyms_cmds \
15424archive_cmds \
15425archive_expsym_cmds \
15426module_cmds \
15427module_expsym_cmds \
15428export_symbols_cmds \
15429prelink_cmds \
15430postlink_cmds \
15431postinstall_cmds \
15432postuninstall_cmds \
15433finish_cmds \
15434sys_lib_search_path_spec \
15435configure_time_dlsearch_path \
15436configure_time_lt_sys_library_path; do
15437    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15438    *[\\\\\\\`\\"\\\$]*)
15439      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15440      ;;
15441    *)
15442      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15443      ;;
15444    esac
15445done
15446
15447ac_aux_dir='$ac_aux_dir'
15448
15449# See if we are running on zsh, and set the options that allow our
15450# commands through without removal of \ escapes INIT.
15451if test -n "\${ZSH_VERSION+set}"; then
15452   setopt NO_GLOB_SUBST
15453fi
15454
15455
15456    PACKAGE='$PACKAGE'
15457    VERSION='$VERSION'
15458    RM='$RM'
15459    ofile='$ofile'
15460
15461
15462
15463AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15464
15465_ACEOF
15466
15467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468
15469# Handling of arguments.
15470for ac_config_target in $ac_config_targets
15471do
15472  case $ac_config_target in
15473    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15474    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15475    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15476    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15477    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15478    "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
15479    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15480    "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
15481    "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
15482    "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
15483    "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
15484    "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
15485    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15486
15487  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15488  esac
15489done
15490
15491
15492# If the user did not use the arguments to specify the items to instantiate,
15493# then the envvar interface is used.  Set only those that are not.
15494# We use the long form for the default assignment because of an extremely
15495# bizarre bug on SunOS 4.1.3.
15496if $ac_need_defaults; then
15497  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15498  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15499  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15500fi
15501
15502# Have a temporary directory for convenience.  Make it in the build tree
15503# simply because there is no reason against having it here, and in addition,
15504# creating and moving files from /tmp can sometimes cause problems.
15505# Hook for its removal unless debugging.
15506# Note that there is a small window in which the directory will not be cleaned:
15507# after its creation but before its name has been assigned to `$tmp'.
15508$debug ||
15509{
15510  tmp= ac_tmp=
15511  trap 'exit_status=$?
15512  : "${ac_tmp:=$tmp}"
15513  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15514' 0
15515  trap 'as_fn_exit 1' 1 2 13 15
15516}
15517# Create a (secure) tmp directory for tmp files.
15518
15519{
15520  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15521  test -d "$tmp"
15522}  ||
15523{
15524  tmp=./conf$$-$RANDOM
15525  (umask 077 && mkdir "$tmp")
15526} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15527ac_tmp=$tmp
15528
15529# Set up the scripts for CONFIG_FILES section.
15530# No need to generate them if there are no CONFIG_FILES.
15531# This happens for instance with `./config.status config.h'.
15532if test -n "$CONFIG_FILES"; then
15533
15534
15535ac_cr=`echo X | tr X '\015'`
15536# On cygwin, bash can eat \r inside `` if the user requested igncr.
15537# But we know of no other shell where ac_cr would be empty at this
15538# point, so we can use a bashism as a fallback.
15539if test "x$ac_cr" = x; then
15540  eval ac_cr=\$\'\\r\'
15541fi
15542ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15543if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15544  ac_cs_awk_cr='\\r'
15545else
15546  ac_cs_awk_cr=$ac_cr
15547fi
15548
15549echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15550_ACEOF
15551
15552
15553{
15554  echo "cat >conf$$subs.awk <<_ACEOF" &&
15555  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15556  echo "_ACEOF"
15557} >conf$$subs.sh ||
15558  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15559ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15560ac_delim='%!_!# '
15561for ac_last_try in false false false false false :; do
15562  . ./conf$$subs.sh ||
15563    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15564
15565  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15566  if test $ac_delim_n = $ac_delim_num; then
15567    break
15568  elif $ac_last_try; then
15569    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15570  else
15571    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15572  fi
15573done
15574rm -f conf$$subs.sh
15575
15576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15577cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15578_ACEOF
15579sed -n '
15580h
15581s/^/S["/; s/!.*/"]=/
15582p
15583g
15584s/^[^!]*!//
15585:repl
15586t repl
15587s/'"$ac_delim"'$//
15588t delim
15589:nl
15590h
15591s/\(.\{148\}\)..*/\1/
15592t more1
15593s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15594p
15595n
15596b repl
15597:more1
15598s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15599p
15600g
15601s/.\{148\}//
15602t nl
15603:delim
15604h
15605s/\(.\{148\}\)..*/\1/
15606t more2
15607s/["\\]/\\&/g; s/^/"/; s/$/"/
15608p
15609b
15610:more2
15611s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15612p
15613g
15614s/.\{148\}//
15615t delim
15616' <conf$$subs.awk | sed '
15617/^[^""]/{
15618  N
15619  s/\n//
15620}
15621' >>$CONFIG_STATUS || ac_write_fail=1
15622rm -f conf$$subs.awk
15623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624_ACAWK
15625cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15626  for (key in S) S_is_set[key] = 1
15627  FS = ""
15628
15629}
15630{
15631  line = $ 0
15632  nfields = split(line, field, "@")
15633  substed = 0
15634  len = length(field[1])
15635  for (i = 2; i < nfields; i++) {
15636    key = field[i]
15637    keylen = length(key)
15638    if (S_is_set[key]) {
15639      value = S[key]
15640      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15641      len += length(value) + length(field[++i])
15642      substed = 1
15643    } else
15644      len += 1 + keylen
15645  }
15646
15647  print line
15648}
15649
15650_ACAWK
15651_ACEOF
15652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15653if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15654  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15655else
15656  cat
15657fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15658  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15659_ACEOF
15660
15661# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15662# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15663# trailing colons and then remove the whole line if VPATH becomes empty
15664# (actually we leave an empty line to preserve line numbers).
15665if test "x$srcdir" = x.; then
15666  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15667h
15668s///
15669s/^/:/
15670s/[	 ]*$/:/
15671s/:\$(srcdir):/:/g
15672s/:\${srcdir}:/:/g
15673s/:@srcdir@:/:/g
15674s/^:*//
15675s/:*$//
15676x
15677s/\(=[	 ]*\).*/\1/
15678G
15679s/\n//
15680s/^[^=]*=[	 ]*$//
15681}'
15682fi
15683
15684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685fi # test -n "$CONFIG_FILES"
15686
15687# Set up the scripts for CONFIG_HEADERS section.
15688# No need to generate them if there are no CONFIG_HEADERS.
15689# This happens for instance with `./config.status Makefile'.
15690if test -n "$CONFIG_HEADERS"; then
15691cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15692BEGIN {
15693_ACEOF
15694
15695# Transform confdefs.h into an awk script `defines.awk', embedded as
15696# here-document in config.status, that substitutes the proper values into
15697# config.h.in to produce config.h.
15698
15699# Create a delimiter string that does not exist in confdefs.h, to ease
15700# handling of long lines.
15701ac_delim='%!_!# '
15702for ac_last_try in false false :; do
15703  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15704  if test -z "$ac_tt"; then
15705    break
15706  elif $ac_last_try; then
15707    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15708  else
15709    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710  fi
15711done
15712
15713# For the awk script, D is an array of macro values keyed by name,
15714# likewise P contains macro parameters if any.  Preserve backslash
15715# newline sequences.
15716
15717ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15718sed -n '
15719s/.\{148\}/&'"$ac_delim"'/g
15720t rset
15721:rset
15722s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15723t def
15724d
15725:def
15726s/\\$//
15727t bsnl
15728s/["\\]/\\&/g
15729s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15730D["\1"]=" \3"/p
15731s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15732d
15733:bsnl
15734s/["\\]/\\&/g
15735s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15736D["\1"]=" \3\\\\\\n"\\/p
15737t cont
15738s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15739t cont
15740d
15741:cont
15742n
15743s/.\{148\}/&'"$ac_delim"'/g
15744t clear
15745:clear
15746s/\\$//
15747t bsnlc
15748s/["\\]/\\&/g; s/^/"/; s/$/"/p
15749d
15750:bsnlc
15751s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15752b cont
15753' <confdefs.h | sed '
15754s/'"$ac_delim"'/"\\\
15755"/g' >>$CONFIG_STATUS || ac_write_fail=1
15756
15757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758  for (key in D) D_is_set[key] = 1
15759  FS = ""
15760}
15761/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15762  line = \$ 0
15763  split(line, arg, " ")
15764  if (arg[1] == "#") {
15765    defundef = arg[2]
15766    mac1 = arg[3]
15767  } else {
15768    defundef = substr(arg[1], 2)
15769    mac1 = arg[2]
15770  }
15771  split(mac1, mac2, "(") #)
15772  macro = mac2[1]
15773  prefix = substr(line, 1, index(line, defundef) - 1)
15774  if (D_is_set[macro]) {
15775    # Preserve the white space surrounding the "#".
15776    print prefix "define", macro P[macro] D[macro]
15777    next
15778  } else {
15779    # Replace #undef with comments.  This is necessary, for example,
15780    # in the case of _POSIX_SOURCE, which is predefined and required
15781    # on some systems where configure will not decide to define it.
15782    if (defundef == "undef") {
15783      print "/*", prefix defundef, macro, "*/"
15784      next
15785    }
15786  }
15787}
15788{ print }
15789_ACAWK
15790_ACEOF
15791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15793fi # test -n "$CONFIG_HEADERS"
15794
15795
15796eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15797shift
15798for ac_tag
15799do
15800  case $ac_tag in
15801  :[FHLC]) ac_mode=$ac_tag; continue;;
15802  esac
15803  case $ac_mode$ac_tag in
15804  :[FHL]*:*);;
15805  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806  :[FH]-) ac_tag=-:-;;
15807  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15808  esac
15809  ac_save_IFS=$IFS
15810  IFS=:
15811  set x $ac_tag
15812  IFS=$ac_save_IFS
15813  shift
15814  ac_file=$1
15815  shift
15816
15817  case $ac_mode in
15818  :L) ac_source=$1;;
15819  :[FH])
15820    ac_file_inputs=
15821    for ac_f
15822    do
15823      case $ac_f in
15824      -) ac_f="$ac_tmp/stdin";;
15825      *) # Look for the file first in the build tree, then in the source tree
15826	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15827	 # because $ac_f cannot contain `:'.
15828	 test -f "$ac_f" ||
15829	   case $ac_f in
15830	   [\\/$]*) false;;
15831	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15832	   esac ||
15833	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15834      esac
15835      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836      as_fn_append ac_file_inputs " '$ac_f'"
15837    done
15838
15839    # Let's still pretend it is `configure' which instantiates (i.e., don't
15840    # use $as_me), people would be surprised to read:
15841    #    /* config.h.  Generated by config.status.  */
15842    configure_input='Generated from '`
15843	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15844	`' by configure.'
15845    if test x"$ac_file" != x-; then
15846      configure_input="$ac_file.  $configure_input"
15847      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848printf "%s\n" "$as_me: creating $ac_file" >&6;}
15849    fi
15850    # Neutralize special characters interpreted by sed in replacement strings.
15851    case $configure_input in #(
15852    *\&* | *\|* | *\\* )
15853       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15854       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855    *) ac_sed_conf_input=$configure_input;;
15856    esac
15857
15858    case $ac_tag in
15859    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15860      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15861    esac
15862    ;;
15863  esac
15864
15865  ac_dir=`$as_dirname -- "$ac_file" ||
15866$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15867	 X"$ac_file" : 'X\(//\)[^/]' \| \
15868	 X"$ac_file" : 'X\(//\)$' \| \
15869	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870printf "%s\n" X"$ac_file" |
15871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15872	    s//\1/
15873	    q
15874	  }
15875	  /^X\(\/\/\)[^/].*/{
15876	    s//\1/
15877	    q
15878	  }
15879	  /^X\(\/\/\)$/{
15880	    s//\1/
15881	    q
15882	  }
15883	  /^X\(\/\).*/{
15884	    s//\1/
15885	    q
15886	  }
15887	  s/.*/./; q'`
15888  as_dir="$ac_dir"; as_fn_mkdir_p
15889  ac_builddir=.
15890
15891case "$ac_dir" in
15892.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893*)
15894  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15895  # A ".." for each directory in $ac_dir_suffix.
15896  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897  case $ac_top_builddir_sub in
15898  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900  esac ;;
15901esac
15902ac_abs_top_builddir=$ac_pwd
15903ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904# for backward compatibility:
15905ac_top_builddir=$ac_top_build_prefix
15906
15907case $srcdir in
15908  .)  # We are building in place.
15909    ac_srcdir=.
15910    ac_top_srcdir=$ac_top_builddir_sub
15911    ac_abs_top_srcdir=$ac_pwd ;;
15912  [\\/]* | ?:[\\/]* )  # Absolute name.
15913    ac_srcdir=$srcdir$ac_dir_suffix;
15914    ac_top_srcdir=$srcdir
15915    ac_abs_top_srcdir=$srcdir ;;
15916  *) # Relative name.
15917    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918    ac_top_srcdir=$ac_top_build_prefix$srcdir
15919    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15920esac
15921ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15922
15923
15924  case $ac_mode in
15925  :F)
15926  #
15927  # CONFIG_FILE
15928  #
15929
15930  case $INSTALL in
15931  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15932  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15933  esac
15934  ac_MKDIR_P=$MKDIR_P
15935  case $MKDIR_P in
15936  [\\/$]* | ?:[\\/]* ) ;;
15937  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15938  esac
15939_ACEOF
15940
15941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942# If the template does not know about datarootdir, expand it.
15943# FIXME: This hack should be removed a few years after 2.60.
15944ac_datarootdir_hack=; ac_datarootdir_seen=
15945ac_sed_dataroot='
15946/datarootdir/ {
15947  p
15948  q
15949}
15950/@datadir@/p
15951/@docdir@/p
15952/@infodir@/p
15953/@localedir@/p
15954/@mandir@/p'
15955case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15956*datarootdir*) ac_datarootdir_seen=yes;;
15957*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15959printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15960_ACEOF
15961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962  ac_datarootdir_hack='
15963  s&@datadir@&$datadir&g
15964  s&@docdir@&$docdir&g
15965  s&@infodir@&$infodir&g
15966  s&@localedir@&$localedir&g
15967  s&@mandir@&$mandir&g
15968  s&\\\${datarootdir}&$datarootdir&g' ;;
15969esac
15970_ACEOF
15971
15972# Neutralize VPATH when `$srcdir' = `.'.
15973# Shell code in configure.ac might set extrasub.
15974# FIXME: do we really want to maintain this feature?
15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976ac_sed_extra="$ac_vpsub
15977$extrasub
15978_ACEOF
15979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980:t
15981/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15982s|@configure_input@|$ac_sed_conf_input|;t t
15983s&@top_builddir@&$ac_top_builddir_sub&;t t
15984s&@top_build_prefix@&$ac_top_build_prefix&;t t
15985s&@srcdir@&$ac_srcdir&;t t
15986s&@abs_srcdir@&$ac_abs_srcdir&;t t
15987s&@top_srcdir@&$ac_top_srcdir&;t t
15988s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15989s&@builddir@&$ac_builddir&;t t
15990s&@abs_builddir@&$ac_abs_builddir&;t t
15991s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15992s&@INSTALL@&$ac_INSTALL&;t t
15993s&@MKDIR_P@&$ac_MKDIR_P&;t t
15994$ac_datarootdir_hack
15995"
15996eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15997  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15998
15999test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16001  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16002      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16004which seems to be undefined.  Please make sure it is defined" >&5
16005printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16006which seems to be undefined.  Please make sure it is defined" >&2;}
16007
16008  rm -f "$ac_tmp/stdin"
16009  case $ac_file in
16010  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16011  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16012  esac \
16013  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16014 ;;
16015  :H)
16016  #
16017  # CONFIG_HEADER
16018  #
16019  if test x"$ac_file" != x-; then
16020    {
16021      printf "%s\n" "/* $configure_input  */" >&1 \
16022      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16023    } >"$ac_tmp/config.h" \
16024      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16025    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16026      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16027printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16028    else
16029      rm -f "$ac_file"
16030      mv "$ac_tmp/config.h" "$ac_file" \
16031	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16032    fi
16033  else
16034    printf "%s\n" "/* $configure_input  */" >&1 \
16035      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16036      || as_fn_error $? "could not create -" "$LINENO" 5
16037  fi
16038# Compute "$ac_file"'s index in $config_headers.
16039_am_arg="$ac_file"
16040_am_stamp_count=1
16041for _am_header in $config_headers :; do
16042  case $_am_header in
16043    $_am_arg | $_am_arg:* )
16044      break ;;
16045    * )
16046      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16047  esac
16048done
16049echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16050$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16051	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16052	 X"$_am_arg" : 'X\(//\)$' \| \
16053	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16054printf "%s\n" X"$_am_arg" |
16055    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16056	    s//\1/
16057	    q
16058	  }
16059	  /^X\(\/\/\)[^/].*/{
16060	    s//\1/
16061	    q
16062	  }
16063	  /^X\(\/\/\)$/{
16064	    s//\1/
16065	    q
16066	  }
16067	  /^X\(\/\).*/{
16068	    s//\1/
16069	    q
16070	  }
16071	  s/.*/./; q'`/stamp-h$_am_stamp_count
16072 ;;
16073
16074  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16075printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16076 ;;
16077  esac
16078
16079
16080  case $ac_file$ac_mode in
16081    "libtool":C)
16082
16083    # See if we are running on zsh, and set the options that allow our
16084    # commands through without removal of \ escapes.
16085    if test -n "${ZSH_VERSION+set}"; then
16086      setopt NO_GLOB_SUBST
16087    fi
16088
16089    cfgfile=${ofile}T
16090    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16091    $RM "$cfgfile"
16092
16093    cat <<_LT_EOF >> "$cfgfile"
16094#! $SHELL
16095# Generated automatically by $as_me ($PACKAGE) $VERSION
16096# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16097
16098# Provide generalized library-building support services.
16099# Written by Gordon Matzigkeit, 1996
16100
16101# Copyright (C) 2014 Free Software Foundation, Inc.
16102# This is free software; see the source for copying conditions.  There is NO
16103# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16104
16105# GNU Libtool is free software; you can redistribute it and/or modify
16106# it under the terms of the GNU General Public License as published by
16107# the Free Software Foundation; either version 2 of of the License, or
16108# (at your option) any later version.
16109#
16110# As a special exception to the GNU General Public License, if you
16111# distribute this file as part of a program or library that is built
16112# using GNU Libtool, you may include this file under the  same
16113# distribution terms that you use for the rest of that program.
16114#
16115# GNU Libtool is distributed in the hope that it will be useful, but
16116# WITHOUT ANY WARRANTY; without even the implied warranty of
16117# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16118# GNU General Public License for more details.
16119#
16120# You should have received a copy of the GNU General Public License
16121# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16122
16123
16124# The names of the tagged configurations supported by this script.
16125available_tags=''
16126
16127# Configured defaults for sys_lib_dlsearch_path munging.
16128: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16129
16130# ### BEGIN LIBTOOL CONFIG
16131
16132# Which release of libtool.m4 was used?
16133macro_version=$macro_version
16134macro_revision=$macro_revision
16135
16136# Whether or not to build shared libraries.
16137build_libtool_libs=$enable_shared
16138
16139# Whether or not to build static libraries.
16140build_old_libs=$enable_static
16141
16142# What type of objects to build.
16143pic_mode=$pic_mode
16144
16145# Whether or not to optimize for fast installation.
16146fast_install=$enable_fast_install
16147
16148# Shared archive member basename,for filename based shared library versioning on AIX.
16149shared_archive_member_spec=$shared_archive_member_spec
16150
16151# Shell to use when invoking shell scripts.
16152SHELL=$lt_SHELL
16153
16154# An echo program that protects backslashes.
16155ECHO=$lt_ECHO
16156
16157# The PATH separator for the build system.
16158PATH_SEPARATOR=$lt_PATH_SEPARATOR
16159
16160# The host system.
16161host_alias=$host_alias
16162host=$host
16163host_os=$host_os
16164
16165# The build system.
16166build_alias=$build_alias
16167build=$build
16168build_os=$build_os
16169
16170# A sed program that does not truncate output.
16171SED=$lt_SED
16172
16173# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16174Xsed="\$SED -e 1s/^X//"
16175
16176# A grep program that handles long lines.
16177GREP=$lt_GREP
16178
16179# An ERE matcher.
16180EGREP=$lt_EGREP
16181
16182# A literal string matcher.
16183FGREP=$lt_FGREP
16184
16185# A BSD- or MS-compatible name lister.
16186NM=$lt_NM
16187
16188# Whether we need soft or hard links.
16189LN_S=$lt_LN_S
16190
16191# What is the maximum length of a command?
16192max_cmd_len=$max_cmd_len
16193
16194# Object file suffix (normally "o").
16195objext=$ac_objext
16196
16197# Executable file suffix (normally "").
16198exeext=$exeext
16199
16200# whether the shell understands "unset".
16201lt_unset=$lt_unset
16202
16203# turn spaces into newlines.
16204SP2NL=$lt_lt_SP2NL
16205
16206# turn newlines into spaces.
16207NL2SP=$lt_lt_NL2SP
16208
16209# convert \$build file names to \$host format.
16210to_host_file_cmd=$lt_cv_to_host_file_cmd
16211
16212# convert \$build files to toolchain format.
16213to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16214
16215# A file(cmd) program that detects file types.
16216FILECMD=$lt_FILECMD
16217
16218# An object symbol dumper.
16219OBJDUMP=$lt_OBJDUMP
16220
16221# Method to check whether dependent libraries are shared objects.
16222deplibs_check_method=$lt_deplibs_check_method
16223
16224# Command to use when deplibs_check_method = "file_magic".
16225file_magic_cmd=$lt_file_magic_cmd
16226
16227# How to find potential files when deplibs_check_method = "file_magic".
16228file_magic_glob=$lt_file_magic_glob
16229
16230# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16231want_nocaseglob=$lt_want_nocaseglob
16232
16233# DLL creation program.
16234DLLTOOL=$lt_DLLTOOL
16235
16236# Command to associate shared and link libraries.
16237sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16238
16239# The archiver.
16240AR=$lt_AR
16241
16242# Flags to create an archive (by configure).
16243lt_ar_flags=$lt_ar_flags
16244
16245# Flags to create an archive.
16246AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16247
16248# How to feed a file listing to the archiver.
16249archiver_list_spec=$lt_archiver_list_spec
16250
16251# A symbol stripping program.
16252STRIP=$lt_STRIP
16253
16254# Commands used to install an old-style archive.
16255RANLIB=$lt_RANLIB
16256old_postinstall_cmds=$lt_old_postinstall_cmds
16257old_postuninstall_cmds=$lt_old_postuninstall_cmds
16258
16259# Whether to use a lock for old archive extraction.
16260lock_old_archive_extraction=$lock_old_archive_extraction
16261
16262# A C compiler.
16263LTCC=$lt_CC
16264
16265# LTCC compiler flags.
16266LTCFLAGS=$lt_CFLAGS
16267
16268# Take the output of nm and produce a listing of raw symbols and C names.
16269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16270
16271# Transform the output of nm in a proper C declaration.
16272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16273
16274# Transform the output of nm into a list of symbols to manually relocate.
16275global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16276
16277# Transform the output of nm in a C name address pair.
16278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16279
16280# Transform the output of nm in a C name address pair when lib prefix is needed.
16281global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16282
16283# The name lister interface.
16284nm_interface=$lt_lt_cv_nm_interface
16285
16286# Specify filename containing input files for \$NM.
16287nm_file_list_spec=$lt_nm_file_list_spec
16288
16289# The root where to search for dependent libraries,and where our libraries should be installed.
16290lt_sysroot=$lt_sysroot
16291
16292# Command to truncate a binary pipe.
16293lt_truncate_bin=$lt_lt_cv_truncate_bin
16294
16295# The name of the directory that contains temporary libtool files.
16296objdir=$objdir
16297
16298# Used to examine libraries when file_magic_cmd begins with "file".
16299MAGIC_CMD=$MAGIC_CMD
16300
16301# Must we lock files when doing compilation?
16302need_locks=$lt_need_locks
16303
16304# Manifest tool.
16305MANIFEST_TOOL=$lt_MANIFEST_TOOL
16306
16307# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16308DSYMUTIL=$lt_DSYMUTIL
16309
16310# Tool to change global to local symbols on Mac OS X.
16311NMEDIT=$lt_NMEDIT
16312
16313# Tool to manipulate fat objects and archives on Mac OS X.
16314LIPO=$lt_LIPO
16315
16316# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16317OTOOL=$lt_OTOOL
16318
16319# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16320OTOOL64=$lt_OTOOL64
16321
16322# Old archive suffix (normally "a").
16323libext=$libext
16324
16325# Shared library suffix (normally ".so").
16326shrext_cmds=$lt_shrext_cmds
16327
16328# The commands to extract the exported symbol list from a shared archive.
16329extract_expsyms_cmds=$lt_extract_expsyms_cmds
16330
16331# Variables whose values should be saved in libtool wrapper scripts and
16332# restored at link time.
16333variables_saved_for_relink=$lt_variables_saved_for_relink
16334
16335# Do we need the "lib" prefix for modules?
16336need_lib_prefix=$need_lib_prefix
16337
16338# Do we need a version for libraries?
16339need_version=$need_version
16340
16341# Library versioning type.
16342version_type=$version_type
16343
16344# Shared library runtime path variable.
16345runpath_var=$runpath_var
16346
16347# Shared library path variable.
16348shlibpath_var=$shlibpath_var
16349
16350# Is shlibpath searched before the hard-coded library search path?
16351shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16352
16353# Format of library name prefix.
16354libname_spec=$lt_libname_spec
16355
16356# List of archive names.  First name is the real one, the rest are links.
16357# The last name is the one that the linker finds with -lNAME
16358library_names_spec=$lt_library_names_spec
16359
16360# The coded name of the library, if different from the real name.
16361soname_spec=$lt_soname_spec
16362
16363# Permission mode override for installation of shared libraries.
16364install_override_mode=$lt_install_override_mode
16365
16366# Command to use after installation of a shared archive.
16367postinstall_cmds=$lt_postinstall_cmds
16368
16369# Command to use after uninstallation of a shared archive.
16370postuninstall_cmds=$lt_postuninstall_cmds
16371
16372# Commands used to finish a libtool library installation in a directory.
16373finish_cmds=$lt_finish_cmds
16374
16375# As "finish_cmds", except a single script fragment to be evaled but
16376# not shown.
16377finish_eval=$lt_finish_eval
16378
16379# Whether we should hardcode library paths into libraries.
16380hardcode_into_libs=$hardcode_into_libs
16381
16382# Compile-time system search path for libraries.
16383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16384
16385# Detected run-time system search path for libraries.
16386sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16387
16388# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16389configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16390
16391# Whether dlopen is supported.
16392dlopen_support=$enable_dlopen
16393
16394# Whether dlopen of programs is supported.
16395dlopen_self=$enable_dlopen_self
16396
16397# Whether dlopen of statically linked programs is supported.
16398dlopen_self_static=$enable_dlopen_self_static
16399
16400# Commands to strip libraries.
16401old_striplib=$lt_old_striplib
16402striplib=$lt_striplib
16403
16404
16405# The linker used to build libraries.
16406LD=$lt_LD
16407
16408# How to create reloadable object files.
16409reload_flag=$lt_reload_flag
16410reload_cmds=$lt_reload_cmds
16411
16412# Commands used to build an old-style archive.
16413old_archive_cmds=$lt_old_archive_cmds
16414
16415# A language specific compiler.
16416CC=$lt_compiler
16417
16418# Is the compiler the GNU compiler?
16419with_gcc=$GCC
16420
16421# Compiler flag to turn off builtin functions.
16422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16423
16424# Additional compiler flags for building library objects.
16425pic_flag=$lt_lt_prog_compiler_pic
16426
16427# How to pass a linker flag through the compiler.
16428wl=$lt_lt_prog_compiler_wl
16429
16430# Compiler flag to prevent dynamic linking.
16431link_static_flag=$lt_lt_prog_compiler_static
16432
16433# Does compiler simultaneously support -c and -o options?
16434compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16435
16436# Whether or not to add -lc for building shared libraries.
16437build_libtool_need_lc=$archive_cmds_need_lc
16438
16439# Whether or not to disallow shared libs when runtime libs are static.
16440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16441
16442# Compiler flag to allow reflexive dlopens.
16443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16444
16445# Compiler flag to generate shared objects directly from archives.
16446whole_archive_flag_spec=$lt_whole_archive_flag_spec
16447
16448# Whether the compiler copes with passing no objects directly.
16449compiler_needs_object=$lt_compiler_needs_object
16450
16451# Create an old-style archive from a shared archive.
16452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16453
16454# Create a temporary old-style archive to link instead of a shared archive.
16455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16456
16457# Commands used to build a shared archive.
16458archive_cmds=$lt_archive_cmds
16459archive_expsym_cmds=$lt_archive_expsym_cmds
16460
16461# Commands used to build a loadable module if different from building
16462# a shared archive.
16463module_cmds=$lt_module_cmds
16464module_expsym_cmds=$lt_module_expsym_cmds
16465
16466# Whether we are building with GNU ld or not.
16467with_gnu_ld=$lt_with_gnu_ld
16468
16469# Flag that allows shared libraries with undefined symbols to be built.
16470allow_undefined_flag=$lt_allow_undefined_flag
16471
16472# Flag that enforces no undefined symbols.
16473no_undefined_flag=$lt_no_undefined_flag
16474
16475# Flag to hardcode \$libdir into a binary during linking.
16476# This must work even if \$libdir does not exist
16477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16478
16479# Whether we need a single "-rpath" flag with a separated argument.
16480hardcode_libdir_separator=$lt_hardcode_libdir_separator
16481
16482# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16483# DIR into the resulting binary.
16484hardcode_direct=$hardcode_direct
16485
16486# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16487# DIR into the resulting binary and the resulting library dependency is
16488# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16489# library is relocated.
16490hardcode_direct_absolute=$hardcode_direct_absolute
16491
16492# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16493# into the resulting binary.
16494hardcode_minus_L=$hardcode_minus_L
16495
16496# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16497# into the resulting binary.
16498hardcode_shlibpath_var=$hardcode_shlibpath_var
16499
16500# Set to "yes" if building a shared library automatically hardcodes DIR
16501# into the library and all subsequent libraries and executables linked
16502# against it.
16503hardcode_automatic=$hardcode_automatic
16504
16505# Set to yes if linker adds runtime paths of dependent libraries
16506# to runtime path list.
16507inherit_rpath=$inherit_rpath
16508
16509# Whether libtool must link a program against all its dependency libraries.
16510link_all_deplibs=$link_all_deplibs
16511
16512# Set to "yes" if exported symbols are required.
16513always_export_symbols=$always_export_symbols
16514
16515# The commands to list exported symbols.
16516export_symbols_cmds=$lt_export_symbols_cmds
16517
16518# Symbols that should not be listed in the preloaded symbols.
16519exclude_expsyms=$lt_exclude_expsyms
16520
16521# Symbols that must always be exported.
16522include_expsyms=$lt_include_expsyms
16523
16524# Commands necessary for linking programs (against libraries) with templates.
16525prelink_cmds=$lt_prelink_cmds
16526
16527# Commands necessary for finishing linking programs.
16528postlink_cmds=$lt_postlink_cmds
16529
16530# Specify filename containing input files.
16531file_list_spec=$lt_file_list_spec
16532
16533# How to hardcode a shared library path into an executable.
16534hardcode_action=$hardcode_action
16535
16536# ### END LIBTOOL CONFIG
16537
16538_LT_EOF
16539
16540    cat <<'_LT_EOF' >> "$cfgfile"
16541
16542# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16543
16544# func_munge_path_list VARIABLE PATH
16545# -----------------------------------
16546# VARIABLE is name of variable containing _space_ separated list of
16547# directories to be munged by the contents of PATH, which is string
16548# having a format:
16549# "DIR[:DIR]:"
16550#       string "DIR[ DIR]" will be prepended to VARIABLE
16551# ":DIR[:DIR]"
16552#       string "DIR[ DIR]" will be appended to VARIABLE
16553# "DIRP[:DIRP]::[DIRA:]DIRA"
16554#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16555#       "DIRA[ DIRA]" will be appended to VARIABLE
16556# "DIR[:DIR]"
16557#       VARIABLE will be replaced by "DIR[ DIR]"
16558func_munge_path_list ()
16559{
16560    case x$2 in
16561    x)
16562        ;;
16563    *:)
16564        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16565        ;;
16566    x:*)
16567        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16568        ;;
16569    *::*)
16570        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16571        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16572        ;;
16573    *)
16574        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16575        ;;
16576    esac
16577}
16578
16579
16580# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16581func_cc_basename ()
16582{
16583    for cc_temp in $*""; do
16584      case $cc_temp in
16585        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16586        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16587        \-*) ;;
16588        *) break;;
16589      esac
16590    done
16591    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16592}
16593
16594
16595# ### END FUNCTIONS SHARED WITH CONFIGURE
16596
16597_LT_EOF
16598
16599  case $host_os in
16600  aix3*)
16601    cat <<\_LT_EOF >> "$cfgfile"
16602# AIX sometimes has problems with the GCC collect2 program.  For some
16603# reason, if we set the COLLECT_NAMES environment variable, the problems
16604# vanish in a puff of smoke.
16605if test set != "${COLLECT_NAMES+set}"; then
16606  COLLECT_NAMES=
16607  export COLLECT_NAMES
16608fi
16609_LT_EOF
16610    ;;
16611  esac
16612
16613
16614
16615ltmain=$ac_aux_dir/ltmain.sh
16616
16617
16618  # We use sed instead of cat because bash on DJGPP gets confused if
16619  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16620  # text mode, it properly converts lines to CR/LF.  This bash problem
16621  # is reportedly fixed, but why not run on old versions too?
16622  $SED '$q' "$ltmain" >> "$cfgfile" \
16623     || (rm -f "$cfgfile"; exit 1)
16624
16625   mv -f "$cfgfile" "$ofile" ||
16626    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16627  chmod +x "$ofile"
16628
16629 ;;
16630    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16631  # Older Autoconf quotes --file arguments for eval, but not when files
16632  # are listed without --file.  Let's play safe and only enable the eval
16633  # if we detect the quoting.
16634  # TODO: see whether this extra hack can be removed once we start
16635  # requiring Autoconf 2.70 or later.
16636  case $CONFIG_FILES in #(
16637  *\'*) :
16638    eval set x "$CONFIG_FILES" ;; #(
16639  *) :
16640    set x $CONFIG_FILES ;; #(
16641  *) :
16642     ;;
16643esac
16644  shift
16645  # Used to flag and report bootstrapping failures.
16646  am_rc=0
16647  for am_mf
16648  do
16649    # Strip MF so we end up with the name of the file.
16650    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16651    # Check whether this is an Automake generated Makefile which includes
16652    # dependency-tracking related rules and includes.
16653    # Grep'ing the whole file directly is not great: AIX grep has a line
16654    # limit of 2048, but all sed's we know have understand at least 4000.
16655    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16656      || continue
16657    am_dirpart=`$as_dirname -- "$am_mf" ||
16658$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16659	 X"$am_mf" : 'X\(//\)[^/]' \| \
16660	 X"$am_mf" : 'X\(//\)$' \| \
16661	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16662printf "%s\n" X"$am_mf" |
16663    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16664	    s//\1/
16665	    q
16666	  }
16667	  /^X\(\/\/\)[^/].*/{
16668	    s//\1/
16669	    q
16670	  }
16671	  /^X\(\/\/\)$/{
16672	    s//\1/
16673	    q
16674	  }
16675	  /^X\(\/\).*/{
16676	    s//\1/
16677	    q
16678	  }
16679	  s/.*/./; q'`
16680    am_filepart=`$as_basename -- "$am_mf" ||
16681$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16682	 X"$am_mf" : 'X\(//\)$' \| \
16683	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16684printf "%s\n" X/"$am_mf" |
16685    sed '/^.*\/\([^/][^/]*\)\/*$/{
16686	    s//\1/
16687	    q
16688	  }
16689	  /^X\/\(\/\/\)$/{
16690	    s//\1/
16691	    q
16692	  }
16693	  /^X\/\(\/\).*/{
16694	    s//\1/
16695	    q
16696	  }
16697	  s/.*/./; q'`
16698    { echo "$as_me:$LINENO: cd "$am_dirpart" \
16699      && sed -e '/# am--include-marker/d' "$am_filepart" \
16700        | $MAKE -f - am--depfiles" >&5
16701   (cd "$am_dirpart" \
16702      && sed -e '/# am--include-marker/d' "$am_filepart" \
16703        | $MAKE -f - am--depfiles) >&5 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } || am_rc=$?
16707  done
16708  if test $am_rc -ne 0; then
16709    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16710printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16711as_fn_error $? "Something went wrong bootstrapping makefile fragments
16712    for automatic dependency tracking.  If GNU make was not used, consider
16713    re-running the configure script with MAKE=\"gmake\" (or whatever is
16714    necessary).  You can also try re-running configure with the
16715    '--disable-dependency-tracking' option to at least be able to build
16716    the package (albeit without support for automatic dependency tracking).
16717See \`config.log' for more details" "$LINENO" 5; }
16718  fi
16719  { am_dirpart=; unset am_dirpart;}
16720  { am_filepart=; unset am_filepart;}
16721  { am_mf=; unset am_mf;}
16722  { am_rc=; unset am_rc;}
16723  rm -f conftest-deps.mk
16724}
16725 ;;
16726
16727  esac
16728done # for ac_tag
16729
16730
16731as_fn_exit 0
16732_ACEOF
16733ac_clean_files=$ac_clean_files_save
16734
16735test $ac_write_fail = 0 ||
16736  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16737
16738
16739# configure is writing to config.log, and then calls config.status.
16740# config.status does its own redirection, appending to config.log.
16741# Unfortunately, on DOS this fails, as config.log is still kept open
16742# by configure, so config.status won't be able to write to it; its
16743# output is simply discarded.  So we exec the FD to /dev/null,
16744# effectively closing config.log, so it can be properly (re)opened and
16745# appended to by config.status.  When coming back to configure, we
16746# need to make the FD available again.
16747if test "$no_create" != yes; then
16748  ac_cs_success=:
16749  ac_config_status_args=
16750  test "$silent" = yes &&
16751    ac_config_status_args="$ac_config_status_args --quiet"
16752  exec 5>/dev/null
16753  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16754  exec 5>>config.log
16755  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16756  # would make configure fail if this is the last instruction.
16757  $ac_cs_success || as_fn_exit 1
16758fi
16759if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16761printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16762fi
16763
16764
16765