configure revision a4f78def
1a4f78defSmrg#! /bin/sh
2a4f78defSmrg# Guess values for system-dependent variables and create Makefiles.
3a4f78defSmrg# Generated by GNU Autoconf 2.69 for libvdpau 1.1.1.
4a4f78defSmrg#
5a4f78defSmrg# Report bugs to <vdpau@lists.freedesktop.org>.
6a4f78defSmrg#
7a4f78defSmrg#
8a4f78defSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9a4f78defSmrg#
10a4f78defSmrg#
11a4f78defSmrg# This configure script is free software; the Free Software Foundation
12a4f78defSmrg# gives unlimited permission to copy, distribute and modify it.
13a4f78defSmrg## -------------------- ##
14a4f78defSmrg## M4sh Initialization. ##
15a4f78defSmrg## -------------------- ##
16a4f78defSmrg
17a4f78defSmrg# Be more Bourne compatible
18a4f78defSmrgDUALCASE=1; export DUALCASE # for MKS sh
19a4f78defSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20a4f78defSmrg  emulate sh
21a4f78defSmrg  NULLCMD=:
22a4f78defSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23a4f78defSmrg  # is contrary to our usage.  Disable this feature.
24a4f78defSmrg  alias -g '${1+"$@"}'='"$@"'
25a4f78defSmrg  setopt NO_GLOB_SUBST
26a4f78defSmrgelse
27a4f78defSmrg  case `(set -o) 2>/dev/null` in #(
28a4f78defSmrg  *posix*) :
29a4f78defSmrg    set -o posix ;; #(
30a4f78defSmrg  *) :
31a4f78defSmrg     ;;
32a4f78defSmrgesac
33a4f78defSmrgfi
34a4f78defSmrg
35a4f78defSmrg
36a4f78defSmrgas_nl='
37a4f78defSmrg'
38a4f78defSmrgexport as_nl
39a4f78defSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
40a4f78defSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41a4f78defSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42a4f78defSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43a4f78defSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
44a4f78defSmrg# but without wasting forks for bash or zsh.
45a4f78defSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
46a4f78defSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47a4f78defSmrg  as_echo='print -r --'
48a4f78defSmrg  as_echo_n='print -rn --'
49a4f78defSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50a4f78defSmrg  as_echo='printf %s\n'
51a4f78defSmrg  as_echo_n='printf %s'
52a4f78defSmrgelse
53a4f78defSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54a4f78defSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55a4f78defSmrg    as_echo_n='/usr/ucb/echo -n'
56a4f78defSmrg  else
57a4f78defSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58a4f78defSmrg    as_echo_n_body='eval
59a4f78defSmrg      arg=$1;
60a4f78defSmrg      case $arg in #(
61a4f78defSmrg      *"$as_nl"*)
62a4f78defSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63a4f78defSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64a4f78defSmrg      esac;
65a4f78defSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66a4f78defSmrg    '
67a4f78defSmrg    export as_echo_n_body
68a4f78defSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69a4f78defSmrg  fi
70a4f78defSmrg  export as_echo_body
71a4f78defSmrg  as_echo='sh -c $as_echo_body as_echo'
72a4f78defSmrgfi
73a4f78defSmrg
74a4f78defSmrg# The user is always right.
75a4f78defSmrgif test "${PATH_SEPARATOR+set}" != set; then
76a4f78defSmrg  PATH_SEPARATOR=:
77a4f78defSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78a4f78defSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79a4f78defSmrg      PATH_SEPARATOR=';'
80a4f78defSmrg  }
81a4f78defSmrgfi
82a4f78defSmrg
83a4f78defSmrg
84a4f78defSmrg# IFS
85a4f78defSmrg# We need space, tab and new line, in precisely that order.  Quoting is
86a4f78defSmrg# there to prevent editors from complaining about space-tab.
87a4f78defSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88a4f78defSmrg# splitting by setting IFS to empty value.)
89a4f78defSmrgIFS=" ""	$as_nl"
90a4f78defSmrg
91a4f78defSmrg# Find who we are.  Look in the path if we contain no directory separator.
92a4f78defSmrgas_myself=
93a4f78defSmrgcase $0 in #((
94a4f78defSmrg  *[\\/]* ) as_myself=$0 ;;
95a4f78defSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96a4f78defSmrgfor as_dir in $PATH
97a4f78defSmrgdo
98a4f78defSmrg  IFS=$as_save_IFS
99a4f78defSmrg  test -z "$as_dir" && as_dir=.
100a4f78defSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101a4f78defSmrg  done
102a4f78defSmrgIFS=$as_save_IFS
103a4f78defSmrg
104a4f78defSmrg     ;;
105a4f78defSmrgesac
106a4f78defSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107a4f78defSmrg# in which case we are not to be found in the path.
108a4f78defSmrgif test "x$as_myself" = x; then
109a4f78defSmrg  as_myself=$0
110a4f78defSmrgfi
111a4f78defSmrgif test ! -f "$as_myself"; then
112a4f78defSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113a4f78defSmrg  exit 1
114a4f78defSmrgfi
115a4f78defSmrg
116a4f78defSmrg# Unset variables that we do not need and which cause bugs (e.g. in
117a4f78defSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118a4f78defSmrg# suppresses any "Segmentation fault" message there.  '((' could
119a4f78defSmrg# trigger a bug in pdksh 5.2.14.
120a4f78defSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
121a4f78defSmrgdo eval test x\${$as_var+set} = xset \
122a4f78defSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123a4f78defSmrgdone
124a4f78defSmrgPS1='$ '
125a4f78defSmrgPS2='> '
126a4f78defSmrgPS4='+ '
127a4f78defSmrg
128a4f78defSmrg# NLS nuisances.
129a4f78defSmrgLC_ALL=C
130a4f78defSmrgexport LC_ALL
131a4f78defSmrgLANGUAGE=C
132a4f78defSmrgexport LANGUAGE
133a4f78defSmrg
134a4f78defSmrg# CDPATH.
135a4f78defSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136a4f78defSmrg
137a4f78defSmrg# Use a proper internal environment variable to ensure we don't fall
138a4f78defSmrg  # into an infinite loop, continuously re-executing ourselves.
139a4f78defSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140a4f78defSmrg    _as_can_reexec=no; export _as_can_reexec;
141a4f78defSmrg    # We cannot yet assume a decent shell, so we have to provide a
142a4f78defSmrg# neutralization value for shells without unset; and this also
143a4f78defSmrg# works around shells that cannot unset nonexistent variables.
144a4f78defSmrg# Preserve -v and -x to the replacement shell.
145a4f78defSmrgBASH_ENV=/dev/null
146a4f78defSmrgENV=/dev/null
147a4f78defSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148a4f78defSmrgcase $- in # ((((
149a4f78defSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
150a4f78defSmrg  *v* ) as_opts=-v ;;
151a4f78defSmrg  *x* ) as_opts=-x ;;
152a4f78defSmrg  * ) as_opts= ;;
153a4f78defSmrgesac
154a4f78defSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155a4f78defSmrg# Admittedly, this is quite paranoid, since all the known shells bail
156a4f78defSmrg# out after a failed `exec'.
157a4f78defSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158a4f78defSmrgas_fn_exit 255
159a4f78defSmrg  fi
160a4f78defSmrg  # We don't want this to propagate to other subprocesses.
161a4f78defSmrg          { _as_can_reexec=; unset _as_can_reexec;}
162a4f78defSmrgif test "x$CONFIG_SHELL" = x; then
163a4f78defSmrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164a4f78defSmrg  emulate sh
165a4f78defSmrg  NULLCMD=:
166a4f78defSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167a4f78defSmrg  # is contrary to our usage.  Disable this feature.
168a4f78defSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169a4f78defSmrg  setopt NO_GLOB_SUBST
170a4f78defSmrgelse
171a4f78defSmrg  case \`(set -o) 2>/dev/null\` in #(
172a4f78defSmrg  *posix*) :
173a4f78defSmrg    set -o posix ;; #(
174a4f78defSmrg  *) :
175a4f78defSmrg     ;;
176a4f78defSmrgesac
177a4f78defSmrgfi
178a4f78defSmrg"
179a4f78defSmrg  as_required="as_fn_return () { (exit \$1); }
180a4f78defSmrgas_fn_success () { as_fn_return 0; }
181a4f78defSmrgas_fn_failure () { as_fn_return 1; }
182a4f78defSmrgas_fn_ret_success () { return 0; }
183a4f78defSmrgas_fn_ret_failure () { return 1; }
184a4f78defSmrg
185a4f78defSmrgexitcode=0
186a4f78defSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
187a4f78defSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188a4f78defSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189a4f78defSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190a4f78defSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191a4f78defSmrg
192a4f78defSmrgelse
193a4f78defSmrg  exitcode=1; echo positional parameters were not saved.
194a4f78defSmrgfi
195a4f78defSmrgtest x\$exitcode = x0 || exit 1
196a4f78defSmrgtest -x / || exit 1"
197a4f78defSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198a4f78defSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199a4f78defSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200a4f78defSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201a4f78defSmrgtest \$(( 1 + 1 )) = 2 || exit 1
202a4f78defSmrg
203a4f78defSmrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204a4f78defSmrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205a4f78defSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206a4f78defSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207a4f78defSmrg    PATH=/empty FPATH=/empty; export PATH FPATH
208a4f78defSmrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209a4f78defSmrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210a4f78defSmrg  if (eval "$as_required") 2>/dev/null; then :
211a4f78defSmrg  as_have_required=yes
212a4f78defSmrgelse
213a4f78defSmrg  as_have_required=no
214a4f78defSmrgfi
215a4f78defSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216a4f78defSmrg
217a4f78defSmrgelse
218a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219a4f78defSmrgas_found=false
220a4f78defSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221a4f78defSmrgdo
222a4f78defSmrg  IFS=$as_save_IFS
223a4f78defSmrg  test -z "$as_dir" && as_dir=.
224a4f78defSmrg  as_found=:
225a4f78defSmrg  case $as_dir in #(
226a4f78defSmrg	 /*)
227a4f78defSmrg	   for as_base in sh bash ksh sh5; do
228a4f78defSmrg	     # Try only shells that exist, to save several forks.
229a4f78defSmrg	     as_shell=$as_dir/$as_base
230a4f78defSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231a4f78defSmrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232a4f78defSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
233a4f78defSmrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234a4f78defSmrg  break 2
235a4f78defSmrgfi
236a4f78defSmrgfi
237a4f78defSmrg	   done;;
238a4f78defSmrg       esac
239a4f78defSmrg  as_found=false
240a4f78defSmrgdone
241a4f78defSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242a4f78defSmrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243a4f78defSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
244a4f78defSmrgfi; }
245a4f78defSmrgIFS=$as_save_IFS
246a4f78defSmrg
247a4f78defSmrg
248a4f78defSmrg      if test "x$CONFIG_SHELL" != x; then :
249a4f78defSmrg  export CONFIG_SHELL
250a4f78defSmrg             # We cannot yet assume a decent shell, so we have to provide a
251a4f78defSmrg# neutralization value for shells without unset; and this also
252a4f78defSmrg# works around shells that cannot unset nonexistent variables.
253a4f78defSmrg# Preserve -v and -x to the replacement shell.
254a4f78defSmrgBASH_ENV=/dev/null
255a4f78defSmrgENV=/dev/null
256a4f78defSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257a4f78defSmrgcase $- in # ((((
258a4f78defSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
259a4f78defSmrg  *v* ) as_opts=-v ;;
260a4f78defSmrg  *x* ) as_opts=-x ;;
261a4f78defSmrg  * ) as_opts= ;;
262a4f78defSmrgesac
263a4f78defSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264a4f78defSmrg# Admittedly, this is quite paranoid, since all the known shells bail
265a4f78defSmrg# out after a failed `exec'.
266a4f78defSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267a4f78defSmrgexit 255
268a4f78defSmrgfi
269a4f78defSmrg
270a4f78defSmrg    if test x$as_have_required = xno; then :
271a4f78defSmrg  $as_echo "$0: This script requires a shell more modern than all"
272a4f78defSmrg  $as_echo "$0: the shells that I found on your system."
273a4f78defSmrg  if test x${ZSH_VERSION+set} = xset ; then
274a4f78defSmrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275a4f78defSmrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276a4f78defSmrg  else
277a4f78defSmrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278a4f78defSmrg$0: vdpau@lists.freedesktop.org about your system,
279a4f78defSmrg$0: including any error possibly output before this
280a4f78defSmrg$0: message. Then install a modern shell, or manually run
281a4f78defSmrg$0: the script under such a shell if you do have one."
282a4f78defSmrg  fi
283a4f78defSmrg  exit 1
284a4f78defSmrgfi
285a4f78defSmrgfi
286a4f78defSmrgfi
287a4f78defSmrgSHELL=${CONFIG_SHELL-/bin/sh}
288a4f78defSmrgexport SHELL
289a4f78defSmrg# Unset more variables known to interfere with behavior of common tools.
290a4f78defSmrgCLICOLOR_FORCE= GREP_OPTIONS=
291a4f78defSmrgunset CLICOLOR_FORCE GREP_OPTIONS
292a4f78defSmrg
293a4f78defSmrg## --------------------- ##
294a4f78defSmrg## M4sh Shell Functions. ##
295a4f78defSmrg## --------------------- ##
296a4f78defSmrg# as_fn_unset VAR
297a4f78defSmrg# ---------------
298a4f78defSmrg# Portably unset VAR.
299a4f78defSmrgas_fn_unset ()
300a4f78defSmrg{
301a4f78defSmrg  { eval $1=; unset $1;}
302a4f78defSmrg}
303a4f78defSmrgas_unset=as_fn_unset
304a4f78defSmrg
305a4f78defSmrg# as_fn_set_status STATUS
306a4f78defSmrg# -----------------------
307a4f78defSmrg# Set $? to STATUS, without forking.
308a4f78defSmrgas_fn_set_status ()
309a4f78defSmrg{
310a4f78defSmrg  return $1
311a4f78defSmrg} # as_fn_set_status
312a4f78defSmrg
313a4f78defSmrg# as_fn_exit STATUS
314a4f78defSmrg# -----------------
315a4f78defSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316a4f78defSmrgas_fn_exit ()
317a4f78defSmrg{
318a4f78defSmrg  set +e
319a4f78defSmrg  as_fn_set_status $1
320a4f78defSmrg  exit $1
321a4f78defSmrg} # as_fn_exit
322a4f78defSmrg
323a4f78defSmrg# as_fn_mkdir_p
324a4f78defSmrg# -------------
325a4f78defSmrg# Create "$as_dir" as a directory, including parents if necessary.
326a4f78defSmrgas_fn_mkdir_p ()
327a4f78defSmrg{
328a4f78defSmrg
329a4f78defSmrg  case $as_dir in #(
330a4f78defSmrg  -*) as_dir=./$as_dir;;
331a4f78defSmrg  esac
332a4f78defSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
333a4f78defSmrg    as_dirs=
334a4f78defSmrg    while :; do
335a4f78defSmrg      case $as_dir in #(
336a4f78defSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337a4f78defSmrg      *) as_qdir=$as_dir;;
338a4f78defSmrg      esac
339a4f78defSmrg      as_dirs="'$as_qdir' $as_dirs"
340a4f78defSmrg      as_dir=`$as_dirname -- "$as_dir" ||
341a4f78defSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342a4f78defSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
343a4f78defSmrg	 X"$as_dir" : 'X\(//\)$' \| \
344a4f78defSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345a4f78defSmrg$as_echo X"$as_dir" |
346a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347a4f78defSmrg	    s//\1/
348a4f78defSmrg	    q
349a4f78defSmrg	  }
350a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
351a4f78defSmrg	    s//\1/
352a4f78defSmrg	    q
353a4f78defSmrg	  }
354a4f78defSmrg	  /^X\(\/\/\)$/{
355a4f78defSmrg	    s//\1/
356a4f78defSmrg	    q
357a4f78defSmrg	  }
358a4f78defSmrg	  /^X\(\/\).*/{
359a4f78defSmrg	    s//\1/
360a4f78defSmrg	    q
361a4f78defSmrg	  }
362a4f78defSmrg	  s/.*/./; q'`
363a4f78defSmrg      test -d "$as_dir" && break
364a4f78defSmrg    done
365a4f78defSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
366a4f78defSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367a4f78defSmrg
368a4f78defSmrg
369a4f78defSmrg} # as_fn_mkdir_p
370a4f78defSmrg
371a4f78defSmrg# as_fn_executable_p FILE
372a4f78defSmrg# -----------------------
373a4f78defSmrg# Test if FILE is an executable regular file.
374a4f78defSmrgas_fn_executable_p ()
375a4f78defSmrg{
376a4f78defSmrg  test -f "$1" && test -x "$1"
377a4f78defSmrg} # as_fn_executable_p
378a4f78defSmrg# as_fn_append VAR VALUE
379a4f78defSmrg# ----------------------
380a4f78defSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
381a4f78defSmrg# advantage of any shell optimizations that allow amortized linear growth over
382a4f78defSmrg# repeated appends, instead of the typical quadratic growth present in naive
383a4f78defSmrg# implementations.
384a4f78defSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385a4f78defSmrg  eval 'as_fn_append ()
386a4f78defSmrg  {
387a4f78defSmrg    eval $1+=\$2
388a4f78defSmrg  }'
389a4f78defSmrgelse
390a4f78defSmrg  as_fn_append ()
391a4f78defSmrg  {
392a4f78defSmrg    eval $1=\$$1\$2
393a4f78defSmrg  }
394a4f78defSmrgfi # as_fn_append
395a4f78defSmrg
396a4f78defSmrg# as_fn_arith ARG...
397a4f78defSmrg# ------------------
398a4f78defSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
399a4f78defSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
400a4f78defSmrg# must be portable across $(()) and expr.
401a4f78defSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402a4f78defSmrg  eval 'as_fn_arith ()
403a4f78defSmrg  {
404a4f78defSmrg    as_val=$(( $* ))
405a4f78defSmrg  }'
406a4f78defSmrgelse
407a4f78defSmrg  as_fn_arith ()
408a4f78defSmrg  {
409a4f78defSmrg    as_val=`expr "$@" || test $? -eq 1`
410a4f78defSmrg  }
411a4f78defSmrgfi # as_fn_arith
412a4f78defSmrg
413a4f78defSmrg
414a4f78defSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
415a4f78defSmrg# ----------------------------------------
416a4f78defSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417a4f78defSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418a4f78defSmrg# script with STATUS, using 1 if that was 0.
419a4f78defSmrgas_fn_error ()
420a4f78defSmrg{
421a4f78defSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
422a4f78defSmrg  if test "$4"; then
423a4f78defSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425a4f78defSmrg  fi
426a4f78defSmrg  $as_echo "$as_me: error: $2" >&2
427a4f78defSmrg  as_fn_exit $as_status
428a4f78defSmrg} # as_fn_error
429a4f78defSmrg
430a4f78defSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
431a4f78defSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432a4f78defSmrg  as_expr=expr
433a4f78defSmrgelse
434a4f78defSmrg  as_expr=false
435a4f78defSmrgfi
436a4f78defSmrg
437a4f78defSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438a4f78defSmrg  as_basename=basename
439a4f78defSmrgelse
440a4f78defSmrg  as_basename=false
441a4f78defSmrgfi
442a4f78defSmrg
443a4f78defSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444a4f78defSmrg  as_dirname=dirname
445a4f78defSmrgelse
446a4f78defSmrg  as_dirname=false
447a4f78defSmrgfi
448a4f78defSmrg
449a4f78defSmrgas_me=`$as_basename -- "$0" ||
450a4f78defSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451a4f78defSmrg	 X"$0" : 'X\(//\)$' \| \
452a4f78defSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453a4f78defSmrg$as_echo X/"$0" |
454a4f78defSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
455a4f78defSmrg	    s//\1/
456a4f78defSmrg	    q
457a4f78defSmrg	  }
458a4f78defSmrg	  /^X\/\(\/\/\)$/{
459a4f78defSmrg	    s//\1/
460a4f78defSmrg	    q
461a4f78defSmrg	  }
462a4f78defSmrg	  /^X\/\(\/\).*/{
463a4f78defSmrg	    s//\1/
464a4f78defSmrg	    q
465a4f78defSmrg	  }
466a4f78defSmrg	  s/.*/./; q'`
467a4f78defSmrg
468a4f78defSmrg# Avoid depending upon Character Ranges.
469a4f78defSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
470a4f78defSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471a4f78defSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
472a4f78defSmrgas_cr_digits='0123456789'
473a4f78defSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
474a4f78defSmrg
475a4f78defSmrg
476a4f78defSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477a4f78defSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478a4f78defSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479a4f78defSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480a4f78defSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481a4f78defSmrg  sed -n '
482a4f78defSmrg    p
483a4f78defSmrg    /[$]LINENO/=
484a4f78defSmrg  ' <$as_myself |
485a4f78defSmrg    sed '
486a4f78defSmrg      s/[$]LINENO.*/&-/
487a4f78defSmrg      t lineno
488a4f78defSmrg      b
489a4f78defSmrg      :lineno
490a4f78defSmrg      N
491a4f78defSmrg      :loop
492a4f78defSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493a4f78defSmrg      t loop
494a4f78defSmrg      s/-\n.*//
495a4f78defSmrg    ' >$as_me.lineno &&
496a4f78defSmrg  chmod +x "$as_me.lineno" ||
497a4f78defSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498a4f78defSmrg
499a4f78defSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500a4f78defSmrg  # already done that, so ensure we don't try to do so again and fall
501a4f78defSmrg  # in an infinite loop.  This has already happened in practice.
502a4f78defSmrg  _as_can_reexec=no; export _as_can_reexec
503a4f78defSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
504a4f78defSmrg  # (the dirname of $[0] is not the place where we might find the
505a4f78defSmrg  # original and so on.  Autoconf is especially sensitive to this).
506a4f78defSmrg  . "./$as_me.lineno"
507a4f78defSmrg  # Exit status is that of the last command.
508a4f78defSmrg  exit
509a4f78defSmrg}
510a4f78defSmrg
511a4f78defSmrgECHO_C= ECHO_N= ECHO_T=
512a4f78defSmrgcase `echo -n x` in #(((((
513a4f78defSmrg-n*)
514a4f78defSmrg  case `echo 'xy\c'` in
515a4f78defSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516a4f78defSmrg  xy)  ECHO_C='\c';;
517a4f78defSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518a4f78defSmrg       ECHO_T='	';;
519a4f78defSmrg  esac;;
520a4f78defSmrg*)
521a4f78defSmrg  ECHO_N='-n';;
522a4f78defSmrgesac
523a4f78defSmrg
524a4f78defSmrgrm -f conf$$ conf$$.exe conf$$.file
525a4f78defSmrgif test -d conf$$.dir; then
526a4f78defSmrg  rm -f conf$$.dir/conf$$.file
527a4f78defSmrgelse
528a4f78defSmrg  rm -f conf$$.dir
529a4f78defSmrg  mkdir conf$$.dir 2>/dev/null
530a4f78defSmrgfi
531a4f78defSmrgif (echo >conf$$.file) 2>/dev/null; then
532a4f78defSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
533a4f78defSmrg    as_ln_s='ln -s'
534a4f78defSmrg    # ... but there are two gotchas:
535a4f78defSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536a4f78defSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537a4f78defSmrg    # In both cases, we have to default to `cp -pR'.
538a4f78defSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539a4f78defSmrg      as_ln_s='cp -pR'
540a4f78defSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
541a4f78defSmrg    as_ln_s=ln
542a4f78defSmrg  else
543a4f78defSmrg    as_ln_s='cp -pR'
544a4f78defSmrg  fi
545a4f78defSmrgelse
546a4f78defSmrg  as_ln_s='cp -pR'
547a4f78defSmrgfi
548a4f78defSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549a4f78defSmrgrmdir conf$$.dir 2>/dev/null
550a4f78defSmrg
551a4f78defSmrgif mkdir -p . 2>/dev/null; then
552a4f78defSmrg  as_mkdir_p='mkdir -p "$as_dir"'
553a4f78defSmrgelse
554a4f78defSmrg  test -d ./-p && rmdir ./-p
555a4f78defSmrg  as_mkdir_p=false
556a4f78defSmrgfi
557a4f78defSmrg
558a4f78defSmrgas_test_x='test -x'
559a4f78defSmrgas_executable_p=as_fn_executable_p
560a4f78defSmrg
561a4f78defSmrg# Sed expression to map a string onto a valid CPP name.
562a4f78defSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563a4f78defSmrg
564a4f78defSmrg# Sed expression to map a string onto a valid variable name.
565a4f78defSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566a4f78defSmrg
567a4f78defSmrgSHELL=${CONFIG_SHELL-/bin/sh}
568a4f78defSmrg
569a4f78defSmrg
570a4f78defSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
571a4f78defSmrgexec 6>&1
572a4f78defSmrg
573a4f78defSmrg# Name of the host.
574a4f78defSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575a4f78defSmrg# so uname gets run too.
576a4f78defSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577a4f78defSmrg
578a4f78defSmrg#
579a4f78defSmrg# Initializations.
580a4f78defSmrg#
581a4f78defSmrgac_default_prefix=/usr/local
582a4f78defSmrgac_clean_files=
583a4f78defSmrgac_config_libobj_dir=.
584a4f78defSmrgLIBOBJS=
585a4f78defSmrgcross_compiling=no
586a4f78defSmrgsubdirs=
587a4f78defSmrgMFLAGS=
588a4f78defSmrgMAKEFLAGS=
589a4f78defSmrg
590a4f78defSmrg# Identity of this package.
591a4f78defSmrgPACKAGE_NAME='libvdpau'
592a4f78defSmrgPACKAGE_TARNAME='libvdpau'
593a4f78defSmrgPACKAGE_VERSION='1.1.1'
594a4f78defSmrgPACKAGE_STRING='libvdpau 1.1.1'
595a4f78defSmrgPACKAGE_BUGREPORT='vdpau@lists.freedesktop.org'
596a4f78defSmrgPACKAGE_URL=''
597a4f78defSmrg
598a4f78defSmrg# Factoring default headers for most tests.
599a4f78defSmrgac_includes_default="\
600a4f78defSmrg#include <stdio.h>
601a4f78defSmrg#ifdef HAVE_SYS_TYPES_H
602a4f78defSmrg# include <sys/types.h>
603a4f78defSmrg#endif
604a4f78defSmrg#ifdef HAVE_SYS_STAT_H
605a4f78defSmrg# include <sys/stat.h>
606a4f78defSmrg#endif
607a4f78defSmrg#ifdef STDC_HEADERS
608a4f78defSmrg# include <stdlib.h>
609a4f78defSmrg# include <stddef.h>
610a4f78defSmrg#else
611a4f78defSmrg# ifdef HAVE_STDLIB_H
612a4f78defSmrg#  include <stdlib.h>
613a4f78defSmrg# endif
614a4f78defSmrg#endif
615a4f78defSmrg#ifdef HAVE_STRING_H
616a4f78defSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617a4f78defSmrg#  include <memory.h>
618a4f78defSmrg# endif
619a4f78defSmrg# include <string.h>
620a4f78defSmrg#endif
621a4f78defSmrg#ifdef HAVE_STRINGS_H
622a4f78defSmrg# include <strings.h>
623a4f78defSmrg#endif
624a4f78defSmrg#ifdef HAVE_INTTYPES_H
625a4f78defSmrg# include <inttypes.h>
626a4f78defSmrg#endif
627a4f78defSmrg#ifdef HAVE_STDINT_H
628a4f78defSmrg# include <stdint.h>
629a4f78defSmrg#endif
630a4f78defSmrg#ifdef HAVE_UNISTD_H
631a4f78defSmrg# include <unistd.h>
632a4f78defSmrg#endif"
633a4f78defSmrg
634a4f78defSmrgac_subst_vars='am__EXEEXT_FALSE
635a4f78defSmrgam__EXEEXT_TRUE
636a4f78defSmrgLTLIBOBJS
637a4f78defSmrgLIBOBJS
638a4f78defSmrgdistcleancheck_listfiles
639a4f78defSmrgCHANGELOG_CMD
640a4f78defSmrgmoduledir
641a4f78defSmrgENABLE_DOCS_FALSE
642a4f78defSmrgENABLE_DOCS_TRUE
643a4f78defSmrgDOT
644a4f78defSmrgDOXYGEN
645a4f78defSmrgPTHREAD_LIBS
646a4f78defSmrgDLOPEN_LIBS
647a4f78defSmrgDRI2_FALSE
648a4f78defSmrgDRI2_TRUE
649a4f78defSmrgXEXT_LIBS
650a4f78defSmrgXEXT_CFLAGS
651a4f78defSmrgdri2proto_LIBS
652a4f78defSmrgdri2proto_CFLAGS
653a4f78defSmrgX11_LIBS
654a4f78defSmrgX11_CFLAGS
655a4f78defSmrgPKG_CONFIG_LIBDIR
656a4f78defSmrgPKG_CONFIG_PATH
657a4f78defSmrgPKG_CONFIG
658a4f78defSmrgCXXCPP
659a4f78defSmrgLT_SYS_LIBRARY_PATH
660a4f78defSmrgOTOOL64
661a4f78defSmrgOTOOL
662a4f78defSmrgLIPO
663a4f78defSmrgNMEDIT
664a4f78defSmrgDSYMUTIL
665a4f78defSmrgMANIFEST_TOOL
666a4f78defSmrgRANLIB
667a4f78defSmrgac_ct_AR
668a4f78defSmrgAR
669a4f78defSmrgDLLTOOL
670a4f78defSmrgOBJDUMP
671a4f78defSmrgLN_S
672a4f78defSmrgNM
673a4f78defSmrgac_ct_DUMPBIN
674a4f78defSmrgDUMPBIN
675a4f78defSmrgLD
676a4f78defSmrgFGREP
677a4f78defSmrgSED
678a4f78defSmrghost_os
679a4f78defSmrghost_vendor
680a4f78defSmrghost_cpu
681a4f78defSmrghost
682a4f78defSmrgbuild_os
683a4f78defSmrgbuild_vendor
684a4f78defSmrgbuild_cpu
685a4f78defSmrgbuild
686a4f78defSmrgLIBTOOL
687a4f78defSmrgam__fastdepCXX_FALSE
688a4f78defSmrgam__fastdepCXX_TRUE
689a4f78defSmrgCXXDEPMODE
690a4f78defSmrgac_ct_CXX
691a4f78defSmrgCXXFLAGS
692a4f78defSmrgCXX
693a4f78defSmrgEGREP
694a4f78defSmrgGREP
695a4f78defSmrgCPP
696a4f78defSmrgam__fastdepCC_FALSE
697a4f78defSmrgam__fastdepCC_TRUE
698a4f78defSmrgCCDEPMODE
699a4f78defSmrgam__nodep
700a4f78defSmrgAMDEPBACKSLASH
701a4f78defSmrgAMDEP_FALSE
702a4f78defSmrgAMDEP_TRUE
703a4f78defSmrgam__quote
704a4f78defSmrgam__include
705a4f78defSmrgDEPDIR
706a4f78defSmrgOBJEXT
707a4f78defSmrgEXEEXT
708a4f78defSmrgac_ct_CC
709a4f78defSmrgCPPFLAGS
710a4f78defSmrgLDFLAGS
711a4f78defSmrgCFLAGS
712a4f78defSmrgCC
713a4f78defSmrgAM_BACKSLASH
714a4f78defSmrgAM_DEFAULT_VERBOSITY
715a4f78defSmrgAM_DEFAULT_V
716a4f78defSmrgAM_V
717a4f78defSmrgam__untar
718a4f78defSmrgam__tar
719a4f78defSmrgAMTAR
720a4f78defSmrgam__leading_dot
721a4f78defSmrgSET_MAKE
722a4f78defSmrgAWK
723a4f78defSmrgmkdir_p
724a4f78defSmrgMKDIR_P
725a4f78defSmrgINSTALL_STRIP_PROGRAM
726a4f78defSmrgSTRIP
727a4f78defSmrginstall_sh
728a4f78defSmrgMAKEINFO
729a4f78defSmrgAUTOHEADER
730a4f78defSmrgAUTOMAKE
731a4f78defSmrgAUTOCONF
732a4f78defSmrgACLOCAL
733a4f78defSmrgVERSION
734a4f78defSmrgPACKAGE
735a4f78defSmrgCYGPATH_W
736a4f78defSmrgam__isrc
737a4f78defSmrgINSTALL_DATA
738a4f78defSmrgINSTALL_SCRIPT
739a4f78defSmrgINSTALL_PROGRAM
740a4f78defSmrgtarget_alias
741a4f78defSmrghost_alias
742a4f78defSmrgbuild_alias
743a4f78defSmrgLIBS
744a4f78defSmrgECHO_T
745a4f78defSmrgECHO_N
746a4f78defSmrgECHO_C
747a4f78defSmrgDEFS
748a4f78defSmrgmandir
749a4f78defSmrglocaledir
750a4f78defSmrglibdir
751a4f78defSmrgpsdir
752a4f78defSmrgpdfdir
753a4f78defSmrgdvidir
754a4f78defSmrghtmldir
755a4f78defSmrginfodir
756a4f78defSmrgdocdir
757a4f78defSmrgoldincludedir
758a4f78defSmrgincludedir
759a4f78defSmrglocalstatedir
760a4f78defSmrgsharedstatedir
761a4f78defSmrgsysconfdir
762a4f78defSmrgdatadir
763a4f78defSmrgdatarootdir
764a4f78defSmrglibexecdir
765a4f78defSmrgsbindir
766a4f78defSmrgbindir
767a4f78defSmrgprogram_transform_name
768a4f78defSmrgprefix
769a4f78defSmrgexec_prefix
770a4f78defSmrgPACKAGE_URL
771a4f78defSmrgPACKAGE_BUGREPORT
772a4f78defSmrgPACKAGE_STRING
773a4f78defSmrgPACKAGE_VERSION
774a4f78defSmrgPACKAGE_TARNAME
775a4f78defSmrgPACKAGE_NAME
776a4f78defSmrgPATH_SEPARATOR
777a4f78defSmrgSHELL'
778a4f78defSmrgac_subst_files=''
779a4f78defSmrgac_user_opts='
780a4f78defSmrgenable_option_checking
781a4f78defSmrgenable_silent_rules
782a4f78defSmrgenable_dependency_tracking
783a4f78defSmrgenable_static
784a4f78defSmrgenable_shared
785a4f78defSmrgwith_pic
786a4f78defSmrgenable_fast_install
787a4f78defSmrgwith_aix_soname
788a4f78defSmrgwith_gnu_ld
789a4f78defSmrgwith_sysroot
790a4f78defSmrgenable_libtool_lock
791a4f78defSmrgenable_dri2
792a4f78defSmrgenable_documentation
793a4f78defSmrgwith_module_dir
794a4f78defSmrg'
795a4f78defSmrg      ac_precious_vars='build_alias
796a4f78defSmrghost_alias
797a4f78defSmrgtarget_alias
798a4f78defSmrgCC
799a4f78defSmrgCFLAGS
800a4f78defSmrgLDFLAGS
801a4f78defSmrgLIBS
802a4f78defSmrgCPPFLAGS
803a4f78defSmrgCPP
804a4f78defSmrgCXX
805a4f78defSmrgCXXFLAGS
806a4f78defSmrgCCC
807a4f78defSmrgLT_SYS_LIBRARY_PATH
808a4f78defSmrgCXXCPP
809a4f78defSmrgPKG_CONFIG
810a4f78defSmrgPKG_CONFIG_PATH
811a4f78defSmrgPKG_CONFIG_LIBDIR
812a4f78defSmrgX11_CFLAGS
813a4f78defSmrgX11_LIBS
814a4f78defSmrgdri2proto_CFLAGS
815a4f78defSmrgdri2proto_LIBS
816a4f78defSmrgXEXT_CFLAGS
817a4f78defSmrgXEXT_LIBS'
818a4f78defSmrg
819a4f78defSmrg
820a4f78defSmrg# Initialize some variables set by options.
821a4f78defSmrgac_init_help=
822a4f78defSmrgac_init_version=false
823a4f78defSmrgac_unrecognized_opts=
824a4f78defSmrgac_unrecognized_sep=
825a4f78defSmrg# The variables have the same names as the options, with
826a4f78defSmrg# dashes changed to underlines.
827a4f78defSmrgcache_file=/dev/null
828a4f78defSmrgexec_prefix=NONE
829a4f78defSmrgno_create=
830a4f78defSmrgno_recursion=
831a4f78defSmrgprefix=NONE
832a4f78defSmrgprogram_prefix=NONE
833a4f78defSmrgprogram_suffix=NONE
834a4f78defSmrgprogram_transform_name=s,x,x,
835a4f78defSmrgsilent=
836a4f78defSmrgsite=
837a4f78defSmrgsrcdir=
838a4f78defSmrgverbose=
839a4f78defSmrgx_includes=NONE
840a4f78defSmrgx_libraries=NONE
841a4f78defSmrg
842a4f78defSmrg# Installation directory options.
843a4f78defSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
844a4f78defSmrg# and all the variables that are supposed to be based on exec_prefix
845a4f78defSmrg# by default will actually change.
846a4f78defSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
847a4f78defSmrg# (The list follows the same order as the GNU Coding Standards.)
848a4f78defSmrgbindir='${exec_prefix}/bin'
849a4f78defSmrgsbindir='${exec_prefix}/sbin'
850a4f78defSmrglibexecdir='${exec_prefix}/libexec'
851a4f78defSmrgdatarootdir='${prefix}/share'
852a4f78defSmrgdatadir='${datarootdir}'
853a4f78defSmrgsysconfdir='${prefix}/etc'
854a4f78defSmrgsharedstatedir='${prefix}/com'
855a4f78defSmrglocalstatedir='${prefix}/var'
856a4f78defSmrgincludedir='${prefix}/include'
857a4f78defSmrgoldincludedir='/usr/include'
858a4f78defSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859a4f78defSmrginfodir='${datarootdir}/info'
860a4f78defSmrghtmldir='${docdir}'
861a4f78defSmrgdvidir='${docdir}'
862a4f78defSmrgpdfdir='${docdir}'
863a4f78defSmrgpsdir='${docdir}'
864a4f78defSmrglibdir='${exec_prefix}/lib'
865a4f78defSmrglocaledir='${datarootdir}/locale'
866a4f78defSmrgmandir='${datarootdir}/man'
867a4f78defSmrg
868a4f78defSmrgac_prev=
869a4f78defSmrgac_dashdash=
870a4f78defSmrgfor ac_option
871a4f78defSmrgdo
872a4f78defSmrg  # If the previous option needs an argument, assign it.
873a4f78defSmrg  if test -n "$ac_prev"; then
874a4f78defSmrg    eval $ac_prev=\$ac_option
875a4f78defSmrg    ac_prev=
876a4f78defSmrg    continue
877a4f78defSmrg  fi
878a4f78defSmrg
879a4f78defSmrg  case $ac_option in
880a4f78defSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881a4f78defSmrg  *=)   ac_optarg= ;;
882a4f78defSmrg  *)    ac_optarg=yes ;;
883a4f78defSmrg  esac
884a4f78defSmrg
885a4f78defSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
886a4f78defSmrg
887a4f78defSmrg  case $ac_dashdash$ac_option in
888a4f78defSmrg  --)
889a4f78defSmrg    ac_dashdash=yes ;;
890a4f78defSmrg
891a4f78defSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
892a4f78defSmrg    ac_prev=bindir ;;
893a4f78defSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894a4f78defSmrg    bindir=$ac_optarg ;;
895a4f78defSmrg
896a4f78defSmrg  -build | --build | --buil | --bui | --bu)
897a4f78defSmrg    ac_prev=build_alias ;;
898a4f78defSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899a4f78defSmrg    build_alias=$ac_optarg ;;
900a4f78defSmrg
901a4f78defSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
902a4f78defSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903a4f78defSmrg    ac_prev=cache_file ;;
904a4f78defSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905a4f78defSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906a4f78defSmrg    cache_file=$ac_optarg ;;
907a4f78defSmrg
908a4f78defSmrg  --config-cache | -C)
909a4f78defSmrg    cache_file=config.cache ;;
910a4f78defSmrg
911a4f78defSmrg  -datadir | --datadir | --datadi | --datad)
912a4f78defSmrg    ac_prev=datadir ;;
913a4f78defSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
914a4f78defSmrg    datadir=$ac_optarg ;;
915a4f78defSmrg
916a4f78defSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917a4f78defSmrg  | --dataroo | --dataro | --datar)
918a4f78defSmrg    ac_prev=datarootdir ;;
919a4f78defSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920a4f78defSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921a4f78defSmrg    datarootdir=$ac_optarg ;;
922a4f78defSmrg
923a4f78defSmrg  -disable-* | --disable-*)
924a4f78defSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925a4f78defSmrg    # Reject names that are not valid shell variable names.
926a4f78defSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927a4f78defSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
928a4f78defSmrg    ac_useropt_orig=$ac_useropt
929a4f78defSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930a4f78defSmrg    case $ac_user_opts in
931a4f78defSmrg      *"
932a4f78defSmrg"enable_$ac_useropt"
933a4f78defSmrg"*) ;;
934a4f78defSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935a4f78defSmrg	 ac_unrecognized_sep=', ';;
936a4f78defSmrg    esac
937a4f78defSmrg    eval enable_$ac_useropt=no ;;
938a4f78defSmrg
939a4f78defSmrg  -docdir | --docdir | --docdi | --doc | --do)
940a4f78defSmrg    ac_prev=docdir ;;
941a4f78defSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942a4f78defSmrg    docdir=$ac_optarg ;;
943a4f78defSmrg
944a4f78defSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945a4f78defSmrg    ac_prev=dvidir ;;
946a4f78defSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947a4f78defSmrg    dvidir=$ac_optarg ;;
948a4f78defSmrg
949a4f78defSmrg  -enable-* | --enable-*)
950a4f78defSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951a4f78defSmrg    # Reject names that are not valid shell variable names.
952a4f78defSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953a4f78defSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
954a4f78defSmrg    ac_useropt_orig=$ac_useropt
955a4f78defSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956a4f78defSmrg    case $ac_user_opts in
957a4f78defSmrg      *"
958a4f78defSmrg"enable_$ac_useropt"
959a4f78defSmrg"*) ;;
960a4f78defSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961a4f78defSmrg	 ac_unrecognized_sep=', ';;
962a4f78defSmrg    esac
963a4f78defSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
964a4f78defSmrg
965a4f78defSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966a4f78defSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967a4f78defSmrg  | --exec | --exe | --ex)
968a4f78defSmrg    ac_prev=exec_prefix ;;
969a4f78defSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970a4f78defSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971a4f78defSmrg  | --exec=* | --exe=* | --ex=*)
972a4f78defSmrg    exec_prefix=$ac_optarg ;;
973a4f78defSmrg
974a4f78defSmrg  -gas | --gas | --ga | --g)
975a4f78defSmrg    # Obsolete; use --with-gas.
976a4f78defSmrg    with_gas=yes ;;
977a4f78defSmrg
978a4f78defSmrg  -help | --help | --hel | --he | -h)
979a4f78defSmrg    ac_init_help=long ;;
980a4f78defSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981a4f78defSmrg    ac_init_help=recursive ;;
982a4f78defSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983a4f78defSmrg    ac_init_help=short ;;
984a4f78defSmrg
985a4f78defSmrg  -host | --host | --hos | --ho)
986a4f78defSmrg    ac_prev=host_alias ;;
987a4f78defSmrg  -host=* | --host=* | --hos=* | --ho=*)
988a4f78defSmrg    host_alias=$ac_optarg ;;
989a4f78defSmrg
990a4f78defSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991a4f78defSmrg    ac_prev=htmldir ;;
992a4f78defSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993a4f78defSmrg  | --ht=*)
994a4f78defSmrg    htmldir=$ac_optarg ;;
995a4f78defSmrg
996a4f78defSmrg  -includedir | --includedir | --includedi | --included | --include \
997a4f78defSmrg  | --includ | --inclu | --incl | --inc)
998a4f78defSmrg    ac_prev=includedir ;;
999a4f78defSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000a4f78defSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
1001a4f78defSmrg    includedir=$ac_optarg ;;
1002a4f78defSmrg
1003a4f78defSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
1004a4f78defSmrg    ac_prev=infodir ;;
1005a4f78defSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006a4f78defSmrg    infodir=$ac_optarg ;;
1007a4f78defSmrg
1008a4f78defSmrg  -libdir | --libdir | --libdi | --libd)
1009a4f78defSmrg    ac_prev=libdir ;;
1010a4f78defSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011a4f78defSmrg    libdir=$ac_optarg ;;
1012a4f78defSmrg
1013a4f78defSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014a4f78defSmrg  | --libexe | --libex | --libe)
1015a4f78defSmrg    ac_prev=libexecdir ;;
1016a4f78defSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017a4f78defSmrg  | --libexe=* | --libex=* | --libe=*)
1018a4f78defSmrg    libexecdir=$ac_optarg ;;
1019a4f78defSmrg
1020a4f78defSmrg  -localedir | --localedir | --localedi | --localed | --locale)
1021a4f78defSmrg    ac_prev=localedir ;;
1022a4f78defSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023a4f78defSmrg    localedir=$ac_optarg ;;
1024a4f78defSmrg
1025a4f78defSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1026a4f78defSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
1027a4f78defSmrg    ac_prev=localstatedir ;;
1028a4f78defSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029a4f78defSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030a4f78defSmrg    localstatedir=$ac_optarg ;;
1031a4f78defSmrg
1032a4f78defSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033a4f78defSmrg    ac_prev=mandir ;;
1034a4f78defSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035a4f78defSmrg    mandir=$ac_optarg ;;
1036a4f78defSmrg
1037a4f78defSmrg  -nfp | --nfp | --nf)
1038a4f78defSmrg    # Obsolete; use --without-fp.
1039a4f78defSmrg    with_fp=no ;;
1040a4f78defSmrg
1041a4f78defSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042a4f78defSmrg  | --no-cr | --no-c | -n)
1043a4f78defSmrg    no_create=yes ;;
1044a4f78defSmrg
1045a4f78defSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046a4f78defSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047a4f78defSmrg    no_recursion=yes ;;
1048a4f78defSmrg
1049a4f78defSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050a4f78defSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051a4f78defSmrg  | --oldin | --oldi | --old | --ol | --o)
1052a4f78defSmrg    ac_prev=oldincludedir ;;
1053a4f78defSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054a4f78defSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055a4f78defSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056a4f78defSmrg    oldincludedir=$ac_optarg ;;
1057a4f78defSmrg
1058a4f78defSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059a4f78defSmrg    ac_prev=prefix ;;
1060a4f78defSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061a4f78defSmrg    prefix=$ac_optarg ;;
1062a4f78defSmrg
1063a4f78defSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064a4f78defSmrg  | --program-pre | --program-pr | --program-p)
1065a4f78defSmrg    ac_prev=program_prefix ;;
1066a4f78defSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067a4f78defSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068a4f78defSmrg    program_prefix=$ac_optarg ;;
1069a4f78defSmrg
1070a4f78defSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071a4f78defSmrg  | --program-suf | --program-su | --program-s)
1072a4f78defSmrg    ac_prev=program_suffix ;;
1073a4f78defSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074a4f78defSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075a4f78defSmrg    program_suffix=$ac_optarg ;;
1076a4f78defSmrg
1077a4f78defSmrg  -program-transform-name | --program-transform-name \
1078a4f78defSmrg  | --program-transform-nam | --program-transform-na \
1079a4f78defSmrg  | --program-transform-n | --program-transform- \
1080a4f78defSmrg  | --program-transform | --program-transfor \
1081a4f78defSmrg  | --program-transfo | --program-transf \
1082a4f78defSmrg  | --program-trans | --program-tran \
1083a4f78defSmrg  | --progr-tra | --program-tr | --program-t)
1084a4f78defSmrg    ac_prev=program_transform_name ;;
1085a4f78defSmrg  -program-transform-name=* | --program-transform-name=* \
1086a4f78defSmrg  | --program-transform-nam=* | --program-transform-na=* \
1087a4f78defSmrg  | --program-transform-n=* | --program-transform-=* \
1088a4f78defSmrg  | --program-transform=* | --program-transfor=* \
1089a4f78defSmrg  | --program-transfo=* | --program-transf=* \
1090a4f78defSmrg  | --program-trans=* | --program-tran=* \
1091a4f78defSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1092a4f78defSmrg    program_transform_name=$ac_optarg ;;
1093a4f78defSmrg
1094a4f78defSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095a4f78defSmrg    ac_prev=pdfdir ;;
1096a4f78defSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097a4f78defSmrg    pdfdir=$ac_optarg ;;
1098a4f78defSmrg
1099a4f78defSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1100a4f78defSmrg    ac_prev=psdir ;;
1101a4f78defSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102a4f78defSmrg    psdir=$ac_optarg ;;
1103a4f78defSmrg
1104a4f78defSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105a4f78defSmrg  | -silent | --silent | --silen | --sile | --sil)
1106a4f78defSmrg    silent=yes ;;
1107a4f78defSmrg
1108a4f78defSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109a4f78defSmrg    ac_prev=sbindir ;;
1110a4f78defSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111a4f78defSmrg  | --sbi=* | --sb=*)
1112a4f78defSmrg    sbindir=$ac_optarg ;;
1113a4f78defSmrg
1114a4f78defSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115a4f78defSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116a4f78defSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1117a4f78defSmrg  | --sha | --sh)
1118a4f78defSmrg    ac_prev=sharedstatedir ;;
1119a4f78defSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120a4f78defSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121a4f78defSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122a4f78defSmrg  | --sha=* | --sh=*)
1123a4f78defSmrg    sharedstatedir=$ac_optarg ;;
1124a4f78defSmrg
1125a4f78defSmrg  -site | --site | --sit)
1126a4f78defSmrg    ac_prev=site ;;
1127a4f78defSmrg  -site=* | --site=* | --sit=*)
1128a4f78defSmrg    site=$ac_optarg ;;
1129a4f78defSmrg
1130a4f78defSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131a4f78defSmrg    ac_prev=srcdir ;;
1132a4f78defSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133a4f78defSmrg    srcdir=$ac_optarg ;;
1134a4f78defSmrg
1135a4f78defSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136a4f78defSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1137a4f78defSmrg    ac_prev=sysconfdir ;;
1138a4f78defSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139a4f78defSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140a4f78defSmrg    sysconfdir=$ac_optarg ;;
1141a4f78defSmrg
1142a4f78defSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1143a4f78defSmrg    ac_prev=target_alias ;;
1144a4f78defSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145a4f78defSmrg    target_alias=$ac_optarg ;;
1146a4f78defSmrg
1147a4f78defSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148a4f78defSmrg    verbose=yes ;;
1149a4f78defSmrg
1150a4f78defSmrg  -version | --version | --versio | --versi | --vers | -V)
1151a4f78defSmrg    ac_init_version=: ;;
1152a4f78defSmrg
1153a4f78defSmrg  -with-* | --with-*)
1154a4f78defSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155a4f78defSmrg    # Reject names that are not valid shell variable names.
1156a4f78defSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157a4f78defSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1158a4f78defSmrg    ac_useropt_orig=$ac_useropt
1159a4f78defSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160a4f78defSmrg    case $ac_user_opts in
1161a4f78defSmrg      *"
1162a4f78defSmrg"with_$ac_useropt"
1163a4f78defSmrg"*) ;;
1164a4f78defSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165a4f78defSmrg	 ac_unrecognized_sep=', ';;
1166a4f78defSmrg    esac
1167a4f78defSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1168a4f78defSmrg
1169a4f78defSmrg  -without-* | --without-*)
1170a4f78defSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171a4f78defSmrg    # Reject names that are not valid shell variable names.
1172a4f78defSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173a4f78defSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1174a4f78defSmrg    ac_useropt_orig=$ac_useropt
1175a4f78defSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176a4f78defSmrg    case $ac_user_opts in
1177a4f78defSmrg      *"
1178a4f78defSmrg"with_$ac_useropt"
1179a4f78defSmrg"*) ;;
1180a4f78defSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181a4f78defSmrg	 ac_unrecognized_sep=', ';;
1182a4f78defSmrg    esac
1183a4f78defSmrg    eval with_$ac_useropt=no ;;
1184a4f78defSmrg
1185a4f78defSmrg  --x)
1186a4f78defSmrg    # Obsolete; use --with-x.
1187a4f78defSmrg    with_x=yes ;;
1188a4f78defSmrg
1189a4f78defSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190a4f78defSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1191a4f78defSmrg    ac_prev=x_includes ;;
1192a4f78defSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193a4f78defSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194a4f78defSmrg    x_includes=$ac_optarg ;;
1195a4f78defSmrg
1196a4f78defSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197a4f78defSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198a4f78defSmrg    ac_prev=x_libraries ;;
1199a4f78defSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200a4f78defSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201a4f78defSmrg    x_libraries=$ac_optarg ;;
1202a4f78defSmrg
1203a4f78defSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204a4f78defSmrgTry \`$0 --help' for more information"
1205a4f78defSmrg    ;;
1206a4f78defSmrg
1207a4f78defSmrg  *=*)
1208a4f78defSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209a4f78defSmrg    # Reject names that are not valid shell variable names.
1210a4f78defSmrg    case $ac_envvar in #(
1211a4f78defSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1212a4f78defSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213a4f78defSmrg    esac
1214a4f78defSmrg    eval $ac_envvar=\$ac_optarg
1215a4f78defSmrg    export $ac_envvar ;;
1216a4f78defSmrg
1217a4f78defSmrg  *)
1218a4f78defSmrg    # FIXME: should be removed in autoconf 3.0.
1219a4f78defSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220a4f78defSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221a4f78defSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222a4f78defSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223a4f78defSmrg    ;;
1224a4f78defSmrg
1225a4f78defSmrg  esac
1226a4f78defSmrgdone
1227a4f78defSmrg
1228a4f78defSmrgif test -n "$ac_prev"; then
1229a4f78defSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230a4f78defSmrg  as_fn_error $? "missing argument to $ac_option"
1231a4f78defSmrgfi
1232a4f78defSmrg
1233a4f78defSmrgif test -n "$ac_unrecognized_opts"; then
1234a4f78defSmrg  case $enable_option_checking in
1235a4f78defSmrg    no) ;;
1236a4f78defSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237a4f78defSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238a4f78defSmrg  esac
1239a4f78defSmrgfi
1240a4f78defSmrg
1241a4f78defSmrg# Check all directory arguments for consistency.
1242a4f78defSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243a4f78defSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1244a4f78defSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245a4f78defSmrg		libdir localedir mandir
1246a4f78defSmrgdo
1247a4f78defSmrg  eval ac_val=\$$ac_var
1248a4f78defSmrg  # Remove trailing slashes.
1249a4f78defSmrg  case $ac_val in
1250a4f78defSmrg    */ )
1251a4f78defSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252a4f78defSmrg      eval $ac_var=\$ac_val;;
1253a4f78defSmrg  esac
1254a4f78defSmrg  # Be sure to have absolute directory names.
1255a4f78defSmrg  case $ac_val in
1256a4f78defSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1257a4f78defSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258a4f78defSmrg  esac
1259a4f78defSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260a4f78defSmrgdone
1261a4f78defSmrg
1262a4f78defSmrg# There might be people who depend on the old broken behavior: `$host'
1263a4f78defSmrg# used to hold the argument of --host etc.
1264a4f78defSmrg# FIXME: To remove some day.
1265a4f78defSmrgbuild=$build_alias
1266a4f78defSmrghost=$host_alias
1267a4f78defSmrgtarget=$target_alias
1268a4f78defSmrg
1269a4f78defSmrg# FIXME: To remove some day.
1270a4f78defSmrgif test "x$host_alias" != x; then
1271a4f78defSmrg  if test "x$build_alias" = x; then
1272a4f78defSmrg    cross_compiling=maybe
1273a4f78defSmrg  elif test "x$build_alias" != "x$host_alias"; then
1274a4f78defSmrg    cross_compiling=yes
1275a4f78defSmrg  fi
1276a4f78defSmrgfi
1277a4f78defSmrg
1278a4f78defSmrgac_tool_prefix=
1279a4f78defSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1280a4f78defSmrg
1281a4f78defSmrgtest "$silent" = yes && exec 6>/dev/null
1282a4f78defSmrg
1283a4f78defSmrg
1284a4f78defSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1285a4f78defSmrgac_ls_di=`ls -di .` &&
1286a4f78defSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287a4f78defSmrg  as_fn_error $? "working directory cannot be determined"
1288a4f78defSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289a4f78defSmrg  as_fn_error $? "pwd does not report name of working directory"
1290a4f78defSmrg
1291a4f78defSmrg
1292a4f78defSmrg# Find the source files, if location was not specified.
1293a4f78defSmrgif test -z "$srcdir"; then
1294a4f78defSmrg  ac_srcdir_defaulted=yes
1295a4f78defSmrg  # Try the directory containing this script, then the parent directory.
1296a4f78defSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1297a4f78defSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298a4f78defSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299a4f78defSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1300a4f78defSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301a4f78defSmrg$as_echo X"$as_myself" |
1302a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303a4f78defSmrg	    s//\1/
1304a4f78defSmrg	    q
1305a4f78defSmrg	  }
1306a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
1307a4f78defSmrg	    s//\1/
1308a4f78defSmrg	    q
1309a4f78defSmrg	  }
1310a4f78defSmrg	  /^X\(\/\/\)$/{
1311a4f78defSmrg	    s//\1/
1312a4f78defSmrg	    q
1313a4f78defSmrg	  }
1314a4f78defSmrg	  /^X\(\/\).*/{
1315a4f78defSmrg	    s//\1/
1316a4f78defSmrg	    q
1317a4f78defSmrg	  }
1318a4f78defSmrg	  s/.*/./; q'`
1319a4f78defSmrg  srcdir=$ac_confdir
1320a4f78defSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1321a4f78defSmrg    srcdir=..
1322a4f78defSmrg  fi
1323a4f78defSmrgelse
1324a4f78defSmrg  ac_srcdir_defaulted=no
1325a4f78defSmrgfi
1326a4f78defSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1327a4f78defSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328a4f78defSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329a4f78defSmrgfi
1330a4f78defSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331a4f78defSmrgac_abs_confdir=`(
1332a4f78defSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333a4f78defSmrg	pwd)`
1334a4f78defSmrg# When building in place, set srcdir=.
1335a4f78defSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1336a4f78defSmrg  srcdir=.
1337a4f78defSmrgfi
1338a4f78defSmrg# Remove unnecessary trailing slashes from srcdir.
1339a4f78defSmrg# Double slashes in file names in object file debugging info
1340a4f78defSmrg# mess up M-x gdb in Emacs.
1341a4f78defSmrgcase $srcdir in
1342a4f78defSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343a4f78defSmrgesac
1344a4f78defSmrgfor ac_var in $ac_precious_vars; do
1345a4f78defSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346a4f78defSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1347a4f78defSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348a4f78defSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349a4f78defSmrgdone
1350a4f78defSmrg
1351a4f78defSmrg#
1352a4f78defSmrg# Report the --help message.
1353a4f78defSmrg#
1354a4f78defSmrgif test "$ac_init_help" = "long"; then
1355a4f78defSmrg  # Omit some internal or obsolete options to make the list less imposing.
1356a4f78defSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1357a4f78defSmrg  cat <<_ACEOF
1358a4f78defSmrg\`configure' configures libvdpau 1.1.1 to adapt to many kinds of systems.
1359a4f78defSmrg
1360a4f78defSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1361a4f78defSmrg
1362a4f78defSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1363a4f78defSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1364a4f78defSmrg
1365a4f78defSmrgDefaults for the options are specified in brackets.
1366a4f78defSmrg
1367a4f78defSmrgConfiguration:
1368a4f78defSmrg  -h, --help              display this help and exit
1369a4f78defSmrg      --help=short        display options specific to this package
1370a4f78defSmrg      --help=recursive    display the short help of all the included packages
1371a4f78defSmrg  -V, --version           display version information and exit
1372a4f78defSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1373a4f78defSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1374a4f78defSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1375a4f78defSmrg  -n, --no-create         do not create output files
1376a4f78defSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377a4f78defSmrg
1378a4f78defSmrgInstallation directories:
1379a4f78defSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1380a4f78defSmrg                          [$ac_default_prefix]
1381a4f78defSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382a4f78defSmrg                          [PREFIX]
1383a4f78defSmrg
1384a4f78defSmrgBy default, \`make install' will install all the files in
1385a4f78defSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386a4f78defSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387a4f78defSmrgfor instance \`--prefix=\$HOME'.
1388a4f78defSmrg
1389a4f78defSmrgFor better control, use the options below.
1390a4f78defSmrg
1391a4f78defSmrgFine tuning of the installation directories:
1392a4f78defSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1393a4f78defSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394a4f78defSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395a4f78defSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396a4f78defSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397a4f78defSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398a4f78defSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1399a4f78defSmrg  --includedir=DIR        C header files [PREFIX/include]
1400a4f78defSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401a4f78defSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402a4f78defSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403a4f78defSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404a4f78defSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405a4f78defSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406a4f78defSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libvdpau]
1407a4f78defSmrg  --htmldir=DIR           html documentation [DOCDIR]
1408a4f78defSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1409a4f78defSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1410a4f78defSmrg  --psdir=DIR             ps documentation [DOCDIR]
1411a4f78defSmrg_ACEOF
1412a4f78defSmrg
1413a4f78defSmrg  cat <<\_ACEOF
1414a4f78defSmrg
1415a4f78defSmrgProgram names:
1416a4f78defSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1417a4f78defSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1418a4f78defSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1419a4f78defSmrg
1420a4f78defSmrgSystem types:
1421a4f78defSmrg  --build=BUILD     configure for building on BUILD [guessed]
1422a4f78defSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423a4f78defSmrg_ACEOF
1424a4f78defSmrgfi
1425a4f78defSmrg
1426a4f78defSmrgif test -n "$ac_init_help"; then
1427a4f78defSmrg  case $ac_init_help in
1428a4f78defSmrg     short | recursive ) echo "Configuration of libvdpau 1.1.1:";;
1429a4f78defSmrg   esac
1430a4f78defSmrg  cat <<\_ACEOF
1431a4f78defSmrg
1432a4f78defSmrgOptional Features:
1433a4f78defSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1434a4f78defSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435a4f78defSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436a4f78defSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1437a4f78defSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1438a4f78defSmrg  --enable-dependency-tracking
1439a4f78defSmrg                          do not reject slow dependency extractors
1440a4f78defSmrg  --disable-dependency-tracking
1441a4f78defSmrg                          speeds up one-time build
1442a4f78defSmrg  --enable-static[=PKGS]  build static libraries [default=no]
1443a4f78defSmrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
1444a4f78defSmrg  --enable-fast-install[=PKGS]
1445a4f78defSmrg                          optimize for fast installation [default=yes]
1446a4f78defSmrg  --disable-libtool-lock  avoid locking (might break parallel builds)
1447a4f78defSmrg  --disable-dri2          Disable driver name query through DRI2 (default:
1448a4f78defSmrg                          auto)
1449a4f78defSmrg  --disable-documentation Disable Doxygen documentation (default: auto)
1450a4f78defSmrg
1451a4f78defSmrgOptional Packages:
1452a4f78defSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453a4f78defSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454a4f78defSmrg  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1455a4f78defSmrg                          both]
1456a4f78defSmrg  --with-aix-soname=aix|svr4|both
1457a4f78defSmrg                          shared library versioning (aka "SONAME") variant to
1458a4f78defSmrg                          provide on AIX, [default=aix].
1459a4f78defSmrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1460a4f78defSmrg  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1461a4f78defSmrg                          compiler's sysroot if not specified).
1462a4f78defSmrg  --with-module-dir=DIR   Default module directory [[default=LIBDIR/vdpau]]
1463a4f78defSmrg
1464a4f78defSmrgSome influential environment variables:
1465a4f78defSmrg  CC          C compiler command
1466a4f78defSmrg  CFLAGS      C compiler flags
1467a4f78defSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468a4f78defSmrg              nonstandard directory <lib dir>
1469a4f78defSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1470a4f78defSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471a4f78defSmrg              you have headers in a nonstandard directory <include dir>
1472a4f78defSmrg  CPP         C preprocessor
1473a4f78defSmrg  CXX         C++ compiler command
1474a4f78defSmrg  CXXFLAGS    C++ compiler flags
1475a4f78defSmrg  LT_SYS_LIBRARY_PATH
1476a4f78defSmrg              User-defined run-time library search path.
1477a4f78defSmrg  CXXCPP      C++ preprocessor
1478a4f78defSmrg  PKG_CONFIG  path to pkg-config utility
1479a4f78defSmrg  PKG_CONFIG_PATH
1480a4f78defSmrg              directories to add to pkg-config's search path
1481a4f78defSmrg  PKG_CONFIG_LIBDIR
1482a4f78defSmrg              path overriding pkg-config's built-in search path
1483a4f78defSmrg  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1484a4f78defSmrg  X11_LIBS    linker flags for X11, overriding pkg-config
1485a4f78defSmrg  dri2proto_CFLAGS
1486a4f78defSmrg              C compiler flags for dri2proto, overriding pkg-config
1487a4f78defSmrg  dri2proto_LIBS
1488a4f78defSmrg              linker flags for dri2proto, overriding pkg-config
1489a4f78defSmrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1490a4f78defSmrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1491a4f78defSmrg
1492a4f78defSmrgUse these variables to override the choices made by `configure' or to help
1493a4f78defSmrgit to find libraries and programs with nonstandard names/locations.
1494a4f78defSmrg
1495a4f78defSmrgReport bugs to <vdpau@lists.freedesktop.org>.
1496a4f78defSmrg_ACEOF
1497a4f78defSmrgac_status=$?
1498a4f78defSmrgfi
1499a4f78defSmrg
1500a4f78defSmrgif test "$ac_init_help" = "recursive"; then
1501a4f78defSmrg  # If there are subdirs, report their specific --help.
1502a4f78defSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503a4f78defSmrg    test -d "$ac_dir" ||
1504a4f78defSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505a4f78defSmrg      continue
1506a4f78defSmrg    ac_builddir=.
1507a4f78defSmrg
1508a4f78defSmrgcase "$ac_dir" in
1509a4f78defSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510a4f78defSmrg*)
1511a4f78defSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512a4f78defSmrg  # A ".." for each directory in $ac_dir_suffix.
1513a4f78defSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514a4f78defSmrg  case $ac_top_builddir_sub in
1515a4f78defSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516a4f78defSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517a4f78defSmrg  esac ;;
1518a4f78defSmrgesac
1519a4f78defSmrgac_abs_top_builddir=$ac_pwd
1520a4f78defSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1521a4f78defSmrg# for backward compatibility:
1522a4f78defSmrgac_top_builddir=$ac_top_build_prefix
1523a4f78defSmrg
1524a4f78defSmrgcase $srcdir in
1525a4f78defSmrg  .)  # We are building in place.
1526a4f78defSmrg    ac_srcdir=.
1527a4f78defSmrg    ac_top_srcdir=$ac_top_builddir_sub
1528a4f78defSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1529a4f78defSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1530a4f78defSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1531a4f78defSmrg    ac_top_srcdir=$srcdir
1532a4f78defSmrg    ac_abs_top_srcdir=$srcdir ;;
1533a4f78defSmrg  *) # Relative name.
1534a4f78defSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535a4f78defSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1536a4f78defSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537a4f78defSmrgesac
1538a4f78defSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539a4f78defSmrg
1540a4f78defSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1541a4f78defSmrg    # Check for guested configure.
1542a4f78defSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1543a4f78defSmrg      echo &&
1544a4f78defSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545a4f78defSmrg    elif test -f "$ac_srcdir/configure"; then
1546a4f78defSmrg      echo &&
1547a4f78defSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1548a4f78defSmrg    else
1549a4f78defSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550a4f78defSmrg    fi || ac_status=$?
1551a4f78defSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1552a4f78defSmrg  done
1553a4f78defSmrgfi
1554a4f78defSmrg
1555a4f78defSmrgtest -n "$ac_init_help" && exit $ac_status
1556a4f78defSmrgif $ac_init_version; then
1557a4f78defSmrg  cat <<\_ACEOF
1558a4f78defSmrglibvdpau configure 1.1.1
1559a4f78defSmrggenerated by GNU Autoconf 2.69
1560a4f78defSmrg
1561a4f78defSmrgCopyright (C) 2012 Free Software Foundation, Inc.
1562a4f78defSmrgThis configure script is free software; the Free Software Foundation
1563a4f78defSmrggives unlimited permission to copy, distribute and modify it.
1564a4f78defSmrg_ACEOF
1565a4f78defSmrg  exit
1566a4f78defSmrgfi
1567a4f78defSmrg
1568a4f78defSmrg## ------------------------ ##
1569a4f78defSmrg## Autoconf initialization. ##
1570a4f78defSmrg## ------------------------ ##
1571a4f78defSmrg
1572a4f78defSmrg# ac_fn_c_try_compile LINENO
1573a4f78defSmrg# --------------------------
1574a4f78defSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1575a4f78defSmrgac_fn_c_try_compile ()
1576a4f78defSmrg{
1577a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578a4f78defSmrg  rm -f conftest.$ac_objext
1579a4f78defSmrg  if { { ac_try="$ac_compile"
1580a4f78defSmrgcase "(($ac_try" in
1581a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582a4f78defSmrg  *) ac_try_echo=$ac_try;;
1583a4f78defSmrgesac
1584a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1586a4f78defSmrg  (eval "$ac_compile") 2>conftest.err
1587a4f78defSmrg  ac_status=$?
1588a4f78defSmrg  if test -s conftest.err; then
1589a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
1590a4f78defSmrg    cat conftest.er1 >&5
1591a4f78defSmrg    mv -f conftest.er1 conftest.err
1592a4f78defSmrg  fi
1593a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594a4f78defSmrg  test $ac_status = 0; } && {
1595a4f78defSmrg	 test -z "$ac_c_werror_flag" ||
1596a4f78defSmrg	 test ! -s conftest.err
1597a4f78defSmrg       } && test -s conftest.$ac_objext; then :
1598a4f78defSmrg  ac_retval=0
1599a4f78defSmrgelse
1600a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
1601a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1602a4f78defSmrg
1603a4f78defSmrg	ac_retval=1
1604a4f78defSmrgfi
1605a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606a4f78defSmrg  as_fn_set_status $ac_retval
1607a4f78defSmrg
1608a4f78defSmrg} # ac_fn_c_try_compile
1609a4f78defSmrg
1610a4f78defSmrg# ac_fn_c_try_cpp LINENO
1611a4f78defSmrg# ----------------------
1612a4f78defSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613a4f78defSmrgac_fn_c_try_cpp ()
1614a4f78defSmrg{
1615a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616a4f78defSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1617a4f78defSmrgcase "(($ac_try" in
1618a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619a4f78defSmrg  *) ac_try_echo=$ac_try;;
1620a4f78defSmrgesac
1621a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1623a4f78defSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624a4f78defSmrg  ac_status=$?
1625a4f78defSmrg  if test -s conftest.err; then
1626a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
1627a4f78defSmrg    cat conftest.er1 >&5
1628a4f78defSmrg    mv -f conftest.er1 conftest.err
1629a4f78defSmrg  fi
1630a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631a4f78defSmrg  test $ac_status = 0; } > conftest.i && {
1632a4f78defSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633a4f78defSmrg	 test ! -s conftest.err
1634a4f78defSmrg       }; then :
1635a4f78defSmrg  ac_retval=0
1636a4f78defSmrgelse
1637a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
1638a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1639a4f78defSmrg
1640a4f78defSmrg    ac_retval=1
1641a4f78defSmrgfi
1642a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643a4f78defSmrg  as_fn_set_status $ac_retval
1644a4f78defSmrg
1645a4f78defSmrg} # ac_fn_c_try_cpp
1646a4f78defSmrg
1647a4f78defSmrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648a4f78defSmrg# -------------------------------------------------------
1649a4f78defSmrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650a4f78defSmrg# the include files in INCLUDES and setting the cache variable VAR
1651a4f78defSmrg# accordingly.
1652a4f78defSmrgac_fn_c_check_header_mongrel ()
1653a4f78defSmrg{
1654a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655a4f78defSmrg  if eval \${$3+:} false; then :
1656a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657a4f78defSmrg$as_echo_n "checking for $2... " >&6; }
1658a4f78defSmrgif eval \${$3+:} false; then :
1659a4f78defSmrg  $as_echo_n "(cached) " >&6
1660a4f78defSmrgfi
1661a4f78defSmrgeval ac_res=\$$3
1662a4f78defSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663a4f78defSmrg$as_echo "$ac_res" >&6; }
1664a4f78defSmrgelse
1665a4f78defSmrg  # Is the header compilable?
1666a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667a4f78defSmrg$as_echo_n "checking $2 usability... " >&6; }
1668a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669a4f78defSmrg/* end confdefs.h.  */
1670a4f78defSmrg$4
1671a4f78defSmrg#include <$2>
1672a4f78defSmrg_ACEOF
1673a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
1674a4f78defSmrg  ac_header_compiler=yes
1675a4f78defSmrgelse
1676a4f78defSmrg  ac_header_compiler=no
1677a4f78defSmrgfi
1678a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680a4f78defSmrg$as_echo "$ac_header_compiler" >&6; }
1681a4f78defSmrg
1682a4f78defSmrg# Is the header present?
1683a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684a4f78defSmrg$as_echo_n "checking $2 presence... " >&6; }
1685a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686a4f78defSmrg/* end confdefs.h.  */
1687a4f78defSmrg#include <$2>
1688a4f78defSmrg_ACEOF
1689a4f78defSmrgif ac_fn_c_try_cpp "$LINENO"; then :
1690a4f78defSmrg  ac_header_preproc=yes
1691a4f78defSmrgelse
1692a4f78defSmrg  ac_header_preproc=no
1693a4f78defSmrgfi
1694a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
1695a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696a4f78defSmrg$as_echo "$ac_header_preproc" >&6; }
1697a4f78defSmrg
1698a4f78defSmrg# So?  What about this header?
1699a4f78defSmrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700a4f78defSmrg  yes:no: )
1701a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702a4f78defSmrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704a4f78defSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705a4f78defSmrg    ;;
1706a4f78defSmrg  no:yes:* )
1707a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708a4f78defSmrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1710a4f78defSmrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1711a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712a4f78defSmrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1714a4f78defSmrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1715a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716a4f78defSmrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717a4f78defSmrg( $as_echo "## ------------------------------------------ ##
1718a4f78defSmrg## Report this to vdpau@lists.freedesktop.org ##
1719a4f78defSmrg## ------------------------------------------ ##"
1720a4f78defSmrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
1721a4f78defSmrg    ;;
1722a4f78defSmrgesac
1723a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724a4f78defSmrg$as_echo_n "checking for $2... " >&6; }
1725a4f78defSmrgif eval \${$3+:} false; then :
1726a4f78defSmrg  $as_echo_n "(cached) " >&6
1727a4f78defSmrgelse
1728a4f78defSmrg  eval "$3=\$ac_header_compiler"
1729a4f78defSmrgfi
1730a4f78defSmrgeval ac_res=\$$3
1731a4f78defSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732a4f78defSmrg$as_echo "$ac_res" >&6; }
1733a4f78defSmrgfi
1734a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735a4f78defSmrg
1736a4f78defSmrg} # ac_fn_c_check_header_mongrel
1737a4f78defSmrg
1738a4f78defSmrg# ac_fn_c_try_run LINENO
1739a4f78defSmrg# ----------------------
1740a4f78defSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741a4f78defSmrg# that executables *can* be run.
1742a4f78defSmrgac_fn_c_try_run ()
1743a4f78defSmrg{
1744a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745a4f78defSmrg  if { { ac_try="$ac_link"
1746a4f78defSmrgcase "(($ac_try" in
1747a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748a4f78defSmrg  *) ac_try_echo=$ac_try;;
1749a4f78defSmrgesac
1750a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1752a4f78defSmrg  (eval "$ac_link") 2>&5
1753a4f78defSmrg  ac_status=$?
1754a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755a4f78defSmrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756a4f78defSmrg  { { case "(($ac_try" in
1757a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758a4f78defSmrg  *) ac_try_echo=$ac_try;;
1759a4f78defSmrgesac
1760a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1762a4f78defSmrg  (eval "$ac_try") 2>&5
1763a4f78defSmrg  ac_status=$?
1764a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765a4f78defSmrg  test $ac_status = 0; }; }; then :
1766a4f78defSmrg  ac_retval=0
1767a4f78defSmrgelse
1768a4f78defSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1769a4f78defSmrg       $as_echo "$as_me: failed program was:" >&5
1770a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1771a4f78defSmrg
1772a4f78defSmrg       ac_retval=$ac_status
1773a4f78defSmrgfi
1774a4f78defSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776a4f78defSmrg  as_fn_set_status $ac_retval
1777a4f78defSmrg
1778a4f78defSmrg} # ac_fn_c_try_run
1779a4f78defSmrg
1780a4f78defSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781a4f78defSmrg# -------------------------------------------------------
1782a4f78defSmrg# Tests whether HEADER exists and can be compiled using the include files in
1783a4f78defSmrg# INCLUDES, setting the cache variable VAR accordingly.
1784a4f78defSmrgac_fn_c_check_header_compile ()
1785a4f78defSmrg{
1786a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788a4f78defSmrg$as_echo_n "checking for $2... " >&6; }
1789a4f78defSmrgif eval \${$3+:} false; then :
1790a4f78defSmrg  $as_echo_n "(cached) " >&6
1791a4f78defSmrgelse
1792a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793a4f78defSmrg/* end confdefs.h.  */
1794a4f78defSmrg$4
1795a4f78defSmrg#include <$2>
1796a4f78defSmrg_ACEOF
1797a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
1798a4f78defSmrg  eval "$3=yes"
1799a4f78defSmrgelse
1800a4f78defSmrg  eval "$3=no"
1801a4f78defSmrgfi
1802a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803a4f78defSmrgfi
1804a4f78defSmrgeval ac_res=\$$3
1805a4f78defSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806a4f78defSmrg$as_echo "$ac_res" >&6; }
1807a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808a4f78defSmrg
1809a4f78defSmrg} # ac_fn_c_check_header_compile
1810a4f78defSmrg
1811a4f78defSmrg# ac_fn_c_try_link LINENO
1812a4f78defSmrg# -----------------------
1813a4f78defSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1814a4f78defSmrgac_fn_c_try_link ()
1815a4f78defSmrg{
1816a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817a4f78defSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
1818a4f78defSmrg  if { { ac_try="$ac_link"
1819a4f78defSmrgcase "(($ac_try" in
1820a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821a4f78defSmrg  *) ac_try_echo=$ac_try;;
1822a4f78defSmrgesac
1823a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1825a4f78defSmrg  (eval "$ac_link") 2>conftest.err
1826a4f78defSmrg  ac_status=$?
1827a4f78defSmrg  if test -s conftest.err; then
1828a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
1829a4f78defSmrg    cat conftest.er1 >&5
1830a4f78defSmrg    mv -f conftest.er1 conftest.err
1831a4f78defSmrg  fi
1832a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833a4f78defSmrg  test $ac_status = 0; } && {
1834a4f78defSmrg	 test -z "$ac_c_werror_flag" ||
1835a4f78defSmrg	 test ! -s conftest.err
1836a4f78defSmrg       } && test -s conftest$ac_exeext && {
1837a4f78defSmrg	 test "$cross_compiling" = yes ||
1838a4f78defSmrg	 test -x conftest$ac_exeext
1839a4f78defSmrg       }; then :
1840a4f78defSmrg  ac_retval=0
1841a4f78defSmrgelse
1842a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
1843a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1844a4f78defSmrg
1845a4f78defSmrg	ac_retval=1
1846a4f78defSmrgfi
1847a4f78defSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848a4f78defSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849a4f78defSmrg  # interfere with the next link command; also delete a directory that is
1850a4f78defSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1851a4f78defSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853a4f78defSmrg  as_fn_set_status $ac_retval
1854a4f78defSmrg
1855a4f78defSmrg} # ac_fn_c_try_link
1856a4f78defSmrg
1857a4f78defSmrg# ac_fn_c_check_func LINENO FUNC VAR
1858a4f78defSmrg# ----------------------------------
1859a4f78defSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860a4f78defSmrgac_fn_c_check_func ()
1861a4f78defSmrg{
1862a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864a4f78defSmrg$as_echo_n "checking for $2... " >&6; }
1865a4f78defSmrgif eval \${$3+:} false; then :
1866a4f78defSmrg  $as_echo_n "(cached) " >&6
1867a4f78defSmrgelse
1868a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869a4f78defSmrg/* end confdefs.h.  */
1870a4f78defSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871a4f78defSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1872a4f78defSmrg#define $2 innocuous_$2
1873a4f78defSmrg
1874a4f78defSmrg/* System header to define __stub macros and hopefully few prototypes,
1875a4f78defSmrg    which can conflict with char $2 (); below.
1876a4f78defSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877a4f78defSmrg    <limits.h> exists even on freestanding compilers.  */
1878a4f78defSmrg
1879a4f78defSmrg#ifdef __STDC__
1880a4f78defSmrg# include <limits.h>
1881a4f78defSmrg#else
1882a4f78defSmrg# include <assert.h>
1883a4f78defSmrg#endif
1884a4f78defSmrg
1885a4f78defSmrg#undef $2
1886a4f78defSmrg
1887a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
1888a4f78defSmrg   Use char because int might match the return type of a GCC
1889a4f78defSmrg   builtin and then its argument prototype would still apply.  */
1890a4f78defSmrg#ifdef __cplusplus
1891a4f78defSmrgextern "C"
1892a4f78defSmrg#endif
1893a4f78defSmrgchar $2 ();
1894a4f78defSmrg/* The GNU C library defines this for functions which it implements
1895a4f78defSmrg    to always fail with ENOSYS.  Some functions are actually named
1896a4f78defSmrg    something starting with __ and the normal name is an alias.  */
1897a4f78defSmrg#if defined __stub_$2 || defined __stub___$2
1898a4f78defSmrgchoke me
1899a4f78defSmrg#endif
1900a4f78defSmrg
1901a4f78defSmrgint
1902a4f78defSmrgmain ()
1903a4f78defSmrg{
1904a4f78defSmrgreturn $2 ();
1905a4f78defSmrg  ;
1906a4f78defSmrg  return 0;
1907a4f78defSmrg}
1908a4f78defSmrg_ACEOF
1909a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
1910a4f78defSmrg  eval "$3=yes"
1911a4f78defSmrgelse
1912a4f78defSmrg  eval "$3=no"
1913a4f78defSmrgfi
1914a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
1915a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
1916a4f78defSmrgfi
1917a4f78defSmrgeval ac_res=\$$3
1918a4f78defSmrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919a4f78defSmrg$as_echo "$ac_res" >&6; }
1920a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921a4f78defSmrg
1922a4f78defSmrg} # ac_fn_c_check_func
1923a4f78defSmrg
1924a4f78defSmrg# ac_fn_cxx_try_compile LINENO
1925a4f78defSmrg# ----------------------------
1926a4f78defSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1927a4f78defSmrgac_fn_cxx_try_compile ()
1928a4f78defSmrg{
1929a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930a4f78defSmrg  rm -f conftest.$ac_objext
1931a4f78defSmrg  if { { ac_try="$ac_compile"
1932a4f78defSmrgcase "(($ac_try" in
1933a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934a4f78defSmrg  *) ac_try_echo=$ac_try;;
1935a4f78defSmrgesac
1936a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1938a4f78defSmrg  (eval "$ac_compile") 2>conftest.err
1939a4f78defSmrg  ac_status=$?
1940a4f78defSmrg  if test -s conftest.err; then
1941a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
1942a4f78defSmrg    cat conftest.er1 >&5
1943a4f78defSmrg    mv -f conftest.er1 conftest.err
1944a4f78defSmrg  fi
1945a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946a4f78defSmrg  test $ac_status = 0; } && {
1947a4f78defSmrg	 test -z "$ac_cxx_werror_flag" ||
1948a4f78defSmrg	 test ! -s conftest.err
1949a4f78defSmrg       } && test -s conftest.$ac_objext; then :
1950a4f78defSmrg  ac_retval=0
1951a4f78defSmrgelse
1952a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
1953a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1954a4f78defSmrg
1955a4f78defSmrg	ac_retval=1
1956a4f78defSmrgfi
1957a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958a4f78defSmrg  as_fn_set_status $ac_retval
1959a4f78defSmrg
1960a4f78defSmrg} # ac_fn_cxx_try_compile
1961a4f78defSmrg
1962a4f78defSmrg# ac_fn_cxx_try_cpp LINENO
1963a4f78defSmrg# ------------------------
1964a4f78defSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1965a4f78defSmrgac_fn_cxx_try_cpp ()
1966a4f78defSmrg{
1967a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968a4f78defSmrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1969a4f78defSmrgcase "(($ac_try" in
1970a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971a4f78defSmrg  *) ac_try_echo=$ac_try;;
1972a4f78defSmrgesac
1973a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
1975a4f78defSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1976a4f78defSmrg  ac_status=$?
1977a4f78defSmrg  if test -s conftest.err; then
1978a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
1979a4f78defSmrg    cat conftest.er1 >&5
1980a4f78defSmrg    mv -f conftest.er1 conftest.err
1981a4f78defSmrg  fi
1982a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983a4f78defSmrg  test $ac_status = 0; } > conftest.i && {
1984a4f78defSmrg	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1985a4f78defSmrg	 test ! -s conftest.err
1986a4f78defSmrg       }; then :
1987a4f78defSmrg  ac_retval=0
1988a4f78defSmrgelse
1989a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
1990a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
1991a4f78defSmrg
1992a4f78defSmrg    ac_retval=1
1993a4f78defSmrgfi
1994a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995a4f78defSmrg  as_fn_set_status $ac_retval
1996a4f78defSmrg
1997a4f78defSmrg} # ac_fn_cxx_try_cpp
1998a4f78defSmrg
1999a4f78defSmrg# ac_fn_cxx_try_link LINENO
2000a4f78defSmrg# -------------------------
2001a4f78defSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
2002a4f78defSmrgac_fn_cxx_try_link ()
2003a4f78defSmrg{
2004a4f78defSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005a4f78defSmrg  rm -f conftest.$ac_objext conftest$ac_exeext
2006a4f78defSmrg  if { { ac_try="$ac_link"
2007a4f78defSmrgcase "(($ac_try" in
2008a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009a4f78defSmrg  *) ac_try_echo=$ac_try;;
2010a4f78defSmrgesac
2011a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
2013a4f78defSmrg  (eval "$ac_link") 2>conftest.err
2014a4f78defSmrg  ac_status=$?
2015a4f78defSmrg  if test -s conftest.err; then
2016a4f78defSmrg    grep -v '^ *+' conftest.err >conftest.er1
2017a4f78defSmrg    cat conftest.er1 >&5
2018a4f78defSmrg    mv -f conftest.er1 conftest.err
2019a4f78defSmrg  fi
2020a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021a4f78defSmrg  test $ac_status = 0; } && {
2022a4f78defSmrg	 test -z "$ac_cxx_werror_flag" ||
2023a4f78defSmrg	 test ! -s conftest.err
2024a4f78defSmrg       } && test -s conftest$ac_exeext && {
2025a4f78defSmrg	 test "$cross_compiling" = yes ||
2026a4f78defSmrg	 test -x conftest$ac_exeext
2027a4f78defSmrg       }; then :
2028a4f78defSmrg  ac_retval=0
2029a4f78defSmrgelse
2030a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
2031a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
2032a4f78defSmrg
2033a4f78defSmrg	ac_retval=1
2034a4f78defSmrgfi
2035a4f78defSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036a4f78defSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037a4f78defSmrg  # interfere with the next link command; also delete a directory that is
2038a4f78defSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
2039a4f78defSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040a4f78defSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041a4f78defSmrg  as_fn_set_status $ac_retval
2042a4f78defSmrg
2043a4f78defSmrg} # ac_fn_cxx_try_link
2044a4f78defSmrgcat >config.log <<_ACEOF
2045a4f78defSmrgThis file contains any messages produced by compilers while
2046a4f78defSmrgrunning configure, to aid debugging if configure makes a mistake.
2047a4f78defSmrg
2048a4f78defSmrgIt was created by libvdpau $as_me 1.1.1, which was
2049a4f78defSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
2050a4f78defSmrg
2051a4f78defSmrg  $ $0 $@
2052a4f78defSmrg
2053a4f78defSmrg_ACEOF
2054a4f78defSmrgexec 5>>config.log
2055a4f78defSmrg{
2056a4f78defSmrgcat <<_ASUNAME
2057a4f78defSmrg## --------- ##
2058a4f78defSmrg## Platform. ##
2059a4f78defSmrg## --------- ##
2060a4f78defSmrg
2061a4f78defSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2062a4f78defSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
2063a4f78defSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
2064a4f78defSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
2065a4f78defSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
2066a4f78defSmrg
2067a4f78defSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2068a4f78defSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2069a4f78defSmrg
2070a4f78defSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2071a4f78defSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2072a4f78defSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2073a4f78defSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2074a4f78defSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2075a4f78defSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2076a4f78defSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2077a4f78defSmrg
2078a4f78defSmrg_ASUNAME
2079a4f78defSmrg
2080a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081a4f78defSmrgfor as_dir in $PATH
2082a4f78defSmrgdo
2083a4f78defSmrg  IFS=$as_save_IFS
2084a4f78defSmrg  test -z "$as_dir" && as_dir=.
2085a4f78defSmrg    $as_echo "PATH: $as_dir"
2086a4f78defSmrg  done
2087a4f78defSmrgIFS=$as_save_IFS
2088a4f78defSmrg
2089a4f78defSmrg} >&5
2090a4f78defSmrg
2091a4f78defSmrgcat >&5 <<_ACEOF
2092a4f78defSmrg
2093a4f78defSmrg
2094a4f78defSmrg## ----------- ##
2095a4f78defSmrg## Core tests. ##
2096a4f78defSmrg## ----------- ##
2097a4f78defSmrg
2098a4f78defSmrg_ACEOF
2099a4f78defSmrg
2100a4f78defSmrg
2101a4f78defSmrg# Keep a trace of the command line.
2102a4f78defSmrg# Strip out --no-create and --no-recursion so they do not pile up.
2103a4f78defSmrg# Strip out --silent because we don't want to record it for future runs.
2104a4f78defSmrg# Also quote any args containing shell meta-characters.
2105a4f78defSmrg# Make two passes to allow for proper duplicate-argument suppression.
2106a4f78defSmrgac_configure_args=
2107a4f78defSmrgac_configure_args0=
2108a4f78defSmrgac_configure_args1=
2109a4f78defSmrgac_must_keep_next=false
2110a4f78defSmrgfor ac_pass in 1 2
2111a4f78defSmrgdo
2112a4f78defSmrg  for ac_arg
2113a4f78defSmrg  do
2114a4f78defSmrg    case $ac_arg in
2115a4f78defSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2116a4f78defSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2117a4f78defSmrg    | -silent | --silent | --silen | --sile | --sil)
2118a4f78defSmrg      continue ;;
2119a4f78defSmrg    *\'*)
2120a4f78defSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121a4f78defSmrg    esac
2122a4f78defSmrg    case $ac_pass in
2123a4f78defSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2124a4f78defSmrg    2)
2125a4f78defSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
2126a4f78defSmrg      if test $ac_must_keep_next = true; then
2127a4f78defSmrg	ac_must_keep_next=false # Got value, back to normal.
2128a4f78defSmrg      else
2129a4f78defSmrg	case $ac_arg in
2130a4f78defSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
2131a4f78defSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2132a4f78defSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2133a4f78defSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
2134a4f78defSmrg	    case "$ac_configure_args0 " in
2135a4f78defSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136a4f78defSmrg	    esac
2137a4f78defSmrg	    ;;
2138a4f78defSmrg	  -* ) ac_must_keep_next=true ;;
2139a4f78defSmrg	esac
2140a4f78defSmrg      fi
2141a4f78defSmrg      as_fn_append ac_configure_args " '$ac_arg'"
2142a4f78defSmrg      ;;
2143a4f78defSmrg    esac
2144a4f78defSmrg  done
2145a4f78defSmrgdone
2146a4f78defSmrg{ ac_configure_args0=; unset ac_configure_args0;}
2147a4f78defSmrg{ ac_configure_args1=; unset ac_configure_args1;}
2148a4f78defSmrg
2149a4f78defSmrg# When interrupted or exit'd, cleanup temporary files, and complete
2150a4f78defSmrg# config.log.  We remove comments because anyway the quotes in there
2151a4f78defSmrg# would cause problems or look ugly.
2152a4f78defSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
2153a4f78defSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2154a4f78defSmrgtrap 'exit_status=$?
2155a4f78defSmrg  # Save into config.log some information that might help in debugging.
2156a4f78defSmrg  {
2157a4f78defSmrg    echo
2158a4f78defSmrg
2159a4f78defSmrg    $as_echo "## ---------------- ##
2160a4f78defSmrg## Cache variables. ##
2161a4f78defSmrg## ---------------- ##"
2162a4f78defSmrg    echo
2163a4f78defSmrg    # The following way of writing the cache mishandles newlines in values,
2164a4f78defSmrg(
2165a4f78defSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2166a4f78defSmrg    eval ac_val=\$$ac_var
2167a4f78defSmrg    case $ac_val in #(
2168a4f78defSmrg    *${as_nl}*)
2169a4f78defSmrg      case $ac_var in #(
2170a4f78defSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171a4f78defSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2172a4f78defSmrg      esac
2173a4f78defSmrg      case $ac_var in #(
2174a4f78defSmrg      _ | IFS | as_nl) ;; #(
2175a4f78defSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176a4f78defSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
2177a4f78defSmrg      esac ;;
2178a4f78defSmrg    esac
2179a4f78defSmrg  done
2180a4f78defSmrg  (set) 2>&1 |
2181a4f78defSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2182a4f78defSmrg    *${as_nl}ac_space=\ *)
2183a4f78defSmrg      sed -n \
2184a4f78defSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2185a4f78defSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2186a4f78defSmrg      ;; #(
2187a4f78defSmrg    *)
2188a4f78defSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2189a4f78defSmrg      ;;
2190a4f78defSmrg    esac |
2191a4f78defSmrg    sort
2192a4f78defSmrg)
2193a4f78defSmrg    echo
2194a4f78defSmrg
2195a4f78defSmrg    $as_echo "## ----------------- ##
2196a4f78defSmrg## Output variables. ##
2197a4f78defSmrg## ----------------- ##"
2198a4f78defSmrg    echo
2199a4f78defSmrg    for ac_var in $ac_subst_vars
2200a4f78defSmrg    do
2201a4f78defSmrg      eval ac_val=\$$ac_var
2202a4f78defSmrg      case $ac_val in
2203a4f78defSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204a4f78defSmrg      esac
2205a4f78defSmrg      $as_echo "$ac_var='\''$ac_val'\''"
2206a4f78defSmrg    done | sort
2207a4f78defSmrg    echo
2208a4f78defSmrg
2209a4f78defSmrg    if test -n "$ac_subst_files"; then
2210a4f78defSmrg      $as_echo "## ------------------- ##
2211a4f78defSmrg## File substitutions. ##
2212a4f78defSmrg## ------------------- ##"
2213a4f78defSmrg      echo
2214a4f78defSmrg      for ac_var in $ac_subst_files
2215a4f78defSmrg      do
2216a4f78defSmrg	eval ac_val=\$$ac_var
2217a4f78defSmrg	case $ac_val in
2218a4f78defSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219a4f78defSmrg	esac
2220a4f78defSmrg	$as_echo "$ac_var='\''$ac_val'\''"
2221a4f78defSmrg      done | sort
2222a4f78defSmrg      echo
2223a4f78defSmrg    fi
2224a4f78defSmrg
2225a4f78defSmrg    if test -s confdefs.h; then
2226a4f78defSmrg      $as_echo "## ----------- ##
2227a4f78defSmrg## confdefs.h. ##
2228a4f78defSmrg## ----------- ##"
2229a4f78defSmrg      echo
2230a4f78defSmrg      cat confdefs.h
2231a4f78defSmrg      echo
2232a4f78defSmrg    fi
2233a4f78defSmrg    test "$ac_signal" != 0 &&
2234a4f78defSmrg      $as_echo "$as_me: caught signal $ac_signal"
2235a4f78defSmrg    $as_echo "$as_me: exit $exit_status"
2236a4f78defSmrg  } >&5
2237a4f78defSmrg  rm -f core *.core core.conftest.* &&
2238a4f78defSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2239a4f78defSmrg    exit $exit_status
2240a4f78defSmrg' 0
2241a4f78defSmrgfor ac_signal in 1 2 13 15; do
2242a4f78defSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2243a4f78defSmrgdone
2244a4f78defSmrgac_signal=0
2245a4f78defSmrg
2246a4f78defSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2247a4f78defSmrgrm -f -r conftest* confdefs.h
2248a4f78defSmrg
2249a4f78defSmrg$as_echo "/* confdefs.h */" > confdefs.h
2250a4f78defSmrg
2251a4f78defSmrg# Predefined preprocessor variables.
2252a4f78defSmrg
2253a4f78defSmrgcat >>confdefs.h <<_ACEOF
2254a4f78defSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2255a4f78defSmrg_ACEOF
2256a4f78defSmrg
2257a4f78defSmrgcat >>confdefs.h <<_ACEOF
2258a4f78defSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2259a4f78defSmrg_ACEOF
2260a4f78defSmrg
2261a4f78defSmrgcat >>confdefs.h <<_ACEOF
2262a4f78defSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2263a4f78defSmrg_ACEOF
2264a4f78defSmrg
2265a4f78defSmrgcat >>confdefs.h <<_ACEOF
2266a4f78defSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2267a4f78defSmrg_ACEOF
2268a4f78defSmrg
2269a4f78defSmrgcat >>confdefs.h <<_ACEOF
2270a4f78defSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2271a4f78defSmrg_ACEOF
2272a4f78defSmrg
2273a4f78defSmrgcat >>confdefs.h <<_ACEOF
2274a4f78defSmrg#define PACKAGE_URL "$PACKAGE_URL"
2275a4f78defSmrg_ACEOF
2276a4f78defSmrg
2277a4f78defSmrg
2278a4f78defSmrg# Let the site file select an alternate cache file if it wants to.
2279a4f78defSmrg# Prefer an explicitly selected file to automatically selected ones.
2280a4f78defSmrgac_site_file1=NONE
2281a4f78defSmrgac_site_file2=NONE
2282a4f78defSmrgif test -n "$CONFIG_SITE"; then
2283a4f78defSmrg  # We do not want a PATH search for config.site.
2284a4f78defSmrg  case $CONFIG_SITE in #((
2285a4f78defSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2286a4f78defSmrg    */*) ac_site_file1=$CONFIG_SITE;;
2287a4f78defSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
2288a4f78defSmrg  esac
2289a4f78defSmrgelif test "x$prefix" != xNONE; then
2290a4f78defSmrg  ac_site_file1=$prefix/share/config.site
2291a4f78defSmrg  ac_site_file2=$prefix/etc/config.site
2292a4f78defSmrgelse
2293a4f78defSmrg  ac_site_file1=$ac_default_prefix/share/config.site
2294a4f78defSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2295a4f78defSmrgfi
2296a4f78defSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2297a4f78defSmrgdo
2298a4f78defSmrg  test "x$ac_site_file" = xNONE && continue
2299a4f78defSmrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2300a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2301a4f78defSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2302a4f78defSmrg    sed 's/^/| /' "$ac_site_file" >&5
2303a4f78defSmrg    . "$ac_site_file" \
2304a4f78defSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2305a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306a4f78defSmrgas_fn_error $? "failed to load site script $ac_site_file
2307a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
2308a4f78defSmrg  fi
2309a4f78defSmrgdone
2310a4f78defSmrg
2311a4f78defSmrgif test -r "$cache_file"; then
2312a4f78defSmrg  # Some versions of bash will fail to source /dev/null (special files
2313a4f78defSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2314a4f78defSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2315a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2316a4f78defSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2317a4f78defSmrg    case $cache_file in
2318a4f78defSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2319a4f78defSmrg      *)                      . "./$cache_file";;
2320a4f78defSmrg    esac
2321a4f78defSmrg  fi
2322a4f78defSmrgelse
2323a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2324a4f78defSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2325a4f78defSmrg  >$cache_file
2326a4f78defSmrgfi
2327a4f78defSmrg
2328a4f78defSmrg# Check that the precious variables saved in the cache have kept the same
2329a4f78defSmrg# value.
2330a4f78defSmrgac_cache_corrupted=false
2331a4f78defSmrgfor ac_var in $ac_precious_vars; do
2332a4f78defSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2333a4f78defSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2334a4f78defSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2335a4f78defSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2336a4f78defSmrg  case $ac_old_set,$ac_new_set in
2337a4f78defSmrg    set,)
2338a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2339a4f78defSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2340a4f78defSmrg      ac_cache_corrupted=: ;;
2341a4f78defSmrg    ,set)
2342a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2343a4f78defSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2344a4f78defSmrg      ac_cache_corrupted=: ;;
2345a4f78defSmrg    ,);;
2346a4f78defSmrg    *)
2347a4f78defSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2348a4f78defSmrg	# differences in whitespace do not lead to failure.
2349a4f78defSmrg	ac_old_val_w=`echo x $ac_old_val`
2350a4f78defSmrg	ac_new_val_w=`echo x $ac_new_val`
2351a4f78defSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2352a4f78defSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2353a4f78defSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2354a4f78defSmrg	  ac_cache_corrupted=:
2355a4f78defSmrg	else
2356a4f78defSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2357a4f78defSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2358a4f78defSmrg	  eval $ac_var=\$ac_old_val
2359a4f78defSmrg	fi
2360a4f78defSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2361a4f78defSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2362a4f78defSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2363a4f78defSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2364a4f78defSmrg      fi;;
2365a4f78defSmrg  esac
2366a4f78defSmrg  # Pass precious variables to config.status.
2367a4f78defSmrg  if test "$ac_new_set" = set; then
2368a4f78defSmrg    case $ac_new_val in
2369a4f78defSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2370a4f78defSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2371a4f78defSmrg    esac
2372a4f78defSmrg    case " $ac_configure_args " in
2373a4f78defSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2374a4f78defSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375a4f78defSmrg    esac
2376a4f78defSmrg  fi
2377a4f78defSmrgdone
2378a4f78defSmrgif $ac_cache_corrupted; then
2379a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2382a4f78defSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2383a4f78defSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2384a4f78defSmrgfi
2385a4f78defSmrg## -------------------- ##
2386a4f78defSmrg## Main body of script. ##
2387a4f78defSmrg## -------------------- ##
2388a4f78defSmrg
2389a4f78defSmrgac_ext=c
2390a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
2391a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2394a4f78defSmrg
2395a4f78defSmrg
2396a4f78defSmrgam__api_version='1.15'
2397a4f78defSmrg
2398a4f78defSmrgac_aux_dir=
2399a4f78defSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2400a4f78defSmrg  if test -f "$ac_dir/install-sh"; then
2401a4f78defSmrg    ac_aux_dir=$ac_dir
2402a4f78defSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2403a4f78defSmrg    break
2404a4f78defSmrg  elif test -f "$ac_dir/install.sh"; then
2405a4f78defSmrg    ac_aux_dir=$ac_dir
2406a4f78defSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2407a4f78defSmrg    break
2408a4f78defSmrg  elif test -f "$ac_dir/shtool"; then
2409a4f78defSmrg    ac_aux_dir=$ac_dir
2410a4f78defSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2411a4f78defSmrg    break
2412a4f78defSmrg  fi
2413a4f78defSmrgdone
2414a4f78defSmrgif test -z "$ac_aux_dir"; then
2415a4f78defSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2416a4f78defSmrgfi
2417a4f78defSmrg
2418a4f78defSmrg# These three variables are undocumented and unsupported,
2419a4f78defSmrg# and are intended to be withdrawn in a future Autoconf release.
2420a4f78defSmrg# They can cause serious problems if a builder's source tree is in a directory
2421a4f78defSmrg# whose full name contains unusual characters.
2422a4f78defSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2423a4f78defSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2424a4f78defSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2425a4f78defSmrg
2426a4f78defSmrg
2427a4f78defSmrg# Find a good install program.  We prefer a C program (faster),
2428a4f78defSmrg# so one script is as good as another.  But avoid the broken or
2429a4f78defSmrg# incompatible versions:
2430a4f78defSmrg# SysV /etc/install, /usr/sbin/install
2431a4f78defSmrg# SunOS /usr/etc/install
2432a4f78defSmrg# IRIX /sbin/install
2433a4f78defSmrg# AIX /bin/install
2434a4f78defSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2435a4f78defSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436a4f78defSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437a4f78defSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438a4f78defSmrg# OS/2's system install, which has a completely different semantic
2439a4f78defSmrg# ./install, which can be erroneously created by make from ./install.sh.
2440a4f78defSmrg# Reject install programs that cannot install multiple files.
2441a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2442a4f78defSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2443a4f78defSmrgif test -z "$INSTALL"; then
2444a4f78defSmrgif ${ac_cv_path_install+:} false; then :
2445a4f78defSmrg  $as_echo_n "(cached) " >&6
2446a4f78defSmrgelse
2447a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448a4f78defSmrgfor as_dir in $PATH
2449a4f78defSmrgdo
2450a4f78defSmrg  IFS=$as_save_IFS
2451a4f78defSmrg  test -z "$as_dir" && as_dir=.
2452a4f78defSmrg    # Account for people who put trailing slashes in PATH elements.
2453a4f78defSmrgcase $as_dir/ in #((
2454a4f78defSmrg  ./ | .// | /[cC]/* | \
2455a4f78defSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2456a4f78defSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2457a4f78defSmrg  /usr/ucb/* ) ;;
2458a4f78defSmrg  *)
2459a4f78defSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2460a4f78defSmrg    # Don't use installbsd from OSF since it installs stuff as root
2461a4f78defSmrg    # by default.
2462a4f78defSmrg    for ac_prog in ginstall scoinst install; do
2463a4f78defSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2464a4f78defSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2465a4f78defSmrg	  if test $ac_prog = install &&
2466a4f78defSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467a4f78defSmrg	    # AIX install.  It has an incompatible calling convention.
2468a4f78defSmrg	    :
2469a4f78defSmrg	  elif test $ac_prog = install &&
2470a4f78defSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2471a4f78defSmrg	    # program-specific install script used by HP pwplus--don't use.
2472a4f78defSmrg	    :
2473a4f78defSmrg	  else
2474a4f78defSmrg	    rm -rf conftest.one conftest.two conftest.dir
2475a4f78defSmrg	    echo one > conftest.one
2476a4f78defSmrg	    echo two > conftest.two
2477a4f78defSmrg	    mkdir conftest.dir
2478a4f78defSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2479a4f78defSmrg	      test -s conftest.one && test -s conftest.two &&
2480a4f78defSmrg	      test -s conftest.dir/conftest.one &&
2481a4f78defSmrg	      test -s conftest.dir/conftest.two
2482a4f78defSmrg	    then
2483a4f78defSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2484a4f78defSmrg	      break 3
2485a4f78defSmrg	    fi
2486a4f78defSmrg	  fi
2487a4f78defSmrg	fi
2488a4f78defSmrg      done
2489a4f78defSmrg    done
2490a4f78defSmrg    ;;
2491a4f78defSmrgesac
2492a4f78defSmrg
2493a4f78defSmrg  done
2494a4f78defSmrgIFS=$as_save_IFS
2495a4f78defSmrg
2496a4f78defSmrgrm -rf conftest.one conftest.two conftest.dir
2497a4f78defSmrg
2498a4f78defSmrgfi
2499a4f78defSmrg  if test "${ac_cv_path_install+set}" = set; then
2500a4f78defSmrg    INSTALL=$ac_cv_path_install
2501a4f78defSmrg  else
2502a4f78defSmrg    # As a last resort, use the slow shell script.  Don't cache a
2503a4f78defSmrg    # value for INSTALL within a source directory, because that will
2504a4f78defSmrg    # break other packages using the cache if that directory is
2505a4f78defSmrg    # removed, or if the value is a relative name.
2506a4f78defSmrg    INSTALL=$ac_install_sh
2507a4f78defSmrg  fi
2508a4f78defSmrgfi
2509a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2510a4f78defSmrg$as_echo "$INSTALL" >&6; }
2511a4f78defSmrg
2512a4f78defSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2513a4f78defSmrg# It thinks the first close brace ends the variable substitution.
2514a4f78defSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2515a4f78defSmrg
2516a4f78defSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2517a4f78defSmrg
2518a4f78defSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519a4f78defSmrg
2520a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2521a4f78defSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2522a4f78defSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2523a4f78defSmrg# name.  Accept space and tab only in the latter.
2524a4f78defSmrgam_lf='
2525a4f78defSmrg'
2526a4f78defSmrgcase `pwd` in
2527a4f78defSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2528a4f78defSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2529a4f78defSmrgesac
2530a4f78defSmrgcase $srcdir in
2531a4f78defSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2532a4f78defSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2533a4f78defSmrgesac
2534a4f78defSmrg
2535a4f78defSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2536a4f78defSmrg# arguments.  Must try -L first in case configure is actually a
2537a4f78defSmrg# symlink; some systems play weird games with the mod time of symlinks
2538a4f78defSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2539a4f78defSmrg# directory).
2540a4f78defSmrgif (
2541a4f78defSmrg   am_has_slept=no
2542a4f78defSmrg   for am_try in 1 2; do
2543a4f78defSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2544a4f78defSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2545a4f78defSmrg     if test "$*" = "X"; then
2546a4f78defSmrg	# -L didn't work.
2547a4f78defSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2548a4f78defSmrg     fi
2549a4f78defSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2550a4f78defSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2551a4f78defSmrg
2552a4f78defSmrg	# If neither matched, then we have a broken ls.  This can happen
2553a4f78defSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2554a4f78defSmrg	# broken ls alias from the environment.  This has actually
2555a4f78defSmrg	# happened.  Such a system could not be considered "sane".
2556a4f78defSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2557a4f78defSmrg  alias in your environment" "$LINENO" 5
2558a4f78defSmrg     fi
2559a4f78defSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2560a4f78defSmrg       break
2561a4f78defSmrg     fi
2562a4f78defSmrg     # Just in case.
2563a4f78defSmrg     sleep 1
2564a4f78defSmrg     am_has_slept=yes
2565a4f78defSmrg   done
2566a4f78defSmrg   test "$2" = conftest.file
2567a4f78defSmrg   )
2568a4f78defSmrgthen
2569a4f78defSmrg   # Ok.
2570a4f78defSmrg   :
2571a4f78defSmrgelse
2572a4f78defSmrg   as_fn_error $? "newly created file is older than distributed files!
2573a4f78defSmrgCheck your system clock" "$LINENO" 5
2574a4f78defSmrgfi
2575a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576a4f78defSmrg$as_echo "yes" >&6; }
2577a4f78defSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2578a4f78defSmrg# generated files are strictly newer.
2579a4f78defSmrgam_sleep_pid=
2580a4f78defSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2581a4f78defSmrg  ( sleep 1 ) &
2582a4f78defSmrg  am_sleep_pid=$!
2583a4f78defSmrgfi
2584a4f78defSmrg
2585a4f78defSmrgrm -f conftest.file
2586a4f78defSmrg
2587a4f78defSmrgtest "$program_prefix" != NONE &&
2588a4f78defSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2589a4f78defSmrg# Use a double $ so make ignores it.
2590a4f78defSmrgtest "$program_suffix" != NONE &&
2591a4f78defSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2592a4f78defSmrg# Double any \ or $.
2593a4f78defSmrg# By default was `s,x,x', remove it if useless.
2594a4f78defSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2595a4f78defSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2596a4f78defSmrg
2597a4f78defSmrg# Expand $ac_aux_dir to an absolute path.
2598a4f78defSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
2599a4f78defSmrg
2600a4f78defSmrgif test x"${MISSING+set}" != xset; then
2601a4f78defSmrg  case $am_aux_dir in
2602a4f78defSmrg  *\ * | *\	*)
2603a4f78defSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2604a4f78defSmrg  *)
2605a4f78defSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2606a4f78defSmrg  esac
2607a4f78defSmrgfi
2608a4f78defSmrg# Use eval to expand $SHELL
2609a4f78defSmrgif eval "$MISSING --is-lightweight"; then
2610a4f78defSmrg  am_missing_run="$MISSING "
2611a4f78defSmrgelse
2612a4f78defSmrg  am_missing_run=
2613a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2614a4f78defSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2615a4f78defSmrgfi
2616a4f78defSmrg
2617a4f78defSmrgif test x"${install_sh+set}" != xset; then
2618a4f78defSmrg  case $am_aux_dir in
2619a4f78defSmrg  *\ * | *\	*)
2620a4f78defSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2621a4f78defSmrg  *)
2622a4f78defSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2623a4f78defSmrg  esac
2624a4f78defSmrgfi
2625a4f78defSmrg
2626a4f78defSmrg# Installed binaries are usually stripped using 'strip' when the user
2627a4f78defSmrg# run "make install-strip".  However 'strip' might not be the right
2628a4f78defSmrg# tool to use in cross-compilation environments, therefore Automake
2629a4f78defSmrg# will honor the 'STRIP' environment variable to overrule this program.
2630a4f78defSmrgif test "$cross_compiling" != no; then
2631a4f78defSmrg  if test -n "$ac_tool_prefix"; then
2632a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2633a4f78defSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2634a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
2636a4f78defSmrgif ${ac_cv_prog_STRIP+:} false; then :
2637a4f78defSmrg  $as_echo_n "(cached) " >&6
2638a4f78defSmrgelse
2639a4f78defSmrg  if test -n "$STRIP"; then
2640a4f78defSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2641a4f78defSmrgelse
2642a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643a4f78defSmrgfor as_dir in $PATH
2644a4f78defSmrgdo
2645a4f78defSmrg  IFS=$as_save_IFS
2646a4f78defSmrg  test -z "$as_dir" && as_dir=.
2647a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2648a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649a4f78defSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2650a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651a4f78defSmrg    break 2
2652a4f78defSmrg  fi
2653a4f78defSmrgdone
2654a4f78defSmrg  done
2655a4f78defSmrgIFS=$as_save_IFS
2656a4f78defSmrg
2657a4f78defSmrgfi
2658a4f78defSmrgfi
2659a4f78defSmrgSTRIP=$ac_cv_prog_STRIP
2660a4f78defSmrgif test -n "$STRIP"; then
2661a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2662a4f78defSmrg$as_echo "$STRIP" >&6; }
2663a4f78defSmrgelse
2664a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665a4f78defSmrg$as_echo "no" >&6; }
2666a4f78defSmrgfi
2667a4f78defSmrg
2668a4f78defSmrg
2669a4f78defSmrgfi
2670a4f78defSmrgif test -z "$ac_cv_prog_STRIP"; then
2671a4f78defSmrg  ac_ct_STRIP=$STRIP
2672a4f78defSmrg  # Extract the first word of "strip", so it can be a program name with args.
2673a4f78defSmrgset dummy strip; ac_word=$2
2674a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
2676a4f78defSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2677a4f78defSmrg  $as_echo_n "(cached) " >&6
2678a4f78defSmrgelse
2679a4f78defSmrg  if test -n "$ac_ct_STRIP"; then
2680a4f78defSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2681a4f78defSmrgelse
2682a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683a4f78defSmrgfor as_dir in $PATH
2684a4f78defSmrgdo
2685a4f78defSmrg  IFS=$as_save_IFS
2686a4f78defSmrg  test -z "$as_dir" && as_dir=.
2687a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2688a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689a4f78defSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2690a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691a4f78defSmrg    break 2
2692a4f78defSmrg  fi
2693a4f78defSmrgdone
2694a4f78defSmrg  done
2695a4f78defSmrgIFS=$as_save_IFS
2696a4f78defSmrg
2697a4f78defSmrgfi
2698a4f78defSmrgfi
2699a4f78defSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2700a4f78defSmrgif test -n "$ac_ct_STRIP"; then
2701a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2702a4f78defSmrg$as_echo "$ac_ct_STRIP" >&6; }
2703a4f78defSmrgelse
2704a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705a4f78defSmrg$as_echo "no" >&6; }
2706a4f78defSmrgfi
2707a4f78defSmrg
2708a4f78defSmrg  if test "x$ac_ct_STRIP" = x; then
2709a4f78defSmrg    STRIP=":"
2710a4f78defSmrg  else
2711a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
2712a4f78defSmrgyes:)
2713a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715a4f78defSmrgac_tool_warned=yes ;;
2716a4f78defSmrgesac
2717a4f78defSmrg    STRIP=$ac_ct_STRIP
2718a4f78defSmrg  fi
2719a4f78defSmrgelse
2720a4f78defSmrg  STRIP="$ac_cv_prog_STRIP"
2721a4f78defSmrgfi
2722a4f78defSmrg
2723a4f78defSmrgfi
2724a4f78defSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2725a4f78defSmrg
2726a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2727a4f78defSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2728a4f78defSmrgif test -z "$MKDIR_P"; then
2729a4f78defSmrg  if ${ac_cv_path_mkdir+:} false; then :
2730a4f78defSmrg  $as_echo_n "(cached) " >&6
2731a4f78defSmrgelse
2732a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733a4f78defSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2734a4f78defSmrgdo
2735a4f78defSmrg  IFS=$as_save_IFS
2736a4f78defSmrg  test -z "$as_dir" && as_dir=.
2737a4f78defSmrg    for ac_prog in mkdir gmkdir; do
2738a4f78defSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2739a4f78defSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2740a4f78defSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2741a4f78defSmrg	     'mkdir (GNU coreutils) '* | \
2742a4f78defSmrg	     'mkdir (coreutils) '* | \
2743a4f78defSmrg	     'mkdir (fileutils) '4.1*)
2744a4f78defSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2745a4f78defSmrg	       break 3;;
2746a4f78defSmrg	   esac
2747a4f78defSmrg	 done
2748a4f78defSmrg       done
2749a4f78defSmrg  done
2750a4f78defSmrgIFS=$as_save_IFS
2751a4f78defSmrg
2752a4f78defSmrgfi
2753a4f78defSmrg
2754a4f78defSmrg  test -d ./--version && rmdir ./--version
2755a4f78defSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2756a4f78defSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2757a4f78defSmrg  else
2758a4f78defSmrg    # As a last resort, use the slow shell script.  Don't cache a
2759a4f78defSmrg    # value for MKDIR_P within a source directory, because that will
2760a4f78defSmrg    # break other packages using the cache if that directory is
2761a4f78defSmrg    # removed, or if the value is a relative name.
2762a4f78defSmrg    MKDIR_P="$ac_install_sh -d"
2763a4f78defSmrg  fi
2764a4f78defSmrgfi
2765a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2766a4f78defSmrg$as_echo "$MKDIR_P" >&6; }
2767a4f78defSmrg
2768a4f78defSmrgfor ac_prog in gawk mawk nawk awk
2769a4f78defSmrgdo
2770a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2771a4f78defSmrgset dummy $ac_prog; ac_word=$2
2772a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
2774a4f78defSmrgif ${ac_cv_prog_AWK+:} false; then :
2775a4f78defSmrg  $as_echo_n "(cached) " >&6
2776a4f78defSmrgelse
2777a4f78defSmrg  if test -n "$AWK"; then
2778a4f78defSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2779a4f78defSmrgelse
2780a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781a4f78defSmrgfor as_dir in $PATH
2782a4f78defSmrgdo
2783a4f78defSmrg  IFS=$as_save_IFS
2784a4f78defSmrg  test -z "$as_dir" && as_dir=.
2785a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2786a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787a4f78defSmrg    ac_cv_prog_AWK="$ac_prog"
2788a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789a4f78defSmrg    break 2
2790a4f78defSmrg  fi
2791a4f78defSmrgdone
2792a4f78defSmrg  done
2793a4f78defSmrgIFS=$as_save_IFS
2794a4f78defSmrg
2795a4f78defSmrgfi
2796a4f78defSmrgfi
2797a4f78defSmrgAWK=$ac_cv_prog_AWK
2798a4f78defSmrgif test -n "$AWK"; then
2799a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2800a4f78defSmrg$as_echo "$AWK" >&6; }
2801a4f78defSmrgelse
2802a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803a4f78defSmrg$as_echo "no" >&6; }
2804a4f78defSmrgfi
2805a4f78defSmrg
2806a4f78defSmrg
2807a4f78defSmrg  test -n "$AWK" && break
2808a4f78defSmrgdone
2809a4f78defSmrg
2810a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2811a4f78defSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2812a4f78defSmrgset x ${MAKE-make}
2813a4f78defSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2814a4f78defSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2815a4f78defSmrg  $as_echo_n "(cached) " >&6
2816a4f78defSmrgelse
2817a4f78defSmrg  cat >conftest.make <<\_ACEOF
2818a4f78defSmrgSHELL = /bin/sh
2819a4f78defSmrgall:
2820a4f78defSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2821a4f78defSmrg_ACEOF
2822a4f78defSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2823a4f78defSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2824a4f78defSmrg  *@@@%%%=?*=@@@%%%*)
2825a4f78defSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2826a4f78defSmrg  *)
2827a4f78defSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2828a4f78defSmrgesac
2829a4f78defSmrgrm -f conftest.make
2830a4f78defSmrgfi
2831a4f78defSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2832a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833a4f78defSmrg$as_echo "yes" >&6; }
2834a4f78defSmrg  SET_MAKE=
2835a4f78defSmrgelse
2836a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837a4f78defSmrg$as_echo "no" >&6; }
2838a4f78defSmrg  SET_MAKE="MAKE=${MAKE-make}"
2839a4f78defSmrgfi
2840a4f78defSmrg
2841a4f78defSmrgrm -rf .tst 2>/dev/null
2842a4f78defSmrgmkdir .tst 2>/dev/null
2843a4f78defSmrgif test -d .tst; then
2844a4f78defSmrg  am__leading_dot=.
2845a4f78defSmrgelse
2846a4f78defSmrg  am__leading_dot=_
2847a4f78defSmrgfi
2848a4f78defSmrgrmdir .tst 2>/dev/null
2849a4f78defSmrg
2850a4f78defSmrg# Check whether --enable-silent-rules was given.
2851a4f78defSmrgif test "${enable_silent_rules+set}" = set; then :
2852a4f78defSmrg  enableval=$enable_silent_rules;
2853a4f78defSmrgfi
2854a4f78defSmrg
2855a4f78defSmrgcase $enable_silent_rules in # (((
2856a4f78defSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2857a4f78defSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2858a4f78defSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2859a4f78defSmrgesac
2860a4f78defSmrgam_make=${MAKE-make}
2861a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2862a4f78defSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2863a4f78defSmrgif ${am_cv_make_support_nested_variables+:} false; then :
2864a4f78defSmrg  $as_echo_n "(cached) " >&6
2865a4f78defSmrgelse
2866a4f78defSmrg  if $as_echo 'TRUE=$(BAR$(V))
2867a4f78defSmrgBAR0=false
2868a4f78defSmrgBAR1=true
2869a4f78defSmrgV=1
2870a4f78defSmrgam__doit:
2871a4f78defSmrg	@$(TRUE)
2872a4f78defSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2873a4f78defSmrg  am_cv_make_support_nested_variables=yes
2874a4f78defSmrgelse
2875a4f78defSmrg  am_cv_make_support_nested_variables=no
2876a4f78defSmrgfi
2877a4f78defSmrgfi
2878a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2879a4f78defSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
2880a4f78defSmrgif test $am_cv_make_support_nested_variables = yes; then
2881a4f78defSmrg    AM_V='$(V)'
2882a4f78defSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2883a4f78defSmrgelse
2884a4f78defSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2885a4f78defSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2886a4f78defSmrgfi
2887a4f78defSmrgAM_BACKSLASH='\'
2888a4f78defSmrg
2889a4f78defSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2890a4f78defSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891a4f78defSmrg  # is not polluted with repeated "-I."
2892a4f78defSmrg  am__isrc=' -I$(srcdir)'
2893a4f78defSmrg  # test to see if srcdir already configured
2894a4f78defSmrg  if test -f $srcdir/config.status; then
2895a4f78defSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2896a4f78defSmrg  fi
2897a4f78defSmrgfi
2898a4f78defSmrg
2899a4f78defSmrg# test whether we have cygpath
2900a4f78defSmrgif test -z "$CYGPATH_W"; then
2901a4f78defSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2902a4f78defSmrg    CYGPATH_W='cygpath -w'
2903a4f78defSmrg  else
2904a4f78defSmrg    CYGPATH_W=echo
2905a4f78defSmrg  fi
2906a4f78defSmrgfi
2907a4f78defSmrg
2908a4f78defSmrg
2909a4f78defSmrg# Define the identity of the package.
2910a4f78defSmrg PACKAGE='libvdpau'
2911a4f78defSmrg VERSION='1.1.1'
2912a4f78defSmrg
2913a4f78defSmrg
2914a4f78defSmrgcat >>confdefs.h <<_ACEOF
2915a4f78defSmrg#define PACKAGE "$PACKAGE"
2916a4f78defSmrg_ACEOF
2917a4f78defSmrg
2918a4f78defSmrg
2919a4f78defSmrgcat >>confdefs.h <<_ACEOF
2920a4f78defSmrg#define VERSION "$VERSION"
2921a4f78defSmrg_ACEOF
2922a4f78defSmrg
2923a4f78defSmrg# Some tools Automake needs.
2924a4f78defSmrg
2925a4f78defSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926a4f78defSmrg
2927a4f78defSmrg
2928a4f78defSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929a4f78defSmrg
2930a4f78defSmrg
2931a4f78defSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932a4f78defSmrg
2933a4f78defSmrg
2934a4f78defSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935a4f78defSmrg
2936a4f78defSmrg
2937a4f78defSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938a4f78defSmrg
2939a4f78defSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
2940a4f78defSmrg# dies out for good.  For more background, see:
2941a4f78defSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2942a4f78defSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2943a4f78defSmrgmkdir_p='$(MKDIR_P)'
2944a4f78defSmrg
2945a4f78defSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
2946a4f78defSmrg# system "awk" is bad on some platforms.
2947a4f78defSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
2948a4f78defSmrg# in the wild :-(  We should find a proper way to deprecate it ...
2949a4f78defSmrgAMTAR='$${TAR-tar}'
2950a4f78defSmrg
2951a4f78defSmrg
2952a4f78defSmrg# We'll loop over all known methods to create a tar archive until one works.
2953a4f78defSmrg_am_tools='gnutar  pax cpio none'
2954a4f78defSmrg
2955a4f78defSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2956a4f78defSmrg
2957a4f78defSmrg
2958a4f78defSmrg
2959a4f78defSmrg
2960a4f78defSmrg
2961a4f78defSmrg
2962a4f78defSmrg# POSIX will say in a future version that running "rm -f" with no argument
2963a4f78defSmrg# is OK; and we want to be able to make that assumption in our Makefile
2964a4f78defSmrg# recipes.  So use an aggressive probe to check that the usage we want is
2965a4f78defSmrg# actually supported "in the wild" to an acceptable degree.
2966a4f78defSmrg# See automake bug#10828.
2967a4f78defSmrg# To make any issue more visible, cause the running configure to be aborted
2968a4f78defSmrg# by default if the 'rm' program in use doesn't match our expectations; the
2969a4f78defSmrg# user can still override this though.
2970a4f78defSmrgif rm -f && rm -fr && rm -rf; then : OK; else
2971a4f78defSmrg  cat >&2 <<'END'
2972a4f78defSmrgOops!
2973a4f78defSmrg
2974a4f78defSmrgYour 'rm' program seems unable to run without file operands specified
2975a4f78defSmrgon the command line, even when the '-f' option is present.  This is contrary
2976a4f78defSmrgto the behaviour of most rm programs out there, and not conforming with
2977a4f78defSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2978a4f78defSmrg
2979a4f78defSmrgPlease tell bug-automake@gnu.org about your system, including the value
2980a4f78defSmrgof your $PATH and any error possibly output before this message.  This
2981a4f78defSmrgcan help us improve future automake versions.
2982a4f78defSmrg
2983a4f78defSmrgEND
2984a4f78defSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2985a4f78defSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
2986a4f78defSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2987a4f78defSmrg    echo >&2
2988a4f78defSmrg  else
2989a4f78defSmrg    cat >&2 <<'END'
2990a4f78defSmrgAborting the configuration process, to ensure you take notice of the issue.
2991a4f78defSmrg
2992a4f78defSmrgYou can download and install GNU coreutils to get an 'rm' implementation
2993a4f78defSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
2994a4f78defSmrg
2995a4f78defSmrgIf you want to complete the configuration process using your problematic
2996a4f78defSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2997a4f78defSmrgto "yes", and re-run configure.
2998a4f78defSmrg
2999a4f78defSmrgEND
3000a4f78defSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3001a4f78defSmrg  fi
3002a4f78defSmrgfi
3003a4f78defSmrg
3004a4f78defSmrg
3005a4f78defSmrgac_config_headers="$ac_config_headers config.h"
3006a4f78defSmrg
3007a4f78defSmrg
3008a4f78defSmrg# Check for secure_getenv
3009a4f78defSmrgDEPDIR="${am__leading_dot}deps"
3010a4f78defSmrg
3011a4f78defSmrgac_config_commands="$ac_config_commands depfiles"
3012a4f78defSmrg
3013a4f78defSmrg
3014a4f78defSmrgam_make=${MAKE-make}
3015a4f78defSmrgcat > confinc << 'END'
3016a4f78defSmrgam__doit:
3017a4f78defSmrg	@echo this is the am__doit target
3018a4f78defSmrg.PHONY: am__doit
3019a4f78defSmrgEND
3020a4f78defSmrg# If we don't find an include directive, just comment out the code.
3021a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3022a4f78defSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
3023a4f78defSmrgam__include="#"
3024a4f78defSmrgam__quote=
3025a4f78defSmrg_am_result=none
3026a4f78defSmrg# First try GNU make style include.
3027a4f78defSmrgecho "include confinc" > confmf
3028a4f78defSmrg# Ignore all kinds of additional output from 'make'.
3029a4f78defSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3030a4f78defSmrg*the\ am__doit\ target*)
3031a4f78defSmrg  am__include=include
3032a4f78defSmrg  am__quote=
3033a4f78defSmrg  _am_result=GNU
3034a4f78defSmrg  ;;
3035a4f78defSmrgesac
3036a4f78defSmrg# Now try BSD make style include.
3037a4f78defSmrgif test "$am__include" = "#"; then
3038a4f78defSmrg   echo '.include "confinc"' > confmf
3039a4f78defSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3040a4f78defSmrg   *the\ am__doit\ target*)
3041a4f78defSmrg     am__include=.include
3042a4f78defSmrg     am__quote="\""
3043a4f78defSmrg     _am_result=BSD
3044a4f78defSmrg     ;;
3045a4f78defSmrg   esac
3046a4f78defSmrgfi
3047a4f78defSmrg
3048a4f78defSmrg
3049a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3050a4f78defSmrg$as_echo "$_am_result" >&6; }
3051a4f78defSmrgrm -f confinc confmf
3052a4f78defSmrg
3053a4f78defSmrg# Check whether --enable-dependency-tracking was given.
3054a4f78defSmrgif test "${enable_dependency_tracking+set}" = set; then :
3055a4f78defSmrg  enableval=$enable_dependency_tracking;
3056a4f78defSmrgfi
3057a4f78defSmrg
3058a4f78defSmrgif test "x$enable_dependency_tracking" != xno; then
3059a4f78defSmrg  am_depcomp="$ac_aux_dir/depcomp"
3060a4f78defSmrg  AMDEPBACKSLASH='\'
3061a4f78defSmrg  am__nodep='_no'
3062a4f78defSmrgfi
3063a4f78defSmrg if test "x$enable_dependency_tracking" != xno; then
3064a4f78defSmrg  AMDEP_TRUE=
3065a4f78defSmrg  AMDEP_FALSE='#'
3066a4f78defSmrgelse
3067a4f78defSmrg  AMDEP_TRUE='#'
3068a4f78defSmrg  AMDEP_FALSE=
3069a4f78defSmrgfi
3070a4f78defSmrg
3071a4f78defSmrg
3072a4f78defSmrgac_ext=c
3073a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
3074a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3077a4f78defSmrgif test -n "$ac_tool_prefix"; then
3078a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079a4f78defSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3080a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3082a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
3083a4f78defSmrg  $as_echo_n "(cached) " >&6
3084a4f78defSmrgelse
3085a4f78defSmrg  if test -n "$CC"; then
3086a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3087a4f78defSmrgelse
3088a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089a4f78defSmrgfor as_dir in $PATH
3090a4f78defSmrgdo
3091a4f78defSmrg  IFS=$as_save_IFS
3092a4f78defSmrg  test -z "$as_dir" && as_dir=.
3093a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3094a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095a4f78defSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097a4f78defSmrg    break 2
3098a4f78defSmrg  fi
3099a4f78defSmrgdone
3100a4f78defSmrg  done
3101a4f78defSmrgIFS=$as_save_IFS
3102a4f78defSmrg
3103a4f78defSmrgfi
3104a4f78defSmrgfi
3105a4f78defSmrgCC=$ac_cv_prog_CC
3106a4f78defSmrgif test -n "$CC"; then
3107a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108a4f78defSmrg$as_echo "$CC" >&6; }
3109a4f78defSmrgelse
3110a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111a4f78defSmrg$as_echo "no" >&6; }
3112a4f78defSmrgfi
3113a4f78defSmrg
3114a4f78defSmrg
3115a4f78defSmrgfi
3116a4f78defSmrgif test -z "$ac_cv_prog_CC"; then
3117a4f78defSmrg  ac_ct_CC=$CC
3118a4f78defSmrg  # Extract the first word of "gcc", so it can be a program name with args.
3119a4f78defSmrgset dummy gcc; ac_word=$2
3120a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3122a4f78defSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3123a4f78defSmrg  $as_echo_n "(cached) " >&6
3124a4f78defSmrgelse
3125a4f78defSmrg  if test -n "$ac_ct_CC"; then
3126a4f78defSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127a4f78defSmrgelse
3128a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129a4f78defSmrgfor as_dir in $PATH
3130a4f78defSmrgdo
3131a4f78defSmrg  IFS=$as_save_IFS
3132a4f78defSmrg  test -z "$as_dir" && as_dir=.
3133a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3134a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135a4f78defSmrg    ac_cv_prog_ac_ct_CC="gcc"
3136a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137a4f78defSmrg    break 2
3138a4f78defSmrg  fi
3139a4f78defSmrgdone
3140a4f78defSmrg  done
3141a4f78defSmrgIFS=$as_save_IFS
3142a4f78defSmrg
3143a4f78defSmrgfi
3144a4f78defSmrgfi
3145a4f78defSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3146a4f78defSmrgif test -n "$ac_ct_CC"; then
3147a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148a4f78defSmrg$as_echo "$ac_ct_CC" >&6; }
3149a4f78defSmrgelse
3150a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151a4f78defSmrg$as_echo "no" >&6; }
3152a4f78defSmrgfi
3153a4f78defSmrg
3154a4f78defSmrg  if test "x$ac_ct_CC" = x; then
3155a4f78defSmrg    CC=""
3156a4f78defSmrg  else
3157a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
3158a4f78defSmrgyes:)
3159a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161a4f78defSmrgac_tool_warned=yes ;;
3162a4f78defSmrgesac
3163a4f78defSmrg    CC=$ac_ct_CC
3164a4f78defSmrg  fi
3165a4f78defSmrgelse
3166a4f78defSmrg  CC="$ac_cv_prog_CC"
3167a4f78defSmrgfi
3168a4f78defSmrg
3169a4f78defSmrgif test -z "$CC"; then
3170a4f78defSmrg          if test -n "$ac_tool_prefix"; then
3171a4f78defSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172a4f78defSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3173a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3175a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
3176a4f78defSmrg  $as_echo_n "(cached) " >&6
3177a4f78defSmrgelse
3178a4f78defSmrg  if test -n "$CC"; then
3179a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3180a4f78defSmrgelse
3181a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182a4f78defSmrgfor as_dir in $PATH
3183a4f78defSmrgdo
3184a4f78defSmrg  IFS=$as_save_IFS
3185a4f78defSmrg  test -z "$as_dir" && as_dir=.
3186a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3187a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188a4f78defSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3189a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190a4f78defSmrg    break 2
3191a4f78defSmrg  fi
3192a4f78defSmrgdone
3193a4f78defSmrg  done
3194a4f78defSmrgIFS=$as_save_IFS
3195a4f78defSmrg
3196a4f78defSmrgfi
3197a4f78defSmrgfi
3198a4f78defSmrgCC=$ac_cv_prog_CC
3199a4f78defSmrgif test -n "$CC"; then
3200a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201a4f78defSmrg$as_echo "$CC" >&6; }
3202a4f78defSmrgelse
3203a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204a4f78defSmrg$as_echo "no" >&6; }
3205a4f78defSmrgfi
3206a4f78defSmrg
3207a4f78defSmrg
3208a4f78defSmrg  fi
3209a4f78defSmrgfi
3210a4f78defSmrgif test -z "$CC"; then
3211a4f78defSmrg  # Extract the first word of "cc", so it can be a program name with args.
3212a4f78defSmrgset dummy cc; ac_word=$2
3213a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3215a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
3216a4f78defSmrg  $as_echo_n "(cached) " >&6
3217a4f78defSmrgelse
3218a4f78defSmrg  if test -n "$CC"; then
3219a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3220a4f78defSmrgelse
3221a4f78defSmrg  ac_prog_rejected=no
3222a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223a4f78defSmrgfor as_dir in $PATH
3224a4f78defSmrgdo
3225a4f78defSmrg  IFS=$as_save_IFS
3226a4f78defSmrg  test -z "$as_dir" && as_dir=.
3227a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3228a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229a4f78defSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230a4f78defSmrg       ac_prog_rejected=yes
3231a4f78defSmrg       continue
3232a4f78defSmrg     fi
3233a4f78defSmrg    ac_cv_prog_CC="cc"
3234a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235a4f78defSmrg    break 2
3236a4f78defSmrg  fi
3237a4f78defSmrgdone
3238a4f78defSmrg  done
3239a4f78defSmrgIFS=$as_save_IFS
3240a4f78defSmrg
3241a4f78defSmrgif test $ac_prog_rejected = yes; then
3242a4f78defSmrg  # We found a bogon in the path, so make sure we never use it.
3243a4f78defSmrg  set dummy $ac_cv_prog_CC
3244a4f78defSmrg  shift
3245a4f78defSmrg  if test $# != 0; then
3246a4f78defSmrg    # We chose a different compiler from the bogus one.
3247a4f78defSmrg    # However, it has the same basename, so the bogon will be chosen
3248a4f78defSmrg    # first if we set CC to just the basename; use the full file name.
3249a4f78defSmrg    shift
3250a4f78defSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3251a4f78defSmrg  fi
3252a4f78defSmrgfi
3253a4f78defSmrgfi
3254a4f78defSmrgfi
3255a4f78defSmrgCC=$ac_cv_prog_CC
3256a4f78defSmrgif test -n "$CC"; then
3257a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258a4f78defSmrg$as_echo "$CC" >&6; }
3259a4f78defSmrgelse
3260a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261a4f78defSmrg$as_echo "no" >&6; }
3262a4f78defSmrgfi
3263a4f78defSmrg
3264a4f78defSmrg
3265a4f78defSmrgfi
3266a4f78defSmrgif test -z "$CC"; then
3267a4f78defSmrg  if test -n "$ac_tool_prefix"; then
3268a4f78defSmrg  for ac_prog in cl.exe
3269a4f78defSmrg  do
3270a4f78defSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271a4f78defSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3274a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
3275a4f78defSmrg  $as_echo_n "(cached) " >&6
3276a4f78defSmrgelse
3277a4f78defSmrg  if test -n "$CC"; then
3278a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3279a4f78defSmrgelse
3280a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281a4f78defSmrgfor as_dir in $PATH
3282a4f78defSmrgdo
3283a4f78defSmrg  IFS=$as_save_IFS
3284a4f78defSmrg  test -z "$as_dir" && as_dir=.
3285a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3286a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287a4f78defSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289a4f78defSmrg    break 2
3290a4f78defSmrg  fi
3291a4f78defSmrgdone
3292a4f78defSmrg  done
3293a4f78defSmrgIFS=$as_save_IFS
3294a4f78defSmrg
3295a4f78defSmrgfi
3296a4f78defSmrgfi
3297a4f78defSmrgCC=$ac_cv_prog_CC
3298a4f78defSmrgif test -n "$CC"; then
3299a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300a4f78defSmrg$as_echo "$CC" >&6; }
3301a4f78defSmrgelse
3302a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303a4f78defSmrg$as_echo "no" >&6; }
3304a4f78defSmrgfi
3305a4f78defSmrg
3306a4f78defSmrg
3307a4f78defSmrg    test -n "$CC" && break
3308a4f78defSmrg  done
3309a4f78defSmrgfi
3310a4f78defSmrgif test -z "$CC"; then
3311a4f78defSmrg  ac_ct_CC=$CC
3312a4f78defSmrg  for ac_prog in cl.exe
3313a4f78defSmrgdo
3314a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3315a4f78defSmrgset dummy $ac_prog; ac_word=$2
3316a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
3318a4f78defSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3319a4f78defSmrg  $as_echo_n "(cached) " >&6
3320a4f78defSmrgelse
3321a4f78defSmrg  if test -n "$ac_ct_CC"; then
3322a4f78defSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323a4f78defSmrgelse
3324a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325a4f78defSmrgfor as_dir in $PATH
3326a4f78defSmrgdo
3327a4f78defSmrg  IFS=$as_save_IFS
3328a4f78defSmrg  test -z "$as_dir" && as_dir=.
3329a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3330a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331a4f78defSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3332a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333a4f78defSmrg    break 2
3334a4f78defSmrg  fi
3335a4f78defSmrgdone
3336a4f78defSmrg  done
3337a4f78defSmrgIFS=$as_save_IFS
3338a4f78defSmrg
3339a4f78defSmrgfi
3340a4f78defSmrgfi
3341a4f78defSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3342a4f78defSmrgif test -n "$ac_ct_CC"; then
3343a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344a4f78defSmrg$as_echo "$ac_ct_CC" >&6; }
3345a4f78defSmrgelse
3346a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347a4f78defSmrg$as_echo "no" >&6; }
3348a4f78defSmrgfi
3349a4f78defSmrg
3350a4f78defSmrg
3351a4f78defSmrg  test -n "$ac_ct_CC" && break
3352a4f78defSmrgdone
3353a4f78defSmrg
3354a4f78defSmrg  if test "x$ac_ct_CC" = x; then
3355a4f78defSmrg    CC=""
3356a4f78defSmrg  else
3357a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
3358a4f78defSmrgyes:)
3359a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361a4f78defSmrgac_tool_warned=yes ;;
3362a4f78defSmrgesac
3363a4f78defSmrg    CC=$ac_ct_CC
3364a4f78defSmrg  fi
3365a4f78defSmrgfi
3366a4f78defSmrg
3367a4f78defSmrgfi
3368a4f78defSmrg
3369a4f78defSmrg
3370a4f78defSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372a4f78defSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3373a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
3374a4f78defSmrg
3375a4f78defSmrg# Provide some information about the compiler.
3376a4f78defSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3377a4f78defSmrgset X $ac_compile
3378a4f78defSmrgac_compiler=$2
3379a4f78defSmrgfor ac_option in --version -v -V -qversion; do
3380a4f78defSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3381a4f78defSmrgcase "(($ac_try" in
3382a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383a4f78defSmrg  *) ac_try_echo=$ac_try;;
3384a4f78defSmrgesac
3385a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3387a4f78defSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388a4f78defSmrg  ac_status=$?
3389a4f78defSmrg  if test -s conftest.err; then
3390a4f78defSmrg    sed '10a\
3391a4f78defSmrg... rest of stderr output deleted ...
3392a4f78defSmrg         10q' conftest.err >conftest.er1
3393a4f78defSmrg    cat conftest.er1 >&5
3394a4f78defSmrg  fi
3395a4f78defSmrg  rm -f conftest.er1 conftest.err
3396a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397a4f78defSmrg  test $ac_status = 0; }
3398a4f78defSmrgdone
3399a4f78defSmrg
3400a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401a4f78defSmrg/* end confdefs.h.  */
3402a4f78defSmrg
3403a4f78defSmrgint
3404a4f78defSmrgmain ()
3405a4f78defSmrg{
3406a4f78defSmrg
3407a4f78defSmrg  ;
3408a4f78defSmrg  return 0;
3409a4f78defSmrg}
3410a4f78defSmrg_ACEOF
3411a4f78defSmrgac_clean_files_save=$ac_clean_files
3412a4f78defSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413a4f78defSmrg# Try to create an executable without -o first, disregard a.out.
3414a4f78defSmrg# It will help us diagnose broken compilers, and finding out an intuition
3415a4f78defSmrg# of exeext.
3416a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417a4f78defSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
3418a4f78defSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419a4f78defSmrg
3420a4f78defSmrg# The possible output files:
3421a4f78defSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3422a4f78defSmrg
3423a4f78defSmrgac_rmfiles=
3424a4f78defSmrgfor ac_file in $ac_files
3425a4f78defSmrgdo
3426a4f78defSmrg  case $ac_file in
3427a4f78defSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428a4f78defSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429a4f78defSmrg  esac
3430a4f78defSmrgdone
3431a4f78defSmrgrm -f $ac_rmfiles
3432a4f78defSmrg
3433a4f78defSmrgif { { ac_try="$ac_link_default"
3434a4f78defSmrgcase "(($ac_try" in
3435a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436a4f78defSmrg  *) ac_try_echo=$ac_try;;
3437a4f78defSmrgesac
3438a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3440a4f78defSmrg  (eval "$ac_link_default") 2>&5
3441a4f78defSmrg  ac_status=$?
3442a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443a4f78defSmrg  test $ac_status = 0; }; then :
3444a4f78defSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445a4f78defSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446a4f78defSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3447a4f78defSmrg# so that the user can short-circuit this test for compilers unknown to
3448a4f78defSmrg# Autoconf.
3449a4f78defSmrgfor ac_file in $ac_files ''
3450a4f78defSmrgdo
3451a4f78defSmrg  test -f "$ac_file" || continue
3452a4f78defSmrg  case $ac_file in
3453a4f78defSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3454a4f78defSmrg	;;
3455a4f78defSmrg    [ab].out )
3456a4f78defSmrg	# We found the default executable, but exeext='' is most
3457a4f78defSmrg	# certainly right.
3458a4f78defSmrg	break;;
3459a4f78defSmrg    *.* )
3460a4f78defSmrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461a4f78defSmrg	then :; else
3462a4f78defSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463a4f78defSmrg	fi
3464a4f78defSmrg	# We set ac_cv_exeext here because the later test for it is not
3465a4f78defSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3466a4f78defSmrg	# argument, so we may need to know it at that point already.
3467a4f78defSmrg	# Even if this section looks crufty: it has the advantage of
3468a4f78defSmrg	# actually working.
3469a4f78defSmrg	break;;
3470a4f78defSmrg    * )
3471a4f78defSmrg	break;;
3472a4f78defSmrg  esac
3473a4f78defSmrgdone
3474a4f78defSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3475a4f78defSmrg
3476a4f78defSmrgelse
3477a4f78defSmrg  ac_file=''
3478a4f78defSmrgfi
3479a4f78defSmrgif test -z "$ac_file"; then :
3480a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481a4f78defSmrg$as_echo "no" >&6; }
3482a4f78defSmrg$as_echo "$as_me: failed program was:" >&5
3483a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
3484a4f78defSmrg
3485a4f78defSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487a4f78defSmrgas_fn_error 77 "C compiler cannot create executables
3488a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
3489a4f78defSmrgelse
3490a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491a4f78defSmrg$as_echo "yes" >&6; }
3492a4f78defSmrgfi
3493a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494a4f78defSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3495a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496a4f78defSmrg$as_echo "$ac_file" >&6; }
3497a4f78defSmrgac_exeext=$ac_cv_exeext
3498a4f78defSmrg
3499a4f78defSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500a4f78defSmrgac_clean_files=$ac_clean_files_save
3501a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502a4f78defSmrg$as_echo_n "checking for suffix of executables... " >&6; }
3503a4f78defSmrgif { { ac_try="$ac_link"
3504a4f78defSmrgcase "(($ac_try" in
3505a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506a4f78defSmrg  *) ac_try_echo=$ac_try;;
3507a4f78defSmrgesac
3508a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3510a4f78defSmrg  (eval "$ac_link") 2>&5
3511a4f78defSmrg  ac_status=$?
3512a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513a4f78defSmrg  test $ac_status = 0; }; then :
3514a4f78defSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515a4f78defSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3516a4f78defSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3517a4f78defSmrg# `rm'.
3518a4f78defSmrgfor ac_file in conftest.exe conftest conftest.*; do
3519a4f78defSmrg  test -f "$ac_file" || continue
3520a4f78defSmrg  case $ac_file in
3521a4f78defSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522a4f78defSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523a4f78defSmrg	  break;;
3524a4f78defSmrg    * ) break;;
3525a4f78defSmrg  esac
3526a4f78defSmrgdone
3527a4f78defSmrgelse
3528a4f78defSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530a4f78defSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
3532a4f78defSmrgfi
3533a4f78defSmrgrm -f conftest conftest$ac_cv_exeext
3534a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535a4f78defSmrg$as_echo "$ac_cv_exeext" >&6; }
3536a4f78defSmrg
3537a4f78defSmrgrm -f conftest.$ac_ext
3538a4f78defSmrgEXEEXT=$ac_cv_exeext
3539a4f78defSmrgac_exeext=$EXEEXT
3540a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541a4f78defSmrg/* end confdefs.h.  */
3542a4f78defSmrg#include <stdio.h>
3543a4f78defSmrgint
3544a4f78defSmrgmain ()
3545a4f78defSmrg{
3546a4f78defSmrgFILE *f = fopen ("conftest.out", "w");
3547a4f78defSmrg return ferror (f) || fclose (f) != 0;
3548a4f78defSmrg
3549a4f78defSmrg  ;
3550a4f78defSmrg  return 0;
3551a4f78defSmrg}
3552a4f78defSmrg_ACEOF
3553a4f78defSmrgac_clean_files="$ac_clean_files conftest.out"
3554a4f78defSmrg# Check that the compiler produces executables we can run.  If not, either
3555a4f78defSmrg# the compiler is broken, or we cross compile.
3556a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557a4f78defSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3558a4f78defSmrgif test "$cross_compiling" != yes; then
3559a4f78defSmrg  { { ac_try="$ac_link"
3560a4f78defSmrgcase "(($ac_try" in
3561a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562a4f78defSmrg  *) ac_try_echo=$ac_try;;
3563a4f78defSmrgesac
3564a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3566a4f78defSmrg  (eval "$ac_link") 2>&5
3567a4f78defSmrg  ac_status=$?
3568a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569a4f78defSmrg  test $ac_status = 0; }
3570a4f78defSmrg  if { ac_try='./conftest$ac_cv_exeext'
3571a4f78defSmrg  { { case "(($ac_try" in
3572a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573a4f78defSmrg  *) ac_try_echo=$ac_try;;
3574a4f78defSmrgesac
3575a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3577a4f78defSmrg  (eval "$ac_try") 2>&5
3578a4f78defSmrg  ac_status=$?
3579a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580a4f78defSmrg  test $ac_status = 0; }; }; then
3581a4f78defSmrg    cross_compiling=no
3582a4f78defSmrg  else
3583a4f78defSmrg    if test "$cross_compiling" = maybe; then
3584a4f78defSmrg	cross_compiling=yes
3585a4f78defSmrg    else
3586a4f78defSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588a4f78defSmrgas_fn_error $? "cannot run C compiled programs.
3589a4f78defSmrgIf you meant to cross compile, use \`--host'.
3590a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
3591a4f78defSmrg    fi
3592a4f78defSmrg  fi
3593a4f78defSmrgfi
3594a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595a4f78defSmrg$as_echo "$cross_compiling" >&6; }
3596a4f78defSmrg
3597a4f78defSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598a4f78defSmrgac_clean_files=$ac_clean_files_save
3599a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600a4f78defSmrg$as_echo_n "checking for suffix of object files... " >&6; }
3601a4f78defSmrgif ${ac_cv_objext+:} false; then :
3602a4f78defSmrg  $as_echo_n "(cached) " >&6
3603a4f78defSmrgelse
3604a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605a4f78defSmrg/* end confdefs.h.  */
3606a4f78defSmrg
3607a4f78defSmrgint
3608a4f78defSmrgmain ()
3609a4f78defSmrg{
3610a4f78defSmrg
3611a4f78defSmrg  ;
3612a4f78defSmrg  return 0;
3613a4f78defSmrg}
3614a4f78defSmrg_ACEOF
3615a4f78defSmrgrm -f conftest.o conftest.obj
3616a4f78defSmrgif { { ac_try="$ac_compile"
3617a4f78defSmrgcase "(($ac_try" in
3618a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619a4f78defSmrg  *) ac_try_echo=$ac_try;;
3620a4f78defSmrgesac
3621a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
3623a4f78defSmrg  (eval "$ac_compile") 2>&5
3624a4f78defSmrg  ac_status=$?
3625a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626a4f78defSmrg  test $ac_status = 0; }; then :
3627a4f78defSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3628a4f78defSmrg  test -f "$ac_file" || continue;
3629a4f78defSmrg  case $ac_file in
3630a4f78defSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631a4f78defSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632a4f78defSmrg       break;;
3633a4f78defSmrg  esac
3634a4f78defSmrgdone
3635a4f78defSmrgelse
3636a4f78defSmrg  $as_echo "$as_me: failed program was:" >&5
3637a4f78defSmrgsed 's/^/| /' conftest.$ac_ext >&5
3638a4f78defSmrg
3639a4f78defSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641a4f78defSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3642a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
3643a4f78defSmrgfi
3644a4f78defSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3645a4f78defSmrgfi
3646a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647a4f78defSmrg$as_echo "$ac_cv_objext" >&6; }
3648a4f78defSmrgOBJEXT=$ac_cv_objext
3649a4f78defSmrgac_objext=$OBJEXT
3650a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651a4f78defSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652a4f78defSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3653a4f78defSmrg  $as_echo_n "(cached) " >&6
3654a4f78defSmrgelse
3655a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656a4f78defSmrg/* end confdefs.h.  */
3657a4f78defSmrg
3658a4f78defSmrgint
3659a4f78defSmrgmain ()
3660a4f78defSmrg{
3661a4f78defSmrg#ifndef __GNUC__
3662a4f78defSmrg       choke me
3663a4f78defSmrg#endif
3664a4f78defSmrg
3665a4f78defSmrg  ;
3666a4f78defSmrg  return 0;
3667a4f78defSmrg}
3668a4f78defSmrg_ACEOF
3669a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
3670a4f78defSmrg  ac_compiler_gnu=yes
3671a4f78defSmrgelse
3672a4f78defSmrg  ac_compiler_gnu=no
3673a4f78defSmrgfi
3674a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675a4f78defSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3676a4f78defSmrg
3677a4f78defSmrgfi
3678a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679a4f78defSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680a4f78defSmrgif test $ac_compiler_gnu = yes; then
3681a4f78defSmrg  GCC=yes
3682a4f78defSmrgelse
3683a4f78defSmrg  GCC=
3684a4f78defSmrgfi
3685a4f78defSmrgac_test_CFLAGS=${CFLAGS+set}
3686a4f78defSmrgac_save_CFLAGS=$CFLAGS
3687a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688a4f78defSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3689a4f78defSmrgif ${ac_cv_prog_cc_g+:} false; then :
3690a4f78defSmrg  $as_echo_n "(cached) " >&6
3691a4f78defSmrgelse
3692a4f78defSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3693a4f78defSmrg   ac_c_werror_flag=yes
3694a4f78defSmrg   ac_cv_prog_cc_g=no
3695a4f78defSmrg   CFLAGS="-g"
3696a4f78defSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697a4f78defSmrg/* end confdefs.h.  */
3698a4f78defSmrg
3699a4f78defSmrgint
3700a4f78defSmrgmain ()
3701a4f78defSmrg{
3702a4f78defSmrg
3703a4f78defSmrg  ;
3704a4f78defSmrg  return 0;
3705a4f78defSmrg}
3706a4f78defSmrg_ACEOF
3707a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
3708a4f78defSmrg  ac_cv_prog_cc_g=yes
3709a4f78defSmrgelse
3710a4f78defSmrg  CFLAGS=""
3711a4f78defSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712a4f78defSmrg/* end confdefs.h.  */
3713a4f78defSmrg
3714a4f78defSmrgint
3715a4f78defSmrgmain ()
3716a4f78defSmrg{
3717a4f78defSmrg
3718a4f78defSmrg  ;
3719a4f78defSmrg  return 0;
3720a4f78defSmrg}
3721a4f78defSmrg_ACEOF
3722a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
3723a4f78defSmrg
3724a4f78defSmrgelse
3725a4f78defSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3726a4f78defSmrg	 CFLAGS="-g"
3727a4f78defSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728a4f78defSmrg/* end confdefs.h.  */
3729a4f78defSmrg
3730a4f78defSmrgint
3731a4f78defSmrgmain ()
3732a4f78defSmrg{
3733a4f78defSmrg
3734a4f78defSmrg  ;
3735a4f78defSmrg  return 0;
3736a4f78defSmrg}
3737a4f78defSmrg_ACEOF
3738a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
3739a4f78defSmrg  ac_cv_prog_cc_g=yes
3740a4f78defSmrgfi
3741a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742a4f78defSmrgfi
3743a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744a4f78defSmrgfi
3745a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746a4f78defSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3747a4f78defSmrgfi
3748a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749a4f78defSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3750a4f78defSmrgif test "$ac_test_CFLAGS" = set; then
3751a4f78defSmrg  CFLAGS=$ac_save_CFLAGS
3752a4f78defSmrgelif test $ac_cv_prog_cc_g = yes; then
3753a4f78defSmrg  if test "$GCC" = yes; then
3754a4f78defSmrg    CFLAGS="-g -O2"
3755a4f78defSmrg  else
3756a4f78defSmrg    CFLAGS="-g"
3757a4f78defSmrg  fi
3758a4f78defSmrgelse
3759a4f78defSmrg  if test "$GCC" = yes; then
3760a4f78defSmrg    CFLAGS="-O2"
3761a4f78defSmrg  else
3762a4f78defSmrg    CFLAGS=
3763a4f78defSmrg  fi
3764a4f78defSmrgfi
3765a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766a4f78defSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767a4f78defSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3768a4f78defSmrg  $as_echo_n "(cached) " >&6
3769a4f78defSmrgelse
3770a4f78defSmrg  ac_cv_prog_cc_c89=no
3771a4f78defSmrgac_save_CC=$CC
3772a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773a4f78defSmrg/* end confdefs.h.  */
3774a4f78defSmrg#include <stdarg.h>
3775a4f78defSmrg#include <stdio.h>
3776a4f78defSmrgstruct stat;
3777a4f78defSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3778a4f78defSmrgstruct buf { int x; };
3779a4f78defSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3780a4f78defSmrgstatic char *e (p, i)
3781a4f78defSmrg     char **p;
3782a4f78defSmrg     int i;
3783a4f78defSmrg{
3784a4f78defSmrg  return p[i];
3785a4f78defSmrg}
3786a4f78defSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3787a4f78defSmrg{
3788a4f78defSmrg  char *s;
3789a4f78defSmrg  va_list v;
3790a4f78defSmrg  va_start (v,p);
3791a4f78defSmrg  s = g (p, va_arg (v,int));
3792a4f78defSmrg  va_end (v);
3793a4f78defSmrg  return s;
3794a4f78defSmrg}
3795a4f78defSmrg
3796a4f78defSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3797a4f78defSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3798a4f78defSmrg   These don't provoke an error unfortunately, instead are silently treated
3799a4f78defSmrg   as 'x'.  The following induces an error, until -std is added to get
3800a4f78defSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3801a4f78defSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3802a4f78defSmrg   that's true only with -std.  */
3803a4f78defSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804a4f78defSmrg
3805a4f78defSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806a4f78defSmrg   inside strings and character constants.  */
3807a4f78defSmrg#define FOO(x) 'x'
3808a4f78defSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809a4f78defSmrg
3810a4f78defSmrgint test (int i, double x);
3811a4f78defSmrgstruct s1 {int (*f) (int a);};
3812a4f78defSmrgstruct s2 {int (*f) (double a);};
3813a4f78defSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3814a4f78defSmrgint argc;
3815a4f78defSmrgchar **argv;
3816a4f78defSmrgint
3817a4f78defSmrgmain ()
3818a4f78defSmrg{
3819a4f78defSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3820a4f78defSmrg  ;
3821a4f78defSmrg  return 0;
3822a4f78defSmrg}
3823a4f78defSmrg_ACEOF
3824a4f78defSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825a4f78defSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826a4f78defSmrgdo
3827a4f78defSmrg  CC="$ac_save_CC $ac_arg"
3828a4f78defSmrg  if ac_fn_c_try_compile "$LINENO"; then :
3829a4f78defSmrg  ac_cv_prog_cc_c89=$ac_arg
3830a4f78defSmrgfi
3831a4f78defSmrgrm -f core conftest.err conftest.$ac_objext
3832a4f78defSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3833a4f78defSmrgdone
3834a4f78defSmrgrm -f conftest.$ac_ext
3835a4f78defSmrgCC=$ac_save_CC
3836a4f78defSmrg
3837a4f78defSmrgfi
3838a4f78defSmrg# AC_CACHE_VAL
3839a4f78defSmrgcase "x$ac_cv_prog_cc_c89" in
3840a4f78defSmrg  x)
3841a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3842a4f78defSmrg$as_echo "none needed" >&6; } ;;
3843a4f78defSmrg  xno)
3844a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3845a4f78defSmrg$as_echo "unsupported" >&6; } ;;
3846a4f78defSmrg  *)
3847a4f78defSmrg    CC="$CC $ac_cv_prog_cc_c89"
3848a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3849a4f78defSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850a4f78defSmrgesac
3851a4f78defSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3852a4f78defSmrg
3853a4f78defSmrgfi
3854a4f78defSmrg
3855a4f78defSmrgac_ext=c
3856a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
3857a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3860a4f78defSmrg
3861a4f78defSmrgac_ext=c
3862a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
3863a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3866a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3867a4f78defSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3868a4f78defSmrgif ${am_cv_prog_cc_c_o+:} false; then :
3869a4f78defSmrg  $as_echo_n "(cached) " >&6
3870a4f78defSmrgelse
3871a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872a4f78defSmrg/* end confdefs.h.  */
3873a4f78defSmrg
3874a4f78defSmrgint
3875a4f78defSmrgmain ()
3876a4f78defSmrg{
3877a4f78defSmrg
3878a4f78defSmrg  ;
3879a4f78defSmrg  return 0;
3880a4f78defSmrg}
3881a4f78defSmrg_ACEOF
3882a4f78defSmrg  # Make sure it works both with $CC and with simple cc.
3883a4f78defSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
3884a4f78defSmrg  # compilers refuse to overwrite an existing .o file with -o,
3885a4f78defSmrg  # though they will create one.
3886a4f78defSmrg  am_cv_prog_cc_c_o=yes
3887a4f78defSmrg  for am_i in 1 2; do
3888a4f78defSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3889a4f78defSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3890a4f78defSmrg   ac_status=$?
3891a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892a4f78defSmrg   (exit $ac_status); } \
3893a4f78defSmrg         && test -f conftest2.$ac_objext; then
3894a4f78defSmrg      : OK
3895a4f78defSmrg    else
3896a4f78defSmrg      am_cv_prog_cc_c_o=no
3897a4f78defSmrg      break
3898a4f78defSmrg    fi
3899a4f78defSmrg  done
3900a4f78defSmrg  rm -f core conftest*
3901a4f78defSmrg  unset am_i
3902a4f78defSmrgfi
3903a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3904a4f78defSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
3905a4f78defSmrgif test "$am_cv_prog_cc_c_o" != yes; then
3906a4f78defSmrg   # Losing compiler, so override with the script.
3907a4f78defSmrg   # FIXME: It is wrong to rewrite CC.
3908a4f78defSmrg   # But if we don't then we get into trouble of one sort or another.
3909a4f78defSmrg   # A longer-term fix would be to have automake use am__CC in this case,
3910a4f78defSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3911a4f78defSmrg   CC="$am_aux_dir/compile $CC"
3912a4f78defSmrgfi
3913a4f78defSmrgac_ext=c
3914a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
3915a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3918a4f78defSmrg
3919a4f78defSmrg
3920a4f78defSmrgdepcc="$CC"   am_compiler_list=
3921a4f78defSmrg
3922a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923a4f78defSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3924a4f78defSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3925a4f78defSmrg  $as_echo_n "(cached) " >&6
3926a4f78defSmrgelse
3927a4f78defSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928a4f78defSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3929a4f78defSmrg  # making bogus files that we don't know about and never remove.  For
3930a4f78defSmrg  # instance it was reported that on HP-UX the gcc test will end up
3931a4f78defSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
3932a4f78defSmrg  # in D".
3933a4f78defSmrg  rm -rf conftest.dir
3934a4f78defSmrg  mkdir conftest.dir
3935a4f78defSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3936a4f78defSmrg  # using a relative directory.
3937a4f78defSmrg  cp "$am_depcomp" conftest.dir
3938a4f78defSmrg  cd conftest.dir
3939a4f78defSmrg  # We will build objects and dependencies in a subdirectory because
3940a4f78defSmrg  # it helps to detect inapplicable dependency modes.  For instance
3941a4f78defSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3942a4f78defSmrg  # side effect of compilation, but ICC will put the dependencies in
3943a4f78defSmrg  # the current directory while Tru64 will put them in the object
3944a4f78defSmrg  # directory.
3945a4f78defSmrg  mkdir sub
3946a4f78defSmrg
3947a4f78defSmrg  am_cv_CC_dependencies_compiler_type=none
3948a4f78defSmrg  if test "$am_compiler_list" = ""; then
3949a4f78defSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3950a4f78defSmrg  fi
3951a4f78defSmrg  am__universal=false
3952a4f78defSmrg  case " $depcc " in #(
3953a4f78defSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3954a4f78defSmrg     esac
3955a4f78defSmrg
3956a4f78defSmrg  for depmode in $am_compiler_list; do
3957a4f78defSmrg    # Setup a source with many dependencies, because some compilers
3958a4f78defSmrg    # like to wrap large dependency lists on column 80 (with \), and
3959a4f78defSmrg    # we should not choose a depcomp mode which is confused by this.
3960a4f78defSmrg    #
3961a4f78defSmrg    # We need to recreate these files for each test, as the compiler may
3962a4f78defSmrg    # overwrite some of them when testing with obscure command lines.
3963a4f78defSmrg    # This happens at least with the AIX C compiler.
3964a4f78defSmrg    : > sub/conftest.c
3965a4f78defSmrg    for i in 1 2 3 4 5 6; do
3966a4f78defSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3967a4f78defSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3968a4f78defSmrg      # Solaris 10 /bin/sh.
3969a4f78defSmrg      echo '/* dummy */' > sub/conftst$i.h
3970a4f78defSmrg    done
3971a4f78defSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972a4f78defSmrg
3973a4f78defSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3974a4f78defSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3975a4f78defSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
3976a4f78defSmrg    # versions had trouble with output in subdirs.
3977a4f78defSmrg    am__obj=sub/conftest.${OBJEXT-o}
3978a4f78defSmrg    am__minus_obj="-o $am__obj"
3979a4f78defSmrg    case $depmode in
3980a4f78defSmrg    gcc)
3981a4f78defSmrg      # This depmode causes a compiler race in universal mode.
3982a4f78defSmrg      test "$am__universal" = false || continue
3983a4f78defSmrg      ;;
3984a4f78defSmrg    nosideeffect)
3985a4f78defSmrg      # After this tag, mechanisms are not by side-effect, so they'll
3986a4f78defSmrg      # only be used when explicitly requested.
3987a4f78defSmrg      if test "x$enable_dependency_tracking" = xyes; then
3988a4f78defSmrg	continue
3989a4f78defSmrg      else
3990a4f78defSmrg	break
3991a4f78defSmrg      fi
3992a4f78defSmrg      ;;
3993a4f78defSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3994a4f78defSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
3995a4f78defSmrg      # not run yet.  These depmodes are late enough in the game, and
3996a4f78defSmrg      # so weak that their functioning should not be impacted.
3997a4f78defSmrg      am__obj=conftest.${OBJEXT-o}
3998a4f78defSmrg      am__minus_obj=
3999a4f78defSmrg      ;;
4000a4f78defSmrg    none) break ;;
4001a4f78defSmrg    esac
4002a4f78defSmrg    if depmode=$depmode \
4003a4f78defSmrg       source=sub/conftest.c object=$am__obj \
4004a4f78defSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4005a4f78defSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4006a4f78defSmrg         >/dev/null 2>conftest.err &&
4007a4f78defSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4008a4f78defSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4009a4f78defSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4010a4f78defSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4011a4f78defSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4012a4f78defSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4013a4f78defSmrg      # that says an option was ignored or not supported.
4014a4f78defSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4015a4f78defSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4016a4f78defSmrg      # The diagnosis changed in icc 8.0:
4017a4f78defSmrg      #   icc: Command line remark: option '-MP' not supported
4018a4f78defSmrg      if (grep 'ignoring option' conftest.err ||
4019a4f78defSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4020a4f78defSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4021a4f78defSmrg        break
4022a4f78defSmrg      fi
4023a4f78defSmrg    fi
4024a4f78defSmrg  done
4025a4f78defSmrg
4026a4f78defSmrg  cd ..
4027a4f78defSmrg  rm -rf conftest.dir
4028a4f78defSmrgelse
4029a4f78defSmrg  am_cv_CC_dependencies_compiler_type=none
4030a4f78defSmrgfi
4031a4f78defSmrg
4032a4f78defSmrgfi
4033a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4034a4f78defSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4035a4f78defSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4036a4f78defSmrg
4037a4f78defSmrg if
4038a4f78defSmrg  test "x$enable_dependency_tracking" != xno \
4039a4f78defSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040a4f78defSmrg  am__fastdepCC_TRUE=
4041a4f78defSmrg  am__fastdepCC_FALSE='#'
4042a4f78defSmrgelse
4043a4f78defSmrg  am__fastdepCC_TRUE='#'
4044a4f78defSmrg  am__fastdepCC_FALSE=
4045a4f78defSmrgfi
4046a4f78defSmrg
4047a4f78defSmrg
4048a4f78defSmrg
4049a4f78defSmrgac_ext=c
4050a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
4051a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4054a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4055a4f78defSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
4056a4f78defSmrg# On Suns, sometimes $CPP names a directory.
4057a4f78defSmrgif test -n "$CPP" && test -d "$CPP"; then
4058a4f78defSmrg  CPP=
4059a4f78defSmrgfi
4060a4f78defSmrgif test -z "$CPP"; then
4061a4f78defSmrg  if ${ac_cv_prog_CPP+:} false; then :
4062a4f78defSmrg  $as_echo_n "(cached) " >&6
4063a4f78defSmrgelse
4064a4f78defSmrg      # Double quotes because CPP needs to be expanded
4065a4f78defSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4066a4f78defSmrg    do
4067a4f78defSmrg      ac_preproc_ok=false
4068a4f78defSmrgfor ac_c_preproc_warn_flag in '' yes
4069a4f78defSmrgdo
4070a4f78defSmrg  # Use a header file that comes with gcc, so configuring glibc
4071a4f78defSmrg  # with a fresh cross-compiler works.
4072a4f78defSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4073a4f78defSmrg  # <limits.h> exists even on freestanding compilers.
4074a4f78defSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4075a4f78defSmrg  # not just through cpp. "Syntax error" is here to catch this case.
4076a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077a4f78defSmrg/* end confdefs.h.  */
4078a4f78defSmrg#ifdef __STDC__
4079a4f78defSmrg# include <limits.h>
4080a4f78defSmrg#else
4081a4f78defSmrg# include <assert.h>
4082a4f78defSmrg#endif
4083a4f78defSmrg		     Syntax error
4084a4f78defSmrg_ACEOF
4085a4f78defSmrgif ac_fn_c_try_cpp "$LINENO"; then :
4086a4f78defSmrg
4087a4f78defSmrgelse
4088a4f78defSmrg  # Broken: fails on valid input.
4089a4f78defSmrgcontinue
4090a4f78defSmrgfi
4091a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
4092a4f78defSmrg
4093a4f78defSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
4094a4f78defSmrg  # can be detected and how.
4095a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096a4f78defSmrg/* end confdefs.h.  */
4097a4f78defSmrg#include <ac_nonexistent.h>
4098a4f78defSmrg_ACEOF
4099a4f78defSmrgif ac_fn_c_try_cpp "$LINENO"; then :
4100a4f78defSmrg  # Broken: success on invalid input.
4101a4f78defSmrgcontinue
4102a4f78defSmrgelse
4103a4f78defSmrg  # Passes both tests.
4104a4f78defSmrgac_preproc_ok=:
4105a4f78defSmrgbreak
4106a4f78defSmrgfi
4107a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
4108a4f78defSmrg
4109a4f78defSmrgdone
4110a4f78defSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111a4f78defSmrgrm -f conftest.i conftest.err conftest.$ac_ext
4112a4f78defSmrgif $ac_preproc_ok; then :
4113a4f78defSmrg  break
4114a4f78defSmrgfi
4115a4f78defSmrg
4116a4f78defSmrg    done
4117a4f78defSmrg    ac_cv_prog_CPP=$CPP
4118a4f78defSmrg
4119a4f78defSmrgfi
4120a4f78defSmrg  CPP=$ac_cv_prog_CPP
4121a4f78defSmrgelse
4122a4f78defSmrg  ac_cv_prog_CPP=$CPP
4123a4f78defSmrgfi
4124a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4125a4f78defSmrg$as_echo "$CPP" >&6; }
4126a4f78defSmrgac_preproc_ok=false
4127a4f78defSmrgfor ac_c_preproc_warn_flag in '' yes
4128a4f78defSmrgdo
4129a4f78defSmrg  # Use a header file that comes with gcc, so configuring glibc
4130a4f78defSmrg  # with a fresh cross-compiler works.
4131a4f78defSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132a4f78defSmrg  # <limits.h> exists even on freestanding compilers.
4133a4f78defSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
4134a4f78defSmrg  # not just through cpp. "Syntax error" is here to catch this case.
4135a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136a4f78defSmrg/* end confdefs.h.  */
4137a4f78defSmrg#ifdef __STDC__
4138a4f78defSmrg# include <limits.h>
4139a4f78defSmrg#else
4140a4f78defSmrg# include <assert.h>
4141a4f78defSmrg#endif
4142a4f78defSmrg		     Syntax error
4143a4f78defSmrg_ACEOF
4144a4f78defSmrgif ac_fn_c_try_cpp "$LINENO"; then :
4145a4f78defSmrg
4146a4f78defSmrgelse
4147a4f78defSmrg  # Broken: fails on valid input.
4148a4f78defSmrgcontinue
4149a4f78defSmrgfi
4150a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
4151a4f78defSmrg
4152a4f78defSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
4153a4f78defSmrg  # can be detected and how.
4154a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155a4f78defSmrg/* end confdefs.h.  */
4156a4f78defSmrg#include <ac_nonexistent.h>
4157a4f78defSmrg_ACEOF
4158a4f78defSmrgif ac_fn_c_try_cpp "$LINENO"; then :
4159a4f78defSmrg  # Broken: success on invalid input.
4160a4f78defSmrgcontinue
4161a4f78defSmrgelse
4162a4f78defSmrg  # Passes both tests.
4163a4f78defSmrgac_preproc_ok=:
4164a4f78defSmrgbreak
4165a4f78defSmrgfi
4166a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
4167a4f78defSmrg
4168a4f78defSmrgdone
4169a4f78defSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170a4f78defSmrgrm -f conftest.i conftest.err conftest.$ac_ext
4171a4f78defSmrgif $ac_preproc_ok; then :
4172a4f78defSmrg
4173a4f78defSmrgelse
4174a4f78defSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176a4f78defSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4177a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
4178a4f78defSmrgfi
4179a4f78defSmrg
4180a4f78defSmrgac_ext=c
4181a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
4182a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4185a4f78defSmrg
4186a4f78defSmrg
4187a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4188a4f78defSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4189a4f78defSmrgif ${ac_cv_path_GREP+:} false; then :
4190a4f78defSmrg  $as_echo_n "(cached) " >&6
4191a4f78defSmrgelse
4192a4f78defSmrg  if test -z "$GREP"; then
4193a4f78defSmrg  ac_path_GREP_found=false
4194a4f78defSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4195a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196a4f78defSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197a4f78defSmrgdo
4198a4f78defSmrg  IFS=$as_save_IFS
4199a4f78defSmrg  test -z "$as_dir" && as_dir=.
4200a4f78defSmrg    for ac_prog in grep ggrep; do
4201a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4202a4f78defSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4203a4f78defSmrg      as_fn_executable_p "$ac_path_GREP" || continue
4204a4f78defSmrg# Check for GNU ac_path_GREP and select it if it is found.
4205a4f78defSmrg  # Check for GNU $ac_path_GREP
4206a4f78defSmrgcase `"$ac_path_GREP" --version 2>&1` in
4207a4f78defSmrg*GNU*)
4208a4f78defSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4209a4f78defSmrg*)
4210a4f78defSmrg  ac_count=0
4211a4f78defSmrg  $as_echo_n 0123456789 >"conftest.in"
4212a4f78defSmrg  while :
4213a4f78defSmrg  do
4214a4f78defSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4215a4f78defSmrg    mv "conftest.tmp" "conftest.in"
4216a4f78defSmrg    cp "conftest.in" "conftest.nl"
4217a4f78defSmrg    $as_echo 'GREP' >> "conftest.nl"
4218a4f78defSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219a4f78defSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220a4f78defSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4221a4f78defSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4222a4f78defSmrg      # Best one so far, save it but keep looking for a better one
4223a4f78defSmrg      ac_cv_path_GREP="$ac_path_GREP"
4224a4f78defSmrg      ac_path_GREP_max=$ac_count
4225a4f78defSmrg    fi
4226a4f78defSmrg    # 10*(2^10) chars as input seems more than enough
4227a4f78defSmrg    test $ac_count -gt 10 && break
4228a4f78defSmrg  done
4229a4f78defSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230a4f78defSmrgesac
4231a4f78defSmrg
4232a4f78defSmrg      $ac_path_GREP_found && break 3
4233a4f78defSmrg    done
4234a4f78defSmrg  done
4235a4f78defSmrg  done
4236a4f78defSmrgIFS=$as_save_IFS
4237a4f78defSmrg  if test -z "$ac_cv_path_GREP"; then
4238a4f78defSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239a4f78defSmrg  fi
4240a4f78defSmrgelse
4241a4f78defSmrg  ac_cv_path_GREP=$GREP
4242a4f78defSmrgfi
4243a4f78defSmrg
4244a4f78defSmrgfi
4245a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4246a4f78defSmrg$as_echo "$ac_cv_path_GREP" >&6; }
4247a4f78defSmrg GREP="$ac_cv_path_GREP"
4248a4f78defSmrg
4249a4f78defSmrg
4250a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4251a4f78defSmrg$as_echo_n "checking for egrep... " >&6; }
4252a4f78defSmrgif ${ac_cv_path_EGREP+:} false; then :
4253a4f78defSmrg  $as_echo_n "(cached) " >&6
4254a4f78defSmrgelse
4255a4f78defSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4256a4f78defSmrg   then ac_cv_path_EGREP="$GREP -E"
4257a4f78defSmrg   else
4258a4f78defSmrg     if test -z "$EGREP"; then
4259a4f78defSmrg  ac_path_EGREP_found=false
4260a4f78defSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4261a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262a4f78defSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263a4f78defSmrgdo
4264a4f78defSmrg  IFS=$as_save_IFS
4265a4f78defSmrg  test -z "$as_dir" && as_dir=.
4266a4f78defSmrg    for ac_prog in egrep; do
4267a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4268a4f78defSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4269a4f78defSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
4270a4f78defSmrg# Check for GNU ac_path_EGREP and select it if it is found.
4271a4f78defSmrg  # Check for GNU $ac_path_EGREP
4272a4f78defSmrgcase `"$ac_path_EGREP" --version 2>&1` in
4273a4f78defSmrg*GNU*)
4274a4f78defSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4275a4f78defSmrg*)
4276a4f78defSmrg  ac_count=0
4277a4f78defSmrg  $as_echo_n 0123456789 >"conftest.in"
4278a4f78defSmrg  while :
4279a4f78defSmrg  do
4280a4f78defSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4281a4f78defSmrg    mv "conftest.tmp" "conftest.in"
4282a4f78defSmrg    cp "conftest.in" "conftest.nl"
4283a4f78defSmrg    $as_echo 'EGREP' >> "conftest.nl"
4284a4f78defSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285a4f78defSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286a4f78defSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4287a4f78defSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4288a4f78defSmrg      # Best one so far, save it but keep looking for a better one
4289a4f78defSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
4290a4f78defSmrg      ac_path_EGREP_max=$ac_count
4291a4f78defSmrg    fi
4292a4f78defSmrg    # 10*(2^10) chars as input seems more than enough
4293a4f78defSmrg    test $ac_count -gt 10 && break
4294a4f78defSmrg  done
4295a4f78defSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296a4f78defSmrgesac
4297a4f78defSmrg
4298a4f78defSmrg      $ac_path_EGREP_found && break 3
4299a4f78defSmrg    done
4300a4f78defSmrg  done
4301a4f78defSmrg  done
4302a4f78defSmrgIFS=$as_save_IFS
4303a4f78defSmrg  if test -z "$ac_cv_path_EGREP"; then
4304a4f78defSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305a4f78defSmrg  fi
4306a4f78defSmrgelse
4307a4f78defSmrg  ac_cv_path_EGREP=$EGREP
4308a4f78defSmrgfi
4309a4f78defSmrg
4310a4f78defSmrg   fi
4311a4f78defSmrgfi
4312a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4313a4f78defSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
4314a4f78defSmrg EGREP="$ac_cv_path_EGREP"
4315a4f78defSmrg
4316a4f78defSmrg
4317a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4318a4f78defSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
4319a4f78defSmrgif ${ac_cv_header_stdc+:} false; then :
4320a4f78defSmrg  $as_echo_n "(cached) " >&6
4321a4f78defSmrgelse
4322a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323a4f78defSmrg/* end confdefs.h.  */
4324a4f78defSmrg#include <stdlib.h>
4325a4f78defSmrg#include <stdarg.h>
4326a4f78defSmrg#include <string.h>
4327a4f78defSmrg#include <float.h>
4328a4f78defSmrg
4329a4f78defSmrgint
4330a4f78defSmrgmain ()
4331a4f78defSmrg{
4332a4f78defSmrg
4333a4f78defSmrg  ;
4334a4f78defSmrg  return 0;
4335a4f78defSmrg}
4336a4f78defSmrg_ACEOF
4337a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4338a4f78defSmrg  ac_cv_header_stdc=yes
4339a4f78defSmrgelse
4340a4f78defSmrg  ac_cv_header_stdc=no
4341a4f78defSmrgfi
4342a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343a4f78defSmrg
4344a4f78defSmrgif test $ac_cv_header_stdc = yes; then
4345a4f78defSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4346a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347a4f78defSmrg/* end confdefs.h.  */
4348a4f78defSmrg#include <string.h>
4349a4f78defSmrg
4350a4f78defSmrg_ACEOF
4351a4f78defSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352a4f78defSmrg  $EGREP "memchr" >/dev/null 2>&1; then :
4353a4f78defSmrg
4354a4f78defSmrgelse
4355a4f78defSmrg  ac_cv_header_stdc=no
4356a4f78defSmrgfi
4357a4f78defSmrgrm -f conftest*
4358a4f78defSmrg
4359a4f78defSmrgfi
4360a4f78defSmrg
4361a4f78defSmrgif test $ac_cv_header_stdc = yes; then
4362a4f78defSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364a4f78defSmrg/* end confdefs.h.  */
4365a4f78defSmrg#include <stdlib.h>
4366a4f78defSmrg
4367a4f78defSmrg_ACEOF
4368a4f78defSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369a4f78defSmrg  $EGREP "free" >/dev/null 2>&1; then :
4370a4f78defSmrg
4371a4f78defSmrgelse
4372a4f78defSmrg  ac_cv_header_stdc=no
4373a4f78defSmrgfi
4374a4f78defSmrgrm -f conftest*
4375a4f78defSmrg
4376a4f78defSmrgfi
4377a4f78defSmrg
4378a4f78defSmrgif test $ac_cv_header_stdc = yes; then
4379a4f78defSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4380a4f78defSmrg  if test "$cross_compiling" = yes; then :
4381a4f78defSmrg  :
4382a4f78defSmrgelse
4383a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384a4f78defSmrg/* end confdefs.h.  */
4385a4f78defSmrg#include <ctype.h>
4386a4f78defSmrg#include <stdlib.h>
4387a4f78defSmrg#if ((' ' & 0x0FF) == 0x020)
4388a4f78defSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389a4f78defSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4390a4f78defSmrg#else
4391a4f78defSmrg# define ISLOWER(c) \
4392a4f78defSmrg		   (('a' <= (c) && (c) <= 'i') \
4393a4f78defSmrg		     || ('j' <= (c) && (c) <= 'r') \
4394a4f78defSmrg		     || ('s' <= (c) && (c) <= 'z'))
4395a4f78defSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4396a4f78defSmrg#endif
4397a4f78defSmrg
4398a4f78defSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4399a4f78defSmrgint
4400a4f78defSmrgmain ()
4401a4f78defSmrg{
4402a4f78defSmrg  int i;
4403a4f78defSmrg  for (i = 0; i < 256; i++)
4404a4f78defSmrg    if (XOR (islower (i), ISLOWER (i))
4405a4f78defSmrg	|| toupper (i) != TOUPPER (i))
4406a4f78defSmrg      return 2;
4407a4f78defSmrg  return 0;
4408a4f78defSmrg}
4409a4f78defSmrg_ACEOF
4410a4f78defSmrgif ac_fn_c_try_run "$LINENO"; then :
4411a4f78defSmrg
4412a4f78defSmrgelse
4413a4f78defSmrg  ac_cv_header_stdc=no
4414a4f78defSmrgfi
4415a4f78defSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4416a4f78defSmrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
4417a4f78defSmrgfi
4418a4f78defSmrg
4419a4f78defSmrgfi
4420a4f78defSmrgfi
4421a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4422a4f78defSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4423a4f78defSmrgif test $ac_cv_header_stdc = yes; then
4424a4f78defSmrg
4425a4f78defSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4426a4f78defSmrg
4427a4f78defSmrgfi
4428a4f78defSmrg
4429a4f78defSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430a4f78defSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431a4f78defSmrg		  inttypes.h stdint.h unistd.h
4432a4f78defSmrgdo :
4433a4f78defSmrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434a4f78defSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4435a4f78defSmrg"
4436a4f78defSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4437a4f78defSmrg  cat >>confdefs.h <<_ACEOF
4438a4f78defSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4439a4f78defSmrg_ACEOF
4440a4f78defSmrg
4441a4f78defSmrgfi
4442a4f78defSmrg
4443a4f78defSmrgdone
4444a4f78defSmrg
4445a4f78defSmrg
4446a4f78defSmrg
4447a4f78defSmrg  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4448a4f78defSmrgif test "x$ac_cv_header_minix_config_h" = xyes; then :
4449a4f78defSmrg  MINIX=yes
4450a4f78defSmrgelse
4451a4f78defSmrg  MINIX=
4452a4f78defSmrgfi
4453a4f78defSmrg
4454a4f78defSmrg
4455a4f78defSmrg  if test "$MINIX" = yes; then
4456a4f78defSmrg
4457a4f78defSmrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4458a4f78defSmrg
4459a4f78defSmrg
4460a4f78defSmrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4461a4f78defSmrg
4462a4f78defSmrg
4463a4f78defSmrg$as_echo "#define _MINIX 1" >>confdefs.h
4464a4f78defSmrg
4465a4f78defSmrg  fi
4466a4f78defSmrg
4467a4f78defSmrg
4468a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4469a4f78defSmrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4470a4f78defSmrgif ${ac_cv_safe_to_define___extensions__+:} false; then :
4471a4f78defSmrg  $as_echo_n "(cached) " >&6
4472a4f78defSmrgelse
4473a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474a4f78defSmrg/* end confdefs.h.  */
4475a4f78defSmrg
4476a4f78defSmrg#         define __EXTENSIONS__ 1
4477a4f78defSmrg          $ac_includes_default
4478a4f78defSmrgint
4479a4f78defSmrgmain ()
4480a4f78defSmrg{
4481a4f78defSmrg
4482a4f78defSmrg  ;
4483a4f78defSmrg  return 0;
4484a4f78defSmrg}
4485a4f78defSmrg_ACEOF
4486a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4487a4f78defSmrg  ac_cv_safe_to_define___extensions__=yes
4488a4f78defSmrgelse
4489a4f78defSmrg  ac_cv_safe_to_define___extensions__=no
4490a4f78defSmrgfi
4491a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492a4f78defSmrgfi
4493a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4494a4f78defSmrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4495a4f78defSmrg  test $ac_cv_safe_to_define___extensions__ = yes &&
4496a4f78defSmrg    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4497a4f78defSmrg
4498a4f78defSmrg  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4499a4f78defSmrg
4500a4f78defSmrg  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4501a4f78defSmrg
4502a4f78defSmrg  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4503a4f78defSmrg
4504a4f78defSmrg  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4505a4f78defSmrg
4506a4f78defSmrg
4507a4f78defSmrgfor ac_func in __secure_getenv secure_getenv
4508a4f78defSmrgdo :
4509a4f78defSmrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510a4f78defSmrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4511a4f78defSmrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4512a4f78defSmrg  cat >>confdefs.h <<_ACEOF
4513a4f78defSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4514a4f78defSmrg_ACEOF
4515a4f78defSmrg
4516a4f78defSmrgfi
4517a4f78defSmrgdone
4518a4f78defSmrg
4519a4f78defSmrg
4520a4f78defSmrg# Disable static libraries by default.  Use --enable-static if you really want
4521a4f78defSmrg# them.
4522a4f78defSmrg# Check whether --enable-static was given.
4523a4f78defSmrgif test "${enable_static+set}" = set; then :
4524a4f78defSmrg  enableval=$enable_static; p=${PACKAGE-default}
4525a4f78defSmrg    case $enableval in
4526a4f78defSmrg    yes) enable_static=yes ;;
4527a4f78defSmrg    no) enable_static=no ;;
4528a4f78defSmrg    *)
4529a4f78defSmrg     enable_static=no
4530a4f78defSmrg      # Look at the argument we got.  We use all the common list separators.
4531a4f78defSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4532a4f78defSmrg      for pkg in $enableval; do
4533a4f78defSmrg	IFS=$lt_save_ifs
4534a4f78defSmrg	if test "X$pkg" = "X$p"; then
4535a4f78defSmrg	  enable_static=yes
4536a4f78defSmrg	fi
4537a4f78defSmrg      done
4538a4f78defSmrg      IFS=$lt_save_ifs
4539a4f78defSmrg      ;;
4540a4f78defSmrg    esac
4541a4f78defSmrgelse
4542a4f78defSmrg  enable_static=no
4543a4f78defSmrgfi
4544a4f78defSmrg
4545a4f78defSmrg
4546a4f78defSmrg
4547a4f78defSmrg
4548a4f78defSmrg
4549a4f78defSmrg
4550a4f78defSmrg
4551a4f78defSmrg
4552a4f78defSmrg
4553a4f78defSmrg
4554a4f78defSmrg# Check for programs.
4555a4f78defSmrgac_ext=c
4556a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
4557a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4560a4f78defSmrgif test -n "$ac_tool_prefix"; then
4561a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4562a4f78defSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
4563a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4565a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
4566a4f78defSmrg  $as_echo_n "(cached) " >&6
4567a4f78defSmrgelse
4568a4f78defSmrg  if test -n "$CC"; then
4569a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4570a4f78defSmrgelse
4571a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572a4f78defSmrgfor as_dir in $PATH
4573a4f78defSmrgdo
4574a4f78defSmrg  IFS=$as_save_IFS
4575a4f78defSmrg  test -z "$as_dir" && as_dir=.
4576a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4577a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578a4f78defSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4579a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580a4f78defSmrg    break 2
4581a4f78defSmrg  fi
4582a4f78defSmrgdone
4583a4f78defSmrg  done
4584a4f78defSmrgIFS=$as_save_IFS
4585a4f78defSmrg
4586a4f78defSmrgfi
4587a4f78defSmrgfi
4588a4f78defSmrgCC=$ac_cv_prog_CC
4589a4f78defSmrgif test -n "$CC"; then
4590a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591a4f78defSmrg$as_echo "$CC" >&6; }
4592a4f78defSmrgelse
4593a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594a4f78defSmrg$as_echo "no" >&6; }
4595a4f78defSmrgfi
4596a4f78defSmrg
4597a4f78defSmrg
4598a4f78defSmrgfi
4599a4f78defSmrgif test -z "$ac_cv_prog_CC"; then
4600a4f78defSmrg  ac_ct_CC=$CC
4601a4f78defSmrg  # Extract the first word of "gcc", so it can be a program name with args.
4602a4f78defSmrgset dummy gcc; ac_word=$2
4603a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4605a4f78defSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
4606a4f78defSmrg  $as_echo_n "(cached) " >&6
4607a4f78defSmrgelse
4608a4f78defSmrg  if test -n "$ac_ct_CC"; then
4609a4f78defSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610a4f78defSmrgelse
4611a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612a4f78defSmrgfor as_dir in $PATH
4613a4f78defSmrgdo
4614a4f78defSmrg  IFS=$as_save_IFS
4615a4f78defSmrg  test -z "$as_dir" && as_dir=.
4616a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4617a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618a4f78defSmrg    ac_cv_prog_ac_ct_CC="gcc"
4619a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620a4f78defSmrg    break 2
4621a4f78defSmrg  fi
4622a4f78defSmrgdone
4623a4f78defSmrg  done
4624a4f78defSmrgIFS=$as_save_IFS
4625a4f78defSmrg
4626a4f78defSmrgfi
4627a4f78defSmrgfi
4628a4f78defSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4629a4f78defSmrgif test -n "$ac_ct_CC"; then
4630a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4631a4f78defSmrg$as_echo "$ac_ct_CC" >&6; }
4632a4f78defSmrgelse
4633a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634a4f78defSmrg$as_echo "no" >&6; }
4635a4f78defSmrgfi
4636a4f78defSmrg
4637a4f78defSmrg  if test "x$ac_ct_CC" = x; then
4638a4f78defSmrg    CC=""
4639a4f78defSmrg  else
4640a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
4641a4f78defSmrgyes:)
4642a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644a4f78defSmrgac_tool_warned=yes ;;
4645a4f78defSmrgesac
4646a4f78defSmrg    CC=$ac_ct_CC
4647a4f78defSmrg  fi
4648a4f78defSmrgelse
4649a4f78defSmrg  CC="$ac_cv_prog_CC"
4650a4f78defSmrgfi
4651a4f78defSmrg
4652a4f78defSmrgif test -z "$CC"; then
4653a4f78defSmrg          if test -n "$ac_tool_prefix"; then
4654a4f78defSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655a4f78defSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
4656a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4658a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
4659a4f78defSmrg  $as_echo_n "(cached) " >&6
4660a4f78defSmrgelse
4661a4f78defSmrg  if test -n "$CC"; then
4662a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4663a4f78defSmrgelse
4664a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665a4f78defSmrgfor as_dir in $PATH
4666a4f78defSmrgdo
4667a4f78defSmrg  IFS=$as_save_IFS
4668a4f78defSmrg  test -z "$as_dir" && as_dir=.
4669a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4670a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671a4f78defSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
4672a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673a4f78defSmrg    break 2
4674a4f78defSmrg  fi
4675a4f78defSmrgdone
4676a4f78defSmrg  done
4677a4f78defSmrgIFS=$as_save_IFS
4678a4f78defSmrg
4679a4f78defSmrgfi
4680a4f78defSmrgfi
4681a4f78defSmrgCC=$ac_cv_prog_CC
4682a4f78defSmrgif test -n "$CC"; then
4683a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4684a4f78defSmrg$as_echo "$CC" >&6; }
4685a4f78defSmrgelse
4686a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687a4f78defSmrg$as_echo "no" >&6; }
4688a4f78defSmrgfi
4689a4f78defSmrg
4690a4f78defSmrg
4691a4f78defSmrg  fi
4692a4f78defSmrgfi
4693a4f78defSmrgif test -z "$CC"; then
4694a4f78defSmrg  # Extract the first word of "cc", so it can be a program name with args.
4695a4f78defSmrgset dummy cc; ac_word=$2
4696a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4698a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
4699a4f78defSmrg  $as_echo_n "(cached) " >&6
4700a4f78defSmrgelse
4701a4f78defSmrg  if test -n "$CC"; then
4702a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4703a4f78defSmrgelse
4704a4f78defSmrg  ac_prog_rejected=no
4705a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706a4f78defSmrgfor as_dir in $PATH
4707a4f78defSmrgdo
4708a4f78defSmrg  IFS=$as_save_IFS
4709a4f78defSmrg  test -z "$as_dir" && as_dir=.
4710a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4711a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712a4f78defSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713a4f78defSmrg       ac_prog_rejected=yes
4714a4f78defSmrg       continue
4715a4f78defSmrg     fi
4716a4f78defSmrg    ac_cv_prog_CC="cc"
4717a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718a4f78defSmrg    break 2
4719a4f78defSmrg  fi
4720a4f78defSmrgdone
4721a4f78defSmrg  done
4722a4f78defSmrgIFS=$as_save_IFS
4723a4f78defSmrg
4724a4f78defSmrgif test $ac_prog_rejected = yes; then
4725a4f78defSmrg  # We found a bogon in the path, so make sure we never use it.
4726a4f78defSmrg  set dummy $ac_cv_prog_CC
4727a4f78defSmrg  shift
4728a4f78defSmrg  if test $# != 0; then
4729a4f78defSmrg    # We chose a different compiler from the bogus one.
4730a4f78defSmrg    # However, it has the same basename, so the bogon will be chosen
4731a4f78defSmrg    # first if we set CC to just the basename; use the full file name.
4732a4f78defSmrg    shift
4733a4f78defSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734a4f78defSmrg  fi
4735a4f78defSmrgfi
4736a4f78defSmrgfi
4737a4f78defSmrgfi
4738a4f78defSmrgCC=$ac_cv_prog_CC
4739a4f78defSmrgif test -n "$CC"; then
4740a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4741a4f78defSmrg$as_echo "$CC" >&6; }
4742a4f78defSmrgelse
4743a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744a4f78defSmrg$as_echo "no" >&6; }
4745a4f78defSmrgfi
4746a4f78defSmrg
4747a4f78defSmrg
4748a4f78defSmrgfi
4749a4f78defSmrgif test -z "$CC"; then
4750a4f78defSmrg  if test -n "$ac_tool_prefix"; then
4751a4f78defSmrg  for ac_prog in cl.exe
4752a4f78defSmrg  do
4753a4f78defSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4754a4f78defSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4755a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4757a4f78defSmrgif ${ac_cv_prog_CC+:} false; then :
4758a4f78defSmrg  $as_echo_n "(cached) " >&6
4759a4f78defSmrgelse
4760a4f78defSmrg  if test -n "$CC"; then
4761a4f78defSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4762a4f78defSmrgelse
4763a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764a4f78defSmrgfor as_dir in $PATH
4765a4f78defSmrgdo
4766a4f78defSmrg  IFS=$as_save_IFS
4767a4f78defSmrg  test -z "$as_dir" && as_dir=.
4768a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4769a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770a4f78defSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4771a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772a4f78defSmrg    break 2
4773a4f78defSmrg  fi
4774a4f78defSmrgdone
4775a4f78defSmrg  done
4776a4f78defSmrgIFS=$as_save_IFS
4777a4f78defSmrg
4778a4f78defSmrgfi
4779a4f78defSmrgfi
4780a4f78defSmrgCC=$ac_cv_prog_CC
4781a4f78defSmrgif test -n "$CC"; then
4782a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783a4f78defSmrg$as_echo "$CC" >&6; }
4784a4f78defSmrgelse
4785a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786a4f78defSmrg$as_echo "no" >&6; }
4787a4f78defSmrgfi
4788a4f78defSmrg
4789a4f78defSmrg
4790a4f78defSmrg    test -n "$CC" && break
4791a4f78defSmrg  done
4792a4f78defSmrgfi
4793a4f78defSmrgif test -z "$CC"; then
4794a4f78defSmrg  ac_ct_CC=$CC
4795a4f78defSmrg  for ac_prog in cl.exe
4796a4f78defSmrgdo
4797a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4798a4f78defSmrgset dummy $ac_prog; ac_word=$2
4799a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
4801a4f78defSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
4802a4f78defSmrg  $as_echo_n "(cached) " >&6
4803a4f78defSmrgelse
4804a4f78defSmrg  if test -n "$ac_ct_CC"; then
4805a4f78defSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4806a4f78defSmrgelse
4807a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808a4f78defSmrgfor as_dir in $PATH
4809a4f78defSmrgdo
4810a4f78defSmrg  IFS=$as_save_IFS
4811a4f78defSmrg  test -z "$as_dir" && as_dir=.
4812a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4813a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814a4f78defSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
4815a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816a4f78defSmrg    break 2
4817a4f78defSmrg  fi
4818a4f78defSmrgdone
4819a4f78defSmrg  done
4820a4f78defSmrgIFS=$as_save_IFS
4821a4f78defSmrg
4822a4f78defSmrgfi
4823a4f78defSmrgfi
4824a4f78defSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
4825a4f78defSmrgif test -n "$ac_ct_CC"; then
4826a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4827a4f78defSmrg$as_echo "$ac_ct_CC" >&6; }
4828a4f78defSmrgelse
4829a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830a4f78defSmrg$as_echo "no" >&6; }
4831a4f78defSmrgfi
4832a4f78defSmrg
4833a4f78defSmrg
4834a4f78defSmrg  test -n "$ac_ct_CC" && break
4835a4f78defSmrgdone
4836a4f78defSmrg
4837a4f78defSmrg  if test "x$ac_ct_CC" = x; then
4838a4f78defSmrg    CC=""
4839a4f78defSmrg  else
4840a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
4841a4f78defSmrgyes:)
4842a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844a4f78defSmrgac_tool_warned=yes ;;
4845a4f78defSmrgesac
4846a4f78defSmrg    CC=$ac_ct_CC
4847a4f78defSmrg  fi
4848a4f78defSmrgfi
4849a4f78defSmrg
4850a4f78defSmrgfi
4851a4f78defSmrg
4852a4f78defSmrg
4853a4f78defSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855a4f78defSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
4856a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
4857a4f78defSmrg
4858a4f78defSmrg# Provide some information about the compiler.
4859a4f78defSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4860a4f78defSmrgset X $ac_compile
4861a4f78defSmrgac_compiler=$2
4862a4f78defSmrgfor ac_option in --version -v -V -qversion; do
4863a4f78defSmrg  { { ac_try="$ac_compiler $ac_option >&5"
4864a4f78defSmrgcase "(($ac_try" in
4865a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866a4f78defSmrg  *) ac_try_echo=$ac_try;;
4867a4f78defSmrgesac
4868a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4869a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
4870a4f78defSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4871a4f78defSmrg  ac_status=$?
4872a4f78defSmrg  if test -s conftest.err; then
4873a4f78defSmrg    sed '10a\
4874a4f78defSmrg... rest of stderr output deleted ...
4875a4f78defSmrg         10q' conftest.err >conftest.er1
4876a4f78defSmrg    cat conftest.er1 >&5
4877a4f78defSmrg  fi
4878a4f78defSmrg  rm -f conftest.er1 conftest.err
4879a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4880a4f78defSmrg  test $ac_status = 0; }
4881a4f78defSmrgdone
4882a4f78defSmrg
4883a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4884a4f78defSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4885a4f78defSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
4886a4f78defSmrg  $as_echo_n "(cached) " >&6
4887a4f78defSmrgelse
4888a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889a4f78defSmrg/* end confdefs.h.  */
4890a4f78defSmrg
4891a4f78defSmrgint
4892a4f78defSmrgmain ()
4893a4f78defSmrg{
4894a4f78defSmrg#ifndef __GNUC__
4895a4f78defSmrg       choke me
4896a4f78defSmrg#endif
4897a4f78defSmrg
4898a4f78defSmrg  ;
4899a4f78defSmrg  return 0;
4900a4f78defSmrg}
4901a4f78defSmrg_ACEOF
4902a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4903a4f78defSmrg  ac_compiler_gnu=yes
4904a4f78defSmrgelse
4905a4f78defSmrg  ac_compiler_gnu=no
4906a4f78defSmrgfi
4907a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908a4f78defSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
4909a4f78defSmrg
4910a4f78defSmrgfi
4911a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4912a4f78defSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4913a4f78defSmrgif test $ac_compiler_gnu = yes; then
4914a4f78defSmrg  GCC=yes
4915a4f78defSmrgelse
4916a4f78defSmrg  GCC=
4917a4f78defSmrgfi
4918a4f78defSmrgac_test_CFLAGS=${CFLAGS+set}
4919a4f78defSmrgac_save_CFLAGS=$CFLAGS
4920a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4921a4f78defSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
4922a4f78defSmrgif ${ac_cv_prog_cc_g+:} false; then :
4923a4f78defSmrg  $as_echo_n "(cached) " >&6
4924a4f78defSmrgelse
4925a4f78defSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
4926a4f78defSmrg   ac_c_werror_flag=yes
4927a4f78defSmrg   ac_cv_prog_cc_g=no
4928a4f78defSmrg   CFLAGS="-g"
4929a4f78defSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930a4f78defSmrg/* end confdefs.h.  */
4931a4f78defSmrg
4932a4f78defSmrgint
4933a4f78defSmrgmain ()
4934a4f78defSmrg{
4935a4f78defSmrg
4936a4f78defSmrg  ;
4937a4f78defSmrg  return 0;
4938a4f78defSmrg}
4939a4f78defSmrg_ACEOF
4940a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4941a4f78defSmrg  ac_cv_prog_cc_g=yes
4942a4f78defSmrgelse
4943a4f78defSmrg  CFLAGS=""
4944a4f78defSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945a4f78defSmrg/* end confdefs.h.  */
4946a4f78defSmrg
4947a4f78defSmrgint
4948a4f78defSmrgmain ()
4949a4f78defSmrg{
4950a4f78defSmrg
4951a4f78defSmrg  ;
4952a4f78defSmrg  return 0;
4953a4f78defSmrg}
4954a4f78defSmrg_ACEOF
4955a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4956a4f78defSmrg
4957a4f78defSmrgelse
4958a4f78defSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
4959a4f78defSmrg	 CFLAGS="-g"
4960a4f78defSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961a4f78defSmrg/* end confdefs.h.  */
4962a4f78defSmrg
4963a4f78defSmrgint
4964a4f78defSmrgmain ()
4965a4f78defSmrg{
4966a4f78defSmrg
4967a4f78defSmrg  ;
4968a4f78defSmrg  return 0;
4969a4f78defSmrg}
4970a4f78defSmrg_ACEOF
4971a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
4972a4f78defSmrg  ac_cv_prog_cc_g=yes
4973a4f78defSmrgfi
4974a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975a4f78defSmrgfi
4976a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977a4f78defSmrgfi
4978a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979a4f78defSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
4980a4f78defSmrgfi
4981a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4982a4f78defSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
4983a4f78defSmrgif test "$ac_test_CFLAGS" = set; then
4984a4f78defSmrg  CFLAGS=$ac_save_CFLAGS
4985a4f78defSmrgelif test $ac_cv_prog_cc_g = yes; then
4986a4f78defSmrg  if test "$GCC" = yes; then
4987a4f78defSmrg    CFLAGS="-g -O2"
4988a4f78defSmrg  else
4989a4f78defSmrg    CFLAGS="-g"
4990a4f78defSmrg  fi
4991a4f78defSmrgelse
4992a4f78defSmrg  if test "$GCC" = yes; then
4993a4f78defSmrg    CFLAGS="-O2"
4994a4f78defSmrg  else
4995a4f78defSmrg    CFLAGS=
4996a4f78defSmrg  fi
4997a4f78defSmrgfi
4998a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4999a4f78defSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5000a4f78defSmrgif ${ac_cv_prog_cc_c89+:} false; then :
5001a4f78defSmrg  $as_echo_n "(cached) " >&6
5002a4f78defSmrgelse
5003a4f78defSmrg  ac_cv_prog_cc_c89=no
5004a4f78defSmrgac_save_CC=$CC
5005a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006a4f78defSmrg/* end confdefs.h.  */
5007a4f78defSmrg#include <stdarg.h>
5008a4f78defSmrg#include <stdio.h>
5009a4f78defSmrgstruct stat;
5010a4f78defSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5011a4f78defSmrgstruct buf { int x; };
5012a4f78defSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
5013a4f78defSmrgstatic char *e (p, i)
5014a4f78defSmrg     char **p;
5015a4f78defSmrg     int i;
5016a4f78defSmrg{
5017a4f78defSmrg  return p[i];
5018a4f78defSmrg}
5019a4f78defSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
5020a4f78defSmrg{
5021a4f78defSmrg  char *s;
5022a4f78defSmrg  va_list v;
5023a4f78defSmrg  va_start (v,p);
5024a4f78defSmrg  s = g (p, va_arg (v,int));
5025a4f78defSmrg  va_end (v);
5026a4f78defSmrg  return s;
5027a4f78defSmrg}
5028a4f78defSmrg
5029a4f78defSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5030a4f78defSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
5031a4f78defSmrg   These don't provoke an error unfortunately, instead are silently treated
5032a4f78defSmrg   as 'x'.  The following induces an error, until -std is added to get
5033a4f78defSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5034a4f78defSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
5035a4f78defSmrg   that's true only with -std.  */
5036a4f78defSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
5037a4f78defSmrg
5038a4f78defSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5039a4f78defSmrg   inside strings and character constants.  */
5040a4f78defSmrg#define FOO(x) 'x'
5041a4f78defSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5042a4f78defSmrg
5043a4f78defSmrgint test (int i, double x);
5044a4f78defSmrgstruct s1 {int (*f) (int a);};
5045a4f78defSmrgstruct s2 {int (*f) (double a);};
5046a4f78defSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5047a4f78defSmrgint argc;
5048a4f78defSmrgchar **argv;
5049a4f78defSmrgint
5050a4f78defSmrgmain ()
5051a4f78defSmrg{
5052a4f78defSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5053a4f78defSmrg  ;
5054a4f78defSmrg  return 0;
5055a4f78defSmrg}
5056a4f78defSmrg_ACEOF
5057a4f78defSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5058a4f78defSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5059a4f78defSmrgdo
5060a4f78defSmrg  CC="$ac_save_CC $ac_arg"
5061a4f78defSmrg  if ac_fn_c_try_compile "$LINENO"; then :
5062a4f78defSmrg  ac_cv_prog_cc_c89=$ac_arg
5063a4f78defSmrgfi
5064a4f78defSmrgrm -f core conftest.err conftest.$ac_objext
5065a4f78defSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
5066a4f78defSmrgdone
5067a4f78defSmrgrm -f conftest.$ac_ext
5068a4f78defSmrgCC=$ac_save_CC
5069a4f78defSmrg
5070a4f78defSmrgfi
5071a4f78defSmrg# AC_CACHE_VAL
5072a4f78defSmrgcase "x$ac_cv_prog_cc_c89" in
5073a4f78defSmrg  x)
5074a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5075a4f78defSmrg$as_echo "none needed" >&6; } ;;
5076a4f78defSmrg  xno)
5077a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5078a4f78defSmrg$as_echo "unsupported" >&6; } ;;
5079a4f78defSmrg  *)
5080a4f78defSmrg    CC="$CC $ac_cv_prog_cc_c89"
5081a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5082a4f78defSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5083a4f78defSmrgesac
5084a4f78defSmrgif test "x$ac_cv_prog_cc_c89" != xno; then :
5085a4f78defSmrg
5086a4f78defSmrgfi
5087a4f78defSmrg
5088a4f78defSmrgac_ext=c
5089a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
5090a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5093a4f78defSmrg
5094a4f78defSmrgac_ext=c
5095a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
5096a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5099a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5100a4f78defSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5101a4f78defSmrgif ${am_cv_prog_cc_c_o+:} false; then :
5102a4f78defSmrg  $as_echo_n "(cached) " >&6
5103a4f78defSmrgelse
5104a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105a4f78defSmrg/* end confdefs.h.  */
5106a4f78defSmrg
5107a4f78defSmrgint
5108a4f78defSmrgmain ()
5109a4f78defSmrg{
5110a4f78defSmrg
5111a4f78defSmrg  ;
5112a4f78defSmrg  return 0;
5113a4f78defSmrg}
5114a4f78defSmrg_ACEOF
5115a4f78defSmrg  # Make sure it works both with $CC and with simple cc.
5116a4f78defSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
5117a4f78defSmrg  # compilers refuse to overwrite an existing .o file with -o,
5118a4f78defSmrg  # though they will create one.
5119a4f78defSmrg  am_cv_prog_cc_c_o=yes
5120a4f78defSmrg  for am_i in 1 2; do
5121a4f78defSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5122a4f78defSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5123a4f78defSmrg   ac_status=$?
5124a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125a4f78defSmrg   (exit $ac_status); } \
5126a4f78defSmrg         && test -f conftest2.$ac_objext; then
5127a4f78defSmrg      : OK
5128a4f78defSmrg    else
5129a4f78defSmrg      am_cv_prog_cc_c_o=no
5130a4f78defSmrg      break
5131a4f78defSmrg    fi
5132a4f78defSmrg  done
5133a4f78defSmrg  rm -f core conftest*
5134a4f78defSmrg  unset am_i
5135a4f78defSmrgfi
5136a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5137a4f78defSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
5138a4f78defSmrgif test "$am_cv_prog_cc_c_o" != yes; then
5139a4f78defSmrg   # Losing compiler, so override with the script.
5140a4f78defSmrg   # FIXME: It is wrong to rewrite CC.
5141a4f78defSmrg   # But if we don't then we get into trouble of one sort or another.
5142a4f78defSmrg   # A longer-term fix would be to have automake use am__CC in this case,
5143a4f78defSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5144a4f78defSmrg   CC="$am_aux_dir/compile $CC"
5145a4f78defSmrgfi
5146a4f78defSmrgac_ext=c
5147a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
5148a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5151a4f78defSmrg
5152a4f78defSmrg
5153a4f78defSmrgdepcc="$CC"   am_compiler_list=
5154a4f78defSmrg
5155a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5156a4f78defSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
5157a4f78defSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
5158a4f78defSmrg  $as_echo_n "(cached) " >&6
5159a4f78defSmrgelse
5160a4f78defSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161a4f78defSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
5162a4f78defSmrg  # making bogus files that we don't know about and never remove.  For
5163a4f78defSmrg  # instance it was reported that on HP-UX the gcc test will end up
5164a4f78defSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
5165a4f78defSmrg  # in D".
5166a4f78defSmrg  rm -rf conftest.dir
5167a4f78defSmrg  mkdir conftest.dir
5168a4f78defSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
5169a4f78defSmrg  # using a relative directory.
5170a4f78defSmrg  cp "$am_depcomp" conftest.dir
5171a4f78defSmrg  cd conftest.dir
5172a4f78defSmrg  # We will build objects and dependencies in a subdirectory because
5173a4f78defSmrg  # it helps to detect inapplicable dependency modes.  For instance
5174a4f78defSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
5175a4f78defSmrg  # side effect of compilation, but ICC will put the dependencies in
5176a4f78defSmrg  # the current directory while Tru64 will put them in the object
5177a4f78defSmrg  # directory.
5178a4f78defSmrg  mkdir sub
5179a4f78defSmrg
5180a4f78defSmrg  am_cv_CC_dependencies_compiler_type=none
5181a4f78defSmrg  if test "$am_compiler_list" = ""; then
5182a4f78defSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183a4f78defSmrg  fi
5184a4f78defSmrg  am__universal=false
5185a4f78defSmrg  case " $depcc " in #(
5186a4f78defSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5187a4f78defSmrg     esac
5188a4f78defSmrg
5189a4f78defSmrg  for depmode in $am_compiler_list; do
5190a4f78defSmrg    # Setup a source with many dependencies, because some compilers
5191a4f78defSmrg    # like to wrap large dependency lists on column 80 (with \), and
5192a4f78defSmrg    # we should not choose a depcomp mode which is confused by this.
5193a4f78defSmrg    #
5194a4f78defSmrg    # We need to recreate these files for each test, as the compiler may
5195a4f78defSmrg    # overwrite some of them when testing with obscure command lines.
5196a4f78defSmrg    # This happens at least with the AIX C compiler.
5197a4f78defSmrg    : > sub/conftest.c
5198a4f78defSmrg    for i in 1 2 3 4 5 6; do
5199a4f78defSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200a4f78defSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5201a4f78defSmrg      # Solaris 10 /bin/sh.
5202a4f78defSmrg      echo '/* dummy */' > sub/conftst$i.h
5203a4f78defSmrg    done
5204a4f78defSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5205a4f78defSmrg
5206a4f78defSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5207a4f78defSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
5208a4f78defSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
5209a4f78defSmrg    # versions had trouble with output in subdirs.
5210a4f78defSmrg    am__obj=sub/conftest.${OBJEXT-o}
5211a4f78defSmrg    am__minus_obj="-o $am__obj"
5212a4f78defSmrg    case $depmode in
5213a4f78defSmrg    gcc)
5214a4f78defSmrg      # This depmode causes a compiler race in universal mode.
5215a4f78defSmrg      test "$am__universal" = false || continue
5216a4f78defSmrg      ;;
5217a4f78defSmrg    nosideeffect)
5218a4f78defSmrg      # After this tag, mechanisms are not by side-effect, so they'll
5219a4f78defSmrg      # only be used when explicitly requested.
5220a4f78defSmrg      if test "x$enable_dependency_tracking" = xyes; then
5221a4f78defSmrg	continue
5222a4f78defSmrg      else
5223a4f78defSmrg	break
5224a4f78defSmrg      fi
5225a4f78defSmrg      ;;
5226a4f78defSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5227a4f78defSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
5228a4f78defSmrg      # not run yet.  These depmodes are late enough in the game, and
5229a4f78defSmrg      # so weak that their functioning should not be impacted.
5230a4f78defSmrg      am__obj=conftest.${OBJEXT-o}
5231a4f78defSmrg      am__minus_obj=
5232a4f78defSmrg      ;;
5233a4f78defSmrg    none) break ;;
5234a4f78defSmrg    esac
5235a4f78defSmrg    if depmode=$depmode \
5236a4f78defSmrg       source=sub/conftest.c object=$am__obj \
5237a4f78defSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5238a4f78defSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5239a4f78defSmrg         >/dev/null 2>conftest.err &&
5240a4f78defSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5241a4f78defSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5242a4f78defSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5243a4f78defSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5244a4f78defSmrg      # icc doesn't choke on unknown options, it will just issue warnings
5245a4f78defSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
5246a4f78defSmrg      # that says an option was ignored or not supported.
5247a4f78defSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
5248a4f78defSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
5249a4f78defSmrg      # The diagnosis changed in icc 8.0:
5250a4f78defSmrg      #   icc: Command line remark: option '-MP' not supported
5251a4f78defSmrg      if (grep 'ignoring option' conftest.err ||
5252a4f78defSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5253a4f78defSmrg        am_cv_CC_dependencies_compiler_type=$depmode
5254a4f78defSmrg        break
5255a4f78defSmrg      fi
5256a4f78defSmrg    fi
5257a4f78defSmrg  done
5258a4f78defSmrg
5259a4f78defSmrg  cd ..
5260a4f78defSmrg  rm -rf conftest.dir
5261a4f78defSmrgelse
5262a4f78defSmrg  am_cv_CC_dependencies_compiler_type=none
5263a4f78defSmrgfi
5264a4f78defSmrg
5265a4f78defSmrgfi
5266a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5267a4f78defSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5268a4f78defSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5269a4f78defSmrg
5270a4f78defSmrg if
5271a4f78defSmrg  test "x$enable_dependency_tracking" != xno \
5272a4f78defSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5273a4f78defSmrg  am__fastdepCC_TRUE=
5274a4f78defSmrg  am__fastdepCC_FALSE='#'
5275a4f78defSmrgelse
5276a4f78defSmrg  am__fastdepCC_TRUE='#'
5277a4f78defSmrg  am__fastdepCC_FALSE=
5278a4f78defSmrgfi
5279a4f78defSmrg
5280a4f78defSmrg
5281a4f78defSmrgac_ext=cpp
5282a4f78defSmrgac_cpp='$CXXCPP $CPPFLAGS'
5283a4f78defSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284a4f78defSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285a4f78defSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5286a4f78defSmrgif test -z "$CXX"; then
5287a4f78defSmrg  if test -n "$CCC"; then
5288a4f78defSmrg    CXX=$CCC
5289a4f78defSmrg  else
5290a4f78defSmrg    if test -n "$ac_tool_prefix"; then
5291a4f78defSmrg  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5292a4f78defSmrg  do
5293a4f78defSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294a4f78defSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
5297a4f78defSmrgif ${ac_cv_prog_CXX+:} false; then :
5298a4f78defSmrg  $as_echo_n "(cached) " >&6
5299a4f78defSmrgelse
5300a4f78defSmrg  if test -n "$CXX"; then
5301a4f78defSmrg  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5302a4f78defSmrgelse
5303a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304a4f78defSmrgfor as_dir in $PATH
5305a4f78defSmrgdo
5306a4f78defSmrg  IFS=$as_save_IFS
5307a4f78defSmrg  test -z "$as_dir" && as_dir=.
5308a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5309a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310a4f78defSmrg    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5311a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312a4f78defSmrg    break 2
5313a4f78defSmrg  fi
5314a4f78defSmrgdone
5315a4f78defSmrg  done
5316a4f78defSmrgIFS=$as_save_IFS
5317a4f78defSmrg
5318a4f78defSmrgfi
5319a4f78defSmrgfi
5320a4f78defSmrgCXX=$ac_cv_prog_CXX
5321a4f78defSmrgif test -n "$CXX"; then
5322a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5323a4f78defSmrg$as_echo "$CXX" >&6; }
5324a4f78defSmrgelse
5325a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326a4f78defSmrg$as_echo "no" >&6; }
5327a4f78defSmrgfi
5328a4f78defSmrg
5329a4f78defSmrg
5330a4f78defSmrg    test -n "$CXX" && break
5331a4f78defSmrg  done
5332a4f78defSmrgfi
5333a4f78defSmrgif test -z "$CXX"; then
5334a4f78defSmrg  ac_ct_CXX=$CXX
5335a4f78defSmrg  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5336a4f78defSmrgdo
5337a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
5338a4f78defSmrgset dummy $ac_prog; ac_word=$2
5339a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
5341a4f78defSmrgif ${ac_cv_prog_ac_ct_CXX+:} false; then :
5342a4f78defSmrg  $as_echo_n "(cached) " >&6
5343a4f78defSmrgelse
5344a4f78defSmrg  if test -n "$ac_ct_CXX"; then
5345a4f78defSmrg  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5346a4f78defSmrgelse
5347a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348a4f78defSmrgfor as_dir in $PATH
5349a4f78defSmrgdo
5350a4f78defSmrg  IFS=$as_save_IFS
5351a4f78defSmrg  test -z "$as_dir" && as_dir=.
5352a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5353a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354a4f78defSmrg    ac_cv_prog_ac_ct_CXX="$ac_prog"
5355a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356a4f78defSmrg    break 2
5357a4f78defSmrg  fi
5358a4f78defSmrgdone
5359a4f78defSmrg  done
5360a4f78defSmrgIFS=$as_save_IFS
5361a4f78defSmrg
5362a4f78defSmrgfi
5363a4f78defSmrgfi
5364a4f78defSmrgac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5365a4f78defSmrgif test -n "$ac_ct_CXX"; then
5366a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5367a4f78defSmrg$as_echo "$ac_ct_CXX" >&6; }
5368a4f78defSmrgelse
5369a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370a4f78defSmrg$as_echo "no" >&6; }
5371a4f78defSmrgfi
5372a4f78defSmrg
5373a4f78defSmrg
5374a4f78defSmrg  test -n "$ac_ct_CXX" && break
5375a4f78defSmrgdone
5376a4f78defSmrg
5377a4f78defSmrg  if test "x$ac_ct_CXX" = x; then
5378a4f78defSmrg    CXX="g++"
5379a4f78defSmrg  else
5380a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
5381a4f78defSmrgyes:)
5382a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384a4f78defSmrgac_tool_warned=yes ;;
5385a4f78defSmrgesac
5386a4f78defSmrg    CXX=$ac_ct_CXX
5387a4f78defSmrg  fi
5388a4f78defSmrgfi
5389a4f78defSmrg
5390a4f78defSmrg  fi
5391a4f78defSmrgfi
5392a4f78defSmrg# Provide some information about the compiler.
5393a4f78defSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5394a4f78defSmrgset X $ac_compile
5395a4f78defSmrgac_compiler=$2
5396a4f78defSmrgfor ac_option in --version -v -V -qversion; do
5397a4f78defSmrg  { { ac_try="$ac_compiler $ac_option >&5"
5398a4f78defSmrgcase "(($ac_try" in
5399a4f78defSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400a4f78defSmrg  *) ac_try_echo=$ac_try;;
5401a4f78defSmrgesac
5402a4f78defSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403a4f78defSmrg$as_echo "$ac_try_echo"; } >&5
5404a4f78defSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5405a4f78defSmrg  ac_status=$?
5406a4f78defSmrg  if test -s conftest.err; then
5407a4f78defSmrg    sed '10a\
5408a4f78defSmrg... rest of stderr output deleted ...
5409a4f78defSmrg         10q' conftest.err >conftest.er1
5410a4f78defSmrg    cat conftest.er1 >&5
5411a4f78defSmrg  fi
5412a4f78defSmrg  rm -f conftest.er1 conftest.err
5413a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5414a4f78defSmrg  test $ac_status = 0; }
5415a4f78defSmrgdone
5416a4f78defSmrg
5417a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5418a4f78defSmrg$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5419a4f78defSmrgif ${ac_cv_cxx_compiler_gnu+:} false; then :
5420a4f78defSmrg  $as_echo_n "(cached) " >&6
5421a4f78defSmrgelse
5422a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423a4f78defSmrg/* end confdefs.h.  */
5424a4f78defSmrg
5425a4f78defSmrgint
5426a4f78defSmrgmain ()
5427a4f78defSmrg{
5428a4f78defSmrg#ifndef __GNUC__
5429a4f78defSmrg       choke me
5430a4f78defSmrg#endif
5431a4f78defSmrg
5432a4f78defSmrg  ;
5433a4f78defSmrg  return 0;
5434a4f78defSmrg}
5435a4f78defSmrg_ACEOF
5436a4f78defSmrgif ac_fn_cxx_try_compile "$LINENO"; then :
5437a4f78defSmrg  ac_compiler_gnu=yes
5438a4f78defSmrgelse
5439a4f78defSmrg  ac_compiler_gnu=no
5440a4f78defSmrgfi
5441a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442a4f78defSmrgac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5443a4f78defSmrg
5444a4f78defSmrgfi
5445a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5446a4f78defSmrg$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5447a4f78defSmrgif test $ac_compiler_gnu = yes; then
5448a4f78defSmrg  GXX=yes
5449a4f78defSmrgelse
5450a4f78defSmrg  GXX=
5451a4f78defSmrgfi
5452a4f78defSmrgac_test_CXXFLAGS=${CXXFLAGS+set}
5453a4f78defSmrgac_save_CXXFLAGS=$CXXFLAGS
5454a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5455a4f78defSmrg$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5456a4f78defSmrgif ${ac_cv_prog_cxx_g+:} false; then :
5457a4f78defSmrg  $as_echo_n "(cached) " >&6
5458a4f78defSmrgelse
5459a4f78defSmrg  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5460a4f78defSmrg   ac_cxx_werror_flag=yes
5461a4f78defSmrg   ac_cv_prog_cxx_g=no
5462a4f78defSmrg   CXXFLAGS="-g"
5463a4f78defSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464a4f78defSmrg/* end confdefs.h.  */
5465a4f78defSmrg
5466a4f78defSmrgint
5467a4f78defSmrgmain ()
5468a4f78defSmrg{
5469a4f78defSmrg
5470a4f78defSmrg  ;
5471a4f78defSmrg  return 0;
5472a4f78defSmrg}
5473a4f78defSmrg_ACEOF
5474a4f78defSmrgif ac_fn_cxx_try_compile "$LINENO"; then :
5475a4f78defSmrg  ac_cv_prog_cxx_g=yes
5476a4f78defSmrgelse
5477a4f78defSmrg  CXXFLAGS=""
5478a4f78defSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479a4f78defSmrg/* end confdefs.h.  */
5480a4f78defSmrg
5481a4f78defSmrgint
5482a4f78defSmrgmain ()
5483a4f78defSmrg{
5484a4f78defSmrg
5485a4f78defSmrg  ;
5486a4f78defSmrg  return 0;
5487a4f78defSmrg}
5488a4f78defSmrg_ACEOF
5489a4f78defSmrgif ac_fn_cxx_try_compile "$LINENO"; then :
5490a4f78defSmrg
5491a4f78defSmrgelse
5492a4f78defSmrg  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5493a4f78defSmrg	 CXXFLAGS="-g"
5494a4f78defSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495a4f78defSmrg/* end confdefs.h.  */
5496a4f78defSmrg
5497a4f78defSmrgint
5498a4f78defSmrgmain ()
5499a4f78defSmrg{
5500a4f78defSmrg
5501a4f78defSmrg  ;
5502a4f78defSmrg  return 0;
5503a4f78defSmrg}
5504a4f78defSmrg_ACEOF
5505a4f78defSmrgif ac_fn_cxx_try_compile "$LINENO"; then :
5506a4f78defSmrg  ac_cv_prog_cxx_g=yes
5507a4f78defSmrgfi
5508a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509a4f78defSmrgfi
5510a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511a4f78defSmrgfi
5512a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513a4f78defSmrg   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5514a4f78defSmrgfi
5515a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5516a4f78defSmrg$as_echo "$ac_cv_prog_cxx_g" >&6; }
5517a4f78defSmrgif test "$ac_test_CXXFLAGS" = set; then
5518a4f78defSmrg  CXXFLAGS=$ac_save_CXXFLAGS
5519a4f78defSmrgelif test $ac_cv_prog_cxx_g = yes; then
5520a4f78defSmrg  if test "$GXX" = yes; then
5521a4f78defSmrg    CXXFLAGS="-g -O2"
5522a4f78defSmrg  else
5523a4f78defSmrg    CXXFLAGS="-g"
5524a4f78defSmrg  fi
5525a4f78defSmrgelse
5526a4f78defSmrg  if test "$GXX" = yes; then
5527a4f78defSmrg    CXXFLAGS="-O2"
5528a4f78defSmrg  else
5529a4f78defSmrg    CXXFLAGS=
5530a4f78defSmrg  fi
5531a4f78defSmrgfi
5532a4f78defSmrgac_ext=c
5533a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
5534a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
5537a4f78defSmrg
5538a4f78defSmrgdepcc="$CXX"  am_compiler_list=
5539a4f78defSmrg
5540a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5541a4f78defSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
5542a4f78defSmrgif ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5543a4f78defSmrg  $as_echo_n "(cached) " >&6
5544a4f78defSmrgelse
5545a4f78defSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5546a4f78defSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
5547a4f78defSmrg  # making bogus files that we don't know about and never remove.  For
5548a4f78defSmrg  # instance it was reported that on HP-UX the gcc test will end up
5549a4f78defSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
5550a4f78defSmrg  # in D".
5551a4f78defSmrg  rm -rf conftest.dir
5552a4f78defSmrg  mkdir conftest.dir
5553a4f78defSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
5554a4f78defSmrg  # using a relative directory.
5555a4f78defSmrg  cp "$am_depcomp" conftest.dir
5556a4f78defSmrg  cd conftest.dir
5557a4f78defSmrg  # We will build objects and dependencies in a subdirectory because
5558a4f78defSmrg  # it helps to detect inapplicable dependency modes.  For instance
5559a4f78defSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
5560a4f78defSmrg  # side effect of compilation, but ICC will put the dependencies in
5561a4f78defSmrg  # the current directory while Tru64 will put them in the object
5562a4f78defSmrg  # directory.
5563a4f78defSmrg  mkdir sub
5564a4f78defSmrg
5565a4f78defSmrg  am_cv_CXX_dependencies_compiler_type=none
5566a4f78defSmrg  if test "$am_compiler_list" = ""; then
5567a4f78defSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5568a4f78defSmrg  fi
5569a4f78defSmrg  am__universal=false
5570a4f78defSmrg  case " $depcc " in #(
5571a4f78defSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5572a4f78defSmrg     esac
5573a4f78defSmrg
5574a4f78defSmrg  for depmode in $am_compiler_list; do
5575a4f78defSmrg    # Setup a source with many dependencies, because some compilers
5576a4f78defSmrg    # like to wrap large dependency lists on column 80 (with \), and
5577a4f78defSmrg    # we should not choose a depcomp mode which is confused by this.
5578a4f78defSmrg    #
5579a4f78defSmrg    # We need to recreate these files for each test, as the compiler may
5580a4f78defSmrg    # overwrite some of them when testing with obscure command lines.
5581a4f78defSmrg    # This happens at least with the AIX C compiler.
5582a4f78defSmrg    : > sub/conftest.c
5583a4f78defSmrg    for i in 1 2 3 4 5 6; do
5584a4f78defSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5585a4f78defSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5586a4f78defSmrg      # Solaris 10 /bin/sh.
5587a4f78defSmrg      echo '/* dummy */' > sub/conftst$i.h
5588a4f78defSmrg    done
5589a4f78defSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5590a4f78defSmrg
5591a4f78defSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5592a4f78defSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
5593a4f78defSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
5594a4f78defSmrg    # versions had trouble with output in subdirs.
5595a4f78defSmrg    am__obj=sub/conftest.${OBJEXT-o}
5596a4f78defSmrg    am__minus_obj="-o $am__obj"
5597a4f78defSmrg    case $depmode in
5598a4f78defSmrg    gcc)
5599a4f78defSmrg      # This depmode causes a compiler race in universal mode.
5600a4f78defSmrg      test "$am__universal" = false || continue
5601a4f78defSmrg      ;;
5602a4f78defSmrg    nosideeffect)
5603a4f78defSmrg      # After this tag, mechanisms are not by side-effect, so they'll
5604a4f78defSmrg      # only be used when explicitly requested.
5605a4f78defSmrg      if test "x$enable_dependency_tracking" = xyes; then
5606a4f78defSmrg	continue
5607a4f78defSmrg      else
5608a4f78defSmrg	break
5609a4f78defSmrg      fi
5610a4f78defSmrg      ;;
5611a4f78defSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5612a4f78defSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
5613a4f78defSmrg      # not run yet.  These depmodes are late enough in the game, and
5614a4f78defSmrg      # so weak that their functioning should not be impacted.
5615a4f78defSmrg      am__obj=conftest.${OBJEXT-o}
5616a4f78defSmrg      am__minus_obj=
5617a4f78defSmrg      ;;
5618a4f78defSmrg    none) break ;;
5619a4f78defSmrg    esac
5620a4f78defSmrg    if depmode=$depmode \
5621a4f78defSmrg       source=sub/conftest.c object=$am__obj \
5622a4f78defSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5623a4f78defSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5624a4f78defSmrg         >/dev/null 2>conftest.err &&
5625a4f78defSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5626a4f78defSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5627a4f78defSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5628a4f78defSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5629a4f78defSmrg      # icc doesn't choke on unknown options, it will just issue warnings
5630a4f78defSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
5631a4f78defSmrg      # that says an option was ignored or not supported.
5632a4f78defSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
5633a4f78defSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
5634a4f78defSmrg      # The diagnosis changed in icc 8.0:
5635a4f78defSmrg      #   icc: Command line remark: option '-MP' not supported
5636a4f78defSmrg      if (grep 'ignoring option' conftest.err ||
5637a4f78defSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5638a4f78defSmrg        am_cv_CXX_dependencies_compiler_type=$depmode
5639a4f78defSmrg        break
5640a4f78defSmrg      fi
5641a4f78defSmrg    fi
5642a4f78defSmrg  done
5643a4f78defSmrg
5644a4f78defSmrg  cd ..
5645a4f78defSmrg  rm -rf conftest.dir
5646a4f78defSmrgelse
5647a4f78defSmrg  am_cv_CXX_dependencies_compiler_type=none
5648a4f78defSmrgfi
5649a4f78defSmrg
5650a4f78defSmrgfi
5651a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5652a4f78defSmrg$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5653a4f78defSmrgCXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5654a4f78defSmrg
5655a4f78defSmrg if
5656a4f78defSmrg  test "x$enable_dependency_tracking" != xno \
5657a4f78defSmrg  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5658a4f78defSmrg  am__fastdepCXX_TRUE=
5659a4f78defSmrg  am__fastdepCXX_FALSE='#'
5660a4f78defSmrgelse
5661a4f78defSmrg  am__fastdepCXX_TRUE='#'
5662a4f78defSmrg  am__fastdepCXX_FALSE=
5663a4f78defSmrgfi
5664a4f78defSmrg
5665a4f78defSmrg
5666a4f78defSmrgcase `pwd` in
5667a4f78defSmrg  *\ * | *\	*)
5668a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5669a4f78defSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5670a4f78defSmrgesac
5671a4f78defSmrg
5672a4f78defSmrg
5673a4f78defSmrg
5674a4f78defSmrgmacro_version='2.4.6'
5675a4f78defSmrgmacro_revision='2.4.6'
5676a4f78defSmrg
5677a4f78defSmrg
5678a4f78defSmrg
5679a4f78defSmrg
5680a4f78defSmrg
5681a4f78defSmrg
5682a4f78defSmrg
5683a4f78defSmrg
5684a4f78defSmrg
5685a4f78defSmrg
5686a4f78defSmrg
5687a4f78defSmrg
5688a4f78defSmrg
5689a4f78defSmrgltmain=$ac_aux_dir/ltmain.sh
5690a4f78defSmrg
5691a4f78defSmrg# Make sure we can run config.sub.
5692a4f78defSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5693a4f78defSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5694a4f78defSmrg
5695a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5696a4f78defSmrg$as_echo_n "checking build system type... " >&6; }
5697a4f78defSmrgif ${ac_cv_build+:} false; then :
5698a4f78defSmrg  $as_echo_n "(cached) " >&6
5699a4f78defSmrgelse
5700a4f78defSmrg  ac_build_alias=$build_alias
5701a4f78defSmrgtest "x$ac_build_alias" = x &&
5702a4f78defSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5703a4f78defSmrgtest "x$ac_build_alias" = x &&
5704a4f78defSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5705a4f78defSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5706a4f78defSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5707a4f78defSmrg
5708a4f78defSmrgfi
5709a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5710a4f78defSmrg$as_echo "$ac_cv_build" >&6; }
5711a4f78defSmrgcase $ac_cv_build in
5712a4f78defSmrg*-*-*) ;;
5713a4f78defSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5714a4f78defSmrgesac
5715a4f78defSmrgbuild=$ac_cv_build
5716a4f78defSmrgac_save_IFS=$IFS; IFS='-'
5717a4f78defSmrgset x $ac_cv_build
5718a4f78defSmrgshift
5719a4f78defSmrgbuild_cpu=$1
5720a4f78defSmrgbuild_vendor=$2
5721a4f78defSmrgshift; shift
5722a4f78defSmrg# Remember, the first character of IFS is used to create $*,
5723a4f78defSmrg# except with old shells:
5724a4f78defSmrgbuild_os=$*
5725a4f78defSmrgIFS=$ac_save_IFS
5726a4f78defSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5727a4f78defSmrg
5728a4f78defSmrg
5729a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5730a4f78defSmrg$as_echo_n "checking host system type... " >&6; }
5731a4f78defSmrgif ${ac_cv_host+:} false; then :
5732a4f78defSmrg  $as_echo_n "(cached) " >&6
5733a4f78defSmrgelse
5734a4f78defSmrg  if test "x$host_alias" = x; then
5735a4f78defSmrg  ac_cv_host=$ac_cv_build
5736a4f78defSmrgelse
5737a4f78defSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5738a4f78defSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5739a4f78defSmrgfi
5740a4f78defSmrg
5741a4f78defSmrgfi
5742a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5743a4f78defSmrg$as_echo "$ac_cv_host" >&6; }
5744a4f78defSmrgcase $ac_cv_host in
5745a4f78defSmrg*-*-*) ;;
5746a4f78defSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5747a4f78defSmrgesac
5748a4f78defSmrghost=$ac_cv_host
5749a4f78defSmrgac_save_IFS=$IFS; IFS='-'
5750a4f78defSmrgset x $ac_cv_host
5751a4f78defSmrgshift
5752a4f78defSmrghost_cpu=$1
5753a4f78defSmrghost_vendor=$2
5754a4f78defSmrgshift; shift
5755a4f78defSmrg# Remember, the first character of IFS is used to create $*,
5756a4f78defSmrg# except with old shells:
5757a4f78defSmrghost_os=$*
5758a4f78defSmrgIFS=$ac_save_IFS
5759a4f78defSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5760a4f78defSmrg
5761a4f78defSmrg
5762a4f78defSmrg# Backslashify metacharacters that are still active within
5763a4f78defSmrg# double-quoted strings.
5764a4f78defSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5765a4f78defSmrg
5766a4f78defSmrg# Same as above, but do not quote variable references.
5767a4f78defSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
5768a4f78defSmrg
5769a4f78defSmrg# Sed substitution to delay expansion of an escaped shell variable in a
5770a4f78defSmrg# double_quote_subst'ed string.
5771a4f78defSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5772a4f78defSmrg
5773a4f78defSmrg# Sed substitution to delay expansion of an escaped single quote.
5774a4f78defSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5775a4f78defSmrg
5776a4f78defSmrg# Sed substitution to avoid accidental globbing in evaled expressions
5777a4f78defSmrgno_glob_subst='s/\*/\\\*/g'
5778a4f78defSmrg
5779a4f78defSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5780a4f78defSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5781a4f78defSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5782a4f78defSmrg
5783a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5784a4f78defSmrg$as_echo_n "checking how to print strings... " >&6; }
5785a4f78defSmrg# Test print first, because it will be a builtin if present.
5786a4f78defSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5787a4f78defSmrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5788a4f78defSmrg  ECHO='print -r --'
5789a4f78defSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5790a4f78defSmrg  ECHO='printf %s\n'
5791a4f78defSmrgelse
5792a4f78defSmrg  # Use this function as a fallback that always works.
5793a4f78defSmrg  func_fallback_echo ()
5794a4f78defSmrg  {
5795a4f78defSmrg    eval 'cat <<_LTECHO_EOF
5796a4f78defSmrg$1
5797a4f78defSmrg_LTECHO_EOF'
5798a4f78defSmrg  }
5799a4f78defSmrg  ECHO='func_fallback_echo'
5800a4f78defSmrgfi
5801a4f78defSmrg
5802a4f78defSmrg# func_echo_all arg...
5803a4f78defSmrg# Invoke $ECHO with all args, space-separated.
5804a4f78defSmrgfunc_echo_all ()
5805a4f78defSmrg{
5806a4f78defSmrg    $ECHO ""
5807a4f78defSmrg}
5808a4f78defSmrg
5809a4f78defSmrgcase $ECHO in
5810a4f78defSmrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5811a4f78defSmrg$as_echo "printf" >&6; } ;;
5812a4f78defSmrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5813a4f78defSmrg$as_echo "print -r" >&6; } ;;
5814a4f78defSmrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5815a4f78defSmrg$as_echo "cat" >&6; } ;;
5816a4f78defSmrgesac
5817a4f78defSmrg
5818a4f78defSmrg
5819a4f78defSmrg
5820a4f78defSmrg
5821a4f78defSmrg
5822a4f78defSmrg
5823a4f78defSmrg
5824a4f78defSmrg
5825a4f78defSmrg
5826a4f78defSmrg
5827a4f78defSmrg
5828a4f78defSmrg
5829a4f78defSmrg
5830a4f78defSmrg
5831a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5832a4f78defSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5833a4f78defSmrgif ${ac_cv_path_SED+:} false; then :
5834a4f78defSmrg  $as_echo_n "(cached) " >&6
5835a4f78defSmrgelse
5836a4f78defSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5837a4f78defSmrg     for ac_i in 1 2 3 4 5 6 7; do
5838a4f78defSmrg       ac_script="$ac_script$as_nl$ac_script"
5839a4f78defSmrg     done
5840a4f78defSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5841a4f78defSmrg     { ac_script=; unset ac_script;}
5842a4f78defSmrg     if test -z "$SED"; then
5843a4f78defSmrg  ac_path_SED_found=false
5844a4f78defSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
5845a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846a4f78defSmrgfor as_dir in $PATH
5847a4f78defSmrgdo
5848a4f78defSmrg  IFS=$as_save_IFS
5849a4f78defSmrg  test -z "$as_dir" && as_dir=.
5850a4f78defSmrg    for ac_prog in sed gsed; do
5851a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5852a4f78defSmrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5853a4f78defSmrg      as_fn_executable_p "$ac_path_SED" || continue
5854a4f78defSmrg# Check for GNU ac_path_SED and select it if it is found.
5855a4f78defSmrg  # Check for GNU $ac_path_SED
5856a4f78defSmrgcase `"$ac_path_SED" --version 2>&1` in
5857a4f78defSmrg*GNU*)
5858a4f78defSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5859a4f78defSmrg*)
5860a4f78defSmrg  ac_count=0
5861a4f78defSmrg  $as_echo_n 0123456789 >"conftest.in"
5862a4f78defSmrg  while :
5863a4f78defSmrg  do
5864a4f78defSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
5865a4f78defSmrg    mv "conftest.tmp" "conftest.in"
5866a4f78defSmrg    cp "conftest.in" "conftest.nl"
5867a4f78defSmrg    $as_echo '' >> "conftest.nl"
5868a4f78defSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869a4f78defSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870a4f78defSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
5871a4f78defSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
5872a4f78defSmrg      # Best one so far, save it but keep looking for a better one
5873a4f78defSmrg      ac_cv_path_SED="$ac_path_SED"
5874a4f78defSmrg      ac_path_SED_max=$ac_count
5875a4f78defSmrg    fi
5876a4f78defSmrg    # 10*(2^10) chars as input seems more than enough
5877a4f78defSmrg    test $ac_count -gt 10 && break
5878a4f78defSmrg  done
5879a4f78defSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880a4f78defSmrgesac
5881a4f78defSmrg
5882a4f78defSmrg      $ac_path_SED_found && break 3
5883a4f78defSmrg    done
5884a4f78defSmrg  done
5885a4f78defSmrg  done
5886a4f78defSmrgIFS=$as_save_IFS
5887a4f78defSmrg  if test -z "$ac_cv_path_SED"; then
5888a4f78defSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5889a4f78defSmrg  fi
5890a4f78defSmrgelse
5891a4f78defSmrg  ac_cv_path_SED=$SED
5892a4f78defSmrgfi
5893a4f78defSmrg
5894a4f78defSmrgfi
5895a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5896a4f78defSmrg$as_echo "$ac_cv_path_SED" >&6; }
5897a4f78defSmrg SED="$ac_cv_path_SED"
5898a4f78defSmrg  rm -f conftest.sed
5899a4f78defSmrg
5900a4f78defSmrgtest -z "$SED" && SED=sed
5901a4f78defSmrgXsed="$SED -e 1s/^X//"
5902a4f78defSmrg
5903a4f78defSmrg
5904a4f78defSmrg
5905a4f78defSmrg
5906a4f78defSmrg
5907a4f78defSmrg
5908a4f78defSmrg
5909a4f78defSmrg
5910a4f78defSmrg
5911a4f78defSmrg
5912a4f78defSmrg
5913a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5914a4f78defSmrg$as_echo_n "checking for fgrep... " >&6; }
5915a4f78defSmrgif ${ac_cv_path_FGREP+:} false; then :
5916a4f78defSmrg  $as_echo_n "(cached) " >&6
5917a4f78defSmrgelse
5918a4f78defSmrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5919a4f78defSmrg   then ac_cv_path_FGREP="$GREP -F"
5920a4f78defSmrg   else
5921a4f78defSmrg     if test -z "$FGREP"; then
5922a4f78defSmrg  ac_path_FGREP_found=false
5923a4f78defSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
5924a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925a4f78defSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5926a4f78defSmrgdo
5927a4f78defSmrg  IFS=$as_save_IFS
5928a4f78defSmrg  test -z "$as_dir" && as_dir=.
5929a4f78defSmrg    for ac_prog in fgrep; do
5930a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5931a4f78defSmrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5932a4f78defSmrg      as_fn_executable_p "$ac_path_FGREP" || continue
5933a4f78defSmrg# Check for GNU ac_path_FGREP and select it if it is found.
5934a4f78defSmrg  # Check for GNU $ac_path_FGREP
5935a4f78defSmrgcase `"$ac_path_FGREP" --version 2>&1` in
5936a4f78defSmrg*GNU*)
5937a4f78defSmrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5938a4f78defSmrg*)
5939a4f78defSmrg  ac_count=0
5940a4f78defSmrg  $as_echo_n 0123456789 >"conftest.in"
5941a4f78defSmrg  while :
5942a4f78defSmrg  do
5943a4f78defSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
5944a4f78defSmrg    mv "conftest.tmp" "conftest.in"
5945a4f78defSmrg    cp "conftest.in" "conftest.nl"
5946a4f78defSmrg    $as_echo 'FGREP' >> "conftest.nl"
5947a4f78defSmrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5948a4f78defSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5949a4f78defSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
5950a4f78defSmrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5951a4f78defSmrg      # Best one so far, save it but keep looking for a better one
5952a4f78defSmrg      ac_cv_path_FGREP="$ac_path_FGREP"
5953a4f78defSmrg      ac_path_FGREP_max=$ac_count
5954a4f78defSmrg    fi
5955a4f78defSmrg    # 10*(2^10) chars as input seems more than enough
5956a4f78defSmrg    test $ac_count -gt 10 && break
5957a4f78defSmrg  done
5958a4f78defSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5959a4f78defSmrgesac
5960a4f78defSmrg
5961a4f78defSmrg      $ac_path_FGREP_found && break 3
5962a4f78defSmrg    done
5963a4f78defSmrg  done
5964a4f78defSmrg  done
5965a4f78defSmrgIFS=$as_save_IFS
5966a4f78defSmrg  if test -z "$ac_cv_path_FGREP"; then
5967a4f78defSmrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5968a4f78defSmrg  fi
5969a4f78defSmrgelse
5970a4f78defSmrg  ac_cv_path_FGREP=$FGREP
5971a4f78defSmrgfi
5972a4f78defSmrg
5973a4f78defSmrg   fi
5974a4f78defSmrgfi
5975a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5976a4f78defSmrg$as_echo "$ac_cv_path_FGREP" >&6; }
5977a4f78defSmrg FGREP="$ac_cv_path_FGREP"
5978a4f78defSmrg
5979a4f78defSmrg
5980a4f78defSmrgtest -z "$GREP" && GREP=grep
5981a4f78defSmrg
5982a4f78defSmrg
5983a4f78defSmrg
5984a4f78defSmrg
5985a4f78defSmrg
5986a4f78defSmrg
5987a4f78defSmrg
5988a4f78defSmrg
5989a4f78defSmrg
5990a4f78defSmrg
5991a4f78defSmrg
5992a4f78defSmrg
5993a4f78defSmrg
5994a4f78defSmrg
5995a4f78defSmrg
5996a4f78defSmrg
5997a4f78defSmrg
5998a4f78defSmrg
5999a4f78defSmrg
6000a4f78defSmrg# Check whether --with-gnu-ld was given.
6001a4f78defSmrgif test "${with_gnu_ld+set}" = set; then :
6002a4f78defSmrg  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6003a4f78defSmrgelse
6004a4f78defSmrg  with_gnu_ld=no
6005a4f78defSmrgfi
6006a4f78defSmrg
6007a4f78defSmrgac_prog=ld
6008a4f78defSmrgif test yes = "$GCC"; then
6009a4f78defSmrg  # Check if gcc -print-prog-name=ld gives a path.
6010a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6011a4f78defSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
6012a4f78defSmrg  case $host in
6013a4f78defSmrg  *-*-mingw*)
6014a4f78defSmrg    # gcc leaves a trailing carriage return, which upsets mingw
6015a4f78defSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6016a4f78defSmrg  *)
6017a4f78defSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6018a4f78defSmrg  esac
6019a4f78defSmrg  case $ac_prog in
6020a4f78defSmrg    # Accept absolute paths.
6021a4f78defSmrg    [\\/]* | ?:[\\/]*)
6022a4f78defSmrg      re_direlt='/[^/][^/]*/\.\./'
6023a4f78defSmrg      # Canonicalize the pathname of ld
6024a4f78defSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6025a4f78defSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6026a4f78defSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6027a4f78defSmrg      done
6028a4f78defSmrg      test -z "$LD" && LD=$ac_prog
6029a4f78defSmrg      ;;
6030a4f78defSmrg  "")
6031a4f78defSmrg    # If it fails, then pretend we aren't using GCC.
6032a4f78defSmrg    ac_prog=ld
6033a4f78defSmrg    ;;
6034a4f78defSmrg  *)
6035a4f78defSmrg    # If it is relative, then search for the first ld in PATH.
6036a4f78defSmrg    with_gnu_ld=unknown
6037a4f78defSmrg    ;;
6038a4f78defSmrg  esac
6039a4f78defSmrgelif test yes = "$with_gnu_ld"; then
6040a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6041a4f78defSmrg$as_echo_n "checking for GNU ld... " >&6; }
6042a4f78defSmrgelse
6043a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6044a4f78defSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
6045a4f78defSmrgfi
6046a4f78defSmrgif ${lt_cv_path_LD+:} false; then :
6047a4f78defSmrg  $as_echo_n "(cached) " >&6
6048a4f78defSmrgelse
6049a4f78defSmrg  if test -z "$LD"; then
6050a4f78defSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6051a4f78defSmrg  for ac_dir in $PATH; do
6052a4f78defSmrg    IFS=$lt_save_ifs
6053a4f78defSmrg    test -z "$ac_dir" && ac_dir=.
6054a4f78defSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6055a4f78defSmrg      lt_cv_path_LD=$ac_dir/$ac_prog
6056a4f78defSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
6057a4f78defSmrg      # but apparently some variants of GNU ld only accept -v.
6058a4f78defSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
6059a4f78defSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6060a4f78defSmrg      *GNU* | *'with BFD'*)
6061a4f78defSmrg	test no != "$with_gnu_ld" && break
6062a4f78defSmrg	;;
6063a4f78defSmrg      *)
6064a4f78defSmrg	test yes != "$with_gnu_ld" && break
6065a4f78defSmrg	;;
6066a4f78defSmrg      esac
6067a4f78defSmrg    fi
6068a4f78defSmrg  done
6069a4f78defSmrg  IFS=$lt_save_ifs
6070a4f78defSmrgelse
6071a4f78defSmrg  lt_cv_path_LD=$LD # Let the user override the test with a path.
6072a4f78defSmrgfi
6073a4f78defSmrgfi
6074a4f78defSmrg
6075a4f78defSmrgLD=$lt_cv_path_LD
6076a4f78defSmrgif test -n "$LD"; then
6077a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6078a4f78defSmrg$as_echo "$LD" >&6; }
6079a4f78defSmrgelse
6080a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081a4f78defSmrg$as_echo "no" >&6; }
6082a4f78defSmrgfi
6083a4f78defSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6084a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6085a4f78defSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6086a4f78defSmrgif ${lt_cv_prog_gnu_ld+:} false; then :
6087a4f78defSmrg  $as_echo_n "(cached) " >&6
6088a4f78defSmrgelse
6089a4f78defSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6090a4f78defSmrgcase `$LD -v 2>&1 </dev/null` in
6091a4f78defSmrg*GNU* | *'with BFD'*)
6092a4f78defSmrg  lt_cv_prog_gnu_ld=yes
6093a4f78defSmrg  ;;
6094a4f78defSmrg*)
6095a4f78defSmrg  lt_cv_prog_gnu_ld=no
6096a4f78defSmrg  ;;
6097a4f78defSmrgesac
6098a4f78defSmrgfi
6099a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6100a4f78defSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6101a4f78defSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
6102a4f78defSmrg
6103a4f78defSmrg
6104a4f78defSmrg
6105a4f78defSmrg
6106a4f78defSmrg
6107a4f78defSmrg
6108a4f78defSmrg
6109a4f78defSmrg
6110a4f78defSmrg
6111a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6112a4f78defSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6113a4f78defSmrgif ${lt_cv_path_NM+:} false; then :
6114a4f78defSmrg  $as_echo_n "(cached) " >&6
6115a4f78defSmrgelse
6116a4f78defSmrg  if test -n "$NM"; then
6117a4f78defSmrg  # Let the user override the test.
6118a4f78defSmrg  lt_cv_path_NM=$NM
6119a4f78defSmrgelse
6120a4f78defSmrg  lt_nm_to_check=${ac_tool_prefix}nm
6121a4f78defSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6122a4f78defSmrg    lt_nm_to_check="$lt_nm_to_check nm"
6123a4f78defSmrg  fi
6124a4f78defSmrg  for lt_tmp_nm in $lt_nm_to_check; do
6125a4f78defSmrg    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6126a4f78defSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6127a4f78defSmrg      IFS=$lt_save_ifs
6128a4f78defSmrg      test -z "$ac_dir" && ac_dir=.
6129a4f78defSmrg      tmp_nm=$ac_dir/$lt_tmp_nm
6130a4f78defSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6131a4f78defSmrg	# Check to see if the nm accepts a BSD-compat flag.
6132a4f78defSmrg	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6133a4f78defSmrg	#   nm: unknown option "B" ignored
6134a4f78defSmrg	# Tru64's nm complains that /dev/null is an invalid object file
6135a4f78defSmrg	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6136a4f78defSmrg	case $build_os in
6137a4f78defSmrg	mingw*) lt_bad_file=conftest.nm/nofile ;;
6138a4f78defSmrg	*) lt_bad_file=/dev/null ;;
6139a4f78defSmrg	esac
6140a4f78defSmrg	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6141a4f78defSmrg	*$lt_bad_file* | *'Invalid file or object type'*)
6142a4f78defSmrg	  lt_cv_path_NM="$tmp_nm -B"
6143a4f78defSmrg	  break 2
6144a4f78defSmrg	  ;;
6145a4f78defSmrg	*)
6146a4f78defSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6147a4f78defSmrg	  */dev/null*)
6148a4f78defSmrg	    lt_cv_path_NM="$tmp_nm -p"
6149a4f78defSmrg	    break 2
6150a4f78defSmrg	    ;;
6151a4f78defSmrg	  *)
6152a4f78defSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6153a4f78defSmrg	    continue # so that we can try to find one that supports BSD flags
6154a4f78defSmrg	    ;;
6155a4f78defSmrg	  esac
6156a4f78defSmrg	  ;;
6157a4f78defSmrg	esac
6158a4f78defSmrg      fi
6159a4f78defSmrg    done
6160a4f78defSmrg    IFS=$lt_save_ifs
6161a4f78defSmrg  done
6162a4f78defSmrg  : ${lt_cv_path_NM=no}
6163a4f78defSmrgfi
6164a4f78defSmrgfi
6165a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6166a4f78defSmrg$as_echo "$lt_cv_path_NM" >&6; }
6167a4f78defSmrgif test no != "$lt_cv_path_NM"; then
6168a4f78defSmrg  NM=$lt_cv_path_NM
6169a4f78defSmrgelse
6170a4f78defSmrg  # Didn't find any BSD compatible name lister, look for dumpbin.
6171a4f78defSmrg  if test -n "$DUMPBIN"; then :
6172a4f78defSmrg    # Let the user override the test.
6173a4f78defSmrg  else
6174a4f78defSmrg    if test -n "$ac_tool_prefix"; then
6175a4f78defSmrg  for ac_prog in dumpbin "link -dump"
6176a4f78defSmrg  do
6177a4f78defSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178a4f78defSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
6181a4f78defSmrgif ${ac_cv_prog_DUMPBIN+:} false; then :
6182a4f78defSmrg  $as_echo_n "(cached) " >&6
6183a4f78defSmrgelse
6184a4f78defSmrg  if test -n "$DUMPBIN"; then
6185a4f78defSmrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6186a4f78defSmrgelse
6187a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188a4f78defSmrgfor as_dir in $PATH
6189a4f78defSmrgdo
6190a4f78defSmrg  IFS=$as_save_IFS
6191a4f78defSmrg  test -z "$as_dir" && as_dir=.
6192a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6193a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194a4f78defSmrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6195a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196a4f78defSmrg    break 2
6197a4f78defSmrg  fi
6198a4f78defSmrgdone
6199a4f78defSmrg  done
6200a4f78defSmrgIFS=$as_save_IFS
6201a4f78defSmrg
6202a4f78defSmrgfi
6203a4f78defSmrgfi
6204a4f78defSmrgDUMPBIN=$ac_cv_prog_DUMPBIN
6205a4f78defSmrgif test -n "$DUMPBIN"; then
6206a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6207a4f78defSmrg$as_echo "$DUMPBIN" >&6; }
6208a4f78defSmrgelse
6209a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210a4f78defSmrg$as_echo "no" >&6; }
6211a4f78defSmrgfi
6212a4f78defSmrg
6213a4f78defSmrg
6214a4f78defSmrg    test -n "$DUMPBIN" && break
6215a4f78defSmrg  done
6216a4f78defSmrgfi
6217a4f78defSmrgif test -z "$DUMPBIN"; then
6218a4f78defSmrg  ac_ct_DUMPBIN=$DUMPBIN
6219a4f78defSmrg  for ac_prog in dumpbin "link -dump"
6220a4f78defSmrgdo
6221a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
6222a4f78defSmrgset dummy $ac_prog; ac_word=$2
6223a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
6225a4f78defSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6226a4f78defSmrg  $as_echo_n "(cached) " >&6
6227a4f78defSmrgelse
6228a4f78defSmrg  if test -n "$ac_ct_DUMPBIN"; then
6229a4f78defSmrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6230a4f78defSmrgelse
6231a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232a4f78defSmrgfor as_dir in $PATH
6233a4f78defSmrgdo
6234a4f78defSmrg  IFS=$as_save_IFS
6235a4f78defSmrg  test -z "$as_dir" && as_dir=.
6236a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6237a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238a4f78defSmrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6239a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240a4f78defSmrg    break 2
6241a4f78defSmrg  fi
6242a4f78defSmrgdone
6243a4f78defSmrg  done
6244a4f78defSmrgIFS=$as_save_IFS
6245a4f78defSmrg
6246a4f78defSmrgfi
6247a4f78defSmrgfi
6248a4f78defSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6249a4f78defSmrgif test -n "$ac_ct_DUMPBIN"; then
6250a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6251a4f78defSmrg$as_echo "$ac_ct_DUMPBIN" >&6; }
6252a4f78defSmrgelse
6253a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254a4f78defSmrg$as_echo "no" >&6; }
6255a4f78defSmrgfi
6256a4f78defSmrg
6257a4f78defSmrg
6258a4f78defSmrg  test -n "$ac_ct_DUMPBIN" && break
6259a4f78defSmrgdone
6260a4f78defSmrg
6261a4f78defSmrg  if test "x$ac_ct_DUMPBIN" = x; then
6262a4f78defSmrg    DUMPBIN=":"
6263a4f78defSmrg  else
6264a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
6265a4f78defSmrgyes:)
6266a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268a4f78defSmrgac_tool_warned=yes ;;
6269a4f78defSmrgesac
6270a4f78defSmrg    DUMPBIN=$ac_ct_DUMPBIN
6271a4f78defSmrg  fi
6272a4f78defSmrgfi
6273a4f78defSmrg
6274a4f78defSmrg    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6275a4f78defSmrg    *COFF*)
6276a4f78defSmrg      DUMPBIN="$DUMPBIN -symbols -headers"
6277a4f78defSmrg      ;;
6278a4f78defSmrg    *)
6279a4f78defSmrg      DUMPBIN=:
6280a4f78defSmrg      ;;
6281a4f78defSmrg    esac
6282a4f78defSmrg  fi
6283a4f78defSmrg
6284a4f78defSmrg  if test : != "$DUMPBIN"; then
6285a4f78defSmrg    NM=$DUMPBIN
6286a4f78defSmrg  fi
6287a4f78defSmrgfi
6288a4f78defSmrgtest -z "$NM" && NM=nm
6289a4f78defSmrg
6290a4f78defSmrg
6291a4f78defSmrg
6292a4f78defSmrg
6293a4f78defSmrg
6294a4f78defSmrg
6295a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6296a4f78defSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6297a4f78defSmrgif ${lt_cv_nm_interface+:} false; then :
6298a4f78defSmrg  $as_echo_n "(cached) " >&6
6299a4f78defSmrgelse
6300a4f78defSmrg  lt_cv_nm_interface="BSD nm"
6301a4f78defSmrg  echo "int some_variable = 0;" > conftest.$ac_ext
6302a4f78defSmrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6303a4f78defSmrg  (eval "$ac_compile" 2>conftest.err)
6304a4f78defSmrg  cat conftest.err >&5
6305a4f78defSmrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6306a4f78defSmrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6307a4f78defSmrg  cat conftest.err >&5
6308a4f78defSmrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6309a4f78defSmrg  cat conftest.out >&5
6310a4f78defSmrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6311a4f78defSmrg    lt_cv_nm_interface="MS dumpbin"
6312a4f78defSmrg  fi
6313a4f78defSmrg  rm -f conftest*
6314a4f78defSmrgfi
6315a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6316a4f78defSmrg$as_echo "$lt_cv_nm_interface" >&6; }
6317a4f78defSmrg
6318a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6319a4f78defSmrg$as_echo_n "checking whether ln -s works... " >&6; }
6320a4f78defSmrgLN_S=$as_ln_s
6321a4f78defSmrgif test "$LN_S" = "ln -s"; then
6322a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6323a4f78defSmrg$as_echo "yes" >&6; }
6324a4f78defSmrgelse
6325a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6326a4f78defSmrg$as_echo "no, using $LN_S" >&6; }
6327a4f78defSmrgfi
6328a4f78defSmrg
6329a4f78defSmrg# find the maximum length of command line arguments
6330a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6331a4f78defSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6332a4f78defSmrgif ${lt_cv_sys_max_cmd_len+:} false; then :
6333a4f78defSmrg  $as_echo_n "(cached) " >&6
6334a4f78defSmrgelse
6335a4f78defSmrg    i=0
6336a4f78defSmrg  teststring=ABCD
6337a4f78defSmrg
6338a4f78defSmrg  case $build_os in
6339a4f78defSmrg  msdosdjgpp*)
6340a4f78defSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
6341a4f78defSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
6342a4f78defSmrg    # during glob expansion).  Even if it were fixed, the result of this
6343a4f78defSmrg    # check would be larger than it should be.
6344a4f78defSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6345a4f78defSmrg    ;;
6346a4f78defSmrg
6347a4f78defSmrg  gnu*)
6348a4f78defSmrg    # Under GNU Hurd, this test is not required because there is
6349a4f78defSmrg    # no limit to the length of command line arguments.
6350a4f78defSmrg    # Libtool will interpret -1 as no limit whatsoever
6351a4f78defSmrg    lt_cv_sys_max_cmd_len=-1;
6352a4f78defSmrg    ;;
6353a4f78defSmrg
6354a4f78defSmrg  cygwin* | mingw* | cegcc*)
6355a4f78defSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
6356a4f78defSmrg    # about 5 minutes as the teststring grows exponentially.
6357a4f78defSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
6358a4f78defSmrg    # you end up with a "frozen" computer, even though with patience
6359a4f78defSmrg    # the test eventually succeeds (with a max line length of 256k).
6360a4f78defSmrg    # Instead, let's just punt: use the minimum linelength reported by
6361a4f78defSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
6362a4f78defSmrg    lt_cv_sys_max_cmd_len=8192;
6363a4f78defSmrg    ;;
6364a4f78defSmrg
6365a4f78defSmrg  mint*)
6366a4f78defSmrg    # On MiNT this can take a long time and run out of memory.
6367a4f78defSmrg    lt_cv_sys_max_cmd_len=8192;
6368a4f78defSmrg    ;;
6369a4f78defSmrg
6370a4f78defSmrg  amigaos*)
6371a4f78defSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
6372a4f78defSmrg    # So we just punt and use a minimum line length of 8192.
6373a4f78defSmrg    lt_cv_sys_max_cmd_len=8192;
6374a4f78defSmrg    ;;
6375a4f78defSmrg
6376a4f78defSmrg  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6377a4f78defSmrg    # This has been around since 386BSD, at least.  Likely further.
6378a4f78defSmrg    if test -x /sbin/sysctl; then
6379a4f78defSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6380a4f78defSmrg    elif test -x /usr/sbin/sysctl; then
6381a4f78defSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6382a4f78defSmrg    else
6383a4f78defSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6384a4f78defSmrg    fi
6385a4f78defSmrg    # And add a safety zone
6386a4f78defSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6387a4f78defSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6388a4f78defSmrg    ;;
6389a4f78defSmrg
6390a4f78defSmrg  interix*)
6391a4f78defSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6392a4f78defSmrg    lt_cv_sys_max_cmd_len=196608
6393a4f78defSmrg    ;;
6394a4f78defSmrg
6395a4f78defSmrg  os2*)
6396a4f78defSmrg    # The test takes a long time on OS/2.
6397a4f78defSmrg    lt_cv_sys_max_cmd_len=8192
6398a4f78defSmrg    ;;
6399a4f78defSmrg
6400a4f78defSmrg  osf*)
6401a4f78defSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6402a4f78defSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6403a4f78defSmrg    # nice to cause kernel panics so lets avoid the loop below.
6404a4f78defSmrg    # First set a reasonable default.
6405a4f78defSmrg    lt_cv_sys_max_cmd_len=16384
6406a4f78defSmrg    #
6407a4f78defSmrg    if test -x /sbin/sysconfig; then
6408a4f78defSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6409a4f78defSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6410a4f78defSmrg      esac
6411a4f78defSmrg    fi
6412a4f78defSmrg    ;;
6413a4f78defSmrg  sco3.2v5*)
6414a4f78defSmrg    lt_cv_sys_max_cmd_len=102400
6415a4f78defSmrg    ;;
6416a4f78defSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
6417a4f78defSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6418a4f78defSmrg    if test -n "$kargmax"; then
6419a4f78defSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6420a4f78defSmrg    else
6421a4f78defSmrg      lt_cv_sys_max_cmd_len=32768
6422a4f78defSmrg    fi
6423a4f78defSmrg    ;;
6424a4f78defSmrg  *)
6425a4f78defSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6426a4f78defSmrg    if test -n "$lt_cv_sys_max_cmd_len" && \
6427a4f78defSmrg       test undefined != "$lt_cv_sys_max_cmd_len"; then
6428a4f78defSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6429a4f78defSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6430a4f78defSmrg    else
6431a4f78defSmrg      # Make teststring a little bigger before we do anything with it.
6432a4f78defSmrg      # a 1K string should be a reasonable start.
6433a4f78defSmrg      for i in 1 2 3 4 5 6 7 8; do
6434a4f78defSmrg        teststring=$teststring$teststring
6435a4f78defSmrg      done
6436a4f78defSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6437a4f78defSmrg      # If test is not a shell built-in, we'll probably end up computing a
6438a4f78defSmrg      # maximum length that is only half of the actual maximum length, but
6439a4f78defSmrg      # we can't tell.
6440a4f78defSmrg      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6441a4f78defSmrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6442a4f78defSmrg	      test 17 != "$i" # 1/2 MB should be enough
6443a4f78defSmrg      do
6444a4f78defSmrg        i=`expr $i + 1`
6445a4f78defSmrg        teststring=$teststring$teststring
6446a4f78defSmrg      done
6447a4f78defSmrg      # Only check the string length outside the loop.
6448a4f78defSmrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6449a4f78defSmrg      teststring=
6450a4f78defSmrg      # Add a significant safety factor because C++ compilers can tack on
6451a4f78defSmrg      # massive amounts of additional arguments before passing them to the
6452a4f78defSmrg      # linker.  It appears as though 1/2 is a usable value.
6453a4f78defSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6454a4f78defSmrg    fi
6455a4f78defSmrg    ;;
6456a4f78defSmrg  esac
6457a4f78defSmrg
6458a4f78defSmrgfi
6459a4f78defSmrg
6460a4f78defSmrgif test -n "$lt_cv_sys_max_cmd_len"; then
6461a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6462a4f78defSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6463a4f78defSmrgelse
6464a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6465a4f78defSmrg$as_echo "none" >&6; }
6466a4f78defSmrgfi
6467a4f78defSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len
6468a4f78defSmrg
6469a4f78defSmrg
6470a4f78defSmrg
6471a4f78defSmrg
6472a4f78defSmrg
6473a4f78defSmrg
6474a4f78defSmrg: ${CP="cp -f"}
6475a4f78defSmrg: ${MV="mv -f"}
6476a4f78defSmrg: ${RM="rm -f"}
6477a4f78defSmrg
6478a4f78defSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6479a4f78defSmrg  lt_unset=unset
6480a4f78defSmrgelse
6481a4f78defSmrg  lt_unset=false
6482a4f78defSmrgfi
6483a4f78defSmrg
6484a4f78defSmrg
6485a4f78defSmrg
6486a4f78defSmrg
6487a4f78defSmrg
6488a4f78defSmrg# test EBCDIC or ASCII
6489a4f78defSmrgcase `echo X|tr X '\101'` in
6490a4f78defSmrg A) # ASCII based system
6491a4f78defSmrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6492a4f78defSmrg  lt_SP2NL='tr \040 \012'
6493a4f78defSmrg  lt_NL2SP='tr \015\012 \040\040'
6494a4f78defSmrg  ;;
6495a4f78defSmrg *) # EBCDIC based system
6496a4f78defSmrg  lt_SP2NL='tr \100 \n'
6497a4f78defSmrg  lt_NL2SP='tr \r\n \100\100'
6498a4f78defSmrg  ;;
6499a4f78defSmrgesac
6500a4f78defSmrg
6501a4f78defSmrg
6502a4f78defSmrg
6503a4f78defSmrg
6504a4f78defSmrg
6505a4f78defSmrg
6506a4f78defSmrg
6507a4f78defSmrg
6508a4f78defSmrg
6509a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6510a4f78defSmrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6511a4f78defSmrgif ${lt_cv_to_host_file_cmd+:} false; then :
6512a4f78defSmrg  $as_echo_n "(cached) " >&6
6513a4f78defSmrgelse
6514a4f78defSmrg  case $host in
6515a4f78defSmrg  *-*-mingw* )
6516a4f78defSmrg    case $build in
6517a4f78defSmrg      *-*-mingw* ) # actually msys
6518a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6519a4f78defSmrg        ;;
6520a4f78defSmrg      *-*-cygwin* )
6521a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6522a4f78defSmrg        ;;
6523a4f78defSmrg      * ) # otherwise, assume *nix
6524a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6525a4f78defSmrg        ;;
6526a4f78defSmrg    esac
6527a4f78defSmrg    ;;
6528a4f78defSmrg  *-*-cygwin* )
6529a4f78defSmrg    case $build in
6530a4f78defSmrg      *-*-mingw* ) # actually msys
6531a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6532a4f78defSmrg        ;;
6533a4f78defSmrg      *-*-cygwin* )
6534a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_noop
6535a4f78defSmrg        ;;
6536a4f78defSmrg      * ) # otherwise, assume *nix
6537a4f78defSmrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6538a4f78defSmrg        ;;
6539a4f78defSmrg    esac
6540a4f78defSmrg    ;;
6541a4f78defSmrg  * ) # unhandled hosts (and "normal" native builds)
6542a4f78defSmrg    lt_cv_to_host_file_cmd=func_convert_file_noop
6543a4f78defSmrg    ;;
6544a4f78defSmrgesac
6545a4f78defSmrg
6546a4f78defSmrgfi
6547a4f78defSmrg
6548a4f78defSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd
6549a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6550a4f78defSmrg$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6551a4f78defSmrg
6552a4f78defSmrg
6553a4f78defSmrg
6554a4f78defSmrg
6555a4f78defSmrg
6556a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6557a4f78defSmrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6558a4f78defSmrgif ${lt_cv_to_tool_file_cmd+:} false; then :
6559a4f78defSmrg  $as_echo_n "(cached) " >&6
6560a4f78defSmrgelse
6561a4f78defSmrg  #assume ordinary cross tools, or native build.
6562a4f78defSmrglt_cv_to_tool_file_cmd=func_convert_file_noop
6563a4f78defSmrgcase $host in
6564a4f78defSmrg  *-*-mingw* )
6565a4f78defSmrg    case $build in
6566a4f78defSmrg      *-*-mingw* ) # actually msys
6567a4f78defSmrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6568a4f78defSmrg        ;;
6569a4f78defSmrg    esac
6570a4f78defSmrg    ;;
6571a4f78defSmrgesac
6572a4f78defSmrg
6573a4f78defSmrgfi
6574a4f78defSmrg
6575a4f78defSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
6576a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6577a4f78defSmrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6578a4f78defSmrg
6579a4f78defSmrg
6580a4f78defSmrg
6581a4f78defSmrg
6582a4f78defSmrg
6583a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6584a4f78defSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
6585a4f78defSmrgif ${lt_cv_ld_reload_flag+:} false; then :
6586a4f78defSmrg  $as_echo_n "(cached) " >&6
6587a4f78defSmrgelse
6588a4f78defSmrg  lt_cv_ld_reload_flag='-r'
6589a4f78defSmrgfi
6590a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6591a4f78defSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
6592a4f78defSmrgreload_flag=$lt_cv_ld_reload_flag
6593a4f78defSmrgcase $reload_flag in
6594a4f78defSmrg"" | " "*) ;;
6595a4f78defSmrg*) reload_flag=" $reload_flag" ;;
6596a4f78defSmrgesac
6597a4f78defSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
6598a4f78defSmrgcase $host_os in
6599a4f78defSmrg  cygwin* | mingw* | pw32* | cegcc*)
6600a4f78defSmrg    if test yes != "$GCC"; then
6601a4f78defSmrg      reload_cmds=false
6602a4f78defSmrg    fi
6603a4f78defSmrg    ;;
6604a4f78defSmrg  darwin*)
6605a4f78defSmrg    if test yes = "$GCC"; then
6606a4f78defSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6607a4f78defSmrg    else
6608a4f78defSmrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6609a4f78defSmrg    fi
6610a4f78defSmrg    ;;
6611a4f78defSmrgesac
6612a4f78defSmrg
6613a4f78defSmrg
6614a4f78defSmrg
6615a4f78defSmrg
6616a4f78defSmrg
6617a4f78defSmrg
6618a4f78defSmrg
6619a4f78defSmrg
6620a4f78defSmrg
6621a4f78defSmrgif test -n "$ac_tool_prefix"; then
6622a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6623a4f78defSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
6624a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
6626a4f78defSmrgif ${ac_cv_prog_OBJDUMP+:} false; then :
6627a4f78defSmrg  $as_echo_n "(cached) " >&6
6628a4f78defSmrgelse
6629a4f78defSmrg  if test -n "$OBJDUMP"; then
6630a4f78defSmrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6631a4f78defSmrgelse
6632a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633a4f78defSmrgfor as_dir in $PATH
6634a4f78defSmrgdo
6635a4f78defSmrg  IFS=$as_save_IFS
6636a4f78defSmrg  test -z "$as_dir" && as_dir=.
6637a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6638a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639a4f78defSmrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6640a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641a4f78defSmrg    break 2
6642a4f78defSmrg  fi
6643a4f78defSmrgdone
6644a4f78defSmrg  done
6645a4f78defSmrgIFS=$as_save_IFS
6646a4f78defSmrg
6647a4f78defSmrgfi
6648a4f78defSmrgfi
6649a4f78defSmrgOBJDUMP=$ac_cv_prog_OBJDUMP
6650a4f78defSmrgif test -n "$OBJDUMP"; then
6651a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6652a4f78defSmrg$as_echo "$OBJDUMP" >&6; }
6653a4f78defSmrgelse
6654a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655a4f78defSmrg$as_echo "no" >&6; }
6656a4f78defSmrgfi
6657a4f78defSmrg
6658a4f78defSmrg
6659a4f78defSmrgfi
6660a4f78defSmrgif test -z "$ac_cv_prog_OBJDUMP"; then
6661a4f78defSmrg  ac_ct_OBJDUMP=$OBJDUMP
6662a4f78defSmrg  # Extract the first word of "objdump", so it can be a program name with args.
6663a4f78defSmrgset dummy objdump; ac_word=$2
6664a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
6666a4f78defSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6667a4f78defSmrg  $as_echo_n "(cached) " >&6
6668a4f78defSmrgelse
6669a4f78defSmrg  if test -n "$ac_ct_OBJDUMP"; then
6670a4f78defSmrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6671a4f78defSmrgelse
6672a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673a4f78defSmrgfor as_dir in $PATH
6674a4f78defSmrgdo
6675a4f78defSmrg  IFS=$as_save_IFS
6676a4f78defSmrg  test -z "$as_dir" && as_dir=.
6677a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6678a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679a4f78defSmrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6680a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681a4f78defSmrg    break 2
6682a4f78defSmrg  fi
6683a4f78defSmrgdone
6684a4f78defSmrg  done
6685a4f78defSmrgIFS=$as_save_IFS
6686a4f78defSmrg
6687a4f78defSmrgfi
6688a4f78defSmrgfi
6689a4f78defSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6690a4f78defSmrgif test -n "$ac_ct_OBJDUMP"; then
6691a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6692a4f78defSmrg$as_echo "$ac_ct_OBJDUMP" >&6; }
6693a4f78defSmrgelse
6694a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695a4f78defSmrg$as_echo "no" >&6; }
6696a4f78defSmrgfi
6697a4f78defSmrg
6698a4f78defSmrg  if test "x$ac_ct_OBJDUMP" = x; then
6699a4f78defSmrg    OBJDUMP="false"
6700a4f78defSmrg  else
6701a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
6702a4f78defSmrgyes:)
6703a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705a4f78defSmrgac_tool_warned=yes ;;
6706a4f78defSmrgesac
6707a4f78defSmrg    OBJDUMP=$ac_ct_OBJDUMP
6708a4f78defSmrg  fi
6709a4f78defSmrgelse
6710a4f78defSmrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
6711a4f78defSmrgfi
6712a4f78defSmrg
6713a4f78defSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump
6714a4f78defSmrg
6715a4f78defSmrg
6716a4f78defSmrg
6717a4f78defSmrg
6718a4f78defSmrg
6719a4f78defSmrg
6720a4f78defSmrg
6721a4f78defSmrg
6722a4f78defSmrg
6723a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6724a4f78defSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6725a4f78defSmrgif ${lt_cv_deplibs_check_method+:} false; then :
6726a4f78defSmrg  $as_echo_n "(cached) " >&6
6727a4f78defSmrgelse
6728a4f78defSmrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
6729a4f78defSmrglt_cv_file_magic_test_file=
6730a4f78defSmrglt_cv_deplibs_check_method='unknown'
6731a4f78defSmrg# Need to set the preceding variable on all platforms that support
6732a4f78defSmrg# interlibrary dependencies.
6733a4f78defSmrg# 'none' -- dependencies not supported.
6734a4f78defSmrg# 'unknown' -- same as none, but documents that we really don't know.
6735a4f78defSmrg# 'pass_all' -- all dependencies passed with no checks.
6736a4f78defSmrg# 'test_compile' -- check by making test program.
6737a4f78defSmrg# 'file_magic [[regex]]' -- check by looking for files in library path
6738a4f78defSmrg# that responds to the $file_magic_cmd with a given extended regex.
6739a4f78defSmrg# If you have 'file' or equivalent on your system and you're not sure
6740a4f78defSmrg# whether 'pass_all' will *always* work, you probably want this one.
6741a4f78defSmrg
6742a4f78defSmrgcase $host_os in
6743a4f78defSmrgaix[4-9]*)
6744a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6745a4f78defSmrg  ;;
6746a4f78defSmrg
6747a4f78defSmrgbeos*)
6748a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6749a4f78defSmrg  ;;
6750a4f78defSmrg
6751a4f78defSmrgbsdi[45]*)
6752a4f78defSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6753a4f78defSmrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
6754a4f78defSmrg  lt_cv_file_magic_test_file=/shlib/libc.so
6755a4f78defSmrg  ;;
6756a4f78defSmrg
6757a4f78defSmrgcygwin*)
6758a4f78defSmrg  # func_win32_libid is a shell function defined in ltmain.sh
6759a4f78defSmrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6760a4f78defSmrg  lt_cv_file_magic_cmd='func_win32_libid'
6761a4f78defSmrg  ;;
6762a4f78defSmrg
6763a4f78defSmrgmingw* | pw32*)
6764a4f78defSmrg  # Base MSYS/MinGW do not provide the 'file' command needed by
6765a4f78defSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6766a4f78defSmrg  # unless we find 'file', for example because we are cross-compiling.
6767a4f78defSmrg  if ( file / ) >/dev/null 2>&1; then
6768a4f78defSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6769a4f78defSmrg    lt_cv_file_magic_cmd='func_win32_libid'
6770a4f78defSmrg  else
6771a4f78defSmrg    # Keep this pattern in sync with the one in func_win32_libid.
6772a4f78defSmrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6773a4f78defSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
6774a4f78defSmrg  fi
6775a4f78defSmrg  ;;
6776a4f78defSmrg
6777a4f78defSmrgcegcc*)
6778a4f78defSmrg  # use the weaker test based on 'objdump'. See mingw*.
6779a4f78defSmrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6780a4f78defSmrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
6781a4f78defSmrg  ;;
6782a4f78defSmrg
6783a4f78defSmrgdarwin* | rhapsody*)
6784a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6785a4f78defSmrg  ;;
6786a4f78defSmrg
6787a4f78defSmrgfreebsd* | dragonfly*)
6788a4f78defSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6789a4f78defSmrg    case $host_cpu in
6790a4f78defSmrg    i*86 )
6791a4f78defSmrg      # Not sure whether the presence of OpenBSD here was a mistake.
6792a4f78defSmrg      # Let's accept both of them until this is cleared up.
6793a4f78defSmrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6794a4f78defSmrg      lt_cv_file_magic_cmd=/usr/bin/file
6795a4f78defSmrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6796a4f78defSmrg      ;;
6797a4f78defSmrg    esac
6798a4f78defSmrg  else
6799a4f78defSmrg    lt_cv_deplibs_check_method=pass_all
6800a4f78defSmrg  fi
6801a4f78defSmrg  ;;
6802a4f78defSmrg
6803a4f78defSmrghaiku*)
6804a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6805a4f78defSmrg  ;;
6806a4f78defSmrg
6807a4f78defSmrghpux10.20* | hpux11*)
6808a4f78defSmrg  lt_cv_file_magic_cmd=/usr/bin/file
6809a4f78defSmrg  case $host_cpu in
6810a4f78defSmrg  ia64*)
6811a4f78defSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6812a4f78defSmrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6813a4f78defSmrg    ;;
6814a4f78defSmrg  hppa*64*)
6815a4f78defSmrg    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]'
6816a4f78defSmrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6817a4f78defSmrg    ;;
6818a4f78defSmrg  *)
6819a4f78defSmrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6820a4f78defSmrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6821a4f78defSmrg    ;;
6822a4f78defSmrg  esac
6823a4f78defSmrg  ;;
6824a4f78defSmrg
6825a4f78defSmrginterix[3-9]*)
6826a4f78defSmrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6827a4f78defSmrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6828a4f78defSmrg  ;;
6829a4f78defSmrg
6830a4f78defSmrgirix5* | irix6* | nonstopux*)
6831a4f78defSmrg  case $LD in
6832a4f78defSmrg  *-32|*"-32 ") libmagic=32-bit;;
6833a4f78defSmrg  *-n32|*"-n32 ") libmagic=N32;;
6834a4f78defSmrg  *-64|*"-64 ") libmagic=64-bit;;
6835a4f78defSmrg  *) libmagic=never-match;;
6836a4f78defSmrg  esac
6837a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6838a4f78defSmrg  ;;
6839a4f78defSmrg
6840a4f78defSmrg# This must be glibc/ELF.
6841a4f78defSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6842a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6843a4f78defSmrg  ;;
6844a4f78defSmrg
6845a4f78defSmrgnetbsd*)
6846a4f78defSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6847a4f78defSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6848a4f78defSmrg  else
6849a4f78defSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6850a4f78defSmrg  fi
6851a4f78defSmrg  ;;
6852a4f78defSmrg
6853a4f78defSmrgnewos6*)
6854a4f78defSmrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6855a4f78defSmrg  lt_cv_file_magic_cmd=/usr/bin/file
6856a4f78defSmrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6857a4f78defSmrg  ;;
6858a4f78defSmrg
6859a4f78defSmrg*nto* | *qnx*)
6860a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6861a4f78defSmrg  ;;
6862a4f78defSmrg
6863a4f78defSmrgopenbsd* | bitrig*)
6864a4f78defSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6865a4f78defSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6866a4f78defSmrg  else
6867a4f78defSmrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6868a4f78defSmrg  fi
6869a4f78defSmrg  ;;
6870a4f78defSmrg
6871a4f78defSmrgosf3* | osf4* | osf5*)
6872a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6873a4f78defSmrg  ;;
6874a4f78defSmrg
6875a4f78defSmrgrdos*)
6876a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6877a4f78defSmrg  ;;
6878a4f78defSmrg
6879a4f78defSmrgsolaris*)
6880a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6881a4f78defSmrg  ;;
6882a4f78defSmrg
6883a4f78defSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6884a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6885a4f78defSmrg  ;;
6886a4f78defSmrg
6887a4f78defSmrgsysv4 | sysv4.3*)
6888a4f78defSmrg  case $host_vendor in
6889a4f78defSmrg  motorola)
6890a4f78defSmrg    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]'
6891a4f78defSmrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6892a4f78defSmrg    ;;
6893a4f78defSmrg  ncr)
6894a4f78defSmrg    lt_cv_deplibs_check_method=pass_all
6895a4f78defSmrg    ;;
6896a4f78defSmrg  sequent)
6897a4f78defSmrg    lt_cv_file_magic_cmd='/bin/file'
6898a4f78defSmrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6899a4f78defSmrg    ;;
6900a4f78defSmrg  sni)
6901a4f78defSmrg    lt_cv_file_magic_cmd='/bin/file'
6902a4f78defSmrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6903a4f78defSmrg    lt_cv_file_magic_test_file=/lib/libc.so
6904a4f78defSmrg    ;;
6905a4f78defSmrg  siemens)
6906a4f78defSmrg    lt_cv_deplibs_check_method=pass_all
6907a4f78defSmrg    ;;
6908a4f78defSmrg  pc)
6909a4f78defSmrg    lt_cv_deplibs_check_method=pass_all
6910a4f78defSmrg    ;;
6911a4f78defSmrg  esac
6912a4f78defSmrg  ;;
6913a4f78defSmrg
6914a4f78defSmrgtpf*)
6915a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6916a4f78defSmrg  ;;
6917a4f78defSmrgos2*)
6918a4f78defSmrg  lt_cv_deplibs_check_method=pass_all
6919a4f78defSmrg  ;;
6920a4f78defSmrgesac
6921a4f78defSmrg
6922a4f78defSmrgfi
6923a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6924a4f78defSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
6925a4f78defSmrg
6926a4f78defSmrgfile_magic_glob=
6927a4f78defSmrgwant_nocaseglob=no
6928a4f78defSmrgif test "$build" = "$host"; then
6929a4f78defSmrg  case $host_os in
6930a4f78defSmrg  mingw* | pw32*)
6931a4f78defSmrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6932a4f78defSmrg      want_nocaseglob=yes
6933a4f78defSmrg    else
6934a4f78defSmrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6935a4f78defSmrg    fi
6936a4f78defSmrg    ;;
6937a4f78defSmrg  esac
6938a4f78defSmrgfi
6939a4f78defSmrg
6940a4f78defSmrgfile_magic_cmd=$lt_cv_file_magic_cmd
6941a4f78defSmrgdeplibs_check_method=$lt_cv_deplibs_check_method
6942a4f78defSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
6943a4f78defSmrg
6944a4f78defSmrg
6945a4f78defSmrg
6946a4f78defSmrg
6947a4f78defSmrg
6948a4f78defSmrg
6949a4f78defSmrg
6950a4f78defSmrg
6951a4f78defSmrg
6952a4f78defSmrg
6953a4f78defSmrg
6954a4f78defSmrg
6955a4f78defSmrg
6956a4f78defSmrg
6957a4f78defSmrg
6958a4f78defSmrg
6959a4f78defSmrg
6960a4f78defSmrg
6961a4f78defSmrg
6962a4f78defSmrg
6963a4f78defSmrg
6964a4f78defSmrg
6965a4f78defSmrgif test -n "$ac_tool_prefix"; then
6966a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6967a4f78defSmrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
6968a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
6970a4f78defSmrgif ${ac_cv_prog_DLLTOOL+:} false; then :
6971a4f78defSmrg  $as_echo_n "(cached) " >&6
6972a4f78defSmrgelse
6973a4f78defSmrg  if test -n "$DLLTOOL"; then
6974a4f78defSmrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6975a4f78defSmrgelse
6976a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977a4f78defSmrgfor as_dir in $PATH
6978a4f78defSmrgdo
6979a4f78defSmrg  IFS=$as_save_IFS
6980a4f78defSmrg  test -z "$as_dir" && as_dir=.
6981a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
6982a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983a4f78defSmrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6984a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985a4f78defSmrg    break 2
6986a4f78defSmrg  fi
6987a4f78defSmrgdone
6988a4f78defSmrg  done
6989a4f78defSmrgIFS=$as_save_IFS
6990a4f78defSmrg
6991a4f78defSmrgfi
6992a4f78defSmrgfi
6993a4f78defSmrgDLLTOOL=$ac_cv_prog_DLLTOOL
6994a4f78defSmrgif test -n "$DLLTOOL"; then
6995a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6996a4f78defSmrg$as_echo "$DLLTOOL" >&6; }
6997a4f78defSmrgelse
6998a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999a4f78defSmrg$as_echo "no" >&6; }
7000a4f78defSmrgfi
7001a4f78defSmrg
7002a4f78defSmrg
7003a4f78defSmrgfi
7004a4f78defSmrgif test -z "$ac_cv_prog_DLLTOOL"; then
7005a4f78defSmrg  ac_ct_DLLTOOL=$DLLTOOL
7006a4f78defSmrg  # Extract the first word of "dlltool", so it can be a program name with args.
7007a4f78defSmrgset dummy dlltool; ac_word=$2
7008a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7010a4f78defSmrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7011a4f78defSmrg  $as_echo_n "(cached) " >&6
7012a4f78defSmrgelse
7013a4f78defSmrg  if test -n "$ac_ct_DLLTOOL"; then
7014a4f78defSmrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7015a4f78defSmrgelse
7016a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017a4f78defSmrgfor as_dir in $PATH
7018a4f78defSmrgdo
7019a4f78defSmrg  IFS=$as_save_IFS
7020a4f78defSmrg  test -z "$as_dir" && as_dir=.
7021a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7022a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023a4f78defSmrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7024a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025a4f78defSmrg    break 2
7026a4f78defSmrg  fi
7027a4f78defSmrgdone
7028a4f78defSmrg  done
7029a4f78defSmrgIFS=$as_save_IFS
7030a4f78defSmrg
7031a4f78defSmrgfi
7032a4f78defSmrgfi
7033a4f78defSmrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7034a4f78defSmrgif test -n "$ac_ct_DLLTOOL"; then
7035a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7036a4f78defSmrg$as_echo "$ac_ct_DLLTOOL" >&6; }
7037a4f78defSmrgelse
7038a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039a4f78defSmrg$as_echo "no" >&6; }
7040a4f78defSmrgfi
7041a4f78defSmrg
7042a4f78defSmrg  if test "x$ac_ct_DLLTOOL" = x; then
7043a4f78defSmrg    DLLTOOL="false"
7044a4f78defSmrg  else
7045a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
7046a4f78defSmrgyes:)
7047a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049a4f78defSmrgac_tool_warned=yes ;;
7050a4f78defSmrgesac
7051a4f78defSmrg    DLLTOOL=$ac_ct_DLLTOOL
7052a4f78defSmrg  fi
7053a4f78defSmrgelse
7054a4f78defSmrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
7055a4f78defSmrgfi
7056a4f78defSmrg
7057a4f78defSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
7058a4f78defSmrg
7059a4f78defSmrg
7060a4f78defSmrg
7061a4f78defSmrg
7062a4f78defSmrg
7063a4f78defSmrg
7064a4f78defSmrg
7065a4f78defSmrg
7066a4f78defSmrg
7067a4f78defSmrg
7068a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7069a4f78defSmrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7070a4f78defSmrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7071a4f78defSmrg  $as_echo_n "(cached) " >&6
7072a4f78defSmrgelse
7073a4f78defSmrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
7074a4f78defSmrg
7075a4f78defSmrgcase $host_os in
7076a4f78defSmrgcygwin* | mingw* | pw32* | cegcc*)
7077a4f78defSmrg  # two different shell functions defined in ltmain.sh;
7078a4f78defSmrg  # decide which one to use based on capabilities of $DLLTOOL
7079a4f78defSmrg  case `$DLLTOOL --help 2>&1` in
7080a4f78defSmrg  *--identify-strict*)
7081a4f78defSmrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7082a4f78defSmrg    ;;
7083a4f78defSmrg  *)
7084a4f78defSmrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7085a4f78defSmrg    ;;
7086a4f78defSmrg  esac
7087a4f78defSmrg  ;;
7088a4f78defSmrg*)
7089a4f78defSmrg  # fallback: assume linklib IS sharedlib
7090a4f78defSmrg  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7091a4f78defSmrg  ;;
7092a4f78defSmrgesac
7093a4f78defSmrg
7094a4f78defSmrgfi
7095a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7096a4f78defSmrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7097a4f78defSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7098a4f78defSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7099a4f78defSmrg
7100a4f78defSmrg
7101a4f78defSmrg
7102a4f78defSmrg
7103a4f78defSmrg
7104a4f78defSmrg
7105a4f78defSmrg
7106a4f78defSmrgif test -n "$ac_tool_prefix"; then
7107a4f78defSmrg  for ac_prog in ar
7108a4f78defSmrg  do
7109a4f78defSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7110a4f78defSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
7111a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7113a4f78defSmrgif ${ac_cv_prog_AR+:} false; then :
7114a4f78defSmrg  $as_echo_n "(cached) " >&6
7115a4f78defSmrgelse
7116a4f78defSmrg  if test -n "$AR"; then
7117a4f78defSmrg  ac_cv_prog_AR="$AR" # Let the user override the test.
7118a4f78defSmrgelse
7119a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120a4f78defSmrgfor as_dir in $PATH
7121a4f78defSmrgdo
7122a4f78defSmrg  IFS=$as_save_IFS
7123a4f78defSmrg  test -z "$as_dir" && as_dir=.
7124a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7125a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126a4f78defSmrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7127a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128a4f78defSmrg    break 2
7129a4f78defSmrg  fi
7130a4f78defSmrgdone
7131a4f78defSmrg  done
7132a4f78defSmrgIFS=$as_save_IFS
7133a4f78defSmrg
7134a4f78defSmrgfi
7135a4f78defSmrgfi
7136a4f78defSmrgAR=$ac_cv_prog_AR
7137a4f78defSmrgif test -n "$AR"; then
7138a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7139a4f78defSmrg$as_echo "$AR" >&6; }
7140a4f78defSmrgelse
7141a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142a4f78defSmrg$as_echo "no" >&6; }
7143a4f78defSmrgfi
7144a4f78defSmrg
7145a4f78defSmrg
7146a4f78defSmrg    test -n "$AR" && break
7147a4f78defSmrg  done
7148a4f78defSmrgfi
7149a4f78defSmrgif test -z "$AR"; then
7150a4f78defSmrg  ac_ct_AR=$AR
7151a4f78defSmrg  for ac_prog in ar
7152a4f78defSmrgdo
7153a4f78defSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
7154a4f78defSmrgset dummy $ac_prog; ac_word=$2
7155a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7157a4f78defSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
7158a4f78defSmrg  $as_echo_n "(cached) " >&6
7159a4f78defSmrgelse
7160a4f78defSmrg  if test -n "$ac_ct_AR"; then
7161a4f78defSmrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7162a4f78defSmrgelse
7163a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164a4f78defSmrgfor as_dir in $PATH
7165a4f78defSmrgdo
7166a4f78defSmrg  IFS=$as_save_IFS
7167a4f78defSmrg  test -z "$as_dir" && as_dir=.
7168a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7169a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170a4f78defSmrg    ac_cv_prog_ac_ct_AR="$ac_prog"
7171a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172a4f78defSmrg    break 2
7173a4f78defSmrg  fi
7174a4f78defSmrgdone
7175a4f78defSmrg  done
7176a4f78defSmrgIFS=$as_save_IFS
7177a4f78defSmrg
7178a4f78defSmrgfi
7179a4f78defSmrgfi
7180a4f78defSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR
7181a4f78defSmrgif test -n "$ac_ct_AR"; then
7182a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7183a4f78defSmrg$as_echo "$ac_ct_AR" >&6; }
7184a4f78defSmrgelse
7185a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186a4f78defSmrg$as_echo "no" >&6; }
7187a4f78defSmrgfi
7188a4f78defSmrg
7189a4f78defSmrg
7190a4f78defSmrg  test -n "$ac_ct_AR" && break
7191a4f78defSmrgdone
7192a4f78defSmrg
7193a4f78defSmrg  if test "x$ac_ct_AR" = x; then
7194a4f78defSmrg    AR="false"
7195a4f78defSmrg  else
7196a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
7197a4f78defSmrgyes:)
7198a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200a4f78defSmrgac_tool_warned=yes ;;
7201a4f78defSmrgesac
7202a4f78defSmrg    AR=$ac_ct_AR
7203a4f78defSmrg  fi
7204a4f78defSmrgfi
7205a4f78defSmrg
7206a4f78defSmrg: ${AR=ar}
7207a4f78defSmrg: ${AR_FLAGS=cru}
7208a4f78defSmrg
7209a4f78defSmrg
7210a4f78defSmrg
7211a4f78defSmrg
7212a4f78defSmrg
7213a4f78defSmrg
7214a4f78defSmrg
7215a4f78defSmrg
7216a4f78defSmrg
7217a4f78defSmrg
7218a4f78defSmrg
7219a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7220a4f78defSmrg$as_echo_n "checking for archiver @FILE support... " >&6; }
7221a4f78defSmrgif ${lt_cv_ar_at_file+:} false; then :
7222a4f78defSmrg  $as_echo_n "(cached) " >&6
7223a4f78defSmrgelse
7224a4f78defSmrg  lt_cv_ar_at_file=no
7225a4f78defSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226a4f78defSmrg/* end confdefs.h.  */
7227a4f78defSmrg
7228a4f78defSmrgint
7229a4f78defSmrgmain ()
7230a4f78defSmrg{
7231a4f78defSmrg
7232a4f78defSmrg  ;
7233a4f78defSmrg  return 0;
7234a4f78defSmrg}
7235a4f78defSmrg_ACEOF
7236a4f78defSmrgif ac_fn_c_try_compile "$LINENO"; then :
7237a4f78defSmrg  echo conftest.$ac_objext > conftest.lst
7238a4f78defSmrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7239a4f78defSmrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7240a4f78defSmrg  (eval $lt_ar_try) 2>&5
7241a4f78defSmrg  ac_status=$?
7242a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243a4f78defSmrg  test $ac_status = 0; }
7244a4f78defSmrg      if test 0 -eq "$ac_status"; then
7245a4f78defSmrg	# Ensure the archiver fails upon bogus file names.
7246a4f78defSmrg	rm -f conftest.$ac_objext libconftest.a
7247a4f78defSmrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7248a4f78defSmrg  (eval $lt_ar_try) 2>&5
7249a4f78defSmrg  ac_status=$?
7250a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251a4f78defSmrg  test $ac_status = 0; }
7252a4f78defSmrg	if test 0 -ne "$ac_status"; then
7253a4f78defSmrg          lt_cv_ar_at_file=@
7254a4f78defSmrg        fi
7255a4f78defSmrg      fi
7256a4f78defSmrg      rm -f conftest.* libconftest.a
7257a4f78defSmrg
7258a4f78defSmrgfi
7259a4f78defSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260a4f78defSmrg
7261a4f78defSmrgfi
7262a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7263a4f78defSmrg$as_echo "$lt_cv_ar_at_file" >&6; }
7264a4f78defSmrg
7265a4f78defSmrgif test no = "$lt_cv_ar_at_file"; then
7266a4f78defSmrg  archiver_list_spec=
7267a4f78defSmrgelse
7268a4f78defSmrg  archiver_list_spec=$lt_cv_ar_at_file
7269a4f78defSmrgfi
7270a4f78defSmrg
7271a4f78defSmrg
7272a4f78defSmrg
7273a4f78defSmrg
7274a4f78defSmrg
7275a4f78defSmrg
7276a4f78defSmrg
7277a4f78defSmrgif test -n "$ac_tool_prefix"; then
7278a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279a4f78defSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
7280a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7282a4f78defSmrgif ${ac_cv_prog_STRIP+:} false; then :
7283a4f78defSmrg  $as_echo_n "(cached) " >&6
7284a4f78defSmrgelse
7285a4f78defSmrg  if test -n "$STRIP"; then
7286a4f78defSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287a4f78defSmrgelse
7288a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289a4f78defSmrgfor as_dir in $PATH
7290a4f78defSmrgdo
7291a4f78defSmrg  IFS=$as_save_IFS
7292a4f78defSmrg  test -z "$as_dir" && as_dir=.
7293a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7294a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295a4f78defSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297a4f78defSmrg    break 2
7298a4f78defSmrg  fi
7299a4f78defSmrgdone
7300a4f78defSmrg  done
7301a4f78defSmrgIFS=$as_save_IFS
7302a4f78defSmrg
7303a4f78defSmrgfi
7304a4f78defSmrgfi
7305a4f78defSmrgSTRIP=$ac_cv_prog_STRIP
7306a4f78defSmrgif test -n "$STRIP"; then
7307a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7308a4f78defSmrg$as_echo "$STRIP" >&6; }
7309a4f78defSmrgelse
7310a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311a4f78defSmrg$as_echo "no" >&6; }
7312a4f78defSmrgfi
7313a4f78defSmrg
7314a4f78defSmrg
7315a4f78defSmrgfi
7316a4f78defSmrgif test -z "$ac_cv_prog_STRIP"; then
7317a4f78defSmrg  ac_ct_STRIP=$STRIP
7318a4f78defSmrg  # Extract the first word of "strip", so it can be a program name with args.
7319a4f78defSmrgset dummy strip; ac_word=$2
7320a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7322a4f78defSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7323a4f78defSmrg  $as_echo_n "(cached) " >&6
7324a4f78defSmrgelse
7325a4f78defSmrg  if test -n "$ac_ct_STRIP"; then
7326a4f78defSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7327a4f78defSmrgelse
7328a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329a4f78defSmrgfor as_dir in $PATH
7330a4f78defSmrgdo
7331a4f78defSmrg  IFS=$as_save_IFS
7332a4f78defSmrg  test -z "$as_dir" && as_dir=.
7333a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7334a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335a4f78defSmrg    ac_cv_prog_ac_ct_STRIP="strip"
7336a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337a4f78defSmrg    break 2
7338a4f78defSmrg  fi
7339a4f78defSmrgdone
7340a4f78defSmrg  done
7341a4f78defSmrgIFS=$as_save_IFS
7342a4f78defSmrg
7343a4f78defSmrgfi
7344a4f78defSmrgfi
7345a4f78defSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7346a4f78defSmrgif test -n "$ac_ct_STRIP"; then
7347a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7348a4f78defSmrg$as_echo "$ac_ct_STRIP" >&6; }
7349a4f78defSmrgelse
7350a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351a4f78defSmrg$as_echo "no" >&6; }
7352a4f78defSmrgfi
7353a4f78defSmrg
7354a4f78defSmrg  if test "x$ac_ct_STRIP" = x; then
7355a4f78defSmrg    STRIP=":"
7356a4f78defSmrg  else
7357a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
7358a4f78defSmrgyes:)
7359a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361a4f78defSmrgac_tool_warned=yes ;;
7362a4f78defSmrgesac
7363a4f78defSmrg    STRIP=$ac_ct_STRIP
7364a4f78defSmrg  fi
7365a4f78defSmrgelse
7366a4f78defSmrg  STRIP="$ac_cv_prog_STRIP"
7367a4f78defSmrgfi
7368a4f78defSmrg
7369a4f78defSmrgtest -z "$STRIP" && STRIP=:
7370a4f78defSmrg
7371a4f78defSmrg
7372a4f78defSmrg
7373a4f78defSmrg
7374a4f78defSmrg
7375a4f78defSmrg
7376a4f78defSmrgif test -n "$ac_tool_prefix"; then
7377a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378a4f78defSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
7379a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7381a4f78defSmrgif ${ac_cv_prog_RANLIB+:} false; then :
7382a4f78defSmrg  $as_echo_n "(cached) " >&6
7383a4f78defSmrgelse
7384a4f78defSmrg  if test -n "$RANLIB"; then
7385a4f78defSmrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7386a4f78defSmrgelse
7387a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388a4f78defSmrgfor as_dir in $PATH
7389a4f78defSmrgdo
7390a4f78defSmrg  IFS=$as_save_IFS
7391a4f78defSmrg  test -z "$as_dir" && as_dir=.
7392a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7393a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394a4f78defSmrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7395a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396a4f78defSmrg    break 2
7397a4f78defSmrg  fi
7398a4f78defSmrgdone
7399a4f78defSmrg  done
7400a4f78defSmrgIFS=$as_save_IFS
7401a4f78defSmrg
7402a4f78defSmrgfi
7403a4f78defSmrgfi
7404a4f78defSmrgRANLIB=$ac_cv_prog_RANLIB
7405a4f78defSmrgif test -n "$RANLIB"; then
7406a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7407a4f78defSmrg$as_echo "$RANLIB" >&6; }
7408a4f78defSmrgelse
7409a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410a4f78defSmrg$as_echo "no" >&6; }
7411a4f78defSmrgfi
7412a4f78defSmrg
7413a4f78defSmrg
7414a4f78defSmrgfi
7415a4f78defSmrgif test -z "$ac_cv_prog_RANLIB"; then
7416a4f78defSmrg  ac_ct_RANLIB=$RANLIB
7417a4f78defSmrg  # Extract the first word of "ranlib", so it can be a program name with args.
7418a4f78defSmrgset dummy ranlib; ac_word=$2
7419a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
7421a4f78defSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7422a4f78defSmrg  $as_echo_n "(cached) " >&6
7423a4f78defSmrgelse
7424a4f78defSmrg  if test -n "$ac_ct_RANLIB"; then
7425a4f78defSmrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7426a4f78defSmrgelse
7427a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428a4f78defSmrgfor as_dir in $PATH
7429a4f78defSmrgdo
7430a4f78defSmrg  IFS=$as_save_IFS
7431a4f78defSmrg  test -z "$as_dir" && as_dir=.
7432a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7433a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434a4f78defSmrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
7435a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436a4f78defSmrg    break 2
7437a4f78defSmrg  fi
7438a4f78defSmrgdone
7439a4f78defSmrg  done
7440a4f78defSmrgIFS=$as_save_IFS
7441a4f78defSmrg
7442a4f78defSmrgfi
7443a4f78defSmrgfi
7444a4f78defSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7445a4f78defSmrgif test -n "$ac_ct_RANLIB"; then
7446a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7447a4f78defSmrg$as_echo "$ac_ct_RANLIB" >&6; }
7448a4f78defSmrgelse
7449a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450a4f78defSmrg$as_echo "no" >&6; }
7451a4f78defSmrgfi
7452a4f78defSmrg
7453a4f78defSmrg  if test "x$ac_ct_RANLIB" = x; then
7454a4f78defSmrg    RANLIB=":"
7455a4f78defSmrg  else
7456a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
7457a4f78defSmrgyes:)
7458a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7459a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7460a4f78defSmrgac_tool_warned=yes ;;
7461a4f78defSmrgesac
7462a4f78defSmrg    RANLIB=$ac_ct_RANLIB
7463a4f78defSmrg  fi
7464a4f78defSmrgelse
7465a4f78defSmrg  RANLIB="$ac_cv_prog_RANLIB"
7466a4f78defSmrgfi
7467a4f78defSmrg
7468a4f78defSmrgtest -z "$RANLIB" && RANLIB=:
7469a4f78defSmrg
7470a4f78defSmrg
7471a4f78defSmrg
7472a4f78defSmrg
7473a4f78defSmrg
7474a4f78defSmrg
7475a4f78defSmrg# Determine commands to create old-style static archives.
7476a4f78defSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7477a4f78defSmrgold_postinstall_cmds='chmod 644 $oldlib'
7478a4f78defSmrgold_postuninstall_cmds=
7479a4f78defSmrg
7480a4f78defSmrgif test -n "$RANLIB"; then
7481a4f78defSmrg  case $host_os in
7482a4f78defSmrg  bitrig* | openbsd*)
7483a4f78defSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7484a4f78defSmrg    ;;
7485a4f78defSmrg  *)
7486a4f78defSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7487a4f78defSmrg    ;;
7488a4f78defSmrg  esac
7489a4f78defSmrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7490a4f78defSmrgfi
7491a4f78defSmrg
7492a4f78defSmrgcase $host_os in
7493a4f78defSmrg  darwin*)
7494a4f78defSmrg    lock_old_archive_extraction=yes ;;
7495a4f78defSmrg  *)
7496a4f78defSmrg    lock_old_archive_extraction=no ;;
7497a4f78defSmrgesac
7498a4f78defSmrg
7499a4f78defSmrg
7500a4f78defSmrg
7501a4f78defSmrg
7502a4f78defSmrg
7503a4f78defSmrg
7504a4f78defSmrg
7505a4f78defSmrg
7506a4f78defSmrg
7507a4f78defSmrg
7508a4f78defSmrg
7509a4f78defSmrg
7510a4f78defSmrg
7511a4f78defSmrg
7512a4f78defSmrg
7513a4f78defSmrg
7514a4f78defSmrg
7515a4f78defSmrg
7516a4f78defSmrg
7517a4f78defSmrg
7518a4f78defSmrg
7519a4f78defSmrg
7520a4f78defSmrg
7521a4f78defSmrg
7522a4f78defSmrg
7523a4f78defSmrg
7524a4f78defSmrg
7525a4f78defSmrg
7526a4f78defSmrg
7527a4f78defSmrg
7528a4f78defSmrg
7529a4f78defSmrg
7530a4f78defSmrg
7531a4f78defSmrg
7532a4f78defSmrg
7533a4f78defSmrg
7534a4f78defSmrg
7535a4f78defSmrg
7536a4f78defSmrg
7537a4f78defSmrg# If no C compiler was specified, use CC.
7538a4f78defSmrgLTCC=${LTCC-"$CC"}
7539a4f78defSmrg
7540a4f78defSmrg# If no C compiler flags were specified, use CFLAGS.
7541a4f78defSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7542a4f78defSmrg
7543a4f78defSmrg# Allow CC to be a program name with arguments.
7544a4f78defSmrgcompiler=$CC
7545a4f78defSmrg
7546a4f78defSmrg
7547a4f78defSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
7548a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7549a4f78defSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7550a4f78defSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
7551a4f78defSmrg  $as_echo_n "(cached) " >&6
7552a4f78defSmrgelse
7553a4f78defSmrg
7554a4f78defSmrg# These are sane defaults that work on at least a few old systems.
7555a4f78defSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7556a4f78defSmrg
7557a4f78defSmrg# Character class describing NM global symbol codes.
7558a4f78defSmrgsymcode='[BCDEGRST]'
7559a4f78defSmrg
7560a4f78defSmrg# Regexp to match symbols that can be accessed directly from C.
7561a4f78defSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7562a4f78defSmrg
7563a4f78defSmrg# Define system-specific variables.
7564a4f78defSmrgcase $host_os in
7565a4f78defSmrgaix*)
7566a4f78defSmrg  symcode='[BCDT]'
7567a4f78defSmrg  ;;
7568a4f78defSmrgcygwin* | mingw* | pw32* | cegcc*)
7569a4f78defSmrg  symcode='[ABCDGISTW]'
7570a4f78defSmrg  ;;
7571a4f78defSmrghpux*)
7572a4f78defSmrg  if test ia64 = "$host_cpu"; then
7573a4f78defSmrg    symcode='[ABCDEGRST]'
7574a4f78defSmrg  fi
7575a4f78defSmrg  ;;
7576a4f78defSmrgirix* | nonstopux*)
7577a4f78defSmrg  symcode='[BCDEGRST]'
7578a4f78defSmrg  ;;
7579a4f78defSmrgosf*)
7580a4f78defSmrg  symcode='[BCDEGQRST]'
7581a4f78defSmrg  ;;
7582a4f78defSmrgsolaris*)
7583a4f78defSmrg  symcode='[BDRT]'
7584a4f78defSmrg  ;;
7585a4f78defSmrgsco3.2v5*)
7586a4f78defSmrg  symcode='[DT]'
7587a4f78defSmrg  ;;
7588a4f78defSmrgsysv4.2uw2*)
7589a4f78defSmrg  symcode='[DT]'
7590a4f78defSmrg  ;;
7591a4f78defSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
7592a4f78defSmrg  symcode='[ABDT]'
7593a4f78defSmrg  ;;
7594a4f78defSmrgsysv4)
7595a4f78defSmrg  symcode='[DFNSTU]'
7596a4f78defSmrg  ;;
7597a4f78defSmrgesac
7598a4f78defSmrg
7599a4f78defSmrg# If we're using GNU nm, then use its standard symbol codes.
7600a4f78defSmrgcase `$NM -V 2>&1` in
7601a4f78defSmrg*GNU* | *'with BFD'*)
7602a4f78defSmrg  symcode='[ABCDGIRSTW]' ;;
7603a4f78defSmrgesac
7604a4f78defSmrg
7605a4f78defSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
7606a4f78defSmrg  # Gets list of data symbols to import.
7607a4f78defSmrg  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7608a4f78defSmrg  # Adjust the below global symbol transforms to fixup imported variables.
7609a4f78defSmrg  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7610a4f78defSmrg  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7611a4f78defSmrg  lt_c_name_lib_hook="\
7612a4f78defSmrg  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7613a4f78defSmrg  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7614a4f78defSmrgelse
7615a4f78defSmrg  # Disable hooks by default.
7616a4f78defSmrg  lt_cv_sys_global_symbol_to_import=
7617a4f78defSmrg  lt_cdecl_hook=
7618a4f78defSmrg  lt_c_name_hook=
7619a4f78defSmrg  lt_c_name_lib_hook=
7620a4f78defSmrgfi
7621a4f78defSmrg
7622a4f78defSmrg# Transform an extracted symbol line into a proper C declaration.
7623a4f78defSmrg# Some systems (esp. on ia64) link data and code symbols differently,
7624a4f78defSmrg# so use this general approach.
7625a4f78defSmrglt_cv_sys_global_symbol_to_cdecl="sed -n"\
7626a4f78defSmrg$lt_cdecl_hook\
7627a4f78defSmrg" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7628a4f78defSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7629a4f78defSmrg
7630a4f78defSmrg# Transform an extracted symbol line into symbol name and symbol address
7631a4f78defSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7632a4f78defSmrg$lt_c_name_hook\
7633a4f78defSmrg" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7634a4f78defSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7635a4f78defSmrg
7636a4f78defSmrg# Transform an extracted symbol line into symbol name with lib prefix and
7637a4f78defSmrg# symbol address.
7638a4f78defSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7639a4f78defSmrg$lt_c_name_lib_hook\
7640a4f78defSmrg" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7641a4f78defSmrg" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7642a4f78defSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7643a4f78defSmrg
7644a4f78defSmrg# Handle CRLF in mingw tool chain
7645a4f78defSmrgopt_cr=
7646a4f78defSmrgcase $build_os in
7647a4f78defSmrgmingw*)
7648a4f78defSmrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7649a4f78defSmrg  ;;
7650a4f78defSmrgesac
7651a4f78defSmrg
7652a4f78defSmrg# Try without a prefix underscore, then with it.
7653a4f78defSmrgfor ac_symprfx in "" "_"; do
7654a4f78defSmrg
7655a4f78defSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7656a4f78defSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
7657a4f78defSmrg
7658a4f78defSmrg  # Write the raw and C identifiers.
7659a4f78defSmrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7660a4f78defSmrg    # Fake it for dumpbin and say T for any non-static function,
7661a4f78defSmrg    # D for any global variable and I for any imported variable.
7662a4f78defSmrg    # Also find C++ and __fastcall symbols from MSVC++,
7663a4f78defSmrg    # which start with @ or ?.
7664a4f78defSmrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
7665a4f78defSmrg"     {last_section=section; section=\$ 3};"\
7666a4f78defSmrg"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7667a4f78defSmrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7668a4f78defSmrg"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7669a4f78defSmrg"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7670a4f78defSmrg"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7671a4f78defSmrg"     \$ 0!~/External *\|/{next};"\
7672a4f78defSmrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7673a4f78defSmrg"     {if(hide[section]) next};"\
7674a4f78defSmrg"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7675a4f78defSmrg"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7676a4f78defSmrg"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7677a4f78defSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7678a4f78defSmrg"     ' prfx=^$ac_symprfx"
7679a4f78defSmrg  else
7680a4f78defSmrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7681a4f78defSmrg  fi
7682a4f78defSmrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7683a4f78defSmrg
7684a4f78defSmrg  # Check to see that the pipe works correctly.
7685a4f78defSmrg  pipe_works=no
7686a4f78defSmrg
7687a4f78defSmrg  rm -f conftest*
7688a4f78defSmrg  cat > conftest.$ac_ext <<_LT_EOF
7689a4f78defSmrg#ifdef __cplusplus
7690a4f78defSmrgextern "C" {
7691a4f78defSmrg#endif
7692a4f78defSmrgchar nm_test_var;
7693a4f78defSmrgvoid nm_test_func(void);
7694a4f78defSmrgvoid nm_test_func(void){}
7695a4f78defSmrg#ifdef __cplusplus
7696a4f78defSmrg}
7697a4f78defSmrg#endif
7698a4f78defSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
7699a4f78defSmrg_LT_EOF
7700a4f78defSmrg
7701a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7702a4f78defSmrg  (eval $ac_compile) 2>&5
7703a4f78defSmrg  ac_status=$?
7704a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705a4f78defSmrg  test $ac_status = 0; }; then
7706a4f78defSmrg    # Now try to grab the symbols.
7707a4f78defSmrg    nlist=conftest.nm
7708a4f78defSmrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7709a4f78defSmrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7710a4f78defSmrg  ac_status=$?
7711a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712a4f78defSmrg  test $ac_status = 0; } && test -s "$nlist"; then
7713a4f78defSmrg      # Try sorting and uniquifying the output.
7714a4f78defSmrg      if sort "$nlist" | uniq > "$nlist"T; then
7715a4f78defSmrg	mv -f "$nlist"T "$nlist"
7716a4f78defSmrg      else
7717a4f78defSmrg	rm -f "$nlist"T
7718a4f78defSmrg      fi
7719a4f78defSmrg
7720a4f78defSmrg      # Make sure that we snagged all the symbols we need.
7721a4f78defSmrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7722a4f78defSmrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7723a4f78defSmrg	  cat <<_LT_EOF > conftest.$ac_ext
7724a4f78defSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7725a4f78defSmrg#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7726a4f78defSmrg/* DATA imports from DLLs on WIN32 can't be const, because runtime
7727a4f78defSmrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7728a4f78defSmrg# define LT_DLSYM_CONST
7729a4f78defSmrg#elif defined __osf__
7730a4f78defSmrg/* This system does not cope well with relocations in const data.  */
7731a4f78defSmrg# define LT_DLSYM_CONST
7732a4f78defSmrg#else
7733a4f78defSmrg# define LT_DLSYM_CONST const
7734a4f78defSmrg#endif
7735a4f78defSmrg
7736a4f78defSmrg#ifdef __cplusplus
7737a4f78defSmrgextern "C" {
7738a4f78defSmrg#endif
7739a4f78defSmrg
7740a4f78defSmrg_LT_EOF
7741a4f78defSmrg	  # Now generate the symbol file.
7742a4f78defSmrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7743a4f78defSmrg
7744a4f78defSmrg	  cat <<_LT_EOF >> conftest.$ac_ext
7745a4f78defSmrg
7746a4f78defSmrg/* The mapping between symbol names and symbols.  */
7747a4f78defSmrgLT_DLSYM_CONST struct {
7748a4f78defSmrg  const char *name;
7749a4f78defSmrg  void       *address;
7750a4f78defSmrg}
7751a4f78defSmrglt__PROGRAM__LTX_preloaded_symbols[] =
7752a4f78defSmrg{
7753a4f78defSmrg  { "@PROGRAM@", (void *) 0 },
7754a4f78defSmrg_LT_EOF
7755a4f78defSmrg	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7756a4f78defSmrg	  cat <<\_LT_EOF >> conftest.$ac_ext
7757a4f78defSmrg  {0, (void *) 0}
7758a4f78defSmrg};
7759a4f78defSmrg
7760a4f78defSmrg/* This works around a problem in FreeBSD linker */
7761a4f78defSmrg#ifdef FREEBSD_WORKAROUND
7762a4f78defSmrgstatic const void *lt_preloaded_setup() {
7763a4f78defSmrg  return lt__PROGRAM__LTX_preloaded_symbols;
7764a4f78defSmrg}
7765a4f78defSmrg#endif
7766a4f78defSmrg
7767a4f78defSmrg#ifdef __cplusplus
7768a4f78defSmrg}
7769a4f78defSmrg#endif
7770a4f78defSmrg_LT_EOF
7771a4f78defSmrg	  # Now try linking the two files.
7772a4f78defSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
7773a4f78defSmrg	  lt_globsym_save_LIBS=$LIBS
7774a4f78defSmrg	  lt_globsym_save_CFLAGS=$CFLAGS
7775a4f78defSmrg	  LIBS=conftstm.$ac_objext
7776a4f78defSmrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7777a4f78defSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7778a4f78defSmrg  (eval $ac_link) 2>&5
7779a4f78defSmrg  ac_status=$?
7780a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781a4f78defSmrg  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7782a4f78defSmrg	    pipe_works=yes
7783a4f78defSmrg	  fi
7784a4f78defSmrg	  LIBS=$lt_globsym_save_LIBS
7785a4f78defSmrg	  CFLAGS=$lt_globsym_save_CFLAGS
7786a4f78defSmrg	else
7787a4f78defSmrg	  echo "cannot find nm_test_func in $nlist" >&5
7788a4f78defSmrg	fi
7789a4f78defSmrg      else
7790a4f78defSmrg	echo "cannot find nm_test_var in $nlist" >&5
7791a4f78defSmrg      fi
7792a4f78defSmrg    else
7793a4f78defSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7794a4f78defSmrg    fi
7795a4f78defSmrg  else
7796a4f78defSmrg    echo "$progname: failed program was:" >&5
7797a4f78defSmrg    cat conftest.$ac_ext >&5
7798a4f78defSmrg  fi
7799a4f78defSmrg  rm -rf conftest* conftst*
7800a4f78defSmrg
7801a4f78defSmrg  # Do not use the global_symbol_pipe unless it works.
7802a4f78defSmrg  if test yes = "$pipe_works"; then
7803a4f78defSmrg    break
7804a4f78defSmrg  else
7805a4f78defSmrg    lt_cv_sys_global_symbol_pipe=
7806a4f78defSmrg  fi
7807a4f78defSmrgdone
7808a4f78defSmrg
7809a4f78defSmrgfi
7810a4f78defSmrg
7811a4f78defSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
7812a4f78defSmrg  lt_cv_sys_global_symbol_to_cdecl=
7813a4f78defSmrgfi
7814a4f78defSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7815a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7816a4f78defSmrg$as_echo "failed" >&6; }
7817a4f78defSmrgelse
7818a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7819a4f78defSmrg$as_echo "ok" >&6; }
7820a4f78defSmrgfi
7821a4f78defSmrg
7822a4f78defSmrg# Response file support.
7823a4f78defSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
7824a4f78defSmrg  nm_file_list_spec='@'
7825a4f78defSmrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7826a4f78defSmrg  nm_file_list_spec='@'
7827a4f78defSmrgfi
7828a4f78defSmrg
7829a4f78defSmrg
7830a4f78defSmrg
7831a4f78defSmrg
7832a4f78defSmrg
7833a4f78defSmrg
7834a4f78defSmrg
7835a4f78defSmrg
7836a4f78defSmrg
7837a4f78defSmrg
7838a4f78defSmrg
7839a4f78defSmrg
7840a4f78defSmrg
7841a4f78defSmrg
7842a4f78defSmrg
7843a4f78defSmrg
7844a4f78defSmrg
7845a4f78defSmrg
7846a4f78defSmrg
7847a4f78defSmrg
7848a4f78defSmrg
7849a4f78defSmrg
7850a4f78defSmrg
7851a4f78defSmrg
7852a4f78defSmrg
7853a4f78defSmrg
7854a4f78defSmrg
7855a4f78defSmrg
7856a4f78defSmrg
7857a4f78defSmrg
7858a4f78defSmrg
7859a4f78defSmrg
7860a4f78defSmrg
7861a4f78defSmrg
7862a4f78defSmrg
7863a4f78defSmrg
7864a4f78defSmrg
7865a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7866a4f78defSmrg$as_echo_n "checking for sysroot... " >&6; }
7867a4f78defSmrg
7868a4f78defSmrg# Check whether --with-sysroot was given.
7869a4f78defSmrgif test "${with_sysroot+set}" = set; then :
7870a4f78defSmrg  withval=$with_sysroot;
7871a4f78defSmrgelse
7872a4f78defSmrg  with_sysroot=no
7873a4f78defSmrgfi
7874a4f78defSmrg
7875a4f78defSmrg
7876a4f78defSmrglt_sysroot=
7877a4f78defSmrgcase $with_sysroot in #(
7878a4f78defSmrg yes)
7879a4f78defSmrg   if test yes = "$GCC"; then
7880a4f78defSmrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7881a4f78defSmrg   fi
7882a4f78defSmrg   ;; #(
7883a4f78defSmrg /*)
7884a4f78defSmrg   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7885a4f78defSmrg   ;; #(
7886a4f78defSmrg no|'')
7887a4f78defSmrg   ;; #(
7888a4f78defSmrg *)
7889a4f78defSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7890a4f78defSmrg$as_echo "$with_sysroot" >&6; }
7891a4f78defSmrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7892a4f78defSmrg   ;;
7893a4f78defSmrgesac
7894a4f78defSmrg
7895a4f78defSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7896a4f78defSmrg$as_echo "${lt_sysroot:-no}" >&6; }
7897a4f78defSmrg
7898a4f78defSmrg
7899a4f78defSmrg
7900a4f78defSmrg
7901a4f78defSmrg
7902a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7903a4f78defSmrg$as_echo_n "checking for a working dd... " >&6; }
7904a4f78defSmrgif ${ac_cv_path_lt_DD+:} false; then :
7905a4f78defSmrg  $as_echo_n "(cached) " >&6
7906a4f78defSmrgelse
7907a4f78defSmrg  printf 0123456789abcdef0123456789abcdef >conftest.i
7908a4f78defSmrgcat conftest.i conftest.i >conftest2.i
7909a4f78defSmrg: ${lt_DD:=$DD}
7910a4f78defSmrgif test -z "$lt_DD"; then
7911a4f78defSmrg  ac_path_lt_DD_found=false
7912a4f78defSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
7913a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914a4f78defSmrgfor as_dir in $PATH
7915a4f78defSmrgdo
7916a4f78defSmrg  IFS=$as_save_IFS
7917a4f78defSmrg  test -z "$as_dir" && as_dir=.
7918a4f78defSmrg    for ac_prog in dd; do
7919a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
7920a4f78defSmrg      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7921a4f78defSmrg      as_fn_executable_p "$ac_path_lt_DD" || continue
7922a4f78defSmrgif "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7923a4f78defSmrg  cmp -s conftest.i conftest.out \
7924a4f78defSmrg  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7925a4f78defSmrgfi
7926a4f78defSmrg      $ac_path_lt_DD_found && break 3
7927a4f78defSmrg    done
7928a4f78defSmrg  done
7929a4f78defSmrg  done
7930a4f78defSmrgIFS=$as_save_IFS
7931a4f78defSmrg  if test -z "$ac_cv_path_lt_DD"; then
7932a4f78defSmrg    :
7933a4f78defSmrg  fi
7934a4f78defSmrgelse
7935a4f78defSmrg  ac_cv_path_lt_DD=$lt_DD
7936a4f78defSmrgfi
7937a4f78defSmrg
7938a4f78defSmrgrm -f conftest.i conftest2.i conftest.out
7939a4f78defSmrgfi
7940a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7941a4f78defSmrg$as_echo "$ac_cv_path_lt_DD" >&6; }
7942a4f78defSmrg
7943a4f78defSmrg
7944a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7945a4f78defSmrg$as_echo_n "checking how to truncate binary pipes... " >&6; }
7946a4f78defSmrgif ${lt_cv_truncate_bin+:} false; then :
7947a4f78defSmrg  $as_echo_n "(cached) " >&6
7948a4f78defSmrgelse
7949a4f78defSmrg  printf 0123456789abcdef0123456789abcdef >conftest.i
7950a4f78defSmrgcat conftest.i conftest.i >conftest2.i
7951a4f78defSmrglt_cv_truncate_bin=
7952a4f78defSmrgif "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7953a4f78defSmrg  cmp -s conftest.i conftest.out \
7954a4f78defSmrg  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7955a4f78defSmrgfi
7956a4f78defSmrgrm -f conftest.i conftest2.i conftest.out
7957a4f78defSmrgtest -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7958a4f78defSmrgfi
7959a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7960a4f78defSmrg$as_echo "$lt_cv_truncate_bin" >&6; }
7961a4f78defSmrg
7962a4f78defSmrg
7963a4f78defSmrg
7964a4f78defSmrg
7965a4f78defSmrg
7966a4f78defSmrg
7967a4f78defSmrg
7968a4f78defSmrg# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7969a4f78defSmrgfunc_cc_basename ()
7970a4f78defSmrg{
7971a4f78defSmrg    for cc_temp in $*""; do
7972a4f78defSmrg      case $cc_temp in
7973a4f78defSmrg        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974a4f78defSmrg        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7975a4f78defSmrg        \-*) ;;
7976a4f78defSmrg        *) break;;
7977a4f78defSmrg      esac
7978a4f78defSmrg    done
7979a4f78defSmrg    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980a4f78defSmrg}
7981a4f78defSmrg
7982a4f78defSmrg# Check whether --enable-libtool-lock was given.
7983a4f78defSmrgif test "${enable_libtool_lock+set}" = set; then :
7984a4f78defSmrg  enableval=$enable_libtool_lock;
7985a4f78defSmrgfi
7986a4f78defSmrg
7987a4f78defSmrgtest no = "$enable_libtool_lock" || enable_libtool_lock=yes
7988a4f78defSmrg
7989a4f78defSmrg# Some flags need to be propagated to the compiler or linker for good
7990a4f78defSmrg# libtool support.
7991a4f78defSmrgcase $host in
7992a4f78defSmrgia64-*-hpux*)
7993a4f78defSmrg  # Find out what ABI is being produced by ac_compile, and set mode
7994a4f78defSmrg  # options accordingly.
7995a4f78defSmrg  echo 'int i;' > conftest.$ac_ext
7996a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997a4f78defSmrg  (eval $ac_compile) 2>&5
7998a4f78defSmrg  ac_status=$?
7999a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000a4f78defSmrg  test $ac_status = 0; }; then
8001a4f78defSmrg    case `/usr/bin/file conftest.$ac_objext` in
8002a4f78defSmrg      *ELF-32*)
8003a4f78defSmrg	HPUX_IA64_MODE=32
8004a4f78defSmrg	;;
8005a4f78defSmrg      *ELF-64*)
8006a4f78defSmrg	HPUX_IA64_MODE=64
8007a4f78defSmrg	;;
8008a4f78defSmrg    esac
8009a4f78defSmrg  fi
8010a4f78defSmrg  rm -rf conftest*
8011a4f78defSmrg  ;;
8012a4f78defSmrg*-*-irix6*)
8013a4f78defSmrg  # Find out what ABI is being produced by ac_compile, and set linker
8014a4f78defSmrg  # options accordingly.
8015a4f78defSmrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8016a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8017a4f78defSmrg  (eval $ac_compile) 2>&5
8018a4f78defSmrg  ac_status=$?
8019a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020a4f78defSmrg  test $ac_status = 0; }; then
8021a4f78defSmrg    if test yes = "$lt_cv_prog_gnu_ld"; then
8022a4f78defSmrg      case `/usr/bin/file conftest.$ac_objext` in
8023a4f78defSmrg	*32-bit*)
8024a4f78defSmrg	  LD="${LD-ld} -melf32bsmip"
8025a4f78defSmrg	  ;;
8026a4f78defSmrg	*N32*)
8027a4f78defSmrg	  LD="${LD-ld} -melf32bmipn32"
8028a4f78defSmrg	  ;;
8029a4f78defSmrg	*64-bit*)
8030a4f78defSmrg	  LD="${LD-ld} -melf64bmip"
8031a4f78defSmrg	;;
8032a4f78defSmrg      esac
8033a4f78defSmrg    else
8034a4f78defSmrg      case `/usr/bin/file conftest.$ac_objext` in
8035a4f78defSmrg	*32-bit*)
8036a4f78defSmrg	  LD="${LD-ld} -32"
8037a4f78defSmrg	  ;;
8038a4f78defSmrg	*N32*)
8039a4f78defSmrg	  LD="${LD-ld} -n32"
8040a4f78defSmrg	  ;;
8041a4f78defSmrg	*64-bit*)
8042a4f78defSmrg	  LD="${LD-ld} -64"
8043a4f78defSmrg	  ;;
8044a4f78defSmrg      esac
8045a4f78defSmrg    fi
8046a4f78defSmrg  fi
8047a4f78defSmrg  rm -rf conftest*
8048a4f78defSmrg  ;;
8049a4f78defSmrg
8050a4f78defSmrgmips64*-*linux*)
8051a4f78defSmrg  # Find out what ABI is being produced by ac_compile, and set linker
8052a4f78defSmrg  # options accordingly.
8053a4f78defSmrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8054a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055a4f78defSmrg  (eval $ac_compile) 2>&5
8056a4f78defSmrg  ac_status=$?
8057a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058a4f78defSmrg  test $ac_status = 0; }; then
8059a4f78defSmrg    emul=elf
8060a4f78defSmrg    case `/usr/bin/file conftest.$ac_objext` in
8061a4f78defSmrg      *32-bit*)
8062a4f78defSmrg	emul="${emul}32"
8063a4f78defSmrg	;;
8064a4f78defSmrg      *64-bit*)
8065a4f78defSmrg	emul="${emul}64"
8066a4f78defSmrg	;;
8067a4f78defSmrg    esac
8068a4f78defSmrg    case `/usr/bin/file conftest.$ac_objext` in
8069a4f78defSmrg      *MSB*)
8070a4f78defSmrg	emul="${emul}btsmip"
8071a4f78defSmrg	;;
8072a4f78defSmrg      *LSB*)
8073a4f78defSmrg	emul="${emul}ltsmip"
8074a4f78defSmrg	;;
8075a4f78defSmrg    esac
8076a4f78defSmrg    case `/usr/bin/file conftest.$ac_objext` in
8077a4f78defSmrg      *N32*)
8078a4f78defSmrg	emul="${emul}n32"
8079a4f78defSmrg	;;
8080a4f78defSmrg    esac
8081a4f78defSmrg    LD="${LD-ld} -m $emul"
8082a4f78defSmrg  fi
8083a4f78defSmrg  rm -rf conftest*
8084a4f78defSmrg  ;;
8085a4f78defSmrg
8086a4f78defSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8087a4f78defSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8088a4f78defSmrg  # Find out what ABI is being produced by ac_compile, and set linker
8089a4f78defSmrg  # options accordingly.  Note that the listed cases only cover the
8090a4f78defSmrg  # situations where additional linker options are needed (such as when
8091a4f78defSmrg  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8092a4f78defSmrg  # vice versa); the common cases where no linker options are needed do
8093a4f78defSmrg  # not appear in the list.
8094a4f78defSmrg  echo 'int i;' > conftest.$ac_ext
8095a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8096a4f78defSmrg  (eval $ac_compile) 2>&5
8097a4f78defSmrg  ac_status=$?
8098a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8099a4f78defSmrg  test $ac_status = 0; }; then
8100a4f78defSmrg    case `/usr/bin/file conftest.o` in
8101a4f78defSmrg      *32-bit*)
8102a4f78defSmrg	case $host in
8103a4f78defSmrg	  x86_64-*kfreebsd*-gnu)
8104a4f78defSmrg	    LD="${LD-ld} -m elf_i386_fbsd"
8105a4f78defSmrg	    ;;
8106a4f78defSmrg	  x86_64-*linux*)
8107a4f78defSmrg	    case `/usr/bin/file conftest.o` in
8108a4f78defSmrg	      *x86-64*)
8109a4f78defSmrg		LD="${LD-ld} -m elf32_x86_64"
8110a4f78defSmrg		;;
8111a4f78defSmrg	      *)
8112a4f78defSmrg		LD="${LD-ld} -m elf_i386"
8113a4f78defSmrg		;;
8114a4f78defSmrg	    esac
8115a4f78defSmrg	    ;;
8116a4f78defSmrg	  powerpc64le-*linux*)
8117a4f78defSmrg	    LD="${LD-ld} -m elf32lppclinux"
8118a4f78defSmrg	    ;;
8119a4f78defSmrg	  powerpc64-*linux*)
8120a4f78defSmrg	    LD="${LD-ld} -m elf32ppclinux"
8121a4f78defSmrg	    ;;
8122a4f78defSmrg	  s390x-*linux*)
8123a4f78defSmrg	    LD="${LD-ld} -m elf_s390"
8124a4f78defSmrg	    ;;
8125a4f78defSmrg	  sparc64-*linux*)
8126a4f78defSmrg	    LD="${LD-ld} -m elf32_sparc"
8127a4f78defSmrg	    ;;
8128a4f78defSmrg	esac
8129a4f78defSmrg	;;
8130a4f78defSmrg      *64-bit*)
8131a4f78defSmrg	case $host in
8132a4f78defSmrg	  x86_64-*kfreebsd*-gnu)
8133a4f78defSmrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
8134a4f78defSmrg	    ;;
8135a4f78defSmrg	  x86_64-*linux*)
8136a4f78defSmrg	    LD="${LD-ld} -m elf_x86_64"
8137a4f78defSmrg	    ;;
8138a4f78defSmrg	  powerpcle-*linux*)
8139a4f78defSmrg	    LD="${LD-ld} -m elf64lppc"
8140a4f78defSmrg	    ;;
8141a4f78defSmrg	  powerpc-*linux*)
8142a4f78defSmrg	    LD="${LD-ld} -m elf64ppc"
8143a4f78defSmrg	    ;;
8144a4f78defSmrg	  s390*-*linux*|s390*-*tpf*)
8145a4f78defSmrg	    LD="${LD-ld} -m elf64_s390"
8146a4f78defSmrg	    ;;
8147a4f78defSmrg	  sparc*-*linux*)
8148a4f78defSmrg	    LD="${LD-ld} -m elf64_sparc"
8149a4f78defSmrg	    ;;
8150a4f78defSmrg	esac
8151a4f78defSmrg	;;
8152a4f78defSmrg    esac
8153a4f78defSmrg  fi
8154a4f78defSmrg  rm -rf conftest*
8155a4f78defSmrg  ;;
8156a4f78defSmrg
8157a4f78defSmrg*-*-sco3.2v5*)
8158a4f78defSmrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8159a4f78defSmrg  SAVE_CFLAGS=$CFLAGS
8160a4f78defSmrg  CFLAGS="$CFLAGS -belf"
8161a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8162a4f78defSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8163a4f78defSmrgif ${lt_cv_cc_needs_belf+:} false; then :
8164a4f78defSmrg  $as_echo_n "(cached) " >&6
8165a4f78defSmrgelse
8166a4f78defSmrg  ac_ext=c
8167a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
8168a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
8171a4f78defSmrg
8172a4f78defSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173a4f78defSmrg/* end confdefs.h.  */
8174a4f78defSmrg
8175a4f78defSmrgint
8176a4f78defSmrgmain ()
8177a4f78defSmrg{
8178a4f78defSmrg
8179a4f78defSmrg  ;
8180a4f78defSmrg  return 0;
8181a4f78defSmrg}
8182a4f78defSmrg_ACEOF
8183a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
8184a4f78defSmrg  lt_cv_cc_needs_belf=yes
8185a4f78defSmrgelse
8186a4f78defSmrg  lt_cv_cc_needs_belf=no
8187a4f78defSmrgfi
8188a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
8189a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
8190a4f78defSmrg     ac_ext=c
8191a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
8192a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
8195a4f78defSmrg
8196a4f78defSmrgfi
8197a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8198a4f78defSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
8199a4f78defSmrg  if test yes != "$lt_cv_cc_needs_belf"; then
8200a4f78defSmrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8201a4f78defSmrg    CFLAGS=$SAVE_CFLAGS
8202a4f78defSmrg  fi
8203a4f78defSmrg  ;;
8204a4f78defSmrg*-*solaris*)
8205a4f78defSmrg  # Find out what ABI is being produced by ac_compile, and set linker
8206a4f78defSmrg  # options accordingly.
8207a4f78defSmrg  echo 'int i;' > conftest.$ac_ext
8208a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8209a4f78defSmrg  (eval $ac_compile) 2>&5
8210a4f78defSmrg  ac_status=$?
8211a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212a4f78defSmrg  test $ac_status = 0; }; then
8213a4f78defSmrg    case `/usr/bin/file conftest.o` in
8214a4f78defSmrg    *64-bit*)
8215a4f78defSmrg      case $lt_cv_prog_gnu_ld in
8216a4f78defSmrg      yes*)
8217a4f78defSmrg        case $host in
8218a4f78defSmrg        i?86-*-solaris*|x86_64-*-solaris*)
8219a4f78defSmrg          LD="${LD-ld} -m elf_x86_64"
8220a4f78defSmrg          ;;
8221a4f78defSmrg        sparc*-*-solaris*)
8222a4f78defSmrg          LD="${LD-ld} -m elf64_sparc"
8223a4f78defSmrg          ;;
8224a4f78defSmrg        esac
8225a4f78defSmrg        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8226a4f78defSmrg        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8227a4f78defSmrg          LD=${LD-ld}_sol2
8228a4f78defSmrg        fi
8229a4f78defSmrg        ;;
8230a4f78defSmrg      *)
8231a4f78defSmrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8232a4f78defSmrg	  LD="${LD-ld} -64"
8233a4f78defSmrg	fi
8234a4f78defSmrg	;;
8235a4f78defSmrg      esac
8236a4f78defSmrg      ;;
8237a4f78defSmrg    esac
8238a4f78defSmrg  fi
8239a4f78defSmrg  rm -rf conftest*
8240a4f78defSmrg  ;;
8241a4f78defSmrgesac
8242a4f78defSmrg
8243a4f78defSmrgneed_locks=$enable_libtool_lock
8244a4f78defSmrg
8245a4f78defSmrgif test -n "$ac_tool_prefix"; then
8246a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8247a4f78defSmrgset dummy ${ac_tool_prefix}mt; ac_word=$2
8248a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8250a4f78defSmrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8251a4f78defSmrg  $as_echo_n "(cached) " >&6
8252a4f78defSmrgelse
8253a4f78defSmrg  if test -n "$MANIFEST_TOOL"; then
8254a4f78defSmrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8255a4f78defSmrgelse
8256a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257a4f78defSmrgfor as_dir in $PATH
8258a4f78defSmrgdo
8259a4f78defSmrg  IFS=$as_save_IFS
8260a4f78defSmrg  test -z "$as_dir" && as_dir=.
8261a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8262a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263a4f78defSmrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8264a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265a4f78defSmrg    break 2
8266a4f78defSmrg  fi
8267a4f78defSmrgdone
8268a4f78defSmrg  done
8269a4f78defSmrgIFS=$as_save_IFS
8270a4f78defSmrg
8271a4f78defSmrgfi
8272a4f78defSmrgfi
8273a4f78defSmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8274a4f78defSmrgif test -n "$MANIFEST_TOOL"; then
8275a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8276a4f78defSmrg$as_echo "$MANIFEST_TOOL" >&6; }
8277a4f78defSmrgelse
8278a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279a4f78defSmrg$as_echo "no" >&6; }
8280a4f78defSmrgfi
8281a4f78defSmrg
8282a4f78defSmrg
8283a4f78defSmrgfi
8284a4f78defSmrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8285a4f78defSmrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8286a4f78defSmrg  # Extract the first word of "mt", so it can be a program name with args.
8287a4f78defSmrgset dummy mt; ac_word=$2
8288a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8290a4f78defSmrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8291a4f78defSmrg  $as_echo_n "(cached) " >&6
8292a4f78defSmrgelse
8293a4f78defSmrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
8294a4f78defSmrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8295a4f78defSmrgelse
8296a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297a4f78defSmrgfor as_dir in $PATH
8298a4f78defSmrgdo
8299a4f78defSmrg  IFS=$as_save_IFS
8300a4f78defSmrg  test -z "$as_dir" && as_dir=.
8301a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8302a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303a4f78defSmrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8304a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305a4f78defSmrg    break 2
8306a4f78defSmrg  fi
8307a4f78defSmrgdone
8308a4f78defSmrg  done
8309a4f78defSmrgIFS=$as_save_IFS
8310a4f78defSmrg
8311a4f78defSmrgfi
8312a4f78defSmrgfi
8313a4f78defSmrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8314a4f78defSmrgif test -n "$ac_ct_MANIFEST_TOOL"; then
8315a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8316a4f78defSmrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8317a4f78defSmrgelse
8318a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319a4f78defSmrg$as_echo "no" >&6; }
8320a4f78defSmrgfi
8321a4f78defSmrg
8322a4f78defSmrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8323a4f78defSmrg    MANIFEST_TOOL=":"
8324a4f78defSmrg  else
8325a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8326a4f78defSmrgyes:)
8327a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8328a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8329a4f78defSmrgac_tool_warned=yes ;;
8330a4f78defSmrgesac
8331a4f78defSmrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8332a4f78defSmrg  fi
8333a4f78defSmrgelse
8334a4f78defSmrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8335a4f78defSmrgfi
8336a4f78defSmrg
8337a4f78defSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8338a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8339a4f78defSmrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8340a4f78defSmrgif ${lt_cv_path_mainfest_tool+:} false; then :
8341a4f78defSmrg  $as_echo_n "(cached) " >&6
8342a4f78defSmrgelse
8343a4f78defSmrg  lt_cv_path_mainfest_tool=no
8344a4f78defSmrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8345a4f78defSmrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8346a4f78defSmrg  cat conftest.err >&5
8347a4f78defSmrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8348a4f78defSmrg    lt_cv_path_mainfest_tool=yes
8349a4f78defSmrg  fi
8350a4f78defSmrg  rm -f conftest*
8351a4f78defSmrgfi
8352a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8353a4f78defSmrg$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8354a4f78defSmrgif test yes != "$lt_cv_path_mainfest_tool"; then
8355a4f78defSmrg  MANIFEST_TOOL=:
8356a4f78defSmrgfi
8357a4f78defSmrg
8358a4f78defSmrg
8359a4f78defSmrg
8360a4f78defSmrg
8361a4f78defSmrg
8362a4f78defSmrg
8363a4f78defSmrg  case $host_os in
8364a4f78defSmrg    rhapsody* | darwin*)
8365a4f78defSmrg    if test -n "$ac_tool_prefix"; then
8366a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8367a4f78defSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8368a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8370a4f78defSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
8371a4f78defSmrg  $as_echo_n "(cached) " >&6
8372a4f78defSmrgelse
8373a4f78defSmrg  if test -n "$DSYMUTIL"; then
8374a4f78defSmrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8375a4f78defSmrgelse
8376a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377a4f78defSmrgfor as_dir in $PATH
8378a4f78defSmrgdo
8379a4f78defSmrg  IFS=$as_save_IFS
8380a4f78defSmrg  test -z "$as_dir" && as_dir=.
8381a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8382a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383a4f78defSmrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8384a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385a4f78defSmrg    break 2
8386a4f78defSmrg  fi
8387a4f78defSmrgdone
8388a4f78defSmrg  done
8389a4f78defSmrgIFS=$as_save_IFS
8390a4f78defSmrg
8391a4f78defSmrgfi
8392a4f78defSmrgfi
8393a4f78defSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
8394a4f78defSmrgif test -n "$DSYMUTIL"; then
8395a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8396a4f78defSmrg$as_echo "$DSYMUTIL" >&6; }
8397a4f78defSmrgelse
8398a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399a4f78defSmrg$as_echo "no" >&6; }
8400a4f78defSmrgfi
8401a4f78defSmrg
8402a4f78defSmrg
8403a4f78defSmrgfi
8404a4f78defSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then
8405a4f78defSmrg  ac_ct_DSYMUTIL=$DSYMUTIL
8406a4f78defSmrg  # Extract the first word of "dsymutil", so it can be a program name with args.
8407a4f78defSmrgset dummy dsymutil; ac_word=$2
8408a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8410a4f78defSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8411a4f78defSmrg  $as_echo_n "(cached) " >&6
8412a4f78defSmrgelse
8413a4f78defSmrg  if test -n "$ac_ct_DSYMUTIL"; then
8414a4f78defSmrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8415a4f78defSmrgelse
8416a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417a4f78defSmrgfor as_dir in $PATH
8418a4f78defSmrgdo
8419a4f78defSmrg  IFS=$as_save_IFS
8420a4f78defSmrg  test -z "$as_dir" && as_dir=.
8421a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8422a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423a4f78defSmrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8424a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425a4f78defSmrg    break 2
8426a4f78defSmrg  fi
8427a4f78defSmrgdone
8428a4f78defSmrg  done
8429a4f78defSmrgIFS=$as_save_IFS
8430a4f78defSmrg
8431a4f78defSmrgfi
8432a4f78defSmrgfi
8433a4f78defSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8434a4f78defSmrgif test -n "$ac_ct_DSYMUTIL"; then
8435a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8436a4f78defSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
8437a4f78defSmrgelse
8438a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439a4f78defSmrg$as_echo "no" >&6; }
8440a4f78defSmrgfi
8441a4f78defSmrg
8442a4f78defSmrg  if test "x$ac_ct_DSYMUTIL" = x; then
8443a4f78defSmrg    DSYMUTIL=":"
8444a4f78defSmrg  else
8445a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8446a4f78defSmrgyes:)
8447a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449a4f78defSmrgac_tool_warned=yes ;;
8450a4f78defSmrgesac
8451a4f78defSmrg    DSYMUTIL=$ac_ct_DSYMUTIL
8452a4f78defSmrg  fi
8453a4f78defSmrgelse
8454a4f78defSmrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8455a4f78defSmrgfi
8456a4f78defSmrg
8457a4f78defSmrg    if test -n "$ac_tool_prefix"; then
8458a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8459a4f78defSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
8460a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8462a4f78defSmrgif ${ac_cv_prog_NMEDIT+:} false; then :
8463a4f78defSmrg  $as_echo_n "(cached) " >&6
8464a4f78defSmrgelse
8465a4f78defSmrg  if test -n "$NMEDIT"; then
8466a4f78defSmrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8467a4f78defSmrgelse
8468a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469a4f78defSmrgfor as_dir in $PATH
8470a4f78defSmrgdo
8471a4f78defSmrg  IFS=$as_save_IFS
8472a4f78defSmrg  test -z "$as_dir" && as_dir=.
8473a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8474a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475a4f78defSmrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8476a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477a4f78defSmrg    break 2
8478a4f78defSmrg  fi
8479a4f78defSmrgdone
8480a4f78defSmrg  done
8481a4f78defSmrgIFS=$as_save_IFS
8482a4f78defSmrg
8483a4f78defSmrgfi
8484a4f78defSmrgfi
8485a4f78defSmrgNMEDIT=$ac_cv_prog_NMEDIT
8486a4f78defSmrgif test -n "$NMEDIT"; then
8487a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8488a4f78defSmrg$as_echo "$NMEDIT" >&6; }
8489a4f78defSmrgelse
8490a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491a4f78defSmrg$as_echo "no" >&6; }
8492a4f78defSmrgfi
8493a4f78defSmrg
8494a4f78defSmrg
8495a4f78defSmrgfi
8496a4f78defSmrgif test -z "$ac_cv_prog_NMEDIT"; then
8497a4f78defSmrg  ac_ct_NMEDIT=$NMEDIT
8498a4f78defSmrg  # Extract the first word of "nmedit", so it can be a program name with args.
8499a4f78defSmrgset dummy nmedit; ac_word=$2
8500a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8502a4f78defSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8503a4f78defSmrg  $as_echo_n "(cached) " >&6
8504a4f78defSmrgelse
8505a4f78defSmrg  if test -n "$ac_ct_NMEDIT"; then
8506a4f78defSmrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8507a4f78defSmrgelse
8508a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509a4f78defSmrgfor as_dir in $PATH
8510a4f78defSmrgdo
8511a4f78defSmrg  IFS=$as_save_IFS
8512a4f78defSmrg  test -z "$as_dir" && as_dir=.
8513a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8514a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515a4f78defSmrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8516a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517a4f78defSmrg    break 2
8518a4f78defSmrg  fi
8519a4f78defSmrgdone
8520a4f78defSmrg  done
8521a4f78defSmrgIFS=$as_save_IFS
8522a4f78defSmrg
8523a4f78defSmrgfi
8524a4f78defSmrgfi
8525a4f78defSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8526a4f78defSmrgif test -n "$ac_ct_NMEDIT"; then
8527a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8528a4f78defSmrg$as_echo "$ac_ct_NMEDIT" >&6; }
8529a4f78defSmrgelse
8530a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531a4f78defSmrg$as_echo "no" >&6; }
8532a4f78defSmrgfi
8533a4f78defSmrg
8534a4f78defSmrg  if test "x$ac_ct_NMEDIT" = x; then
8535a4f78defSmrg    NMEDIT=":"
8536a4f78defSmrg  else
8537a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8538a4f78defSmrgyes:)
8539a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8540a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8541a4f78defSmrgac_tool_warned=yes ;;
8542a4f78defSmrgesac
8543a4f78defSmrg    NMEDIT=$ac_ct_NMEDIT
8544a4f78defSmrg  fi
8545a4f78defSmrgelse
8546a4f78defSmrg  NMEDIT="$ac_cv_prog_NMEDIT"
8547a4f78defSmrgfi
8548a4f78defSmrg
8549a4f78defSmrg    if test -n "$ac_tool_prefix"; then
8550a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8551a4f78defSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
8552a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8554a4f78defSmrgif ${ac_cv_prog_LIPO+:} false; then :
8555a4f78defSmrg  $as_echo_n "(cached) " >&6
8556a4f78defSmrgelse
8557a4f78defSmrg  if test -n "$LIPO"; then
8558a4f78defSmrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559a4f78defSmrgelse
8560a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561a4f78defSmrgfor as_dir in $PATH
8562a4f78defSmrgdo
8563a4f78defSmrg  IFS=$as_save_IFS
8564a4f78defSmrg  test -z "$as_dir" && as_dir=.
8565a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8566a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567a4f78defSmrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8568a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569a4f78defSmrg    break 2
8570a4f78defSmrg  fi
8571a4f78defSmrgdone
8572a4f78defSmrg  done
8573a4f78defSmrgIFS=$as_save_IFS
8574a4f78defSmrg
8575a4f78defSmrgfi
8576a4f78defSmrgfi
8577a4f78defSmrgLIPO=$ac_cv_prog_LIPO
8578a4f78defSmrgif test -n "$LIPO"; then
8579a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580a4f78defSmrg$as_echo "$LIPO" >&6; }
8581a4f78defSmrgelse
8582a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583a4f78defSmrg$as_echo "no" >&6; }
8584a4f78defSmrgfi
8585a4f78defSmrg
8586a4f78defSmrg
8587a4f78defSmrgfi
8588a4f78defSmrgif test -z "$ac_cv_prog_LIPO"; then
8589a4f78defSmrg  ac_ct_LIPO=$LIPO
8590a4f78defSmrg  # Extract the first word of "lipo", so it can be a program name with args.
8591a4f78defSmrgset dummy lipo; ac_word=$2
8592a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8594a4f78defSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8595a4f78defSmrg  $as_echo_n "(cached) " >&6
8596a4f78defSmrgelse
8597a4f78defSmrg  if test -n "$ac_ct_LIPO"; then
8598a4f78defSmrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8599a4f78defSmrgelse
8600a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601a4f78defSmrgfor as_dir in $PATH
8602a4f78defSmrgdo
8603a4f78defSmrg  IFS=$as_save_IFS
8604a4f78defSmrg  test -z "$as_dir" && as_dir=.
8605a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8606a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8607a4f78defSmrg    ac_cv_prog_ac_ct_LIPO="lipo"
8608a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609a4f78defSmrg    break 2
8610a4f78defSmrg  fi
8611a4f78defSmrgdone
8612a4f78defSmrg  done
8613a4f78defSmrgIFS=$as_save_IFS
8614a4f78defSmrg
8615a4f78defSmrgfi
8616a4f78defSmrgfi
8617a4f78defSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8618a4f78defSmrgif test -n "$ac_ct_LIPO"; then
8619a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8620a4f78defSmrg$as_echo "$ac_ct_LIPO" >&6; }
8621a4f78defSmrgelse
8622a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623a4f78defSmrg$as_echo "no" >&6; }
8624a4f78defSmrgfi
8625a4f78defSmrg
8626a4f78defSmrg  if test "x$ac_ct_LIPO" = x; then
8627a4f78defSmrg    LIPO=":"
8628a4f78defSmrg  else
8629a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8630a4f78defSmrgyes:)
8631a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8632a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8633a4f78defSmrgac_tool_warned=yes ;;
8634a4f78defSmrgesac
8635a4f78defSmrg    LIPO=$ac_ct_LIPO
8636a4f78defSmrg  fi
8637a4f78defSmrgelse
8638a4f78defSmrg  LIPO="$ac_cv_prog_LIPO"
8639a4f78defSmrgfi
8640a4f78defSmrg
8641a4f78defSmrg    if test -n "$ac_tool_prefix"; then
8642a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8643a4f78defSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2
8644a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8646a4f78defSmrgif ${ac_cv_prog_OTOOL+:} false; then :
8647a4f78defSmrg  $as_echo_n "(cached) " >&6
8648a4f78defSmrgelse
8649a4f78defSmrg  if test -n "$OTOOL"; then
8650a4f78defSmrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8651a4f78defSmrgelse
8652a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653a4f78defSmrgfor as_dir in $PATH
8654a4f78defSmrgdo
8655a4f78defSmrg  IFS=$as_save_IFS
8656a4f78defSmrg  test -z "$as_dir" && as_dir=.
8657a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8658a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659a4f78defSmrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8660a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661a4f78defSmrg    break 2
8662a4f78defSmrg  fi
8663a4f78defSmrgdone
8664a4f78defSmrg  done
8665a4f78defSmrgIFS=$as_save_IFS
8666a4f78defSmrg
8667a4f78defSmrgfi
8668a4f78defSmrgfi
8669a4f78defSmrgOTOOL=$ac_cv_prog_OTOOL
8670a4f78defSmrgif test -n "$OTOOL"; then
8671a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8672a4f78defSmrg$as_echo "$OTOOL" >&6; }
8673a4f78defSmrgelse
8674a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675a4f78defSmrg$as_echo "no" >&6; }
8676a4f78defSmrgfi
8677a4f78defSmrg
8678a4f78defSmrg
8679a4f78defSmrgfi
8680a4f78defSmrgif test -z "$ac_cv_prog_OTOOL"; then
8681a4f78defSmrg  ac_ct_OTOOL=$OTOOL
8682a4f78defSmrg  # Extract the first word of "otool", so it can be a program name with args.
8683a4f78defSmrgset dummy otool; ac_word=$2
8684a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8686a4f78defSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8687a4f78defSmrg  $as_echo_n "(cached) " >&6
8688a4f78defSmrgelse
8689a4f78defSmrg  if test -n "$ac_ct_OTOOL"; then
8690a4f78defSmrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8691a4f78defSmrgelse
8692a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693a4f78defSmrgfor as_dir in $PATH
8694a4f78defSmrgdo
8695a4f78defSmrg  IFS=$as_save_IFS
8696a4f78defSmrg  test -z "$as_dir" && as_dir=.
8697a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8698a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699a4f78defSmrg    ac_cv_prog_ac_ct_OTOOL="otool"
8700a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701a4f78defSmrg    break 2
8702a4f78defSmrg  fi
8703a4f78defSmrgdone
8704a4f78defSmrg  done
8705a4f78defSmrgIFS=$as_save_IFS
8706a4f78defSmrg
8707a4f78defSmrgfi
8708a4f78defSmrgfi
8709a4f78defSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8710a4f78defSmrgif test -n "$ac_ct_OTOOL"; then
8711a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8712a4f78defSmrg$as_echo "$ac_ct_OTOOL" >&6; }
8713a4f78defSmrgelse
8714a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715a4f78defSmrg$as_echo "no" >&6; }
8716a4f78defSmrgfi
8717a4f78defSmrg
8718a4f78defSmrg  if test "x$ac_ct_OTOOL" = x; then
8719a4f78defSmrg    OTOOL=":"
8720a4f78defSmrg  else
8721a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8722a4f78defSmrgyes:)
8723a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8724a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8725a4f78defSmrgac_tool_warned=yes ;;
8726a4f78defSmrgesac
8727a4f78defSmrg    OTOOL=$ac_ct_OTOOL
8728a4f78defSmrg  fi
8729a4f78defSmrgelse
8730a4f78defSmrg  OTOOL="$ac_cv_prog_OTOOL"
8731a4f78defSmrgfi
8732a4f78defSmrg
8733a4f78defSmrg    if test -n "$ac_tool_prefix"; then
8734a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8735a4f78defSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
8736a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8738a4f78defSmrgif ${ac_cv_prog_OTOOL64+:} false; then :
8739a4f78defSmrg  $as_echo_n "(cached) " >&6
8740a4f78defSmrgelse
8741a4f78defSmrg  if test -n "$OTOOL64"; then
8742a4f78defSmrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8743a4f78defSmrgelse
8744a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745a4f78defSmrgfor as_dir in $PATH
8746a4f78defSmrgdo
8747a4f78defSmrg  IFS=$as_save_IFS
8748a4f78defSmrg  test -z "$as_dir" && as_dir=.
8749a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8750a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751a4f78defSmrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8752a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753a4f78defSmrg    break 2
8754a4f78defSmrg  fi
8755a4f78defSmrgdone
8756a4f78defSmrg  done
8757a4f78defSmrgIFS=$as_save_IFS
8758a4f78defSmrg
8759a4f78defSmrgfi
8760a4f78defSmrgfi
8761a4f78defSmrgOTOOL64=$ac_cv_prog_OTOOL64
8762a4f78defSmrgif test -n "$OTOOL64"; then
8763a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8764a4f78defSmrg$as_echo "$OTOOL64" >&6; }
8765a4f78defSmrgelse
8766a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767a4f78defSmrg$as_echo "no" >&6; }
8768a4f78defSmrgfi
8769a4f78defSmrg
8770a4f78defSmrg
8771a4f78defSmrgfi
8772a4f78defSmrgif test -z "$ac_cv_prog_OTOOL64"; then
8773a4f78defSmrg  ac_ct_OTOOL64=$OTOOL64
8774a4f78defSmrg  # Extract the first word of "otool64", so it can be a program name with args.
8775a4f78defSmrgset dummy otool64; ac_word=$2
8776a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
8778a4f78defSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8779a4f78defSmrg  $as_echo_n "(cached) " >&6
8780a4f78defSmrgelse
8781a4f78defSmrg  if test -n "$ac_ct_OTOOL64"; then
8782a4f78defSmrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8783a4f78defSmrgelse
8784a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785a4f78defSmrgfor as_dir in $PATH
8786a4f78defSmrgdo
8787a4f78defSmrg  IFS=$as_save_IFS
8788a4f78defSmrg  test -z "$as_dir" && as_dir=.
8789a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
8790a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791a4f78defSmrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
8792a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793a4f78defSmrg    break 2
8794a4f78defSmrg  fi
8795a4f78defSmrgdone
8796a4f78defSmrg  done
8797a4f78defSmrgIFS=$as_save_IFS
8798a4f78defSmrg
8799a4f78defSmrgfi
8800a4f78defSmrgfi
8801a4f78defSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8802a4f78defSmrgif test -n "$ac_ct_OTOOL64"; then
8803a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8804a4f78defSmrg$as_echo "$ac_ct_OTOOL64" >&6; }
8805a4f78defSmrgelse
8806a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807a4f78defSmrg$as_echo "no" >&6; }
8808a4f78defSmrgfi
8809a4f78defSmrg
8810a4f78defSmrg  if test "x$ac_ct_OTOOL64" = x; then
8811a4f78defSmrg    OTOOL64=":"
8812a4f78defSmrg  else
8813a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
8814a4f78defSmrgyes:)
8815a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8816a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8817a4f78defSmrgac_tool_warned=yes ;;
8818a4f78defSmrgesac
8819a4f78defSmrg    OTOOL64=$ac_ct_OTOOL64
8820a4f78defSmrg  fi
8821a4f78defSmrgelse
8822a4f78defSmrg  OTOOL64="$ac_cv_prog_OTOOL64"
8823a4f78defSmrgfi
8824a4f78defSmrg
8825a4f78defSmrg
8826a4f78defSmrg
8827a4f78defSmrg
8828a4f78defSmrg
8829a4f78defSmrg
8830a4f78defSmrg
8831a4f78defSmrg
8832a4f78defSmrg
8833a4f78defSmrg
8834a4f78defSmrg
8835a4f78defSmrg
8836a4f78defSmrg
8837a4f78defSmrg
8838a4f78defSmrg
8839a4f78defSmrg
8840a4f78defSmrg
8841a4f78defSmrg
8842a4f78defSmrg
8843a4f78defSmrg
8844a4f78defSmrg
8845a4f78defSmrg
8846a4f78defSmrg
8847a4f78defSmrg
8848a4f78defSmrg
8849a4f78defSmrg
8850a4f78defSmrg
8851a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8852a4f78defSmrg$as_echo_n "checking for -single_module linker flag... " >&6; }
8853a4f78defSmrgif ${lt_cv_apple_cc_single_mod+:} false; then :
8854a4f78defSmrg  $as_echo_n "(cached) " >&6
8855a4f78defSmrgelse
8856a4f78defSmrg  lt_cv_apple_cc_single_mod=no
8857a4f78defSmrg      if test -z "$LT_MULTI_MODULE"; then
8858a4f78defSmrg	# By default we will add the -single_module flag. You can override
8859a4f78defSmrg	# by either setting the environment variable LT_MULTI_MODULE
8860a4f78defSmrg	# non-empty at configure time, or by adding -multi_module to the
8861a4f78defSmrg	# link flags.
8862a4f78defSmrg	rm -rf libconftest.dylib*
8863a4f78defSmrg	echo "int foo(void){return 1;}" > conftest.c
8864a4f78defSmrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8865a4f78defSmrg-dynamiclib -Wl,-single_module conftest.c" >&5
8866a4f78defSmrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8867a4f78defSmrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8868a4f78defSmrg        _lt_result=$?
8869a4f78defSmrg	# If there is a non-empty error log, and "single_module"
8870a4f78defSmrg	# appears in it, assume the flag caused a linker warning
8871a4f78defSmrg        if test -s conftest.err && $GREP single_module conftest.err; then
8872a4f78defSmrg	  cat conftest.err >&5
8873a4f78defSmrg	# Otherwise, if the output was created with a 0 exit code from
8874a4f78defSmrg	# the compiler, it worked.
8875a4f78defSmrg	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8876a4f78defSmrg	  lt_cv_apple_cc_single_mod=yes
8877a4f78defSmrg	else
8878a4f78defSmrg	  cat conftest.err >&5
8879a4f78defSmrg	fi
8880a4f78defSmrg	rm -rf libconftest.dylib*
8881a4f78defSmrg	rm -f conftest.*
8882a4f78defSmrg      fi
8883a4f78defSmrgfi
8884a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8885a4f78defSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8886a4f78defSmrg
8887a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8888a4f78defSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8889a4f78defSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
8890a4f78defSmrg  $as_echo_n "(cached) " >&6
8891a4f78defSmrgelse
8892a4f78defSmrg  lt_cv_ld_exported_symbols_list=no
8893a4f78defSmrg      save_LDFLAGS=$LDFLAGS
8894a4f78defSmrg      echo "_main" > conftest.sym
8895a4f78defSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8896a4f78defSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897a4f78defSmrg/* end confdefs.h.  */
8898a4f78defSmrg
8899a4f78defSmrgint
8900a4f78defSmrgmain ()
8901a4f78defSmrg{
8902a4f78defSmrg
8903a4f78defSmrg  ;
8904a4f78defSmrg  return 0;
8905a4f78defSmrg}
8906a4f78defSmrg_ACEOF
8907a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
8908a4f78defSmrg  lt_cv_ld_exported_symbols_list=yes
8909a4f78defSmrgelse
8910a4f78defSmrg  lt_cv_ld_exported_symbols_list=no
8911a4f78defSmrgfi
8912a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
8913a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
8914a4f78defSmrg	LDFLAGS=$save_LDFLAGS
8915a4f78defSmrg
8916a4f78defSmrgfi
8917a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8918a4f78defSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8919a4f78defSmrg
8920a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8921a4f78defSmrg$as_echo_n "checking for -force_load linker flag... " >&6; }
8922a4f78defSmrgif ${lt_cv_ld_force_load+:} false; then :
8923a4f78defSmrg  $as_echo_n "(cached) " >&6
8924a4f78defSmrgelse
8925a4f78defSmrg  lt_cv_ld_force_load=no
8926a4f78defSmrg      cat > conftest.c << _LT_EOF
8927a4f78defSmrgint forced_loaded() { return 2;}
8928a4f78defSmrg_LT_EOF
8929a4f78defSmrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8930a4f78defSmrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8931a4f78defSmrg      echo "$AR cru libconftest.a conftest.o" >&5
8932a4f78defSmrg      $AR cru libconftest.a conftest.o 2>&5
8933a4f78defSmrg      echo "$RANLIB libconftest.a" >&5
8934a4f78defSmrg      $RANLIB libconftest.a 2>&5
8935a4f78defSmrg      cat > conftest.c << _LT_EOF
8936a4f78defSmrgint main() { return 0;}
8937a4f78defSmrg_LT_EOF
8938a4f78defSmrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8939a4f78defSmrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8940a4f78defSmrg      _lt_result=$?
8941a4f78defSmrg      if test -s conftest.err && $GREP force_load conftest.err; then
8942a4f78defSmrg	cat conftest.err >&5
8943a4f78defSmrg      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8944a4f78defSmrg	lt_cv_ld_force_load=yes
8945a4f78defSmrg      else
8946a4f78defSmrg	cat conftest.err >&5
8947a4f78defSmrg      fi
8948a4f78defSmrg        rm -f conftest.err libconftest.a conftest conftest.c
8949a4f78defSmrg        rm -rf conftest.dSYM
8950a4f78defSmrg
8951a4f78defSmrgfi
8952a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8953a4f78defSmrg$as_echo "$lt_cv_ld_force_load" >&6; }
8954a4f78defSmrg    case $host_os in
8955a4f78defSmrg    rhapsody* | darwin1.[012])
8956a4f78defSmrg      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8957a4f78defSmrg    darwin1.*)
8958a4f78defSmrg      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8959a4f78defSmrg    darwin*) # darwin 5.x on
8960a4f78defSmrg      # if running on 10.5 or later, the deployment target defaults
8961a4f78defSmrg      # to the OS version, if on x86, and 10.4, the deployment
8962a4f78defSmrg      # target defaults to 10.4. Don't you love it?
8963a4f78defSmrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8964a4f78defSmrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8965a4f78defSmrg	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8966a4f78defSmrg	10.[012][,.]*)
8967a4f78defSmrg	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968a4f78defSmrg	10.*)
8969a4f78defSmrg	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8970a4f78defSmrg      esac
8971a4f78defSmrg    ;;
8972a4f78defSmrg  esac
8973a4f78defSmrg    if test yes = "$lt_cv_apple_cc_single_mod"; then
8974a4f78defSmrg      _lt_dar_single_mod='$single_module'
8975a4f78defSmrg    fi
8976a4f78defSmrg    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8977a4f78defSmrg      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8978a4f78defSmrg    else
8979a4f78defSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8980a4f78defSmrg    fi
8981a4f78defSmrg    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8982a4f78defSmrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
8983a4f78defSmrg    else
8984a4f78defSmrg      _lt_dsymutil=
8985a4f78defSmrg    fi
8986a4f78defSmrg    ;;
8987a4f78defSmrg  esac
8988a4f78defSmrg
8989a4f78defSmrg# func_munge_path_list VARIABLE PATH
8990a4f78defSmrg# -----------------------------------
8991a4f78defSmrg# VARIABLE is name of variable containing _space_ separated list of
8992a4f78defSmrg# directories to be munged by the contents of PATH, which is string
8993a4f78defSmrg# having a format:
8994a4f78defSmrg# "DIR[:DIR]:"
8995a4f78defSmrg#       string "DIR[ DIR]" will be prepended to VARIABLE
8996a4f78defSmrg# ":DIR[:DIR]"
8997a4f78defSmrg#       string "DIR[ DIR]" will be appended to VARIABLE
8998a4f78defSmrg# "DIRP[:DIRP]::[DIRA:]DIRA"
8999a4f78defSmrg#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9000a4f78defSmrg#       "DIRA[ DIRA]" will be appended to VARIABLE
9001a4f78defSmrg# "DIR[:DIR]"
9002a4f78defSmrg#       VARIABLE will be replaced by "DIR[ DIR]"
9003a4f78defSmrgfunc_munge_path_list ()
9004a4f78defSmrg{
9005a4f78defSmrg    case x$2 in
9006a4f78defSmrg    x)
9007a4f78defSmrg        ;;
9008a4f78defSmrg    *:)
9009a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9010a4f78defSmrg        ;;
9011a4f78defSmrg    x:*)
9012a4f78defSmrg        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9013a4f78defSmrg        ;;
9014a4f78defSmrg    *::*)
9015a4f78defSmrg        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9016a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9017a4f78defSmrg        ;;
9018a4f78defSmrg    *)
9019a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9020a4f78defSmrg        ;;
9021a4f78defSmrg    esac
9022a4f78defSmrg}
9023a4f78defSmrg
9024a4f78defSmrgfor ac_header in dlfcn.h
9025a4f78defSmrgdo :
9026a4f78defSmrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9027a4f78defSmrg"
9028a4f78defSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
9029a4f78defSmrg  cat >>confdefs.h <<_ACEOF
9030a4f78defSmrg#define HAVE_DLFCN_H 1
9031a4f78defSmrg_ACEOF
9032a4f78defSmrg
9033a4f78defSmrgfi
9034a4f78defSmrg
9035a4f78defSmrgdone
9036a4f78defSmrg
9037a4f78defSmrg
9038a4f78defSmrg
9039a4f78defSmrg
9040a4f78defSmrgfunc_stripname_cnf ()
9041a4f78defSmrg{
9042a4f78defSmrg  case $2 in
9043a4f78defSmrg  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9044a4f78defSmrg  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9045a4f78defSmrg  esac
9046a4f78defSmrg} # func_stripname_cnf
9047a4f78defSmrg
9048a4f78defSmrg
9049a4f78defSmrg
9050a4f78defSmrg
9051a4f78defSmrg
9052a4f78defSmrg# Set options
9053a4f78defSmrg
9054a4f78defSmrg
9055a4f78defSmrg
9056a4f78defSmrg        enable_dlopen=no
9057a4f78defSmrg
9058a4f78defSmrg
9059a4f78defSmrg  enable_win32_dll=no
9060a4f78defSmrg
9061a4f78defSmrg
9062a4f78defSmrg            # Check whether --enable-shared was given.
9063a4f78defSmrgif test "${enable_shared+set}" = set; then :
9064a4f78defSmrg  enableval=$enable_shared; p=${PACKAGE-default}
9065a4f78defSmrg    case $enableval in
9066a4f78defSmrg    yes) enable_shared=yes ;;
9067a4f78defSmrg    no) enable_shared=no ;;
9068a4f78defSmrg    *)
9069a4f78defSmrg      enable_shared=no
9070a4f78defSmrg      # Look at the argument we got.  We use all the common list separators.
9071a4f78defSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9072a4f78defSmrg      for pkg in $enableval; do
9073a4f78defSmrg	IFS=$lt_save_ifs
9074a4f78defSmrg	if test "X$pkg" = "X$p"; then
9075a4f78defSmrg	  enable_shared=yes
9076a4f78defSmrg	fi
9077a4f78defSmrg      done
9078a4f78defSmrg      IFS=$lt_save_ifs
9079a4f78defSmrg      ;;
9080a4f78defSmrg    esac
9081a4f78defSmrgelse
9082a4f78defSmrg  enable_shared=yes
9083a4f78defSmrgfi
9084a4f78defSmrg
9085a4f78defSmrg
9086a4f78defSmrg
9087a4f78defSmrg
9088a4f78defSmrg
9089a4f78defSmrg
9090a4f78defSmrg
9091a4f78defSmrg
9092a4f78defSmrg
9093a4f78defSmrg
9094a4f78defSmrg
9095a4f78defSmrg# Check whether --with-pic was given.
9096a4f78defSmrgif test "${with_pic+set}" = set; then :
9097a4f78defSmrg  withval=$with_pic; lt_p=${PACKAGE-default}
9098a4f78defSmrg    case $withval in
9099a4f78defSmrg    yes|no) pic_mode=$withval ;;
9100a4f78defSmrg    *)
9101a4f78defSmrg      pic_mode=default
9102a4f78defSmrg      # Look at the argument we got.  We use all the common list separators.
9103a4f78defSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9104a4f78defSmrg      for lt_pkg in $withval; do
9105a4f78defSmrg	IFS=$lt_save_ifs
9106a4f78defSmrg	if test "X$lt_pkg" = "X$lt_p"; then
9107a4f78defSmrg	  pic_mode=yes
9108a4f78defSmrg	fi
9109a4f78defSmrg      done
9110a4f78defSmrg      IFS=$lt_save_ifs
9111a4f78defSmrg      ;;
9112a4f78defSmrg    esac
9113a4f78defSmrgelse
9114a4f78defSmrg  pic_mode=default
9115a4f78defSmrgfi
9116a4f78defSmrg
9117a4f78defSmrg
9118a4f78defSmrg
9119a4f78defSmrg
9120a4f78defSmrg
9121a4f78defSmrg
9122a4f78defSmrg
9123a4f78defSmrg
9124a4f78defSmrg  # Check whether --enable-fast-install was given.
9125a4f78defSmrgif test "${enable_fast_install+set}" = set; then :
9126a4f78defSmrg  enableval=$enable_fast_install; p=${PACKAGE-default}
9127a4f78defSmrg    case $enableval in
9128a4f78defSmrg    yes) enable_fast_install=yes ;;
9129a4f78defSmrg    no) enable_fast_install=no ;;
9130a4f78defSmrg    *)
9131a4f78defSmrg      enable_fast_install=no
9132a4f78defSmrg      # Look at the argument we got.  We use all the common list separators.
9133a4f78defSmrg      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9134a4f78defSmrg      for pkg in $enableval; do
9135a4f78defSmrg	IFS=$lt_save_ifs
9136a4f78defSmrg	if test "X$pkg" = "X$p"; then
9137a4f78defSmrg	  enable_fast_install=yes
9138a4f78defSmrg	fi
9139a4f78defSmrg      done
9140a4f78defSmrg      IFS=$lt_save_ifs
9141a4f78defSmrg      ;;
9142a4f78defSmrg    esac
9143a4f78defSmrgelse
9144a4f78defSmrg  enable_fast_install=yes
9145a4f78defSmrgfi
9146a4f78defSmrg
9147a4f78defSmrg
9148a4f78defSmrg
9149a4f78defSmrg
9150a4f78defSmrg
9151a4f78defSmrg
9152a4f78defSmrg
9153a4f78defSmrg
9154a4f78defSmrg  shared_archive_member_spec=
9155a4f78defSmrgcase $host,$enable_shared in
9156a4f78defSmrgpower*-*-aix[5-9]*,yes)
9157a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9158a4f78defSmrg$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9159a4f78defSmrg
9160a4f78defSmrg# Check whether --with-aix-soname was given.
9161a4f78defSmrgif test "${with_aix_soname+set}" = set; then :
9162a4f78defSmrg  withval=$with_aix_soname; case $withval in
9163a4f78defSmrg    aix|svr4|both)
9164a4f78defSmrg      ;;
9165a4f78defSmrg    *)
9166a4f78defSmrg      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9167a4f78defSmrg      ;;
9168a4f78defSmrg    esac
9169a4f78defSmrg    lt_cv_with_aix_soname=$with_aix_soname
9170a4f78defSmrgelse
9171a4f78defSmrg  if ${lt_cv_with_aix_soname+:} false; then :
9172a4f78defSmrg  $as_echo_n "(cached) " >&6
9173a4f78defSmrgelse
9174a4f78defSmrg  lt_cv_with_aix_soname=aix
9175a4f78defSmrgfi
9176a4f78defSmrg
9177a4f78defSmrg    with_aix_soname=$lt_cv_with_aix_soname
9178a4f78defSmrgfi
9179a4f78defSmrg
9180a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9181a4f78defSmrg$as_echo "$with_aix_soname" >&6; }
9182a4f78defSmrg  if test aix != "$with_aix_soname"; then
9183a4f78defSmrg    # For the AIX way of multilib, we name the shared archive member
9184a4f78defSmrg    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9185a4f78defSmrg    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9186a4f78defSmrg    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9187a4f78defSmrg    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9188a4f78defSmrg    if test 64 = "${OBJECT_MODE-32}"; then
9189a4f78defSmrg      shared_archive_member_spec=shr_64
9190a4f78defSmrg    else
9191a4f78defSmrg      shared_archive_member_spec=shr
9192a4f78defSmrg    fi
9193a4f78defSmrg  fi
9194a4f78defSmrg  ;;
9195a4f78defSmrg*)
9196a4f78defSmrg  with_aix_soname=aix
9197a4f78defSmrg  ;;
9198a4f78defSmrgesac
9199a4f78defSmrg
9200a4f78defSmrg
9201a4f78defSmrg
9202a4f78defSmrg
9203a4f78defSmrg
9204a4f78defSmrg
9205a4f78defSmrg
9206a4f78defSmrg
9207a4f78defSmrg
9208a4f78defSmrg
9209a4f78defSmrg# This can be used to rebuild libtool when needed
9210a4f78defSmrgLIBTOOL_DEPS=$ltmain
9211a4f78defSmrg
9212a4f78defSmrg# Always use our own libtool.
9213a4f78defSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
9214a4f78defSmrg
9215a4f78defSmrg
9216a4f78defSmrg
9217a4f78defSmrg
9218a4f78defSmrg
9219a4f78defSmrg
9220a4f78defSmrg
9221a4f78defSmrg
9222a4f78defSmrg
9223a4f78defSmrg
9224a4f78defSmrg
9225a4f78defSmrg
9226a4f78defSmrg
9227a4f78defSmrg
9228a4f78defSmrg
9229a4f78defSmrg
9230a4f78defSmrg
9231a4f78defSmrg
9232a4f78defSmrg
9233a4f78defSmrg
9234a4f78defSmrg
9235a4f78defSmrg
9236a4f78defSmrg
9237a4f78defSmrg
9238a4f78defSmrg
9239a4f78defSmrg
9240a4f78defSmrg
9241a4f78defSmrg
9242a4f78defSmrg
9243a4f78defSmrg
9244a4f78defSmrgtest -z "$LN_S" && LN_S="ln -s"
9245a4f78defSmrg
9246a4f78defSmrg
9247a4f78defSmrg
9248a4f78defSmrg
9249a4f78defSmrg
9250a4f78defSmrg
9251a4f78defSmrg
9252a4f78defSmrg
9253a4f78defSmrg
9254a4f78defSmrg
9255a4f78defSmrg
9256a4f78defSmrg
9257a4f78defSmrg
9258a4f78defSmrg
9259a4f78defSmrgif test -n "${ZSH_VERSION+set}"; then
9260a4f78defSmrg   setopt NO_GLOB_SUBST
9261a4f78defSmrgfi
9262a4f78defSmrg
9263a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9264a4f78defSmrg$as_echo_n "checking for objdir... " >&6; }
9265a4f78defSmrgif ${lt_cv_objdir+:} false; then :
9266a4f78defSmrg  $as_echo_n "(cached) " >&6
9267a4f78defSmrgelse
9268a4f78defSmrg  rm -f .libs 2>/dev/null
9269a4f78defSmrgmkdir .libs 2>/dev/null
9270a4f78defSmrgif test -d .libs; then
9271a4f78defSmrg  lt_cv_objdir=.libs
9272a4f78defSmrgelse
9273a4f78defSmrg  # MS-DOS does not allow filenames that begin with a dot.
9274a4f78defSmrg  lt_cv_objdir=_libs
9275a4f78defSmrgfi
9276a4f78defSmrgrmdir .libs 2>/dev/null
9277a4f78defSmrgfi
9278a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9279a4f78defSmrg$as_echo "$lt_cv_objdir" >&6; }
9280a4f78defSmrgobjdir=$lt_cv_objdir
9281a4f78defSmrg
9282a4f78defSmrg
9283a4f78defSmrg
9284a4f78defSmrg
9285a4f78defSmrg
9286a4f78defSmrgcat >>confdefs.h <<_ACEOF
9287a4f78defSmrg#define LT_OBJDIR "$lt_cv_objdir/"
9288a4f78defSmrg_ACEOF
9289a4f78defSmrg
9290a4f78defSmrg
9291a4f78defSmrg
9292a4f78defSmrg
9293a4f78defSmrgcase $host_os in
9294a4f78defSmrgaix3*)
9295a4f78defSmrg  # AIX sometimes has problems with the GCC collect2 program.  For some
9296a4f78defSmrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
9297a4f78defSmrg  # vanish in a puff of smoke.
9298a4f78defSmrg  if test set != "${COLLECT_NAMES+set}"; then
9299a4f78defSmrg    COLLECT_NAMES=
9300a4f78defSmrg    export COLLECT_NAMES
9301a4f78defSmrg  fi
9302a4f78defSmrg  ;;
9303a4f78defSmrgesac
9304a4f78defSmrg
9305a4f78defSmrg# Global variables:
9306a4f78defSmrgofile=libtool
9307a4f78defSmrgcan_build_shared=yes
9308a4f78defSmrg
9309a4f78defSmrg# All known linkers require a '.a' archive for static linking (except MSVC,
9310a4f78defSmrg# which needs '.lib').
9311a4f78defSmrglibext=a
9312a4f78defSmrg
9313a4f78defSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
9314a4f78defSmrg
9315a4f78defSmrgold_CC=$CC
9316a4f78defSmrgold_CFLAGS=$CFLAGS
9317a4f78defSmrg
9318a4f78defSmrg# Set sane defaults for various variables
9319a4f78defSmrgtest -z "$CC" && CC=cc
9320a4f78defSmrgtest -z "$LTCC" && LTCC=$CC
9321a4f78defSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9322a4f78defSmrgtest -z "$LD" && LD=ld
9323a4f78defSmrgtest -z "$ac_objext" && ac_objext=o
9324a4f78defSmrg
9325a4f78defSmrgfunc_cc_basename $compiler
9326a4f78defSmrgcc_basename=$func_cc_basename_result
9327a4f78defSmrg
9328a4f78defSmrg
9329a4f78defSmrg# Only perform the check for file, if the check method requires it
9330a4f78defSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
9331a4f78defSmrgcase $deplibs_check_method in
9332a4f78defSmrgfile_magic*)
9333a4f78defSmrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9334a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9335a4f78defSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9336a4f78defSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
9337a4f78defSmrg  $as_echo_n "(cached) " >&6
9338a4f78defSmrgelse
9339a4f78defSmrg  case $MAGIC_CMD in
9340a4f78defSmrg[\\/*] |  ?:[\\/]*)
9341a4f78defSmrg  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9342a4f78defSmrg  ;;
9343a4f78defSmrg*)
9344a4f78defSmrg  lt_save_MAGIC_CMD=$MAGIC_CMD
9345a4f78defSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9346a4f78defSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9347a4f78defSmrg  for ac_dir in $ac_dummy; do
9348a4f78defSmrg    IFS=$lt_save_ifs
9349a4f78defSmrg    test -z "$ac_dir" && ac_dir=.
9350a4f78defSmrg    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9351a4f78defSmrg      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9352a4f78defSmrg      if test -n "$file_magic_test_file"; then
9353a4f78defSmrg	case $deplibs_check_method in
9354a4f78defSmrg	"file_magic "*)
9355a4f78defSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9356a4f78defSmrg	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9357a4f78defSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9358a4f78defSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
9359a4f78defSmrg	    :
9360a4f78defSmrg	  else
9361a4f78defSmrg	    cat <<_LT_EOF 1>&2
9362a4f78defSmrg
9363a4f78defSmrg*** Warning: the command libtool uses to detect shared libraries,
9364a4f78defSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
9365a4f78defSmrg*** The result is that libtool may fail to recognize shared libraries
9366a4f78defSmrg*** as such.  This will affect the creation of libtool libraries that
9367a4f78defSmrg*** depend on shared libraries, but programs linked with such libtool
9368a4f78defSmrg*** libraries will work regardless of this problem.  Nevertheless, you
9369a4f78defSmrg*** may want to report the problem to your system manager and/or to
9370a4f78defSmrg*** bug-libtool@gnu.org
9371a4f78defSmrg
9372a4f78defSmrg_LT_EOF
9373a4f78defSmrg	  fi ;;
9374a4f78defSmrg	esac
9375a4f78defSmrg      fi
9376a4f78defSmrg      break
9377a4f78defSmrg    fi
9378a4f78defSmrg  done
9379a4f78defSmrg  IFS=$lt_save_ifs
9380a4f78defSmrg  MAGIC_CMD=$lt_save_MAGIC_CMD
9381a4f78defSmrg  ;;
9382a4f78defSmrgesac
9383a4f78defSmrgfi
9384a4f78defSmrg
9385a4f78defSmrgMAGIC_CMD=$lt_cv_path_MAGIC_CMD
9386a4f78defSmrgif test -n "$MAGIC_CMD"; then
9387a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9388a4f78defSmrg$as_echo "$MAGIC_CMD" >&6; }
9389a4f78defSmrgelse
9390a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391a4f78defSmrg$as_echo "no" >&6; }
9392a4f78defSmrgfi
9393a4f78defSmrg
9394a4f78defSmrg
9395a4f78defSmrg
9396a4f78defSmrg
9397a4f78defSmrg
9398a4f78defSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
9399a4f78defSmrg  if test -n "$ac_tool_prefix"; then
9400a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9401a4f78defSmrg$as_echo_n "checking for file... " >&6; }
9402a4f78defSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
9403a4f78defSmrg  $as_echo_n "(cached) " >&6
9404a4f78defSmrgelse
9405a4f78defSmrg  case $MAGIC_CMD in
9406a4f78defSmrg[\\/*] |  ?:[\\/]*)
9407a4f78defSmrg  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9408a4f78defSmrg  ;;
9409a4f78defSmrg*)
9410a4f78defSmrg  lt_save_MAGIC_CMD=$MAGIC_CMD
9411a4f78defSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9412a4f78defSmrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9413a4f78defSmrg  for ac_dir in $ac_dummy; do
9414a4f78defSmrg    IFS=$lt_save_ifs
9415a4f78defSmrg    test -z "$ac_dir" && ac_dir=.
9416a4f78defSmrg    if test -f "$ac_dir/file"; then
9417a4f78defSmrg      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9418a4f78defSmrg      if test -n "$file_magic_test_file"; then
9419a4f78defSmrg	case $deplibs_check_method in
9420a4f78defSmrg	"file_magic "*)
9421a4f78defSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9422a4f78defSmrg	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9423a4f78defSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9424a4f78defSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
9425a4f78defSmrg	    :
9426a4f78defSmrg	  else
9427a4f78defSmrg	    cat <<_LT_EOF 1>&2
9428a4f78defSmrg
9429a4f78defSmrg*** Warning: the command libtool uses to detect shared libraries,
9430a4f78defSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
9431a4f78defSmrg*** The result is that libtool may fail to recognize shared libraries
9432a4f78defSmrg*** as such.  This will affect the creation of libtool libraries that
9433a4f78defSmrg*** depend on shared libraries, but programs linked with such libtool
9434a4f78defSmrg*** libraries will work regardless of this problem.  Nevertheless, you
9435a4f78defSmrg*** may want to report the problem to your system manager and/or to
9436a4f78defSmrg*** bug-libtool@gnu.org
9437a4f78defSmrg
9438a4f78defSmrg_LT_EOF
9439a4f78defSmrg	  fi ;;
9440a4f78defSmrg	esac
9441a4f78defSmrg      fi
9442a4f78defSmrg      break
9443a4f78defSmrg    fi
9444a4f78defSmrg  done
9445a4f78defSmrg  IFS=$lt_save_ifs
9446a4f78defSmrg  MAGIC_CMD=$lt_save_MAGIC_CMD
9447a4f78defSmrg  ;;
9448a4f78defSmrgesac
9449a4f78defSmrgfi
9450a4f78defSmrg
9451a4f78defSmrgMAGIC_CMD=$lt_cv_path_MAGIC_CMD
9452a4f78defSmrgif test -n "$MAGIC_CMD"; then
9453a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9454a4f78defSmrg$as_echo "$MAGIC_CMD" >&6; }
9455a4f78defSmrgelse
9456a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457a4f78defSmrg$as_echo "no" >&6; }
9458a4f78defSmrgfi
9459a4f78defSmrg
9460a4f78defSmrg
9461a4f78defSmrg  else
9462a4f78defSmrg    MAGIC_CMD=:
9463a4f78defSmrg  fi
9464a4f78defSmrgfi
9465a4f78defSmrg
9466a4f78defSmrg  fi
9467a4f78defSmrg  ;;
9468a4f78defSmrgesac
9469a4f78defSmrg
9470a4f78defSmrg# Use C for the default configuration in the libtool script
9471a4f78defSmrg
9472a4f78defSmrglt_save_CC=$CC
9473a4f78defSmrgac_ext=c
9474a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
9475a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9476a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9477a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
9478a4f78defSmrg
9479a4f78defSmrg
9480a4f78defSmrg# Source file extension for C test sources.
9481a4f78defSmrgac_ext=c
9482a4f78defSmrg
9483a4f78defSmrg# Object file extension for compiled C test sources.
9484a4f78defSmrgobjext=o
9485a4f78defSmrgobjext=$objext
9486a4f78defSmrg
9487a4f78defSmrg# Code to be used in simple compile tests
9488a4f78defSmrglt_simple_compile_test_code="int some_variable = 0;"
9489a4f78defSmrg
9490a4f78defSmrg# Code to be used in simple link tests
9491a4f78defSmrglt_simple_link_test_code='int main(){return(0);}'
9492a4f78defSmrg
9493a4f78defSmrg
9494a4f78defSmrg
9495a4f78defSmrg
9496a4f78defSmrg
9497a4f78defSmrg
9498a4f78defSmrg
9499a4f78defSmrg# If no C compiler was specified, use CC.
9500a4f78defSmrgLTCC=${LTCC-"$CC"}
9501a4f78defSmrg
9502a4f78defSmrg# If no C compiler flags were specified, use CFLAGS.
9503a4f78defSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9504a4f78defSmrg
9505a4f78defSmrg# Allow CC to be a program name with arguments.
9506a4f78defSmrgcompiler=$CC
9507a4f78defSmrg
9508a4f78defSmrg# Save the default compiler, since it gets overwritten when the other
9509a4f78defSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9510a4f78defSmrgcompiler_DEFAULT=$CC
9511a4f78defSmrg
9512a4f78defSmrg# save warnings/boilerplate of simple test code
9513a4f78defSmrgac_outfile=conftest.$ac_objext
9514a4f78defSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
9515a4f78defSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9516a4f78defSmrg_lt_compiler_boilerplate=`cat conftest.err`
9517a4f78defSmrg$RM conftest*
9518a4f78defSmrg
9519a4f78defSmrgac_outfile=conftest.$ac_objext
9520a4f78defSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
9521a4f78defSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9522a4f78defSmrg_lt_linker_boilerplate=`cat conftest.err`
9523a4f78defSmrg$RM -r conftest*
9524a4f78defSmrg
9525a4f78defSmrg
9526a4f78defSmrgif test -n "$compiler"; then
9527a4f78defSmrg
9528a4f78defSmrglt_prog_compiler_no_builtin_flag=
9529a4f78defSmrg
9530a4f78defSmrgif test yes = "$GCC"; then
9531a4f78defSmrg  case $cc_basename in
9532a4f78defSmrg  nvcc*)
9533a4f78defSmrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9534a4f78defSmrg  *)
9535a4f78defSmrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9536a4f78defSmrg  esac
9537a4f78defSmrg
9538a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9539a4f78defSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9540a4f78defSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9541a4f78defSmrg  $as_echo_n "(cached) " >&6
9542a4f78defSmrgelse
9543a4f78defSmrg  lt_cv_prog_compiler_rtti_exceptions=no
9544a4f78defSmrg   ac_outfile=conftest.$ac_objext
9545a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9546a4f78defSmrg   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9547a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
9548a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
9549a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
9550a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
9551a4f78defSmrg   # The option is referenced via a variable to avoid confusing sed.
9552a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
9553a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9554a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9555a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
9556a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9557a4f78defSmrg   (eval "$lt_compile" 2>conftest.err)
9558a4f78defSmrg   ac_status=$?
9559a4f78defSmrg   cat conftest.err >&5
9560a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561a4f78defSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
9562a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
9563a4f78defSmrg     # So say no if there are warnings other than the usual output.
9564a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9565a4f78defSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9566a4f78defSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9567a4f78defSmrg       lt_cv_prog_compiler_rtti_exceptions=yes
9568a4f78defSmrg     fi
9569a4f78defSmrg   fi
9570a4f78defSmrg   $RM conftest*
9571a4f78defSmrg
9572a4f78defSmrgfi
9573a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9574a4f78defSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9575a4f78defSmrg
9576a4f78defSmrgif test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9577a4f78defSmrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9578a4f78defSmrgelse
9579a4f78defSmrg    :
9580a4f78defSmrgfi
9581a4f78defSmrg
9582a4f78defSmrgfi
9583a4f78defSmrg
9584a4f78defSmrg
9585a4f78defSmrg
9586a4f78defSmrg
9587a4f78defSmrg
9588a4f78defSmrg
9589a4f78defSmrg  lt_prog_compiler_wl=
9590a4f78defSmrglt_prog_compiler_pic=
9591a4f78defSmrglt_prog_compiler_static=
9592a4f78defSmrg
9593a4f78defSmrg
9594a4f78defSmrg  if test yes = "$GCC"; then
9595a4f78defSmrg    lt_prog_compiler_wl='-Wl,'
9596a4f78defSmrg    lt_prog_compiler_static='-static'
9597a4f78defSmrg
9598a4f78defSmrg    case $host_os in
9599a4f78defSmrg      aix*)
9600a4f78defSmrg      # All AIX code is PIC.
9601a4f78defSmrg      if test ia64 = "$host_cpu"; then
9602a4f78defSmrg	# AIX 5 now supports IA64 processor
9603a4f78defSmrg	lt_prog_compiler_static='-Bstatic'
9604a4f78defSmrg      fi
9605a4f78defSmrg      lt_prog_compiler_pic='-fPIC'
9606a4f78defSmrg      ;;
9607a4f78defSmrg
9608a4f78defSmrg    amigaos*)
9609a4f78defSmrg      case $host_cpu in
9610a4f78defSmrg      powerpc)
9611a4f78defSmrg            # see comment about AmigaOS4 .so support
9612a4f78defSmrg            lt_prog_compiler_pic='-fPIC'
9613a4f78defSmrg        ;;
9614a4f78defSmrg      m68k)
9615a4f78defSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
9616a4f78defSmrg            # adding the '-m68020' flag to GCC prevents building anything better,
9617a4f78defSmrg            # like '-m68040'.
9618a4f78defSmrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9619a4f78defSmrg        ;;
9620a4f78defSmrg      esac
9621a4f78defSmrg      ;;
9622a4f78defSmrg
9623a4f78defSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9624a4f78defSmrg      # PIC is the default for these OSes.
9625a4f78defSmrg      ;;
9626a4f78defSmrg
9627a4f78defSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
9628a4f78defSmrg      # This hack is so that the source file can tell whether it is being
9629a4f78defSmrg      # built for inclusion in a dll (and should export symbols for example).
9630a4f78defSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9631a4f78defSmrg      # (--disable-auto-import) libraries
9632a4f78defSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
9633a4f78defSmrg      case $host_os in
9634a4f78defSmrg      os2*)
9635a4f78defSmrg	lt_prog_compiler_static='$wl-static'
9636a4f78defSmrg	;;
9637a4f78defSmrg      esac
9638a4f78defSmrg      ;;
9639a4f78defSmrg
9640a4f78defSmrg    darwin* | rhapsody*)
9641a4f78defSmrg      # PIC is the default on this platform
9642a4f78defSmrg      # Common symbols not allowed in MH_DYLIB files
9643a4f78defSmrg      lt_prog_compiler_pic='-fno-common'
9644a4f78defSmrg      ;;
9645a4f78defSmrg
9646a4f78defSmrg    haiku*)
9647a4f78defSmrg      # PIC is the default for Haiku.
9648a4f78defSmrg      # The "-static" flag exists, but is broken.
9649a4f78defSmrg      lt_prog_compiler_static=
9650a4f78defSmrg      ;;
9651a4f78defSmrg
9652a4f78defSmrg    hpux*)
9653a4f78defSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9654a4f78defSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9655a4f78defSmrg      # sets the default TLS model and affects inlining.
9656a4f78defSmrg      case $host_cpu in
9657a4f78defSmrg      hppa*64*)
9658a4f78defSmrg	# +Z the default
9659a4f78defSmrg	;;
9660a4f78defSmrg      *)
9661a4f78defSmrg	lt_prog_compiler_pic='-fPIC'
9662a4f78defSmrg	;;
9663a4f78defSmrg      esac
9664a4f78defSmrg      ;;
9665a4f78defSmrg
9666a4f78defSmrg    interix[3-9]*)
9667a4f78defSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9668a4f78defSmrg      # Instead, we relocate shared libraries at runtime.
9669a4f78defSmrg      ;;
9670a4f78defSmrg
9671a4f78defSmrg    msdosdjgpp*)
9672a4f78defSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
9673a4f78defSmrg      # on systems that don't support them.
9674a4f78defSmrg      lt_prog_compiler_can_build_shared=no
9675a4f78defSmrg      enable_shared=no
9676a4f78defSmrg      ;;
9677a4f78defSmrg
9678a4f78defSmrg    *nto* | *qnx*)
9679a4f78defSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
9680a4f78defSmrg      # it will coredump.
9681a4f78defSmrg      lt_prog_compiler_pic='-fPIC -shared'
9682a4f78defSmrg      ;;
9683a4f78defSmrg
9684a4f78defSmrg    sysv4*MP*)
9685a4f78defSmrg      if test -d /usr/nec; then
9686a4f78defSmrg	lt_prog_compiler_pic=-Kconform_pic
9687a4f78defSmrg      fi
9688a4f78defSmrg      ;;
9689a4f78defSmrg
9690a4f78defSmrg    *)
9691a4f78defSmrg      lt_prog_compiler_pic='-fPIC'
9692a4f78defSmrg      ;;
9693a4f78defSmrg    esac
9694a4f78defSmrg
9695a4f78defSmrg    case $cc_basename in
9696a4f78defSmrg    nvcc*) # Cuda Compiler Driver 2.2
9697a4f78defSmrg      lt_prog_compiler_wl='-Xlinker '
9698a4f78defSmrg      if test -n "$lt_prog_compiler_pic"; then
9699a4f78defSmrg        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9700a4f78defSmrg      fi
9701a4f78defSmrg      ;;
9702a4f78defSmrg    esac
9703a4f78defSmrg  else
9704a4f78defSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
9705a4f78defSmrg    case $host_os in
9706a4f78defSmrg    aix*)
9707a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9708a4f78defSmrg      if test ia64 = "$host_cpu"; then
9709a4f78defSmrg	# AIX 5 now supports IA64 processor
9710a4f78defSmrg	lt_prog_compiler_static='-Bstatic'
9711a4f78defSmrg      else
9712a4f78defSmrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9713a4f78defSmrg      fi
9714a4f78defSmrg      ;;
9715a4f78defSmrg
9716a4f78defSmrg    darwin* | rhapsody*)
9717a4f78defSmrg      # PIC is the default on this platform
9718a4f78defSmrg      # Common symbols not allowed in MH_DYLIB files
9719a4f78defSmrg      lt_prog_compiler_pic='-fno-common'
9720a4f78defSmrg      case $cc_basename in
9721a4f78defSmrg      nagfor*)
9722a4f78defSmrg        # NAG Fortran compiler
9723a4f78defSmrg        lt_prog_compiler_wl='-Wl,-Wl,,'
9724a4f78defSmrg        lt_prog_compiler_pic='-PIC'
9725a4f78defSmrg        lt_prog_compiler_static='-Bstatic'
9726a4f78defSmrg        ;;
9727a4f78defSmrg      esac
9728a4f78defSmrg      ;;
9729a4f78defSmrg
9730a4f78defSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
9731a4f78defSmrg      # This hack is so that the source file can tell whether it is being
9732a4f78defSmrg      # built for inclusion in a dll (and should export symbols for example).
9733a4f78defSmrg      lt_prog_compiler_pic='-DDLL_EXPORT'
9734a4f78defSmrg      case $host_os in
9735a4f78defSmrg      os2*)
9736a4f78defSmrg	lt_prog_compiler_static='$wl-static'
9737a4f78defSmrg	;;
9738a4f78defSmrg      esac
9739a4f78defSmrg      ;;
9740a4f78defSmrg
9741a4f78defSmrg    hpux9* | hpux10* | hpux11*)
9742a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9743a4f78defSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9744a4f78defSmrg      # not for PA HP-UX.
9745a4f78defSmrg      case $host_cpu in
9746a4f78defSmrg      hppa*64*|ia64*)
9747a4f78defSmrg	# +Z the default
9748a4f78defSmrg	;;
9749a4f78defSmrg      *)
9750a4f78defSmrg	lt_prog_compiler_pic='+Z'
9751a4f78defSmrg	;;
9752a4f78defSmrg      esac
9753a4f78defSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9754a4f78defSmrg      lt_prog_compiler_static='$wl-a ${wl}archive'
9755a4f78defSmrg      ;;
9756a4f78defSmrg
9757a4f78defSmrg    irix5* | irix6* | nonstopux*)
9758a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9759a4f78defSmrg      # PIC (with -KPIC) is the default.
9760a4f78defSmrg      lt_prog_compiler_static='-non_shared'
9761a4f78defSmrg      ;;
9762a4f78defSmrg
9763a4f78defSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9764a4f78defSmrg      case $cc_basename in
9765a4f78defSmrg      # old Intel for x86_64, which still supported -KPIC.
9766a4f78defSmrg      ecc*)
9767a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9768a4f78defSmrg	lt_prog_compiler_pic='-KPIC'
9769a4f78defSmrg	lt_prog_compiler_static='-static'
9770a4f78defSmrg        ;;
9771a4f78defSmrg      # icc used to be incompatible with GCC.
9772a4f78defSmrg      # ICC 10 doesn't accept -KPIC any more.
9773a4f78defSmrg      icc* | ifort*)
9774a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9775a4f78defSmrg	lt_prog_compiler_pic='-fPIC'
9776a4f78defSmrg	lt_prog_compiler_static='-static'
9777a4f78defSmrg        ;;
9778a4f78defSmrg      # Lahey Fortran 8.1.
9779a4f78defSmrg      lf95*)
9780a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9781a4f78defSmrg	lt_prog_compiler_pic='--shared'
9782a4f78defSmrg	lt_prog_compiler_static='--static'
9783a4f78defSmrg	;;
9784a4f78defSmrg      nagfor*)
9785a4f78defSmrg	# NAG Fortran compiler
9786a4f78defSmrg	lt_prog_compiler_wl='-Wl,-Wl,,'
9787a4f78defSmrg	lt_prog_compiler_pic='-PIC'
9788a4f78defSmrg	lt_prog_compiler_static='-Bstatic'
9789a4f78defSmrg	;;
9790a4f78defSmrg      tcc*)
9791a4f78defSmrg	# Fabrice Bellard et al's Tiny C Compiler
9792a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9793a4f78defSmrg	lt_prog_compiler_pic='-fPIC'
9794a4f78defSmrg	lt_prog_compiler_static='-static'
9795a4f78defSmrg	;;
9796a4f78defSmrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9797a4f78defSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
9798a4f78defSmrg	# which looks to be a dead project)
9799a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9800a4f78defSmrg	lt_prog_compiler_pic='-fpic'
9801a4f78defSmrg	lt_prog_compiler_static='-Bstatic'
9802a4f78defSmrg        ;;
9803a4f78defSmrg      ccc*)
9804a4f78defSmrg        lt_prog_compiler_wl='-Wl,'
9805a4f78defSmrg        # All Alpha code is PIC.
9806a4f78defSmrg        lt_prog_compiler_static='-non_shared'
9807a4f78defSmrg        ;;
9808a4f78defSmrg      xl* | bgxl* | bgf* | mpixl*)
9809a4f78defSmrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9810a4f78defSmrg	lt_prog_compiler_wl='-Wl,'
9811a4f78defSmrg	lt_prog_compiler_pic='-qpic'
9812a4f78defSmrg	lt_prog_compiler_static='-qstaticlink'
9813a4f78defSmrg	;;
9814a4f78defSmrg      *)
9815a4f78defSmrg	case `$CC -V 2>&1 | sed 5q` in
9816a4f78defSmrg	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9817a4f78defSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9818a4f78defSmrg	  lt_prog_compiler_pic='-KPIC'
9819a4f78defSmrg	  lt_prog_compiler_static='-Bstatic'
9820a4f78defSmrg	  lt_prog_compiler_wl=''
9821a4f78defSmrg	  ;;
9822a4f78defSmrg	*Sun\ F* | *Sun*Fortran*)
9823a4f78defSmrg	  lt_prog_compiler_pic='-KPIC'
9824a4f78defSmrg	  lt_prog_compiler_static='-Bstatic'
9825a4f78defSmrg	  lt_prog_compiler_wl='-Qoption ld '
9826a4f78defSmrg	  ;;
9827a4f78defSmrg	*Sun\ C*)
9828a4f78defSmrg	  # Sun C 5.9
9829a4f78defSmrg	  lt_prog_compiler_pic='-KPIC'
9830a4f78defSmrg	  lt_prog_compiler_static='-Bstatic'
9831a4f78defSmrg	  lt_prog_compiler_wl='-Wl,'
9832a4f78defSmrg	  ;;
9833a4f78defSmrg        *Intel*\ [CF]*Compiler*)
9834a4f78defSmrg	  lt_prog_compiler_wl='-Wl,'
9835a4f78defSmrg	  lt_prog_compiler_pic='-fPIC'
9836a4f78defSmrg	  lt_prog_compiler_static='-static'
9837a4f78defSmrg	  ;;
9838a4f78defSmrg	*Portland\ Group*)
9839a4f78defSmrg	  lt_prog_compiler_wl='-Wl,'
9840a4f78defSmrg	  lt_prog_compiler_pic='-fpic'
9841a4f78defSmrg	  lt_prog_compiler_static='-Bstatic'
9842a4f78defSmrg	  ;;
9843a4f78defSmrg	esac
9844a4f78defSmrg	;;
9845a4f78defSmrg      esac
9846a4f78defSmrg      ;;
9847a4f78defSmrg
9848a4f78defSmrg    newsos6)
9849a4f78defSmrg      lt_prog_compiler_pic='-KPIC'
9850a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9851a4f78defSmrg      ;;
9852a4f78defSmrg
9853a4f78defSmrg    *nto* | *qnx*)
9854a4f78defSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
9855a4f78defSmrg      # it will coredump.
9856a4f78defSmrg      lt_prog_compiler_pic='-fPIC -shared'
9857a4f78defSmrg      ;;
9858a4f78defSmrg
9859a4f78defSmrg    osf3* | osf4* | osf5*)
9860a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9861a4f78defSmrg      # All OSF/1 code is PIC.
9862a4f78defSmrg      lt_prog_compiler_static='-non_shared'
9863a4f78defSmrg      ;;
9864a4f78defSmrg
9865a4f78defSmrg    rdos*)
9866a4f78defSmrg      lt_prog_compiler_static='-non_shared'
9867a4f78defSmrg      ;;
9868a4f78defSmrg
9869a4f78defSmrg    solaris*)
9870a4f78defSmrg      lt_prog_compiler_pic='-KPIC'
9871a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9872a4f78defSmrg      case $cc_basename in
9873a4f78defSmrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9874a4f78defSmrg	lt_prog_compiler_wl='-Qoption ld ';;
9875a4f78defSmrg      *)
9876a4f78defSmrg	lt_prog_compiler_wl='-Wl,';;
9877a4f78defSmrg      esac
9878a4f78defSmrg      ;;
9879a4f78defSmrg
9880a4f78defSmrg    sunos4*)
9881a4f78defSmrg      lt_prog_compiler_wl='-Qoption ld '
9882a4f78defSmrg      lt_prog_compiler_pic='-PIC'
9883a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9884a4f78defSmrg      ;;
9885a4f78defSmrg
9886a4f78defSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
9887a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9888a4f78defSmrg      lt_prog_compiler_pic='-KPIC'
9889a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9890a4f78defSmrg      ;;
9891a4f78defSmrg
9892a4f78defSmrg    sysv4*MP*)
9893a4f78defSmrg      if test -d /usr/nec; then
9894a4f78defSmrg	lt_prog_compiler_pic='-Kconform_pic'
9895a4f78defSmrg	lt_prog_compiler_static='-Bstatic'
9896a4f78defSmrg      fi
9897a4f78defSmrg      ;;
9898a4f78defSmrg
9899a4f78defSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9900a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9901a4f78defSmrg      lt_prog_compiler_pic='-KPIC'
9902a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9903a4f78defSmrg      ;;
9904a4f78defSmrg
9905a4f78defSmrg    unicos*)
9906a4f78defSmrg      lt_prog_compiler_wl='-Wl,'
9907a4f78defSmrg      lt_prog_compiler_can_build_shared=no
9908a4f78defSmrg      ;;
9909a4f78defSmrg
9910a4f78defSmrg    uts4*)
9911a4f78defSmrg      lt_prog_compiler_pic='-pic'
9912a4f78defSmrg      lt_prog_compiler_static='-Bstatic'
9913a4f78defSmrg      ;;
9914a4f78defSmrg
9915a4f78defSmrg    *)
9916a4f78defSmrg      lt_prog_compiler_can_build_shared=no
9917a4f78defSmrg      ;;
9918a4f78defSmrg    esac
9919a4f78defSmrg  fi
9920a4f78defSmrg
9921a4f78defSmrgcase $host_os in
9922a4f78defSmrg  # For platforms that do not support PIC, -DPIC is meaningless:
9923a4f78defSmrg  *djgpp*)
9924a4f78defSmrg    lt_prog_compiler_pic=
9925a4f78defSmrg    ;;
9926a4f78defSmrg  *)
9927a4f78defSmrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9928a4f78defSmrg    ;;
9929a4f78defSmrgesac
9930a4f78defSmrg
9931a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9932a4f78defSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9933a4f78defSmrgif ${lt_cv_prog_compiler_pic+:} false; then :
9934a4f78defSmrg  $as_echo_n "(cached) " >&6
9935a4f78defSmrgelse
9936a4f78defSmrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9937a4f78defSmrgfi
9938a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9939a4f78defSmrg$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9940a4f78defSmrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9941a4f78defSmrg
9942a4f78defSmrg#
9943a4f78defSmrg# Check to make sure the PIC flag actually works.
9944a4f78defSmrg#
9945a4f78defSmrgif test -n "$lt_prog_compiler_pic"; then
9946a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9947a4f78defSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9948a4f78defSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
9949a4f78defSmrg  $as_echo_n "(cached) " >&6
9950a4f78defSmrgelse
9951a4f78defSmrg  lt_cv_prog_compiler_pic_works=no
9952a4f78defSmrg   ac_outfile=conftest.$ac_objext
9953a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9954a4f78defSmrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9955a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
9956a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
9957a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
9958a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
9959a4f78defSmrg   # The option is referenced via a variable to avoid confusing sed.
9960a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
9961a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9962a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9963a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
9964a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9965a4f78defSmrg   (eval "$lt_compile" 2>conftest.err)
9966a4f78defSmrg   ac_status=$?
9967a4f78defSmrg   cat conftest.err >&5
9968a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969a4f78defSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
9970a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
9971a4f78defSmrg     # So say no if there are warnings other than the usual output.
9972a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9973a4f78defSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9974a4f78defSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9975a4f78defSmrg       lt_cv_prog_compiler_pic_works=yes
9976a4f78defSmrg     fi
9977a4f78defSmrg   fi
9978a4f78defSmrg   $RM conftest*
9979a4f78defSmrg
9980a4f78defSmrgfi
9981a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9982a4f78defSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9983a4f78defSmrg
9984a4f78defSmrgif test yes = "$lt_cv_prog_compiler_pic_works"; then
9985a4f78defSmrg    case $lt_prog_compiler_pic in
9986a4f78defSmrg     "" | " "*) ;;
9987a4f78defSmrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9988a4f78defSmrg     esac
9989a4f78defSmrgelse
9990a4f78defSmrg    lt_prog_compiler_pic=
9991a4f78defSmrg     lt_prog_compiler_can_build_shared=no
9992a4f78defSmrgfi
9993a4f78defSmrg
9994a4f78defSmrgfi
9995a4f78defSmrg
9996a4f78defSmrg
9997a4f78defSmrg
9998a4f78defSmrg
9999a4f78defSmrg
10000a4f78defSmrg
10001a4f78defSmrg
10002a4f78defSmrg
10003a4f78defSmrg
10004a4f78defSmrg
10005a4f78defSmrg
10006a4f78defSmrg#
10007a4f78defSmrg# Check to make sure the static flag actually works.
10008a4f78defSmrg#
10009a4f78defSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10010a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10011a4f78defSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10012a4f78defSmrgif ${lt_cv_prog_compiler_static_works+:} false; then :
10013a4f78defSmrg  $as_echo_n "(cached) " >&6
10014a4f78defSmrgelse
10015a4f78defSmrg  lt_cv_prog_compiler_static_works=no
10016a4f78defSmrg   save_LDFLAGS=$LDFLAGS
10017a4f78defSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10018a4f78defSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10019a4f78defSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10020a4f78defSmrg     # The linker can only warn and ignore the option if not recognized
10021a4f78defSmrg     # So say no if there are warnings
10022a4f78defSmrg     if test -s conftest.err; then
10023a4f78defSmrg       # Append any errors to the config.log.
10024a4f78defSmrg       cat conftest.err 1>&5
10025a4f78defSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10026a4f78defSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10027a4f78defSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
10028a4f78defSmrg         lt_cv_prog_compiler_static_works=yes
10029a4f78defSmrg       fi
10030a4f78defSmrg     else
10031a4f78defSmrg       lt_cv_prog_compiler_static_works=yes
10032a4f78defSmrg     fi
10033a4f78defSmrg   fi
10034a4f78defSmrg   $RM -r conftest*
10035a4f78defSmrg   LDFLAGS=$save_LDFLAGS
10036a4f78defSmrg
10037a4f78defSmrgfi
10038a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10039a4f78defSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10040a4f78defSmrg
10041a4f78defSmrgif test yes = "$lt_cv_prog_compiler_static_works"; then
10042a4f78defSmrg    :
10043a4f78defSmrgelse
10044a4f78defSmrg    lt_prog_compiler_static=
10045a4f78defSmrgfi
10046a4f78defSmrg
10047a4f78defSmrg
10048a4f78defSmrg
10049a4f78defSmrg
10050a4f78defSmrg
10051a4f78defSmrg
10052a4f78defSmrg
10053a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10054a4f78defSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10055a4f78defSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
10056a4f78defSmrg  $as_echo_n "(cached) " >&6
10057a4f78defSmrgelse
10058a4f78defSmrg  lt_cv_prog_compiler_c_o=no
10059a4f78defSmrg   $RM -r conftest 2>/dev/null
10060a4f78defSmrg   mkdir conftest
10061a4f78defSmrg   cd conftest
10062a4f78defSmrg   mkdir out
10063a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10064a4f78defSmrg
10065a4f78defSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
10066a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
10067a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
10068a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
10069a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
10070a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
10071a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10072a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10073a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
10074a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10075a4f78defSmrg   (eval "$lt_compile" 2>out/conftest.err)
10076a4f78defSmrg   ac_status=$?
10077a4f78defSmrg   cat out/conftest.err >&5
10078a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079a4f78defSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10080a4f78defSmrg   then
10081a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
10082a4f78defSmrg     # So say no if there are warnings
10083a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10084a4f78defSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10085a4f78defSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10086a4f78defSmrg       lt_cv_prog_compiler_c_o=yes
10087a4f78defSmrg     fi
10088a4f78defSmrg   fi
10089a4f78defSmrg   chmod u+w . 2>&5
10090a4f78defSmrg   $RM conftest*
10091a4f78defSmrg   # SGI C++ compiler will create directory out/ii_files/ for
10092a4f78defSmrg   # template instantiation
10093a4f78defSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10094a4f78defSmrg   $RM out/* && rmdir out
10095a4f78defSmrg   cd ..
10096a4f78defSmrg   $RM -r conftest
10097a4f78defSmrg   $RM conftest*
10098a4f78defSmrg
10099a4f78defSmrgfi
10100a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10101a4f78defSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10102a4f78defSmrg
10103a4f78defSmrg
10104a4f78defSmrg
10105a4f78defSmrg
10106a4f78defSmrg
10107a4f78defSmrg
10108a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10109a4f78defSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10110a4f78defSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
10111a4f78defSmrg  $as_echo_n "(cached) " >&6
10112a4f78defSmrgelse
10113a4f78defSmrg  lt_cv_prog_compiler_c_o=no
10114a4f78defSmrg   $RM -r conftest 2>/dev/null
10115a4f78defSmrg   mkdir conftest
10116a4f78defSmrg   cd conftest
10117a4f78defSmrg   mkdir out
10118a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10119a4f78defSmrg
10120a4f78defSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
10121a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
10122a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
10123a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
10124a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
10125a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
10126a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10127a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10128a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
10129a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10130a4f78defSmrg   (eval "$lt_compile" 2>out/conftest.err)
10131a4f78defSmrg   ac_status=$?
10132a4f78defSmrg   cat out/conftest.err >&5
10133a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134a4f78defSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10135a4f78defSmrg   then
10136a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
10137a4f78defSmrg     # So say no if there are warnings
10138a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10139a4f78defSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10140a4f78defSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10141a4f78defSmrg       lt_cv_prog_compiler_c_o=yes
10142a4f78defSmrg     fi
10143a4f78defSmrg   fi
10144a4f78defSmrg   chmod u+w . 2>&5
10145a4f78defSmrg   $RM conftest*
10146a4f78defSmrg   # SGI C++ compiler will create directory out/ii_files/ for
10147a4f78defSmrg   # template instantiation
10148a4f78defSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10149a4f78defSmrg   $RM out/* && rmdir out
10150a4f78defSmrg   cd ..
10151a4f78defSmrg   $RM -r conftest
10152a4f78defSmrg   $RM conftest*
10153a4f78defSmrg
10154a4f78defSmrgfi
10155a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10156a4f78defSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10157a4f78defSmrg
10158a4f78defSmrg
10159a4f78defSmrg
10160a4f78defSmrg
10161a4f78defSmrghard_links=nottested
10162a4f78defSmrgif test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10163a4f78defSmrg  # do not overwrite the value of need_locks provided by the user
10164a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10165a4f78defSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
10166a4f78defSmrg  hard_links=yes
10167a4f78defSmrg  $RM conftest*
10168a4f78defSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10169a4f78defSmrg  touch conftest.a
10170a4f78defSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
10171a4f78defSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10172a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10173a4f78defSmrg$as_echo "$hard_links" >&6; }
10174a4f78defSmrg  if test no = "$hard_links"; then
10175a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10176a4f78defSmrg$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10177a4f78defSmrg    need_locks=warn
10178a4f78defSmrg  fi
10179a4f78defSmrgelse
10180a4f78defSmrg  need_locks=no
10181a4f78defSmrgfi
10182a4f78defSmrg
10183a4f78defSmrg
10184a4f78defSmrg
10185a4f78defSmrg
10186a4f78defSmrg
10187a4f78defSmrg
10188a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10189a4f78defSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10190a4f78defSmrg
10191a4f78defSmrg  runpath_var=
10192a4f78defSmrg  allow_undefined_flag=
10193a4f78defSmrg  always_export_symbols=no
10194a4f78defSmrg  archive_cmds=
10195a4f78defSmrg  archive_expsym_cmds=
10196a4f78defSmrg  compiler_needs_object=no
10197a4f78defSmrg  enable_shared_with_static_runtimes=no
10198a4f78defSmrg  export_dynamic_flag_spec=
10199a4f78defSmrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10200a4f78defSmrg  hardcode_automatic=no
10201a4f78defSmrg  hardcode_direct=no
10202a4f78defSmrg  hardcode_direct_absolute=no
10203a4f78defSmrg  hardcode_libdir_flag_spec=
10204a4f78defSmrg  hardcode_libdir_separator=
10205a4f78defSmrg  hardcode_minus_L=no
10206a4f78defSmrg  hardcode_shlibpath_var=unsupported
10207a4f78defSmrg  inherit_rpath=no
10208a4f78defSmrg  link_all_deplibs=unknown
10209a4f78defSmrg  module_cmds=
10210a4f78defSmrg  module_expsym_cmds=
10211a4f78defSmrg  old_archive_from_new_cmds=
10212a4f78defSmrg  old_archive_from_expsyms_cmds=
10213a4f78defSmrg  thread_safe_flag_spec=
10214a4f78defSmrg  whole_archive_flag_spec=
10215a4f78defSmrg  # include_expsyms should be a list of space-separated symbols to be *always*
10216a4f78defSmrg  # included in the symbol list
10217a4f78defSmrg  include_expsyms=
10218a4f78defSmrg  # exclude_expsyms can be an extended regexp of symbols to exclude
10219a4f78defSmrg  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10220a4f78defSmrg  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10221a4f78defSmrg  # as well as any symbol that contains 'd'.
10222a4f78defSmrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10223a4f78defSmrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10224a4f78defSmrg  # platforms (ab)use it in PIC code, but their linkers get confused if
10225a4f78defSmrg  # the symbol is explicitly referenced.  Since portable code cannot
10226a4f78defSmrg  # rely on this symbol name, it's probably fine to never include it in
10227a4f78defSmrg  # preloaded symbol tables.
10228a4f78defSmrg  # Exclude shared library initialization/finalization symbols.
10229a4f78defSmrg  extract_expsyms_cmds=
10230a4f78defSmrg
10231a4f78defSmrg  case $host_os in
10232a4f78defSmrg  cygwin* | mingw* | pw32* | cegcc*)
10233a4f78defSmrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10234a4f78defSmrg    # When not using gcc, we currently assume that we are using
10235a4f78defSmrg    # Microsoft Visual C++.
10236a4f78defSmrg    if test yes != "$GCC"; then
10237a4f78defSmrg      with_gnu_ld=no
10238a4f78defSmrg    fi
10239a4f78defSmrg    ;;
10240a4f78defSmrg  interix*)
10241a4f78defSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
10242a4f78defSmrg    with_gnu_ld=yes
10243a4f78defSmrg    ;;
10244a4f78defSmrg  openbsd* | bitrig*)
10245a4f78defSmrg    with_gnu_ld=no
10246a4f78defSmrg    ;;
10247a4f78defSmrg  esac
10248a4f78defSmrg
10249a4f78defSmrg  ld_shlibs=yes
10250a4f78defSmrg
10251a4f78defSmrg  # On some targets, GNU ld is compatible enough with the native linker
10252a4f78defSmrg  # that we're better off using the native interface for both.
10253a4f78defSmrg  lt_use_gnu_ld_interface=no
10254a4f78defSmrg  if test yes = "$with_gnu_ld"; then
10255a4f78defSmrg    case $host_os in
10256a4f78defSmrg      aix*)
10257a4f78defSmrg	# The AIX port of GNU ld has always aspired to compatibility
10258a4f78defSmrg	# with the native linker.  However, as the warning in the GNU ld
10259a4f78defSmrg	# block says, versions before 2.19.5* couldn't really create working
10260a4f78defSmrg	# shared libraries, regardless of the interface used.
10261a4f78defSmrg	case `$LD -v 2>&1` in
10262a4f78defSmrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10263a4f78defSmrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10264a4f78defSmrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10265a4f78defSmrg	  *)
10266a4f78defSmrg	    lt_use_gnu_ld_interface=yes
10267a4f78defSmrg	    ;;
10268a4f78defSmrg	esac
10269a4f78defSmrg	;;
10270a4f78defSmrg      *)
10271a4f78defSmrg	lt_use_gnu_ld_interface=yes
10272a4f78defSmrg	;;
10273a4f78defSmrg    esac
10274a4f78defSmrg  fi
10275a4f78defSmrg
10276a4f78defSmrg  if test yes = "$lt_use_gnu_ld_interface"; then
10277a4f78defSmrg    # If archive_cmds runs LD, not CC, wlarc should be empty
10278a4f78defSmrg    wlarc='$wl'
10279a4f78defSmrg
10280a4f78defSmrg    # Set some defaults for GNU ld with shared library support. These
10281a4f78defSmrg    # are reset later if shared libraries are not supported. Putting them
10282a4f78defSmrg    # here allows them to be overridden if necessary.
10283a4f78defSmrg    runpath_var=LD_RUN_PATH
10284a4f78defSmrg    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10285a4f78defSmrg    export_dynamic_flag_spec='$wl--export-dynamic'
10286a4f78defSmrg    # ancient GNU ld didn't support --whole-archive et. al.
10287a4f78defSmrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10288a4f78defSmrg      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10289a4f78defSmrg    else
10290a4f78defSmrg      whole_archive_flag_spec=
10291a4f78defSmrg    fi
10292a4f78defSmrg    supports_anon_versioning=no
10293a4f78defSmrg    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10294a4f78defSmrg      *GNU\ gold*) supports_anon_versioning=yes ;;
10295a4f78defSmrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10296a4f78defSmrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10297a4f78defSmrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10298a4f78defSmrg      *\ 2.11.*) ;; # other 2.11 versions
10299a4f78defSmrg      *) supports_anon_versioning=yes ;;
10300a4f78defSmrg    esac
10301a4f78defSmrg
10302a4f78defSmrg    # See if GNU ld supports shared libraries.
10303a4f78defSmrg    case $host_os in
10304a4f78defSmrg    aix[3-9]*)
10305a4f78defSmrg      # On AIX/PPC, the GNU linker is very broken
10306a4f78defSmrg      if test ia64 != "$host_cpu"; then
10307a4f78defSmrg	ld_shlibs=no
10308a4f78defSmrg	cat <<_LT_EOF 1>&2
10309a4f78defSmrg
10310a4f78defSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported
10311a4f78defSmrg*** to be unable to reliably create shared libraries on AIX.
10312a4f78defSmrg*** Therefore, libtool is disabling shared libraries support.  If you
10313a4f78defSmrg*** really care for shared libraries, you may want to install binutils
10314a4f78defSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10315a4f78defSmrg*** You will then need to restart the configuration process.
10316a4f78defSmrg
10317a4f78defSmrg_LT_EOF
10318a4f78defSmrg      fi
10319a4f78defSmrg      ;;
10320a4f78defSmrg
10321a4f78defSmrg    amigaos*)
10322a4f78defSmrg      case $host_cpu in
10323a4f78defSmrg      powerpc)
10324a4f78defSmrg            # see comment about AmigaOS4 .so support
10325a4f78defSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10326a4f78defSmrg            archive_expsym_cmds=''
10327a4f78defSmrg        ;;
10328a4f78defSmrg      m68k)
10329a4f78defSmrg            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)'
10330a4f78defSmrg            hardcode_libdir_flag_spec='-L$libdir'
10331a4f78defSmrg            hardcode_minus_L=yes
10332a4f78defSmrg        ;;
10333a4f78defSmrg      esac
10334a4f78defSmrg      ;;
10335a4f78defSmrg
10336a4f78defSmrg    beos*)
10337a4f78defSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338a4f78defSmrg	allow_undefined_flag=unsupported
10339a4f78defSmrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10340a4f78defSmrg	# support --undefined.  This deserves some investigation.  FIXME
10341a4f78defSmrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10342a4f78defSmrg      else
10343a4f78defSmrg	ld_shlibs=no
10344a4f78defSmrg      fi
10345a4f78defSmrg      ;;
10346a4f78defSmrg
10347a4f78defSmrg    cygwin* | mingw* | pw32* | cegcc*)
10348a4f78defSmrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10349a4f78defSmrg      # as there is no search path for DLLs.
10350a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
10351a4f78defSmrg      export_dynamic_flag_spec='$wl--export-all-symbols'
10352a4f78defSmrg      allow_undefined_flag=unsupported
10353a4f78defSmrg      always_export_symbols=no
10354a4f78defSmrg      enable_shared_with_static_runtimes=yes
10355a4f78defSmrg      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'
10356a4f78defSmrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10357a4f78defSmrg
10358a4f78defSmrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10359a4f78defSmrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10360a4f78defSmrg	# If the export-symbols file already is a .def file, use it as
10361a4f78defSmrg	# is; otherwise, prepend EXPORTS...
10362a4f78defSmrg	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10363a4f78defSmrg          cp $export_symbols $output_objdir/$soname.def;
10364a4f78defSmrg        else
10365a4f78defSmrg          echo EXPORTS > $output_objdir/$soname.def;
10366a4f78defSmrg          cat $export_symbols >> $output_objdir/$soname.def;
10367a4f78defSmrg        fi~
10368a4f78defSmrg        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10369a4f78defSmrg      else
10370a4f78defSmrg	ld_shlibs=no
10371a4f78defSmrg      fi
10372a4f78defSmrg      ;;
10373a4f78defSmrg
10374a4f78defSmrg    haiku*)
10375a4f78defSmrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376a4f78defSmrg      link_all_deplibs=yes
10377a4f78defSmrg      ;;
10378a4f78defSmrg
10379a4f78defSmrg    os2*)
10380a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
10381a4f78defSmrg      hardcode_minus_L=yes
10382a4f78defSmrg      allow_undefined_flag=unsupported
10383a4f78defSmrg      shrext_cmds=.dll
10384a4f78defSmrg      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10385a4f78defSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10386a4f78defSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10387a4f78defSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
10388a4f78defSmrg	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10389a4f78defSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10390a4f78defSmrg	emximp -o $lib $output_objdir/$libname.def'
10391a4f78defSmrg      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10392a4f78defSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10393a4f78defSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10394a4f78defSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
10395a4f78defSmrg	prefix_cmds="$SED"~
10396a4f78defSmrg	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10397a4f78defSmrg	  prefix_cmds="$prefix_cmds -e 1d";
10398a4f78defSmrg	fi~
10399a4f78defSmrg	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10400a4f78defSmrg	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10401a4f78defSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10402a4f78defSmrg	emximp -o $lib $output_objdir/$libname.def'
10403a4f78defSmrg      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10404a4f78defSmrg      enable_shared_with_static_runtimes=yes
10405a4f78defSmrg      ;;
10406a4f78defSmrg
10407a4f78defSmrg    interix[3-9]*)
10408a4f78defSmrg      hardcode_direct=no
10409a4f78defSmrg      hardcode_shlibpath_var=no
10410a4f78defSmrg      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10411a4f78defSmrg      export_dynamic_flag_spec='$wl-E'
10412a4f78defSmrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10413a4f78defSmrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
10414a4f78defSmrg      # default) and relocated if they conflict, which is a slow very memory
10415a4f78defSmrg      # consuming and fragmenting process.  To avoid this, we pick a random,
10416a4f78defSmrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10417a4f78defSmrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10418a4f78defSmrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10419a4f78defSmrg      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'
10420a4f78defSmrg      ;;
10421a4f78defSmrg
10422a4f78defSmrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10423a4f78defSmrg      tmp_diet=no
10424a4f78defSmrg      if test linux-dietlibc = "$host_os"; then
10425a4f78defSmrg	case $cc_basename in
10426a4f78defSmrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10427a4f78defSmrg	esac
10428a4f78defSmrg      fi
10429a4f78defSmrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10430a4f78defSmrg	 && test no = "$tmp_diet"
10431a4f78defSmrg      then
10432a4f78defSmrg	tmp_addflag=' $pic_flag'
10433a4f78defSmrg	tmp_sharedflag='-shared'
10434a4f78defSmrg	case $cc_basename,$host_cpu in
10435a4f78defSmrg        pgcc*)				# Portland Group C compiler
10436a4f78defSmrg	  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'
10437a4f78defSmrg	  tmp_addflag=' $pic_flag'
10438a4f78defSmrg	  ;;
10439a4f78defSmrg	pgf77* | pgf90* | pgf95* | pgfortran*)
10440a4f78defSmrg					# Portland Group f77 and f90 compilers
10441a4f78defSmrg	  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'
10442a4f78defSmrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
10443a4f78defSmrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10444a4f78defSmrg	  tmp_addflag=' -i_dynamic' ;;
10445a4f78defSmrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10446a4f78defSmrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10447a4f78defSmrg	ifc* | ifort*)			# Intel Fortran compiler
10448a4f78defSmrg	  tmp_addflag=' -nofor_main' ;;
10449a4f78defSmrg	lf95*)				# Lahey Fortran 8.1
10450a4f78defSmrg	  whole_archive_flag_spec=
10451a4f78defSmrg	  tmp_sharedflag='--shared' ;;
10452a4f78defSmrg        nagfor*)                        # NAGFOR 5.3
10453a4f78defSmrg          tmp_sharedflag='-Wl,-shared' ;;
10454a4f78defSmrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10455a4f78defSmrg	  tmp_sharedflag='-qmkshrobj'
10456a4f78defSmrg	  tmp_addflag= ;;
10457a4f78defSmrg	nvcc*)	# Cuda Compiler Driver 2.2
10458a4f78defSmrg	  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'
10459a4f78defSmrg	  compiler_needs_object=yes
10460a4f78defSmrg	  ;;
10461a4f78defSmrg	esac
10462a4f78defSmrg	case `$CC -V 2>&1 | sed 5q` in
10463a4f78defSmrg	*Sun\ C*)			# Sun C 5.9
10464a4f78defSmrg	  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'
10465a4f78defSmrg	  compiler_needs_object=yes
10466a4f78defSmrg	  tmp_sharedflag='-G' ;;
10467a4f78defSmrg	*Sun\ F*)			# Sun Fortran 8.3
10468a4f78defSmrg	  tmp_sharedflag='-G' ;;
10469a4f78defSmrg	esac
10470a4f78defSmrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10471a4f78defSmrg
10472a4f78defSmrg        if test yes = "$supports_anon_versioning"; then
10473a4f78defSmrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10474a4f78defSmrg            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10475a4f78defSmrg            echo "local: *; };" >> $output_objdir/$libname.ver~
10476a4f78defSmrg            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10477a4f78defSmrg        fi
10478a4f78defSmrg
10479a4f78defSmrg	case $cc_basename in
10480a4f78defSmrg	tcc*)
10481a4f78defSmrg	  export_dynamic_flag_spec='-rdynamic'
10482a4f78defSmrg	  ;;
10483a4f78defSmrg	xlf* | bgf* | bgxlf* | mpixlf*)
10484a4f78defSmrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10485a4f78defSmrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10486a4f78defSmrg	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10487a4f78defSmrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10488a4f78defSmrg	  if test yes = "$supports_anon_versioning"; then
10489a4f78defSmrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10490a4f78defSmrg              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10491a4f78defSmrg              echo "local: *; };" >> $output_objdir/$libname.ver~
10492a4f78defSmrg              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10493a4f78defSmrg	  fi
10494a4f78defSmrg	  ;;
10495a4f78defSmrg	esac
10496a4f78defSmrg      else
10497a4f78defSmrg        ld_shlibs=no
10498a4f78defSmrg      fi
10499a4f78defSmrg      ;;
10500a4f78defSmrg
10501a4f78defSmrg    netbsd*)
10502a4f78defSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503a4f78defSmrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10504a4f78defSmrg	wlarc=
10505a4f78defSmrg      else
10506a4f78defSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507a4f78defSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10508a4f78defSmrg      fi
10509a4f78defSmrg      ;;
10510a4f78defSmrg
10511a4f78defSmrg    solaris*)
10512a4f78defSmrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10513a4f78defSmrg	ld_shlibs=no
10514a4f78defSmrg	cat <<_LT_EOF 1>&2
10515a4f78defSmrg
10516a4f78defSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10517a4f78defSmrg*** create shared libraries on Solaris systems.  Therefore, libtool
10518a4f78defSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
10519a4f78defSmrg*** binutils to release 2.9.1 or newer.  Another option is to modify
10520a4f78defSmrg*** your PATH or compiler configuration so that the native linker is
10521a4f78defSmrg*** used, and then restart.
10522a4f78defSmrg
10523a4f78defSmrg_LT_EOF
10524a4f78defSmrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10525a4f78defSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10526a4f78defSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10527a4f78defSmrg      else
10528a4f78defSmrg	ld_shlibs=no
10529a4f78defSmrg      fi
10530a4f78defSmrg      ;;
10531a4f78defSmrg
10532a4f78defSmrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10533a4f78defSmrg      case `$LD -v 2>&1` in
10534a4f78defSmrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10535a4f78defSmrg	ld_shlibs=no
10536a4f78defSmrg	cat <<_LT_EOF 1>&2
10537a4f78defSmrg
10538a4f78defSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10539a4f78defSmrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
10540a4f78defSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
10541a4f78defSmrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10542a4f78defSmrg*** your PATH or compiler configuration so that the native linker is
10543a4f78defSmrg*** used, and then restart.
10544a4f78defSmrg
10545a4f78defSmrg_LT_EOF
10546a4f78defSmrg	;;
10547a4f78defSmrg	*)
10548a4f78defSmrg	  # For security reasons, it is highly recommended that you always
10549a4f78defSmrg	  # use absolute paths for naming shared libraries, and exclude the
10550a4f78defSmrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
10551a4f78defSmrg	  # requires that you compile everything twice, which is a pain.
10552a4f78defSmrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553a4f78defSmrg	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10554a4f78defSmrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555a4f78defSmrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10556a4f78defSmrg	  else
10557a4f78defSmrg	    ld_shlibs=no
10558a4f78defSmrg	  fi
10559a4f78defSmrg	;;
10560a4f78defSmrg      esac
10561a4f78defSmrg      ;;
10562a4f78defSmrg
10563a4f78defSmrg    sunos4*)
10564a4f78defSmrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565a4f78defSmrg      wlarc=
10566a4f78defSmrg      hardcode_direct=yes
10567a4f78defSmrg      hardcode_shlibpath_var=no
10568a4f78defSmrg      ;;
10569a4f78defSmrg
10570a4f78defSmrg    *)
10571a4f78defSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10572a4f78defSmrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10573a4f78defSmrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10574a4f78defSmrg      else
10575a4f78defSmrg	ld_shlibs=no
10576a4f78defSmrg      fi
10577a4f78defSmrg      ;;
10578a4f78defSmrg    esac
10579a4f78defSmrg
10580a4f78defSmrg    if test no = "$ld_shlibs"; then
10581a4f78defSmrg      runpath_var=
10582a4f78defSmrg      hardcode_libdir_flag_spec=
10583a4f78defSmrg      export_dynamic_flag_spec=
10584a4f78defSmrg      whole_archive_flag_spec=
10585a4f78defSmrg    fi
10586a4f78defSmrg  else
10587a4f78defSmrg    # PORTME fill in a description of your system's linker (not GNU ld)
10588a4f78defSmrg    case $host_os in
10589a4f78defSmrg    aix3*)
10590a4f78defSmrg      allow_undefined_flag=unsupported
10591a4f78defSmrg      always_export_symbols=yes
10592a4f78defSmrg      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'
10593a4f78defSmrg      # Note: this linker hardcodes the directories in LIBPATH if there
10594a4f78defSmrg      # are no directories specified by -L.
10595a4f78defSmrg      hardcode_minus_L=yes
10596a4f78defSmrg      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10597a4f78defSmrg	# Neither direct hardcoding nor static linking is supported with a
10598a4f78defSmrg	# broken collect2.
10599a4f78defSmrg	hardcode_direct=unsupported
10600a4f78defSmrg      fi
10601a4f78defSmrg      ;;
10602a4f78defSmrg
10603a4f78defSmrg    aix[4-9]*)
10604a4f78defSmrg      if test ia64 = "$host_cpu"; then
10605a4f78defSmrg	# On IA64, the linker does run time linking by default, so we don't
10606a4f78defSmrg	# have to do anything special.
10607a4f78defSmrg	aix_use_runtimelinking=no
10608a4f78defSmrg	exp_sym_flag='-Bexport'
10609a4f78defSmrg	no_entry_flag=
10610a4f78defSmrg      else
10611a4f78defSmrg	# If we're using GNU nm, then we don't want the "-C" option.
10612a4f78defSmrg	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10613a4f78defSmrg	# Without the "-l" option, or with the "-B" option, AIX nm treats
10614a4f78defSmrg	# weak defined symbols like other global defined symbols, whereas
10615a4f78defSmrg	# GNU nm marks them as "W".
10616a4f78defSmrg	# While the 'weak' keyword is ignored in the Export File, we need
10617a4f78defSmrg	# it in the Import File for the 'aix-soname' feature, so we have
10618a4f78defSmrg	# to replace the "-B" option with "-P" for AIX nm.
10619a4f78defSmrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10620a4f78defSmrg	  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'
10621a4f78defSmrg	else
10622a4f78defSmrg	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10623a4f78defSmrg	fi
10624a4f78defSmrg	aix_use_runtimelinking=no
10625a4f78defSmrg
10626a4f78defSmrg	# Test if we are trying to use run time linking or normal
10627a4f78defSmrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10628a4f78defSmrg	# have runtime linking enabled, and use it for executables.
10629a4f78defSmrg	# For shared libraries, we enable/disable runtime linking
10630a4f78defSmrg	# depending on the kind of the shared library created -
10631a4f78defSmrg	# when "with_aix_soname,aix_use_runtimelinking" is:
10632a4f78defSmrg	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10633a4f78defSmrg	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10634a4f78defSmrg	#            lib.a           static archive
10635a4f78defSmrg	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10636a4f78defSmrg	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10637a4f78defSmrg	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10638a4f78defSmrg	#            lib.a(lib.so.V) shared, rtl:no
10639a4f78defSmrg	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10640a4f78defSmrg	#            lib.a           static archive
10641a4f78defSmrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10642a4f78defSmrg	  for ld_flag in $LDFLAGS; do
10643a4f78defSmrg	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10644a4f78defSmrg	    aix_use_runtimelinking=yes
10645a4f78defSmrg	    break
10646a4f78defSmrg	  fi
10647a4f78defSmrg	  done
10648a4f78defSmrg	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10649a4f78defSmrg	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10650a4f78defSmrg	    # so we don't have lib.a shared libs to link our executables.
10651a4f78defSmrg	    # We have to force runtime linking in this case.
10652a4f78defSmrg	    aix_use_runtimelinking=yes
10653a4f78defSmrg	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10654a4f78defSmrg	  fi
10655a4f78defSmrg	  ;;
10656a4f78defSmrg	esac
10657a4f78defSmrg
10658a4f78defSmrg	exp_sym_flag='-bexport'
10659a4f78defSmrg	no_entry_flag='-bnoentry'
10660a4f78defSmrg      fi
10661a4f78defSmrg
10662a4f78defSmrg      # When large executables or shared objects are built, AIX ld can
10663a4f78defSmrg      # have problems creating the table of contents.  If linking a library
10664a4f78defSmrg      # or program results in "error TOC overflow" add -mminimal-toc to
10665a4f78defSmrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10666a4f78defSmrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10667a4f78defSmrg
10668a4f78defSmrg      archive_cmds=''
10669a4f78defSmrg      hardcode_direct=yes
10670a4f78defSmrg      hardcode_direct_absolute=yes
10671a4f78defSmrg      hardcode_libdir_separator=':'
10672a4f78defSmrg      link_all_deplibs=yes
10673a4f78defSmrg      file_list_spec='$wl-f,'
10674a4f78defSmrg      case $with_aix_soname,$aix_use_runtimelinking in
10675a4f78defSmrg      aix,*) ;; # traditional, no import file
10676a4f78defSmrg      svr4,* | *,yes) # use import file
10677a4f78defSmrg	# The Import File defines what to hardcode.
10678a4f78defSmrg	hardcode_direct=no
10679a4f78defSmrg	hardcode_direct_absolute=no
10680a4f78defSmrg	;;
10681a4f78defSmrg      esac
10682a4f78defSmrg
10683a4f78defSmrg      if test yes = "$GCC"; then
10684a4f78defSmrg	case $host_os in aix4.[012]|aix4.[012].*)
10685a4f78defSmrg	# We only want to do this on AIX 4.2 and lower, the check
10686a4f78defSmrg	# below for broken collect2 doesn't work under 4.3+
10687a4f78defSmrg	  collect2name=`$CC -print-prog-name=collect2`
10688a4f78defSmrg	  if test -f "$collect2name" &&
10689a4f78defSmrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10690a4f78defSmrg	  then
10691a4f78defSmrg	  # We have reworked collect2
10692a4f78defSmrg	  :
10693a4f78defSmrg	  else
10694a4f78defSmrg	  # We have old collect2
10695a4f78defSmrg	  hardcode_direct=unsupported
10696a4f78defSmrg	  # It fails to find uninstalled libraries when the uninstalled
10697a4f78defSmrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
10698a4f78defSmrg	  # to unsupported forces relinking
10699a4f78defSmrg	  hardcode_minus_L=yes
10700a4f78defSmrg	  hardcode_libdir_flag_spec='-L$libdir'
10701a4f78defSmrg	  hardcode_libdir_separator=
10702a4f78defSmrg	  fi
10703a4f78defSmrg	  ;;
10704a4f78defSmrg	esac
10705a4f78defSmrg	shared_flag='-shared'
10706a4f78defSmrg	if test yes = "$aix_use_runtimelinking"; then
10707a4f78defSmrg	  shared_flag="$shared_flag "'$wl-G'
10708a4f78defSmrg	fi
10709a4f78defSmrg	# Need to ensure runtime linking is disabled for the traditional
10710a4f78defSmrg	# shared library, or the linker may eventually find shared libraries
10711a4f78defSmrg	# /with/ Import File - we do not want to mix them.
10712a4f78defSmrg	shared_flag_aix='-shared'
10713a4f78defSmrg	shared_flag_svr4='-shared $wl-G'
10714a4f78defSmrg      else
10715a4f78defSmrg	# not using gcc
10716a4f78defSmrg	if test ia64 = "$host_cpu"; then
10717a4f78defSmrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10718a4f78defSmrg	# chokes on -Wl,-G. The following line is correct:
10719a4f78defSmrg	  shared_flag='-G'
10720a4f78defSmrg	else
10721a4f78defSmrg	  if test yes = "$aix_use_runtimelinking"; then
10722a4f78defSmrg	    shared_flag='$wl-G'
10723a4f78defSmrg	  else
10724a4f78defSmrg	    shared_flag='$wl-bM:SRE'
10725a4f78defSmrg	  fi
10726a4f78defSmrg	  shared_flag_aix='$wl-bM:SRE'
10727a4f78defSmrg	  shared_flag_svr4='$wl-G'
10728a4f78defSmrg	fi
10729a4f78defSmrg      fi
10730a4f78defSmrg
10731a4f78defSmrg      export_dynamic_flag_spec='$wl-bexpall'
10732a4f78defSmrg      # It seems that -bexpall does not export symbols beginning with
10733a4f78defSmrg      # underscore (_), so it is better to generate a list of symbols to export.
10734a4f78defSmrg      always_export_symbols=yes
10735a4f78defSmrg      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10736a4f78defSmrg	# Warning - without using the other runtime loading flags (-brtl),
10737a4f78defSmrg	# -berok will link without error, but may produce a broken library.
10738a4f78defSmrg	allow_undefined_flag='-berok'
10739a4f78defSmrg        # Determine the default libpath from the value encoded in an
10740a4f78defSmrg        # empty executable.
10741a4f78defSmrg        if test set = "${lt_cv_aix_libpath+set}"; then
10742a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath
10743a4f78defSmrgelse
10744a4f78defSmrg  if ${lt_cv_aix_libpath_+:} false; then :
10745a4f78defSmrg  $as_echo_n "(cached) " >&6
10746a4f78defSmrgelse
10747a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748a4f78defSmrg/* end confdefs.h.  */
10749a4f78defSmrg
10750a4f78defSmrgint
10751a4f78defSmrgmain ()
10752a4f78defSmrg{
10753a4f78defSmrg
10754a4f78defSmrg  ;
10755a4f78defSmrg  return 0;
10756a4f78defSmrg}
10757a4f78defSmrg_ACEOF
10758a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
10759a4f78defSmrg
10760a4f78defSmrg  lt_aix_libpath_sed='
10761a4f78defSmrg      /Import File Strings/,/^$/ {
10762a4f78defSmrg	  /^0/ {
10763a4f78defSmrg	      s/^0  *\([^ ]*\) *$/\1/
10764a4f78defSmrg	      p
10765a4f78defSmrg	  }
10766a4f78defSmrg      }'
10767a4f78defSmrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10768a4f78defSmrg  # Check for a 64-bit object if we didn't find anything.
10769a4f78defSmrg  if test -z "$lt_cv_aix_libpath_"; then
10770a4f78defSmrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10771a4f78defSmrg  fi
10772a4f78defSmrgfi
10773a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
10774a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
10775a4f78defSmrg  if test -z "$lt_cv_aix_libpath_"; then
10776a4f78defSmrg    lt_cv_aix_libpath_=/usr/lib:/lib
10777a4f78defSmrg  fi
10778a4f78defSmrg
10779a4f78defSmrgfi
10780a4f78defSmrg
10781a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath_
10782a4f78defSmrgfi
10783a4f78defSmrg
10784a4f78defSmrg        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10785a4f78defSmrg        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
10786a4f78defSmrg      else
10787a4f78defSmrg	if test ia64 = "$host_cpu"; then
10788a4f78defSmrg	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10789a4f78defSmrg	  allow_undefined_flag="-z nodefs"
10790a4f78defSmrg	  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"
10791a4f78defSmrg	else
10792a4f78defSmrg	 # Determine the default libpath from the value encoded in an
10793a4f78defSmrg	 # empty executable.
10794a4f78defSmrg	 if test set = "${lt_cv_aix_libpath+set}"; then
10795a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath
10796a4f78defSmrgelse
10797a4f78defSmrg  if ${lt_cv_aix_libpath_+:} false; then :
10798a4f78defSmrg  $as_echo_n "(cached) " >&6
10799a4f78defSmrgelse
10800a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801a4f78defSmrg/* end confdefs.h.  */
10802a4f78defSmrg
10803a4f78defSmrgint
10804a4f78defSmrgmain ()
10805a4f78defSmrg{
10806a4f78defSmrg
10807a4f78defSmrg  ;
10808a4f78defSmrg  return 0;
10809a4f78defSmrg}
10810a4f78defSmrg_ACEOF
10811a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
10812a4f78defSmrg
10813a4f78defSmrg  lt_aix_libpath_sed='
10814a4f78defSmrg      /Import File Strings/,/^$/ {
10815a4f78defSmrg	  /^0/ {
10816a4f78defSmrg	      s/^0  *\([^ ]*\) *$/\1/
10817a4f78defSmrg	      p
10818a4f78defSmrg	  }
10819a4f78defSmrg      }'
10820a4f78defSmrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10821a4f78defSmrg  # Check for a 64-bit object if we didn't find anything.
10822a4f78defSmrg  if test -z "$lt_cv_aix_libpath_"; then
10823a4f78defSmrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10824a4f78defSmrg  fi
10825a4f78defSmrgfi
10826a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
10827a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
10828a4f78defSmrg  if test -z "$lt_cv_aix_libpath_"; then
10829a4f78defSmrg    lt_cv_aix_libpath_=/usr/lib:/lib
10830a4f78defSmrg  fi
10831a4f78defSmrg
10832a4f78defSmrgfi
10833a4f78defSmrg
10834a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath_
10835a4f78defSmrgfi
10836a4f78defSmrg
10837a4f78defSmrg	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10838a4f78defSmrg	  # Warning - without using the other run time loading flags,
10839a4f78defSmrg	  # -berok will link without error, but may produce a broken library.
10840a4f78defSmrg	  no_undefined_flag=' $wl-bernotok'
10841a4f78defSmrg	  allow_undefined_flag=' $wl-berok'
10842a4f78defSmrg	  if test yes = "$with_gnu_ld"; then
10843a4f78defSmrg	    # We only use this code for GNU lds that support --whole-archive.
10844a4f78defSmrg	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10845a4f78defSmrg	  else
10846a4f78defSmrg	    # Exported symbols can be pulled into shared objects from archives
10847a4f78defSmrg	    whole_archive_flag_spec='$convenience'
10848a4f78defSmrg	  fi
10849a4f78defSmrg	  archive_cmds_need_lc=yes
10850a4f78defSmrg	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10851a4f78defSmrg	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10852a4f78defSmrg	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10853a4f78defSmrg	  if test svr4 != "$with_aix_soname"; then
10854a4f78defSmrg	    # This is similar to how AIX traditionally builds its shared libraries.
10855a4f78defSmrg	    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'
10856a4f78defSmrg	  fi
10857a4f78defSmrg	  if test aix != "$with_aix_soname"; then
10858a4f78defSmrg	    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'
10859a4f78defSmrg	  else
10860a4f78defSmrg	    # used by -dlpreopen to get the symbols
10861a4f78defSmrg	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10862a4f78defSmrg	  fi
10863a4f78defSmrg	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10864a4f78defSmrg	fi
10865a4f78defSmrg      fi
10866a4f78defSmrg      ;;
10867a4f78defSmrg
10868a4f78defSmrg    amigaos*)
10869a4f78defSmrg      case $host_cpu in
10870a4f78defSmrg      powerpc)
10871a4f78defSmrg            # see comment about AmigaOS4 .so support
10872a4f78defSmrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10873a4f78defSmrg            archive_expsym_cmds=''
10874a4f78defSmrg        ;;
10875a4f78defSmrg      m68k)
10876a4f78defSmrg            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)'
10877a4f78defSmrg            hardcode_libdir_flag_spec='-L$libdir'
10878a4f78defSmrg            hardcode_minus_L=yes
10879a4f78defSmrg        ;;
10880a4f78defSmrg      esac
10881a4f78defSmrg      ;;
10882a4f78defSmrg
10883a4f78defSmrg    bsdi[45]*)
10884a4f78defSmrg      export_dynamic_flag_spec=-rdynamic
10885a4f78defSmrg      ;;
10886a4f78defSmrg
10887a4f78defSmrg    cygwin* | mingw* | pw32* | cegcc*)
10888a4f78defSmrg      # When not using gcc, we currently assume that we are using
10889a4f78defSmrg      # Microsoft Visual C++.
10890a4f78defSmrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
10891a4f78defSmrg      # no search path for DLLs.
10892a4f78defSmrg      case $cc_basename in
10893a4f78defSmrg      cl*)
10894a4f78defSmrg	# Native MSVC
10895a4f78defSmrg	hardcode_libdir_flag_spec=' '
10896a4f78defSmrg	allow_undefined_flag=unsupported
10897a4f78defSmrg	always_export_symbols=yes
10898a4f78defSmrg	file_list_spec='@'
10899a4f78defSmrg	# Tell ltmain to make .lib files, not .a files.
10900a4f78defSmrg	libext=lib
10901a4f78defSmrg	# Tell ltmain to make .dll files, not .so files.
10902a4f78defSmrg	shrext_cmds=.dll
10903a4f78defSmrg	# FIXME: Setting linknames here is a bad hack.
10904a4f78defSmrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10905a4f78defSmrg	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10906a4f78defSmrg            cp "$export_symbols" "$output_objdir/$soname.def";
10907a4f78defSmrg            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10908a4f78defSmrg          else
10909a4f78defSmrg            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10910a4f78defSmrg          fi~
10911a4f78defSmrg          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10912a4f78defSmrg          linknames='
10913a4f78defSmrg	# The linker will not automatically build a static lib if we build a DLL.
10914a4f78defSmrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10915a4f78defSmrg	enable_shared_with_static_runtimes=yes
10916a4f78defSmrg	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10917a4f78defSmrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10918a4f78defSmrg	# Don't use ranlib
10919a4f78defSmrg	old_postinstall_cmds='chmod 644 $oldlib'
10920a4f78defSmrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
10921a4f78defSmrg          lt_tool_outputfile="@TOOL_OUTPUT@"~
10922a4f78defSmrg          case $lt_outputfile in
10923a4f78defSmrg            *.exe|*.EXE) ;;
10924a4f78defSmrg            *)
10925a4f78defSmrg              lt_outputfile=$lt_outputfile.exe
10926a4f78defSmrg              lt_tool_outputfile=$lt_tool_outputfile.exe
10927a4f78defSmrg              ;;
10928a4f78defSmrg          esac~
10929a4f78defSmrg          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10930a4f78defSmrg            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10931a4f78defSmrg            $RM "$lt_outputfile.manifest";
10932a4f78defSmrg          fi'
10933a4f78defSmrg	;;
10934a4f78defSmrg      *)
10935a4f78defSmrg	# Assume MSVC wrapper
10936a4f78defSmrg	hardcode_libdir_flag_spec=' '
10937a4f78defSmrg	allow_undefined_flag=unsupported
10938a4f78defSmrg	# Tell ltmain to make .lib files, not .a files.
10939a4f78defSmrg	libext=lib
10940a4f78defSmrg	# Tell ltmain to make .dll files, not .so files.
10941a4f78defSmrg	shrext_cmds=.dll
10942a4f78defSmrg	# FIXME: Setting linknames here is a bad hack.
10943a4f78defSmrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10944a4f78defSmrg	# The linker will automatically build a .lib file if we build a DLL.
10945a4f78defSmrg	old_archive_from_new_cmds='true'
10946a4f78defSmrg	# FIXME: Should let the user specify the lib program.
10947a4f78defSmrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10948a4f78defSmrg	enable_shared_with_static_runtimes=yes
10949a4f78defSmrg	;;
10950a4f78defSmrg      esac
10951a4f78defSmrg      ;;
10952a4f78defSmrg
10953a4f78defSmrg    darwin* | rhapsody*)
10954a4f78defSmrg
10955a4f78defSmrg
10956a4f78defSmrg  archive_cmds_need_lc=no
10957a4f78defSmrg  hardcode_direct=no
10958a4f78defSmrg  hardcode_automatic=yes
10959a4f78defSmrg  hardcode_shlibpath_var=unsupported
10960a4f78defSmrg  if test yes = "$lt_cv_ld_force_load"; then
10961a4f78defSmrg    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\"`'
10962a4f78defSmrg
10963a4f78defSmrg  else
10964a4f78defSmrg    whole_archive_flag_spec=''
10965a4f78defSmrg  fi
10966a4f78defSmrg  link_all_deplibs=yes
10967a4f78defSmrg  allow_undefined_flag=$_lt_dar_allow_undefined
10968a4f78defSmrg  case $cc_basename in
10969a4f78defSmrg     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10970a4f78defSmrg     *) _lt_dar_can_shared=$GCC ;;
10971a4f78defSmrg  esac
10972a4f78defSmrg  if test yes = "$_lt_dar_can_shared"; then
10973a4f78defSmrg    output_verbose_link_cmd=func_echo_all
10974a4f78defSmrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10975a4f78defSmrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10976a4f78defSmrg    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"
10977a4f78defSmrg    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"
10978a4f78defSmrg
10979a4f78defSmrg  else
10980a4f78defSmrg  ld_shlibs=no
10981a4f78defSmrg  fi
10982a4f78defSmrg
10983a4f78defSmrg      ;;
10984a4f78defSmrg
10985a4f78defSmrg    dgux*)
10986a4f78defSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
10988a4f78defSmrg      hardcode_shlibpath_var=no
10989a4f78defSmrg      ;;
10990a4f78defSmrg
10991a4f78defSmrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10992a4f78defSmrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
10993a4f78defSmrg    # does not break anything, and helps significantly (at the cost of a little
10994a4f78defSmrg    # extra space).
10995a4f78defSmrg    freebsd2.2*)
10996a4f78defSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10997a4f78defSmrg      hardcode_libdir_flag_spec='-R$libdir'
10998a4f78defSmrg      hardcode_direct=yes
10999a4f78defSmrg      hardcode_shlibpath_var=no
11000a4f78defSmrg      ;;
11001a4f78defSmrg
11002a4f78defSmrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11003a4f78defSmrg    freebsd2.*)
11004a4f78defSmrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11005a4f78defSmrg      hardcode_direct=yes
11006a4f78defSmrg      hardcode_minus_L=yes
11007a4f78defSmrg      hardcode_shlibpath_var=no
11008a4f78defSmrg      ;;
11009a4f78defSmrg
11010a4f78defSmrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11011a4f78defSmrg    freebsd* | dragonfly*)
11012a4f78defSmrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013a4f78defSmrg      hardcode_libdir_flag_spec='-R$libdir'
11014a4f78defSmrg      hardcode_direct=yes
11015a4f78defSmrg      hardcode_shlibpath_var=no
11016a4f78defSmrg      ;;
11017a4f78defSmrg
11018a4f78defSmrg    hpux9*)
11019a4f78defSmrg      if test yes = "$GCC"; then
11020a4f78defSmrg	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'
11021a4f78defSmrg      else
11022a4f78defSmrg	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'
11023a4f78defSmrg      fi
11024a4f78defSmrg      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11025a4f78defSmrg      hardcode_libdir_separator=:
11026a4f78defSmrg      hardcode_direct=yes
11027a4f78defSmrg
11028a4f78defSmrg      # hardcode_minus_L: Not really in the search PATH,
11029a4f78defSmrg      # but as the default location of the library.
11030a4f78defSmrg      hardcode_minus_L=yes
11031a4f78defSmrg      export_dynamic_flag_spec='$wl-E'
11032a4f78defSmrg      ;;
11033a4f78defSmrg
11034a4f78defSmrg    hpux10*)
11035a4f78defSmrg      if test yes,no = "$GCC,$with_gnu_ld"; then
11036a4f78defSmrg	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11037a4f78defSmrg      else
11038a4f78defSmrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11039a4f78defSmrg      fi
11040a4f78defSmrg      if test no = "$with_gnu_ld"; then
11041a4f78defSmrg	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11042a4f78defSmrg	hardcode_libdir_separator=:
11043a4f78defSmrg	hardcode_direct=yes
11044a4f78defSmrg	hardcode_direct_absolute=yes
11045a4f78defSmrg	export_dynamic_flag_spec='$wl-E'
11046a4f78defSmrg	# hardcode_minus_L: Not really in the search PATH,
11047a4f78defSmrg	# but as the default location of the library.
11048a4f78defSmrg	hardcode_minus_L=yes
11049a4f78defSmrg      fi
11050a4f78defSmrg      ;;
11051a4f78defSmrg
11052a4f78defSmrg    hpux11*)
11053a4f78defSmrg      if test yes,no = "$GCC,$with_gnu_ld"; then
11054a4f78defSmrg	case $host_cpu in
11055a4f78defSmrg	hppa*64*)
11056a4f78defSmrg	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11057a4f78defSmrg	  ;;
11058a4f78defSmrg	ia64*)
11059a4f78defSmrg	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11060a4f78defSmrg	  ;;
11061a4f78defSmrg	*)
11062a4f78defSmrg	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063a4f78defSmrg	  ;;
11064a4f78defSmrg	esac
11065a4f78defSmrg      else
11066a4f78defSmrg	case $host_cpu in
11067a4f78defSmrg	hppa*64*)
11068a4f78defSmrg	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11069a4f78defSmrg	  ;;
11070a4f78defSmrg	ia64*)
11071a4f78defSmrg	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11072a4f78defSmrg	  ;;
11073a4f78defSmrg	*)
11074a4f78defSmrg
11075a4f78defSmrg	  # Older versions of the 11.00 compiler do not understand -b yet
11076a4f78defSmrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11077a4f78defSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11078a4f78defSmrg$as_echo_n "checking if $CC understands -b... " >&6; }
11079a4f78defSmrgif ${lt_cv_prog_compiler__b+:} false; then :
11080a4f78defSmrg  $as_echo_n "(cached) " >&6
11081a4f78defSmrgelse
11082a4f78defSmrg  lt_cv_prog_compiler__b=no
11083a4f78defSmrg   save_LDFLAGS=$LDFLAGS
11084a4f78defSmrg   LDFLAGS="$LDFLAGS -b"
11085a4f78defSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11086a4f78defSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11087a4f78defSmrg     # The linker can only warn and ignore the option if not recognized
11088a4f78defSmrg     # So say no if there are warnings
11089a4f78defSmrg     if test -s conftest.err; then
11090a4f78defSmrg       # Append any errors to the config.log.
11091a4f78defSmrg       cat conftest.err 1>&5
11092a4f78defSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11093a4f78defSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11094a4f78defSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
11095a4f78defSmrg         lt_cv_prog_compiler__b=yes
11096a4f78defSmrg       fi
11097a4f78defSmrg     else
11098a4f78defSmrg       lt_cv_prog_compiler__b=yes
11099a4f78defSmrg     fi
11100a4f78defSmrg   fi
11101a4f78defSmrg   $RM -r conftest*
11102a4f78defSmrg   LDFLAGS=$save_LDFLAGS
11103a4f78defSmrg
11104a4f78defSmrgfi
11105a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11106a4f78defSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
11107a4f78defSmrg
11108a4f78defSmrgif test yes = "$lt_cv_prog_compiler__b"; then
11109a4f78defSmrg    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110a4f78defSmrgelse
11111a4f78defSmrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11112a4f78defSmrgfi
11113a4f78defSmrg
11114a4f78defSmrg	  ;;
11115a4f78defSmrg	esac
11116a4f78defSmrg      fi
11117a4f78defSmrg      if test no = "$with_gnu_ld"; then
11118a4f78defSmrg	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11119a4f78defSmrg	hardcode_libdir_separator=:
11120a4f78defSmrg
11121a4f78defSmrg	case $host_cpu in
11122a4f78defSmrg	hppa*64*|ia64*)
11123a4f78defSmrg	  hardcode_direct=no
11124a4f78defSmrg	  hardcode_shlibpath_var=no
11125a4f78defSmrg	  ;;
11126a4f78defSmrg	*)
11127a4f78defSmrg	  hardcode_direct=yes
11128a4f78defSmrg	  hardcode_direct_absolute=yes
11129a4f78defSmrg	  export_dynamic_flag_spec='$wl-E'
11130a4f78defSmrg
11131a4f78defSmrg	  # hardcode_minus_L: Not really in the search PATH,
11132a4f78defSmrg	  # but as the default location of the library.
11133a4f78defSmrg	  hardcode_minus_L=yes
11134a4f78defSmrg	  ;;
11135a4f78defSmrg	esac
11136a4f78defSmrg      fi
11137a4f78defSmrg      ;;
11138a4f78defSmrg
11139a4f78defSmrg    irix5* | irix6* | nonstopux*)
11140a4f78defSmrg      if test yes = "$GCC"; then
11141a4f78defSmrg	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'
11142a4f78defSmrg	# Try to use the -exported_symbol ld option, if it does not
11143a4f78defSmrg	# work, assume that -exports_file does not work either and
11144a4f78defSmrg	# implicitly export all symbols.
11145a4f78defSmrg	# This should be the same for all languages, so no per-tag cache variable.
11146a4f78defSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11147a4f78defSmrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11148a4f78defSmrgif ${lt_cv_irix_exported_symbol+:} false; then :
11149a4f78defSmrg  $as_echo_n "(cached) " >&6
11150a4f78defSmrgelse
11151a4f78defSmrg  save_LDFLAGS=$LDFLAGS
11152a4f78defSmrg	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11153a4f78defSmrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154a4f78defSmrg/* end confdefs.h.  */
11155a4f78defSmrgint foo (void) { return 0; }
11156a4f78defSmrg_ACEOF
11157a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
11158a4f78defSmrg  lt_cv_irix_exported_symbol=yes
11159a4f78defSmrgelse
11160a4f78defSmrg  lt_cv_irix_exported_symbol=no
11161a4f78defSmrgfi
11162a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
11163a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
11164a4f78defSmrg           LDFLAGS=$save_LDFLAGS
11165a4f78defSmrgfi
11166a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11167a4f78defSmrg$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11168a4f78defSmrg	if test yes = "$lt_cv_irix_exported_symbol"; then
11169a4f78defSmrg          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'
11170a4f78defSmrg	fi
11171a4f78defSmrg      else
11172a4f78defSmrg	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'
11173a4f78defSmrg	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'
11174a4f78defSmrg      fi
11175a4f78defSmrg      archive_cmds_need_lc='no'
11176a4f78defSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11177a4f78defSmrg      hardcode_libdir_separator=:
11178a4f78defSmrg      inherit_rpath=yes
11179a4f78defSmrg      link_all_deplibs=yes
11180a4f78defSmrg      ;;
11181a4f78defSmrg
11182a4f78defSmrg    linux*)
11183a4f78defSmrg      case $cc_basename in
11184a4f78defSmrg      tcc*)
11185a4f78defSmrg	# Fabrice Bellard et al's Tiny C Compiler
11186a4f78defSmrg	ld_shlibs=yes
11187a4f78defSmrg	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11188a4f78defSmrg	;;
11189a4f78defSmrg      esac
11190a4f78defSmrg      ;;
11191a4f78defSmrg
11192a4f78defSmrg    netbsd*)
11193a4f78defSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11194a4f78defSmrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11195a4f78defSmrg      else
11196a4f78defSmrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11197a4f78defSmrg      fi
11198a4f78defSmrg      hardcode_libdir_flag_spec='-R$libdir'
11199a4f78defSmrg      hardcode_direct=yes
11200a4f78defSmrg      hardcode_shlibpath_var=no
11201a4f78defSmrg      ;;
11202a4f78defSmrg
11203a4f78defSmrg    newsos6)
11204a4f78defSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205a4f78defSmrg      hardcode_direct=yes
11206a4f78defSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11207a4f78defSmrg      hardcode_libdir_separator=:
11208a4f78defSmrg      hardcode_shlibpath_var=no
11209a4f78defSmrg      ;;
11210a4f78defSmrg
11211a4f78defSmrg    *nto* | *qnx*)
11212a4f78defSmrg      ;;
11213a4f78defSmrg
11214a4f78defSmrg    openbsd* | bitrig*)
11215a4f78defSmrg      if test -f /usr/libexec/ld.so; then
11216a4f78defSmrg	hardcode_direct=yes
11217a4f78defSmrg	hardcode_shlibpath_var=no
11218a4f78defSmrg	hardcode_direct_absolute=yes
11219a4f78defSmrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11220a4f78defSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11221a4f78defSmrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11222a4f78defSmrg	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11223a4f78defSmrg	  export_dynamic_flag_spec='$wl-E'
11224a4f78defSmrg	else
11225a4f78defSmrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11226a4f78defSmrg	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11227a4f78defSmrg	fi
11228a4f78defSmrg      else
11229a4f78defSmrg	ld_shlibs=no
11230a4f78defSmrg      fi
11231a4f78defSmrg      ;;
11232a4f78defSmrg
11233a4f78defSmrg    os2*)
11234a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
11235a4f78defSmrg      hardcode_minus_L=yes
11236a4f78defSmrg      allow_undefined_flag=unsupported
11237a4f78defSmrg      shrext_cmds=.dll
11238a4f78defSmrg      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11239a4f78defSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11240a4f78defSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11241a4f78defSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
11242a4f78defSmrg	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11243a4f78defSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11244a4f78defSmrg	emximp -o $lib $output_objdir/$libname.def'
11245a4f78defSmrg      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11246a4f78defSmrg	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11247a4f78defSmrg	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11248a4f78defSmrg	$ECHO EXPORTS >> $output_objdir/$libname.def~
11249a4f78defSmrg	prefix_cmds="$SED"~
11250a4f78defSmrg	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11251a4f78defSmrg	  prefix_cmds="$prefix_cmds -e 1d";
11252a4f78defSmrg	fi~
11253a4f78defSmrg	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11254a4f78defSmrg	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11255a4f78defSmrg	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11256a4f78defSmrg	emximp -o $lib $output_objdir/$libname.def'
11257a4f78defSmrg      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11258a4f78defSmrg      enable_shared_with_static_runtimes=yes
11259a4f78defSmrg      ;;
11260a4f78defSmrg
11261a4f78defSmrg    osf3*)
11262a4f78defSmrg      if test yes = "$GCC"; then
11263a4f78defSmrg	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11264a4f78defSmrg	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'
11265a4f78defSmrg      else
11266a4f78defSmrg	allow_undefined_flag=' -expect_unresolved \*'
11267a4f78defSmrg	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'
11268a4f78defSmrg      fi
11269a4f78defSmrg      archive_cmds_need_lc='no'
11270a4f78defSmrg      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11271a4f78defSmrg      hardcode_libdir_separator=:
11272a4f78defSmrg      ;;
11273a4f78defSmrg
11274a4f78defSmrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11275a4f78defSmrg      if test yes = "$GCC"; then
11276a4f78defSmrg	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11277a4f78defSmrg	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'
11278a4f78defSmrg	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11279a4f78defSmrg      else
11280a4f78defSmrg	allow_undefined_flag=' -expect_unresolved \*'
11281a4f78defSmrg	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'
11282a4f78defSmrg	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~
11283a4f78defSmrg          $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'
11284a4f78defSmrg
11285a4f78defSmrg	# Both c and cxx compiler support -rpath directly
11286a4f78defSmrg	hardcode_libdir_flag_spec='-rpath $libdir'
11287a4f78defSmrg      fi
11288a4f78defSmrg      archive_cmds_need_lc='no'
11289a4f78defSmrg      hardcode_libdir_separator=:
11290a4f78defSmrg      ;;
11291a4f78defSmrg
11292a4f78defSmrg    solaris*)
11293a4f78defSmrg      no_undefined_flag=' -z defs'
11294a4f78defSmrg      if test yes = "$GCC"; then
11295a4f78defSmrg	wlarc='$wl'
11296a4f78defSmrg	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11297a4f78defSmrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11298a4f78defSmrg          $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'
11299a4f78defSmrg      else
11300a4f78defSmrg	case `$CC -V 2>&1` in
11301a4f78defSmrg	*"Compilers 5.0"*)
11302a4f78defSmrg	  wlarc=''
11303a4f78defSmrg	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304a4f78defSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11305a4f78defSmrg            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11306a4f78defSmrg	  ;;
11307a4f78defSmrg	*)
11308a4f78defSmrg	  wlarc='$wl'
11309a4f78defSmrg	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11310a4f78defSmrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11311a4f78defSmrg            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11312a4f78defSmrg	  ;;
11313a4f78defSmrg	esac
11314a4f78defSmrg      fi
11315a4f78defSmrg      hardcode_libdir_flag_spec='-R$libdir'
11316a4f78defSmrg      hardcode_shlibpath_var=no
11317a4f78defSmrg      case $host_os in
11318a4f78defSmrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
11319a4f78defSmrg      *)
11320a4f78defSmrg	# The compiler driver will combine and reorder linker options,
11321a4f78defSmrg	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11322a4f78defSmrg	# but is careful enough not to reorder.
11323a4f78defSmrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
11324a4f78defSmrg	if test yes = "$GCC"; then
11325a4f78defSmrg	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11326a4f78defSmrg	else
11327a4f78defSmrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11328a4f78defSmrg	fi
11329a4f78defSmrg	;;
11330a4f78defSmrg      esac
11331a4f78defSmrg      link_all_deplibs=yes
11332a4f78defSmrg      ;;
11333a4f78defSmrg
11334a4f78defSmrg    sunos4*)
11335a4f78defSmrg      if test sequent = "$host_vendor"; then
11336a4f78defSmrg	# Use $CC to link under sequent, because it throws in some extra .o
11337a4f78defSmrg	# files that make .init and .fini sections work.
11338a4f78defSmrg	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11339a4f78defSmrg      else
11340a4f78defSmrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11341a4f78defSmrg      fi
11342a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
11343a4f78defSmrg      hardcode_direct=yes
11344a4f78defSmrg      hardcode_minus_L=yes
11345a4f78defSmrg      hardcode_shlibpath_var=no
11346a4f78defSmrg      ;;
11347a4f78defSmrg
11348a4f78defSmrg    sysv4)
11349a4f78defSmrg      case $host_vendor in
11350a4f78defSmrg	sni)
11351a4f78defSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352a4f78defSmrg	  hardcode_direct=yes # is this really true???
11353a4f78defSmrg	;;
11354a4f78defSmrg	siemens)
11355a4f78defSmrg	  ## LD is ld it makes a PLAMLIB
11356a4f78defSmrg	  ## CC just makes a GrossModule.
11357a4f78defSmrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11358a4f78defSmrg	  reload_cmds='$CC -r -o $output$reload_objs'
11359a4f78defSmrg	  hardcode_direct=no
11360a4f78defSmrg        ;;
11361a4f78defSmrg	motorola)
11362a4f78defSmrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363a4f78defSmrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11364a4f78defSmrg	;;
11365a4f78defSmrg      esac
11366a4f78defSmrg      runpath_var='LD_RUN_PATH'
11367a4f78defSmrg      hardcode_shlibpath_var=no
11368a4f78defSmrg      ;;
11369a4f78defSmrg
11370a4f78defSmrg    sysv4.3*)
11371a4f78defSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11372a4f78defSmrg      hardcode_shlibpath_var=no
11373a4f78defSmrg      export_dynamic_flag_spec='-Bexport'
11374a4f78defSmrg      ;;
11375a4f78defSmrg
11376a4f78defSmrg    sysv4*MP*)
11377a4f78defSmrg      if test -d /usr/nec; then
11378a4f78defSmrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379a4f78defSmrg	hardcode_shlibpath_var=no
11380a4f78defSmrg	runpath_var=LD_RUN_PATH
11381a4f78defSmrg	hardcode_runpath_var=yes
11382a4f78defSmrg	ld_shlibs=yes
11383a4f78defSmrg      fi
11384a4f78defSmrg      ;;
11385a4f78defSmrg
11386a4f78defSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11387a4f78defSmrg      no_undefined_flag='$wl-z,text'
11388a4f78defSmrg      archive_cmds_need_lc=no
11389a4f78defSmrg      hardcode_shlibpath_var=no
11390a4f78defSmrg      runpath_var='LD_RUN_PATH'
11391a4f78defSmrg
11392a4f78defSmrg      if test yes = "$GCC"; then
11393a4f78defSmrg	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394a4f78defSmrg	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395a4f78defSmrg      else
11396a4f78defSmrg	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397a4f78defSmrg	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398a4f78defSmrg      fi
11399a4f78defSmrg      ;;
11400a4f78defSmrg
11401a4f78defSmrg    sysv5* | sco3.2v5* | sco5v6*)
11402a4f78defSmrg      # Note: We CANNOT use -z defs as we might desire, because we do not
11403a4f78defSmrg      # link with -lc, and that would cause any symbols used from libc to
11404a4f78defSmrg      # always be unresolved, which means just about no library would
11405a4f78defSmrg      # ever link correctly.  If we're not using GNU ld we use -z text
11406a4f78defSmrg      # though, which does catch some bad symbols but isn't as heavy-handed
11407a4f78defSmrg      # as -z defs.
11408a4f78defSmrg      no_undefined_flag='$wl-z,text'
11409a4f78defSmrg      allow_undefined_flag='$wl-z,nodefs'
11410a4f78defSmrg      archive_cmds_need_lc=no
11411a4f78defSmrg      hardcode_shlibpath_var=no
11412a4f78defSmrg      hardcode_libdir_flag_spec='$wl-R,$libdir'
11413a4f78defSmrg      hardcode_libdir_separator=':'
11414a4f78defSmrg      link_all_deplibs=yes
11415a4f78defSmrg      export_dynamic_flag_spec='$wl-Bexport'
11416a4f78defSmrg      runpath_var='LD_RUN_PATH'
11417a4f78defSmrg
11418a4f78defSmrg      if test yes = "$GCC"; then
11419a4f78defSmrg	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11420a4f78defSmrg	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421a4f78defSmrg      else
11422a4f78defSmrg	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11423a4f78defSmrg	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424a4f78defSmrg      fi
11425a4f78defSmrg      ;;
11426a4f78defSmrg
11427a4f78defSmrg    uts4*)
11428a4f78defSmrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11429a4f78defSmrg      hardcode_libdir_flag_spec='-L$libdir'
11430a4f78defSmrg      hardcode_shlibpath_var=no
11431a4f78defSmrg      ;;
11432a4f78defSmrg
11433a4f78defSmrg    *)
11434a4f78defSmrg      ld_shlibs=no
11435a4f78defSmrg      ;;
11436a4f78defSmrg    esac
11437a4f78defSmrg
11438a4f78defSmrg    if test sni = "$host_vendor"; then
11439a4f78defSmrg      case $host in
11440a4f78defSmrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11441a4f78defSmrg	export_dynamic_flag_spec='$wl-Blargedynsym'
11442a4f78defSmrg	;;
11443a4f78defSmrg      esac
11444a4f78defSmrg    fi
11445a4f78defSmrg  fi
11446a4f78defSmrg
11447a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11448a4f78defSmrg$as_echo "$ld_shlibs" >&6; }
11449a4f78defSmrgtest no = "$ld_shlibs" && can_build_shared=no
11450a4f78defSmrg
11451a4f78defSmrgwith_gnu_ld=$with_gnu_ld
11452a4f78defSmrg
11453a4f78defSmrg
11454a4f78defSmrg
11455a4f78defSmrg
11456a4f78defSmrg
11457a4f78defSmrg
11458a4f78defSmrg
11459a4f78defSmrg
11460a4f78defSmrg
11461a4f78defSmrg
11462a4f78defSmrg
11463a4f78defSmrg
11464a4f78defSmrg
11465a4f78defSmrg
11466a4f78defSmrg
11467a4f78defSmrg#
11468a4f78defSmrg# Do we need to explicitly link libc?
11469a4f78defSmrg#
11470a4f78defSmrgcase "x$archive_cmds_need_lc" in
11471a4f78defSmrgx|xyes)
11472a4f78defSmrg  # Assume -lc should be added
11473a4f78defSmrg  archive_cmds_need_lc=yes
11474a4f78defSmrg
11475a4f78defSmrg  if test yes,yes = "$GCC,$enable_shared"; then
11476a4f78defSmrg    case $archive_cmds in
11477a4f78defSmrg    *'~'*)
11478a4f78defSmrg      # FIXME: we may have to deal with multi-command sequences.
11479a4f78defSmrg      ;;
11480a4f78defSmrg    '$CC '*)
11481a4f78defSmrg      # Test whether the compiler implicitly links with -lc since on some
11482a4f78defSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11483a4f78defSmrg      # to ld, don't add -lc before -lgcc.
11484a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11485a4f78defSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11486a4f78defSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
11487a4f78defSmrg  $as_echo_n "(cached) " >&6
11488a4f78defSmrgelse
11489a4f78defSmrg  $RM conftest*
11490a4f78defSmrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11491a4f78defSmrg
11492a4f78defSmrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11493a4f78defSmrg  (eval $ac_compile) 2>&5
11494a4f78defSmrg  ac_status=$?
11495a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496a4f78defSmrg  test $ac_status = 0; } 2>conftest.err; then
11497a4f78defSmrg	  soname=conftest
11498a4f78defSmrg	  lib=conftest
11499a4f78defSmrg	  libobjs=conftest.$ac_objext
11500a4f78defSmrg	  deplibs=
11501a4f78defSmrg	  wl=$lt_prog_compiler_wl
11502a4f78defSmrg	  pic_flag=$lt_prog_compiler_pic
11503a4f78defSmrg	  compiler_flags=-v
11504a4f78defSmrg	  linker_flags=-v
11505a4f78defSmrg	  verstring=
11506a4f78defSmrg	  output_objdir=.
11507a4f78defSmrg	  libname=conftest
11508a4f78defSmrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
11509a4f78defSmrg	  allow_undefined_flag=
11510a4f78defSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11511a4f78defSmrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11512a4f78defSmrg  ac_status=$?
11513a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11514a4f78defSmrg  test $ac_status = 0; }
11515a4f78defSmrg	  then
11516a4f78defSmrg	    lt_cv_archive_cmds_need_lc=no
11517a4f78defSmrg	  else
11518a4f78defSmrg	    lt_cv_archive_cmds_need_lc=yes
11519a4f78defSmrg	  fi
11520a4f78defSmrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
11521a4f78defSmrg	else
11522a4f78defSmrg	  cat conftest.err 1>&5
11523a4f78defSmrg	fi
11524a4f78defSmrg	$RM conftest*
11525a4f78defSmrg
11526a4f78defSmrgfi
11527a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11528a4f78defSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11529a4f78defSmrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11530a4f78defSmrg      ;;
11531a4f78defSmrg    esac
11532a4f78defSmrg  fi
11533a4f78defSmrg  ;;
11534a4f78defSmrgesac
11535a4f78defSmrg
11536a4f78defSmrg
11537a4f78defSmrg
11538a4f78defSmrg
11539a4f78defSmrg
11540a4f78defSmrg
11541a4f78defSmrg
11542a4f78defSmrg
11543a4f78defSmrg
11544a4f78defSmrg
11545a4f78defSmrg
11546a4f78defSmrg
11547a4f78defSmrg
11548a4f78defSmrg
11549a4f78defSmrg
11550a4f78defSmrg
11551a4f78defSmrg
11552a4f78defSmrg
11553a4f78defSmrg
11554a4f78defSmrg
11555a4f78defSmrg
11556a4f78defSmrg
11557a4f78defSmrg
11558a4f78defSmrg
11559a4f78defSmrg
11560a4f78defSmrg
11561a4f78defSmrg
11562a4f78defSmrg
11563a4f78defSmrg
11564a4f78defSmrg
11565a4f78defSmrg
11566a4f78defSmrg
11567a4f78defSmrg
11568a4f78defSmrg
11569a4f78defSmrg
11570a4f78defSmrg
11571a4f78defSmrg
11572a4f78defSmrg
11573a4f78defSmrg
11574a4f78defSmrg
11575a4f78defSmrg
11576a4f78defSmrg
11577a4f78defSmrg
11578a4f78defSmrg
11579a4f78defSmrg
11580a4f78defSmrg
11581a4f78defSmrg
11582a4f78defSmrg
11583a4f78defSmrg
11584a4f78defSmrg
11585a4f78defSmrg
11586a4f78defSmrg
11587a4f78defSmrg
11588a4f78defSmrg
11589a4f78defSmrg
11590a4f78defSmrg
11591a4f78defSmrg
11592a4f78defSmrg
11593a4f78defSmrg
11594a4f78defSmrg
11595a4f78defSmrg
11596a4f78defSmrg
11597a4f78defSmrg
11598a4f78defSmrg
11599a4f78defSmrg
11600a4f78defSmrg
11601a4f78defSmrg
11602a4f78defSmrg
11603a4f78defSmrg
11604a4f78defSmrg
11605a4f78defSmrg
11606a4f78defSmrg
11607a4f78defSmrg
11608a4f78defSmrg
11609a4f78defSmrg
11610a4f78defSmrg
11611a4f78defSmrg
11612a4f78defSmrg
11613a4f78defSmrg
11614a4f78defSmrg
11615a4f78defSmrg
11616a4f78defSmrg
11617a4f78defSmrg
11618a4f78defSmrg
11619a4f78defSmrg
11620a4f78defSmrg
11621a4f78defSmrg
11622a4f78defSmrg
11623a4f78defSmrg
11624a4f78defSmrg
11625a4f78defSmrg
11626a4f78defSmrg
11627a4f78defSmrg
11628a4f78defSmrg
11629a4f78defSmrg
11630a4f78defSmrg
11631a4f78defSmrg
11632a4f78defSmrg
11633a4f78defSmrg
11634a4f78defSmrg
11635a4f78defSmrg
11636a4f78defSmrg
11637a4f78defSmrg
11638a4f78defSmrg
11639a4f78defSmrg
11640a4f78defSmrg
11641a4f78defSmrg
11642a4f78defSmrg
11643a4f78defSmrg
11644a4f78defSmrg
11645a4f78defSmrg
11646a4f78defSmrg
11647a4f78defSmrg
11648a4f78defSmrg
11649a4f78defSmrg
11650a4f78defSmrg
11651a4f78defSmrg
11652a4f78defSmrg
11653a4f78defSmrg
11654a4f78defSmrg
11655a4f78defSmrg
11656a4f78defSmrg
11657a4f78defSmrg
11658a4f78defSmrg
11659a4f78defSmrg
11660a4f78defSmrg
11661a4f78defSmrg
11662a4f78defSmrg
11663a4f78defSmrg
11664a4f78defSmrg
11665a4f78defSmrg
11666a4f78defSmrg
11667a4f78defSmrg
11668a4f78defSmrg
11669a4f78defSmrg
11670a4f78defSmrg
11671a4f78defSmrg
11672a4f78defSmrg
11673a4f78defSmrg
11674a4f78defSmrg
11675a4f78defSmrg
11676a4f78defSmrg
11677a4f78defSmrg
11678a4f78defSmrg
11679a4f78defSmrg
11680a4f78defSmrg
11681a4f78defSmrg
11682a4f78defSmrg
11683a4f78defSmrg
11684a4f78defSmrg
11685a4f78defSmrg
11686a4f78defSmrg
11687a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11688a4f78defSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
11689a4f78defSmrg
11690a4f78defSmrgif test yes = "$GCC"; then
11691a4f78defSmrg  case $host_os in
11692a4f78defSmrg    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11693a4f78defSmrg    *) lt_awk_arg='/^libraries:/' ;;
11694a4f78defSmrg  esac
11695a4f78defSmrg  case $host_os in
11696a4f78defSmrg    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11697a4f78defSmrg    *) lt_sed_strip_eq='s|=/|/|g' ;;
11698a4f78defSmrg  esac
11699a4f78defSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11700a4f78defSmrg  case $lt_search_path_spec in
11701a4f78defSmrg  *\;*)
11702a4f78defSmrg    # if the path contains ";" then we assume it to be the separator
11703a4f78defSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
11704a4f78defSmrg    # assumed that no part of a normal pathname contains ";" but that should
11705a4f78defSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
11706a4f78defSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11707a4f78defSmrg    ;;
11708a4f78defSmrg  *)
11709a4f78defSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11710a4f78defSmrg    ;;
11711a4f78defSmrg  esac
11712a4f78defSmrg  # Ok, now we have the path, separated by spaces, we can step through it
11713a4f78defSmrg  # and add multilib dir if necessary...
11714a4f78defSmrg  lt_tmp_lt_search_path_spec=
11715a4f78defSmrg  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11716a4f78defSmrg  # ...but if some path component already ends with the multilib dir we assume
11717a4f78defSmrg  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11718a4f78defSmrg  case "$lt_multi_os_dir; $lt_search_path_spec " in
11719a4f78defSmrg  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11720a4f78defSmrg    lt_multi_os_dir=
11721a4f78defSmrg    ;;
11722a4f78defSmrg  esac
11723a4f78defSmrg  for lt_sys_path in $lt_search_path_spec; do
11724a4f78defSmrg    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11725a4f78defSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11726a4f78defSmrg    elif test -n "$lt_multi_os_dir"; then
11727a4f78defSmrg      test -d "$lt_sys_path" && \
11728a4f78defSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11729a4f78defSmrg    fi
11730a4f78defSmrg  done
11731a4f78defSmrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11732a4f78defSmrgBEGIN {RS = " "; FS = "/|\n";} {
11733a4f78defSmrg  lt_foo = "";
11734a4f78defSmrg  lt_count = 0;
11735a4f78defSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
11736a4f78defSmrg    if ($lt_i != "" && $lt_i != ".") {
11737a4f78defSmrg      if ($lt_i == "..") {
11738a4f78defSmrg        lt_count++;
11739a4f78defSmrg      } else {
11740a4f78defSmrg        if (lt_count == 0) {
11741a4f78defSmrg          lt_foo = "/" $lt_i lt_foo;
11742a4f78defSmrg        } else {
11743a4f78defSmrg          lt_count--;
11744a4f78defSmrg        }
11745a4f78defSmrg      }
11746a4f78defSmrg    }
11747a4f78defSmrg  }
11748a4f78defSmrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
11749a4f78defSmrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11750a4f78defSmrg}'`
11751a4f78defSmrg  # AWK program above erroneously prepends '/' to C:/dos/paths
11752a4f78defSmrg  # for these hosts.
11753a4f78defSmrg  case $host_os in
11754a4f78defSmrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11755a4f78defSmrg      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11756a4f78defSmrg  esac
11757a4f78defSmrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11758a4f78defSmrgelse
11759a4f78defSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11760a4f78defSmrgfi
11761a4f78defSmrglibrary_names_spec=
11762a4f78defSmrglibname_spec='lib$name'
11763a4f78defSmrgsoname_spec=
11764a4f78defSmrgshrext_cmds=.so
11765a4f78defSmrgpostinstall_cmds=
11766a4f78defSmrgpostuninstall_cmds=
11767a4f78defSmrgfinish_cmds=
11768a4f78defSmrgfinish_eval=
11769a4f78defSmrgshlibpath_var=
11770a4f78defSmrgshlibpath_overrides_runpath=unknown
11771a4f78defSmrgversion_type=none
11772a4f78defSmrgdynamic_linker="$host_os ld.so"
11773a4f78defSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
11774a4f78defSmrgneed_lib_prefix=unknown
11775a4f78defSmrghardcode_into_libs=no
11776a4f78defSmrg
11777a4f78defSmrg# when you set need_version to no, make sure it does not cause -set_version
11778a4f78defSmrg# flags to be left without arguments
11779a4f78defSmrgneed_version=unknown
11780a4f78defSmrg
11781a4f78defSmrg
11782a4f78defSmrg
11783a4f78defSmrgcase $host_os in
11784a4f78defSmrgaix3*)
11785a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
11786a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11787a4f78defSmrg  shlibpath_var=LIBPATH
11788a4f78defSmrg
11789a4f78defSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
11790a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
11791a4f78defSmrg  ;;
11792a4f78defSmrg
11793a4f78defSmrgaix[4-9]*)
11794a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
11795a4f78defSmrg  need_lib_prefix=no
11796a4f78defSmrg  need_version=no
11797a4f78defSmrg  hardcode_into_libs=yes
11798a4f78defSmrg  if test ia64 = "$host_cpu"; then
11799a4f78defSmrg    # AIX 5 supports IA64
11800a4f78defSmrg    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11801a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
11802a4f78defSmrg  else
11803a4f78defSmrg    # With GCC up to 2.95.x, collect2 would create an import file
11804a4f78defSmrg    # for dependence libraries.  The import file would start with
11805a4f78defSmrg    # the line '#! .'.  This would cause the generated library to
11806a4f78defSmrg    # depend on '.', always an invalid library.  This was fixed in
11807a4f78defSmrg    # development snapshots of GCC prior to 3.0.
11808a4f78defSmrg    case $host_os in
11809a4f78defSmrg      aix4 | aix4.[01] | aix4.[01].*)
11810a4f78defSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11811a4f78defSmrg	   echo ' yes '
11812a4f78defSmrg	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11813a4f78defSmrg	:
11814a4f78defSmrg      else
11815a4f78defSmrg	can_build_shared=no
11816a4f78defSmrg      fi
11817a4f78defSmrg      ;;
11818a4f78defSmrg    esac
11819a4f78defSmrg    # Using Import Files as archive members, it is possible to support
11820a4f78defSmrg    # filename-based versioning of shared library archives on AIX. While
11821a4f78defSmrg    # this would work for both with and without runtime linking, it will
11822a4f78defSmrg    # prevent static linking of such archives. So we do filename-based
11823a4f78defSmrg    # shared library versioning with .so extension only, which is used
11824a4f78defSmrg    # when both runtime linking and shared linking is enabled.
11825a4f78defSmrg    # Unfortunately, runtime linking may impact performance, so we do
11826a4f78defSmrg    # not want this to be the default eventually. Also, we use the
11827a4f78defSmrg    # versioned .so libs for executables only if there is the -brtl
11828a4f78defSmrg    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11829a4f78defSmrg    # To allow for filename-based versioning support, we need to create
11830a4f78defSmrg    # libNAME.so.V as an archive file, containing:
11831a4f78defSmrg    # *) an Import File, referring to the versioned filename of the
11832a4f78defSmrg    #    archive as well as the shared archive member, telling the
11833a4f78defSmrg    #    bitwidth (32 or 64) of that shared object, and providing the
11834a4f78defSmrg    #    list of exported symbols of that shared object, eventually
11835a4f78defSmrg    #    decorated with the 'weak' keyword
11836a4f78defSmrg    # *) the shared object with the F_LOADONLY flag set, to really avoid
11837a4f78defSmrg    #    it being seen by the linker.
11838a4f78defSmrg    # At run time we better use the real file rather than another symlink,
11839a4f78defSmrg    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11840a4f78defSmrg
11841a4f78defSmrg    case $with_aix_soname,$aix_use_runtimelinking in
11842a4f78defSmrg    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11843a4f78defSmrg    # soname into executable. Probably we can add versioning support to
11844a4f78defSmrg    # collect2, so additional links can be useful in future.
11845a4f78defSmrg    aix,yes) # traditional libtool
11846a4f78defSmrg      dynamic_linker='AIX unversionable lib.so'
11847a4f78defSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11848a4f78defSmrg      # instead of lib<name>.a to let people know that these are not
11849a4f78defSmrg      # typical AIX shared libraries.
11850a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851a4f78defSmrg      ;;
11852a4f78defSmrg    aix,no) # traditional AIX only
11853a4f78defSmrg      dynamic_linker='AIX lib.a(lib.so.V)'
11854a4f78defSmrg      # We preserve .a as extension for shared libraries through AIX4.2
11855a4f78defSmrg      # and later when we are not doing run time linking.
11856a4f78defSmrg      library_names_spec='$libname$release.a $libname.a'
11857a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
11858a4f78defSmrg      ;;
11859a4f78defSmrg    svr4,*) # full svr4 only
11860a4f78defSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11861a4f78defSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11862a4f78defSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
11863a4f78defSmrg      shlibpath_overrides_runpath=yes
11864a4f78defSmrg      ;;
11865a4f78defSmrg    *,yes) # both, prefer svr4
11866a4f78defSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11867a4f78defSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11868a4f78defSmrg      # unpreferred sharedlib libNAME.a needs extra handling
11869a4f78defSmrg      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"'
11870a4f78defSmrg      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"'
11871a4f78defSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
11872a4f78defSmrg      shlibpath_overrides_runpath=yes
11873a4f78defSmrg      ;;
11874a4f78defSmrg    *,no) # both, prefer aix
11875a4f78defSmrg      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11876a4f78defSmrg      library_names_spec='$libname$release.a $libname.a'
11877a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
11878a4f78defSmrg      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11879a4f78defSmrg      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)'
11880a4f78defSmrg      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"'
11881a4f78defSmrg      ;;
11882a4f78defSmrg    esac
11883a4f78defSmrg    shlibpath_var=LIBPATH
11884a4f78defSmrg  fi
11885a4f78defSmrg  ;;
11886a4f78defSmrg
11887a4f78defSmrgamigaos*)
11888a4f78defSmrg  case $host_cpu in
11889a4f78defSmrg  powerpc)
11890a4f78defSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
11891a4f78defSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11892a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11893a4f78defSmrg    ;;
11894a4f78defSmrg  m68k)
11895a4f78defSmrg    library_names_spec='$libname.ixlibrary $libname.a'
11896a4f78defSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11897a4f78defSmrg    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'
11898a4f78defSmrg    ;;
11899a4f78defSmrg  esac
11900a4f78defSmrg  ;;
11901a4f78defSmrg
11902a4f78defSmrgbeos*)
11903a4f78defSmrg  library_names_spec='$libname$shared_ext'
11904a4f78defSmrg  dynamic_linker="$host_os ld.so"
11905a4f78defSmrg  shlibpath_var=LIBRARY_PATH
11906a4f78defSmrg  ;;
11907a4f78defSmrg
11908a4f78defSmrgbsdi[45]*)
11909a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
11910a4f78defSmrg  need_version=no
11911a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
11913a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11914a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
11915a4f78defSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11916a4f78defSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11917a4f78defSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
11918a4f78defSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11919a4f78defSmrg  # libtool to hard-code these into programs
11920a4f78defSmrg  ;;
11921a4f78defSmrg
11922a4f78defSmrgcygwin* | mingw* | pw32* | cegcc*)
11923a4f78defSmrg  version_type=windows
11924a4f78defSmrg  shrext_cmds=.dll
11925a4f78defSmrg  need_version=no
11926a4f78defSmrg  need_lib_prefix=no
11927a4f78defSmrg
11928a4f78defSmrg  case $GCC,$cc_basename in
11929a4f78defSmrg  yes,*)
11930a4f78defSmrg    # gcc
11931a4f78defSmrg    library_names_spec='$libname.dll.a'
11932a4f78defSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11933a4f78defSmrg    postinstall_cmds='base_file=`basename \$file`~
11934a4f78defSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11935a4f78defSmrg      dldir=$destdir/`dirname \$dlpath`~
11936a4f78defSmrg      test -d \$dldir || mkdir -p \$dldir~
11937a4f78defSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
11938a4f78defSmrg      chmod a+x \$dldir/$dlname~
11939a4f78defSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11940a4f78defSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11941a4f78defSmrg      fi'
11942a4f78defSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11943a4f78defSmrg      dlpath=$dir/\$dldll~
11944a4f78defSmrg       $RM \$dlpath'
11945a4f78defSmrg    shlibpath_overrides_runpath=yes
11946a4f78defSmrg
11947a4f78defSmrg    case $host_os in
11948a4f78defSmrg    cygwin*)
11949a4f78defSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11950a4f78defSmrg      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11951a4f78defSmrg
11952a4f78defSmrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11953a4f78defSmrg      ;;
11954a4f78defSmrg    mingw* | cegcc*)
11955a4f78defSmrg      # MinGW DLLs use traditional 'lib' prefix
11956a4f78defSmrg      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11957a4f78defSmrg      ;;
11958a4f78defSmrg    pw32*)
11959a4f78defSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
11960a4f78defSmrg      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11961a4f78defSmrg      ;;
11962a4f78defSmrg    esac
11963a4f78defSmrg    dynamic_linker='Win32 ld.exe'
11964a4f78defSmrg    ;;
11965a4f78defSmrg
11966a4f78defSmrg  *,cl*)
11967a4f78defSmrg    # Native MSVC
11968a4f78defSmrg    libname_spec='$name'
11969a4f78defSmrg    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11970a4f78defSmrg    library_names_spec='$libname.dll.lib'
11971a4f78defSmrg
11972a4f78defSmrg    case $build_os in
11973a4f78defSmrg    mingw*)
11974a4f78defSmrg      sys_lib_search_path_spec=
11975a4f78defSmrg      lt_save_ifs=$IFS
11976a4f78defSmrg      IFS=';'
11977a4f78defSmrg      for lt_path in $LIB
11978a4f78defSmrg      do
11979a4f78defSmrg        IFS=$lt_save_ifs
11980a4f78defSmrg        # Let DOS variable expansion print the short 8.3 style file name.
11981a4f78defSmrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11982a4f78defSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11983a4f78defSmrg      done
11984a4f78defSmrg      IFS=$lt_save_ifs
11985a4f78defSmrg      # Convert to MSYS style.
11986a4f78defSmrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11987a4f78defSmrg      ;;
11988a4f78defSmrg    cygwin*)
11989a4f78defSmrg      # Convert to unix form, then to dos form, then back to unix form
11990a4f78defSmrg      # but this time dos style (no spaces!) so that the unix form looks
11991a4f78defSmrg      # like /cygdrive/c/PROGRA~1:/cygdr...
11992a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11993a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11994a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11995a4f78defSmrg      ;;
11996a4f78defSmrg    *)
11997a4f78defSmrg      sys_lib_search_path_spec=$LIB
11998a4f78defSmrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11999a4f78defSmrg        # It is most probably a Windows format PATH.
12000a4f78defSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12001a4f78defSmrg      else
12002a4f78defSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12003a4f78defSmrg      fi
12004a4f78defSmrg      # FIXME: find the short name or the path components, as spaces are
12005a4f78defSmrg      # common. (e.g. "Program Files" -> "PROGRA~1")
12006a4f78defSmrg      ;;
12007a4f78defSmrg    esac
12008a4f78defSmrg
12009a4f78defSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12010a4f78defSmrg    postinstall_cmds='base_file=`basename \$file`~
12011a4f78defSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12012a4f78defSmrg      dldir=$destdir/`dirname \$dlpath`~
12013a4f78defSmrg      test -d \$dldir || mkdir -p \$dldir~
12014a4f78defSmrg      $install_prog $dir/$dlname \$dldir/$dlname'
12015a4f78defSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12016a4f78defSmrg      dlpath=$dir/\$dldll~
12017a4f78defSmrg       $RM \$dlpath'
12018a4f78defSmrg    shlibpath_overrides_runpath=yes
12019a4f78defSmrg    dynamic_linker='Win32 link.exe'
12020a4f78defSmrg    ;;
12021a4f78defSmrg
12022a4f78defSmrg  *)
12023a4f78defSmrg    # Assume MSVC wrapper
12024a4f78defSmrg    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12025a4f78defSmrg    dynamic_linker='Win32 ld.exe'
12026a4f78defSmrg    ;;
12027a4f78defSmrg  esac
12028a4f78defSmrg  # FIXME: first we should search . and the directory the executable is in
12029a4f78defSmrg  shlibpath_var=PATH
12030a4f78defSmrg  ;;
12031a4f78defSmrg
12032a4f78defSmrgdarwin* | rhapsody*)
12033a4f78defSmrg  dynamic_linker="$host_os dyld"
12034a4f78defSmrg  version_type=darwin
12035a4f78defSmrg  need_lib_prefix=no
12036a4f78defSmrg  need_version=no
12037a4f78defSmrg  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12038a4f78defSmrg  soname_spec='$libname$release$major$shared_ext'
12039a4f78defSmrg  shlibpath_overrides_runpath=yes
12040a4f78defSmrg  shlibpath_var=DYLD_LIBRARY_PATH
12041a4f78defSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12042a4f78defSmrg
12043a4f78defSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12044a4f78defSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12045a4f78defSmrg  ;;
12046a4f78defSmrg
12047a4f78defSmrgdgux*)
12048a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12049a4f78defSmrg  need_lib_prefix=no
12050a4f78defSmrg  need_version=no
12051a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12053a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12054a4f78defSmrg  ;;
12055a4f78defSmrg
12056a4f78defSmrgfreebsd* | dragonfly*)
12057a4f78defSmrg  # DragonFly does not have aout.  When/if they implement a new
12058a4f78defSmrg  # versioning mechanism, adjust this.
12059a4f78defSmrg  if test -x /usr/bin/objformat; then
12060a4f78defSmrg    objformat=`/usr/bin/objformat`
12061a4f78defSmrg  else
12062a4f78defSmrg    case $host_os in
12063a4f78defSmrg    freebsd[23].*) objformat=aout ;;
12064a4f78defSmrg    *) objformat=elf ;;
12065a4f78defSmrg    esac
12066a4f78defSmrg  fi
12067a4f78defSmrg  version_type=freebsd-$objformat
12068a4f78defSmrg  case $version_type in
12069a4f78defSmrg    freebsd-elf*)
12070a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
12072a4f78defSmrg      need_version=no
12073a4f78defSmrg      need_lib_prefix=no
12074a4f78defSmrg      ;;
12075a4f78defSmrg    freebsd-*)
12076a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12077a4f78defSmrg      need_version=yes
12078a4f78defSmrg      ;;
12079a4f78defSmrg  esac
12080a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12081a4f78defSmrg  case $host_os in
12082a4f78defSmrg  freebsd2.*)
12083a4f78defSmrg    shlibpath_overrides_runpath=yes
12084a4f78defSmrg    ;;
12085a4f78defSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
12086a4f78defSmrg    shlibpath_overrides_runpath=yes
12087a4f78defSmrg    hardcode_into_libs=yes
12088a4f78defSmrg    ;;
12089a4f78defSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12090a4f78defSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12091a4f78defSmrg    shlibpath_overrides_runpath=no
12092a4f78defSmrg    hardcode_into_libs=yes
12093a4f78defSmrg    ;;
12094a4f78defSmrg  *) # from 4.6 on, and DragonFly
12095a4f78defSmrg    shlibpath_overrides_runpath=yes
12096a4f78defSmrg    hardcode_into_libs=yes
12097a4f78defSmrg    ;;
12098a4f78defSmrg  esac
12099a4f78defSmrg  ;;
12100a4f78defSmrg
12101a4f78defSmrghaiku*)
12102a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12103a4f78defSmrg  need_lib_prefix=no
12104a4f78defSmrg  need_version=no
12105a4f78defSmrg  dynamic_linker="$host_os runtime_loader"
12106a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12107a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12108a4f78defSmrg  shlibpath_var=LIBRARY_PATH
12109a4f78defSmrg  shlibpath_overrides_runpath=no
12110a4f78defSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12111a4f78defSmrg  hardcode_into_libs=yes
12112a4f78defSmrg  ;;
12113a4f78defSmrg
12114a4f78defSmrghpux9* | hpux10* | hpux11*)
12115a4f78defSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
12116a4f78defSmrg  # link against other versions.
12117a4f78defSmrg  version_type=sunos
12118a4f78defSmrg  need_lib_prefix=no
12119a4f78defSmrg  need_version=no
12120a4f78defSmrg  case $host_cpu in
12121a4f78defSmrg  ia64*)
12122a4f78defSmrg    shrext_cmds='.so'
12123a4f78defSmrg    hardcode_into_libs=yes
12124a4f78defSmrg    dynamic_linker="$host_os dld.so"
12125a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
12126a4f78defSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12127a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
12129a4f78defSmrg    if test 32 = "$HPUX_IA64_MODE"; then
12130a4f78defSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12131a4f78defSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12132a4f78defSmrg    else
12133a4f78defSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12134a4f78defSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12135a4f78defSmrg    fi
12136a4f78defSmrg    ;;
12137a4f78defSmrg  hppa*64*)
12138a4f78defSmrg    shrext_cmds='.sl'
12139a4f78defSmrg    hardcode_into_libs=yes
12140a4f78defSmrg    dynamic_linker="$host_os dld.sl"
12141a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12142a4f78defSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12143a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
12145a4f78defSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12146a4f78defSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12147a4f78defSmrg    ;;
12148a4f78defSmrg  *)
12149a4f78defSmrg    shrext_cmds='.sl'
12150a4f78defSmrg    dynamic_linker="$host_os dld.sl"
12151a4f78defSmrg    shlibpath_var=SHLIB_PATH
12152a4f78defSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12153a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12154a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
12155a4f78defSmrg    ;;
12156a4f78defSmrg  esac
12157a4f78defSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12158a4f78defSmrg  postinstall_cmds='chmod 555 $lib'
12159a4f78defSmrg  # or fails outright, so override atomically:
12160a4f78defSmrg  install_override_mode=555
12161a4f78defSmrg  ;;
12162a4f78defSmrg
12163a4f78defSmrginterix[3-9]*)
12164a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12165a4f78defSmrg  need_lib_prefix=no
12166a4f78defSmrg  need_version=no
12167a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12168a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12169a4f78defSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12170a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12171a4f78defSmrg  shlibpath_overrides_runpath=no
12172a4f78defSmrg  hardcode_into_libs=yes
12173a4f78defSmrg  ;;
12174a4f78defSmrg
12175a4f78defSmrgirix5* | irix6* | nonstopux*)
12176a4f78defSmrg  case $host_os in
12177a4f78defSmrg    nonstopux*) version_type=nonstopux ;;
12178a4f78defSmrg    *)
12179a4f78defSmrg	if test yes = "$lt_cv_prog_gnu_ld"; then
12180a4f78defSmrg		version_type=linux # correct to gnu/linux during the next big refactor
12181a4f78defSmrg	else
12182a4f78defSmrg		version_type=irix
12183a4f78defSmrg	fi ;;
12184a4f78defSmrg  esac
12185a4f78defSmrg  need_lib_prefix=no
12186a4f78defSmrg  need_version=no
12187a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12188a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12189a4f78defSmrg  case $host_os in
12190a4f78defSmrg  irix5* | nonstopux*)
12191a4f78defSmrg    libsuff= shlibsuff=
12192a4f78defSmrg    ;;
12193a4f78defSmrg  *)
12194a4f78defSmrg    case $LD in # libtool.m4 will add one of these switches to LD
12195a4f78defSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12196a4f78defSmrg      libsuff= shlibsuff= libmagic=32-bit;;
12197a4f78defSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12198a4f78defSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
12199a4f78defSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12200a4f78defSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12201a4f78defSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
12202a4f78defSmrg    esac
12203a4f78defSmrg    ;;
12204a4f78defSmrg  esac
12205a4f78defSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12206a4f78defSmrg  shlibpath_overrides_runpath=no
12207a4f78defSmrg  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12208a4f78defSmrg  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12209a4f78defSmrg  hardcode_into_libs=yes
12210a4f78defSmrg  ;;
12211a4f78defSmrg
12212a4f78defSmrg# No shared lib support for Linux oldld, aout, or coff.
12213a4f78defSmrglinux*oldld* | linux*aout* | linux*coff*)
12214a4f78defSmrg  dynamic_linker=no
12215a4f78defSmrg  ;;
12216a4f78defSmrg
12217a4f78defSmrglinux*android*)
12218a4f78defSmrg  version_type=none # Android doesn't support versioned libraries.
12219a4f78defSmrg  need_lib_prefix=no
12220a4f78defSmrg  need_version=no
12221a4f78defSmrg  library_names_spec='$libname$release$shared_ext'
12222a4f78defSmrg  soname_spec='$libname$release$shared_ext'
12223a4f78defSmrg  finish_cmds=
12224a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12225a4f78defSmrg  shlibpath_overrides_runpath=yes
12226a4f78defSmrg
12227a4f78defSmrg  # This implies no fast_install, which is unacceptable.
12228a4f78defSmrg  # Some rework will be needed to allow for fast_install
12229a4f78defSmrg  # before this can be enabled.
12230a4f78defSmrg  hardcode_into_libs=yes
12231a4f78defSmrg
12232a4f78defSmrg  dynamic_linker='Android linker'
12233a4f78defSmrg  # Don't embed -rpath directories since the linker doesn't support them.
12234a4f78defSmrg  hardcode_libdir_flag_spec='-L$libdir'
12235a4f78defSmrg  ;;
12236a4f78defSmrg
12237a4f78defSmrg# This must be glibc/ELF.
12238a4f78defSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12239a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12240a4f78defSmrg  need_lib_prefix=no
12241a4f78defSmrg  need_version=no
12242a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12244a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12245a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12246a4f78defSmrg  shlibpath_overrides_runpath=no
12247a4f78defSmrg
12248a4f78defSmrg  # Some binutils ld are patched to set DT_RUNPATH
12249a4f78defSmrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12250a4f78defSmrg  $as_echo_n "(cached) " >&6
12251a4f78defSmrgelse
12252a4f78defSmrg  lt_cv_shlibpath_overrides_runpath=no
12253a4f78defSmrg    save_LDFLAGS=$LDFLAGS
12254a4f78defSmrg    save_libdir=$libdir
12255a4f78defSmrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12256a4f78defSmrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12257a4f78defSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258a4f78defSmrg/* end confdefs.h.  */
12259a4f78defSmrg
12260a4f78defSmrgint
12261a4f78defSmrgmain ()
12262a4f78defSmrg{
12263a4f78defSmrg
12264a4f78defSmrg  ;
12265a4f78defSmrg  return 0;
12266a4f78defSmrg}
12267a4f78defSmrg_ACEOF
12268a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12269a4f78defSmrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12270a4f78defSmrg  lt_cv_shlibpath_overrides_runpath=yes
12271a4f78defSmrgfi
12272a4f78defSmrgfi
12273a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12274a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12275a4f78defSmrg    LDFLAGS=$save_LDFLAGS
12276a4f78defSmrg    libdir=$save_libdir
12277a4f78defSmrg
12278a4f78defSmrgfi
12279a4f78defSmrg
12280a4f78defSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12281a4f78defSmrg
12282a4f78defSmrg  # This implies no fast_install, which is unacceptable.
12283a4f78defSmrg  # Some rework will be needed to allow for fast_install
12284a4f78defSmrg  # before this can be enabled.
12285a4f78defSmrg  hardcode_into_libs=yes
12286a4f78defSmrg
12287a4f78defSmrg  # Ideally, we could use ldconfig to report *all* directores which are
12288a4f78defSmrg  # searched for libraries, however this is still not possible.  Aside from not
12289a4f78defSmrg  # being certain /sbin/ldconfig is available, command
12290a4f78defSmrg  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12291a4f78defSmrg  # even though it is searched at run-time.  Try to do the best guess by
12292a4f78defSmrg  # appending ld.so.conf contents (and includes) to the search path.
12293a4f78defSmrg  if test -f /etc/ld.so.conf; then
12294a4f78defSmrg    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' ' '`
12295a4f78defSmrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12296a4f78defSmrg  fi
12297a4f78defSmrg
12298a4f78defSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
12299a4f78defSmrg  # powerpc, because MkLinux only supported shared libraries with the
12300a4f78defSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
12301a4f78defSmrg  # most powerpc-linux boxes support dynamic linking these days and
12302a4f78defSmrg  # people can always --disable-shared, the test was removed, and we
12303a4f78defSmrg  # assume the GNU/Linux dynamic linker is in use.
12304a4f78defSmrg  dynamic_linker='GNU/Linux ld.so'
12305a4f78defSmrg  ;;
12306a4f78defSmrg
12307a4f78defSmrgnetbsd*)
12308a4f78defSmrg  version_type=sunos
12309a4f78defSmrg  need_lib_prefix=no
12310a4f78defSmrg  need_version=no
12311a4f78defSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12312a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12313a4f78defSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12314a4f78defSmrg    dynamic_linker='NetBSD (a.out) ld.so'
12315a4f78defSmrg  else
12316a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
12318a4f78defSmrg    dynamic_linker='NetBSD ld.elf_so'
12319a4f78defSmrg  fi
12320a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12321a4f78defSmrg  shlibpath_overrides_runpath=yes
12322a4f78defSmrg  hardcode_into_libs=yes
12323a4f78defSmrg  ;;
12324a4f78defSmrg
12325a4f78defSmrgnewsos6)
12326a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12327a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12329a4f78defSmrg  shlibpath_overrides_runpath=yes
12330a4f78defSmrg  ;;
12331a4f78defSmrg
12332a4f78defSmrg*nto* | *qnx*)
12333a4f78defSmrg  version_type=qnx
12334a4f78defSmrg  need_lib_prefix=no
12335a4f78defSmrg  need_version=no
12336a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12337a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12338a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12339a4f78defSmrg  shlibpath_overrides_runpath=no
12340a4f78defSmrg  hardcode_into_libs=yes
12341a4f78defSmrg  dynamic_linker='ldqnx.so'
12342a4f78defSmrg  ;;
12343a4f78defSmrg
12344a4f78defSmrgopenbsd* | bitrig*)
12345a4f78defSmrg  version_type=sunos
12346a4f78defSmrg  sys_lib_dlsearch_path_spec=/usr/lib
12347a4f78defSmrg  need_lib_prefix=no
12348a4f78defSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12349a4f78defSmrg    need_version=no
12350a4f78defSmrg  else
12351a4f78defSmrg    need_version=yes
12352a4f78defSmrg  fi
12353a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12354a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12355a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12356a4f78defSmrg  shlibpath_overrides_runpath=yes
12357a4f78defSmrg  ;;
12358a4f78defSmrg
12359a4f78defSmrgos2*)
12360a4f78defSmrg  libname_spec='$name'
12361a4f78defSmrg  version_type=windows
12362a4f78defSmrg  shrext_cmds=.dll
12363a4f78defSmrg  need_version=no
12364a4f78defSmrg  need_lib_prefix=no
12365a4f78defSmrg  # OS/2 can only load a DLL with a base name of 8 characters or less.
12366a4f78defSmrg  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12367a4f78defSmrg    v=$($ECHO $release$versuffix | tr -d .-);
12368a4f78defSmrg    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12369a4f78defSmrg    $ECHO $n$v`$shared_ext'
12370a4f78defSmrg  library_names_spec='${libname}_dll.$libext'
12371a4f78defSmrg  dynamic_linker='OS/2 ld.exe'
12372a4f78defSmrg  shlibpath_var=BEGINLIBPATH
12373a4f78defSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12374a4f78defSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12375a4f78defSmrg  postinstall_cmds='base_file=`basename \$file`~
12376a4f78defSmrg    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12377a4f78defSmrg    dldir=$destdir/`dirname \$dlpath`~
12378a4f78defSmrg    test -d \$dldir || mkdir -p \$dldir~
12379a4f78defSmrg    $install_prog $dir/$dlname \$dldir/$dlname~
12380a4f78defSmrg    chmod a+x \$dldir/$dlname~
12381a4f78defSmrg    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12382a4f78defSmrg      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12383a4f78defSmrg    fi'
12384a4f78defSmrg  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12385a4f78defSmrg    dlpath=$dir/\$dldll~
12386a4f78defSmrg    $RM \$dlpath'
12387a4f78defSmrg  ;;
12388a4f78defSmrg
12389a4f78defSmrgosf3* | osf4* | osf5*)
12390a4f78defSmrg  version_type=osf
12391a4f78defSmrg  need_lib_prefix=no
12392a4f78defSmrg  need_version=no
12393a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12394a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12396a4f78defSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12397a4f78defSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12398a4f78defSmrg  ;;
12399a4f78defSmrg
12400a4f78defSmrgrdos*)
12401a4f78defSmrg  dynamic_linker=no
12402a4f78defSmrg  ;;
12403a4f78defSmrg
12404a4f78defSmrgsolaris*)
12405a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12406a4f78defSmrg  need_lib_prefix=no
12407a4f78defSmrg  need_version=no
12408a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12410a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12411a4f78defSmrg  shlibpath_overrides_runpath=yes
12412a4f78defSmrg  hardcode_into_libs=yes
12413a4f78defSmrg  # ldd complains unless libraries are executable
12414a4f78defSmrg  postinstall_cmds='chmod +x $lib'
12415a4f78defSmrg  ;;
12416a4f78defSmrg
12417a4f78defSmrgsunos4*)
12418a4f78defSmrg  version_type=sunos
12419a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12420a4f78defSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12421a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12422a4f78defSmrg  shlibpath_overrides_runpath=yes
12423a4f78defSmrg  if test yes = "$with_gnu_ld"; then
12424a4f78defSmrg    need_lib_prefix=no
12425a4f78defSmrg  fi
12426a4f78defSmrg  need_version=yes
12427a4f78defSmrg  ;;
12428a4f78defSmrg
12429a4f78defSmrgsysv4 | sysv4.3*)
12430a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12431a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12433a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12434a4f78defSmrg  case $host_vendor in
12435a4f78defSmrg    sni)
12436a4f78defSmrg      shlibpath_overrides_runpath=no
12437a4f78defSmrg      need_lib_prefix=no
12438a4f78defSmrg      runpath_var=LD_RUN_PATH
12439a4f78defSmrg      ;;
12440a4f78defSmrg    siemens)
12441a4f78defSmrg      need_lib_prefix=no
12442a4f78defSmrg      ;;
12443a4f78defSmrg    motorola)
12444a4f78defSmrg      need_lib_prefix=no
12445a4f78defSmrg      need_version=no
12446a4f78defSmrg      shlibpath_overrides_runpath=no
12447a4f78defSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12448a4f78defSmrg      ;;
12449a4f78defSmrg  esac
12450a4f78defSmrg  ;;
12451a4f78defSmrg
12452a4f78defSmrgsysv4*MP*)
12453a4f78defSmrg  if test -d /usr/nec; then
12454a4f78defSmrg    version_type=linux # correct to gnu/linux during the next big refactor
12455a4f78defSmrg    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12456a4f78defSmrg    soname_spec='$libname$shared_ext.$major'
12457a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
12458a4f78defSmrg  fi
12459a4f78defSmrg  ;;
12460a4f78defSmrg
12461a4f78defSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12462a4f78defSmrg  version_type=sco
12463a4f78defSmrg  need_lib_prefix=no
12464a4f78defSmrg  need_version=no
12465a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12466a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12467a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12468a4f78defSmrg  shlibpath_overrides_runpath=yes
12469a4f78defSmrg  hardcode_into_libs=yes
12470a4f78defSmrg  if test yes = "$with_gnu_ld"; then
12471a4f78defSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12472a4f78defSmrg  else
12473a4f78defSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12474a4f78defSmrg    case $host_os in
12475a4f78defSmrg      sco3.2v5*)
12476a4f78defSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12477a4f78defSmrg	;;
12478a4f78defSmrg    esac
12479a4f78defSmrg  fi
12480a4f78defSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
12481a4f78defSmrg  ;;
12482a4f78defSmrg
12483a4f78defSmrgtpf*)
12484a4f78defSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12485a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12486a4f78defSmrg  need_lib_prefix=no
12487a4f78defSmrg  need_version=no
12488a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12490a4f78defSmrg  shlibpath_overrides_runpath=no
12491a4f78defSmrg  hardcode_into_libs=yes
12492a4f78defSmrg  ;;
12493a4f78defSmrg
12494a4f78defSmrguts4*)
12495a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
12496a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
12498a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
12499a4f78defSmrg  ;;
12500a4f78defSmrg
12501a4f78defSmrg*)
12502a4f78defSmrg  dynamic_linker=no
12503a4f78defSmrg  ;;
12504a4f78defSmrgesac
12505a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12506a4f78defSmrg$as_echo "$dynamic_linker" >&6; }
12507a4f78defSmrgtest no = "$dynamic_linker" && can_build_shared=no
12508a4f78defSmrg
12509a4f78defSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12510a4f78defSmrgif test yes = "$GCC"; then
12511a4f78defSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12512a4f78defSmrgfi
12513a4f78defSmrg
12514a4f78defSmrgif test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12515a4f78defSmrg  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12516a4f78defSmrgfi
12517a4f78defSmrg
12518a4f78defSmrgif test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12519a4f78defSmrg  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12520a4f78defSmrgfi
12521a4f78defSmrg
12522a4f78defSmrg# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12523a4f78defSmrgconfigure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12524a4f78defSmrg
12525a4f78defSmrg# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12526a4f78defSmrgfunc_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12527a4f78defSmrg
12528a4f78defSmrg# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12529a4f78defSmrgconfigure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12530a4f78defSmrg
12531a4f78defSmrg
12532a4f78defSmrg
12533a4f78defSmrg
12534a4f78defSmrg
12535a4f78defSmrg
12536a4f78defSmrg
12537a4f78defSmrg
12538a4f78defSmrg
12539a4f78defSmrg
12540a4f78defSmrg
12541a4f78defSmrg
12542a4f78defSmrg
12543a4f78defSmrg
12544a4f78defSmrg
12545a4f78defSmrg
12546a4f78defSmrg
12547a4f78defSmrg
12548a4f78defSmrg
12549a4f78defSmrg
12550a4f78defSmrg
12551a4f78defSmrg
12552a4f78defSmrg
12553a4f78defSmrg
12554a4f78defSmrg
12555a4f78defSmrg
12556a4f78defSmrg
12557a4f78defSmrg
12558a4f78defSmrg
12559a4f78defSmrg
12560a4f78defSmrg
12561a4f78defSmrg
12562a4f78defSmrg
12563a4f78defSmrg
12564a4f78defSmrg
12565a4f78defSmrg
12566a4f78defSmrg
12567a4f78defSmrg
12568a4f78defSmrg
12569a4f78defSmrg
12570a4f78defSmrg
12571a4f78defSmrg
12572a4f78defSmrg
12573a4f78defSmrg
12574a4f78defSmrg
12575a4f78defSmrg
12576a4f78defSmrg
12577a4f78defSmrg
12578a4f78defSmrg
12579a4f78defSmrg
12580a4f78defSmrg
12581a4f78defSmrg
12582a4f78defSmrg
12583a4f78defSmrg
12584a4f78defSmrg
12585a4f78defSmrg
12586a4f78defSmrg
12587a4f78defSmrg
12588a4f78defSmrg
12589a4f78defSmrg
12590a4f78defSmrg
12591a4f78defSmrg
12592a4f78defSmrg
12593a4f78defSmrg
12594a4f78defSmrg
12595a4f78defSmrg
12596a4f78defSmrg
12597a4f78defSmrg
12598a4f78defSmrg
12599a4f78defSmrg
12600a4f78defSmrg
12601a4f78defSmrg
12602a4f78defSmrg
12603a4f78defSmrg
12604a4f78defSmrg
12605a4f78defSmrg
12606a4f78defSmrg
12607a4f78defSmrg
12608a4f78defSmrg
12609a4f78defSmrg
12610a4f78defSmrg
12611a4f78defSmrg
12612a4f78defSmrg
12613a4f78defSmrg
12614a4f78defSmrg
12615a4f78defSmrg
12616a4f78defSmrg
12617a4f78defSmrg
12618a4f78defSmrg
12619a4f78defSmrg
12620a4f78defSmrg
12621a4f78defSmrg
12622a4f78defSmrg
12623a4f78defSmrg
12624a4f78defSmrg
12625a4f78defSmrg
12626a4f78defSmrg
12627a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12628a4f78defSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12629a4f78defSmrghardcode_action=
12630a4f78defSmrgif test -n "$hardcode_libdir_flag_spec" ||
12631a4f78defSmrg   test -n "$runpath_var" ||
12632a4f78defSmrg   test yes = "$hardcode_automatic"; then
12633a4f78defSmrg
12634a4f78defSmrg  # We can hardcode non-existent directories.
12635a4f78defSmrg  if test no != "$hardcode_direct" &&
12636a4f78defSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12637a4f78defSmrg     # have to relink, otherwise we might link with an installed library
12638a4f78defSmrg     # when we should be linking with a yet-to-be-installed one
12639a4f78defSmrg     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12640a4f78defSmrg     test no != "$hardcode_minus_L"; then
12641a4f78defSmrg    # Linking always hardcodes the temporary library directory.
12642a4f78defSmrg    hardcode_action=relink
12643a4f78defSmrg  else
12644a4f78defSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12645a4f78defSmrg    hardcode_action=immediate
12646a4f78defSmrg  fi
12647a4f78defSmrgelse
12648a4f78defSmrg  # We cannot hardcode anything, or else we can only hardcode existing
12649a4f78defSmrg  # directories.
12650a4f78defSmrg  hardcode_action=unsupported
12651a4f78defSmrgfi
12652a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12653a4f78defSmrg$as_echo "$hardcode_action" >&6; }
12654a4f78defSmrg
12655a4f78defSmrgif test relink = "$hardcode_action" ||
12656a4f78defSmrg   test yes = "$inherit_rpath"; then
12657a4f78defSmrg  # Fast installation is not supported
12658a4f78defSmrg  enable_fast_install=no
12659a4f78defSmrgelif test yes = "$shlibpath_overrides_runpath" ||
12660a4f78defSmrg     test no = "$enable_shared"; then
12661a4f78defSmrg  # Fast installation is not necessary
12662a4f78defSmrg  enable_fast_install=needless
12663a4f78defSmrgfi
12664a4f78defSmrg
12665a4f78defSmrg
12666a4f78defSmrg
12667a4f78defSmrg
12668a4f78defSmrg
12669a4f78defSmrg
12670a4f78defSmrg  if test yes != "$enable_dlopen"; then
12671a4f78defSmrg  enable_dlopen=unknown
12672a4f78defSmrg  enable_dlopen_self=unknown
12673a4f78defSmrg  enable_dlopen_self_static=unknown
12674a4f78defSmrgelse
12675a4f78defSmrg  lt_cv_dlopen=no
12676a4f78defSmrg  lt_cv_dlopen_libs=
12677a4f78defSmrg
12678a4f78defSmrg  case $host_os in
12679a4f78defSmrg  beos*)
12680a4f78defSmrg    lt_cv_dlopen=load_add_on
12681a4f78defSmrg    lt_cv_dlopen_libs=
12682a4f78defSmrg    lt_cv_dlopen_self=yes
12683a4f78defSmrg    ;;
12684a4f78defSmrg
12685a4f78defSmrg  mingw* | pw32* | cegcc*)
12686a4f78defSmrg    lt_cv_dlopen=LoadLibrary
12687a4f78defSmrg    lt_cv_dlopen_libs=
12688a4f78defSmrg    ;;
12689a4f78defSmrg
12690a4f78defSmrg  cygwin*)
12691a4f78defSmrg    lt_cv_dlopen=dlopen
12692a4f78defSmrg    lt_cv_dlopen_libs=
12693a4f78defSmrg    ;;
12694a4f78defSmrg
12695a4f78defSmrg  darwin*)
12696a4f78defSmrg    # if libdl is installed we need to link against it
12697a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12698a4f78defSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
12699a4f78defSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
12700a4f78defSmrg  $as_echo_n "(cached) " >&6
12701a4f78defSmrgelse
12702a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
12703a4f78defSmrgLIBS="-ldl  $LIBS"
12704a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705a4f78defSmrg/* end confdefs.h.  */
12706a4f78defSmrg
12707a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
12708a4f78defSmrg   Use char because int might match the return type of a GCC
12709a4f78defSmrg   builtin and then its argument prototype would still apply.  */
12710a4f78defSmrg#ifdef __cplusplus
12711a4f78defSmrgextern "C"
12712a4f78defSmrg#endif
12713a4f78defSmrgchar dlopen ();
12714a4f78defSmrgint
12715a4f78defSmrgmain ()
12716a4f78defSmrg{
12717a4f78defSmrgreturn dlopen ();
12718a4f78defSmrg  ;
12719a4f78defSmrg  return 0;
12720a4f78defSmrg}
12721a4f78defSmrg_ACEOF
12722a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12723a4f78defSmrg  ac_cv_lib_dl_dlopen=yes
12724a4f78defSmrgelse
12725a4f78defSmrg  ac_cv_lib_dl_dlopen=no
12726a4f78defSmrgfi
12727a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12728a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12729a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
12730a4f78defSmrgfi
12731a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12732a4f78defSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12733a4f78defSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12734a4f78defSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12735a4f78defSmrgelse
12736a4f78defSmrg
12737a4f78defSmrg    lt_cv_dlopen=dyld
12738a4f78defSmrg    lt_cv_dlopen_libs=
12739a4f78defSmrg    lt_cv_dlopen_self=yes
12740a4f78defSmrg
12741a4f78defSmrgfi
12742a4f78defSmrg
12743a4f78defSmrg    ;;
12744a4f78defSmrg
12745a4f78defSmrg  tpf*)
12746a4f78defSmrg    # Don't try to run any link tests for TPF.  We know it's impossible
12747a4f78defSmrg    # because TPF is a cross-compiler, and we know how we open DSOs.
12748a4f78defSmrg    lt_cv_dlopen=dlopen
12749a4f78defSmrg    lt_cv_dlopen_libs=
12750a4f78defSmrg    lt_cv_dlopen_self=no
12751a4f78defSmrg    ;;
12752a4f78defSmrg
12753a4f78defSmrg  *)
12754a4f78defSmrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12755a4f78defSmrgif test "x$ac_cv_func_shl_load" = xyes; then :
12756a4f78defSmrg  lt_cv_dlopen=shl_load
12757a4f78defSmrgelse
12758a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12759a4f78defSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
12760a4f78defSmrgif ${ac_cv_lib_dld_shl_load+:} false; then :
12761a4f78defSmrg  $as_echo_n "(cached) " >&6
12762a4f78defSmrgelse
12763a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
12764a4f78defSmrgLIBS="-ldld  $LIBS"
12765a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766a4f78defSmrg/* end confdefs.h.  */
12767a4f78defSmrg
12768a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
12769a4f78defSmrg   Use char because int might match the return type of a GCC
12770a4f78defSmrg   builtin and then its argument prototype would still apply.  */
12771a4f78defSmrg#ifdef __cplusplus
12772a4f78defSmrgextern "C"
12773a4f78defSmrg#endif
12774a4f78defSmrgchar shl_load ();
12775a4f78defSmrgint
12776a4f78defSmrgmain ()
12777a4f78defSmrg{
12778a4f78defSmrgreturn shl_load ();
12779a4f78defSmrg  ;
12780a4f78defSmrg  return 0;
12781a4f78defSmrg}
12782a4f78defSmrg_ACEOF
12783a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12784a4f78defSmrg  ac_cv_lib_dld_shl_load=yes
12785a4f78defSmrgelse
12786a4f78defSmrg  ac_cv_lib_dld_shl_load=no
12787a4f78defSmrgfi
12788a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12789a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12790a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
12791a4f78defSmrgfi
12792a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12793a4f78defSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12794a4f78defSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12795a4f78defSmrg  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12796a4f78defSmrgelse
12797a4f78defSmrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12798a4f78defSmrgif test "x$ac_cv_func_dlopen" = xyes; then :
12799a4f78defSmrg  lt_cv_dlopen=dlopen
12800a4f78defSmrgelse
12801a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12802a4f78defSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
12803a4f78defSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
12804a4f78defSmrg  $as_echo_n "(cached) " >&6
12805a4f78defSmrgelse
12806a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
12807a4f78defSmrgLIBS="-ldl  $LIBS"
12808a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809a4f78defSmrg/* end confdefs.h.  */
12810a4f78defSmrg
12811a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
12812a4f78defSmrg   Use char because int might match the return type of a GCC
12813a4f78defSmrg   builtin and then its argument prototype would still apply.  */
12814a4f78defSmrg#ifdef __cplusplus
12815a4f78defSmrgextern "C"
12816a4f78defSmrg#endif
12817a4f78defSmrgchar dlopen ();
12818a4f78defSmrgint
12819a4f78defSmrgmain ()
12820a4f78defSmrg{
12821a4f78defSmrgreturn dlopen ();
12822a4f78defSmrg  ;
12823a4f78defSmrg  return 0;
12824a4f78defSmrg}
12825a4f78defSmrg_ACEOF
12826a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12827a4f78defSmrg  ac_cv_lib_dl_dlopen=yes
12828a4f78defSmrgelse
12829a4f78defSmrg  ac_cv_lib_dl_dlopen=no
12830a4f78defSmrgfi
12831a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12832a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12833a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
12834a4f78defSmrgfi
12835a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12836a4f78defSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12837a4f78defSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12838a4f78defSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12839a4f78defSmrgelse
12840a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12841a4f78defSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12842a4f78defSmrgif ${ac_cv_lib_svld_dlopen+:} false; then :
12843a4f78defSmrg  $as_echo_n "(cached) " >&6
12844a4f78defSmrgelse
12845a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
12846a4f78defSmrgLIBS="-lsvld  $LIBS"
12847a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848a4f78defSmrg/* end confdefs.h.  */
12849a4f78defSmrg
12850a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
12851a4f78defSmrg   Use char because int might match the return type of a GCC
12852a4f78defSmrg   builtin and then its argument prototype would still apply.  */
12853a4f78defSmrg#ifdef __cplusplus
12854a4f78defSmrgextern "C"
12855a4f78defSmrg#endif
12856a4f78defSmrgchar dlopen ();
12857a4f78defSmrgint
12858a4f78defSmrgmain ()
12859a4f78defSmrg{
12860a4f78defSmrgreturn dlopen ();
12861a4f78defSmrg  ;
12862a4f78defSmrg  return 0;
12863a4f78defSmrg}
12864a4f78defSmrg_ACEOF
12865a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12866a4f78defSmrg  ac_cv_lib_svld_dlopen=yes
12867a4f78defSmrgelse
12868a4f78defSmrg  ac_cv_lib_svld_dlopen=no
12869a4f78defSmrgfi
12870a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12871a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12872a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
12873a4f78defSmrgfi
12874a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12875a4f78defSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12876a4f78defSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12877a4f78defSmrg  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12878a4f78defSmrgelse
12879a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12880a4f78defSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
12881a4f78defSmrgif ${ac_cv_lib_dld_dld_link+:} false; then :
12882a4f78defSmrg  $as_echo_n "(cached) " >&6
12883a4f78defSmrgelse
12884a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
12885a4f78defSmrgLIBS="-ldld  $LIBS"
12886a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887a4f78defSmrg/* end confdefs.h.  */
12888a4f78defSmrg
12889a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
12890a4f78defSmrg   Use char because int might match the return type of a GCC
12891a4f78defSmrg   builtin and then its argument prototype would still apply.  */
12892a4f78defSmrg#ifdef __cplusplus
12893a4f78defSmrgextern "C"
12894a4f78defSmrg#endif
12895a4f78defSmrgchar dld_link ();
12896a4f78defSmrgint
12897a4f78defSmrgmain ()
12898a4f78defSmrg{
12899a4f78defSmrgreturn dld_link ();
12900a4f78defSmrg  ;
12901a4f78defSmrg  return 0;
12902a4f78defSmrg}
12903a4f78defSmrg_ACEOF
12904a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
12905a4f78defSmrg  ac_cv_lib_dld_dld_link=yes
12906a4f78defSmrgelse
12907a4f78defSmrg  ac_cv_lib_dld_dld_link=no
12908a4f78defSmrgfi
12909a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
12910a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
12911a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
12912a4f78defSmrgfi
12913a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12914a4f78defSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12915a4f78defSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12916a4f78defSmrg  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12917a4f78defSmrgfi
12918a4f78defSmrg
12919a4f78defSmrg
12920a4f78defSmrgfi
12921a4f78defSmrg
12922a4f78defSmrg
12923a4f78defSmrgfi
12924a4f78defSmrg
12925a4f78defSmrg
12926a4f78defSmrgfi
12927a4f78defSmrg
12928a4f78defSmrg
12929a4f78defSmrgfi
12930a4f78defSmrg
12931a4f78defSmrg
12932a4f78defSmrgfi
12933a4f78defSmrg
12934a4f78defSmrg    ;;
12935a4f78defSmrg  esac
12936a4f78defSmrg
12937a4f78defSmrg  if test no = "$lt_cv_dlopen"; then
12938a4f78defSmrg    enable_dlopen=no
12939a4f78defSmrg  else
12940a4f78defSmrg    enable_dlopen=yes
12941a4f78defSmrg  fi
12942a4f78defSmrg
12943a4f78defSmrg  case $lt_cv_dlopen in
12944a4f78defSmrg  dlopen)
12945a4f78defSmrg    save_CPPFLAGS=$CPPFLAGS
12946a4f78defSmrg    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12947a4f78defSmrg
12948a4f78defSmrg    save_LDFLAGS=$LDFLAGS
12949a4f78defSmrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12950a4f78defSmrg
12951a4f78defSmrg    save_LIBS=$LIBS
12952a4f78defSmrg    LIBS="$lt_cv_dlopen_libs $LIBS"
12953a4f78defSmrg
12954a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12955a4f78defSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12956a4f78defSmrgif ${lt_cv_dlopen_self+:} false; then :
12957a4f78defSmrg  $as_echo_n "(cached) " >&6
12958a4f78defSmrgelse
12959a4f78defSmrg  	  if test yes = "$cross_compiling"; then :
12960a4f78defSmrg  lt_cv_dlopen_self=cross
12961a4f78defSmrgelse
12962a4f78defSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12963a4f78defSmrg  lt_status=$lt_dlunknown
12964a4f78defSmrg  cat > conftest.$ac_ext <<_LT_EOF
12965a4f78defSmrg#line $LINENO "configure"
12966a4f78defSmrg#include "confdefs.h"
12967a4f78defSmrg
12968a4f78defSmrg#if HAVE_DLFCN_H
12969a4f78defSmrg#include <dlfcn.h>
12970a4f78defSmrg#endif
12971a4f78defSmrg
12972a4f78defSmrg#include <stdio.h>
12973a4f78defSmrg
12974a4f78defSmrg#ifdef RTLD_GLOBAL
12975a4f78defSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
12976a4f78defSmrg#else
12977a4f78defSmrg#  ifdef DL_GLOBAL
12978a4f78defSmrg#    define LT_DLGLOBAL		DL_GLOBAL
12979a4f78defSmrg#  else
12980a4f78defSmrg#    define LT_DLGLOBAL		0
12981a4f78defSmrg#  endif
12982a4f78defSmrg#endif
12983a4f78defSmrg
12984a4f78defSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12985a4f78defSmrg   find out it does not work in some platform. */
12986a4f78defSmrg#ifndef LT_DLLAZY_OR_NOW
12987a4f78defSmrg#  ifdef RTLD_LAZY
12988a4f78defSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12989a4f78defSmrg#  else
12990a4f78defSmrg#    ifdef DL_LAZY
12991a4f78defSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
12992a4f78defSmrg#    else
12993a4f78defSmrg#      ifdef RTLD_NOW
12994a4f78defSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12995a4f78defSmrg#      else
12996a4f78defSmrg#        ifdef DL_NOW
12997a4f78defSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
12998a4f78defSmrg#        else
12999a4f78defSmrg#          define LT_DLLAZY_OR_NOW	0
13000a4f78defSmrg#        endif
13001a4f78defSmrg#      endif
13002a4f78defSmrg#    endif
13003a4f78defSmrg#  endif
13004a4f78defSmrg#endif
13005a4f78defSmrg
13006a4f78defSmrg/* When -fvisibility=hidden is used, assume the code has been annotated
13007a4f78defSmrg   correspondingly for the symbols needed.  */
13008a4f78defSmrg#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13009a4f78defSmrgint fnord () __attribute__((visibility("default")));
13010a4f78defSmrg#endif
13011a4f78defSmrg
13012a4f78defSmrgint fnord () { return 42; }
13013a4f78defSmrgint main ()
13014a4f78defSmrg{
13015a4f78defSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13016a4f78defSmrg  int status = $lt_dlunknown;
13017a4f78defSmrg
13018a4f78defSmrg  if (self)
13019a4f78defSmrg    {
13020a4f78defSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13021a4f78defSmrg      else
13022a4f78defSmrg        {
13023a4f78defSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13024a4f78defSmrg          else puts (dlerror ());
13025a4f78defSmrg	}
13026a4f78defSmrg      /* dlclose (self); */
13027a4f78defSmrg    }
13028a4f78defSmrg  else
13029a4f78defSmrg    puts (dlerror ());
13030a4f78defSmrg
13031a4f78defSmrg  return status;
13032a4f78defSmrg}
13033a4f78defSmrg_LT_EOF
13034a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13035a4f78defSmrg  (eval $ac_link) 2>&5
13036a4f78defSmrg  ac_status=$?
13037a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038a4f78defSmrg  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13039a4f78defSmrg    (./conftest; exit; ) >&5 2>/dev/null
13040a4f78defSmrg    lt_status=$?
13041a4f78defSmrg    case x$lt_status in
13042a4f78defSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13043a4f78defSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13044a4f78defSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13045a4f78defSmrg    esac
13046a4f78defSmrg  else :
13047a4f78defSmrg    # compilation failed
13048a4f78defSmrg    lt_cv_dlopen_self=no
13049a4f78defSmrg  fi
13050a4f78defSmrgfi
13051a4f78defSmrgrm -fr conftest*
13052a4f78defSmrg
13053a4f78defSmrg
13054a4f78defSmrgfi
13055a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13056a4f78defSmrg$as_echo "$lt_cv_dlopen_self" >&6; }
13057a4f78defSmrg
13058a4f78defSmrg    if test yes = "$lt_cv_dlopen_self"; then
13059a4f78defSmrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13060a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13061a4f78defSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13062a4f78defSmrgif ${lt_cv_dlopen_self_static+:} false; then :
13063a4f78defSmrg  $as_echo_n "(cached) " >&6
13064a4f78defSmrgelse
13065a4f78defSmrg  	  if test yes = "$cross_compiling"; then :
13066a4f78defSmrg  lt_cv_dlopen_self_static=cross
13067a4f78defSmrgelse
13068a4f78defSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13069a4f78defSmrg  lt_status=$lt_dlunknown
13070a4f78defSmrg  cat > conftest.$ac_ext <<_LT_EOF
13071a4f78defSmrg#line $LINENO "configure"
13072a4f78defSmrg#include "confdefs.h"
13073a4f78defSmrg
13074a4f78defSmrg#if HAVE_DLFCN_H
13075a4f78defSmrg#include <dlfcn.h>
13076a4f78defSmrg#endif
13077a4f78defSmrg
13078a4f78defSmrg#include <stdio.h>
13079a4f78defSmrg
13080a4f78defSmrg#ifdef RTLD_GLOBAL
13081a4f78defSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
13082a4f78defSmrg#else
13083a4f78defSmrg#  ifdef DL_GLOBAL
13084a4f78defSmrg#    define LT_DLGLOBAL		DL_GLOBAL
13085a4f78defSmrg#  else
13086a4f78defSmrg#    define LT_DLGLOBAL		0
13087a4f78defSmrg#  endif
13088a4f78defSmrg#endif
13089a4f78defSmrg
13090a4f78defSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13091a4f78defSmrg   find out it does not work in some platform. */
13092a4f78defSmrg#ifndef LT_DLLAZY_OR_NOW
13093a4f78defSmrg#  ifdef RTLD_LAZY
13094a4f78defSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13095a4f78defSmrg#  else
13096a4f78defSmrg#    ifdef DL_LAZY
13097a4f78defSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
13098a4f78defSmrg#    else
13099a4f78defSmrg#      ifdef RTLD_NOW
13100a4f78defSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13101a4f78defSmrg#      else
13102a4f78defSmrg#        ifdef DL_NOW
13103a4f78defSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
13104a4f78defSmrg#        else
13105a4f78defSmrg#          define LT_DLLAZY_OR_NOW	0
13106a4f78defSmrg#        endif
13107a4f78defSmrg#      endif
13108a4f78defSmrg#    endif
13109a4f78defSmrg#  endif
13110a4f78defSmrg#endif
13111a4f78defSmrg
13112a4f78defSmrg/* When -fvisibility=hidden is used, assume the code has been annotated
13113a4f78defSmrg   correspondingly for the symbols needed.  */
13114a4f78defSmrg#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13115a4f78defSmrgint fnord () __attribute__((visibility("default")));
13116a4f78defSmrg#endif
13117a4f78defSmrg
13118a4f78defSmrgint fnord () { return 42; }
13119a4f78defSmrgint main ()
13120a4f78defSmrg{
13121a4f78defSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13122a4f78defSmrg  int status = $lt_dlunknown;
13123a4f78defSmrg
13124a4f78defSmrg  if (self)
13125a4f78defSmrg    {
13126a4f78defSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13127a4f78defSmrg      else
13128a4f78defSmrg        {
13129a4f78defSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13130a4f78defSmrg          else puts (dlerror ());
13131a4f78defSmrg	}
13132a4f78defSmrg      /* dlclose (self); */
13133a4f78defSmrg    }
13134a4f78defSmrg  else
13135a4f78defSmrg    puts (dlerror ());
13136a4f78defSmrg
13137a4f78defSmrg  return status;
13138a4f78defSmrg}
13139a4f78defSmrg_LT_EOF
13140a4f78defSmrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13141a4f78defSmrg  (eval $ac_link) 2>&5
13142a4f78defSmrg  ac_status=$?
13143a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144a4f78defSmrg  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13145a4f78defSmrg    (./conftest; exit; ) >&5 2>/dev/null
13146a4f78defSmrg    lt_status=$?
13147a4f78defSmrg    case x$lt_status in
13148a4f78defSmrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13149a4f78defSmrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13150a4f78defSmrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13151a4f78defSmrg    esac
13152a4f78defSmrg  else :
13153a4f78defSmrg    # compilation failed
13154a4f78defSmrg    lt_cv_dlopen_self_static=no
13155a4f78defSmrg  fi
13156a4f78defSmrgfi
13157a4f78defSmrgrm -fr conftest*
13158a4f78defSmrg
13159a4f78defSmrg
13160a4f78defSmrgfi
13161a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13162a4f78defSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
13163a4f78defSmrg    fi
13164a4f78defSmrg
13165a4f78defSmrg    CPPFLAGS=$save_CPPFLAGS
13166a4f78defSmrg    LDFLAGS=$save_LDFLAGS
13167a4f78defSmrg    LIBS=$save_LIBS
13168a4f78defSmrg    ;;
13169a4f78defSmrg  esac
13170a4f78defSmrg
13171a4f78defSmrg  case $lt_cv_dlopen_self in
13172a4f78defSmrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13173a4f78defSmrg  *) enable_dlopen_self=unknown ;;
13174a4f78defSmrg  esac
13175a4f78defSmrg
13176a4f78defSmrg  case $lt_cv_dlopen_self_static in
13177a4f78defSmrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13178a4f78defSmrg  *) enable_dlopen_self_static=unknown ;;
13179a4f78defSmrg  esac
13180a4f78defSmrgfi
13181a4f78defSmrg
13182a4f78defSmrg
13183a4f78defSmrg
13184a4f78defSmrg
13185a4f78defSmrg
13186a4f78defSmrg
13187a4f78defSmrg
13188a4f78defSmrg
13189a4f78defSmrg
13190a4f78defSmrg
13191a4f78defSmrg
13192a4f78defSmrg
13193a4f78defSmrg
13194a4f78defSmrg
13195a4f78defSmrg
13196a4f78defSmrg
13197a4f78defSmrg
13198a4f78defSmrgstriplib=
13199a4f78defSmrgold_striplib=
13200a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13201a4f78defSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13202a4f78defSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13203a4f78defSmrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13204a4f78defSmrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13205a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13206a4f78defSmrg$as_echo "yes" >&6; }
13207a4f78defSmrgelse
13208a4f78defSmrg# FIXME - insert some real tests, host_os isn't really good enough
13209a4f78defSmrg  case $host_os in
13210a4f78defSmrg  darwin*)
13211a4f78defSmrg    if test -n "$STRIP"; then
13212a4f78defSmrg      striplib="$STRIP -x"
13213a4f78defSmrg      old_striplib="$STRIP -S"
13214a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13215a4f78defSmrg$as_echo "yes" >&6; }
13216a4f78defSmrg    else
13217a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218a4f78defSmrg$as_echo "no" >&6; }
13219a4f78defSmrg    fi
13220a4f78defSmrg    ;;
13221a4f78defSmrg  *)
13222a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223a4f78defSmrg$as_echo "no" >&6; }
13224a4f78defSmrg    ;;
13225a4f78defSmrg  esac
13226a4f78defSmrgfi
13227a4f78defSmrg
13228a4f78defSmrg
13229a4f78defSmrg
13230a4f78defSmrg
13231a4f78defSmrg
13232a4f78defSmrg
13233a4f78defSmrg
13234a4f78defSmrg
13235a4f78defSmrg
13236a4f78defSmrg
13237a4f78defSmrg
13238a4f78defSmrg
13239a4f78defSmrg  # Report what library types will actually be built
13240a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13241a4f78defSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13242a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13243a4f78defSmrg$as_echo "$can_build_shared" >&6; }
13244a4f78defSmrg
13245a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13246a4f78defSmrg$as_echo_n "checking whether to build shared libraries... " >&6; }
13247a4f78defSmrg  test no = "$can_build_shared" && enable_shared=no
13248a4f78defSmrg
13249a4f78defSmrg  # On AIX, shared libraries and static libraries use the same namespace, and
13250a4f78defSmrg  # are all built from PIC.
13251a4f78defSmrg  case $host_os in
13252a4f78defSmrg  aix3*)
13253a4f78defSmrg    test yes = "$enable_shared" && enable_static=no
13254a4f78defSmrg    if test -n "$RANLIB"; then
13255a4f78defSmrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13256a4f78defSmrg      postinstall_cmds='$RANLIB $lib'
13257a4f78defSmrg    fi
13258a4f78defSmrg    ;;
13259a4f78defSmrg
13260a4f78defSmrg  aix[4-9]*)
13261a4f78defSmrg    if test ia64 != "$host_cpu"; then
13262a4f78defSmrg      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13263a4f78defSmrg      yes,aix,yes) ;;			# shared object as lib.so file only
13264a4f78defSmrg      yes,svr4,*) ;;			# shared object as lib.so archive member only
13265a4f78defSmrg      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13266a4f78defSmrg      esac
13267a4f78defSmrg    fi
13268a4f78defSmrg    ;;
13269a4f78defSmrg  esac
13270a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13271a4f78defSmrg$as_echo "$enable_shared" >&6; }
13272a4f78defSmrg
13273a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13274a4f78defSmrg$as_echo_n "checking whether to build static libraries... " >&6; }
13275a4f78defSmrg  # Make sure either enable_shared or enable_static is yes.
13276a4f78defSmrg  test yes = "$enable_shared" || enable_static=yes
13277a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13278a4f78defSmrg$as_echo "$enable_static" >&6; }
13279a4f78defSmrg
13280a4f78defSmrg
13281a4f78defSmrg
13282a4f78defSmrg
13283a4f78defSmrgfi
13284a4f78defSmrgac_ext=c
13285a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
13286a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
13289a4f78defSmrg
13290a4f78defSmrgCC=$lt_save_CC
13291a4f78defSmrg
13292a4f78defSmrg      if test -n "$CXX" && ( test no != "$CXX" &&
13293a4f78defSmrg    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13294a4f78defSmrg    (test g++ != "$CXX"))); then
13295a4f78defSmrg  ac_ext=cpp
13296a4f78defSmrgac_cpp='$CXXCPP $CPPFLAGS'
13297a4f78defSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13298a4f78defSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13299a4f78defSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13300a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13301a4f78defSmrg$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13302a4f78defSmrgif test -z "$CXXCPP"; then
13303a4f78defSmrg  if ${ac_cv_prog_CXXCPP+:} false; then :
13304a4f78defSmrg  $as_echo_n "(cached) " >&6
13305a4f78defSmrgelse
13306a4f78defSmrg      # Double quotes because CXXCPP needs to be expanded
13307a4f78defSmrg    for CXXCPP in "$CXX -E" "/lib/cpp"
13308a4f78defSmrg    do
13309a4f78defSmrg      ac_preproc_ok=false
13310a4f78defSmrgfor ac_cxx_preproc_warn_flag in '' yes
13311a4f78defSmrgdo
13312a4f78defSmrg  # Use a header file that comes with gcc, so configuring glibc
13313a4f78defSmrg  # with a fresh cross-compiler works.
13314a4f78defSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315a4f78defSmrg  # <limits.h> exists even on freestanding compilers.
13316a4f78defSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
13317a4f78defSmrg  # not just through cpp. "Syntax error" is here to catch this case.
13318a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319a4f78defSmrg/* end confdefs.h.  */
13320a4f78defSmrg#ifdef __STDC__
13321a4f78defSmrg# include <limits.h>
13322a4f78defSmrg#else
13323a4f78defSmrg# include <assert.h>
13324a4f78defSmrg#endif
13325a4f78defSmrg		     Syntax error
13326a4f78defSmrg_ACEOF
13327a4f78defSmrgif ac_fn_cxx_try_cpp "$LINENO"; then :
13328a4f78defSmrg
13329a4f78defSmrgelse
13330a4f78defSmrg  # Broken: fails on valid input.
13331a4f78defSmrgcontinue
13332a4f78defSmrgfi
13333a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
13334a4f78defSmrg
13335a4f78defSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
13336a4f78defSmrg  # can be detected and how.
13337a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338a4f78defSmrg/* end confdefs.h.  */
13339a4f78defSmrg#include <ac_nonexistent.h>
13340a4f78defSmrg_ACEOF
13341a4f78defSmrgif ac_fn_cxx_try_cpp "$LINENO"; then :
13342a4f78defSmrg  # Broken: success on invalid input.
13343a4f78defSmrgcontinue
13344a4f78defSmrgelse
13345a4f78defSmrg  # Passes both tests.
13346a4f78defSmrgac_preproc_ok=:
13347a4f78defSmrgbreak
13348a4f78defSmrgfi
13349a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
13350a4f78defSmrg
13351a4f78defSmrgdone
13352a4f78defSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13353a4f78defSmrgrm -f conftest.i conftest.err conftest.$ac_ext
13354a4f78defSmrgif $ac_preproc_ok; then :
13355a4f78defSmrg  break
13356a4f78defSmrgfi
13357a4f78defSmrg
13358a4f78defSmrg    done
13359a4f78defSmrg    ac_cv_prog_CXXCPP=$CXXCPP
13360a4f78defSmrg
13361a4f78defSmrgfi
13362a4f78defSmrg  CXXCPP=$ac_cv_prog_CXXCPP
13363a4f78defSmrgelse
13364a4f78defSmrg  ac_cv_prog_CXXCPP=$CXXCPP
13365a4f78defSmrgfi
13366a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13367a4f78defSmrg$as_echo "$CXXCPP" >&6; }
13368a4f78defSmrgac_preproc_ok=false
13369a4f78defSmrgfor ac_cxx_preproc_warn_flag in '' yes
13370a4f78defSmrgdo
13371a4f78defSmrg  # Use a header file that comes with gcc, so configuring glibc
13372a4f78defSmrg  # with a fresh cross-compiler works.
13373a4f78defSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13374a4f78defSmrg  # <limits.h> exists even on freestanding compilers.
13375a4f78defSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
13376a4f78defSmrg  # not just through cpp. "Syntax error" is here to catch this case.
13377a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378a4f78defSmrg/* end confdefs.h.  */
13379a4f78defSmrg#ifdef __STDC__
13380a4f78defSmrg# include <limits.h>
13381a4f78defSmrg#else
13382a4f78defSmrg# include <assert.h>
13383a4f78defSmrg#endif
13384a4f78defSmrg		     Syntax error
13385a4f78defSmrg_ACEOF
13386a4f78defSmrgif ac_fn_cxx_try_cpp "$LINENO"; then :
13387a4f78defSmrg
13388a4f78defSmrgelse
13389a4f78defSmrg  # Broken: fails on valid input.
13390a4f78defSmrgcontinue
13391a4f78defSmrgfi
13392a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
13393a4f78defSmrg
13394a4f78defSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
13395a4f78defSmrg  # can be detected and how.
13396a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397a4f78defSmrg/* end confdefs.h.  */
13398a4f78defSmrg#include <ac_nonexistent.h>
13399a4f78defSmrg_ACEOF
13400a4f78defSmrgif ac_fn_cxx_try_cpp "$LINENO"; then :
13401a4f78defSmrg  # Broken: success on invalid input.
13402a4f78defSmrgcontinue
13403a4f78defSmrgelse
13404a4f78defSmrg  # Passes both tests.
13405a4f78defSmrgac_preproc_ok=:
13406a4f78defSmrgbreak
13407a4f78defSmrgfi
13408a4f78defSmrgrm -f conftest.err conftest.i conftest.$ac_ext
13409a4f78defSmrg
13410a4f78defSmrgdone
13411a4f78defSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13412a4f78defSmrgrm -f conftest.i conftest.err conftest.$ac_ext
13413a4f78defSmrgif $ac_preproc_ok; then :
13414a4f78defSmrg
13415a4f78defSmrgelse
13416a4f78defSmrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13417a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13418a4f78defSmrgas_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13419a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
13420a4f78defSmrgfi
13421a4f78defSmrg
13422a4f78defSmrgac_ext=c
13423a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
13424a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13425a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13426a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
13427a4f78defSmrg
13428a4f78defSmrgelse
13429a4f78defSmrg  _lt_caught_CXX_error=yes
13430a4f78defSmrgfi
13431a4f78defSmrg
13432a4f78defSmrgac_ext=cpp
13433a4f78defSmrgac_cpp='$CXXCPP $CPPFLAGS'
13434a4f78defSmrgac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13435a4f78defSmrgac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13436a4f78defSmrgac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13437a4f78defSmrg
13438a4f78defSmrgarchive_cmds_need_lc_CXX=no
13439a4f78defSmrgallow_undefined_flag_CXX=
13440a4f78defSmrgalways_export_symbols_CXX=no
13441a4f78defSmrgarchive_expsym_cmds_CXX=
13442a4f78defSmrgcompiler_needs_object_CXX=no
13443a4f78defSmrgexport_dynamic_flag_spec_CXX=
13444a4f78defSmrghardcode_direct_CXX=no
13445a4f78defSmrghardcode_direct_absolute_CXX=no
13446a4f78defSmrghardcode_libdir_flag_spec_CXX=
13447a4f78defSmrghardcode_libdir_separator_CXX=
13448a4f78defSmrghardcode_minus_L_CXX=no
13449a4f78defSmrghardcode_shlibpath_var_CXX=unsupported
13450a4f78defSmrghardcode_automatic_CXX=no
13451a4f78defSmrginherit_rpath_CXX=no
13452a4f78defSmrgmodule_cmds_CXX=
13453a4f78defSmrgmodule_expsym_cmds_CXX=
13454a4f78defSmrglink_all_deplibs_CXX=unknown
13455a4f78defSmrgold_archive_cmds_CXX=$old_archive_cmds
13456a4f78defSmrgreload_flag_CXX=$reload_flag
13457a4f78defSmrgreload_cmds_CXX=$reload_cmds
13458a4f78defSmrgno_undefined_flag_CXX=
13459a4f78defSmrgwhole_archive_flag_spec_CXX=
13460a4f78defSmrgenable_shared_with_static_runtimes_CXX=no
13461a4f78defSmrg
13462a4f78defSmrg# Source file extension for C++ test sources.
13463a4f78defSmrgac_ext=cpp
13464a4f78defSmrg
13465a4f78defSmrg# Object file extension for compiled C++ test sources.
13466a4f78defSmrgobjext=o
13467a4f78defSmrgobjext_CXX=$objext
13468a4f78defSmrg
13469a4f78defSmrg# No sense in running all these tests if we already determined that
13470a4f78defSmrg# the CXX compiler isn't working.  Some variables (like enable_shared)
13471a4f78defSmrg# are currently assumed to apply to all compilers on this platform,
13472a4f78defSmrg# and will be corrupted by setting them based on a non-working compiler.
13473a4f78defSmrgif test yes != "$_lt_caught_CXX_error"; then
13474a4f78defSmrg  # Code to be used in simple compile tests
13475a4f78defSmrg  lt_simple_compile_test_code="int some_variable = 0;"
13476a4f78defSmrg
13477a4f78defSmrg  # Code to be used in simple link tests
13478a4f78defSmrg  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13479a4f78defSmrg
13480a4f78defSmrg  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13481a4f78defSmrg
13482a4f78defSmrg
13483a4f78defSmrg
13484a4f78defSmrg
13485a4f78defSmrg
13486a4f78defSmrg
13487a4f78defSmrg# If no C compiler was specified, use CC.
13488a4f78defSmrgLTCC=${LTCC-"$CC"}
13489a4f78defSmrg
13490a4f78defSmrg# If no C compiler flags were specified, use CFLAGS.
13491a4f78defSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13492a4f78defSmrg
13493a4f78defSmrg# Allow CC to be a program name with arguments.
13494a4f78defSmrgcompiler=$CC
13495a4f78defSmrg
13496a4f78defSmrg
13497a4f78defSmrg  # save warnings/boilerplate of simple test code
13498a4f78defSmrg  ac_outfile=conftest.$ac_objext
13499a4f78defSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
13500a4f78defSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13501a4f78defSmrg_lt_compiler_boilerplate=`cat conftest.err`
13502a4f78defSmrg$RM conftest*
13503a4f78defSmrg
13504a4f78defSmrg  ac_outfile=conftest.$ac_objext
13505a4f78defSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
13506a4f78defSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13507a4f78defSmrg_lt_linker_boilerplate=`cat conftest.err`
13508a4f78defSmrg$RM -r conftest*
13509a4f78defSmrg
13510a4f78defSmrg
13511a4f78defSmrg  # Allow CC to be a program name with arguments.
13512a4f78defSmrg  lt_save_CC=$CC
13513a4f78defSmrg  lt_save_CFLAGS=$CFLAGS
13514a4f78defSmrg  lt_save_LD=$LD
13515a4f78defSmrg  lt_save_GCC=$GCC
13516a4f78defSmrg  GCC=$GXX
13517a4f78defSmrg  lt_save_with_gnu_ld=$with_gnu_ld
13518a4f78defSmrg  lt_save_path_LD=$lt_cv_path_LD
13519a4f78defSmrg  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13520a4f78defSmrg    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13521a4f78defSmrg  else
13522a4f78defSmrg    $as_unset lt_cv_prog_gnu_ld
13523a4f78defSmrg  fi
13524a4f78defSmrg  if test -n "${lt_cv_path_LDCXX+set}"; then
13525a4f78defSmrg    lt_cv_path_LD=$lt_cv_path_LDCXX
13526a4f78defSmrg  else
13527a4f78defSmrg    $as_unset lt_cv_path_LD
13528a4f78defSmrg  fi
13529a4f78defSmrg  test -z "${LDCXX+set}" || LD=$LDCXX
13530a4f78defSmrg  CC=${CXX-"c++"}
13531a4f78defSmrg  CFLAGS=$CXXFLAGS
13532a4f78defSmrg  compiler=$CC
13533a4f78defSmrg  compiler_CXX=$CC
13534a4f78defSmrg  func_cc_basename $compiler
13535a4f78defSmrgcc_basename=$func_cc_basename_result
13536a4f78defSmrg
13537a4f78defSmrg
13538a4f78defSmrg  if test -n "$compiler"; then
13539a4f78defSmrg    # We don't want -fno-exception when compiling C++ code, so set the
13540a4f78defSmrg    # no_builtin_flag separately
13541a4f78defSmrg    if test yes = "$GXX"; then
13542a4f78defSmrg      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13543a4f78defSmrg    else
13544a4f78defSmrg      lt_prog_compiler_no_builtin_flag_CXX=
13545a4f78defSmrg    fi
13546a4f78defSmrg
13547a4f78defSmrg    if test yes = "$GXX"; then
13548a4f78defSmrg      # Set up default GNU C++ configuration
13549a4f78defSmrg
13550a4f78defSmrg
13551a4f78defSmrg
13552a4f78defSmrg# Check whether --with-gnu-ld was given.
13553a4f78defSmrgif test "${with_gnu_ld+set}" = set; then :
13554a4f78defSmrg  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13555a4f78defSmrgelse
13556a4f78defSmrg  with_gnu_ld=no
13557a4f78defSmrgfi
13558a4f78defSmrg
13559a4f78defSmrgac_prog=ld
13560a4f78defSmrgif test yes = "$GCC"; then
13561a4f78defSmrg  # Check if gcc -print-prog-name=ld gives a path.
13562a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13563a4f78defSmrg$as_echo_n "checking for ld used by $CC... " >&6; }
13564a4f78defSmrg  case $host in
13565a4f78defSmrg  *-*-mingw*)
13566a4f78defSmrg    # gcc leaves a trailing carriage return, which upsets mingw
13567a4f78defSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13568a4f78defSmrg  *)
13569a4f78defSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13570a4f78defSmrg  esac
13571a4f78defSmrg  case $ac_prog in
13572a4f78defSmrg    # Accept absolute paths.
13573a4f78defSmrg    [\\/]* | ?:[\\/]*)
13574a4f78defSmrg      re_direlt='/[^/][^/]*/\.\./'
13575a4f78defSmrg      # Canonicalize the pathname of ld
13576a4f78defSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13577a4f78defSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13578a4f78defSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13579a4f78defSmrg      done
13580a4f78defSmrg      test -z "$LD" && LD=$ac_prog
13581a4f78defSmrg      ;;
13582a4f78defSmrg  "")
13583a4f78defSmrg    # If it fails, then pretend we aren't using GCC.
13584a4f78defSmrg    ac_prog=ld
13585a4f78defSmrg    ;;
13586a4f78defSmrg  *)
13587a4f78defSmrg    # If it is relative, then search for the first ld in PATH.
13588a4f78defSmrg    with_gnu_ld=unknown
13589a4f78defSmrg    ;;
13590a4f78defSmrg  esac
13591a4f78defSmrgelif test yes = "$with_gnu_ld"; then
13592a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13593a4f78defSmrg$as_echo_n "checking for GNU ld... " >&6; }
13594a4f78defSmrgelse
13595a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13596a4f78defSmrg$as_echo_n "checking for non-GNU ld... " >&6; }
13597a4f78defSmrgfi
13598a4f78defSmrgif ${lt_cv_path_LD+:} false; then :
13599a4f78defSmrg  $as_echo_n "(cached) " >&6
13600a4f78defSmrgelse
13601a4f78defSmrg  if test -z "$LD"; then
13602a4f78defSmrg  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13603a4f78defSmrg  for ac_dir in $PATH; do
13604a4f78defSmrg    IFS=$lt_save_ifs
13605a4f78defSmrg    test -z "$ac_dir" && ac_dir=.
13606a4f78defSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13607a4f78defSmrg      lt_cv_path_LD=$ac_dir/$ac_prog
13608a4f78defSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
13609a4f78defSmrg      # but apparently some variants of GNU ld only accept -v.
13610a4f78defSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
13611a4f78defSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13612a4f78defSmrg      *GNU* | *'with BFD'*)
13613a4f78defSmrg	test no != "$with_gnu_ld" && break
13614a4f78defSmrg	;;
13615a4f78defSmrg      *)
13616a4f78defSmrg	test yes != "$with_gnu_ld" && break
13617a4f78defSmrg	;;
13618a4f78defSmrg      esac
13619a4f78defSmrg    fi
13620a4f78defSmrg  done
13621a4f78defSmrg  IFS=$lt_save_ifs
13622a4f78defSmrgelse
13623a4f78defSmrg  lt_cv_path_LD=$LD # Let the user override the test with a path.
13624a4f78defSmrgfi
13625a4f78defSmrgfi
13626a4f78defSmrg
13627a4f78defSmrgLD=$lt_cv_path_LD
13628a4f78defSmrgif test -n "$LD"; then
13629a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13630a4f78defSmrg$as_echo "$LD" >&6; }
13631a4f78defSmrgelse
13632a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633a4f78defSmrg$as_echo "no" >&6; }
13634a4f78defSmrgfi
13635a4f78defSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13636a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13637a4f78defSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13638a4f78defSmrgif ${lt_cv_prog_gnu_ld+:} false; then :
13639a4f78defSmrg  $as_echo_n "(cached) " >&6
13640a4f78defSmrgelse
13641a4f78defSmrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13642a4f78defSmrgcase `$LD -v 2>&1 </dev/null` in
13643a4f78defSmrg*GNU* | *'with BFD'*)
13644a4f78defSmrg  lt_cv_prog_gnu_ld=yes
13645a4f78defSmrg  ;;
13646a4f78defSmrg*)
13647a4f78defSmrg  lt_cv_prog_gnu_ld=no
13648a4f78defSmrg  ;;
13649a4f78defSmrgesac
13650a4f78defSmrgfi
13651a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13652a4f78defSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13653a4f78defSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
13654a4f78defSmrg
13655a4f78defSmrg
13656a4f78defSmrg
13657a4f78defSmrg
13658a4f78defSmrg
13659a4f78defSmrg
13660a4f78defSmrg
13661a4f78defSmrg      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13662a4f78defSmrg      # archiving commands below assume that GNU ld is being used.
13663a4f78defSmrg      if test yes = "$with_gnu_ld"; then
13664a4f78defSmrg        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13665a4f78defSmrg        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13666a4f78defSmrg
13667a4f78defSmrg        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13668a4f78defSmrg        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13669a4f78defSmrg
13670a4f78defSmrg        # If archive_cmds runs LD, not CC, wlarc should be empty
13671a4f78defSmrg        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13672a4f78defSmrg        #     investigate it a little bit more. (MM)
13673a4f78defSmrg        wlarc='$wl'
13674a4f78defSmrg
13675a4f78defSmrg        # ancient GNU ld didn't support --whole-archive et. al.
13676a4f78defSmrg        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13677a4f78defSmrg	  $GREP 'no-whole-archive' > /dev/null; then
13678a4f78defSmrg          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13679a4f78defSmrg        else
13680a4f78defSmrg          whole_archive_flag_spec_CXX=
13681a4f78defSmrg        fi
13682a4f78defSmrg      else
13683a4f78defSmrg        with_gnu_ld=no
13684a4f78defSmrg        wlarc=
13685a4f78defSmrg
13686a4f78defSmrg        # A generic and very simple default shared library creation
13687a4f78defSmrg        # command for GNU C++ for the case where it uses the native
13688a4f78defSmrg        # linker, instead of GNU ld.  If possible, this setting should
13689a4f78defSmrg        # overridden to take advantage of the native linker features on
13690a4f78defSmrg        # the platform it is being used on.
13691a4f78defSmrg        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13692a4f78defSmrg      fi
13693a4f78defSmrg
13694a4f78defSmrg      # Commands to make compiler produce verbose output that lists
13695a4f78defSmrg      # what "hidden" libraries, object files and flags are used when
13696a4f78defSmrg      # linking a shared library.
13697a4f78defSmrg      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13698a4f78defSmrg
13699a4f78defSmrg    else
13700a4f78defSmrg      GXX=no
13701a4f78defSmrg      with_gnu_ld=no
13702a4f78defSmrg      wlarc=
13703a4f78defSmrg    fi
13704a4f78defSmrg
13705a4f78defSmrg    # PORTME: fill in a description of your system's C++ link characteristics
13706a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13707a4f78defSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13708a4f78defSmrg    ld_shlibs_CXX=yes
13709a4f78defSmrg    case $host_os in
13710a4f78defSmrg      aix3*)
13711a4f78defSmrg        # FIXME: insert proper C++ library support
13712a4f78defSmrg        ld_shlibs_CXX=no
13713a4f78defSmrg        ;;
13714a4f78defSmrg      aix[4-9]*)
13715a4f78defSmrg        if test ia64 = "$host_cpu"; then
13716a4f78defSmrg          # On IA64, the linker does run time linking by default, so we don't
13717a4f78defSmrg          # have to do anything special.
13718a4f78defSmrg          aix_use_runtimelinking=no
13719a4f78defSmrg          exp_sym_flag='-Bexport'
13720a4f78defSmrg          no_entry_flag=
13721a4f78defSmrg        else
13722a4f78defSmrg          aix_use_runtimelinking=no
13723a4f78defSmrg
13724a4f78defSmrg          # Test if we are trying to use run time linking or normal
13725a4f78defSmrg          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13726a4f78defSmrg          # have runtime linking enabled, and use it for executables.
13727a4f78defSmrg          # For shared libraries, we enable/disable runtime linking
13728a4f78defSmrg          # depending on the kind of the shared library created -
13729a4f78defSmrg          # when "with_aix_soname,aix_use_runtimelinking" is:
13730a4f78defSmrg          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13731a4f78defSmrg          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13732a4f78defSmrg          #            lib.a           static archive
13733a4f78defSmrg          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13734a4f78defSmrg          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13735a4f78defSmrg          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13736a4f78defSmrg          #            lib.a(lib.so.V) shared, rtl:no
13737a4f78defSmrg          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13738a4f78defSmrg          #            lib.a           static archive
13739a4f78defSmrg          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13740a4f78defSmrg	    for ld_flag in $LDFLAGS; do
13741a4f78defSmrg	      case $ld_flag in
13742a4f78defSmrg	      *-brtl*)
13743a4f78defSmrg	        aix_use_runtimelinking=yes
13744a4f78defSmrg	        break
13745a4f78defSmrg	        ;;
13746a4f78defSmrg	      esac
13747a4f78defSmrg	    done
13748a4f78defSmrg	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13749a4f78defSmrg	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13750a4f78defSmrg	      # so we don't have lib.a shared libs to link our executables.
13751a4f78defSmrg	      # We have to force runtime linking in this case.
13752a4f78defSmrg	      aix_use_runtimelinking=yes
13753a4f78defSmrg	      LDFLAGS="$LDFLAGS -Wl,-brtl"
13754a4f78defSmrg	    fi
13755a4f78defSmrg	    ;;
13756a4f78defSmrg          esac
13757a4f78defSmrg
13758a4f78defSmrg          exp_sym_flag='-bexport'
13759a4f78defSmrg          no_entry_flag='-bnoentry'
13760a4f78defSmrg        fi
13761a4f78defSmrg
13762a4f78defSmrg        # When large executables or shared objects are built, AIX ld can
13763a4f78defSmrg        # have problems creating the table of contents.  If linking a library
13764a4f78defSmrg        # or program results in "error TOC overflow" add -mminimal-toc to
13765a4f78defSmrg        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13766a4f78defSmrg        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13767a4f78defSmrg
13768a4f78defSmrg        archive_cmds_CXX=''
13769a4f78defSmrg        hardcode_direct_CXX=yes
13770a4f78defSmrg        hardcode_direct_absolute_CXX=yes
13771a4f78defSmrg        hardcode_libdir_separator_CXX=':'
13772a4f78defSmrg        link_all_deplibs_CXX=yes
13773a4f78defSmrg        file_list_spec_CXX='$wl-f,'
13774a4f78defSmrg        case $with_aix_soname,$aix_use_runtimelinking in
13775a4f78defSmrg        aix,*) ;;	# no import file
13776a4f78defSmrg        svr4,* | *,yes) # use import file
13777a4f78defSmrg          # The Import File defines what to hardcode.
13778a4f78defSmrg          hardcode_direct_CXX=no
13779a4f78defSmrg          hardcode_direct_absolute_CXX=no
13780a4f78defSmrg          ;;
13781a4f78defSmrg        esac
13782a4f78defSmrg
13783a4f78defSmrg        if test yes = "$GXX"; then
13784a4f78defSmrg          case $host_os in aix4.[012]|aix4.[012].*)
13785a4f78defSmrg          # We only want to do this on AIX 4.2 and lower, the check
13786a4f78defSmrg          # below for broken collect2 doesn't work under 4.3+
13787a4f78defSmrg	  collect2name=`$CC -print-prog-name=collect2`
13788a4f78defSmrg	  if test -f "$collect2name" &&
13789a4f78defSmrg	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13790a4f78defSmrg	  then
13791a4f78defSmrg	    # We have reworked collect2
13792a4f78defSmrg	    :
13793a4f78defSmrg	  else
13794a4f78defSmrg	    # We have old collect2
13795a4f78defSmrg	    hardcode_direct_CXX=unsupported
13796a4f78defSmrg	    # It fails to find uninstalled libraries when the uninstalled
13797a4f78defSmrg	    # path is not listed in the libpath.  Setting hardcode_minus_L
13798a4f78defSmrg	    # to unsupported forces relinking
13799a4f78defSmrg	    hardcode_minus_L_CXX=yes
13800a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13801a4f78defSmrg	    hardcode_libdir_separator_CXX=
13802a4f78defSmrg	  fi
13803a4f78defSmrg          esac
13804a4f78defSmrg          shared_flag='-shared'
13805a4f78defSmrg	  if test yes = "$aix_use_runtimelinking"; then
13806a4f78defSmrg	    shared_flag=$shared_flag' $wl-G'
13807a4f78defSmrg	  fi
13808a4f78defSmrg	  # Need to ensure runtime linking is disabled for the traditional
13809a4f78defSmrg	  # shared library, or the linker may eventually find shared libraries
13810a4f78defSmrg	  # /with/ Import File - we do not want to mix them.
13811a4f78defSmrg	  shared_flag_aix='-shared'
13812a4f78defSmrg	  shared_flag_svr4='-shared $wl-G'
13813a4f78defSmrg        else
13814a4f78defSmrg          # not using gcc
13815a4f78defSmrg          if test ia64 = "$host_cpu"; then
13816a4f78defSmrg	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13817a4f78defSmrg	  # chokes on -Wl,-G. The following line is correct:
13818a4f78defSmrg	  shared_flag='-G'
13819a4f78defSmrg          else
13820a4f78defSmrg	    if test yes = "$aix_use_runtimelinking"; then
13821a4f78defSmrg	      shared_flag='$wl-G'
13822a4f78defSmrg	    else
13823a4f78defSmrg	      shared_flag='$wl-bM:SRE'
13824a4f78defSmrg	    fi
13825a4f78defSmrg	    shared_flag_aix='$wl-bM:SRE'
13826a4f78defSmrg	    shared_flag_svr4='$wl-G'
13827a4f78defSmrg          fi
13828a4f78defSmrg        fi
13829a4f78defSmrg
13830a4f78defSmrg        export_dynamic_flag_spec_CXX='$wl-bexpall'
13831a4f78defSmrg        # It seems that -bexpall does not export symbols beginning with
13832a4f78defSmrg        # underscore (_), so it is better to generate a list of symbols to
13833a4f78defSmrg	# export.
13834a4f78defSmrg        always_export_symbols_CXX=yes
13835a4f78defSmrg	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13836a4f78defSmrg          # Warning - without using the other runtime loading flags (-brtl),
13837a4f78defSmrg          # -berok will link without error, but may produce a broken library.
13838a4f78defSmrg          # The "-G" linker flag allows undefined symbols.
13839a4f78defSmrg          no_undefined_flag_CXX='-bernotok'
13840a4f78defSmrg          # Determine the default libpath from the value encoded in an empty
13841a4f78defSmrg          # executable.
13842a4f78defSmrg          if test set = "${lt_cv_aix_libpath+set}"; then
13843a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath
13844a4f78defSmrgelse
13845a4f78defSmrg  if ${lt_cv_aix_libpath__CXX+:} false; then :
13846a4f78defSmrg  $as_echo_n "(cached) " >&6
13847a4f78defSmrgelse
13848a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849a4f78defSmrg/* end confdefs.h.  */
13850a4f78defSmrg
13851a4f78defSmrgint
13852a4f78defSmrgmain ()
13853a4f78defSmrg{
13854a4f78defSmrg
13855a4f78defSmrg  ;
13856a4f78defSmrg  return 0;
13857a4f78defSmrg}
13858a4f78defSmrg_ACEOF
13859a4f78defSmrgif ac_fn_cxx_try_link "$LINENO"; then :
13860a4f78defSmrg
13861a4f78defSmrg  lt_aix_libpath_sed='
13862a4f78defSmrg      /Import File Strings/,/^$/ {
13863a4f78defSmrg	  /^0/ {
13864a4f78defSmrg	      s/^0  *\([^ ]*\) *$/\1/
13865a4f78defSmrg	      p
13866a4f78defSmrg	  }
13867a4f78defSmrg      }'
13868a4f78defSmrg  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13869a4f78defSmrg  # Check for a 64-bit object if we didn't find anything.
13870a4f78defSmrg  if test -z "$lt_cv_aix_libpath__CXX"; then
13871a4f78defSmrg    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13872a4f78defSmrg  fi
13873a4f78defSmrgfi
13874a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
13875a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
13876a4f78defSmrg  if test -z "$lt_cv_aix_libpath__CXX"; then
13877a4f78defSmrg    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13878a4f78defSmrg  fi
13879a4f78defSmrg
13880a4f78defSmrgfi
13881a4f78defSmrg
13882a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath__CXX
13883a4f78defSmrgfi
13884a4f78defSmrg
13885a4f78defSmrg          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13886a4f78defSmrg
13887a4f78defSmrg          archive_expsym_cmds_CXX='$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
13888a4f78defSmrg        else
13889a4f78defSmrg          if test ia64 = "$host_cpu"; then
13890a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13891a4f78defSmrg	    allow_undefined_flag_CXX="-z nodefs"
13892a4f78defSmrg	    archive_expsym_cmds_CXX="\$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"
13893a4f78defSmrg          else
13894a4f78defSmrg	    # Determine the default libpath from the value encoded in an
13895a4f78defSmrg	    # empty executable.
13896a4f78defSmrg	    if test set = "${lt_cv_aix_libpath+set}"; then
13897a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath
13898a4f78defSmrgelse
13899a4f78defSmrg  if ${lt_cv_aix_libpath__CXX+:} false; then :
13900a4f78defSmrg  $as_echo_n "(cached) " >&6
13901a4f78defSmrgelse
13902a4f78defSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903a4f78defSmrg/* end confdefs.h.  */
13904a4f78defSmrg
13905a4f78defSmrgint
13906a4f78defSmrgmain ()
13907a4f78defSmrg{
13908a4f78defSmrg
13909a4f78defSmrg  ;
13910a4f78defSmrg  return 0;
13911a4f78defSmrg}
13912a4f78defSmrg_ACEOF
13913a4f78defSmrgif ac_fn_cxx_try_link "$LINENO"; then :
13914a4f78defSmrg
13915a4f78defSmrg  lt_aix_libpath_sed='
13916a4f78defSmrg      /Import File Strings/,/^$/ {
13917a4f78defSmrg	  /^0/ {
13918a4f78defSmrg	      s/^0  *\([^ ]*\) *$/\1/
13919a4f78defSmrg	      p
13920a4f78defSmrg	  }
13921a4f78defSmrg      }'
13922a4f78defSmrg  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13923a4f78defSmrg  # Check for a 64-bit object if we didn't find anything.
13924a4f78defSmrg  if test -z "$lt_cv_aix_libpath__CXX"; then
13925a4f78defSmrg    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13926a4f78defSmrg  fi
13927a4f78defSmrgfi
13928a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
13929a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
13930a4f78defSmrg  if test -z "$lt_cv_aix_libpath__CXX"; then
13931a4f78defSmrg    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13932a4f78defSmrg  fi
13933a4f78defSmrg
13934a4f78defSmrgfi
13935a4f78defSmrg
13936a4f78defSmrg  aix_libpath=$lt_cv_aix_libpath__CXX
13937a4f78defSmrgfi
13938a4f78defSmrg
13939a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13940a4f78defSmrg	    # Warning - without using the other run time loading flags,
13941a4f78defSmrg	    # -berok will link without error, but may produce a broken library.
13942a4f78defSmrg	    no_undefined_flag_CXX=' $wl-bernotok'
13943a4f78defSmrg	    allow_undefined_flag_CXX=' $wl-berok'
13944a4f78defSmrg	    if test yes = "$with_gnu_ld"; then
13945a4f78defSmrg	      # We only use this code for GNU lds that support --whole-archive.
13946a4f78defSmrg	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13947a4f78defSmrg	    else
13948a4f78defSmrg	      # Exported symbols can be pulled into shared objects from archives
13949a4f78defSmrg	      whole_archive_flag_spec_CXX='$convenience'
13950a4f78defSmrg	    fi
13951a4f78defSmrg	    archive_cmds_need_lc_CXX=yes
13952a4f78defSmrg	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13953a4f78defSmrg	    # -brtl affects multiple linker settings, -berok does not and is overridden later
13954a4f78defSmrg	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13955a4f78defSmrg	    if test svr4 != "$with_aix_soname"; then
13956a4f78defSmrg	      # This is similar to how AIX traditionally builds its shared
13957a4f78defSmrg	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13958a4f78defSmrg	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13959a4f78defSmrg	    fi
13960a4f78defSmrg	    if test aix != "$with_aix_soname"; then
13961a4f78defSmrg	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13962a4f78defSmrg	    else
13963a4f78defSmrg	      # used by -dlpreopen to get the symbols
13964a4f78defSmrg	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13965a4f78defSmrg	    fi
13966a4f78defSmrg	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13967a4f78defSmrg          fi
13968a4f78defSmrg        fi
13969a4f78defSmrg        ;;
13970a4f78defSmrg
13971a4f78defSmrg      beos*)
13972a4f78defSmrg	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13973a4f78defSmrg	  allow_undefined_flag_CXX=unsupported
13974a4f78defSmrg	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13975a4f78defSmrg	  # support --undefined.  This deserves some investigation.  FIXME
13976a4f78defSmrg	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13977a4f78defSmrg	else
13978a4f78defSmrg	  ld_shlibs_CXX=no
13979a4f78defSmrg	fi
13980a4f78defSmrg	;;
13981a4f78defSmrg
13982a4f78defSmrg      chorus*)
13983a4f78defSmrg        case $cc_basename in
13984a4f78defSmrg          *)
13985a4f78defSmrg	  # FIXME: insert proper C++ library support
13986a4f78defSmrg	  ld_shlibs_CXX=no
13987a4f78defSmrg	  ;;
13988a4f78defSmrg        esac
13989a4f78defSmrg        ;;
13990a4f78defSmrg
13991a4f78defSmrg      cygwin* | mingw* | pw32* | cegcc*)
13992a4f78defSmrg	case $GXX,$cc_basename in
13993a4f78defSmrg	,cl* | no,cl*)
13994a4f78defSmrg	  # Native MSVC
13995a4f78defSmrg	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13996a4f78defSmrg	  # no search path for DLLs.
13997a4f78defSmrg	  hardcode_libdir_flag_spec_CXX=' '
13998a4f78defSmrg	  allow_undefined_flag_CXX=unsupported
13999a4f78defSmrg	  always_export_symbols_CXX=yes
14000a4f78defSmrg	  file_list_spec_CXX='@'
14001a4f78defSmrg	  # Tell ltmain to make .lib files, not .a files.
14002a4f78defSmrg	  libext=lib
14003a4f78defSmrg	  # Tell ltmain to make .dll files, not .so files.
14004a4f78defSmrg	  shrext_cmds=.dll
14005a4f78defSmrg	  # FIXME: Setting linknames here is a bad hack.
14006a4f78defSmrg	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14007a4f78defSmrg	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14008a4f78defSmrg              cp "$export_symbols" "$output_objdir/$soname.def";
14009a4f78defSmrg              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14010a4f78defSmrg            else
14011a4f78defSmrg              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14012a4f78defSmrg            fi~
14013a4f78defSmrg            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14014a4f78defSmrg            linknames='
14015a4f78defSmrg	  # The linker will not automatically build a static lib if we build a DLL.
14016a4f78defSmrg	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14017a4f78defSmrg	  enable_shared_with_static_runtimes_CXX=yes
14018a4f78defSmrg	  # Don't use ranlib
14019a4f78defSmrg	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14020a4f78defSmrg	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14021a4f78defSmrg            lt_tool_outputfile="@TOOL_OUTPUT@"~
14022a4f78defSmrg            case $lt_outputfile in
14023a4f78defSmrg              *.exe|*.EXE) ;;
14024a4f78defSmrg              *)
14025a4f78defSmrg                lt_outputfile=$lt_outputfile.exe
14026a4f78defSmrg                lt_tool_outputfile=$lt_tool_outputfile.exe
14027a4f78defSmrg                ;;
14028a4f78defSmrg            esac~
14029a4f78defSmrg            func_to_tool_file "$lt_outputfile"~
14030a4f78defSmrg            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14031a4f78defSmrg              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14032a4f78defSmrg              $RM "$lt_outputfile.manifest";
14033a4f78defSmrg            fi'
14034a4f78defSmrg	  ;;
14035a4f78defSmrg	*)
14036a4f78defSmrg	  # g++
14037a4f78defSmrg	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14038a4f78defSmrg	  # as there is no search path for DLLs.
14039a4f78defSmrg	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14040a4f78defSmrg	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14041a4f78defSmrg	  allow_undefined_flag_CXX=unsupported
14042a4f78defSmrg	  always_export_symbols_CXX=no
14043a4f78defSmrg	  enable_shared_with_static_runtimes_CXX=yes
14044a4f78defSmrg
14045a4f78defSmrg	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14046a4f78defSmrg	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14047a4f78defSmrg	    # If the export-symbols file already is a .def file, use it as
14048a4f78defSmrg	    # is; otherwise, prepend EXPORTS...
14049a4f78defSmrg	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14050a4f78defSmrg              cp $export_symbols $output_objdir/$soname.def;
14051a4f78defSmrg            else
14052a4f78defSmrg              echo EXPORTS > $output_objdir/$soname.def;
14053a4f78defSmrg              cat $export_symbols >> $output_objdir/$soname.def;
14054a4f78defSmrg            fi~
14055a4f78defSmrg            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14056a4f78defSmrg	  else
14057a4f78defSmrg	    ld_shlibs_CXX=no
14058a4f78defSmrg	  fi
14059a4f78defSmrg	  ;;
14060a4f78defSmrg	esac
14061a4f78defSmrg	;;
14062a4f78defSmrg      darwin* | rhapsody*)
14063a4f78defSmrg
14064a4f78defSmrg
14065a4f78defSmrg  archive_cmds_need_lc_CXX=no
14066a4f78defSmrg  hardcode_direct_CXX=no
14067a4f78defSmrg  hardcode_automatic_CXX=yes
14068a4f78defSmrg  hardcode_shlibpath_var_CXX=unsupported
14069a4f78defSmrg  if test yes = "$lt_cv_ld_force_load"; then
14070a4f78defSmrg    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14071a4f78defSmrg
14072a4f78defSmrg  else
14073a4f78defSmrg    whole_archive_flag_spec_CXX=''
14074a4f78defSmrg  fi
14075a4f78defSmrg  link_all_deplibs_CXX=yes
14076a4f78defSmrg  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14077a4f78defSmrg  case $cc_basename in
14078a4f78defSmrg     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14079a4f78defSmrg     *) _lt_dar_can_shared=$GCC ;;
14080a4f78defSmrg  esac
14081a4f78defSmrg  if test yes = "$_lt_dar_can_shared"; then
14082a4f78defSmrg    output_verbose_link_cmd=func_echo_all
14083a4f78defSmrg    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14084a4f78defSmrg    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14085a4f78defSmrg    archive_expsym_cmds_CXX="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"
14086a4f78defSmrg    module_expsym_cmds_CXX="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"
14087a4f78defSmrg       if test yes != "$lt_cv_apple_cc_single_mod"; then
14088a4f78defSmrg      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14089a4f78defSmrg      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14090a4f78defSmrg    fi
14091a4f78defSmrg
14092a4f78defSmrg  else
14093a4f78defSmrg  ld_shlibs_CXX=no
14094a4f78defSmrg  fi
14095a4f78defSmrg
14096a4f78defSmrg	;;
14097a4f78defSmrg
14098a4f78defSmrg      os2*)
14099a4f78defSmrg	hardcode_libdir_flag_spec_CXX='-L$libdir'
14100a4f78defSmrg	hardcode_minus_L_CXX=yes
14101a4f78defSmrg	allow_undefined_flag_CXX=unsupported
14102a4f78defSmrg	shrext_cmds=.dll
14103a4f78defSmrg	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14104a4f78defSmrg	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14105a4f78defSmrg	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14106a4f78defSmrg	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14107a4f78defSmrg	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14108a4f78defSmrg	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14109a4f78defSmrg	  emximp -o $lib $output_objdir/$libname.def'
14110a4f78defSmrg	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14111a4f78defSmrg	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14112a4f78defSmrg	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14113a4f78defSmrg	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14114a4f78defSmrg	  prefix_cmds="$SED"~
14115a4f78defSmrg	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14116a4f78defSmrg	    prefix_cmds="$prefix_cmds -e 1d";
14117a4f78defSmrg	  fi~
14118a4f78defSmrg	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14119a4f78defSmrg	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14120a4f78defSmrg	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14121a4f78defSmrg	  emximp -o $lib $output_objdir/$libname.def'
14122a4f78defSmrg	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14123a4f78defSmrg	enable_shared_with_static_runtimes_CXX=yes
14124a4f78defSmrg	;;
14125a4f78defSmrg
14126a4f78defSmrg      dgux*)
14127a4f78defSmrg        case $cc_basename in
14128a4f78defSmrg          ec++*)
14129a4f78defSmrg	    # FIXME: insert proper C++ library support
14130a4f78defSmrg	    ld_shlibs_CXX=no
14131a4f78defSmrg	    ;;
14132a4f78defSmrg          ghcx*)
14133a4f78defSmrg	    # Green Hills C++ Compiler
14134a4f78defSmrg	    # FIXME: insert proper C++ library support
14135a4f78defSmrg	    ld_shlibs_CXX=no
14136a4f78defSmrg	    ;;
14137a4f78defSmrg          *)
14138a4f78defSmrg	    # FIXME: insert proper C++ library support
14139a4f78defSmrg	    ld_shlibs_CXX=no
14140a4f78defSmrg	    ;;
14141a4f78defSmrg        esac
14142a4f78defSmrg        ;;
14143a4f78defSmrg
14144a4f78defSmrg      freebsd2.*)
14145a4f78defSmrg        # C++ shared libraries reported to be fairly broken before
14146a4f78defSmrg	# switch to ELF
14147a4f78defSmrg        ld_shlibs_CXX=no
14148a4f78defSmrg        ;;
14149a4f78defSmrg
14150a4f78defSmrg      freebsd-elf*)
14151a4f78defSmrg        archive_cmds_need_lc_CXX=no
14152a4f78defSmrg        ;;
14153a4f78defSmrg
14154a4f78defSmrg      freebsd* | dragonfly*)
14155a4f78defSmrg        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14156a4f78defSmrg        # conventions
14157a4f78defSmrg        ld_shlibs_CXX=yes
14158a4f78defSmrg        ;;
14159a4f78defSmrg
14160a4f78defSmrg      haiku*)
14161a4f78defSmrg        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14162a4f78defSmrg        link_all_deplibs_CXX=yes
14163a4f78defSmrg        ;;
14164a4f78defSmrg
14165a4f78defSmrg      hpux9*)
14166a4f78defSmrg        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14167a4f78defSmrg        hardcode_libdir_separator_CXX=:
14168a4f78defSmrg        export_dynamic_flag_spec_CXX='$wl-E'
14169a4f78defSmrg        hardcode_direct_CXX=yes
14170a4f78defSmrg        hardcode_minus_L_CXX=yes # Not in the search PATH,
14171a4f78defSmrg				             # but as the default
14172a4f78defSmrg				             # location of the library.
14173a4f78defSmrg
14174a4f78defSmrg        case $cc_basename in
14175a4f78defSmrg          CC*)
14176a4f78defSmrg            # FIXME: insert proper C++ library support
14177a4f78defSmrg            ld_shlibs_CXX=no
14178a4f78defSmrg            ;;
14179a4f78defSmrg          aCC*)
14180a4f78defSmrg            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14181a4f78defSmrg            # Commands to make compiler produce verbose output that lists
14182a4f78defSmrg            # what "hidden" libraries, object files and flags are used when
14183a4f78defSmrg            # linking a shared library.
14184a4f78defSmrg            #
14185a4f78defSmrg            # There doesn't appear to be a way to prevent this compiler from
14186a4f78defSmrg            # explicitly linking system object files so we need to strip them
14187a4f78defSmrg            # from the output so that they don't get included in the library
14188a4f78defSmrg            # dependencies.
14189a4f78defSmrg            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14190a4f78defSmrg            ;;
14191a4f78defSmrg          *)
14192a4f78defSmrg            if test yes = "$GXX"; then
14193a4f78defSmrg              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14194a4f78defSmrg            else
14195a4f78defSmrg              # FIXME: insert proper C++ library support
14196a4f78defSmrg              ld_shlibs_CXX=no
14197a4f78defSmrg            fi
14198a4f78defSmrg            ;;
14199a4f78defSmrg        esac
14200a4f78defSmrg        ;;
14201a4f78defSmrg
14202a4f78defSmrg      hpux10*|hpux11*)
14203a4f78defSmrg        if test no = "$with_gnu_ld"; then
14204a4f78defSmrg	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14205a4f78defSmrg	  hardcode_libdir_separator_CXX=:
14206a4f78defSmrg
14207a4f78defSmrg          case $host_cpu in
14208a4f78defSmrg            hppa*64*|ia64*)
14209a4f78defSmrg              ;;
14210a4f78defSmrg            *)
14211a4f78defSmrg	      export_dynamic_flag_spec_CXX='$wl-E'
14212a4f78defSmrg              ;;
14213a4f78defSmrg          esac
14214a4f78defSmrg        fi
14215a4f78defSmrg        case $host_cpu in
14216a4f78defSmrg          hppa*64*|ia64*)
14217a4f78defSmrg            hardcode_direct_CXX=no
14218a4f78defSmrg            hardcode_shlibpath_var_CXX=no
14219a4f78defSmrg            ;;
14220a4f78defSmrg          *)
14221a4f78defSmrg            hardcode_direct_CXX=yes
14222a4f78defSmrg            hardcode_direct_absolute_CXX=yes
14223a4f78defSmrg            hardcode_minus_L_CXX=yes # Not in the search PATH,
14224a4f78defSmrg					         # but as the default
14225a4f78defSmrg					         # location of the library.
14226a4f78defSmrg            ;;
14227a4f78defSmrg        esac
14228a4f78defSmrg
14229a4f78defSmrg        case $cc_basename in
14230a4f78defSmrg          CC*)
14231a4f78defSmrg	    # FIXME: insert proper C++ library support
14232a4f78defSmrg	    ld_shlibs_CXX=no
14233a4f78defSmrg	    ;;
14234a4f78defSmrg          aCC*)
14235a4f78defSmrg	    case $host_cpu in
14236a4f78defSmrg	      hppa*64*)
14237a4f78defSmrg	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14238a4f78defSmrg	        ;;
14239a4f78defSmrg	      ia64*)
14240a4f78defSmrg	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241a4f78defSmrg	        ;;
14242a4f78defSmrg	      *)
14243a4f78defSmrg	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14244a4f78defSmrg	        ;;
14245a4f78defSmrg	    esac
14246a4f78defSmrg	    # Commands to make compiler produce verbose output that lists
14247a4f78defSmrg	    # what "hidden" libraries, object files and flags are used when
14248a4f78defSmrg	    # linking a shared library.
14249a4f78defSmrg	    #
14250a4f78defSmrg	    # There doesn't appear to be a way to prevent this compiler from
14251a4f78defSmrg	    # explicitly linking system object files so we need to strip them
14252a4f78defSmrg	    # from the output so that they don't get included in the library
14253a4f78defSmrg	    # dependencies.
14254a4f78defSmrg	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14255a4f78defSmrg	    ;;
14256a4f78defSmrg          *)
14257a4f78defSmrg	    if test yes = "$GXX"; then
14258a4f78defSmrg	      if test no = "$with_gnu_ld"; then
14259a4f78defSmrg	        case $host_cpu in
14260a4f78defSmrg	          hppa*64*)
14261a4f78defSmrg	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14262a4f78defSmrg	            ;;
14263a4f78defSmrg	          ia64*)
14264a4f78defSmrg	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14265a4f78defSmrg	            ;;
14266a4f78defSmrg	          *)
14267a4f78defSmrg	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14268a4f78defSmrg	            ;;
14269a4f78defSmrg	        esac
14270a4f78defSmrg	      fi
14271a4f78defSmrg	    else
14272a4f78defSmrg	      # FIXME: insert proper C++ library support
14273a4f78defSmrg	      ld_shlibs_CXX=no
14274a4f78defSmrg	    fi
14275a4f78defSmrg	    ;;
14276a4f78defSmrg        esac
14277a4f78defSmrg        ;;
14278a4f78defSmrg
14279a4f78defSmrg      interix[3-9]*)
14280a4f78defSmrg	hardcode_direct_CXX=no
14281a4f78defSmrg	hardcode_shlibpath_var_CXX=no
14282a4f78defSmrg	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14283a4f78defSmrg	export_dynamic_flag_spec_CXX='$wl-E'
14284a4f78defSmrg	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14285a4f78defSmrg	# Instead, shared libraries are loaded at an image base (0x10000000 by
14286a4f78defSmrg	# default) and relocated if they conflict, which is a slow very memory
14287a4f78defSmrg	# consuming and fragmenting process.  To avoid this, we pick a random,
14288a4f78defSmrg	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14289a4f78defSmrg	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14290a4f78defSmrg	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14291a4f78defSmrg	archive_expsym_cmds_CXX='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'
14292a4f78defSmrg	;;
14293a4f78defSmrg      irix5* | irix6*)
14294a4f78defSmrg        case $cc_basename in
14295a4f78defSmrg          CC*)
14296a4f78defSmrg	    # SGI C++
14297a4f78defSmrg	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14298a4f78defSmrg
14299a4f78defSmrg	    # Archives containing C++ object files must be created using
14300a4f78defSmrg	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14301a4f78defSmrg	    # necessary to make sure instantiated templates are included
14302a4f78defSmrg	    # in the archive.
14303a4f78defSmrg	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14304a4f78defSmrg	    ;;
14305a4f78defSmrg          *)
14306a4f78defSmrg	    if test yes = "$GXX"; then
14307a4f78defSmrg	      if test no = "$with_gnu_ld"; then
14308a4f78defSmrg	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14309a4f78defSmrg	      else
14310a4f78defSmrg	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14311a4f78defSmrg	      fi
14312a4f78defSmrg	    fi
14313a4f78defSmrg	    link_all_deplibs_CXX=yes
14314a4f78defSmrg	    ;;
14315a4f78defSmrg        esac
14316a4f78defSmrg        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14317a4f78defSmrg        hardcode_libdir_separator_CXX=:
14318a4f78defSmrg        inherit_rpath_CXX=yes
14319a4f78defSmrg        ;;
14320a4f78defSmrg
14321a4f78defSmrg      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14322a4f78defSmrg        case $cc_basename in
14323a4f78defSmrg          KCC*)
14324a4f78defSmrg	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14325a4f78defSmrg
14326a4f78defSmrg	    # KCC will only create a shared library if the output file
14327a4f78defSmrg	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14328a4f78defSmrg	    # to its proper name (with version) after linking.
14329a4f78defSmrg	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14330a4f78defSmrg	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14331a4f78defSmrg	    # Commands to make compiler produce verbose output that lists
14332a4f78defSmrg	    # what "hidden" libraries, object files and flags are used when
14333a4f78defSmrg	    # linking a shared library.
14334a4f78defSmrg	    #
14335a4f78defSmrg	    # There doesn't appear to be a way to prevent this compiler from
14336a4f78defSmrg	    # explicitly linking system object files so we need to strip them
14337a4f78defSmrg	    # from the output so that they don't get included in the library
14338a4f78defSmrg	    # dependencies.
14339a4f78defSmrg	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14340a4f78defSmrg
14341a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14342a4f78defSmrg	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14343a4f78defSmrg
14344a4f78defSmrg	    # Archives containing C++ object files must be created using
14345a4f78defSmrg	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14346a4f78defSmrg	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14347a4f78defSmrg	    ;;
14348a4f78defSmrg	  icpc* | ecpc* )
14349a4f78defSmrg	    # Intel C++
14350a4f78defSmrg	    with_gnu_ld=yes
14351a4f78defSmrg	    # version 8.0 and above of icpc choke on multiply defined symbols
14352a4f78defSmrg	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14353a4f78defSmrg	    # earlier do not add the objects themselves.
14354a4f78defSmrg	    case `$CC -V 2>&1` in
14355a4f78defSmrg	      *"Version 7."*)
14356a4f78defSmrg	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14357a4f78defSmrg		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14358a4f78defSmrg		;;
14359a4f78defSmrg	      *)  # Version 8.0 or newer
14360a4f78defSmrg	        tmp_idyn=
14361a4f78defSmrg	        case $host_cpu in
14362a4f78defSmrg		  ia64*) tmp_idyn=' -i_dynamic';;
14363a4f78defSmrg		esac
14364a4f78defSmrg	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14365a4f78defSmrg		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14366a4f78defSmrg		;;
14367a4f78defSmrg	    esac
14368a4f78defSmrg	    archive_cmds_need_lc_CXX=no
14369a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14370a4f78defSmrg	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14371a4f78defSmrg	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14372a4f78defSmrg	    ;;
14373a4f78defSmrg          pgCC* | pgcpp*)
14374a4f78defSmrg            # Portland Group C++ compiler
14375a4f78defSmrg	    case `$CC -V` in
14376a4f78defSmrg	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14377a4f78defSmrg	      prelink_cmds_CXX='tpldir=Template.dir~
14378a4f78defSmrg               rm -rf $tpldir~
14379a4f78defSmrg               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14380a4f78defSmrg               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14381a4f78defSmrg	      old_archive_cmds_CXX='tpldir=Template.dir~
14382a4f78defSmrg                rm -rf $tpldir~
14383a4f78defSmrg                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14384a4f78defSmrg                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14385a4f78defSmrg                $RANLIB $oldlib'
14386a4f78defSmrg	      archive_cmds_CXX='tpldir=Template.dir~
14387a4f78defSmrg                rm -rf $tpldir~
14388a4f78defSmrg                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14389a4f78defSmrg                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14390a4f78defSmrg	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14391a4f78defSmrg                rm -rf $tpldir~
14392a4f78defSmrg                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14393a4f78defSmrg                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14394a4f78defSmrg	      ;;
14395a4f78defSmrg	    *) # Version 6 and above use weak symbols
14396a4f78defSmrg	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14397a4f78defSmrg	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14398a4f78defSmrg	      ;;
14399a4f78defSmrg	    esac
14400a4f78defSmrg
14401a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14402a4f78defSmrg	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14403a4f78defSmrg	    whole_archive_flag_spec_CXX='$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'
14404a4f78defSmrg            ;;
14405a4f78defSmrg	  cxx*)
14406a4f78defSmrg	    # Compaq C++
14407a4f78defSmrg	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14408a4f78defSmrg	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14409a4f78defSmrg
14410a4f78defSmrg	    runpath_var=LD_RUN_PATH
14411a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14412a4f78defSmrg	    hardcode_libdir_separator_CXX=:
14413a4f78defSmrg
14414a4f78defSmrg	    # Commands to make compiler produce verbose output that lists
14415a4f78defSmrg	    # what "hidden" libraries, object files and flags are used when
14416a4f78defSmrg	    # linking a shared library.
14417a4f78defSmrg	    #
14418a4f78defSmrg	    # There doesn't appear to be a way to prevent this compiler from
14419a4f78defSmrg	    # explicitly linking system object files so we need to strip them
14420a4f78defSmrg	    # from the output so that they don't get included in the library
14421a4f78defSmrg	    # dependencies.
14422a4f78defSmrg	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14423a4f78defSmrg	    ;;
14424a4f78defSmrg	  xl* | mpixl* | bgxl*)
14425a4f78defSmrg	    # IBM XL 8.0 on PPC, with GNU ld
14426a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14427a4f78defSmrg	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14428a4f78defSmrg	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14429a4f78defSmrg	    if test yes = "$supports_anon_versioning"; then
14430a4f78defSmrg	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14431a4f78defSmrg                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14432a4f78defSmrg                echo "local: *; };" >> $output_objdir/$libname.ver~
14433a4f78defSmrg                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14434a4f78defSmrg	    fi
14435a4f78defSmrg	    ;;
14436a4f78defSmrg	  *)
14437a4f78defSmrg	    case `$CC -V 2>&1 | sed 5q` in
14438a4f78defSmrg	    *Sun\ C*)
14439a4f78defSmrg	      # Sun C++ 5.9
14440a4f78defSmrg	      no_undefined_flag_CXX=' -zdefs'
14441a4f78defSmrg	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14442a4f78defSmrg	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14443a4f78defSmrg	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14444a4f78defSmrg	      whole_archive_flag_spec_CXX='$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'
14445a4f78defSmrg	      compiler_needs_object_CXX=yes
14446a4f78defSmrg
14447a4f78defSmrg	      # Not sure whether something based on
14448a4f78defSmrg	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14449a4f78defSmrg	      # would be better.
14450a4f78defSmrg	      output_verbose_link_cmd='func_echo_all'
14451a4f78defSmrg
14452a4f78defSmrg	      # Archives containing C++ object files must be created using
14453a4f78defSmrg	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14454a4f78defSmrg	      # necessary to make sure instantiated templates are included
14455a4f78defSmrg	      # in the archive.
14456a4f78defSmrg	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14457a4f78defSmrg	      ;;
14458a4f78defSmrg	    esac
14459a4f78defSmrg	    ;;
14460a4f78defSmrg	esac
14461a4f78defSmrg	;;
14462a4f78defSmrg
14463a4f78defSmrg      lynxos*)
14464a4f78defSmrg        # FIXME: insert proper C++ library support
14465a4f78defSmrg	ld_shlibs_CXX=no
14466a4f78defSmrg	;;
14467a4f78defSmrg
14468a4f78defSmrg      m88k*)
14469a4f78defSmrg        # FIXME: insert proper C++ library support
14470a4f78defSmrg        ld_shlibs_CXX=no
14471a4f78defSmrg	;;
14472a4f78defSmrg
14473a4f78defSmrg      mvs*)
14474a4f78defSmrg        case $cc_basename in
14475a4f78defSmrg          cxx*)
14476a4f78defSmrg	    # FIXME: insert proper C++ library support
14477a4f78defSmrg	    ld_shlibs_CXX=no
14478a4f78defSmrg	    ;;
14479a4f78defSmrg	  *)
14480a4f78defSmrg	    # FIXME: insert proper C++ library support
14481a4f78defSmrg	    ld_shlibs_CXX=no
14482a4f78defSmrg	    ;;
14483a4f78defSmrg	esac
14484a4f78defSmrg	;;
14485a4f78defSmrg
14486a4f78defSmrg      netbsd*)
14487a4f78defSmrg        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14488a4f78defSmrg	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14489a4f78defSmrg	  wlarc=
14490a4f78defSmrg	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14491a4f78defSmrg	  hardcode_direct_CXX=yes
14492a4f78defSmrg	  hardcode_shlibpath_var_CXX=no
14493a4f78defSmrg	fi
14494a4f78defSmrg	# Workaround some broken pre-1.5 toolchains
14495a4f78defSmrg	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14496a4f78defSmrg	;;
14497a4f78defSmrg
14498a4f78defSmrg      *nto* | *qnx*)
14499a4f78defSmrg        ld_shlibs_CXX=yes
14500a4f78defSmrg	;;
14501a4f78defSmrg
14502a4f78defSmrg      openbsd* | bitrig*)
14503a4f78defSmrg	if test -f /usr/libexec/ld.so; then
14504a4f78defSmrg	  hardcode_direct_CXX=yes
14505a4f78defSmrg	  hardcode_shlibpath_var_CXX=no
14506a4f78defSmrg	  hardcode_direct_absolute_CXX=yes
14507a4f78defSmrg	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14508a4f78defSmrg	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14509a4f78defSmrg	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14510a4f78defSmrg	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14511a4f78defSmrg	    export_dynamic_flag_spec_CXX='$wl-E'
14512a4f78defSmrg	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14513a4f78defSmrg	  fi
14514a4f78defSmrg	  output_verbose_link_cmd=func_echo_all
14515a4f78defSmrg	else
14516a4f78defSmrg	  ld_shlibs_CXX=no
14517a4f78defSmrg	fi
14518a4f78defSmrg	;;
14519a4f78defSmrg
14520a4f78defSmrg      osf3* | osf4* | osf5*)
14521a4f78defSmrg        case $cc_basename in
14522a4f78defSmrg          KCC*)
14523a4f78defSmrg	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14524a4f78defSmrg
14525a4f78defSmrg	    # KCC will only create a shared library if the output file
14526a4f78defSmrg	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14527a4f78defSmrg	    # to its proper name (with version) after linking.
14528a4f78defSmrg	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14529a4f78defSmrg
14530a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14531a4f78defSmrg	    hardcode_libdir_separator_CXX=:
14532a4f78defSmrg
14533a4f78defSmrg	    # Archives containing C++ object files must be created using
14534a4f78defSmrg	    # the KAI C++ compiler.
14535a4f78defSmrg	    case $host in
14536a4f78defSmrg	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14537a4f78defSmrg	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14538a4f78defSmrg	    esac
14539a4f78defSmrg	    ;;
14540a4f78defSmrg          RCC*)
14541a4f78defSmrg	    # Rational C++ 2.4.1
14542a4f78defSmrg	    # FIXME: insert proper C++ library support
14543a4f78defSmrg	    ld_shlibs_CXX=no
14544a4f78defSmrg	    ;;
14545a4f78defSmrg          cxx*)
14546a4f78defSmrg	    case $host in
14547a4f78defSmrg	      osf3*)
14548a4f78defSmrg	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14549a4f78defSmrg	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14550a4f78defSmrg	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14551a4f78defSmrg		;;
14552a4f78defSmrg	      *)
14553a4f78defSmrg	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14554a4f78defSmrg	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14555a4f78defSmrg	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14556a4f78defSmrg                  echo "-hidden">> $lib.exp~
14557a4f78defSmrg                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14558a4f78defSmrg                  $RM $lib.exp'
14559a4f78defSmrg	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14560a4f78defSmrg		;;
14561a4f78defSmrg	    esac
14562a4f78defSmrg
14563a4f78defSmrg	    hardcode_libdir_separator_CXX=:
14564a4f78defSmrg
14565a4f78defSmrg	    # Commands to make compiler produce verbose output that lists
14566a4f78defSmrg	    # what "hidden" libraries, object files and flags are used when
14567a4f78defSmrg	    # linking a shared library.
14568a4f78defSmrg	    #
14569a4f78defSmrg	    # There doesn't appear to be a way to prevent this compiler from
14570a4f78defSmrg	    # explicitly linking system object files so we need to strip them
14571a4f78defSmrg	    # from the output so that they don't get included in the library
14572a4f78defSmrg	    # dependencies.
14573a4f78defSmrg	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14574a4f78defSmrg	    ;;
14575a4f78defSmrg	  *)
14576a4f78defSmrg	    if test yes,no = "$GXX,$with_gnu_ld"; then
14577a4f78defSmrg	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14578a4f78defSmrg	      case $host in
14579a4f78defSmrg	        osf3*)
14580a4f78defSmrg	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14581a4f78defSmrg		  ;;
14582a4f78defSmrg	        *)
14583a4f78defSmrg	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14584a4f78defSmrg		  ;;
14585a4f78defSmrg	      esac
14586a4f78defSmrg
14587a4f78defSmrg	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14588a4f78defSmrg	      hardcode_libdir_separator_CXX=:
14589a4f78defSmrg
14590a4f78defSmrg	      # Commands to make compiler produce verbose output that lists
14591a4f78defSmrg	      # what "hidden" libraries, object files and flags are used when
14592a4f78defSmrg	      # linking a shared library.
14593a4f78defSmrg	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14594a4f78defSmrg
14595a4f78defSmrg	    else
14596a4f78defSmrg	      # FIXME: insert proper C++ library support
14597a4f78defSmrg	      ld_shlibs_CXX=no
14598a4f78defSmrg	    fi
14599a4f78defSmrg	    ;;
14600a4f78defSmrg        esac
14601a4f78defSmrg        ;;
14602a4f78defSmrg
14603a4f78defSmrg      psos*)
14604a4f78defSmrg        # FIXME: insert proper C++ library support
14605a4f78defSmrg        ld_shlibs_CXX=no
14606a4f78defSmrg        ;;
14607a4f78defSmrg
14608a4f78defSmrg      sunos4*)
14609a4f78defSmrg        case $cc_basename in
14610a4f78defSmrg          CC*)
14611a4f78defSmrg	    # Sun C++ 4.x
14612a4f78defSmrg	    # FIXME: insert proper C++ library support
14613a4f78defSmrg	    ld_shlibs_CXX=no
14614a4f78defSmrg	    ;;
14615a4f78defSmrg          lcc*)
14616a4f78defSmrg	    # Lucid
14617a4f78defSmrg	    # FIXME: insert proper C++ library support
14618a4f78defSmrg	    ld_shlibs_CXX=no
14619a4f78defSmrg	    ;;
14620a4f78defSmrg          *)
14621a4f78defSmrg	    # FIXME: insert proper C++ library support
14622a4f78defSmrg	    ld_shlibs_CXX=no
14623a4f78defSmrg	    ;;
14624a4f78defSmrg        esac
14625a4f78defSmrg        ;;
14626a4f78defSmrg
14627a4f78defSmrg      solaris*)
14628a4f78defSmrg        case $cc_basename in
14629a4f78defSmrg          CC* | sunCC*)
14630a4f78defSmrg	    # Sun C++ 4.2, 5.x and Centerline C++
14631a4f78defSmrg            archive_cmds_need_lc_CXX=yes
14632a4f78defSmrg	    no_undefined_flag_CXX=' -zdefs'
14633a4f78defSmrg	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14634a4f78defSmrg	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14635a4f78defSmrg              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14636a4f78defSmrg
14637a4f78defSmrg	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14638a4f78defSmrg	    hardcode_shlibpath_var_CXX=no
14639a4f78defSmrg	    case $host_os in
14640a4f78defSmrg	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14641a4f78defSmrg	      *)
14642a4f78defSmrg		# The compiler driver will combine and reorder linker options,
14643a4f78defSmrg		# but understands '-z linker_flag'.
14644a4f78defSmrg	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14645a4f78defSmrg		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14646a4f78defSmrg	        ;;
14647a4f78defSmrg	    esac
14648a4f78defSmrg	    link_all_deplibs_CXX=yes
14649a4f78defSmrg
14650a4f78defSmrg	    output_verbose_link_cmd='func_echo_all'
14651a4f78defSmrg
14652a4f78defSmrg	    # Archives containing C++ object files must be created using
14653a4f78defSmrg	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14654a4f78defSmrg	    # necessary to make sure instantiated templates are included
14655a4f78defSmrg	    # in the archive.
14656a4f78defSmrg	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14657a4f78defSmrg	    ;;
14658a4f78defSmrg          gcx*)
14659a4f78defSmrg	    # Green Hills C++ Compiler
14660a4f78defSmrg	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14661a4f78defSmrg
14662a4f78defSmrg	    # The C++ compiler must be used to create the archive.
14663a4f78defSmrg	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14664a4f78defSmrg	    ;;
14665a4f78defSmrg          *)
14666a4f78defSmrg	    # GNU C++ compiler with Solaris linker
14667a4f78defSmrg	    if test yes,no = "$GXX,$with_gnu_ld"; then
14668a4f78defSmrg	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14669a4f78defSmrg	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14670a4f78defSmrg	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14671a4f78defSmrg	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14672a4f78defSmrg                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14673a4f78defSmrg
14674a4f78defSmrg	        # Commands to make compiler produce verbose output that lists
14675a4f78defSmrg	        # what "hidden" libraries, object files and flags are used when
14676a4f78defSmrg	        # linking a shared library.
14677a4f78defSmrg	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14678a4f78defSmrg	      else
14679a4f78defSmrg	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14680a4f78defSmrg	        # platform.
14681a4f78defSmrg	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14682a4f78defSmrg	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14683a4f78defSmrg                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14684a4f78defSmrg
14685a4f78defSmrg	        # Commands to make compiler produce verbose output that lists
14686a4f78defSmrg	        # what "hidden" libraries, object files and flags are used when
14687a4f78defSmrg	        # linking a shared library.
14688a4f78defSmrg	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14689a4f78defSmrg	      fi
14690a4f78defSmrg
14691a4f78defSmrg	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14692a4f78defSmrg	      case $host_os in
14693a4f78defSmrg		solaris2.[0-5] | solaris2.[0-5].*) ;;
14694a4f78defSmrg		*)
14695a4f78defSmrg		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14696a4f78defSmrg		  ;;
14697a4f78defSmrg	      esac
14698a4f78defSmrg	    fi
14699a4f78defSmrg	    ;;
14700a4f78defSmrg        esac
14701a4f78defSmrg        ;;
14702a4f78defSmrg
14703a4f78defSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14704a4f78defSmrg      no_undefined_flag_CXX='$wl-z,text'
14705a4f78defSmrg      archive_cmds_need_lc_CXX=no
14706a4f78defSmrg      hardcode_shlibpath_var_CXX=no
14707a4f78defSmrg      runpath_var='LD_RUN_PATH'
14708a4f78defSmrg
14709a4f78defSmrg      case $cc_basename in
14710a4f78defSmrg        CC*)
14711a4f78defSmrg	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712a4f78defSmrg	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713a4f78defSmrg	  ;;
14714a4f78defSmrg	*)
14715a4f78defSmrg	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14716a4f78defSmrg	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14717a4f78defSmrg	  ;;
14718a4f78defSmrg      esac
14719a4f78defSmrg      ;;
14720a4f78defSmrg
14721a4f78defSmrg      sysv5* | sco3.2v5* | sco5v6*)
14722a4f78defSmrg	# Note: We CANNOT use -z defs as we might desire, because we do not
14723a4f78defSmrg	# link with -lc, and that would cause any symbols used from libc to
14724a4f78defSmrg	# always be unresolved, which means just about no library would
14725a4f78defSmrg	# ever link correctly.  If we're not using GNU ld we use -z text
14726a4f78defSmrg	# though, which does catch some bad symbols but isn't as heavy-handed
14727a4f78defSmrg	# as -z defs.
14728a4f78defSmrg	no_undefined_flag_CXX='$wl-z,text'
14729a4f78defSmrg	allow_undefined_flag_CXX='$wl-z,nodefs'
14730a4f78defSmrg	archive_cmds_need_lc_CXX=no
14731a4f78defSmrg	hardcode_shlibpath_var_CXX=no
14732a4f78defSmrg	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14733a4f78defSmrg	hardcode_libdir_separator_CXX=':'
14734a4f78defSmrg	link_all_deplibs_CXX=yes
14735a4f78defSmrg	export_dynamic_flag_spec_CXX='$wl-Bexport'
14736a4f78defSmrg	runpath_var='LD_RUN_PATH'
14737a4f78defSmrg
14738a4f78defSmrg	case $cc_basename in
14739a4f78defSmrg          CC*)
14740a4f78defSmrg	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14741a4f78defSmrg	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14742a4f78defSmrg	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14743a4f78defSmrg              '"$old_archive_cmds_CXX"
14744a4f78defSmrg	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14745a4f78defSmrg              '"$reload_cmds_CXX"
14746a4f78defSmrg	    ;;
14747a4f78defSmrg	  *)
14748a4f78defSmrg	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14749a4f78defSmrg	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750a4f78defSmrg	    ;;
14751a4f78defSmrg	esac
14752a4f78defSmrg      ;;
14753a4f78defSmrg
14754a4f78defSmrg      tandem*)
14755a4f78defSmrg        case $cc_basename in
14756a4f78defSmrg          NCC*)
14757a4f78defSmrg	    # NonStop-UX NCC 3.20
14758a4f78defSmrg	    # FIXME: insert proper C++ library support
14759a4f78defSmrg	    ld_shlibs_CXX=no
14760a4f78defSmrg	    ;;
14761a4f78defSmrg          *)
14762a4f78defSmrg	    # FIXME: insert proper C++ library support
14763a4f78defSmrg	    ld_shlibs_CXX=no
14764a4f78defSmrg	    ;;
14765a4f78defSmrg        esac
14766a4f78defSmrg        ;;
14767a4f78defSmrg
14768a4f78defSmrg      vxworks*)
14769a4f78defSmrg        # FIXME: insert proper C++ library support
14770a4f78defSmrg        ld_shlibs_CXX=no
14771a4f78defSmrg        ;;
14772a4f78defSmrg
14773a4f78defSmrg      *)
14774a4f78defSmrg        # FIXME: insert proper C++ library support
14775a4f78defSmrg        ld_shlibs_CXX=no
14776a4f78defSmrg        ;;
14777a4f78defSmrg    esac
14778a4f78defSmrg
14779a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14780a4f78defSmrg$as_echo "$ld_shlibs_CXX" >&6; }
14781a4f78defSmrg    test no = "$ld_shlibs_CXX" && can_build_shared=no
14782a4f78defSmrg
14783a4f78defSmrg    GCC_CXX=$GXX
14784a4f78defSmrg    LD_CXX=$LD
14785a4f78defSmrg
14786a4f78defSmrg    ## CAVEAT EMPTOR:
14787a4f78defSmrg    ## There is no encapsulation within the following macros, do not change
14788a4f78defSmrg    ## the running order or otherwise move them around unless you know exactly
14789a4f78defSmrg    ## what you are doing...
14790a4f78defSmrg    # Dependencies to place before and after the object being linked:
14791a4f78defSmrgpredep_objects_CXX=
14792a4f78defSmrgpostdep_objects_CXX=
14793a4f78defSmrgpredeps_CXX=
14794a4f78defSmrgpostdeps_CXX=
14795a4f78defSmrgcompiler_lib_search_path_CXX=
14796a4f78defSmrg
14797a4f78defSmrgcat > conftest.$ac_ext <<_LT_EOF
14798a4f78defSmrgclass Foo
14799a4f78defSmrg{
14800a4f78defSmrgpublic:
14801a4f78defSmrg  Foo (void) { a = 0; }
14802a4f78defSmrgprivate:
14803a4f78defSmrg  int a;
14804a4f78defSmrg};
14805a4f78defSmrg_LT_EOF
14806a4f78defSmrg
14807a4f78defSmrg
14808a4f78defSmrg_lt_libdeps_save_CFLAGS=$CFLAGS
14809a4f78defSmrgcase "$CC $CFLAGS " in #(
14810a4f78defSmrg*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14811a4f78defSmrg*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14812a4f78defSmrg*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14813a4f78defSmrgesac
14814a4f78defSmrg
14815a4f78defSmrgif { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14816a4f78defSmrg  (eval $ac_compile) 2>&5
14817a4f78defSmrg  ac_status=$?
14818a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819a4f78defSmrg  test $ac_status = 0; }; then
14820a4f78defSmrg  # Parse the compiler output and extract the necessary
14821a4f78defSmrg  # objects, libraries and library flags.
14822a4f78defSmrg
14823a4f78defSmrg  # Sentinel used to keep track of whether or not we are before
14824a4f78defSmrg  # the conftest object file.
14825a4f78defSmrg  pre_test_object_deps_done=no
14826a4f78defSmrg
14827a4f78defSmrg  for p in `eval "$output_verbose_link_cmd"`; do
14828a4f78defSmrg    case $prev$p in
14829a4f78defSmrg
14830a4f78defSmrg    -L* | -R* | -l*)
14831a4f78defSmrg       # Some compilers place space between "-{L,R}" and the path.
14832a4f78defSmrg       # Remove the space.
14833a4f78defSmrg       if test x-L = "$p" ||
14834a4f78defSmrg          test x-R = "$p"; then
14835a4f78defSmrg	 prev=$p
14836a4f78defSmrg	 continue
14837a4f78defSmrg       fi
14838a4f78defSmrg
14839a4f78defSmrg       # Expand the sysroot to ease extracting the directories later.
14840a4f78defSmrg       if test -z "$prev"; then
14841a4f78defSmrg         case $p in
14842a4f78defSmrg         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14843a4f78defSmrg         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14844a4f78defSmrg         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14845a4f78defSmrg         esac
14846a4f78defSmrg       fi
14847a4f78defSmrg       case $p in
14848a4f78defSmrg       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14849a4f78defSmrg       esac
14850a4f78defSmrg       if test no = "$pre_test_object_deps_done"; then
14851a4f78defSmrg	 case $prev in
14852a4f78defSmrg	 -L | -R)
14853a4f78defSmrg	   # Internal compiler library paths should come after those
14854a4f78defSmrg	   # provided the user.  The postdeps already come after the
14855a4f78defSmrg	   # user supplied libs so there is no need to process them.
14856a4f78defSmrg	   if test -z "$compiler_lib_search_path_CXX"; then
14857a4f78defSmrg	     compiler_lib_search_path_CXX=$prev$p
14858a4f78defSmrg	   else
14859a4f78defSmrg	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14860a4f78defSmrg	   fi
14861a4f78defSmrg	   ;;
14862a4f78defSmrg	 # The "-l" case would never come before the object being
14863a4f78defSmrg	 # linked, so don't bother handling this case.
14864a4f78defSmrg	 esac
14865a4f78defSmrg       else
14866a4f78defSmrg	 if test -z "$postdeps_CXX"; then
14867a4f78defSmrg	   postdeps_CXX=$prev$p
14868a4f78defSmrg	 else
14869a4f78defSmrg	   postdeps_CXX="${postdeps_CXX} $prev$p"
14870a4f78defSmrg	 fi
14871a4f78defSmrg       fi
14872a4f78defSmrg       prev=
14873a4f78defSmrg       ;;
14874a4f78defSmrg
14875a4f78defSmrg    *.lto.$objext) ;; # Ignore GCC LTO objects
14876a4f78defSmrg    *.$objext)
14877a4f78defSmrg       # This assumes that the test object file only shows up
14878a4f78defSmrg       # once in the compiler output.
14879a4f78defSmrg       if test "$p" = "conftest.$objext"; then
14880a4f78defSmrg	 pre_test_object_deps_done=yes
14881a4f78defSmrg	 continue
14882a4f78defSmrg       fi
14883a4f78defSmrg
14884a4f78defSmrg       if test no = "$pre_test_object_deps_done"; then
14885a4f78defSmrg	 if test -z "$predep_objects_CXX"; then
14886a4f78defSmrg	   predep_objects_CXX=$p
14887a4f78defSmrg	 else
14888a4f78defSmrg	   predep_objects_CXX="$predep_objects_CXX $p"
14889a4f78defSmrg	 fi
14890a4f78defSmrg       else
14891a4f78defSmrg	 if test -z "$postdep_objects_CXX"; then
14892a4f78defSmrg	   postdep_objects_CXX=$p
14893a4f78defSmrg	 else
14894a4f78defSmrg	   postdep_objects_CXX="$postdep_objects_CXX $p"
14895a4f78defSmrg	 fi
14896a4f78defSmrg       fi
14897a4f78defSmrg       ;;
14898a4f78defSmrg
14899a4f78defSmrg    *) ;; # Ignore the rest.
14900a4f78defSmrg
14901a4f78defSmrg    esac
14902a4f78defSmrg  done
14903a4f78defSmrg
14904a4f78defSmrg  # Clean up.
14905a4f78defSmrg  rm -f a.out a.exe
14906a4f78defSmrgelse
14907a4f78defSmrg  echo "libtool.m4: error: problem compiling CXX test program"
14908a4f78defSmrgfi
14909a4f78defSmrg
14910a4f78defSmrg$RM -f confest.$objext
14911a4f78defSmrgCFLAGS=$_lt_libdeps_save_CFLAGS
14912a4f78defSmrg
14913a4f78defSmrg# PORTME: override above test on systems where it is broken
14914a4f78defSmrgcase $host_os in
14915a4f78defSmrginterix[3-9]*)
14916a4f78defSmrg  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14917a4f78defSmrg  # hack all around it, let's just trust "g++" to DTRT.
14918a4f78defSmrg  predep_objects_CXX=
14919a4f78defSmrg  postdep_objects_CXX=
14920a4f78defSmrg  postdeps_CXX=
14921a4f78defSmrg  ;;
14922a4f78defSmrgesac
14923a4f78defSmrg
14924a4f78defSmrg
14925a4f78defSmrgcase " $postdeps_CXX " in
14926a4f78defSmrg*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14927a4f78defSmrgesac
14928a4f78defSmrg compiler_lib_search_dirs_CXX=
14929a4f78defSmrgif test -n "${compiler_lib_search_path_CXX}"; then
14930a4f78defSmrg compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14931a4f78defSmrgfi
14932a4f78defSmrg
14933a4f78defSmrg
14934a4f78defSmrg
14935a4f78defSmrg
14936a4f78defSmrg
14937a4f78defSmrg
14938a4f78defSmrg
14939a4f78defSmrg
14940a4f78defSmrg
14941a4f78defSmrg
14942a4f78defSmrg
14943a4f78defSmrg
14944a4f78defSmrg
14945a4f78defSmrg
14946a4f78defSmrg
14947a4f78defSmrg
14948a4f78defSmrg
14949a4f78defSmrg
14950a4f78defSmrg
14951a4f78defSmrg
14952a4f78defSmrg
14953a4f78defSmrg
14954a4f78defSmrg
14955a4f78defSmrg
14956a4f78defSmrg
14957a4f78defSmrg
14958a4f78defSmrg
14959a4f78defSmrg
14960a4f78defSmrg
14961a4f78defSmrg
14962a4f78defSmrg
14963a4f78defSmrg    lt_prog_compiler_wl_CXX=
14964a4f78defSmrglt_prog_compiler_pic_CXX=
14965a4f78defSmrglt_prog_compiler_static_CXX=
14966a4f78defSmrg
14967a4f78defSmrg
14968a4f78defSmrg  # C++ specific cases for pic, static, wl, etc.
14969a4f78defSmrg  if test yes = "$GXX"; then
14970a4f78defSmrg    lt_prog_compiler_wl_CXX='-Wl,'
14971a4f78defSmrg    lt_prog_compiler_static_CXX='-static'
14972a4f78defSmrg
14973a4f78defSmrg    case $host_os in
14974a4f78defSmrg    aix*)
14975a4f78defSmrg      # All AIX code is PIC.
14976a4f78defSmrg      if test ia64 = "$host_cpu"; then
14977a4f78defSmrg	# AIX 5 now supports IA64 processor
14978a4f78defSmrg	lt_prog_compiler_static_CXX='-Bstatic'
14979a4f78defSmrg      fi
14980a4f78defSmrg      lt_prog_compiler_pic_CXX='-fPIC'
14981a4f78defSmrg      ;;
14982a4f78defSmrg
14983a4f78defSmrg    amigaos*)
14984a4f78defSmrg      case $host_cpu in
14985a4f78defSmrg      powerpc)
14986a4f78defSmrg            # see comment about AmigaOS4 .so support
14987a4f78defSmrg            lt_prog_compiler_pic_CXX='-fPIC'
14988a4f78defSmrg        ;;
14989a4f78defSmrg      m68k)
14990a4f78defSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
14991a4f78defSmrg            # adding the '-m68020' flag to GCC prevents building anything better,
14992a4f78defSmrg            # like '-m68040'.
14993a4f78defSmrg            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14994a4f78defSmrg        ;;
14995a4f78defSmrg      esac
14996a4f78defSmrg      ;;
14997a4f78defSmrg
14998a4f78defSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14999a4f78defSmrg      # PIC is the default for these OSes.
15000a4f78defSmrg      ;;
15001a4f78defSmrg    mingw* | cygwin* | os2* | pw32* | cegcc*)
15002a4f78defSmrg      # This hack is so that the source file can tell whether it is being
15003a4f78defSmrg      # built for inclusion in a dll (and should export symbols for example).
15004a4f78defSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15005a4f78defSmrg      # (--disable-auto-import) libraries
15006a4f78defSmrg      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15007a4f78defSmrg      case $host_os in
15008a4f78defSmrg      os2*)
15009a4f78defSmrg	lt_prog_compiler_static_CXX='$wl-static'
15010a4f78defSmrg	;;
15011a4f78defSmrg      esac
15012a4f78defSmrg      ;;
15013a4f78defSmrg    darwin* | rhapsody*)
15014a4f78defSmrg      # PIC is the default on this platform
15015a4f78defSmrg      # Common symbols not allowed in MH_DYLIB files
15016a4f78defSmrg      lt_prog_compiler_pic_CXX='-fno-common'
15017a4f78defSmrg      ;;
15018a4f78defSmrg    *djgpp*)
15019a4f78defSmrg      # DJGPP does not support shared libraries at all
15020a4f78defSmrg      lt_prog_compiler_pic_CXX=
15021a4f78defSmrg      ;;
15022a4f78defSmrg    haiku*)
15023a4f78defSmrg      # PIC is the default for Haiku.
15024a4f78defSmrg      # The "-static" flag exists, but is broken.
15025a4f78defSmrg      lt_prog_compiler_static_CXX=
15026a4f78defSmrg      ;;
15027a4f78defSmrg    interix[3-9]*)
15028a4f78defSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15029a4f78defSmrg      # Instead, we relocate shared libraries at runtime.
15030a4f78defSmrg      ;;
15031a4f78defSmrg    sysv4*MP*)
15032a4f78defSmrg      if test -d /usr/nec; then
15033a4f78defSmrg	lt_prog_compiler_pic_CXX=-Kconform_pic
15034a4f78defSmrg      fi
15035a4f78defSmrg      ;;
15036a4f78defSmrg    hpux*)
15037a4f78defSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15038a4f78defSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15039a4f78defSmrg      # sets the default TLS model and affects inlining.
15040a4f78defSmrg      case $host_cpu in
15041a4f78defSmrg      hppa*64*)
15042a4f78defSmrg	;;
15043a4f78defSmrg      *)
15044a4f78defSmrg	lt_prog_compiler_pic_CXX='-fPIC'
15045a4f78defSmrg	;;
15046a4f78defSmrg      esac
15047a4f78defSmrg      ;;
15048a4f78defSmrg    *qnx* | *nto*)
15049a4f78defSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
15050a4f78defSmrg      # it will coredump.
15051a4f78defSmrg      lt_prog_compiler_pic_CXX='-fPIC -shared'
15052a4f78defSmrg      ;;
15053a4f78defSmrg    *)
15054a4f78defSmrg      lt_prog_compiler_pic_CXX='-fPIC'
15055a4f78defSmrg      ;;
15056a4f78defSmrg    esac
15057a4f78defSmrg  else
15058a4f78defSmrg    case $host_os in
15059a4f78defSmrg      aix[4-9]*)
15060a4f78defSmrg	# All AIX code is PIC.
15061a4f78defSmrg	if test ia64 = "$host_cpu"; then
15062a4f78defSmrg	  # AIX 5 now supports IA64 processor
15063a4f78defSmrg	  lt_prog_compiler_static_CXX='-Bstatic'
15064a4f78defSmrg	else
15065a4f78defSmrg	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15066a4f78defSmrg	fi
15067a4f78defSmrg	;;
15068a4f78defSmrg      chorus*)
15069a4f78defSmrg	case $cc_basename in
15070a4f78defSmrg	cxch68*)
15071a4f78defSmrg	  # Green Hills C++ Compiler
15072a4f78defSmrg	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15073a4f78defSmrg	  ;;
15074a4f78defSmrg	esac
15075a4f78defSmrg	;;
15076a4f78defSmrg      mingw* | cygwin* | os2* | pw32* | cegcc*)
15077a4f78defSmrg	# This hack is so that the source file can tell whether it is being
15078a4f78defSmrg	# built for inclusion in a dll (and should export symbols for example).
15079a4f78defSmrg	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15080a4f78defSmrg	;;
15081a4f78defSmrg      dgux*)
15082a4f78defSmrg	case $cc_basename in
15083a4f78defSmrg	  ec++*)
15084a4f78defSmrg	    lt_prog_compiler_pic_CXX='-KPIC'
15085a4f78defSmrg	    ;;
15086a4f78defSmrg	  ghcx*)
15087a4f78defSmrg	    # Green Hills C++ Compiler
15088a4f78defSmrg	    lt_prog_compiler_pic_CXX='-pic'
15089a4f78defSmrg	    ;;
15090a4f78defSmrg	  *)
15091a4f78defSmrg	    ;;
15092a4f78defSmrg	esac
15093a4f78defSmrg	;;
15094a4f78defSmrg      freebsd* | dragonfly*)
15095a4f78defSmrg	# FreeBSD uses GNU C++
15096a4f78defSmrg	;;
15097a4f78defSmrg      hpux9* | hpux10* | hpux11*)
15098a4f78defSmrg	case $cc_basename in
15099a4f78defSmrg	  CC*)
15100a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15101a4f78defSmrg	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15102a4f78defSmrg	    if test ia64 != "$host_cpu"; then
15103a4f78defSmrg	      lt_prog_compiler_pic_CXX='+Z'
15104a4f78defSmrg	    fi
15105a4f78defSmrg	    ;;
15106a4f78defSmrg	  aCC*)
15107a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15108a4f78defSmrg	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15109a4f78defSmrg	    case $host_cpu in
15110a4f78defSmrg	    hppa*64*|ia64*)
15111a4f78defSmrg	      # +Z the default
15112a4f78defSmrg	      ;;
15113a4f78defSmrg	    *)
15114a4f78defSmrg	      lt_prog_compiler_pic_CXX='+Z'
15115a4f78defSmrg	      ;;
15116a4f78defSmrg	    esac
15117a4f78defSmrg	    ;;
15118a4f78defSmrg	  *)
15119a4f78defSmrg	    ;;
15120a4f78defSmrg	esac
15121a4f78defSmrg	;;
15122a4f78defSmrg      interix*)
15123a4f78defSmrg	# This is c89, which is MS Visual C++ (no shared libs)
15124a4f78defSmrg	# Anyone wants to do a port?
15125a4f78defSmrg	;;
15126a4f78defSmrg      irix5* | irix6* | nonstopux*)
15127a4f78defSmrg	case $cc_basename in
15128a4f78defSmrg	  CC*)
15129a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15130a4f78defSmrg	    lt_prog_compiler_static_CXX='-non_shared'
15131a4f78defSmrg	    # CC pic flag -KPIC is the default.
15132a4f78defSmrg	    ;;
15133a4f78defSmrg	  *)
15134a4f78defSmrg	    ;;
15135a4f78defSmrg	esac
15136a4f78defSmrg	;;
15137a4f78defSmrg      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15138a4f78defSmrg	case $cc_basename in
15139a4f78defSmrg	  KCC*)
15140a4f78defSmrg	    # KAI C++ Compiler
15141a4f78defSmrg	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15142a4f78defSmrg	    lt_prog_compiler_pic_CXX='-fPIC'
15143a4f78defSmrg	    ;;
15144a4f78defSmrg	  ecpc* )
15145a4f78defSmrg	    # old Intel C++ for x86_64, which still supported -KPIC.
15146a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15147a4f78defSmrg	    lt_prog_compiler_pic_CXX='-KPIC'
15148a4f78defSmrg	    lt_prog_compiler_static_CXX='-static'
15149a4f78defSmrg	    ;;
15150a4f78defSmrg	  icpc* )
15151a4f78defSmrg	    # Intel C++, used to be incompatible with GCC.
15152a4f78defSmrg	    # ICC 10 doesn't accept -KPIC any more.
15153a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15154a4f78defSmrg	    lt_prog_compiler_pic_CXX='-fPIC'
15155a4f78defSmrg	    lt_prog_compiler_static_CXX='-static'
15156a4f78defSmrg	    ;;
15157a4f78defSmrg	  pgCC* | pgcpp*)
15158a4f78defSmrg	    # Portland Group C++ compiler
15159a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15160a4f78defSmrg	    lt_prog_compiler_pic_CXX='-fpic'
15161a4f78defSmrg	    lt_prog_compiler_static_CXX='-Bstatic'
15162a4f78defSmrg	    ;;
15163a4f78defSmrg	  cxx*)
15164a4f78defSmrg	    # Compaq C++
15165a4f78defSmrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
15166a4f78defSmrg	    # Linux and Compaq Tru64 Unix objects are PIC.
15167a4f78defSmrg	    lt_prog_compiler_pic_CXX=
15168a4f78defSmrg	    lt_prog_compiler_static_CXX='-non_shared'
15169a4f78defSmrg	    ;;
15170a4f78defSmrg	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15171a4f78defSmrg	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15172a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15173a4f78defSmrg	    lt_prog_compiler_pic_CXX='-qpic'
15174a4f78defSmrg	    lt_prog_compiler_static_CXX='-qstaticlink'
15175a4f78defSmrg	    ;;
15176a4f78defSmrg	  *)
15177a4f78defSmrg	    case `$CC -V 2>&1 | sed 5q` in
15178a4f78defSmrg	    *Sun\ C*)
15179a4f78defSmrg	      # Sun C++ 5.9
15180a4f78defSmrg	      lt_prog_compiler_pic_CXX='-KPIC'
15181a4f78defSmrg	      lt_prog_compiler_static_CXX='-Bstatic'
15182a4f78defSmrg	      lt_prog_compiler_wl_CXX='-Qoption ld '
15183a4f78defSmrg	      ;;
15184a4f78defSmrg	    esac
15185a4f78defSmrg	    ;;
15186a4f78defSmrg	esac
15187a4f78defSmrg	;;
15188a4f78defSmrg      lynxos*)
15189a4f78defSmrg	;;
15190a4f78defSmrg      m88k*)
15191a4f78defSmrg	;;
15192a4f78defSmrg      mvs*)
15193a4f78defSmrg	case $cc_basename in
15194a4f78defSmrg	  cxx*)
15195a4f78defSmrg	    lt_prog_compiler_pic_CXX='-W c,exportall'
15196a4f78defSmrg	    ;;
15197a4f78defSmrg	  *)
15198a4f78defSmrg	    ;;
15199a4f78defSmrg	esac
15200a4f78defSmrg	;;
15201a4f78defSmrg      netbsd*)
15202a4f78defSmrg	;;
15203a4f78defSmrg      *qnx* | *nto*)
15204a4f78defSmrg        # QNX uses GNU C++, but need to define -shared option too, otherwise
15205a4f78defSmrg        # it will coredump.
15206a4f78defSmrg        lt_prog_compiler_pic_CXX='-fPIC -shared'
15207a4f78defSmrg        ;;
15208a4f78defSmrg      osf3* | osf4* | osf5*)
15209a4f78defSmrg	case $cc_basename in
15210a4f78defSmrg	  KCC*)
15211a4f78defSmrg	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15212a4f78defSmrg	    ;;
15213a4f78defSmrg	  RCC*)
15214a4f78defSmrg	    # Rational C++ 2.4.1
15215a4f78defSmrg	    lt_prog_compiler_pic_CXX='-pic'
15216a4f78defSmrg	    ;;
15217a4f78defSmrg	  cxx*)
15218a4f78defSmrg	    # Digital/Compaq C++
15219a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15220a4f78defSmrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
15221a4f78defSmrg	    # Linux and Compaq Tru64 Unix objects are PIC.
15222a4f78defSmrg	    lt_prog_compiler_pic_CXX=
15223a4f78defSmrg	    lt_prog_compiler_static_CXX='-non_shared'
15224a4f78defSmrg	    ;;
15225a4f78defSmrg	  *)
15226a4f78defSmrg	    ;;
15227a4f78defSmrg	esac
15228a4f78defSmrg	;;
15229a4f78defSmrg      psos*)
15230a4f78defSmrg	;;
15231a4f78defSmrg      solaris*)
15232a4f78defSmrg	case $cc_basename in
15233a4f78defSmrg	  CC* | sunCC*)
15234a4f78defSmrg	    # Sun C++ 4.2, 5.x and Centerline C++
15235a4f78defSmrg	    lt_prog_compiler_pic_CXX='-KPIC'
15236a4f78defSmrg	    lt_prog_compiler_static_CXX='-Bstatic'
15237a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Qoption ld '
15238a4f78defSmrg	    ;;
15239a4f78defSmrg	  gcx*)
15240a4f78defSmrg	    # Green Hills C++ Compiler
15241a4f78defSmrg	    lt_prog_compiler_pic_CXX='-PIC'
15242a4f78defSmrg	    ;;
15243a4f78defSmrg	  *)
15244a4f78defSmrg	    ;;
15245a4f78defSmrg	esac
15246a4f78defSmrg	;;
15247a4f78defSmrg      sunos4*)
15248a4f78defSmrg	case $cc_basename in
15249a4f78defSmrg	  CC*)
15250a4f78defSmrg	    # Sun C++ 4.x
15251a4f78defSmrg	    lt_prog_compiler_pic_CXX='-pic'
15252a4f78defSmrg	    lt_prog_compiler_static_CXX='-Bstatic'
15253a4f78defSmrg	    ;;
15254a4f78defSmrg	  lcc*)
15255a4f78defSmrg	    # Lucid
15256a4f78defSmrg	    lt_prog_compiler_pic_CXX='-pic'
15257a4f78defSmrg	    ;;
15258a4f78defSmrg	  *)
15259a4f78defSmrg	    ;;
15260a4f78defSmrg	esac
15261a4f78defSmrg	;;
15262a4f78defSmrg      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15263a4f78defSmrg	case $cc_basename in
15264a4f78defSmrg	  CC*)
15265a4f78defSmrg	    lt_prog_compiler_wl_CXX='-Wl,'
15266a4f78defSmrg	    lt_prog_compiler_pic_CXX='-KPIC'
15267a4f78defSmrg	    lt_prog_compiler_static_CXX='-Bstatic'
15268a4f78defSmrg	    ;;
15269a4f78defSmrg	esac
15270a4f78defSmrg	;;
15271a4f78defSmrg      tandem*)
15272a4f78defSmrg	case $cc_basename in
15273a4f78defSmrg	  NCC*)
15274a4f78defSmrg	    # NonStop-UX NCC 3.20
15275a4f78defSmrg	    lt_prog_compiler_pic_CXX='-KPIC'
15276a4f78defSmrg	    ;;
15277a4f78defSmrg	  *)
15278a4f78defSmrg	    ;;
15279a4f78defSmrg	esac
15280a4f78defSmrg	;;
15281a4f78defSmrg      vxworks*)
15282a4f78defSmrg	;;
15283a4f78defSmrg      *)
15284a4f78defSmrg	lt_prog_compiler_can_build_shared_CXX=no
15285a4f78defSmrg	;;
15286a4f78defSmrg    esac
15287a4f78defSmrg  fi
15288a4f78defSmrg
15289a4f78defSmrgcase $host_os in
15290a4f78defSmrg  # For platforms that do not support PIC, -DPIC is meaningless:
15291a4f78defSmrg  *djgpp*)
15292a4f78defSmrg    lt_prog_compiler_pic_CXX=
15293a4f78defSmrg    ;;
15294a4f78defSmrg  *)
15295a4f78defSmrg    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15296a4f78defSmrg    ;;
15297a4f78defSmrgesac
15298a4f78defSmrg
15299a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15300a4f78defSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15301a4f78defSmrgif ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15302a4f78defSmrg  $as_echo_n "(cached) " >&6
15303a4f78defSmrgelse
15304a4f78defSmrg  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15305a4f78defSmrgfi
15306a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15307a4f78defSmrg$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15308a4f78defSmrglt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15309a4f78defSmrg
15310a4f78defSmrg#
15311a4f78defSmrg# Check to make sure the PIC flag actually works.
15312a4f78defSmrg#
15313a4f78defSmrgif test -n "$lt_prog_compiler_pic_CXX"; then
15314a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15315a4f78defSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15316a4f78defSmrgif ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15317a4f78defSmrg  $as_echo_n "(cached) " >&6
15318a4f78defSmrgelse
15319a4f78defSmrg  lt_cv_prog_compiler_pic_works_CXX=no
15320a4f78defSmrg   ac_outfile=conftest.$ac_objext
15321a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15322a4f78defSmrg   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15323a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
15324a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
15325a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
15326a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
15327a4f78defSmrg   # The option is referenced via a variable to avoid confusing sed.
15328a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
15329a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15330a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15331a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
15332a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15333a4f78defSmrg   (eval "$lt_compile" 2>conftest.err)
15334a4f78defSmrg   ac_status=$?
15335a4f78defSmrg   cat conftest.err >&5
15336a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337a4f78defSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
15338a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
15339a4f78defSmrg     # So say no if there are warnings other than the usual output.
15340a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15341a4f78defSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15342a4f78defSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15343a4f78defSmrg       lt_cv_prog_compiler_pic_works_CXX=yes
15344a4f78defSmrg     fi
15345a4f78defSmrg   fi
15346a4f78defSmrg   $RM conftest*
15347a4f78defSmrg
15348a4f78defSmrgfi
15349a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15350a4f78defSmrg$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15351a4f78defSmrg
15352a4f78defSmrgif test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15353a4f78defSmrg    case $lt_prog_compiler_pic_CXX in
15354a4f78defSmrg     "" | " "*) ;;
15355a4f78defSmrg     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15356a4f78defSmrg     esac
15357a4f78defSmrgelse
15358a4f78defSmrg    lt_prog_compiler_pic_CXX=
15359a4f78defSmrg     lt_prog_compiler_can_build_shared_CXX=no
15360a4f78defSmrgfi
15361a4f78defSmrg
15362a4f78defSmrgfi
15363a4f78defSmrg
15364a4f78defSmrg
15365a4f78defSmrg
15366a4f78defSmrg
15367a4f78defSmrg
15368a4f78defSmrg#
15369a4f78defSmrg# Check to make sure the static flag actually works.
15370a4f78defSmrg#
15371a4f78defSmrgwl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15372a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15373a4f78defSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15374a4f78defSmrgif ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15375a4f78defSmrg  $as_echo_n "(cached) " >&6
15376a4f78defSmrgelse
15377a4f78defSmrg  lt_cv_prog_compiler_static_works_CXX=no
15378a4f78defSmrg   save_LDFLAGS=$LDFLAGS
15379a4f78defSmrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15380a4f78defSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15381a4f78defSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15382a4f78defSmrg     # The linker can only warn and ignore the option if not recognized
15383a4f78defSmrg     # So say no if there are warnings
15384a4f78defSmrg     if test -s conftest.err; then
15385a4f78defSmrg       # Append any errors to the config.log.
15386a4f78defSmrg       cat conftest.err 1>&5
15387a4f78defSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15388a4f78defSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15389a4f78defSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
15390a4f78defSmrg         lt_cv_prog_compiler_static_works_CXX=yes
15391a4f78defSmrg       fi
15392a4f78defSmrg     else
15393a4f78defSmrg       lt_cv_prog_compiler_static_works_CXX=yes
15394a4f78defSmrg     fi
15395a4f78defSmrg   fi
15396a4f78defSmrg   $RM -r conftest*
15397a4f78defSmrg   LDFLAGS=$save_LDFLAGS
15398a4f78defSmrg
15399a4f78defSmrgfi
15400a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15401a4f78defSmrg$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15402a4f78defSmrg
15403a4f78defSmrgif test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15404a4f78defSmrg    :
15405a4f78defSmrgelse
15406a4f78defSmrg    lt_prog_compiler_static_CXX=
15407a4f78defSmrgfi
15408a4f78defSmrg
15409a4f78defSmrg
15410a4f78defSmrg
15411a4f78defSmrg
15412a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15413a4f78defSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15414a4f78defSmrgif ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15415a4f78defSmrg  $as_echo_n "(cached) " >&6
15416a4f78defSmrgelse
15417a4f78defSmrg  lt_cv_prog_compiler_c_o_CXX=no
15418a4f78defSmrg   $RM -r conftest 2>/dev/null
15419a4f78defSmrg   mkdir conftest
15420a4f78defSmrg   cd conftest
15421a4f78defSmrg   mkdir out
15422a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15423a4f78defSmrg
15424a4f78defSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
15425a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
15426a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
15427a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
15428a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
15429a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
15430a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15431a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
15433a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15434a4f78defSmrg   (eval "$lt_compile" 2>out/conftest.err)
15435a4f78defSmrg   ac_status=$?
15436a4f78defSmrg   cat out/conftest.err >&5
15437a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438a4f78defSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439a4f78defSmrg   then
15440a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
15441a4f78defSmrg     # So say no if there are warnings
15442a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15443a4f78defSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15444a4f78defSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15445a4f78defSmrg       lt_cv_prog_compiler_c_o_CXX=yes
15446a4f78defSmrg     fi
15447a4f78defSmrg   fi
15448a4f78defSmrg   chmod u+w . 2>&5
15449a4f78defSmrg   $RM conftest*
15450a4f78defSmrg   # SGI C++ compiler will create directory out/ii_files/ for
15451a4f78defSmrg   # template instantiation
15452a4f78defSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15453a4f78defSmrg   $RM out/* && rmdir out
15454a4f78defSmrg   cd ..
15455a4f78defSmrg   $RM -r conftest
15456a4f78defSmrg   $RM conftest*
15457a4f78defSmrg
15458a4f78defSmrgfi
15459a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15460a4f78defSmrg$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15461a4f78defSmrg
15462a4f78defSmrg
15463a4f78defSmrg
15464a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15465a4f78defSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15466a4f78defSmrgif ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15467a4f78defSmrg  $as_echo_n "(cached) " >&6
15468a4f78defSmrgelse
15469a4f78defSmrg  lt_cv_prog_compiler_c_o_CXX=no
15470a4f78defSmrg   $RM -r conftest 2>/dev/null
15471a4f78defSmrg   mkdir conftest
15472a4f78defSmrg   cd conftest
15473a4f78defSmrg   mkdir out
15474a4f78defSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475a4f78defSmrg
15476a4f78defSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
15477a4f78defSmrg   # Insert the option either (1) after the last *FLAGS variable, or
15478a4f78defSmrg   # (2) before a word containing "conftest.", or (3) at the end.
15479a4f78defSmrg   # Note that $ac_compile itself does not contain backslashes and begins
15480a4f78defSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
15481a4f78defSmrg   lt_compile=`echo "$ac_compile" | $SED \
15482a4f78defSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15483a4f78defSmrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15484a4f78defSmrg   -e 's:$: $lt_compiler_flag:'`
15485a4f78defSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15486a4f78defSmrg   (eval "$lt_compile" 2>out/conftest.err)
15487a4f78defSmrg   ac_status=$?
15488a4f78defSmrg   cat out/conftest.err >&5
15489a4f78defSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490a4f78defSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15491a4f78defSmrg   then
15492a4f78defSmrg     # The compiler can only warn and ignore the option if not recognized
15493a4f78defSmrg     # So say no if there are warnings
15494a4f78defSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15495a4f78defSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15496a4f78defSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15497a4f78defSmrg       lt_cv_prog_compiler_c_o_CXX=yes
15498a4f78defSmrg     fi
15499a4f78defSmrg   fi
15500a4f78defSmrg   chmod u+w . 2>&5
15501a4f78defSmrg   $RM conftest*
15502a4f78defSmrg   # SGI C++ compiler will create directory out/ii_files/ for
15503a4f78defSmrg   # template instantiation
15504a4f78defSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15505a4f78defSmrg   $RM out/* && rmdir out
15506a4f78defSmrg   cd ..
15507a4f78defSmrg   $RM -r conftest
15508a4f78defSmrg   $RM conftest*
15509a4f78defSmrg
15510a4f78defSmrgfi
15511a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15512a4f78defSmrg$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15513a4f78defSmrg
15514a4f78defSmrg
15515a4f78defSmrg
15516a4f78defSmrg
15517a4f78defSmrghard_links=nottested
15518a4f78defSmrgif test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15519a4f78defSmrg  # do not overwrite the value of need_locks provided by the user
15520a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15521a4f78defSmrg$as_echo_n "checking if we can lock with hard links... " >&6; }
15522a4f78defSmrg  hard_links=yes
15523a4f78defSmrg  $RM conftest*
15524a4f78defSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15525a4f78defSmrg  touch conftest.a
15526a4f78defSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
15527a4f78defSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15528a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15529a4f78defSmrg$as_echo "$hard_links" >&6; }
15530a4f78defSmrg  if test no = "$hard_links"; then
15531a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15532a4f78defSmrg$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15533a4f78defSmrg    need_locks=warn
15534a4f78defSmrg  fi
15535a4f78defSmrgelse
15536a4f78defSmrg  need_locks=no
15537a4f78defSmrgfi
15538a4f78defSmrg
15539a4f78defSmrg
15540a4f78defSmrg
15541a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15542a4f78defSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15543a4f78defSmrg
15544a4f78defSmrg  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15545a4f78defSmrg  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15546a4f78defSmrg  case $host_os in
15547a4f78defSmrg  aix[4-9]*)
15548a4f78defSmrg    # If we're using GNU nm, then we don't want the "-C" option.
15549a4f78defSmrg    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15550a4f78defSmrg    # Without the "-l" option, or with the "-B" option, AIX nm treats
15551a4f78defSmrg    # weak defined symbols like other global defined symbols, whereas
15552a4f78defSmrg    # GNU nm marks them as "W".
15553a4f78defSmrg    # While the 'weak' keyword is ignored in the Export File, we need
15554a4f78defSmrg    # it in the Import File for the 'aix-soname' feature, so we have
15555a4f78defSmrg    # to replace the "-B" option with "-P" for AIX nm.
15556a4f78defSmrg    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15557a4f78defSmrg      export_symbols_cmds_CXX='$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'
15558a4f78defSmrg    else
15559a4f78defSmrg      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15560a4f78defSmrg    fi
15561a4f78defSmrg    ;;
15562a4f78defSmrg  pw32*)
15563a4f78defSmrg    export_symbols_cmds_CXX=$ltdll_cmds
15564a4f78defSmrg    ;;
15565a4f78defSmrg  cygwin* | mingw* | cegcc*)
15566a4f78defSmrg    case $cc_basename in
15567a4f78defSmrg    cl*)
15568a4f78defSmrg      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15569a4f78defSmrg      ;;
15570a4f78defSmrg    *)
15571a4f78defSmrg      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15572a4f78defSmrg      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15573a4f78defSmrg      ;;
15574a4f78defSmrg    esac
15575a4f78defSmrg    ;;
15576a4f78defSmrg  *)
15577a4f78defSmrg    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15578a4f78defSmrg    ;;
15579a4f78defSmrg  esac
15580a4f78defSmrg
15581a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15582a4f78defSmrg$as_echo "$ld_shlibs_CXX" >&6; }
15583a4f78defSmrgtest no = "$ld_shlibs_CXX" && can_build_shared=no
15584a4f78defSmrg
15585a4f78defSmrgwith_gnu_ld_CXX=$with_gnu_ld
15586a4f78defSmrg
15587a4f78defSmrg
15588a4f78defSmrg
15589a4f78defSmrg
15590a4f78defSmrg
15591a4f78defSmrg
15592a4f78defSmrg#
15593a4f78defSmrg# Do we need to explicitly link libc?
15594a4f78defSmrg#
15595a4f78defSmrgcase "x$archive_cmds_need_lc_CXX" in
15596a4f78defSmrgx|xyes)
15597a4f78defSmrg  # Assume -lc should be added
15598a4f78defSmrg  archive_cmds_need_lc_CXX=yes
15599a4f78defSmrg
15600a4f78defSmrg  if test yes,yes = "$GCC,$enable_shared"; then
15601a4f78defSmrg    case $archive_cmds_CXX in
15602a4f78defSmrg    *'~'*)
15603a4f78defSmrg      # FIXME: we may have to deal with multi-command sequences.
15604a4f78defSmrg      ;;
15605a4f78defSmrg    '$CC '*)
15606a4f78defSmrg      # Test whether the compiler implicitly links with -lc since on some
15607a4f78defSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15608a4f78defSmrg      # to ld, don't add -lc before -lgcc.
15609a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15610a4f78defSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15611a4f78defSmrgif ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15612a4f78defSmrg  $as_echo_n "(cached) " >&6
15613a4f78defSmrgelse
15614a4f78defSmrg  $RM conftest*
15615a4f78defSmrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15616a4f78defSmrg
15617a4f78defSmrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15618a4f78defSmrg  (eval $ac_compile) 2>&5
15619a4f78defSmrg  ac_status=$?
15620a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15621a4f78defSmrg  test $ac_status = 0; } 2>conftest.err; then
15622a4f78defSmrg	  soname=conftest
15623a4f78defSmrg	  lib=conftest
15624a4f78defSmrg	  libobjs=conftest.$ac_objext
15625a4f78defSmrg	  deplibs=
15626a4f78defSmrg	  wl=$lt_prog_compiler_wl_CXX
15627a4f78defSmrg	  pic_flag=$lt_prog_compiler_pic_CXX
15628a4f78defSmrg	  compiler_flags=-v
15629a4f78defSmrg	  linker_flags=-v
15630a4f78defSmrg	  verstring=
15631a4f78defSmrg	  output_objdir=.
15632a4f78defSmrg	  libname=conftest
15633a4f78defSmrg	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15634a4f78defSmrg	  allow_undefined_flag_CXX=
15635a4f78defSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15636a4f78defSmrg  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15637a4f78defSmrg  ac_status=$?
15638a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15639a4f78defSmrg  test $ac_status = 0; }
15640a4f78defSmrg	  then
15641a4f78defSmrg	    lt_cv_archive_cmds_need_lc_CXX=no
15642a4f78defSmrg	  else
15643a4f78defSmrg	    lt_cv_archive_cmds_need_lc_CXX=yes
15644a4f78defSmrg	  fi
15645a4f78defSmrg	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15646a4f78defSmrg	else
15647a4f78defSmrg	  cat conftest.err 1>&5
15648a4f78defSmrg	fi
15649a4f78defSmrg	$RM conftest*
15650a4f78defSmrg
15651a4f78defSmrgfi
15652a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15653a4f78defSmrg$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15654a4f78defSmrg      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15655a4f78defSmrg      ;;
15656a4f78defSmrg    esac
15657a4f78defSmrg  fi
15658a4f78defSmrg  ;;
15659a4f78defSmrgesac
15660a4f78defSmrg
15661a4f78defSmrg
15662a4f78defSmrg
15663a4f78defSmrg
15664a4f78defSmrg
15665a4f78defSmrg
15666a4f78defSmrg
15667a4f78defSmrg
15668a4f78defSmrg
15669a4f78defSmrg
15670a4f78defSmrg
15671a4f78defSmrg
15672a4f78defSmrg
15673a4f78defSmrg
15674a4f78defSmrg
15675a4f78defSmrg
15676a4f78defSmrg
15677a4f78defSmrg
15678a4f78defSmrg
15679a4f78defSmrg
15680a4f78defSmrg
15681a4f78defSmrg
15682a4f78defSmrg
15683a4f78defSmrg
15684a4f78defSmrg
15685a4f78defSmrg
15686a4f78defSmrg
15687a4f78defSmrg
15688a4f78defSmrg
15689a4f78defSmrg
15690a4f78defSmrg
15691a4f78defSmrg
15692a4f78defSmrg
15693a4f78defSmrg
15694a4f78defSmrg
15695a4f78defSmrg
15696a4f78defSmrg
15697a4f78defSmrg
15698a4f78defSmrg
15699a4f78defSmrg
15700a4f78defSmrg
15701a4f78defSmrg
15702a4f78defSmrg
15703a4f78defSmrg
15704a4f78defSmrg
15705a4f78defSmrg
15706a4f78defSmrg
15707a4f78defSmrg
15708a4f78defSmrg
15709a4f78defSmrg
15710a4f78defSmrg
15711a4f78defSmrg
15712a4f78defSmrg
15713a4f78defSmrg
15714a4f78defSmrg
15715a4f78defSmrg
15716a4f78defSmrg
15717a4f78defSmrg
15718a4f78defSmrg
15719a4f78defSmrg
15720a4f78defSmrg
15721a4f78defSmrg
15722a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15723a4f78defSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
15724a4f78defSmrg
15725a4f78defSmrglibrary_names_spec=
15726a4f78defSmrglibname_spec='lib$name'
15727a4f78defSmrgsoname_spec=
15728a4f78defSmrgshrext_cmds=.so
15729a4f78defSmrgpostinstall_cmds=
15730a4f78defSmrgpostuninstall_cmds=
15731a4f78defSmrgfinish_cmds=
15732a4f78defSmrgfinish_eval=
15733a4f78defSmrgshlibpath_var=
15734a4f78defSmrgshlibpath_overrides_runpath=unknown
15735a4f78defSmrgversion_type=none
15736a4f78defSmrgdynamic_linker="$host_os ld.so"
15737a4f78defSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
15738a4f78defSmrgneed_lib_prefix=unknown
15739a4f78defSmrghardcode_into_libs=no
15740a4f78defSmrg
15741a4f78defSmrg# when you set need_version to no, make sure it does not cause -set_version
15742a4f78defSmrg# flags to be left without arguments
15743a4f78defSmrgneed_version=unknown
15744a4f78defSmrg
15745a4f78defSmrg
15746a4f78defSmrg
15747a4f78defSmrgcase $host_os in
15748a4f78defSmrgaix3*)
15749a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
15750a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15751a4f78defSmrg  shlibpath_var=LIBPATH
15752a4f78defSmrg
15753a4f78defSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
15754a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
15755a4f78defSmrg  ;;
15756a4f78defSmrg
15757a4f78defSmrgaix[4-9]*)
15758a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
15759a4f78defSmrg  need_lib_prefix=no
15760a4f78defSmrg  need_version=no
15761a4f78defSmrg  hardcode_into_libs=yes
15762a4f78defSmrg  if test ia64 = "$host_cpu"; then
15763a4f78defSmrg    # AIX 5 supports IA64
15764a4f78defSmrg    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15765a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
15766a4f78defSmrg  else
15767a4f78defSmrg    # With GCC up to 2.95.x, collect2 would create an import file
15768a4f78defSmrg    # for dependence libraries.  The import file would start with
15769a4f78defSmrg    # the line '#! .'.  This would cause the generated library to
15770a4f78defSmrg    # depend on '.', always an invalid library.  This was fixed in
15771a4f78defSmrg    # development snapshots of GCC prior to 3.0.
15772a4f78defSmrg    case $host_os in
15773a4f78defSmrg      aix4 | aix4.[01] | aix4.[01].*)
15774a4f78defSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15775a4f78defSmrg	   echo ' yes '
15776a4f78defSmrg	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15777a4f78defSmrg	:
15778a4f78defSmrg      else
15779a4f78defSmrg	can_build_shared=no
15780a4f78defSmrg      fi
15781a4f78defSmrg      ;;
15782a4f78defSmrg    esac
15783a4f78defSmrg    # Using Import Files as archive members, it is possible to support
15784a4f78defSmrg    # filename-based versioning of shared library archives on AIX. While
15785a4f78defSmrg    # this would work for both with and without runtime linking, it will
15786a4f78defSmrg    # prevent static linking of such archives. So we do filename-based
15787a4f78defSmrg    # shared library versioning with .so extension only, which is used
15788a4f78defSmrg    # when both runtime linking and shared linking is enabled.
15789a4f78defSmrg    # Unfortunately, runtime linking may impact performance, so we do
15790a4f78defSmrg    # not want this to be the default eventually. Also, we use the
15791a4f78defSmrg    # versioned .so libs for executables only if there is the -brtl
15792a4f78defSmrg    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15793a4f78defSmrg    # To allow for filename-based versioning support, we need to create
15794a4f78defSmrg    # libNAME.so.V as an archive file, containing:
15795a4f78defSmrg    # *) an Import File, referring to the versioned filename of the
15796a4f78defSmrg    #    archive as well as the shared archive member, telling the
15797a4f78defSmrg    #    bitwidth (32 or 64) of that shared object, and providing the
15798a4f78defSmrg    #    list of exported symbols of that shared object, eventually
15799a4f78defSmrg    #    decorated with the 'weak' keyword
15800a4f78defSmrg    # *) the shared object with the F_LOADONLY flag set, to really avoid
15801a4f78defSmrg    #    it being seen by the linker.
15802a4f78defSmrg    # At run time we better use the real file rather than another symlink,
15803a4f78defSmrg    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15804a4f78defSmrg
15805a4f78defSmrg    case $with_aix_soname,$aix_use_runtimelinking in
15806a4f78defSmrg    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15807a4f78defSmrg    # soname into executable. Probably we can add versioning support to
15808a4f78defSmrg    # collect2, so additional links can be useful in future.
15809a4f78defSmrg    aix,yes) # traditional libtool
15810a4f78defSmrg      dynamic_linker='AIX unversionable lib.so'
15811a4f78defSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15812a4f78defSmrg      # instead of lib<name>.a to let people know that these are not
15813a4f78defSmrg      # typical AIX shared libraries.
15814a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15815a4f78defSmrg      ;;
15816a4f78defSmrg    aix,no) # traditional AIX only
15817a4f78defSmrg      dynamic_linker='AIX lib.a(lib.so.V)'
15818a4f78defSmrg      # We preserve .a as extension for shared libraries through AIX4.2
15819a4f78defSmrg      # and later when we are not doing run time linking.
15820a4f78defSmrg      library_names_spec='$libname$release.a $libname.a'
15821a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
15822a4f78defSmrg      ;;
15823a4f78defSmrg    svr4,*) # full svr4 only
15824a4f78defSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15825a4f78defSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15826a4f78defSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
15827a4f78defSmrg      shlibpath_overrides_runpath=yes
15828a4f78defSmrg      ;;
15829a4f78defSmrg    *,yes) # both, prefer svr4
15830a4f78defSmrg      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15831a4f78defSmrg      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15832a4f78defSmrg      # unpreferred sharedlib libNAME.a needs extra handling
15833a4f78defSmrg      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"'
15834a4f78defSmrg      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"'
15835a4f78defSmrg      # We do not specify a path in Import Files, so LIBPATH fires.
15836a4f78defSmrg      shlibpath_overrides_runpath=yes
15837a4f78defSmrg      ;;
15838a4f78defSmrg    *,no) # both, prefer aix
15839a4f78defSmrg      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15840a4f78defSmrg      library_names_spec='$libname$release.a $libname.a'
15841a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
15842a4f78defSmrg      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15843a4f78defSmrg      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)'
15844a4f78defSmrg      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"'
15845a4f78defSmrg      ;;
15846a4f78defSmrg    esac
15847a4f78defSmrg    shlibpath_var=LIBPATH
15848a4f78defSmrg  fi
15849a4f78defSmrg  ;;
15850a4f78defSmrg
15851a4f78defSmrgamigaos*)
15852a4f78defSmrg  case $host_cpu in
15853a4f78defSmrg  powerpc)
15854a4f78defSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
15855a4f78defSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15856a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15857a4f78defSmrg    ;;
15858a4f78defSmrg  m68k)
15859a4f78defSmrg    library_names_spec='$libname.ixlibrary $libname.a'
15860a4f78defSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15861a4f78defSmrg    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'
15862a4f78defSmrg    ;;
15863a4f78defSmrg  esac
15864a4f78defSmrg  ;;
15865a4f78defSmrg
15866a4f78defSmrgbeos*)
15867a4f78defSmrg  library_names_spec='$libname$shared_ext'
15868a4f78defSmrg  dynamic_linker="$host_os ld.so"
15869a4f78defSmrg  shlibpath_var=LIBRARY_PATH
15870a4f78defSmrg  ;;
15871a4f78defSmrg
15872a4f78defSmrgbsdi[45]*)
15873a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
15874a4f78defSmrg  need_version=no
15875a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15876a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
15877a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15878a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
15879a4f78defSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15880a4f78defSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15881a4f78defSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
15882a4f78defSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15883a4f78defSmrg  # libtool to hard-code these into programs
15884a4f78defSmrg  ;;
15885a4f78defSmrg
15886a4f78defSmrgcygwin* | mingw* | pw32* | cegcc*)
15887a4f78defSmrg  version_type=windows
15888a4f78defSmrg  shrext_cmds=.dll
15889a4f78defSmrg  need_version=no
15890a4f78defSmrg  need_lib_prefix=no
15891a4f78defSmrg
15892a4f78defSmrg  case $GCC,$cc_basename in
15893a4f78defSmrg  yes,*)
15894a4f78defSmrg    # gcc
15895a4f78defSmrg    library_names_spec='$libname.dll.a'
15896a4f78defSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15897a4f78defSmrg    postinstall_cmds='base_file=`basename \$file`~
15898a4f78defSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15899a4f78defSmrg      dldir=$destdir/`dirname \$dlpath`~
15900a4f78defSmrg      test -d \$dldir || mkdir -p \$dldir~
15901a4f78defSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
15902a4f78defSmrg      chmod a+x \$dldir/$dlname~
15903a4f78defSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15904a4f78defSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15905a4f78defSmrg      fi'
15906a4f78defSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15907a4f78defSmrg      dlpath=$dir/\$dldll~
15908a4f78defSmrg       $RM \$dlpath'
15909a4f78defSmrg    shlibpath_overrides_runpath=yes
15910a4f78defSmrg
15911a4f78defSmrg    case $host_os in
15912a4f78defSmrg    cygwin*)
15913a4f78defSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15914a4f78defSmrg      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15915a4f78defSmrg
15916a4f78defSmrg      ;;
15917a4f78defSmrg    mingw* | cegcc*)
15918a4f78defSmrg      # MinGW DLLs use traditional 'lib' prefix
15919a4f78defSmrg      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15920a4f78defSmrg      ;;
15921a4f78defSmrg    pw32*)
15922a4f78defSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
15923a4f78defSmrg      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15924a4f78defSmrg      ;;
15925a4f78defSmrg    esac
15926a4f78defSmrg    dynamic_linker='Win32 ld.exe'
15927a4f78defSmrg    ;;
15928a4f78defSmrg
15929a4f78defSmrg  *,cl*)
15930a4f78defSmrg    # Native MSVC
15931a4f78defSmrg    libname_spec='$name'
15932a4f78defSmrg    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15933a4f78defSmrg    library_names_spec='$libname.dll.lib'
15934a4f78defSmrg
15935a4f78defSmrg    case $build_os in
15936a4f78defSmrg    mingw*)
15937a4f78defSmrg      sys_lib_search_path_spec=
15938a4f78defSmrg      lt_save_ifs=$IFS
15939a4f78defSmrg      IFS=';'
15940a4f78defSmrg      for lt_path in $LIB
15941a4f78defSmrg      do
15942a4f78defSmrg        IFS=$lt_save_ifs
15943a4f78defSmrg        # Let DOS variable expansion print the short 8.3 style file name.
15944a4f78defSmrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15945a4f78defSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15946a4f78defSmrg      done
15947a4f78defSmrg      IFS=$lt_save_ifs
15948a4f78defSmrg      # Convert to MSYS style.
15949a4f78defSmrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15950a4f78defSmrg      ;;
15951a4f78defSmrg    cygwin*)
15952a4f78defSmrg      # Convert to unix form, then to dos form, then back to unix form
15953a4f78defSmrg      # but this time dos style (no spaces!) so that the unix form looks
15954a4f78defSmrg      # like /cygdrive/c/PROGRA~1:/cygdr...
15955a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15956a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15957a4f78defSmrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15958a4f78defSmrg      ;;
15959a4f78defSmrg    *)
15960a4f78defSmrg      sys_lib_search_path_spec=$LIB
15961a4f78defSmrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15962a4f78defSmrg        # It is most probably a Windows format PATH.
15963a4f78defSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15964a4f78defSmrg      else
15965a4f78defSmrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15966a4f78defSmrg      fi
15967a4f78defSmrg      # FIXME: find the short name or the path components, as spaces are
15968a4f78defSmrg      # common. (e.g. "Program Files" -> "PROGRA~1")
15969a4f78defSmrg      ;;
15970a4f78defSmrg    esac
15971a4f78defSmrg
15972a4f78defSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15973a4f78defSmrg    postinstall_cmds='base_file=`basename \$file`~
15974a4f78defSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15975a4f78defSmrg      dldir=$destdir/`dirname \$dlpath`~
15976a4f78defSmrg      test -d \$dldir || mkdir -p \$dldir~
15977a4f78defSmrg      $install_prog $dir/$dlname \$dldir/$dlname'
15978a4f78defSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15979a4f78defSmrg      dlpath=$dir/\$dldll~
15980a4f78defSmrg       $RM \$dlpath'
15981a4f78defSmrg    shlibpath_overrides_runpath=yes
15982a4f78defSmrg    dynamic_linker='Win32 link.exe'
15983a4f78defSmrg    ;;
15984a4f78defSmrg
15985a4f78defSmrg  *)
15986a4f78defSmrg    # Assume MSVC wrapper
15987a4f78defSmrg    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15988a4f78defSmrg    dynamic_linker='Win32 ld.exe'
15989a4f78defSmrg    ;;
15990a4f78defSmrg  esac
15991a4f78defSmrg  # FIXME: first we should search . and the directory the executable is in
15992a4f78defSmrg  shlibpath_var=PATH
15993a4f78defSmrg  ;;
15994a4f78defSmrg
15995a4f78defSmrgdarwin* | rhapsody*)
15996a4f78defSmrg  dynamic_linker="$host_os dyld"
15997a4f78defSmrg  version_type=darwin
15998a4f78defSmrg  need_lib_prefix=no
15999a4f78defSmrg  need_version=no
16000a4f78defSmrg  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16001a4f78defSmrg  soname_spec='$libname$release$major$shared_ext'
16002a4f78defSmrg  shlibpath_overrides_runpath=yes
16003a4f78defSmrg  shlibpath_var=DYLD_LIBRARY_PATH
16004a4f78defSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16005a4f78defSmrg
16006a4f78defSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16007a4f78defSmrg  ;;
16008a4f78defSmrg
16009a4f78defSmrgdgux*)
16010a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16011a4f78defSmrg  need_lib_prefix=no
16012a4f78defSmrg  need_version=no
16013a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16014a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16015a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16016a4f78defSmrg  ;;
16017a4f78defSmrg
16018a4f78defSmrgfreebsd* | dragonfly*)
16019a4f78defSmrg  # DragonFly does not have aout.  When/if they implement a new
16020a4f78defSmrg  # versioning mechanism, adjust this.
16021a4f78defSmrg  if test -x /usr/bin/objformat; then
16022a4f78defSmrg    objformat=`/usr/bin/objformat`
16023a4f78defSmrg  else
16024a4f78defSmrg    case $host_os in
16025a4f78defSmrg    freebsd[23].*) objformat=aout ;;
16026a4f78defSmrg    *) objformat=elf ;;
16027a4f78defSmrg    esac
16028a4f78defSmrg  fi
16029a4f78defSmrg  version_type=freebsd-$objformat
16030a4f78defSmrg  case $version_type in
16031a4f78defSmrg    freebsd-elf*)
16032a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16033a4f78defSmrg      soname_spec='$libname$release$shared_ext$major'
16034a4f78defSmrg      need_version=no
16035a4f78defSmrg      need_lib_prefix=no
16036a4f78defSmrg      ;;
16037a4f78defSmrg    freebsd-*)
16038a4f78defSmrg      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16039a4f78defSmrg      need_version=yes
16040a4f78defSmrg      ;;
16041a4f78defSmrg  esac
16042a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16043a4f78defSmrg  case $host_os in
16044a4f78defSmrg  freebsd2.*)
16045a4f78defSmrg    shlibpath_overrides_runpath=yes
16046a4f78defSmrg    ;;
16047a4f78defSmrg  freebsd3.[01]* | freebsdelf3.[01]*)
16048a4f78defSmrg    shlibpath_overrides_runpath=yes
16049a4f78defSmrg    hardcode_into_libs=yes
16050a4f78defSmrg    ;;
16051a4f78defSmrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16052a4f78defSmrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16053a4f78defSmrg    shlibpath_overrides_runpath=no
16054a4f78defSmrg    hardcode_into_libs=yes
16055a4f78defSmrg    ;;
16056a4f78defSmrg  *) # from 4.6 on, and DragonFly
16057a4f78defSmrg    shlibpath_overrides_runpath=yes
16058a4f78defSmrg    hardcode_into_libs=yes
16059a4f78defSmrg    ;;
16060a4f78defSmrg  esac
16061a4f78defSmrg  ;;
16062a4f78defSmrg
16063a4f78defSmrghaiku*)
16064a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16065a4f78defSmrg  need_lib_prefix=no
16066a4f78defSmrg  need_version=no
16067a4f78defSmrg  dynamic_linker="$host_os runtime_loader"
16068a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16069a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16070a4f78defSmrg  shlibpath_var=LIBRARY_PATH
16071a4f78defSmrg  shlibpath_overrides_runpath=no
16072a4f78defSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16073a4f78defSmrg  hardcode_into_libs=yes
16074a4f78defSmrg  ;;
16075a4f78defSmrg
16076a4f78defSmrghpux9* | hpux10* | hpux11*)
16077a4f78defSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
16078a4f78defSmrg  # link against other versions.
16079a4f78defSmrg  version_type=sunos
16080a4f78defSmrg  need_lib_prefix=no
16081a4f78defSmrg  need_version=no
16082a4f78defSmrg  case $host_cpu in
16083a4f78defSmrg  ia64*)
16084a4f78defSmrg    shrext_cmds='.so'
16085a4f78defSmrg    hardcode_into_libs=yes
16086a4f78defSmrg    dynamic_linker="$host_os dld.so"
16087a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
16088a4f78defSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16089a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16090a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
16091a4f78defSmrg    if test 32 = "$HPUX_IA64_MODE"; then
16092a4f78defSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16093a4f78defSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16094a4f78defSmrg    else
16095a4f78defSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16096a4f78defSmrg      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16097a4f78defSmrg    fi
16098a4f78defSmrg    ;;
16099a4f78defSmrg  hppa*64*)
16100a4f78defSmrg    shrext_cmds='.sl'
16101a4f78defSmrg    hardcode_into_libs=yes
16102a4f78defSmrg    dynamic_linker="$host_os dld.sl"
16103a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16104a4f78defSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16106a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
16107a4f78defSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16108a4f78defSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16109a4f78defSmrg    ;;
16110a4f78defSmrg  *)
16111a4f78defSmrg    shrext_cmds='.sl'
16112a4f78defSmrg    dynamic_linker="$host_os dld.sl"
16113a4f78defSmrg    shlibpath_var=SHLIB_PATH
16114a4f78defSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16115a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16116a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
16117a4f78defSmrg    ;;
16118a4f78defSmrg  esac
16119a4f78defSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16120a4f78defSmrg  postinstall_cmds='chmod 555 $lib'
16121a4f78defSmrg  # or fails outright, so override atomically:
16122a4f78defSmrg  install_override_mode=555
16123a4f78defSmrg  ;;
16124a4f78defSmrg
16125a4f78defSmrginterix[3-9]*)
16126a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16127a4f78defSmrg  need_lib_prefix=no
16128a4f78defSmrg  need_version=no
16129a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16130a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16131a4f78defSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16132a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16133a4f78defSmrg  shlibpath_overrides_runpath=no
16134a4f78defSmrg  hardcode_into_libs=yes
16135a4f78defSmrg  ;;
16136a4f78defSmrg
16137a4f78defSmrgirix5* | irix6* | nonstopux*)
16138a4f78defSmrg  case $host_os in
16139a4f78defSmrg    nonstopux*) version_type=nonstopux ;;
16140a4f78defSmrg    *)
16141a4f78defSmrg	if test yes = "$lt_cv_prog_gnu_ld"; then
16142a4f78defSmrg		version_type=linux # correct to gnu/linux during the next big refactor
16143a4f78defSmrg	else
16144a4f78defSmrg		version_type=irix
16145a4f78defSmrg	fi ;;
16146a4f78defSmrg  esac
16147a4f78defSmrg  need_lib_prefix=no
16148a4f78defSmrg  need_version=no
16149a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16150a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16151a4f78defSmrg  case $host_os in
16152a4f78defSmrg  irix5* | nonstopux*)
16153a4f78defSmrg    libsuff= shlibsuff=
16154a4f78defSmrg    ;;
16155a4f78defSmrg  *)
16156a4f78defSmrg    case $LD in # libtool.m4 will add one of these switches to LD
16157a4f78defSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16158a4f78defSmrg      libsuff= shlibsuff= libmagic=32-bit;;
16159a4f78defSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16160a4f78defSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
16161a4f78defSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16162a4f78defSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16163a4f78defSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
16164a4f78defSmrg    esac
16165a4f78defSmrg    ;;
16166a4f78defSmrg  esac
16167a4f78defSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16168a4f78defSmrg  shlibpath_overrides_runpath=no
16169a4f78defSmrg  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16170a4f78defSmrg  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16171a4f78defSmrg  hardcode_into_libs=yes
16172a4f78defSmrg  ;;
16173a4f78defSmrg
16174a4f78defSmrg# No shared lib support for Linux oldld, aout, or coff.
16175a4f78defSmrglinux*oldld* | linux*aout* | linux*coff*)
16176a4f78defSmrg  dynamic_linker=no
16177a4f78defSmrg  ;;
16178a4f78defSmrg
16179a4f78defSmrglinux*android*)
16180a4f78defSmrg  version_type=none # Android doesn't support versioned libraries.
16181a4f78defSmrg  need_lib_prefix=no
16182a4f78defSmrg  need_version=no
16183a4f78defSmrg  library_names_spec='$libname$release$shared_ext'
16184a4f78defSmrg  soname_spec='$libname$release$shared_ext'
16185a4f78defSmrg  finish_cmds=
16186a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16187a4f78defSmrg  shlibpath_overrides_runpath=yes
16188a4f78defSmrg
16189a4f78defSmrg  # This implies no fast_install, which is unacceptable.
16190a4f78defSmrg  # Some rework will be needed to allow for fast_install
16191a4f78defSmrg  # before this can be enabled.
16192a4f78defSmrg  hardcode_into_libs=yes
16193a4f78defSmrg
16194a4f78defSmrg  dynamic_linker='Android linker'
16195a4f78defSmrg  # Don't embed -rpath directories since the linker doesn't support them.
16196a4f78defSmrg  hardcode_libdir_flag_spec_CXX='-L$libdir'
16197a4f78defSmrg  ;;
16198a4f78defSmrg
16199a4f78defSmrg# This must be glibc/ELF.
16200a4f78defSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16201a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16202a4f78defSmrg  need_lib_prefix=no
16203a4f78defSmrg  need_version=no
16204a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16205a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16206a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16207a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16208a4f78defSmrg  shlibpath_overrides_runpath=no
16209a4f78defSmrg
16210a4f78defSmrg  # Some binutils ld are patched to set DT_RUNPATH
16211a4f78defSmrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16212a4f78defSmrg  $as_echo_n "(cached) " >&6
16213a4f78defSmrgelse
16214a4f78defSmrg  lt_cv_shlibpath_overrides_runpath=no
16215a4f78defSmrg    save_LDFLAGS=$LDFLAGS
16216a4f78defSmrg    save_libdir=$libdir
16217a4f78defSmrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16218a4f78defSmrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16219a4f78defSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220a4f78defSmrg/* end confdefs.h.  */
16221a4f78defSmrg
16222a4f78defSmrgint
16223a4f78defSmrgmain ()
16224a4f78defSmrg{
16225a4f78defSmrg
16226a4f78defSmrg  ;
16227a4f78defSmrg  return 0;
16228a4f78defSmrg}
16229a4f78defSmrg_ACEOF
16230a4f78defSmrgif ac_fn_cxx_try_link "$LINENO"; then :
16231a4f78defSmrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16232a4f78defSmrg  lt_cv_shlibpath_overrides_runpath=yes
16233a4f78defSmrgfi
16234a4f78defSmrgfi
16235a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
16236a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
16237a4f78defSmrg    LDFLAGS=$save_LDFLAGS
16238a4f78defSmrg    libdir=$save_libdir
16239a4f78defSmrg
16240a4f78defSmrgfi
16241a4f78defSmrg
16242a4f78defSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16243a4f78defSmrg
16244a4f78defSmrg  # This implies no fast_install, which is unacceptable.
16245a4f78defSmrg  # Some rework will be needed to allow for fast_install
16246a4f78defSmrg  # before this can be enabled.
16247a4f78defSmrg  hardcode_into_libs=yes
16248a4f78defSmrg
16249a4f78defSmrg  # Ideally, we could use ldconfig to report *all* directores which are
16250a4f78defSmrg  # searched for libraries, however this is still not possible.  Aside from not
16251a4f78defSmrg  # being certain /sbin/ldconfig is available, command
16252a4f78defSmrg  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16253a4f78defSmrg  # even though it is searched at run-time.  Try to do the best guess by
16254a4f78defSmrg  # appending ld.so.conf contents (and includes) to the search path.
16255a4f78defSmrg  if test -f /etc/ld.so.conf; then
16256a4f78defSmrg    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' ' '`
16257a4f78defSmrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16258a4f78defSmrg  fi
16259a4f78defSmrg
16260a4f78defSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
16261a4f78defSmrg  # powerpc, because MkLinux only supported shared libraries with the
16262a4f78defSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
16263a4f78defSmrg  # most powerpc-linux boxes support dynamic linking these days and
16264a4f78defSmrg  # people can always --disable-shared, the test was removed, and we
16265a4f78defSmrg  # assume the GNU/Linux dynamic linker is in use.
16266a4f78defSmrg  dynamic_linker='GNU/Linux ld.so'
16267a4f78defSmrg  ;;
16268a4f78defSmrg
16269a4f78defSmrgnetbsd*)
16270a4f78defSmrg  version_type=sunos
16271a4f78defSmrg  need_lib_prefix=no
16272a4f78defSmrg  need_version=no
16273a4f78defSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16274a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16275a4f78defSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16276a4f78defSmrg    dynamic_linker='NetBSD (a.out) ld.so'
16277a4f78defSmrg  else
16278a4f78defSmrg    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16279a4f78defSmrg    soname_spec='$libname$release$shared_ext$major'
16280a4f78defSmrg    dynamic_linker='NetBSD ld.elf_so'
16281a4f78defSmrg  fi
16282a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16283a4f78defSmrg  shlibpath_overrides_runpath=yes
16284a4f78defSmrg  hardcode_into_libs=yes
16285a4f78defSmrg  ;;
16286a4f78defSmrg
16287a4f78defSmrgnewsos6)
16288a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16289a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16291a4f78defSmrg  shlibpath_overrides_runpath=yes
16292a4f78defSmrg  ;;
16293a4f78defSmrg
16294a4f78defSmrg*nto* | *qnx*)
16295a4f78defSmrg  version_type=qnx
16296a4f78defSmrg  need_lib_prefix=no
16297a4f78defSmrg  need_version=no
16298a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16299a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16300a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16301a4f78defSmrg  shlibpath_overrides_runpath=no
16302a4f78defSmrg  hardcode_into_libs=yes
16303a4f78defSmrg  dynamic_linker='ldqnx.so'
16304a4f78defSmrg  ;;
16305a4f78defSmrg
16306a4f78defSmrgopenbsd* | bitrig*)
16307a4f78defSmrg  version_type=sunos
16308a4f78defSmrg  sys_lib_dlsearch_path_spec=/usr/lib
16309a4f78defSmrg  need_lib_prefix=no
16310a4f78defSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16311a4f78defSmrg    need_version=no
16312a4f78defSmrg  else
16313a4f78defSmrg    need_version=yes
16314a4f78defSmrg  fi
16315a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16316a4f78defSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16317a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16318a4f78defSmrg  shlibpath_overrides_runpath=yes
16319a4f78defSmrg  ;;
16320a4f78defSmrg
16321a4f78defSmrgos2*)
16322a4f78defSmrg  libname_spec='$name'
16323a4f78defSmrg  version_type=windows
16324a4f78defSmrg  shrext_cmds=.dll
16325a4f78defSmrg  need_version=no
16326a4f78defSmrg  need_lib_prefix=no
16327a4f78defSmrg  # OS/2 can only load a DLL with a base name of 8 characters or less.
16328a4f78defSmrg  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16329a4f78defSmrg    v=$($ECHO $release$versuffix | tr -d .-);
16330a4f78defSmrg    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16331a4f78defSmrg    $ECHO $n$v`$shared_ext'
16332a4f78defSmrg  library_names_spec='${libname}_dll.$libext'
16333a4f78defSmrg  dynamic_linker='OS/2 ld.exe'
16334a4f78defSmrg  shlibpath_var=BEGINLIBPATH
16335a4f78defSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16336a4f78defSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337a4f78defSmrg  postinstall_cmds='base_file=`basename \$file`~
16338a4f78defSmrg    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16339a4f78defSmrg    dldir=$destdir/`dirname \$dlpath`~
16340a4f78defSmrg    test -d \$dldir || mkdir -p \$dldir~
16341a4f78defSmrg    $install_prog $dir/$dlname \$dldir/$dlname~
16342a4f78defSmrg    chmod a+x \$dldir/$dlname~
16343a4f78defSmrg    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16344a4f78defSmrg      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16345a4f78defSmrg    fi'
16346a4f78defSmrg  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16347a4f78defSmrg    dlpath=$dir/\$dldll~
16348a4f78defSmrg    $RM \$dlpath'
16349a4f78defSmrg  ;;
16350a4f78defSmrg
16351a4f78defSmrgosf3* | osf4* | osf5*)
16352a4f78defSmrg  version_type=osf
16353a4f78defSmrg  need_lib_prefix=no
16354a4f78defSmrg  need_version=no
16355a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16356a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16357a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16358a4f78defSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16359a4f78defSmrg  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16360a4f78defSmrg  ;;
16361a4f78defSmrg
16362a4f78defSmrgrdos*)
16363a4f78defSmrg  dynamic_linker=no
16364a4f78defSmrg  ;;
16365a4f78defSmrg
16366a4f78defSmrgsolaris*)
16367a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16368a4f78defSmrg  need_lib_prefix=no
16369a4f78defSmrg  need_version=no
16370a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16372a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16373a4f78defSmrg  shlibpath_overrides_runpath=yes
16374a4f78defSmrg  hardcode_into_libs=yes
16375a4f78defSmrg  # ldd complains unless libraries are executable
16376a4f78defSmrg  postinstall_cmds='chmod +x $lib'
16377a4f78defSmrg  ;;
16378a4f78defSmrg
16379a4f78defSmrgsunos4*)
16380a4f78defSmrg  version_type=sunos
16381a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16382a4f78defSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16383a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16384a4f78defSmrg  shlibpath_overrides_runpath=yes
16385a4f78defSmrg  if test yes = "$with_gnu_ld"; then
16386a4f78defSmrg    need_lib_prefix=no
16387a4f78defSmrg  fi
16388a4f78defSmrg  need_version=yes
16389a4f78defSmrg  ;;
16390a4f78defSmrg
16391a4f78defSmrgsysv4 | sysv4.3*)
16392a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16393a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16394a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16395a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16396a4f78defSmrg  case $host_vendor in
16397a4f78defSmrg    sni)
16398a4f78defSmrg      shlibpath_overrides_runpath=no
16399a4f78defSmrg      need_lib_prefix=no
16400a4f78defSmrg      runpath_var=LD_RUN_PATH
16401a4f78defSmrg      ;;
16402a4f78defSmrg    siemens)
16403a4f78defSmrg      need_lib_prefix=no
16404a4f78defSmrg      ;;
16405a4f78defSmrg    motorola)
16406a4f78defSmrg      need_lib_prefix=no
16407a4f78defSmrg      need_version=no
16408a4f78defSmrg      shlibpath_overrides_runpath=no
16409a4f78defSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16410a4f78defSmrg      ;;
16411a4f78defSmrg  esac
16412a4f78defSmrg  ;;
16413a4f78defSmrg
16414a4f78defSmrgsysv4*MP*)
16415a4f78defSmrg  if test -d /usr/nec; then
16416a4f78defSmrg    version_type=linux # correct to gnu/linux during the next big refactor
16417a4f78defSmrg    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16418a4f78defSmrg    soname_spec='$libname$shared_ext.$major'
16419a4f78defSmrg    shlibpath_var=LD_LIBRARY_PATH
16420a4f78defSmrg  fi
16421a4f78defSmrg  ;;
16422a4f78defSmrg
16423a4f78defSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16424a4f78defSmrg  version_type=sco
16425a4f78defSmrg  need_lib_prefix=no
16426a4f78defSmrg  need_version=no
16427a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16428a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16429a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16430a4f78defSmrg  shlibpath_overrides_runpath=yes
16431a4f78defSmrg  hardcode_into_libs=yes
16432a4f78defSmrg  if test yes = "$with_gnu_ld"; then
16433a4f78defSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16434a4f78defSmrg  else
16435a4f78defSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16436a4f78defSmrg    case $host_os in
16437a4f78defSmrg      sco3.2v5*)
16438a4f78defSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16439a4f78defSmrg	;;
16440a4f78defSmrg    esac
16441a4f78defSmrg  fi
16442a4f78defSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
16443a4f78defSmrg  ;;
16444a4f78defSmrg
16445a4f78defSmrgtpf*)
16446a4f78defSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16447a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16448a4f78defSmrg  need_lib_prefix=no
16449a4f78defSmrg  need_version=no
16450a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16451a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16452a4f78defSmrg  shlibpath_overrides_runpath=no
16453a4f78defSmrg  hardcode_into_libs=yes
16454a4f78defSmrg  ;;
16455a4f78defSmrg
16456a4f78defSmrguts4*)
16457a4f78defSmrg  version_type=linux # correct to gnu/linux during the next big refactor
16458a4f78defSmrg  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16459a4f78defSmrg  soname_spec='$libname$release$shared_ext$major'
16460a4f78defSmrg  shlibpath_var=LD_LIBRARY_PATH
16461a4f78defSmrg  ;;
16462a4f78defSmrg
16463a4f78defSmrg*)
16464a4f78defSmrg  dynamic_linker=no
16465a4f78defSmrg  ;;
16466a4f78defSmrgesac
16467a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16468a4f78defSmrg$as_echo "$dynamic_linker" >&6; }
16469a4f78defSmrgtest no = "$dynamic_linker" && can_build_shared=no
16470a4f78defSmrg
16471a4f78defSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16472a4f78defSmrgif test yes = "$GCC"; then
16473a4f78defSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16474a4f78defSmrgfi
16475a4f78defSmrg
16476a4f78defSmrgif test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16477a4f78defSmrg  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16478a4f78defSmrgfi
16479a4f78defSmrg
16480a4f78defSmrgif test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16481a4f78defSmrg  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16482a4f78defSmrgfi
16483a4f78defSmrg
16484a4f78defSmrg# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16485a4f78defSmrgconfigure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16486a4f78defSmrg
16487a4f78defSmrg# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16488a4f78defSmrgfunc_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16489a4f78defSmrg
16490a4f78defSmrg# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16491a4f78defSmrgconfigure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16492a4f78defSmrg
16493a4f78defSmrg
16494a4f78defSmrg
16495a4f78defSmrg
16496a4f78defSmrg
16497a4f78defSmrg
16498a4f78defSmrg
16499a4f78defSmrg
16500a4f78defSmrg
16501a4f78defSmrg
16502a4f78defSmrg
16503a4f78defSmrg
16504a4f78defSmrg
16505a4f78defSmrg
16506a4f78defSmrg
16507a4f78defSmrg
16508a4f78defSmrg
16509a4f78defSmrg
16510a4f78defSmrg
16511a4f78defSmrg
16512a4f78defSmrg
16513a4f78defSmrg
16514a4f78defSmrg
16515a4f78defSmrg
16516a4f78defSmrg
16517a4f78defSmrg
16518a4f78defSmrg
16519a4f78defSmrg
16520a4f78defSmrg
16521a4f78defSmrg
16522a4f78defSmrg
16523a4f78defSmrg
16524a4f78defSmrg
16525a4f78defSmrg
16526a4f78defSmrg
16527a4f78defSmrg
16528a4f78defSmrg
16529a4f78defSmrg
16530a4f78defSmrg
16531a4f78defSmrg
16532a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16533a4f78defSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16534a4f78defSmrghardcode_action_CXX=
16535a4f78defSmrgif test -n "$hardcode_libdir_flag_spec_CXX" ||
16536a4f78defSmrg   test -n "$runpath_var_CXX" ||
16537a4f78defSmrg   test yes = "$hardcode_automatic_CXX"; then
16538a4f78defSmrg
16539a4f78defSmrg  # We can hardcode non-existent directories.
16540a4f78defSmrg  if test no != "$hardcode_direct_CXX" &&
16541a4f78defSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16542a4f78defSmrg     # have to relink, otherwise we might link with an installed library
16543a4f78defSmrg     # when we should be linking with a yet-to-be-installed one
16544a4f78defSmrg     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16545a4f78defSmrg     test no != "$hardcode_minus_L_CXX"; then
16546a4f78defSmrg    # Linking always hardcodes the temporary library directory.
16547a4f78defSmrg    hardcode_action_CXX=relink
16548a4f78defSmrg  else
16549a4f78defSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16550a4f78defSmrg    hardcode_action_CXX=immediate
16551a4f78defSmrg  fi
16552a4f78defSmrgelse
16553a4f78defSmrg  # We cannot hardcode anything, or else we can only hardcode existing
16554a4f78defSmrg  # directories.
16555a4f78defSmrg  hardcode_action_CXX=unsupported
16556a4f78defSmrgfi
16557a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16558a4f78defSmrg$as_echo "$hardcode_action_CXX" >&6; }
16559a4f78defSmrg
16560a4f78defSmrgif test relink = "$hardcode_action_CXX" ||
16561a4f78defSmrg   test yes = "$inherit_rpath_CXX"; then
16562a4f78defSmrg  # Fast installation is not supported
16563a4f78defSmrg  enable_fast_install=no
16564a4f78defSmrgelif test yes = "$shlibpath_overrides_runpath" ||
16565a4f78defSmrg     test no = "$enable_shared"; then
16566a4f78defSmrg  # Fast installation is not necessary
16567a4f78defSmrg  enable_fast_install=needless
16568a4f78defSmrgfi
16569a4f78defSmrg
16570a4f78defSmrg
16571a4f78defSmrg
16572a4f78defSmrg
16573a4f78defSmrg
16574a4f78defSmrg
16575a4f78defSmrg
16576a4f78defSmrg  fi # test -n "$compiler"
16577a4f78defSmrg
16578a4f78defSmrg  CC=$lt_save_CC
16579a4f78defSmrg  CFLAGS=$lt_save_CFLAGS
16580a4f78defSmrg  LDCXX=$LD
16581a4f78defSmrg  LD=$lt_save_LD
16582a4f78defSmrg  GCC=$lt_save_GCC
16583a4f78defSmrg  with_gnu_ld=$lt_save_with_gnu_ld
16584a4f78defSmrg  lt_cv_path_LDCXX=$lt_cv_path_LD
16585a4f78defSmrg  lt_cv_path_LD=$lt_save_path_LD
16586a4f78defSmrg  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16587a4f78defSmrg  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16588a4f78defSmrgfi # test yes != "$_lt_caught_CXX_error"
16589a4f78defSmrg
16590a4f78defSmrgac_ext=c
16591a4f78defSmrgac_cpp='$CPP $CPPFLAGS'
16592a4f78defSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593a4f78defSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594a4f78defSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
16595a4f78defSmrg
16596a4f78defSmrg
16597a4f78defSmrg
16598a4f78defSmrg
16599a4f78defSmrg
16600a4f78defSmrg
16601a4f78defSmrg
16602a4f78defSmrg
16603a4f78defSmrg
16604a4f78defSmrg
16605a4f78defSmrg
16606a4f78defSmrg
16607a4f78defSmrg
16608a4f78defSmrg
16609a4f78defSmrg
16610a4f78defSmrg        ac_config_commands="$ac_config_commands libtool"
16611a4f78defSmrg
16612a4f78defSmrg
16613a4f78defSmrg
16614a4f78defSmrg
16615a4f78defSmrg# Only expand once:
16616a4f78defSmrg
16617a4f78defSmrg
16618a4f78defSmrg
16619a4f78defSmrg# Checks for dependencies.
16620a4f78defSmrg
16621a4f78defSmrg
16622a4f78defSmrg
16623a4f78defSmrg
16624a4f78defSmrg
16625a4f78defSmrg
16626a4f78defSmrg
16627a4f78defSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16628a4f78defSmrg	if test -n "$ac_tool_prefix"; then
16629a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16630a4f78defSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16631a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16632a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
16633a4f78defSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
16634a4f78defSmrg  $as_echo_n "(cached) " >&6
16635a4f78defSmrgelse
16636a4f78defSmrg  case $PKG_CONFIG in
16637a4f78defSmrg  [\\/]* | ?:[\\/]*)
16638a4f78defSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16639a4f78defSmrg  ;;
16640a4f78defSmrg  *)
16641a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642a4f78defSmrgfor as_dir in $PATH
16643a4f78defSmrgdo
16644a4f78defSmrg  IFS=$as_save_IFS
16645a4f78defSmrg  test -z "$as_dir" && as_dir=.
16646a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
16647a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648a4f78defSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16649a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16650a4f78defSmrg    break 2
16651a4f78defSmrg  fi
16652a4f78defSmrgdone
16653a4f78defSmrg  done
16654a4f78defSmrgIFS=$as_save_IFS
16655a4f78defSmrg
16656a4f78defSmrg  ;;
16657a4f78defSmrgesac
16658a4f78defSmrgfi
16659a4f78defSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
16660a4f78defSmrgif test -n "$PKG_CONFIG"; then
16661a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16662a4f78defSmrg$as_echo "$PKG_CONFIG" >&6; }
16663a4f78defSmrgelse
16664a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665a4f78defSmrg$as_echo "no" >&6; }
16666a4f78defSmrgfi
16667a4f78defSmrg
16668a4f78defSmrg
16669a4f78defSmrgfi
16670a4f78defSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
16671a4f78defSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
16672a4f78defSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
16673a4f78defSmrgset dummy pkg-config; ac_word=$2
16674a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16675a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
16676a4f78defSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16677a4f78defSmrg  $as_echo_n "(cached) " >&6
16678a4f78defSmrgelse
16679a4f78defSmrg  case $ac_pt_PKG_CONFIG in
16680a4f78defSmrg  [\\/]* | ?:[\\/]*)
16681a4f78defSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16682a4f78defSmrg  ;;
16683a4f78defSmrg  *)
16684a4f78defSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685a4f78defSmrgfor as_dir in $PATH
16686a4f78defSmrgdo
16687a4f78defSmrg  IFS=$as_save_IFS
16688a4f78defSmrg  test -z "$as_dir" && as_dir=.
16689a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
16690a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691a4f78defSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16692a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693a4f78defSmrg    break 2
16694a4f78defSmrg  fi
16695a4f78defSmrgdone
16696a4f78defSmrg  done
16697a4f78defSmrgIFS=$as_save_IFS
16698a4f78defSmrg
16699a4f78defSmrg  ;;
16700a4f78defSmrgesac
16701a4f78defSmrgfi
16702a4f78defSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16703a4f78defSmrgif test -n "$ac_pt_PKG_CONFIG"; then
16704a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16705a4f78defSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16706a4f78defSmrgelse
16707a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708a4f78defSmrg$as_echo "no" >&6; }
16709a4f78defSmrgfi
16710a4f78defSmrg
16711a4f78defSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
16712a4f78defSmrg    PKG_CONFIG=""
16713a4f78defSmrg  else
16714a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
16715a4f78defSmrgyes:)
16716a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16717a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16718a4f78defSmrgac_tool_warned=yes ;;
16719a4f78defSmrgesac
16720a4f78defSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
16721a4f78defSmrg  fi
16722a4f78defSmrgelse
16723a4f78defSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16724a4f78defSmrgfi
16725a4f78defSmrg
16726a4f78defSmrgfi
16727a4f78defSmrgif test -n "$PKG_CONFIG"; then
16728a4f78defSmrg	_pkg_min_version=0.9.0
16729a4f78defSmrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16730a4f78defSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16731a4f78defSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16732a4f78defSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733a4f78defSmrg$as_echo "yes" >&6; }
16734a4f78defSmrg	else
16735a4f78defSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736a4f78defSmrg$as_echo "no" >&6; }
16737a4f78defSmrg		PKG_CONFIG=""
16738a4f78defSmrg	fi
16739a4f78defSmrgfi
16740a4f78defSmrg
16741a4f78defSmrgpkg_failed=no
16742a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
16743a4f78defSmrg$as_echo_n "checking for X11... " >&6; }
16744a4f78defSmrg
16745a4f78defSmrgif test -n "$X11_CFLAGS"; then
16746a4f78defSmrg    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
16747a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16748a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16749a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16750a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16751a4f78defSmrg  ac_status=$?
16752a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753a4f78defSmrg  test $ac_status = 0; }; then
16754a4f78defSmrg  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
16755a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16756a4f78defSmrgelse
16757a4f78defSmrg  pkg_failed=yes
16758a4f78defSmrgfi
16759a4f78defSmrg else
16760a4f78defSmrg    pkg_failed=untried
16761a4f78defSmrgfi
16762a4f78defSmrgif test -n "$X11_LIBS"; then
16763a4f78defSmrg    pkg_cv_X11_LIBS="$X11_LIBS"
16764a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16765a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16766a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
16767a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
16768a4f78defSmrg  ac_status=$?
16769a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16770a4f78defSmrg  test $ac_status = 0; }; then
16771a4f78defSmrg  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
16772a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16773a4f78defSmrgelse
16774a4f78defSmrg  pkg_failed=yes
16775a4f78defSmrgfi
16776a4f78defSmrg else
16777a4f78defSmrg    pkg_failed=untried
16778a4f78defSmrgfi
16779a4f78defSmrg
16780a4f78defSmrg
16781a4f78defSmrg
16782a4f78defSmrgif test $pkg_failed = yes; then
16783a4f78defSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784a4f78defSmrg$as_echo "no" >&6; }
16785a4f78defSmrg
16786a4f78defSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16787a4f78defSmrg        _pkg_short_errors_supported=yes
16788a4f78defSmrgelse
16789a4f78defSmrg        _pkg_short_errors_supported=no
16790a4f78defSmrgfi
16791a4f78defSmrg        if test $_pkg_short_errors_supported = yes; then
16792a4f78defSmrg	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
16793a4f78defSmrg        else
16794a4f78defSmrg	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
16795a4f78defSmrg        fi
16796a4f78defSmrg	# Put the nasty error message in config.log where it belongs
16797a4f78defSmrg	echo "$X11_PKG_ERRORS" >&5
16798a4f78defSmrg
16799a4f78defSmrg	as_fn_error $? "Package requirements (x11) were not met:
16800a4f78defSmrg
16801a4f78defSmrg$X11_PKG_ERRORS
16802a4f78defSmrg
16803a4f78defSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
16804a4f78defSmrginstalled software in a non-standard prefix.
16805a4f78defSmrg
16806a4f78defSmrgAlternatively, you may set the environment variables X11_CFLAGS
16807a4f78defSmrgand X11_LIBS to avoid the need to call pkg-config.
16808a4f78defSmrgSee the pkg-config man page for more details." "$LINENO" 5
16809a4f78defSmrgelif test $pkg_failed = untried; then
16810a4f78defSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811a4f78defSmrg$as_echo "no" >&6; }
16812a4f78defSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16813a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16814a4f78defSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16815a4f78defSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
16816a4f78defSmrgpath to pkg-config.
16817a4f78defSmrg
16818a4f78defSmrgAlternatively, you may set the environment variables X11_CFLAGS
16819a4f78defSmrgand X11_LIBS to avoid the need to call pkg-config.
16820a4f78defSmrgSee the pkg-config man page for more details.
16821a4f78defSmrg
16822a4f78defSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
16823a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
16824a4f78defSmrgelse
16825a4f78defSmrg	X11_CFLAGS=$pkg_cv_X11_CFLAGS
16826a4f78defSmrg	X11_LIBS=$pkg_cv_X11_LIBS
16827a4f78defSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828a4f78defSmrg$as_echo "yes" >&6; }
16829a4f78defSmrg
16830a4f78defSmrgfi
16831a4f78defSmrg
16832a4f78defSmrg
16833a4f78defSmrg
16834a4f78defSmrg# Check for optional dependencies.
16835a4f78defSmrg# Check whether --enable-dri2 was given.
16836a4f78defSmrgif test "${enable_dri2+set}" = set; then :
16837a4f78defSmrg  enableval=$enable_dri2; DRI2=$enableval
16838a4f78defSmrgelse
16839a4f78defSmrg  DRI2=auto
16840a4f78defSmrgfi
16841a4f78defSmrg
16842a4f78defSmrg
16843a4f78defSmrgpkg_failed=no
16844a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dri2proto" >&5
16845a4f78defSmrg$as_echo_n "checking for dri2proto... " >&6; }
16846a4f78defSmrg
16847a4f78defSmrgif test -n "$dri2proto_CFLAGS"; then
16848a4f78defSmrg    pkg_cv_dri2proto_CFLAGS="$dri2proto_CFLAGS"
16849a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16850a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16851a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
16852a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
16853a4f78defSmrg  ac_status=$?
16854a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16855a4f78defSmrg  test $ac_status = 0; }; then
16856a4f78defSmrg  pkg_cv_dri2proto_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.2" 2>/dev/null`
16857a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16858a4f78defSmrgelse
16859a4f78defSmrg  pkg_failed=yes
16860a4f78defSmrgfi
16861a4f78defSmrg else
16862a4f78defSmrg    pkg_failed=untried
16863a4f78defSmrgfi
16864a4f78defSmrgif test -n "$dri2proto_LIBS"; then
16865a4f78defSmrg    pkg_cv_dri2proto_LIBS="$dri2proto_LIBS"
16866a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16867a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16868a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
16869a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
16870a4f78defSmrg  ac_status=$?
16871a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16872a4f78defSmrg  test $ac_status = 0; }; then
16873a4f78defSmrg  pkg_cv_dri2proto_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.2" 2>/dev/null`
16874a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16875a4f78defSmrgelse
16876a4f78defSmrg  pkg_failed=yes
16877a4f78defSmrgfi
16878a4f78defSmrg else
16879a4f78defSmrg    pkg_failed=untried
16880a4f78defSmrgfi
16881a4f78defSmrg
16882a4f78defSmrg
16883a4f78defSmrg
16884a4f78defSmrgif test $pkg_failed = yes; then
16885a4f78defSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886a4f78defSmrg$as_echo "no" >&6; }
16887a4f78defSmrg
16888a4f78defSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16889a4f78defSmrg        _pkg_short_errors_supported=yes
16890a4f78defSmrgelse
16891a4f78defSmrg        _pkg_short_errors_supported=no
16892a4f78defSmrgfi
16893a4f78defSmrg        if test $_pkg_short_errors_supported = yes; then
16894a4f78defSmrg	        dri2proto_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1`
16895a4f78defSmrg        else
16896a4f78defSmrg	        dri2proto_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.2" 2>&1`
16897a4f78defSmrg        fi
16898a4f78defSmrg	# Put the nasty error message in config.log where it belongs
16899a4f78defSmrg	echo "$dri2proto_PKG_ERRORS" >&5
16900a4f78defSmrg
16901a4f78defSmrg	HAVE_DRI2PROTO=no
16902a4f78defSmrgelif test $pkg_failed = untried; then
16903a4f78defSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904a4f78defSmrg$as_echo "no" >&6; }
16905a4f78defSmrg	HAVE_DRI2PROTO=no
16906a4f78defSmrgelse
16907a4f78defSmrg	dri2proto_CFLAGS=$pkg_cv_dri2proto_CFLAGS
16908a4f78defSmrg	dri2proto_LIBS=$pkg_cv_dri2proto_LIBS
16909a4f78defSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16910a4f78defSmrg$as_echo "yes" >&6; }
16911a4f78defSmrg	HAVE_DRI2PROTO=yes
16912a4f78defSmrgfi
16913a4f78defSmrgcase "$DRI2,$HAVE_DRI2PROTO" in
16914a4f78defSmrg    yes,no)
16915a4f78defSmrg        as_fn_error $? "DRI2 queries require dri2proto >= 2.2" "$LINENO" 5
16916a4f78defSmrg        ;;
16917a4f78defSmrg    yes,yes | auto,yes)
16918a4f78defSmrg
16919a4f78defSmrg$as_echo "#define DRI2 1" >>confdefs.h
16920a4f78defSmrg
16921a4f78defSmrg        DRI2=yes
16922a4f78defSmrg
16923a4f78defSmrgpkg_failed=no
16924a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
16925a4f78defSmrg$as_echo_n "checking for XEXT... " >&6; }
16926a4f78defSmrg
16927a4f78defSmrgif test -n "$XEXT_CFLAGS"; then
16928a4f78defSmrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
16929a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16930a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16931a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
16932a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
16933a4f78defSmrg  ac_status=$?
16934a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16935a4f78defSmrg  test $ac_status = 0; }; then
16936a4f78defSmrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
16937a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16938a4f78defSmrgelse
16939a4f78defSmrg  pkg_failed=yes
16940a4f78defSmrgfi
16941a4f78defSmrg else
16942a4f78defSmrg    pkg_failed=untried
16943a4f78defSmrgfi
16944a4f78defSmrgif test -n "$XEXT_LIBS"; then
16945a4f78defSmrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
16946a4f78defSmrg elif test -n "$PKG_CONFIG"; then
16947a4f78defSmrg    if test -n "$PKG_CONFIG" && \
16948a4f78defSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
16949a4f78defSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
16950a4f78defSmrg  ac_status=$?
16951a4f78defSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16952a4f78defSmrg  test $ac_status = 0; }; then
16953a4f78defSmrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
16954a4f78defSmrg		      test "x$?" != "x0" && pkg_failed=yes
16955a4f78defSmrgelse
16956a4f78defSmrg  pkg_failed=yes
16957a4f78defSmrgfi
16958a4f78defSmrg else
16959a4f78defSmrg    pkg_failed=untried
16960a4f78defSmrgfi
16961a4f78defSmrg
16962a4f78defSmrg
16963a4f78defSmrg
16964a4f78defSmrgif test $pkg_failed = yes; then
16965a4f78defSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966a4f78defSmrg$as_echo "no" >&6; }
16967a4f78defSmrg
16968a4f78defSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16969a4f78defSmrg        _pkg_short_errors_supported=yes
16970a4f78defSmrgelse
16971a4f78defSmrg        _pkg_short_errors_supported=no
16972a4f78defSmrgfi
16973a4f78defSmrg        if test $_pkg_short_errors_supported = yes; then
16974a4f78defSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xext" 2>&1`
16975a4f78defSmrg        else
16976a4f78defSmrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xext" 2>&1`
16977a4f78defSmrg        fi
16978a4f78defSmrg	# Put the nasty error message in config.log where it belongs
16979a4f78defSmrg	echo "$XEXT_PKG_ERRORS" >&5
16980a4f78defSmrg
16981a4f78defSmrg	as_fn_error $? "Package requirements (xext) were not met:
16982a4f78defSmrg
16983a4f78defSmrg$XEXT_PKG_ERRORS
16984a4f78defSmrg
16985a4f78defSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
16986a4f78defSmrginstalled software in a non-standard prefix.
16987a4f78defSmrg
16988a4f78defSmrgAlternatively, you may set the environment variables XEXT_CFLAGS
16989a4f78defSmrgand XEXT_LIBS to avoid the need to call pkg-config.
16990a4f78defSmrgSee the pkg-config man page for more details." "$LINENO" 5
16991a4f78defSmrgelif test $pkg_failed = untried; then
16992a4f78defSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993a4f78defSmrg$as_echo "no" >&6; }
16994a4f78defSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16995a4f78defSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16996a4f78defSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16997a4f78defSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
16998a4f78defSmrgpath to pkg-config.
16999a4f78defSmrg
17000a4f78defSmrgAlternatively, you may set the environment variables XEXT_CFLAGS
17001a4f78defSmrgand XEXT_LIBS to avoid the need to call pkg-config.
17002a4f78defSmrgSee the pkg-config man page for more details.
17003a4f78defSmrg
17004a4f78defSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
17005a4f78defSmrgSee \`config.log' for more details" "$LINENO" 5; }
17006a4f78defSmrgelse
17007a4f78defSmrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17008a4f78defSmrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17009a4f78defSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17010a4f78defSmrg$as_echo "yes" >&6; }
17011a4f78defSmrg
17012a4f78defSmrgfi
17013a4f78defSmrg
17014a4f78defSmrg
17015a4f78defSmrg        ;;
17016a4f78defSmrgesac
17017a4f78defSmrg if test "x$DRI2" = xyes; then
17018a4f78defSmrg  DRI2_TRUE=
17019a4f78defSmrg  DRI2_FALSE='#'
17020a4f78defSmrgelse
17021a4f78defSmrg  DRI2_TRUE='#'
17022a4f78defSmrg  DRI2_FALSE=
17023a4f78defSmrgfi
17024a4f78defSmrg
17025a4f78defSmrg
17026a4f78defSmrgac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17027a4f78defSmrgif test "x$ac_cv_func_dlopen" = xyes; then :
17028a4f78defSmrg
17029a4f78defSmrgelse
17030a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17031a4f78defSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
17032a4f78defSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
17033a4f78defSmrg  $as_echo_n "(cached) " >&6
17034a4f78defSmrgelse
17035a4f78defSmrg  ac_check_lib_save_LIBS=$LIBS
17036a4f78defSmrgLIBS="-ldl  $LIBS"
17037a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038a4f78defSmrg/* end confdefs.h.  */
17039a4f78defSmrg
17040a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
17041a4f78defSmrg   Use char because int might match the return type of a GCC
17042a4f78defSmrg   builtin and then its argument prototype would still apply.  */
17043a4f78defSmrg#ifdef __cplusplus
17044a4f78defSmrgextern "C"
17045a4f78defSmrg#endif
17046a4f78defSmrgchar dlopen ();
17047a4f78defSmrgint
17048a4f78defSmrgmain ()
17049a4f78defSmrg{
17050a4f78defSmrgreturn dlopen ();
17051a4f78defSmrg  ;
17052a4f78defSmrg  return 0;
17053a4f78defSmrg}
17054a4f78defSmrg_ACEOF
17055a4f78defSmrgif ac_fn_c_try_link "$LINENO"; then :
17056a4f78defSmrg  ac_cv_lib_dl_dlopen=yes
17057a4f78defSmrgelse
17058a4f78defSmrg  ac_cv_lib_dl_dlopen=no
17059a4f78defSmrgfi
17060a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
17061a4f78defSmrg    conftest$ac_exeext conftest.$ac_ext
17062a4f78defSmrgLIBS=$ac_check_lib_save_LIBS
17063a4f78defSmrgfi
17064a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17065a4f78defSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17066a4f78defSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17067a4f78defSmrg  DLOPEN_LIBS="-ldl"
17068a4f78defSmrgfi
17069a4f78defSmrg
17070a4f78defSmrgfi
17071a4f78defSmrg
17072a4f78defSmrg
17073a4f78defSmrg
17074a4f78defSmrg# Look for POSIX threads
17075a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_once" >&5
17076a4f78defSmrg$as_echo_n "checking for library containing pthread_once... " >&6; }
17077a4f78defSmrgif ${ac_cv_search_pthread_once+:} false; then :
17078a4f78defSmrg  $as_echo_n "(cached) " >&6
17079a4f78defSmrgelse
17080a4f78defSmrg  ac_func_search_save_LIBS=$LIBS
17081a4f78defSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082a4f78defSmrg/* end confdefs.h.  */
17083a4f78defSmrg
17084a4f78defSmrg/* Override any GCC internal prototype to avoid an error.
17085a4f78defSmrg   Use char because int might match the return type of a GCC
17086a4f78defSmrg   builtin and then its argument prototype would still apply.  */
17087a4f78defSmrg#ifdef __cplusplus
17088a4f78defSmrgextern "C"
17089a4f78defSmrg#endif
17090a4f78defSmrgchar pthread_once ();
17091a4f78defSmrgint
17092a4f78defSmrgmain ()
17093a4f78defSmrg{
17094a4f78defSmrgreturn pthread_once ();
17095a4f78defSmrg  ;
17096a4f78defSmrg  return 0;
17097a4f78defSmrg}
17098a4f78defSmrg_ACEOF
17099a4f78defSmrgfor ac_lib in '' pthread pthreads c_r; do
17100a4f78defSmrg  if test -z "$ac_lib"; then
17101a4f78defSmrg    ac_res="none required"
17102a4f78defSmrg  else
17103a4f78defSmrg    ac_res=-l$ac_lib
17104a4f78defSmrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17105a4f78defSmrg  fi
17106a4f78defSmrg  if ac_fn_c_try_link "$LINENO"; then :
17107a4f78defSmrg  ac_cv_search_pthread_once=$ac_res
17108a4f78defSmrgfi
17109a4f78defSmrgrm -f core conftest.err conftest.$ac_objext \
17110a4f78defSmrg    conftest$ac_exeext
17111a4f78defSmrg  if ${ac_cv_search_pthread_once+:} false; then :
17112a4f78defSmrg  break
17113a4f78defSmrgfi
17114a4f78defSmrgdone
17115a4f78defSmrgif ${ac_cv_search_pthread_once+:} false; then :
17116a4f78defSmrg
17117a4f78defSmrgelse
17118a4f78defSmrg  ac_cv_search_pthread_once=no
17119a4f78defSmrgfi
17120a4f78defSmrgrm conftest.$ac_ext
17121a4f78defSmrgLIBS=$ac_func_search_save_LIBS
17122a4f78defSmrgfi
17123a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_once" >&5
17124a4f78defSmrg$as_echo "$ac_cv_search_pthread_once" >&6; }
17125a4f78defSmrgac_res=$ac_cv_search_pthread_once
17126a4f78defSmrgif test "$ac_res" != no; then :
17127a4f78defSmrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17128a4f78defSmrg
17129a4f78defSmrg    if test "$ac_cv_search_pthread_once" != "none required"; then :
17130a4f78defSmrg
17131a4f78defSmrg        PTHREAD_LIBS="$ac_cv_search_pthread_once"
17132a4f78defSmrg
17133a4f78defSmrgfi
17134a4f78defSmrg
17135a4f78defSmrgfi
17136a4f78defSmrg
17137a4f78defSmrg
17138a4f78defSmrg
17139a4f78defSmrg# Check for Doxygen.
17140a4f78defSmrg# Check whether --enable-documentation was given.
17141a4f78defSmrgif test "${enable_documentation+set}" = set; then :
17142a4f78defSmrg  enableval=$enable_documentation; DOCS=$enableval
17143a4f78defSmrgelse
17144a4f78defSmrg  DOCS=auto
17145a4f78defSmrgfi
17146a4f78defSmrg
17147a4f78defSmrgif test "x$DOCS" != xno; then
17148a4f78defSmrg    if test -n "$ac_tool_prefix"; then
17149a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
17150a4f78defSmrgset dummy ${ac_tool_prefix}doxygen; ac_word=$2
17151a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17152a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
17153a4f78defSmrgif ${ac_cv_prog_DOXYGEN+:} false; then :
17154a4f78defSmrg  $as_echo_n "(cached) " >&6
17155a4f78defSmrgelse
17156a4f78defSmrg  if test -n "$DOXYGEN"; then
17157a4f78defSmrg  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
17158a4f78defSmrgelse
17159a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160a4f78defSmrgfor as_dir in $PATH
17161a4f78defSmrgdo
17162a4f78defSmrg  IFS=$as_save_IFS
17163a4f78defSmrg  test -z "$as_dir" && as_dir=.
17164a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
17165a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166a4f78defSmrg    ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
17167a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17168a4f78defSmrg    break 2
17169a4f78defSmrg  fi
17170a4f78defSmrgdone
17171a4f78defSmrg  done
17172a4f78defSmrgIFS=$as_save_IFS
17173a4f78defSmrg
17174a4f78defSmrgfi
17175a4f78defSmrgfi
17176a4f78defSmrgDOXYGEN=$ac_cv_prog_DOXYGEN
17177a4f78defSmrgif test -n "$DOXYGEN"; then
17178a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17179a4f78defSmrg$as_echo "$DOXYGEN" >&6; }
17180a4f78defSmrgelse
17181a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17182a4f78defSmrg$as_echo "no" >&6; }
17183a4f78defSmrgfi
17184a4f78defSmrg
17185a4f78defSmrg
17186a4f78defSmrgfi
17187a4f78defSmrgif test -z "$ac_cv_prog_DOXYGEN"; then
17188a4f78defSmrg  ac_ct_DOXYGEN=$DOXYGEN
17189a4f78defSmrg  # Extract the first word of "doxygen", so it can be a program name with args.
17190a4f78defSmrgset dummy doxygen; ac_word=$2
17191a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17192a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
17193a4f78defSmrgif ${ac_cv_prog_ac_ct_DOXYGEN+:} false; then :
17194a4f78defSmrg  $as_echo_n "(cached) " >&6
17195a4f78defSmrgelse
17196a4f78defSmrg  if test -n "$ac_ct_DOXYGEN"; then
17197a4f78defSmrg  ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
17198a4f78defSmrgelse
17199a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200a4f78defSmrgfor as_dir in $PATH
17201a4f78defSmrgdo
17202a4f78defSmrg  IFS=$as_save_IFS
17203a4f78defSmrg  test -z "$as_dir" && as_dir=.
17204a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
17205a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206a4f78defSmrg    ac_cv_prog_ac_ct_DOXYGEN="doxygen"
17207a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208a4f78defSmrg    break 2
17209a4f78defSmrg  fi
17210a4f78defSmrgdone
17211a4f78defSmrg  done
17212a4f78defSmrgIFS=$as_save_IFS
17213a4f78defSmrg
17214a4f78defSmrgfi
17215a4f78defSmrgfi
17216a4f78defSmrgac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
17217a4f78defSmrgif test -n "$ac_ct_DOXYGEN"; then
17218a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
17219a4f78defSmrg$as_echo "$ac_ct_DOXYGEN" >&6; }
17220a4f78defSmrgelse
17221a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222a4f78defSmrg$as_echo "no" >&6; }
17223a4f78defSmrgfi
17224a4f78defSmrg
17225a4f78defSmrg  if test "x$ac_ct_DOXYGEN" = x; then
17226a4f78defSmrg    DOXYGEN="no"
17227a4f78defSmrg  else
17228a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
17229a4f78defSmrgyes:)
17230a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17231a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17232a4f78defSmrgac_tool_warned=yes ;;
17233a4f78defSmrgesac
17234a4f78defSmrg    DOXYGEN=$ac_ct_DOXYGEN
17235a4f78defSmrg  fi
17236a4f78defSmrgelse
17237a4f78defSmrg  DOXYGEN="$ac_cv_prog_DOXYGEN"
17238a4f78defSmrgfi
17239a4f78defSmrg
17240a4f78defSmrg    if test -n "$ac_tool_prefix"; then
17241a4f78defSmrg  # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
17242a4f78defSmrgset dummy ${ac_tool_prefix}dot; ac_word=$2
17243a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17244a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
17245a4f78defSmrgif ${ac_cv_prog_DOT+:} false; then :
17246a4f78defSmrg  $as_echo_n "(cached) " >&6
17247a4f78defSmrgelse
17248a4f78defSmrg  if test -n "$DOT"; then
17249a4f78defSmrg  ac_cv_prog_DOT="$DOT" # Let the user override the test.
17250a4f78defSmrgelse
17251a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252a4f78defSmrgfor as_dir in $PATH
17253a4f78defSmrgdo
17254a4f78defSmrg  IFS=$as_save_IFS
17255a4f78defSmrg  test -z "$as_dir" && as_dir=.
17256a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
17257a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17258a4f78defSmrg    ac_cv_prog_DOT="${ac_tool_prefix}dot"
17259a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17260a4f78defSmrg    break 2
17261a4f78defSmrg  fi
17262a4f78defSmrgdone
17263a4f78defSmrg  done
17264a4f78defSmrgIFS=$as_save_IFS
17265a4f78defSmrg
17266a4f78defSmrgfi
17267a4f78defSmrgfi
17268a4f78defSmrgDOT=$ac_cv_prog_DOT
17269a4f78defSmrgif test -n "$DOT"; then
17270a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
17271a4f78defSmrg$as_echo "$DOT" >&6; }
17272a4f78defSmrgelse
17273a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274a4f78defSmrg$as_echo "no" >&6; }
17275a4f78defSmrgfi
17276a4f78defSmrg
17277a4f78defSmrg
17278a4f78defSmrgfi
17279a4f78defSmrgif test -z "$ac_cv_prog_DOT"; then
17280a4f78defSmrg  ac_ct_DOT=$DOT
17281a4f78defSmrg  # Extract the first word of "dot", so it can be a program name with args.
17282a4f78defSmrgset dummy dot; ac_word=$2
17283a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17284a4f78defSmrg$as_echo_n "checking for $ac_word... " >&6; }
17285a4f78defSmrgif ${ac_cv_prog_ac_ct_DOT+:} false; then :
17286a4f78defSmrg  $as_echo_n "(cached) " >&6
17287a4f78defSmrgelse
17288a4f78defSmrg  if test -n "$ac_ct_DOT"; then
17289a4f78defSmrg  ac_cv_prog_ac_ct_DOT="$ac_ct_DOT" # Let the user override the test.
17290a4f78defSmrgelse
17291a4f78defSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292a4f78defSmrgfor as_dir in $PATH
17293a4f78defSmrgdo
17294a4f78defSmrg  IFS=$as_save_IFS
17295a4f78defSmrg  test -z "$as_dir" && as_dir=.
17296a4f78defSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
17297a4f78defSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17298a4f78defSmrg    ac_cv_prog_ac_ct_DOT="dot"
17299a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17300a4f78defSmrg    break 2
17301a4f78defSmrg  fi
17302a4f78defSmrgdone
17303a4f78defSmrg  done
17304a4f78defSmrgIFS=$as_save_IFS
17305a4f78defSmrg
17306a4f78defSmrgfi
17307a4f78defSmrgfi
17308a4f78defSmrgac_ct_DOT=$ac_cv_prog_ac_ct_DOT
17309a4f78defSmrgif test -n "$ac_ct_DOT"; then
17310a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOT" >&5
17311a4f78defSmrg$as_echo "$ac_ct_DOT" >&6; }
17312a4f78defSmrgelse
17313a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17314a4f78defSmrg$as_echo "no" >&6; }
17315a4f78defSmrgfi
17316a4f78defSmrg
17317a4f78defSmrg  if test "x$ac_ct_DOT" = x; then
17318a4f78defSmrg    DOT="no"
17319a4f78defSmrg  else
17320a4f78defSmrg    case $cross_compiling:$ac_tool_warned in
17321a4f78defSmrgyes:)
17322a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17323a4f78defSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17324a4f78defSmrgac_tool_warned=yes ;;
17325a4f78defSmrgesac
17326a4f78defSmrg    DOT=$ac_ct_DOT
17327a4f78defSmrg  fi
17328a4f78defSmrgelse
17329a4f78defSmrg  DOT="$ac_cv_prog_DOT"
17330a4f78defSmrgfi
17331a4f78defSmrg
17332a4f78defSmrgelse
17333a4f78defSmrg    DOXYGEN=no
17334a4f78defSmrg    DOT=no
17335a4f78defSmrgfi
17336a4f78defSmrgif test "x$DOCS" = xyes; then
17337a4f78defSmrg    if test "x$DOXYGEN" = xno; then
17338a4f78defSmrg        as_fn_error $? "Documentation enabled but doxygen was not found in your path" "$LINENO" 5
17339a4f78defSmrg    fi
17340a4f78defSmrg    if test "x$DOT" = xno; then
17341a4f78defSmrg        as_fn_error $? "Documentation enabled but dot was not found in your path.  Please install graphviz" "$LINENO" 5
17342a4f78defSmrg    fi
17343a4f78defSmrgfi
17344a4f78defSmrg if test "x$DOXYGEN" != xno -a "x$DOT" != xno; then
17345a4f78defSmrg  ENABLE_DOCS_TRUE=
17346a4f78defSmrg  ENABLE_DOCS_FALSE='#'
17347a4f78defSmrgelse
17348a4f78defSmrg  ENABLE_DOCS_TRUE='#'
17349a4f78defSmrg  ENABLE_DOCS_FALSE=
17350a4f78defSmrgfi
17351a4f78defSmrg
17352a4f78defSmrg
17353a4f78defSmrg
17354a4f78defSmrg# Options
17355a4f78defSmrg
17356a4f78defSmrg# Check whether --with-module-dir was given.
17357a4f78defSmrgif test "${with_module_dir+set}" = set; then :
17358a4f78defSmrg  withval=$with_module_dir; moduledir="$withval"
17359a4f78defSmrgelse
17360a4f78defSmrg  moduledir="$libdir/vdpau"
17361a4f78defSmrgfi
17362a4f78defSmrg
17363a4f78defSmrg
17364a4f78defSmrg
17365a4f78defSmrg
17366a4f78defSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
17367a4f78defSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
17368a4f78defSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
17369a4f78defSmrg
17370a4f78defSmrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
17371a4f78defSmrg
17372a4f78defSmrg
17373a4f78defSmrg
17374a4f78defSmrgac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile test/Makefile trace/Makefile vdpau.pc"
17375a4f78defSmrg
17376a4f78defSmrgcat >confcache <<\_ACEOF
17377a4f78defSmrg# This file is a shell script that caches the results of configure
17378a4f78defSmrg# tests run on this system so they can be shared between configure
17379a4f78defSmrg# scripts and configure runs, see configure's option --config-cache.
17380a4f78defSmrg# It is not useful on other systems.  If it contains results you don't
17381a4f78defSmrg# want to keep, you may remove or edit it.
17382a4f78defSmrg#
17383a4f78defSmrg# config.status only pays attention to the cache file if you give it
17384a4f78defSmrg# the --recheck option to rerun configure.
17385a4f78defSmrg#
17386a4f78defSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
17387a4f78defSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
17388a4f78defSmrg# following values.
17389a4f78defSmrg
17390a4f78defSmrg_ACEOF
17391a4f78defSmrg
17392a4f78defSmrg# The following way of writing the cache mishandles newlines in values,
17393a4f78defSmrg# but we know of no workaround that is simple, portable, and efficient.
17394a4f78defSmrg# So, we kill variables containing newlines.
17395a4f78defSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
17396a4f78defSmrg# and sets the high bit in the cache file unless we assign to the vars.
17397a4f78defSmrg(
17398a4f78defSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17399a4f78defSmrg    eval ac_val=\$$ac_var
17400a4f78defSmrg    case $ac_val in #(
17401a4f78defSmrg    *${as_nl}*)
17402a4f78defSmrg      case $ac_var in #(
17403a4f78defSmrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17404a4f78defSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17405a4f78defSmrg      esac
17406a4f78defSmrg      case $ac_var in #(
17407a4f78defSmrg      _ | IFS | as_nl) ;; #(
17408a4f78defSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17409a4f78defSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
17410a4f78defSmrg      esac ;;
17411a4f78defSmrg    esac
17412a4f78defSmrg  done
17413a4f78defSmrg
17414a4f78defSmrg  (set) 2>&1 |
17415a4f78defSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17416a4f78defSmrg    *${as_nl}ac_space=\ *)
17417a4f78defSmrg      # `set' does not quote correctly, so add quotes: double-quote
17418a4f78defSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
17419a4f78defSmrg      sed -n \
17420a4f78defSmrg	"s/'/'\\\\''/g;
17421a4f78defSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17422a4f78defSmrg      ;; #(
17423a4f78defSmrg    *)
17424a4f78defSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
17425a4f78defSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17426a4f78defSmrg      ;;
17427a4f78defSmrg    esac |
17428a4f78defSmrg    sort
17429a4f78defSmrg) |
17430a4f78defSmrg  sed '
17431a4f78defSmrg     /^ac_cv_env_/b end
17432a4f78defSmrg     t clear
17433a4f78defSmrg     :clear
17434a4f78defSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17435a4f78defSmrg     t end
17436a4f78defSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17437a4f78defSmrg     :end' >>confcache
17438a4f78defSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17439a4f78defSmrg  if test -w "$cache_file"; then
17440a4f78defSmrg    if test "x$cache_file" != "x/dev/null"; then
17441a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17442a4f78defSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
17443a4f78defSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
17444a4f78defSmrg	cat confcache >"$cache_file"
17445a4f78defSmrg      else
17446a4f78defSmrg        case $cache_file in #(
17447a4f78defSmrg        */* | ?:*)
17448a4f78defSmrg	  mv -f confcache "$cache_file"$$ &&
17449a4f78defSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17450a4f78defSmrg        *)
17451a4f78defSmrg	  mv -f confcache "$cache_file" ;;
17452a4f78defSmrg	esac
17453a4f78defSmrg      fi
17454a4f78defSmrg    fi
17455a4f78defSmrg  else
17456a4f78defSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17457a4f78defSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17458a4f78defSmrg  fi
17459a4f78defSmrgfi
17460a4f78defSmrgrm -f confcache
17461a4f78defSmrg
17462a4f78defSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
17463a4f78defSmrg# Let make expand exec_prefix.
17464a4f78defSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17465a4f78defSmrg
17466a4f78defSmrgDEFS=-DHAVE_CONFIG_H
17467a4f78defSmrg
17468a4f78defSmrgac_libobjs=
17469a4f78defSmrgac_ltlibobjs=
17470a4f78defSmrgU=
17471a4f78defSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17472a4f78defSmrg  # 1. Remove the extension, and $U if already installed.
17473a4f78defSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17474a4f78defSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17475a4f78defSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17476a4f78defSmrg  #    will be set to the directory where LIBOBJS objects are built.
17477a4f78defSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17478a4f78defSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17479a4f78defSmrgdone
17480a4f78defSmrgLIBOBJS=$ac_libobjs
17481a4f78defSmrg
17482a4f78defSmrgLTLIBOBJS=$ac_ltlibobjs
17483a4f78defSmrg
17484a4f78defSmrg
17485a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17486a4f78defSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
17487a4f78defSmrg   if test -n "$am_sleep_pid"; then
17488a4f78defSmrg     # Hide warnings about reused PIDs.
17489a4f78defSmrg     wait $am_sleep_pid 2>/dev/null
17490a4f78defSmrg   fi
17491a4f78defSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17492a4f78defSmrg$as_echo "done" >&6; }
17493a4f78defSmrg if test -n "$EXEEXT"; then
17494a4f78defSmrg  am__EXEEXT_TRUE=
17495a4f78defSmrg  am__EXEEXT_FALSE='#'
17496a4f78defSmrgelse
17497a4f78defSmrg  am__EXEEXT_TRUE='#'
17498a4f78defSmrg  am__EXEEXT_FALSE=
17499a4f78defSmrgfi
17500a4f78defSmrg
17501a4f78defSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17502a4f78defSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
17503a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17504a4f78defSmrgfi
17505a4f78defSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17506a4f78defSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17507a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17508a4f78defSmrgfi
17509a4f78defSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17510a4f78defSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17511a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17512a4f78defSmrgfi
17513a4f78defSmrgif test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17514a4f78defSmrg  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17515a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17516a4f78defSmrgfi
17517a4f78defSmrgif test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
17518a4f78defSmrg  as_fn_error $? "conditional \"DRI2\" was never defined.
17519a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17520a4f78defSmrgfi
17521a4f78defSmrgif test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17522a4f78defSmrg  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17523a4f78defSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
17524a4f78defSmrgfi
17525a4f78defSmrg
17526a4f78defSmrg: "${CONFIG_STATUS=./config.status}"
17527a4f78defSmrgac_write_fail=0
17528a4f78defSmrgac_clean_files_save=$ac_clean_files
17529a4f78defSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
17530a4f78defSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17531a4f78defSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17532a4f78defSmrgas_write_fail=0
17533a4f78defSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17534a4f78defSmrg#! $SHELL
17535a4f78defSmrg# Generated by $as_me.
17536a4f78defSmrg# Run this file to recreate the current configuration.
17537a4f78defSmrg# Compiler output produced by configure, useful for debugging
17538a4f78defSmrg# configure, is in config.log if it exists.
17539a4f78defSmrg
17540a4f78defSmrgdebug=false
17541a4f78defSmrgac_cs_recheck=false
17542a4f78defSmrgac_cs_silent=false
17543a4f78defSmrg
17544a4f78defSmrgSHELL=\${CONFIG_SHELL-$SHELL}
17545a4f78defSmrgexport SHELL
17546a4f78defSmrg_ASEOF
17547a4f78defSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17548a4f78defSmrg## -------------------- ##
17549a4f78defSmrg## M4sh Initialization. ##
17550a4f78defSmrg## -------------------- ##
17551a4f78defSmrg
17552a4f78defSmrg# Be more Bourne compatible
17553a4f78defSmrgDUALCASE=1; export DUALCASE # for MKS sh
17554a4f78defSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17555a4f78defSmrg  emulate sh
17556a4f78defSmrg  NULLCMD=:
17557a4f78defSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17558a4f78defSmrg  # is contrary to our usage.  Disable this feature.
17559a4f78defSmrg  alias -g '${1+"$@"}'='"$@"'
17560a4f78defSmrg  setopt NO_GLOB_SUBST
17561a4f78defSmrgelse
17562a4f78defSmrg  case `(set -o) 2>/dev/null` in #(
17563a4f78defSmrg  *posix*) :
17564a4f78defSmrg    set -o posix ;; #(
17565a4f78defSmrg  *) :
17566a4f78defSmrg     ;;
17567a4f78defSmrgesac
17568a4f78defSmrgfi
17569a4f78defSmrg
17570a4f78defSmrg
17571a4f78defSmrgas_nl='
17572a4f78defSmrg'
17573a4f78defSmrgexport as_nl
17574a4f78defSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
17575a4f78defSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17576a4f78defSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17577a4f78defSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17578a4f78defSmrg# Prefer a ksh shell builtin over an external printf program on Solaris,
17579a4f78defSmrg# but without wasting forks for bash or zsh.
17580a4f78defSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \
17581a4f78defSmrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17582a4f78defSmrg  as_echo='print -r --'
17583a4f78defSmrg  as_echo_n='print -rn --'
17584a4f78defSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17585a4f78defSmrg  as_echo='printf %s\n'
17586a4f78defSmrg  as_echo_n='printf %s'
17587a4f78defSmrgelse
17588a4f78defSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17589a4f78defSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17590a4f78defSmrg    as_echo_n='/usr/ucb/echo -n'
17591a4f78defSmrg  else
17592a4f78defSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17593a4f78defSmrg    as_echo_n_body='eval
17594a4f78defSmrg      arg=$1;
17595a4f78defSmrg      case $arg in #(
17596a4f78defSmrg      *"$as_nl"*)
17597a4f78defSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
17598a4f78defSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17599a4f78defSmrg      esac;
17600a4f78defSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17601a4f78defSmrg    '
17602a4f78defSmrg    export as_echo_n_body
17603a4f78defSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
17604a4f78defSmrg  fi
17605a4f78defSmrg  export as_echo_body
17606a4f78defSmrg  as_echo='sh -c $as_echo_body as_echo'
17607a4f78defSmrgfi
17608a4f78defSmrg
17609a4f78defSmrg# The user is always right.
17610a4f78defSmrgif test "${PATH_SEPARATOR+set}" != set; then
17611a4f78defSmrg  PATH_SEPARATOR=:
17612a4f78defSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17613a4f78defSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17614a4f78defSmrg      PATH_SEPARATOR=';'
17615a4f78defSmrg  }
17616a4f78defSmrgfi
17617a4f78defSmrg
17618a4f78defSmrg
17619a4f78defSmrg# IFS
17620a4f78defSmrg# We need space, tab and new line, in precisely that order.  Quoting is
17621a4f78defSmrg# there to prevent editors from complaining about space-tab.
17622a4f78defSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17623a4f78defSmrg# splitting by setting IFS to empty value.)
17624a4f78defSmrgIFS=" ""	$as_nl"
17625a4f78defSmrg
17626a4f78defSmrg# Find who we are.  Look in the path if we contain no directory separator.
17627a4f78defSmrgas_myself=
17628a4f78defSmrgcase $0 in #((
17629a4f78defSmrg  *[\\/]* ) as_myself=$0 ;;
17630a4f78defSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17631a4f78defSmrgfor as_dir in $PATH
17632a4f78defSmrgdo
17633a4f78defSmrg  IFS=$as_save_IFS
17634a4f78defSmrg  test -z "$as_dir" && as_dir=.
17635a4f78defSmrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17636a4f78defSmrg  done
17637a4f78defSmrgIFS=$as_save_IFS
17638a4f78defSmrg
17639a4f78defSmrg     ;;
17640a4f78defSmrgesac
17641a4f78defSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
17642a4f78defSmrg# in which case we are not to be found in the path.
17643a4f78defSmrgif test "x$as_myself" = x; then
17644a4f78defSmrg  as_myself=$0
17645a4f78defSmrgfi
17646a4f78defSmrgif test ! -f "$as_myself"; then
17647a4f78defSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17648a4f78defSmrg  exit 1
17649a4f78defSmrgfi
17650a4f78defSmrg
17651a4f78defSmrg# Unset variables that we do not need and which cause bugs (e.g. in
17652a4f78defSmrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17653a4f78defSmrg# suppresses any "Segmentation fault" message there.  '((' could
17654a4f78defSmrg# trigger a bug in pdksh 5.2.14.
17655a4f78defSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH
17656a4f78defSmrgdo eval test x\${$as_var+set} = xset \
17657a4f78defSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17658a4f78defSmrgdone
17659a4f78defSmrgPS1='$ '
17660a4f78defSmrgPS2='> '
17661a4f78defSmrgPS4='+ '
17662a4f78defSmrg
17663a4f78defSmrg# NLS nuisances.
17664a4f78defSmrgLC_ALL=C
17665a4f78defSmrgexport LC_ALL
17666a4f78defSmrgLANGUAGE=C
17667a4f78defSmrgexport LANGUAGE
17668a4f78defSmrg
17669a4f78defSmrg# CDPATH.
17670a4f78defSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17671a4f78defSmrg
17672a4f78defSmrg
17673a4f78defSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
17674a4f78defSmrg# ----------------------------------------
17675a4f78defSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17676a4f78defSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17677a4f78defSmrg# script with STATUS, using 1 if that was 0.
17678a4f78defSmrgas_fn_error ()
17679a4f78defSmrg{
17680a4f78defSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
17681a4f78defSmrg  if test "$4"; then
17682a4f78defSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17683a4f78defSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17684a4f78defSmrg  fi
17685a4f78defSmrg  $as_echo "$as_me: error: $2" >&2
17686a4f78defSmrg  as_fn_exit $as_status
17687a4f78defSmrg} # as_fn_error
17688a4f78defSmrg
17689a4f78defSmrg
17690a4f78defSmrg# as_fn_set_status STATUS
17691a4f78defSmrg# -----------------------
17692a4f78defSmrg# Set $? to STATUS, without forking.
17693a4f78defSmrgas_fn_set_status ()
17694a4f78defSmrg{
17695a4f78defSmrg  return $1
17696a4f78defSmrg} # as_fn_set_status
17697a4f78defSmrg
17698a4f78defSmrg# as_fn_exit STATUS
17699a4f78defSmrg# -----------------
17700a4f78defSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17701a4f78defSmrgas_fn_exit ()
17702a4f78defSmrg{
17703a4f78defSmrg  set +e
17704a4f78defSmrg  as_fn_set_status $1
17705a4f78defSmrg  exit $1
17706a4f78defSmrg} # as_fn_exit
17707a4f78defSmrg
17708a4f78defSmrg# as_fn_unset VAR
17709a4f78defSmrg# ---------------
17710a4f78defSmrg# Portably unset VAR.
17711a4f78defSmrgas_fn_unset ()
17712a4f78defSmrg{
17713a4f78defSmrg  { eval $1=; unset $1;}
17714a4f78defSmrg}
17715a4f78defSmrgas_unset=as_fn_unset
17716a4f78defSmrg# as_fn_append VAR VALUE
17717a4f78defSmrg# ----------------------
17718a4f78defSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
17719a4f78defSmrg# advantage of any shell optimizations that allow amortized linear growth over
17720a4f78defSmrg# repeated appends, instead of the typical quadratic growth present in naive
17721a4f78defSmrg# implementations.
17722a4f78defSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17723a4f78defSmrg  eval 'as_fn_append ()
17724a4f78defSmrg  {
17725a4f78defSmrg    eval $1+=\$2
17726a4f78defSmrg  }'
17727a4f78defSmrgelse
17728a4f78defSmrg  as_fn_append ()
17729a4f78defSmrg  {
17730a4f78defSmrg    eval $1=\$$1\$2
17731a4f78defSmrg  }
17732a4f78defSmrgfi # as_fn_append
17733a4f78defSmrg
17734a4f78defSmrg# as_fn_arith ARG...
17735a4f78defSmrg# ------------------
17736a4f78defSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
17737a4f78defSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
17738a4f78defSmrg# must be portable across $(()) and expr.
17739a4f78defSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17740a4f78defSmrg  eval 'as_fn_arith ()
17741a4f78defSmrg  {
17742a4f78defSmrg    as_val=$(( $* ))
17743a4f78defSmrg  }'
17744a4f78defSmrgelse
17745a4f78defSmrg  as_fn_arith ()
17746a4f78defSmrg  {
17747a4f78defSmrg    as_val=`expr "$@" || test $? -eq 1`
17748a4f78defSmrg  }
17749a4f78defSmrgfi # as_fn_arith
17750a4f78defSmrg
17751a4f78defSmrg
17752a4f78defSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
17753a4f78defSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17754a4f78defSmrg  as_expr=expr
17755a4f78defSmrgelse
17756a4f78defSmrg  as_expr=false
17757a4f78defSmrgfi
17758a4f78defSmrg
17759a4f78defSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17760a4f78defSmrg  as_basename=basename
17761a4f78defSmrgelse
17762a4f78defSmrg  as_basename=false
17763a4f78defSmrgfi
17764a4f78defSmrg
17765a4f78defSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17766a4f78defSmrg  as_dirname=dirname
17767a4f78defSmrgelse
17768a4f78defSmrg  as_dirname=false
17769a4f78defSmrgfi
17770a4f78defSmrg
17771a4f78defSmrgas_me=`$as_basename -- "$0" ||
17772a4f78defSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17773a4f78defSmrg	 X"$0" : 'X\(//\)$' \| \
17774a4f78defSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17775a4f78defSmrg$as_echo X/"$0" |
17776a4f78defSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
17777a4f78defSmrg	    s//\1/
17778a4f78defSmrg	    q
17779a4f78defSmrg	  }
17780a4f78defSmrg	  /^X\/\(\/\/\)$/{
17781a4f78defSmrg	    s//\1/
17782a4f78defSmrg	    q
17783a4f78defSmrg	  }
17784a4f78defSmrg	  /^X\/\(\/\).*/{
17785a4f78defSmrg	    s//\1/
17786a4f78defSmrg	    q
17787a4f78defSmrg	  }
17788a4f78defSmrg	  s/.*/./; q'`
17789a4f78defSmrg
17790a4f78defSmrg# Avoid depending upon Character Ranges.
17791a4f78defSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
17792a4f78defSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17793a4f78defSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
17794a4f78defSmrgas_cr_digits='0123456789'
17795a4f78defSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
17796a4f78defSmrg
17797a4f78defSmrgECHO_C= ECHO_N= ECHO_T=
17798a4f78defSmrgcase `echo -n x` in #(((((
17799a4f78defSmrg-n*)
17800a4f78defSmrg  case `echo 'xy\c'` in
17801a4f78defSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17802a4f78defSmrg  xy)  ECHO_C='\c';;
17803a4f78defSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17804a4f78defSmrg       ECHO_T='	';;
17805a4f78defSmrg  esac;;
17806a4f78defSmrg*)
17807a4f78defSmrg  ECHO_N='-n';;
17808a4f78defSmrgesac
17809a4f78defSmrg
17810a4f78defSmrgrm -f conf$$ conf$$.exe conf$$.file
17811a4f78defSmrgif test -d conf$$.dir; then
17812a4f78defSmrg  rm -f conf$$.dir/conf$$.file
17813a4f78defSmrgelse
17814a4f78defSmrg  rm -f conf$$.dir
17815a4f78defSmrg  mkdir conf$$.dir 2>/dev/null
17816a4f78defSmrgfi
17817a4f78defSmrgif (echo >conf$$.file) 2>/dev/null; then
17818a4f78defSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
17819a4f78defSmrg    as_ln_s='ln -s'
17820a4f78defSmrg    # ... but there are two gotchas:
17821a4f78defSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17822a4f78defSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17823a4f78defSmrg    # In both cases, we have to default to `cp -pR'.
17824a4f78defSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17825a4f78defSmrg      as_ln_s='cp -pR'
17826a4f78defSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
17827a4f78defSmrg    as_ln_s=ln
17828a4f78defSmrg  else
17829a4f78defSmrg    as_ln_s='cp -pR'
17830a4f78defSmrg  fi
17831a4f78defSmrgelse
17832a4f78defSmrg  as_ln_s='cp -pR'
17833a4f78defSmrgfi
17834a4f78defSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17835a4f78defSmrgrmdir conf$$.dir 2>/dev/null
17836a4f78defSmrg
17837a4f78defSmrg
17838a4f78defSmrg# as_fn_mkdir_p
17839a4f78defSmrg# -------------
17840a4f78defSmrg# Create "$as_dir" as a directory, including parents if necessary.
17841a4f78defSmrgas_fn_mkdir_p ()
17842a4f78defSmrg{
17843a4f78defSmrg
17844a4f78defSmrg  case $as_dir in #(
17845a4f78defSmrg  -*) as_dir=./$as_dir;;
17846a4f78defSmrg  esac
17847a4f78defSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
17848a4f78defSmrg    as_dirs=
17849a4f78defSmrg    while :; do
17850a4f78defSmrg      case $as_dir in #(
17851a4f78defSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17852a4f78defSmrg      *) as_qdir=$as_dir;;
17853a4f78defSmrg      esac
17854a4f78defSmrg      as_dirs="'$as_qdir' $as_dirs"
17855a4f78defSmrg      as_dir=`$as_dirname -- "$as_dir" ||
17856a4f78defSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17857a4f78defSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
17858a4f78defSmrg	 X"$as_dir" : 'X\(//\)$' \| \
17859a4f78defSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17860a4f78defSmrg$as_echo X"$as_dir" |
17861a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17862a4f78defSmrg	    s//\1/
17863a4f78defSmrg	    q
17864a4f78defSmrg	  }
17865a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
17866a4f78defSmrg	    s//\1/
17867a4f78defSmrg	    q
17868a4f78defSmrg	  }
17869a4f78defSmrg	  /^X\(\/\/\)$/{
17870a4f78defSmrg	    s//\1/
17871a4f78defSmrg	    q
17872a4f78defSmrg	  }
17873a4f78defSmrg	  /^X\(\/\).*/{
17874a4f78defSmrg	    s//\1/
17875a4f78defSmrg	    q
17876a4f78defSmrg	  }
17877a4f78defSmrg	  s/.*/./; q'`
17878a4f78defSmrg      test -d "$as_dir" && break
17879a4f78defSmrg    done
17880a4f78defSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
17881a4f78defSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17882a4f78defSmrg
17883a4f78defSmrg
17884a4f78defSmrg} # as_fn_mkdir_p
17885a4f78defSmrgif mkdir -p . 2>/dev/null; then
17886a4f78defSmrg  as_mkdir_p='mkdir -p "$as_dir"'
17887a4f78defSmrgelse
17888a4f78defSmrg  test -d ./-p && rmdir ./-p
17889a4f78defSmrg  as_mkdir_p=false
17890a4f78defSmrgfi
17891a4f78defSmrg
17892a4f78defSmrg
17893a4f78defSmrg# as_fn_executable_p FILE
17894a4f78defSmrg# -----------------------
17895a4f78defSmrg# Test if FILE is an executable regular file.
17896a4f78defSmrgas_fn_executable_p ()
17897a4f78defSmrg{
17898a4f78defSmrg  test -f "$1" && test -x "$1"
17899a4f78defSmrg} # as_fn_executable_p
17900a4f78defSmrgas_test_x='test -x'
17901a4f78defSmrgas_executable_p=as_fn_executable_p
17902a4f78defSmrg
17903a4f78defSmrg# Sed expression to map a string onto a valid CPP name.
17904a4f78defSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17905a4f78defSmrg
17906a4f78defSmrg# Sed expression to map a string onto a valid variable name.
17907a4f78defSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17908a4f78defSmrg
17909a4f78defSmrg
17910a4f78defSmrgexec 6>&1
17911a4f78defSmrg## ----------------------------------- ##
17912a4f78defSmrg## Main body of $CONFIG_STATUS script. ##
17913a4f78defSmrg## ----------------------------------- ##
17914a4f78defSmrg_ASEOF
17915a4f78defSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17916a4f78defSmrg
17917a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17918a4f78defSmrg# Save the log message, to keep $0 and so on meaningful, and to
17919a4f78defSmrg# report actual input values of CONFIG_FILES etc. instead of their
17920a4f78defSmrg# values after options handling.
17921a4f78defSmrgac_log="
17922a4f78defSmrgThis file was extended by libvdpau $as_me 1.1.1, which was
17923a4f78defSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
17924a4f78defSmrg
17925a4f78defSmrg  CONFIG_FILES    = $CONFIG_FILES
17926a4f78defSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
17927a4f78defSmrg  CONFIG_LINKS    = $CONFIG_LINKS
17928a4f78defSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
17929a4f78defSmrg  $ $0 $@
17930a4f78defSmrg
17931a4f78defSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
17932a4f78defSmrg"
17933a4f78defSmrg
17934a4f78defSmrg_ACEOF
17935a4f78defSmrg
17936a4f78defSmrgcase $ac_config_files in *"
17937a4f78defSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
17938a4f78defSmrgesac
17939a4f78defSmrg
17940a4f78defSmrgcase $ac_config_headers in *"
17941a4f78defSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17942a4f78defSmrgesac
17943a4f78defSmrg
17944a4f78defSmrg
17945a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17946a4f78defSmrg# Files that config.status was made for.
17947a4f78defSmrgconfig_files="$ac_config_files"
17948a4f78defSmrgconfig_headers="$ac_config_headers"
17949a4f78defSmrgconfig_commands="$ac_config_commands"
17950a4f78defSmrg
17951a4f78defSmrg_ACEOF
17952a4f78defSmrg
17953a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17954a4f78defSmrgac_cs_usage="\
17955a4f78defSmrg\`$as_me' instantiates files and other configuration actions
17956a4f78defSmrgfrom templates according to the current configuration.  Unless the files
17957a4f78defSmrgand actions are specified as TAGs, all are instantiated by default.
17958a4f78defSmrg
17959a4f78defSmrgUsage: $0 [OPTION]... [TAG]...
17960a4f78defSmrg
17961a4f78defSmrg  -h, --help       print this help, then exit
17962a4f78defSmrg  -V, --version    print version number and configuration settings, then exit
17963a4f78defSmrg      --config     print configuration, then exit
17964a4f78defSmrg  -q, --quiet, --silent
17965a4f78defSmrg                   do not print progress messages
17966a4f78defSmrg  -d, --debug      don't remove temporary files
17967a4f78defSmrg      --recheck    update $as_me by reconfiguring in the same conditions
17968a4f78defSmrg      --file=FILE[:TEMPLATE]
17969a4f78defSmrg                   instantiate the configuration file FILE
17970a4f78defSmrg      --header=FILE[:TEMPLATE]
17971a4f78defSmrg                   instantiate the configuration header FILE
17972a4f78defSmrg
17973a4f78defSmrgConfiguration files:
17974a4f78defSmrg$config_files
17975a4f78defSmrg
17976a4f78defSmrgConfiguration headers:
17977a4f78defSmrg$config_headers
17978a4f78defSmrg
17979a4f78defSmrgConfiguration commands:
17980a4f78defSmrg$config_commands
17981a4f78defSmrg
17982a4f78defSmrgReport bugs to <vdpau@lists.freedesktop.org>."
17983a4f78defSmrg
17984a4f78defSmrg_ACEOF
17985a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17986a4f78defSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17987a4f78defSmrgac_cs_version="\\
17988a4f78defSmrglibvdpau config.status 1.1.1
17989a4f78defSmrgconfigured by $0, generated by GNU Autoconf 2.69,
17990a4f78defSmrg  with options \\"\$ac_cs_config\\"
17991a4f78defSmrg
17992a4f78defSmrgCopyright (C) 2012 Free Software Foundation, Inc.
17993a4f78defSmrgThis config.status script is free software; the Free Software Foundation
17994a4f78defSmrggives unlimited permission to copy, distribute and modify it."
17995a4f78defSmrg
17996a4f78defSmrgac_pwd='$ac_pwd'
17997a4f78defSmrgsrcdir='$srcdir'
17998a4f78defSmrgINSTALL='$INSTALL'
17999a4f78defSmrgMKDIR_P='$MKDIR_P'
18000a4f78defSmrgAWK='$AWK'
18001a4f78defSmrgtest -n "\$AWK" || AWK=awk
18002a4f78defSmrg_ACEOF
18003a4f78defSmrg
18004a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18005a4f78defSmrg# The default lists apply if the user does not specify any file.
18006a4f78defSmrgac_need_defaults=:
18007a4f78defSmrgwhile test $# != 0
18008a4f78defSmrgdo
18009a4f78defSmrg  case $1 in
18010a4f78defSmrg  --*=?*)
18011a4f78defSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18012a4f78defSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18013a4f78defSmrg    ac_shift=:
18014a4f78defSmrg    ;;
18015a4f78defSmrg  --*=)
18016a4f78defSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18017a4f78defSmrg    ac_optarg=
18018a4f78defSmrg    ac_shift=:
18019a4f78defSmrg    ;;
18020a4f78defSmrg  *)
18021a4f78defSmrg    ac_option=$1
18022a4f78defSmrg    ac_optarg=$2
18023a4f78defSmrg    ac_shift=shift
18024a4f78defSmrg    ;;
18025a4f78defSmrg  esac
18026a4f78defSmrg
18027a4f78defSmrg  case $ac_option in
18028a4f78defSmrg  # Handling of the options.
18029a4f78defSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18030a4f78defSmrg    ac_cs_recheck=: ;;
18031a4f78defSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18032a4f78defSmrg    $as_echo "$ac_cs_version"; exit ;;
18033a4f78defSmrg  --config | --confi | --conf | --con | --co | --c )
18034a4f78defSmrg    $as_echo "$ac_cs_config"; exit ;;
18035a4f78defSmrg  --debug | --debu | --deb | --de | --d | -d )
18036a4f78defSmrg    debug=: ;;
18037a4f78defSmrg  --file | --fil | --fi | --f )
18038a4f78defSmrg    $ac_shift
18039a4f78defSmrg    case $ac_optarg in
18040a4f78defSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18041a4f78defSmrg    '') as_fn_error $? "missing file argument" ;;
18042a4f78defSmrg    esac
18043a4f78defSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
18044a4f78defSmrg    ac_need_defaults=false;;
18045a4f78defSmrg  --header | --heade | --head | --hea )
18046a4f78defSmrg    $ac_shift
18047a4f78defSmrg    case $ac_optarg in
18048a4f78defSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18049a4f78defSmrg    esac
18050a4f78defSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18051a4f78defSmrg    ac_need_defaults=false;;
18052a4f78defSmrg  --he | --h)
18053a4f78defSmrg    # Conflict between --help and --header
18054a4f78defSmrg    as_fn_error $? "ambiguous option: \`$1'
18055a4f78defSmrgTry \`$0 --help' for more information.";;
18056a4f78defSmrg  --help | --hel | -h )
18057a4f78defSmrg    $as_echo "$ac_cs_usage"; exit ;;
18058a4f78defSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18059a4f78defSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18060a4f78defSmrg    ac_cs_silent=: ;;
18061a4f78defSmrg
18062a4f78defSmrg  # This is an error.
18063a4f78defSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
18064a4f78defSmrgTry \`$0 --help' for more information." ;;
18065a4f78defSmrg
18066a4f78defSmrg  *) as_fn_append ac_config_targets " $1"
18067a4f78defSmrg     ac_need_defaults=false ;;
18068a4f78defSmrg
18069a4f78defSmrg  esac
18070a4f78defSmrg  shift
18071a4f78defSmrgdone
18072a4f78defSmrg
18073a4f78defSmrgac_configure_extra_args=
18074a4f78defSmrg
18075a4f78defSmrgif $ac_cs_silent; then
18076a4f78defSmrg  exec 6>/dev/null
18077a4f78defSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
18078a4f78defSmrgfi
18079a4f78defSmrg
18080a4f78defSmrg_ACEOF
18081a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18082a4f78defSmrgif \$ac_cs_recheck; then
18083a4f78defSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18084a4f78defSmrg  shift
18085a4f78defSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18086a4f78defSmrg  CONFIG_SHELL='$SHELL'
18087a4f78defSmrg  export CONFIG_SHELL
18088a4f78defSmrg  exec "\$@"
18089a4f78defSmrgfi
18090a4f78defSmrg
18091a4f78defSmrg_ACEOF
18092a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18093a4f78defSmrgexec 5>>config.log
18094a4f78defSmrg{
18095a4f78defSmrg  echo
18096a4f78defSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18097a4f78defSmrg## Running $as_me. ##
18098a4f78defSmrg_ASBOX
18099a4f78defSmrg  $as_echo "$ac_log"
18100a4f78defSmrg} >&5
18101a4f78defSmrg
18102a4f78defSmrg_ACEOF
18103a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104a4f78defSmrg#
18105a4f78defSmrg# INIT-COMMANDS
18106a4f78defSmrg#
18107a4f78defSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18108a4f78defSmrg
18109a4f78defSmrg
18110a4f78defSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout
18111a4f78defSmrg# if CDPATH is set.
18112a4f78defSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18113a4f78defSmrg
18114a4f78defSmrgsed_quote_subst='$sed_quote_subst'
18115a4f78defSmrgdouble_quote_subst='$double_quote_subst'
18116a4f78defSmrgdelay_variable_subst='$delay_variable_subst'
18117a4f78defSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18118a4f78defSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18119a4f78defSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18120a4f78defSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18121a4f78defSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18122a4f78defSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18123a4f78defSmrgshared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18124a4f78defSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18125a4f78defSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18126a4f78defSmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18127a4f78defSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18128a4f78defSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18129a4f78defSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18130a4f78defSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18131a4f78defSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18132a4f78defSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18133a4f78defSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18134a4f78defSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18135a4f78defSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18136a4f78defSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18137a4f78defSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18138a4f78defSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18139a4f78defSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18140a4f78defSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18141a4f78defSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18142a4f78defSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18143a4f78defSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18144a4f78defSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18145a4f78defSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18146a4f78defSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18147a4f78defSmrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18148a4f78defSmrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18149a4f78defSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18150a4f78defSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18151a4f78defSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18152a4f78defSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18153a4f78defSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18154a4f78defSmrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18155a4f78defSmrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18156a4f78defSmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18157a4f78defSmrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18158a4f78defSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18159a4f78defSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18160a4f78defSmrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18161a4f78defSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18162a4f78defSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18163a4f78defSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18164a4f78defSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18165a4f78defSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18166a4f78defSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18167a4f78defSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18168a4f78defSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18169a4f78defSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18170a4f78defSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18171a4f78defSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18172a4f78defSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18173a4f78defSmrglt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18174a4f78defSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18175a4f78defSmrglt_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"`'
18176a4f78defSmrglt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18177a4f78defSmrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18178a4f78defSmrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18179a4f78defSmrglt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18180a4f78defSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18181a4f78defSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18182a4f78defSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18183a4f78defSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18184a4f78defSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18185a4f78defSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18186a4f78defSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18187a4f78defSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18188a4f78defSmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18189a4f78defSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18190a4f78defSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18191a4f78defSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18192a4f78defSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18193a4f78defSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18194a4f78defSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18195a4f78defSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18196a4f78defSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18197a4f78defSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18198a4f78defSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18199a4f78defSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18200a4f78defSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18201a4f78defSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18202a4f78defSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18203a4f78defSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18204a4f78defSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18205a4f78defSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18206a4f78defSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18207a4f78defSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18208a4f78defSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18209a4f78defSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18210a4f78defSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18211a4f78defSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18212a4f78defSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18213a4f78defSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18214a4f78defSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18215a4f78defSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18216a4f78defSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18217a4f78defSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18218a4f78defSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18219a4f78defSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18220a4f78defSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18221a4f78defSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18222a4f78defSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18223a4f78defSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18224a4f78defSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18225a4f78defSmrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18226a4f78defSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18227a4f78defSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18228a4f78defSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18229a4f78defSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18230a4f78defSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18231a4f78defSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18232a4f78defSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18233a4f78defSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18234a4f78defSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18235a4f78defSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18236a4f78defSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18237a4f78defSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18238a4f78defSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18239a4f78defSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18240a4f78defSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18241a4f78defSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18242a4f78defSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18243a4f78defSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18244a4f78defSmrgconfigure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18245a4f78defSmrgconfigure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18246a4f78defSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18247a4f78defSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18248a4f78defSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18249a4f78defSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18250a4f78defSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18251a4f78defSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18252a4f78defSmrgcompiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18253a4f78defSmrgpredep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18254a4f78defSmrgpostdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18255a4f78defSmrgpredeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18256a4f78defSmrgpostdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18257a4f78defSmrgcompiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18258a4f78defSmrgLD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18259a4f78defSmrgreload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18260a4f78defSmrgreload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18261a4f78defSmrgold_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18262a4f78defSmrgcompiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18263a4f78defSmrgGCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18264a4f78defSmrglt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18265a4f78defSmrglt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18266a4f78defSmrglt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18267a4f78defSmrglt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18268a4f78defSmrglt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18269a4f78defSmrgarchive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18270a4f78defSmrgenable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18271a4f78defSmrgexport_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18272a4f78defSmrgwhole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18273a4f78defSmrgcompiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18274a4f78defSmrgold_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18275a4f78defSmrgold_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18276a4f78defSmrgarchive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18277a4f78defSmrgarchive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18278a4f78defSmrgmodule_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18279a4f78defSmrgmodule_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18280a4f78defSmrgwith_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18281a4f78defSmrgallow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18282a4f78defSmrgno_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18283a4f78defSmrghardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18284a4f78defSmrghardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18285a4f78defSmrghardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18286a4f78defSmrghardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18287a4f78defSmrghardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18288a4f78defSmrghardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18289a4f78defSmrghardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18290a4f78defSmrginherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18291a4f78defSmrglink_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18292a4f78defSmrgalways_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18293a4f78defSmrgexport_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18294a4f78defSmrgexclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18295a4f78defSmrginclude_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18296a4f78defSmrgprelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18297a4f78defSmrgpostlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18298a4f78defSmrgfile_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18299a4f78defSmrghardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18300a4f78defSmrgcompiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18301a4f78defSmrgpredep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18302a4f78defSmrgpostdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18303a4f78defSmrgpredeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18304a4f78defSmrgpostdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18305a4f78defSmrgcompiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18306a4f78defSmrg
18307a4f78defSmrgLTCC='$LTCC'
18308a4f78defSmrgLTCFLAGS='$LTCFLAGS'
18309a4f78defSmrgcompiler='$compiler_DEFAULT'
18310a4f78defSmrg
18311a4f78defSmrg# A function that is used when there is no print builtin or printf.
18312a4f78defSmrgfunc_fallback_echo ()
18313a4f78defSmrg{
18314a4f78defSmrg  eval 'cat <<_LTECHO_EOF
18315a4f78defSmrg\$1
18316a4f78defSmrg_LTECHO_EOF'
18317a4f78defSmrg}
18318a4f78defSmrg
18319a4f78defSmrg# Quote evaled strings.
18320a4f78defSmrgfor var in SHELL \
18321a4f78defSmrgECHO \
18322a4f78defSmrgPATH_SEPARATOR \
18323a4f78defSmrgSED \
18324a4f78defSmrgGREP \
18325a4f78defSmrgEGREP \
18326a4f78defSmrgFGREP \
18327a4f78defSmrgLD \
18328a4f78defSmrgNM \
18329a4f78defSmrgLN_S \
18330a4f78defSmrglt_SP2NL \
18331a4f78defSmrglt_NL2SP \
18332a4f78defSmrgreload_flag \
18333a4f78defSmrgOBJDUMP \
18334a4f78defSmrgdeplibs_check_method \
18335a4f78defSmrgfile_magic_cmd \
18336a4f78defSmrgfile_magic_glob \
18337a4f78defSmrgwant_nocaseglob \
18338a4f78defSmrgDLLTOOL \
18339a4f78defSmrgsharedlib_from_linklib_cmd \
18340a4f78defSmrgAR \
18341a4f78defSmrgAR_FLAGS \
18342a4f78defSmrgarchiver_list_spec \
18343a4f78defSmrgSTRIP \
18344a4f78defSmrgRANLIB \
18345a4f78defSmrgCC \
18346a4f78defSmrgCFLAGS \
18347a4f78defSmrgcompiler \
18348a4f78defSmrglt_cv_sys_global_symbol_pipe \
18349a4f78defSmrglt_cv_sys_global_symbol_to_cdecl \
18350a4f78defSmrglt_cv_sys_global_symbol_to_import \
18351a4f78defSmrglt_cv_sys_global_symbol_to_c_name_address \
18352a4f78defSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18353a4f78defSmrglt_cv_nm_interface \
18354a4f78defSmrgnm_file_list_spec \
18355a4f78defSmrglt_cv_truncate_bin \
18356a4f78defSmrglt_prog_compiler_no_builtin_flag \
18357a4f78defSmrglt_prog_compiler_pic \
18358a4f78defSmrglt_prog_compiler_wl \
18359a4f78defSmrglt_prog_compiler_static \
18360a4f78defSmrglt_cv_prog_compiler_c_o \
18361a4f78defSmrgneed_locks \
18362a4f78defSmrgMANIFEST_TOOL \
18363a4f78defSmrgDSYMUTIL \
18364a4f78defSmrgNMEDIT \
18365a4f78defSmrgLIPO \
18366a4f78defSmrgOTOOL \
18367a4f78defSmrgOTOOL64 \
18368a4f78defSmrgshrext_cmds \
18369a4f78defSmrgexport_dynamic_flag_spec \
18370a4f78defSmrgwhole_archive_flag_spec \
18371a4f78defSmrgcompiler_needs_object \
18372a4f78defSmrgwith_gnu_ld \
18373a4f78defSmrgallow_undefined_flag \
18374a4f78defSmrgno_undefined_flag \
18375a4f78defSmrghardcode_libdir_flag_spec \
18376a4f78defSmrghardcode_libdir_separator \
18377a4f78defSmrgexclude_expsyms \
18378a4f78defSmrginclude_expsyms \
18379a4f78defSmrgfile_list_spec \
18380a4f78defSmrgvariables_saved_for_relink \
18381a4f78defSmrglibname_spec \
18382a4f78defSmrglibrary_names_spec \
18383a4f78defSmrgsoname_spec \
18384a4f78defSmrginstall_override_mode \
18385a4f78defSmrgfinish_eval \
18386a4f78defSmrgold_striplib \
18387a4f78defSmrgstriplib \
18388a4f78defSmrgcompiler_lib_search_dirs \
18389a4f78defSmrgpredep_objects \
18390a4f78defSmrgpostdep_objects \
18391a4f78defSmrgpredeps \
18392a4f78defSmrgpostdeps \
18393a4f78defSmrgcompiler_lib_search_path \
18394a4f78defSmrgLD_CXX \
18395a4f78defSmrgreload_flag_CXX \
18396a4f78defSmrgcompiler_CXX \
18397a4f78defSmrglt_prog_compiler_no_builtin_flag_CXX \
18398a4f78defSmrglt_prog_compiler_pic_CXX \
18399a4f78defSmrglt_prog_compiler_wl_CXX \
18400a4f78defSmrglt_prog_compiler_static_CXX \
18401a4f78defSmrglt_cv_prog_compiler_c_o_CXX \
18402a4f78defSmrgexport_dynamic_flag_spec_CXX \
18403a4f78defSmrgwhole_archive_flag_spec_CXX \
18404a4f78defSmrgcompiler_needs_object_CXX \
18405a4f78defSmrgwith_gnu_ld_CXX \
18406a4f78defSmrgallow_undefined_flag_CXX \
18407a4f78defSmrgno_undefined_flag_CXX \
18408a4f78defSmrghardcode_libdir_flag_spec_CXX \
18409a4f78defSmrghardcode_libdir_separator_CXX \
18410a4f78defSmrgexclude_expsyms_CXX \
18411a4f78defSmrginclude_expsyms_CXX \
18412a4f78defSmrgfile_list_spec_CXX \
18413a4f78defSmrgcompiler_lib_search_dirs_CXX \
18414a4f78defSmrgpredep_objects_CXX \
18415a4f78defSmrgpostdep_objects_CXX \
18416a4f78defSmrgpredeps_CXX \
18417a4f78defSmrgpostdeps_CXX \
18418a4f78defSmrgcompiler_lib_search_path_CXX; do
18419a4f78defSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18420a4f78defSmrg    *[\\\\\\\`\\"\\\$]*)
18421a4f78defSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18422a4f78defSmrg      ;;
18423a4f78defSmrg    *)
18424a4f78defSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18425a4f78defSmrg      ;;
18426a4f78defSmrg    esac
18427a4f78defSmrgdone
18428a4f78defSmrg
18429a4f78defSmrg# Double-quote double-evaled strings.
18430a4f78defSmrgfor var in reload_cmds \
18431a4f78defSmrgold_postinstall_cmds \
18432a4f78defSmrgold_postuninstall_cmds \
18433a4f78defSmrgold_archive_cmds \
18434a4f78defSmrgextract_expsyms_cmds \
18435a4f78defSmrgold_archive_from_new_cmds \
18436a4f78defSmrgold_archive_from_expsyms_cmds \
18437a4f78defSmrgarchive_cmds \
18438a4f78defSmrgarchive_expsym_cmds \
18439a4f78defSmrgmodule_cmds \
18440a4f78defSmrgmodule_expsym_cmds \
18441a4f78defSmrgexport_symbols_cmds \
18442a4f78defSmrgprelink_cmds \
18443a4f78defSmrgpostlink_cmds \
18444a4f78defSmrgpostinstall_cmds \
18445a4f78defSmrgpostuninstall_cmds \
18446a4f78defSmrgfinish_cmds \
18447a4f78defSmrgsys_lib_search_path_spec \
18448a4f78defSmrgconfigure_time_dlsearch_path \
18449a4f78defSmrgconfigure_time_lt_sys_library_path \
18450a4f78defSmrgreload_cmds_CXX \
18451a4f78defSmrgold_archive_cmds_CXX \
18452a4f78defSmrgold_archive_from_new_cmds_CXX \
18453a4f78defSmrgold_archive_from_expsyms_cmds_CXX \
18454a4f78defSmrgarchive_cmds_CXX \
18455a4f78defSmrgarchive_expsym_cmds_CXX \
18456a4f78defSmrgmodule_cmds_CXX \
18457a4f78defSmrgmodule_expsym_cmds_CXX \
18458a4f78defSmrgexport_symbols_cmds_CXX \
18459a4f78defSmrgprelink_cmds_CXX \
18460a4f78defSmrgpostlink_cmds_CXX; do
18461a4f78defSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18462a4f78defSmrg    *[\\\\\\\`\\"\\\$]*)
18463a4f78defSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18464a4f78defSmrg      ;;
18465a4f78defSmrg    *)
18466a4f78defSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18467a4f78defSmrg      ;;
18468a4f78defSmrg    esac
18469a4f78defSmrgdone
18470a4f78defSmrg
18471a4f78defSmrgac_aux_dir='$ac_aux_dir'
18472a4f78defSmrg
18473a4f78defSmrg# See if we are running on zsh, and set the options that allow our
18474a4f78defSmrg# commands through without removal of \ escapes INIT.
18475a4f78defSmrgif test -n "\${ZSH_VERSION+set}"; then
18476a4f78defSmrg   setopt NO_GLOB_SUBST
18477a4f78defSmrgfi
18478a4f78defSmrg
18479a4f78defSmrg
18480a4f78defSmrg    PACKAGE='$PACKAGE'
18481a4f78defSmrg    VERSION='$VERSION'
18482a4f78defSmrg    RM='$RM'
18483a4f78defSmrg    ofile='$ofile'
18484a4f78defSmrg
18485a4f78defSmrg
18486a4f78defSmrg
18487a4f78defSmrg
18488a4f78defSmrg
18489a4f78defSmrg
18490a4f78defSmrg_ACEOF
18491a4f78defSmrg
18492a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493a4f78defSmrg
18494a4f78defSmrg# Handling of arguments.
18495a4f78defSmrgfor ac_config_target in $ac_config_targets
18496a4f78defSmrgdo
18497a4f78defSmrg  case $ac_config_target in
18498a4f78defSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18499a4f78defSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18500a4f78defSmrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18501a4f78defSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18502a4f78defSmrg    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18503a4f78defSmrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18504a4f78defSmrg    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18505a4f78defSmrg    "trace/Makefile") CONFIG_FILES="$CONFIG_FILES trace/Makefile" ;;
18506a4f78defSmrg    "vdpau.pc") CONFIG_FILES="$CONFIG_FILES vdpau.pc" ;;
18507a4f78defSmrg
18508a4f78defSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18509a4f78defSmrg  esac
18510a4f78defSmrgdone
18511a4f78defSmrg
18512a4f78defSmrg
18513a4f78defSmrg# If the user did not use the arguments to specify the items to instantiate,
18514a4f78defSmrg# then the envvar interface is used.  Set only those that are not.
18515a4f78defSmrg# We use the long form for the default assignment because of an extremely
18516a4f78defSmrg# bizarre bug on SunOS 4.1.3.
18517a4f78defSmrgif $ac_need_defaults; then
18518a4f78defSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18519a4f78defSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18520a4f78defSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18521a4f78defSmrgfi
18522a4f78defSmrg
18523a4f78defSmrg# Have a temporary directory for convenience.  Make it in the build tree
18524a4f78defSmrg# simply because there is no reason against having it here, and in addition,
18525a4f78defSmrg# creating and moving files from /tmp can sometimes cause problems.
18526a4f78defSmrg# Hook for its removal unless debugging.
18527a4f78defSmrg# Note that there is a small window in which the directory will not be cleaned:
18528a4f78defSmrg# after its creation but before its name has been assigned to `$tmp'.
18529a4f78defSmrg$debug ||
18530a4f78defSmrg{
18531a4f78defSmrg  tmp= ac_tmp=
18532a4f78defSmrg  trap 'exit_status=$?
18533a4f78defSmrg  : "${ac_tmp:=$tmp}"
18534a4f78defSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18535a4f78defSmrg' 0
18536a4f78defSmrg  trap 'as_fn_exit 1' 1 2 13 15
18537a4f78defSmrg}
18538a4f78defSmrg# Create a (secure) tmp directory for tmp files.
18539a4f78defSmrg
18540a4f78defSmrg{
18541a4f78defSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18542a4f78defSmrg  test -d "$tmp"
18543a4f78defSmrg}  ||
18544a4f78defSmrg{
18545a4f78defSmrg  tmp=./conf$$-$RANDOM
18546a4f78defSmrg  (umask 077 && mkdir "$tmp")
18547a4f78defSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18548a4f78defSmrgac_tmp=$tmp
18549a4f78defSmrg
18550a4f78defSmrg# Set up the scripts for CONFIG_FILES section.
18551a4f78defSmrg# No need to generate them if there are no CONFIG_FILES.
18552a4f78defSmrg# This happens for instance with `./config.status config.h'.
18553a4f78defSmrgif test -n "$CONFIG_FILES"; then
18554a4f78defSmrg
18555a4f78defSmrg
18556a4f78defSmrgac_cr=`echo X | tr X '\015'`
18557a4f78defSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
18558a4f78defSmrg# But we know of no other shell where ac_cr would be empty at this
18559a4f78defSmrg# point, so we can use a bashism as a fallback.
18560a4f78defSmrgif test "x$ac_cr" = x; then
18561a4f78defSmrg  eval ac_cr=\$\'\\r\'
18562a4f78defSmrgfi
18563a4f78defSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18564a4f78defSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18565a4f78defSmrg  ac_cs_awk_cr='\\r'
18566a4f78defSmrgelse
18567a4f78defSmrg  ac_cs_awk_cr=$ac_cr
18568a4f78defSmrgfi
18569a4f78defSmrg
18570a4f78defSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18571a4f78defSmrg_ACEOF
18572a4f78defSmrg
18573a4f78defSmrg
18574a4f78defSmrg{
18575a4f78defSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
18576a4f78defSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18577a4f78defSmrg  echo "_ACEOF"
18578a4f78defSmrg} >conf$$subs.sh ||
18579a4f78defSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18580a4f78defSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18581a4f78defSmrgac_delim='%!_!# '
18582a4f78defSmrgfor ac_last_try in false false false false false :; do
18583a4f78defSmrg  . ./conf$$subs.sh ||
18584a4f78defSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18585a4f78defSmrg
18586a4f78defSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18587a4f78defSmrg  if test $ac_delim_n = $ac_delim_num; then
18588a4f78defSmrg    break
18589a4f78defSmrg  elif $ac_last_try; then
18590a4f78defSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18591a4f78defSmrg  else
18592a4f78defSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18593a4f78defSmrg  fi
18594a4f78defSmrgdone
18595a4f78defSmrgrm -f conf$$subs.sh
18596a4f78defSmrg
18597a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18598a4f78defSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18599a4f78defSmrg_ACEOF
18600a4f78defSmrgsed -n '
18601a4f78defSmrgh
18602a4f78defSmrgs/^/S["/; s/!.*/"]=/
18603a4f78defSmrgp
18604a4f78defSmrgg
18605a4f78defSmrgs/^[^!]*!//
18606a4f78defSmrg:repl
18607a4f78defSmrgt repl
18608a4f78defSmrgs/'"$ac_delim"'$//
18609a4f78defSmrgt delim
18610a4f78defSmrg:nl
18611a4f78defSmrgh
18612a4f78defSmrgs/\(.\{148\}\)..*/\1/
18613a4f78defSmrgt more1
18614a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18615a4f78defSmrgp
18616a4f78defSmrgn
18617a4f78defSmrgb repl
18618a4f78defSmrg:more1
18619a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
18620a4f78defSmrgp
18621a4f78defSmrgg
18622a4f78defSmrgs/.\{148\}//
18623a4f78defSmrgt nl
18624a4f78defSmrg:delim
18625a4f78defSmrgh
18626a4f78defSmrgs/\(.\{148\}\)..*/\1/
18627a4f78defSmrgt more2
18628a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
18629a4f78defSmrgp
18630a4f78defSmrgb
18631a4f78defSmrg:more2
18632a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
18633a4f78defSmrgp
18634a4f78defSmrgg
18635a4f78defSmrgs/.\{148\}//
18636a4f78defSmrgt delim
18637a4f78defSmrg' <conf$$subs.awk | sed '
18638a4f78defSmrg/^[^""]/{
18639a4f78defSmrg  N
18640a4f78defSmrg  s/\n//
18641a4f78defSmrg}
18642a4f78defSmrg' >>$CONFIG_STATUS || ac_write_fail=1
18643a4f78defSmrgrm -f conf$$subs.awk
18644a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18645a4f78defSmrg_ACAWK
18646a4f78defSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18647a4f78defSmrg  for (key in S) S_is_set[key] = 1
18648a4f78defSmrg  FS = ""
18649a4f78defSmrg
18650a4f78defSmrg}
18651a4f78defSmrg{
18652a4f78defSmrg  line = $ 0
18653a4f78defSmrg  nfields = split(line, field, "@")
18654a4f78defSmrg  substed = 0
18655a4f78defSmrg  len = length(field[1])
18656a4f78defSmrg  for (i = 2; i < nfields; i++) {
18657a4f78defSmrg    key = field[i]
18658a4f78defSmrg    keylen = length(key)
18659a4f78defSmrg    if (S_is_set[key]) {
18660a4f78defSmrg      value = S[key]
18661a4f78defSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18662a4f78defSmrg      len += length(value) + length(field[++i])
18663a4f78defSmrg      substed = 1
18664a4f78defSmrg    } else
18665a4f78defSmrg      len += 1 + keylen
18666a4f78defSmrg  }
18667a4f78defSmrg
18668a4f78defSmrg  print line
18669a4f78defSmrg}
18670a4f78defSmrg
18671a4f78defSmrg_ACAWK
18672a4f78defSmrg_ACEOF
18673a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674a4f78defSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18675a4f78defSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18676a4f78defSmrgelse
18677a4f78defSmrg  cat
18678a4f78defSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18679a4f78defSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18680a4f78defSmrg_ACEOF
18681a4f78defSmrg
18682a4f78defSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18683a4f78defSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18684a4f78defSmrg# trailing colons and then remove the whole line if VPATH becomes empty
18685a4f78defSmrg# (actually we leave an empty line to preserve line numbers).
18686a4f78defSmrgif test "x$srcdir" = x.; then
18687a4f78defSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18688a4f78defSmrgh
18689a4f78defSmrgs///
18690a4f78defSmrgs/^/:/
18691a4f78defSmrgs/[	 ]*$/:/
18692a4f78defSmrgs/:\$(srcdir):/:/g
18693a4f78defSmrgs/:\${srcdir}:/:/g
18694a4f78defSmrgs/:@srcdir@:/:/g
18695a4f78defSmrgs/^:*//
18696a4f78defSmrgs/:*$//
18697a4f78defSmrgx
18698a4f78defSmrgs/\(=[	 ]*\).*/\1/
18699a4f78defSmrgG
18700a4f78defSmrgs/\n//
18701a4f78defSmrgs/^[^=]*=[	 ]*$//
18702a4f78defSmrg}'
18703a4f78defSmrgfi
18704a4f78defSmrg
18705a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706a4f78defSmrgfi # test -n "$CONFIG_FILES"
18707a4f78defSmrg
18708a4f78defSmrg# Set up the scripts for CONFIG_HEADERS section.
18709a4f78defSmrg# No need to generate them if there are no CONFIG_HEADERS.
18710a4f78defSmrg# This happens for instance with `./config.status Makefile'.
18711a4f78defSmrgif test -n "$CONFIG_HEADERS"; then
18712a4f78defSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18713a4f78defSmrgBEGIN {
18714a4f78defSmrg_ACEOF
18715a4f78defSmrg
18716a4f78defSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
18717a4f78defSmrg# here-document in config.status, that substitutes the proper values into
18718a4f78defSmrg# config.h.in to produce config.h.
18719a4f78defSmrg
18720a4f78defSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
18721a4f78defSmrg# handling of long lines.
18722a4f78defSmrgac_delim='%!_!# '
18723a4f78defSmrgfor ac_last_try in false false :; do
18724a4f78defSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18725a4f78defSmrg  if test -z "$ac_tt"; then
18726a4f78defSmrg    break
18727a4f78defSmrg  elif $ac_last_try; then
18728a4f78defSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18729a4f78defSmrg  else
18730a4f78defSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18731a4f78defSmrg  fi
18732a4f78defSmrgdone
18733a4f78defSmrg
18734a4f78defSmrg# For the awk script, D is an array of macro values keyed by name,
18735a4f78defSmrg# likewise P contains macro parameters if any.  Preserve backslash
18736a4f78defSmrg# newline sequences.
18737a4f78defSmrg
18738a4f78defSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18739a4f78defSmrgsed -n '
18740a4f78defSmrgs/.\{148\}/&'"$ac_delim"'/g
18741a4f78defSmrgt rset
18742a4f78defSmrg:rset
18743a4f78defSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18744a4f78defSmrgt def
18745a4f78defSmrgd
18746a4f78defSmrg:def
18747a4f78defSmrgs/\\$//
18748a4f78defSmrgt bsnl
18749a4f78defSmrgs/["\\]/\\&/g
18750a4f78defSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18751a4f78defSmrgD["\1"]=" \3"/p
18752a4f78defSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18753a4f78defSmrgd
18754a4f78defSmrg:bsnl
18755a4f78defSmrgs/["\\]/\\&/g
18756a4f78defSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18757a4f78defSmrgD["\1"]=" \3\\\\\\n"\\/p
18758a4f78defSmrgt cont
18759a4f78defSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18760a4f78defSmrgt cont
18761a4f78defSmrgd
18762a4f78defSmrg:cont
18763a4f78defSmrgn
18764a4f78defSmrgs/.\{148\}/&'"$ac_delim"'/g
18765a4f78defSmrgt clear
18766a4f78defSmrg:clear
18767a4f78defSmrgs/\\$//
18768a4f78defSmrgt bsnlc
18769a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
18770a4f78defSmrgd
18771a4f78defSmrg:bsnlc
18772a4f78defSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18773a4f78defSmrgb cont
18774a4f78defSmrg' <confdefs.h | sed '
18775a4f78defSmrgs/'"$ac_delim"'/"\\\
18776a4f78defSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
18777a4f78defSmrg
18778a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779a4f78defSmrg  for (key in D) D_is_set[key] = 1
18780a4f78defSmrg  FS = ""
18781a4f78defSmrg}
18782a4f78defSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18783a4f78defSmrg  line = \$ 0
18784a4f78defSmrg  split(line, arg, " ")
18785a4f78defSmrg  if (arg[1] == "#") {
18786a4f78defSmrg    defundef = arg[2]
18787a4f78defSmrg    mac1 = arg[3]
18788a4f78defSmrg  } else {
18789a4f78defSmrg    defundef = substr(arg[1], 2)
18790a4f78defSmrg    mac1 = arg[2]
18791a4f78defSmrg  }
18792a4f78defSmrg  split(mac1, mac2, "(") #)
18793a4f78defSmrg  macro = mac2[1]
18794a4f78defSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
18795a4f78defSmrg  if (D_is_set[macro]) {
18796a4f78defSmrg    # Preserve the white space surrounding the "#".
18797a4f78defSmrg    print prefix "define", macro P[macro] D[macro]
18798a4f78defSmrg    next
18799a4f78defSmrg  } else {
18800a4f78defSmrg    # Replace #undef with comments.  This is necessary, for example,
18801a4f78defSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
18802a4f78defSmrg    # on some systems where configure will not decide to define it.
18803a4f78defSmrg    if (defundef == "undef") {
18804a4f78defSmrg      print "/*", prefix defundef, macro, "*/"
18805a4f78defSmrg      next
18806a4f78defSmrg    }
18807a4f78defSmrg  }
18808a4f78defSmrg}
18809a4f78defSmrg{ print }
18810a4f78defSmrg_ACAWK
18811a4f78defSmrg_ACEOF
18812a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813a4f78defSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18814a4f78defSmrgfi # test -n "$CONFIG_HEADERS"
18815a4f78defSmrg
18816a4f78defSmrg
18817a4f78defSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18818a4f78defSmrgshift
18819a4f78defSmrgfor ac_tag
18820a4f78defSmrgdo
18821a4f78defSmrg  case $ac_tag in
18822a4f78defSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
18823a4f78defSmrg  esac
18824a4f78defSmrg  case $ac_mode$ac_tag in
18825a4f78defSmrg  :[FHL]*:*);;
18826a4f78defSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18827a4f78defSmrg  :[FH]-) ac_tag=-:-;;
18828a4f78defSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18829a4f78defSmrg  esac
18830a4f78defSmrg  ac_save_IFS=$IFS
18831a4f78defSmrg  IFS=:
18832a4f78defSmrg  set x $ac_tag
18833a4f78defSmrg  IFS=$ac_save_IFS
18834a4f78defSmrg  shift
18835a4f78defSmrg  ac_file=$1
18836a4f78defSmrg  shift
18837a4f78defSmrg
18838a4f78defSmrg  case $ac_mode in
18839a4f78defSmrg  :L) ac_source=$1;;
18840a4f78defSmrg  :[FH])
18841a4f78defSmrg    ac_file_inputs=
18842a4f78defSmrg    for ac_f
18843a4f78defSmrg    do
18844a4f78defSmrg      case $ac_f in
18845a4f78defSmrg      -) ac_f="$ac_tmp/stdin";;
18846a4f78defSmrg      *) # Look for the file first in the build tree, then in the source tree
18847a4f78defSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18848a4f78defSmrg	 # because $ac_f cannot contain `:'.
18849a4f78defSmrg	 test -f "$ac_f" ||
18850a4f78defSmrg	   case $ac_f in
18851a4f78defSmrg	   [\\/$]*) false;;
18852a4f78defSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18853a4f78defSmrg	   esac ||
18854a4f78defSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18855a4f78defSmrg      esac
18856a4f78defSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18857a4f78defSmrg      as_fn_append ac_file_inputs " '$ac_f'"
18858a4f78defSmrg    done
18859a4f78defSmrg
18860a4f78defSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
18861a4f78defSmrg    # use $as_me), people would be surprised to read:
18862a4f78defSmrg    #    /* config.h.  Generated by config.status.  */
18863a4f78defSmrg    configure_input='Generated from '`
18864a4f78defSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18865a4f78defSmrg	`' by configure.'
18866a4f78defSmrg    if test x"$ac_file" != x-; then
18867a4f78defSmrg      configure_input="$ac_file.  $configure_input"
18868a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18869a4f78defSmrg$as_echo "$as_me: creating $ac_file" >&6;}
18870a4f78defSmrg    fi
18871a4f78defSmrg    # Neutralize special characters interpreted by sed in replacement strings.
18872a4f78defSmrg    case $configure_input in #(
18873a4f78defSmrg    *\&* | *\|* | *\\* )
18874a4f78defSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
18875a4f78defSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18876a4f78defSmrg    *) ac_sed_conf_input=$configure_input;;
18877a4f78defSmrg    esac
18878a4f78defSmrg
18879a4f78defSmrg    case $ac_tag in
18880a4f78defSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18881a4f78defSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18882a4f78defSmrg    esac
18883a4f78defSmrg    ;;
18884a4f78defSmrg  esac
18885a4f78defSmrg
18886a4f78defSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
18887a4f78defSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18888a4f78defSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
18889a4f78defSmrg	 X"$ac_file" : 'X\(//\)$' \| \
18890a4f78defSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18891a4f78defSmrg$as_echo X"$ac_file" |
18892a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18893a4f78defSmrg	    s//\1/
18894a4f78defSmrg	    q
18895a4f78defSmrg	  }
18896a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
18897a4f78defSmrg	    s//\1/
18898a4f78defSmrg	    q
18899a4f78defSmrg	  }
18900a4f78defSmrg	  /^X\(\/\/\)$/{
18901a4f78defSmrg	    s//\1/
18902a4f78defSmrg	    q
18903a4f78defSmrg	  }
18904a4f78defSmrg	  /^X\(\/\).*/{
18905a4f78defSmrg	    s//\1/
18906a4f78defSmrg	    q
18907a4f78defSmrg	  }
18908a4f78defSmrg	  s/.*/./; q'`
18909a4f78defSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
18910a4f78defSmrg  ac_builddir=.
18911a4f78defSmrg
18912a4f78defSmrgcase "$ac_dir" in
18913a4f78defSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18914a4f78defSmrg*)
18915a4f78defSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18916a4f78defSmrg  # A ".." for each directory in $ac_dir_suffix.
18917a4f78defSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18918a4f78defSmrg  case $ac_top_builddir_sub in
18919a4f78defSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18920a4f78defSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18921a4f78defSmrg  esac ;;
18922a4f78defSmrgesac
18923a4f78defSmrgac_abs_top_builddir=$ac_pwd
18924a4f78defSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
18925a4f78defSmrg# for backward compatibility:
18926a4f78defSmrgac_top_builddir=$ac_top_build_prefix
18927a4f78defSmrg
18928a4f78defSmrgcase $srcdir in
18929a4f78defSmrg  .)  # We are building in place.
18930a4f78defSmrg    ac_srcdir=.
18931a4f78defSmrg    ac_top_srcdir=$ac_top_builddir_sub
18932a4f78defSmrg    ac_abs_top_srcdir=$ac_pwd ;;
18933a4f78defSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
18934a4f78defSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
18935a4f78defSmrg    ac_top_srcdir=$srcdir
18936a4f78defSmrg    ac_abs_top_srcdir=$srcdir ;;
18937a4f78defSmrg  *) # Relative name.
18938a4f78defSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18939a4f78defSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
18940a4f78defSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18941a4f78defSmrgesac
18942a4f78defSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18943a4f78defSmrg
18944a4f78defSmrg
18945a4f78defSmrg  case $ac_mode in
18946a4f78defSmrg  :F)
18947a4f78defSmrg  #
18948a4f78defSmrg  # CONFIG_FILE
18949a4f78defSmrg  #
18950a4f78defSmrg
18951a4f78defSmrg  case $INSTALL in
18952a4f78defSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18953a4f78defSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18954a4f78defSmrg  esac
18955a4f78defSmrg  ac_MKDIR_P=$MKDIR_P
18956a4f78defSmrg  case $MKDIR_P in
18957a4f78defSmrg  [\\/$]* | ?:[\\/]* ) ;;
18958a4f78defSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18959a4f78defSmrg  esac
18960a4f78defSmrg_ACEOF
18961a4f78defSmrg
18962a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18963a4f78defSmrg# If the template does not know about datarootdir, expand it.
18964a4f78defSmrg# FIXME: This hack should be removed a few years after 2.60.
18965a4f78defSmrgac_datarootdir_hack=; ac_datarootdir_seen=
18966a4f78defSmrgac_sed_dataroot='
18967a4f78defSmrg/datarootdir/ {
18968a4f78defSmrg  p
18969a4f78defSmrg  q
18970a4f78defSmrg}
18971a4f78defSmrg/@datadir@/p
18972a4f78defSmrg/@docdir@/p
18973a4f78defSmrg/@infodir@/p
18974a4f78defSmrg/@localedir@/p
18975a4f78defSmrg/@mandir@/p'
18976a4f78defSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18977a4f78defSmrg*datarootdir*) ac_datarootdir_seen=yes;;
18978a4f78defSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18979a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18980a4f78defSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18981a4f78defSmrg_ACEOF
18982a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18983a4f78defSmrg  ac_datarootdir_hack='
18984a4f78defSmrg  s&@datadir@&$datadir&g
18985a4f78defSmrg  s&@docdir@&$docdir&g
18986a4f78defSmrg  s&@infodir@&$infodir&g
18987a4f78defSmrg  s&@localedir@&$localedir&g
18988a4f78defSmrg  s&@mandir@&$mandir&g
18989a4f78defSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
18990a4f78defSmrgesac
18991a4f78defSmrg_ACEOF
18992a4f78defSmrg
18993a4f78defSmrg# Neutralize VPATH when `$srcdir' = `.'.
18994a4f78defSmrg# Shell code in configure.ac might set extrasub.
18995a4f78defSmrg# FIXME: do we really want to maintain this feature?
18996a4f78defSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18997a4f78defSmrgac_sed_extra="$ac_vpsub
18998a4f78defSmrg$extrasub
18999a4f78defSmrg_ACEOF
19000a4f78defSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19001a4f78defSmrg:t
19002a4f78defSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19003a4f78defSmrgs|@configure_input@|$ac_sed_conf_input|;t t
19004a4f78defSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
19005a4f78defSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
19006a4f78defSmrgs&@srcdir@&$ac_srcdir&;t t
19007a4f78defSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
19008a4f78defSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
19009a4f78defSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19010a4f78defSmrgs&@builddir@&$ac_builddir&;t t
19011a4f78defSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
19012a4f78defSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19013a4f78defSmrgs&@INSTALL@&$ac_INSTALL&;t t
19014a4f78defSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
19015a4f78defSmrg$ac_datarootdir_hack
19016a4f78defSmrg"
19017a4f78defSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19018a4f78defSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19019a4f78defSmrg
19020a4f78defSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19021a4f78defSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19022a4f78defSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19023a4f78defSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19024a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19025a4f78defSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
19026a4f78defSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19027a4f78defSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
19028a4f78defSmrg
19029a4f78defSmrg  rm -f "$ac_tmp/stdin"
19030a4f78defSmrg  case $ac_file in
19031a4f78defSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19032a4f78defSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19033a4f78defSmrg  esac \
19034a4f78defSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19035a4f78defSmrg ;;
19036a4f78defSmrg  :H)
19037a4f78defSmrg  #
19038a4f78defSmrg  # CONFIG_HEADER
19039a4f78defSmrg  #
19040a4f78defSmrg  if test x"$ac_file" != x-; then
19041a4f78defSmrg    {
19042a4f78defSmrg      $as_echo "/* $configure_input  */" \
19043a4f78defSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19044a4f78defSmrg    } >"$ac_tmp/config.h" \
19045a4f78defSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19046a4f78defSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19047a4f78defSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19048a4f78defSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
19049a4f78defSmrg    else
19050a4f78defSmrg      rm -f "$ac_file"
19051a4f78defSmrg      mv "$ac_tmp/config.h" "$ac_file" \
19052a4f78defSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19053a4f78defSmrg    fi
19054a4f78defSmrg  else
19055a4f78defSmrg    $as_echo "/* $configure_input  */" \
19056a4f78defSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19057a4f78defSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
19058a4f78defSmrg  fi
19059a4f78defSmrg# Compute "$ac_file"'s index in $config_headers.
19060a4f78defSmrg_am_arg="$ac_file"
19061a4f78defSmrg_am_stamp_count=1
19062a4f78defSmrgfor _am_header in $config_headers :; do
19063a4f78defSmrg  case $_am_header in
19064a4f78defSmrg    $_am_arg | $_am_arg:* )
19065a4f78defSmrg      break ;;
19066a4f78defSmrg    * )
19067a4f78defSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19068a4f78defSmrg  esac
19069a4f78defSmrgdone
19070a4f78defSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19071a4f78defSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19072a4f78defSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19073a4f78defSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
19074a4f78defSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19075a4f78defSmrg$as_echo X"$_am_arg" |
19076a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19077a4f78defSmrg	    s//\1/
19078a4f78defSmrg	    q
19079a4f78defSmrg	  }
19080a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
19081a4f78defSmrg	    s//\1/
19082a4f78defSmrg	    q
19083a4f78defSmrg	  }
19084a4f78defSmrg	  /^X\(\/\/\)$/{
19085a4f78defSmrg	    s//\1/
19086a4f78defSmrg	    q
19087a4f78defSmrg	  }
19088a4f78defSmrg	  /^X\(\/\).*/{
19089a4f78defSmrg	    s//\1/
19090a4f78defSmrg	    q
19091a4f78defSmrg	  }
19092a4f78defSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
19093a4f78defSmrg ;;
19094a4f78defSmrg
19095a4f78defSmrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19096a4f78defSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
19097a4f78defSmrg ;;
19098a4f78defSmrg  esac
19099a4f78defSmrg
19100a4f78defSmrg
19101a4f78defSmrg  case $ac_file$ac_mode in
19102a4f78defSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19103a4f78defSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
19104a4f78defSmrg  # are listed without --file.  Let's play safe and only enable the eval
19105a4f78defSmrg  # if we detect the quoting.
19106a4f78defSmrg  case $CONFIG_FILES in
19107a4f78defSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
19108a4f78defSmrg  *)   set x $CONFIG_FILES ;;
19109a4f78defSmrg  esac
19110a4f78defSmrg  shift
19111a4f78defSmrg  for mf
19112a4f78defSmrg  do
19113a4f78defSmrg    # Strip MF so we end up with the name of the file.
19114a4f78defSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
19115a4f78defSmrg    # Check whether this is an Automake generated Makefile or not.
19116a4f78defSmrg    # We used to match only the files named 'Makefile.in', but
19117a4f78defSmrg    # some people rename them; so instead we look at the file content.
19118a4f78defSmrg    # Grep'ing the first line is not enough: some people post-process
19119a4f78defSmrg    # each Makefile.in and add a new line on top of each file to say so.
19120a4f78defSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
19121a4f78defSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
19122a4f78defSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19123a4f78defSmrg      dirpart=`$as_dirname -- "$mf" ||
19124a4f78defSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19125a4f78defSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
19126a4f78defSmrg	 X"$mf" : 'X\(//\)$' \| \
19127a4f78defSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19128a4f78defSmrg$as_echo X"$mf" |
19129a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19130a4f78defSmrg	    s//\1/
19131a4f78defSmrg	    q
19132a4f78defSmrg	  }
19133a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
19134a4f78defSmrg	    s//\1/
19135a4f78defSmrg	    q
19136a4f78defSmrg	  }
19137a4f78defSmrg	  /^X\(\/\/\)$/{
19138a4f78defSmrg	    s//\1/
19139a4f78defSmrg	    q
19140a4f78defSmrg	  }
19141a4f78defSmrg	  /^X\(\/\).*/{
19142a4f78defSmrg	    s//\1/
19143a4f78defSmrg	    q
19144a4f78defSmrg	  }
19145a4f78defSmrg	  s/.*/./; q'`
19146a4f78defSmrg    else
19147a4f78defSmrg      continue
19148a4f78defSmrg    fi
19149a4f78defSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
19150a4f78defSmrg    # from the Makefile without running 'make'.
19151a4f78defSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19152a4f78defSmrg    test -z "$DEPDIR" && continue
19153a4f78defSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19154a4f78defSmrg    test -z "$am__include" && continue
19155a4f78defSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19156a4f78defSmrg    # Find all dependency output files, they are included files with
19157a4f78defSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19158a4f78defSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
19159a4f78defSmrg    # expansion.
19160a4f78defSmrg    for file in `sed -n "
19161a4f78defSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19162a4f78defSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19163a4f78defSmrg      # Make sure the directory exists.
19164a4f78defSmrg      test -f "$dirpart/$file" && continue
19165a4f78defSmrg      fdir=`$as_dirname -- "$file" ||
19166a4f78defSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167a4f78defSmrg	 X"$file" : 'X\(//\)[^/]' \| \
19168a4f78defSmrg	 X"$file" : 'X\(//\)$' \| \
19169a4f78defSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19170a4f78defSmrg$as_echo X"$file" |
19171a4f78defSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19172a4f78defSmrg	    s//\1/
19173a4f78defSmrg	    q
19174a4f78defSmrg	  }
19175a4f78defSmrg	  /^X\(\/\/\)[^/].*/{
19176a4f78defSmrg	    s//\1/
19177a4f78defSmrg	    q
19178a4f78defSmrg	  }
19179a4f78defSmrg	  /^X\(\/\/\)$/{
19180a4f78defSmrg	    s//\1/
19181a4f78defSmrg	    q
19182a4f78defSmrg	  }
19183a4f78defSmrg	  /^X\(\/\).*/{
19184a4f78defSmrg	    s//\1/
19185a4f78defSmrg	    q
19186a4f78defSmrg	  }
19187a4f78defSmrg	  s/.*/./; q'`
19188a4f78defSmrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19189a4f78defSmrg      # echo "creating $dirpart/$file"
19190a4f78defSmrg      echo '# dummy' > "$dirpart/$file"
19191a4f78defSmrg    done
19192a4f78defSmrg  done
19193a4f78defSmrg}
19194a4f78defSmrg ;;
19195a4f78defSmrg    "libtool":C)
19196a4f78defSmrg
19197a4f78defSmrg    # See if we are running on zsh, and set the options that allow our
19198a4f78defSmrg    # commands through without removal of \ escapes.
19199a4f78defSmrg    if test -n "${ZSH_VERSION+set}"; then
19200a4f78defSmrg      setopt NO_GLOB_SUBST
19201a4f78defSmrg    fi
19202a4f78defSmrg
19203a4f78defSmrg    cfgfile=${ofile}T
19204a4f78defSmrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19205a4f78defSmrg    $RM "$cfgfile"
19206a4f78defSmrg
19207a4f78defSmrg    cat <<_LT_EOF >> "$cfgfile"
19208a4f78defSmrg#! $SHELL
19209a4f78defSmrg# Generated automatically by $as_me ($PACKAGE) $VERSION
19210a4f78defSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19211a4f78defSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19212a4f78defSmrg
19213a4f78defSmrg# Provide generalized library-building support services.
19214a4f78defSmrg# Written by Gordon Matzigkeit, 1996
19215a4f78defSmrg
19216a4f78defSmrg# Copyright (C) 2014 Free Software Foundation, Inc.
19217a4f78defSmrg# This is free software; see the source for copying conditions.  There is NO
19218a4f78defSmrg# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19219a4f78defSmrg
19220a4f78defSmrg# GNU Libtool is free software; you can redistribute it and/or modify
19221a4f78defSmrg# it under the terms of the GNU General Public License as published by
19222a4f78defSmrg# the Free Software Foundation; either version 2 of of the License, or
19223a4f78defSmrg# (at your option) any later version.
19224a4f78defSmrg#
19225a4f78defSmrg# As a special exception to the GNU General Public License, if you
19226a4f78defSmrg# distribute this file as part of a program or library that is built
19227a4f78defSmrg# using GNU Libtool, you may include this file under the  same
19228a4f78defSmrg# distribution terms that you use for the rest of that program.
19229a4f78defSmrg#
19230a4f78defSmrg# GNU Libtool is distributed in the hope that it will be useful, but
19231a4f78defSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of
19232a4f78defSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19233a4f78defSmrg# GNU General Public License for more details.
19234a4f78defSmrg#
19235a4f78defSmrg# You should have received a copy of the GNU General Public License
19236a4f78defSmrg# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19237a4f78defSmrg
19238a4f78defSmrg
19239a4f78defSmrg# The names of the tagged configurations supported by this script.
19240a4f78defSmrgavailable_tags='CXX '
19241a4f78defSmrg
19242a4f78defSmrg# Configured defaults for sys_lib_dlsearch_path munging.
19243a4f78defSmrg: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19244a4f78defSmrg
19245a4f78defSmrg# ### BEGIN LIBTOOL CONFIG
19246a4f78defSmrg
19247a4f78defSmrg# Whether or not to build static libraries.
19248a4f78defSmrgbuild_old_libs=$enable_static
19249a4f78defSmrg
19250a4f78defSmrg# Which release of libtool.m4 was used?
19251a4f78defSmrgmacro_version=$macro_version
19252a4f78defSmrgmacro_revision=$macro_revision
19253a4f78defSmrg
19254a4f78defSmrg# Whether or not to build shared libraries.
19255a4f78defSmrgbuild_libtool_libs=$enable_shared
19256a4f78defSmrg
19257a4f78defSmrg# What type of objects to build.
19258a4f78defSmrgpic_mode=$pic_mode
19259a4f78defSmrg
19260a4f78defSmrg# Whether or not to optimize for fast installation.
19261a4f78defSmrgfast_install=$enable_fast_install
19262a4f78defSmrg
19263a4f78defSmrg# Shared archive member basename,for filename based shared library versioning on AIX.
19264a4f78defSmrgshared_archive_member_spec=$shared_archive_member_spec
19265a4f78defSmrg
19266a4f78defSmrg# Shell to use when invoking shell scripts.
19267a4f78defSmrgSHELL=$lt_SHELL
19268a4f78defSmrg
19269a4f78defSmrg# An echo program that protects backslashes.
19270a4f78defSmrgECHO=$lt_ECHO
19271a4f78defSmrg
19272a4f78defSmrg# The PATH separator for the build system.
19273a4f78defSmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR
19274a4f78defSmrg
19275a4f78defSmrg# The host system.
19276a4f78defSmrghost_alias=$host_alias
19277a4f78defSmrghost=$host
19278a4f78defSmrghost_os=$host_os
19279a4f78defSmrg
19280a4f78defSmrg# The build system.
19281a4f78defSmrgbuild_alias=$build_alias
19282a4f78defSmrgbuild=$build
19283a4f78defSmrgbuild_os=$build_os
19284a4f78defSmrg
19285a4f78defSmrg# A sed program that does not truncate output.
19286a4f78defSmrgSED=$lt_SED
19287a4f78defSmrg
19288a4f78defSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19289a4f78defSmrgXsed="\$SED -e 1s/^X//"
19290a4f78defSmrg
19291a4f78defSmrg# A grep program that handles long lines.
19292a4f78defSmrgGREP=$lt_GREP
19293a4f78defSmrg
19294a4f78defSmrg# An ERE matcher.
19295a4f78defSmrgEGREP=$lt_EGREP
19296a4f78defSmrg
19297a4f78defSmrg# A literal string matcher.
19298a4f78defSmrgFGREP=$lt_FGREP
19299a4f78defSmrg
19300a4f78defSmrg# A BSD- or MS-compatible name lister.
19301a4f78defSmrgNM=$lt_NM
19302a4f78defSmrg
19303a4f78defSmrg# Whether we need soft or hard links.
19304a4f78defSmrgLN_S=$lt_LN_S
19305a4f78defSmrg
19306a4f78defSmrg# What is the maximum length of a command?
19307a4f78defSmrgmax_cmd_len=$max_cmd_len
19308a4f78defSmrg
19309a4f78defSmrg# Object file suffix (normally "o").
19310a4f78defSmrgobjext=$ac_objext
19311a4f78defSmrg
19312a4f78defSmrg# Executable file suffix (normally "").
19313a4f78defSmrgexeext=$exeext
19314a4f78defSmrg
19315a4f78defSmrg# whether the shell understands "unset".
19316a4f78defSmrglt_unset=$lt_unset
19317a4f78defSmrg
19318a4f78defSmrg# turn spaces into newlines.
19319a4f78defSmrgSP2NL=$lt_lt_SP2NL
19320a4f78defSmrg
19321a4f78defSmrg# turn newlines into spaces.
19322a4f78defSmrgNL2SP=$lt_lt_NL2SP
19323a4f78defSmrg
19324a4f78defSmrg# convert \$build file names to \$host format.
19325a4f78defSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd
19326a4f78defSmrg
19327a4f78defSmrg# convert \$build files to toolchain format.
19328a4f78defSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
19329a4f78defSmrg
19330a4f78defSmrg# An object symbol dumper.
19331a4f78defSmrgOBJDUMP=$lt_OBJDUMP
19332a4f78defSmrg
19333a4f78defSmrg# Method to check whether dependent libraries are shared objects.
19334a4f78defSmrgdeplibs_check_method=$lt_deplibs_check_method
19335a4f78defSmrg
19336a4f78defSmrg# Command to use when deplibs_check_method = "file_magic".
19337a4f78defSmrgfile_magic_cmd=$lt_file_magic_cmd
19338a4f78defSmrg
19339a4f78defSmrg# How to find potential files when deplibs_check_method = "file_magic".
19340a4f78defSmrgfile_magic_glob=$lt_file_magic_glob
19341a4f78defSmrg
19342a4f78defSmrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19343a4f78defSmrgwant_nocaseglob=$lt_want_nocaseglob
19344a4f78defSmrg
19345a4f78defSmrg# DLL creation program.
19346a4f78defSmrgDLLTOOL=$lt_DLLTOOL
19347a4f78defSmrg
19348a4f78defSmrg# Command to associate shared and link libraries.
19349a4f78defSmrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19350a4f78defSmrg
19351a4f78defSmrg# The archiver.
19352a4f78defSmrgAR=$lt_AR
19353a4f78defSmrg
19354a4f78defSmrg# Flags to create an archive.
19355a4f78defSmrgAR_FLAGS=$lt_AR_FLAGS
19356a4f78defSmrg
19357a4f78defSmrg# How to feed a file listing to the archiver.
19358a4f78defSmrgarchiver_list_spec=$lt_archiver_list_spec
19359a4f78defSmrg
19360a4f78defSmrg# A symbol stripping program.
19361a4f78defSmrgSTRIP=$lt_STRIP
19362a4f78defSmrg
19363a4f78defSmrg# Commands used to install an old-style archive.
19364a4f78defSmrgRANLIB=$lt_RANLIB
19365a4f78defSmrgold_postinstall_cmds=$lt_old_postinstall_cmds
19366a4f78defSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
19367a4f78defSmrg
19368a4f78defSmrg# Whether to use a lock for old archive extraction.
19369a4f78defSmrglock_old_archive_extraction=$lock_old_archive_extraction
19370a4f78defSmrg
19371a4f78defSmrg# A C compiler.
19372a4f78defSmrgLTCC=$lt_CC
19373a4f78defSmrg
19374a4f78defSmrg# LTCC compiler flags.
19375a4f78defSmrgLTCFLAGS=$lt_CFLAGS
19376a4f78defSmrg
19377a4f78defSmrg# Take the output of nm and produce a listing of raw symbols and C names.
19378a4f78defSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19379a4f78defSmrg
19380a4f78defSmrg# Transform the output of nm in a proper C declaration.
19381a4f78defSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19382a4f78defSmrg
19383a4f78defSmrg# Transform the output of nm into a list of symbols to manually relocate.
19384a4f78defSmrgglobal_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19385a4f78defSmrg
19386a4f78defSmrg# Transform the output of nm in a C name address pair.
19387a4f78defSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19388a4f78defSmrg
19389a4f78defSmrg# Transform the output of nm in a C name address pair when lib prefix is needed.
19390a4f78defSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19391a4f78defSmrg
19392a4f78defSmrg# The name lister interface.
19393a4f78defSmrgnm_interface=$lt_lt_cv_nm_interface
19394a4f78defSmrg
19395a4f78defSmrg# Specify filename containing input files for \$NM.
19396a4f78defSmrgnm_file_list_spec=$lt_nm_file_list_spec
19397a4f78defSmrg
19398a4f78defSmrg# The root where to search for dependent libraries,and where our libraries should be installed.
19399a4f78defSmrglt_sysroot=$lt_sysroot
19400a4f78defSmrg
19401a4f78defSmrg# Command to truncate a binary pipe.
19402a4f78defSmrglt_truncate_bin=$lt_lt_cv_truncate_bin
19403a4f78defSmrg
19404a4f78defSmrg# The name of the directory that contains temporary libtool files.
19405a4f78defSmrgobjdir=$objdir
19406a4f78defSmrg
19407a4f78defSmrg# Used to examine libraries when file_magic_cmd begins with "file".
19408a4f78defSmrgMAGIC_CMD=$MAGIC_CMD
19409a4f78defSmrg
19410a4f78defSmrg# Must we lock files when doing compilation?
19411a4f78defSmrgneed_locks=$lt_need_locks
19412a4f78defSmrg
19413a4f78defSmrg# Manifest tool.
19414a4f78defSmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
19415a4f78defSmrg
19416a4f78defSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19417a4f78defSmrgDSYMUTIL=$lt_DSYMUTIL
19418a4f78defSmrg
19419a4f78defSmrg# Tool to change global to local symbols on Mac OS X.
19420a4f78defSmrgNMEDIT=$lt_NMEDIT
19421a4f78defSmrg
19422a4f78defSmrg# Tool to manipulate fat objects and archives on Mac OS X.
19423a4f78defSmrgLIPO=$lt_LIPO
19424a4f78defSmrg
19425a4f78defSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19426a4f78defSmrgOTOOL=$lt_OTOOL
19427a4f78defSmrg
19428a4f78defSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19429a4f78defSmrgOTOOL64=$lt_OTOOL64
19430a4f78defSmrg
19431a4f78defSmrg# Old archive suffix (normally "a").
19432a4f78defSmrglibext=$libext
19433a4f78defSmrg
19434a4f78defSmrg# Shared library suffix (normally ".so").
19435a4f78defSmrgshrext_cmds=$lt_shrext_cmds
19436a4f78defSmrg
19437a4f78defSmrg# The commands to extract the exported symbol list from a shared archive.
19438a4f78defSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
19439a4f78defSmrg
19440a4f78defSmrg# Variables whose values should be saved in libtool wrapper scripts and
19441a4f78defSmrg# restored at link time.
19442a4f78defSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink
19443a4f78defSmrg
19444a4f78defSmrg# Do we need the "lib" prefix for modules?
19445a4f78defSmrgneed_lib_prefix=$need_lib_prefix
19446a4f78defSmrg
19447a4f78defSmrg# Do we need a version for libraries?
19448a4f78defSmrgneed_version=$need_version
19449a4f78defSmrg
19450a4f78defSmrg# Library versioning type.
19451a4f78defSmrgversion_type=$version_type
19452a4f78defSmrg
19453a4f78defSmrg# Shared library runtime path variable.
19454a4f78defSmrgrunpath_var=$runpath_var
19455a4f78defSmrg
19456a4f78defSmrg# Shared library path variable.
19457a4f78defSmrgshlibpath_var=$shlibpath_var
19458a4f78defSmrg
19459a4f78defSmrg# Is shlibpath searched before the hard-coded library search path?
19460a4f78defSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
19461a4f78defSmrg
19462a4f78defSmrg# Format of library name prefix.
19463a4f78defSmrglibname_spec=$lt_libname_spec
19464a4f78defSmrg
19465a4f78defSmrg# List of archive names.  First name is the real one, the rest are links.
19466a4f78defSmrg# The last name is the one that the linker finds with -lNAME
19467a4f78defSmrglibrary_names_spec=$lt_library_names_spec
19468a4f78defSmrg
19469a4f78defSmrg# The coded name of the library, if different from the real name.
19470a4f78defSmrgsoname_spec=$lt_soname_spec
19471a4f78defSmrg
19472a4f78defSmrg# Permission mode override for installation of shared libraries.
19473a4f78defSmrginstall_override_mode=$lt_install_override_mode
19474a4f78defSmrg
19475a4f78defSmrg# Command to use after installation of a shared archive.
19476a4f78defSmrgpostinstall_cmds=$lt_postinstall_cmds
19477a4f78defSmrg
19478a4f78defSmrg# Command to use after uninstallation of a shared archive.
19479a4f78defSmrgpostuninstall_cmds=$lt_postuninstall_cmds
19480a4f78defSmrg
19481a4f78defSmrg# Commands used to finish a libtool library installation in a directory.
19482a4f78defSmrgfinish_cmds=$lt_finish_cmds
19483a4f78defSmrg
19484a4f78defSmrg# As "finish_cmds", except a single script fragment to be evaled but
19485a4f78defSmrg# not shown.
19486a4f78defSmrgfinish_eval=$lt_finish_eval
19487a4f78defSmrg
19488a4f78defSmrg# Whether we should hardcode library paths into libraries.
19489a4f78defSmrghardcode_into_libs=$hardcode_into_libs
19490a4f78defSmrg
19491a4f78defSmrg# Compile-time system search path for libraries.
19492a4f78defSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19493a4f78defSmrg
19494a4f78defSmrg# Detected run-time system search path for libraries.
19495a4f78defSmrgsys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19496a4f78defSmrg
19497a4f78defSmrg# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19498a4f78defSmrgconfigure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19499a4f78defSmrg
19500a4f78defSmrg# Whether dlopen is supported.
19501a4f78defSmrgdlopen_support=$enable_dlopen
19502a4f78defSmrg
19503a4f78defSmrg# Whether dlopen of programs is supported.
19504a4f78defSmrgdlopen_self=$enable_dlopen_self
19505a4f78defSmrg
19506a4f78defSmrg# Whether dlopen of statically linked programs is supported.
19507a4f78defSmrgdlopen_self_static=$enable_dlopen_self_static
19508a4f78defSmrg
19509a4f78defSmrg# Commands to strip libraries.
19510a4f78defSmrgold_striplib=$lt_old_striplib
19511a4f78defSmrgstriplib=$lt_striplib
19512a4f78defSmrg
19513a4f78defSmrg
19514a4f78defSmrg# The linker used to build libraries.
19515a4f78defSmrgLD=$lt_LD
19516a4f78defSmrg
19517a4f78defSmrg# How to create reloadable object files.
19518a4f78defSmrgreload_flag=$lt_reload_flag
19519a4f78defSmrgreload_cmds=$lt_reload_cmds
19520a4f78defSmrg
19521a4f78defSmrg# Commands used to build an old-style archive.
19522a4f78defSmrgold_archive_cmds=$lt_old_archive_cmds
19523a4f78defSmrg
19524a4f78defSmrg# A language specific compiler.
19525a4f78defSmrgCC=$lt_compiler
19526a4f78defSmrg
19527a4f78defSmrg# Is the compiler the GNU compiler?
19528a4f78defSmrgwith_gcc=$GCC
19529a4f78defSmrg
19530a4f78defSmrg# Compiler flag to turn off builtin functions.
19531a4f78defSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19532a4f78defSmrg
19533a4f78defSmrg# Additional compiler flags for building library objects.
19534a4f78defSmrgpic_flag=$lt_lt_prog_compiler_pic
19535a4f78defSmrg
19536a4f78defSmrg# How to pass a linker flag through the compiler.
19537a4f78defSmrgwl=$lt_lt_prog_compiler_wl
19538a4f78defSmrg
19539a4f78defSmrg# Compiler flag to prevent dynamic linking.
19540a4f78defSmrglink_static_flag=$lt_lt_prog_compiler_static
19541a4f78defSmrg
19542a4f78defSmrg# Does compiler simultaneously support -c and -o options?
19543a4f78defSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
19544a4f78defSmrg
19545a4f78defSmrg# Whether or not to add -lc for building shared libraries.
19546a4f78defSmrgbuild_libtool_need_lc=$archive_cmds_need_lc
19547a4f78defSmrg
19548a4f78defSmrg# Whether or not to disallow shared libs when runtime libs are static.
19549a4f78defSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19550a4f78defSmrg
19551a4f78defSmrg# Compiler flag to allow reflexive dlopens.
19552a4f78defSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19553a4f78defSmrg
19554a4f78defSmrg# Compiler flag to generate shared objects directly from archives.
19555a4f78defSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
19556a4f78defSmrg
19557a4f78defSmrg# Whether the compiler copes with passing no objects directly.
19558a4f78defSmrgcompiler_needs_object=$lt_compiler_needs_object
19559a4f78defSmrg
19560a4f78defSmrg# Create an old-style archive from a shared archive.
19561a4f78defSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19562a4f78defSmrg
19563a4f78defSmrg# Create a temporary old-style archive to link instead of a shared archive.
19564a4f78defSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19565a4f78defSmrg
19566a4f78defSmrg# Commands used to build a shared archive.
19567a4f78defSmrgarchive_cmds=$lt_archive_cmds
19568a4f78defSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds
19569a4f78defSmrg
19570a4f78defSmrg# Commands used to build a loadable module if different from building
19571a4f78defSmrg# a shared archive.
19572a4f78defSmrgmodule_cmds=$lt_module_cmds
19573a4f78defSmrgmodule_expsym_cmds=$lt_module_expsym_cmds
19574a4f78defSmrg
19575a4f78defSmrg# Whether we are building with GNU ld or not.
19576a4f78defSmrgwith_gnu_ld=$lt_with_gnu_ld
19577a4f78defSmrg
19578a4f78defSmrg# Flag that allows shared libraries with undefined symbols to be built.
19579a4f78defSmrgallow_undefined_flag=$lt_allow_undefined_flag
19580a4f78defSmrg
19581a4f78defSmrg# Flag that enforces no undefined symbols.
19582a4f78defSmrgno_undefined_flag=$lt_no_undefined_flag
19583a4f78defSmrg
19584a4f78defSmrg# Flag to hardcode \$libdir into a binary during linking.
19585a4f78defSmrg# This must work even if \$libdir does not exist
19586a4f78defSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19587a4f78defSmrg
19588a4f78defSmrg# Whether we need a single "-rpath" flag with a separated argument.
19589a4f78defSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator
19590a4f78defSmrg
19591a4f78defSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19592a4f78defSmrg# DIR into the resulting binary.
19593a4f78defSmrghardcode_direct=$hardcode_direct
19594a4f78defSmrg
19595a4f78defSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19596a4f78defSmrg# DIR into the resulting binary and the resulting library dependency is
19597a4f78defSmrg# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19598a4f78defSmrg# library is relocated.
19599a4f78defSmrghardcode_direct_absolute=$hardcode_direct_absolute
19600a4f78defSmrg
19601a4f78defSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19602a4f78defSmrg# into the resulting binary.
19603a4f78defSmrghardcode_minus_L=$hardcode_minus_L
19604a4f78defSmrg
19605a4f78defSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19606a4f78defSmrg# into the resulting binary.
19607a4f78defSmrghardcode_shlibpath_var=$hardcode_shlibpath_var
19608a4f78defSmrg
19609a4f78defSmrg# Set to "yes" if building a shared library automatically hardcodes DIR
19610a4f78defSmrg# into the library and all subsequent libraries and executables linked
19611a4f78defSmrg# against it.
19612a4f78defSmrghardcode_automatic=$hardcode_automatic
19613a4f78defSmrg
19614a4f78defSmrg# Set to yes if linker adds runtime paths of dependent libraries
19615a4f78defSmrg# to runtime path list.
19616a4f78defSmrginherit_rpath=$inherit_rpath
19617a4f78defSmrg
19618a4f78defSmrg# Whether libtool must link a program against all its dependency libraries.
19619a4f78defSmrglink_all_deplibs=$link_all_deplibs
19620a4f78defSmrg
19621a4f78defSmrg# Set to "yes" if exported symbols are required.
19622a4f78defSmrgalways_export_symbols=$always_export_symbols
19623a4f78defSmrg
19624a4f78defSmrg# The commands to list exported symbols.
19625a4f78defSmrgexport_symbols_cmds=$lt_export_symbols_cmds
19626a4f78defSmrg
19627a4f78defSmrg# Symbols that should not be listed in the preloaded symbols.
19628a4f78defSmrgexclude_expsyms=$lt_exclude_expsyms
19629a4f78defSmrg
19630a4f78defSmrg# Symbols that must always be exported.
19631a4f78defSmrginclude_expsyms=$lt_include_expsyms
19632a4f78defSmrg
19633a4f78defSmrg# Commands necessary for linking programs (against libraries) with templates.
19634a4f78defSmrgprelink_cmds=$lt_prelink_cmds
19635a4f78defSmrg
19636a4f78defSmrg# Commands necessary for finishing linking programs.
19637a4f78defSmrgpostlink_cmds=$lt_postlink_cmds
19638a4f78defSmrg
19639a4f78defSmrg# Specify filename containing input files.
19640a4f78defSmrgfile_list_spec=$lt_file_list_spec
19641a4f78defSmrg
19642a4f78defSmrg# How to hardcode a shared library path into an executable.
19643a4f78defSmrghardcode_action=$hardcode_action
19644a4f78defSmrg
19645a4f78defSmrg# The directories searched by this compiler when creating a shared library.
19646a4f78defSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19647a4f78defSmrg
19648a4f78defSmrg# Dependencies to place before and after the objects being linked to
19649a4f78defSmrg# create a shared library.
19650a4f78defSmrgpredep_objects=$lt_predep_objects
19651a4f78defSmrgpostdep_objects=$lt_postdep_objects
19652a4f78defSmrgpredeps=$lt_predeps
19653a4f78defSmrgpostdeps=$lt_postdeps
19654a4f78defSmrg
19655a4f78defSmrg# The library search path used internally by the compiler when linking
19656a4f78defSmrg# a shared library.
19657a4f78defSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path
19658a4f78defSmrg
19659a4f78defSmrg# ### END LIBTOOL CONFIG
19660a4f78defSmrg
19661a4f78defSmrg_LT_EOF
19662a4f78defSmrg
19663a4f78defSmrg    cat <<'_LT_EOF' >> "$cfgfile"
19664a4f78defSmrg
19665a4f78defSmrg# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19666a4f78defSmrg
19667a4f78defSmrg# func_munge_path_list VARIABLE PATH
19668a4f78defSmrg# -----------------------------------
19669a4f78defSmrg# VARIABLE is name of variable containing _space_ separated list of
19670a4f78defSmrg# directories to be munged by the contents of PATH, which is string
19671a4f78defSmrg# having a format:
19672a4f78defSmrg# "DIR[:DIR]:"
19673a4f78defSmrg#       string "DIR[ DIR]" will be prepended to VARIABLE
19674a4f78defSmrg# ":DIR[:DIR]"
19675a4f78defSmrg#       string "DIR[ DIR]" will be appended to VARIABLE
19676a4f78defSmrg# "DIRP[:DIRP]::[DIRA:]DIRA"
19677a4f78defSmrg#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19678a4f78defSmrg#       "DIRA[ DIRA]" will be appended to VARIABLE
19679a4f78defSmrg# "DIR[:DIR]"
19680a4f78defSmrg#       VARIABLE will be replaced by "DIR[ DIR]"
19681a4f78defSmrgfunc_munge_path_list ()
19682a4f78defSmrg{
19683a4f78defSmrg    case x$2 in
19684a4f78defSmrg    x)
19685a4f78defSmrg        ;;
19686a4f78defSmrg    *:)
19687a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19688a4f78defSmrg        ;;
19689a4f78defSmrg    x:*)
19690a4f78defSmrg        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19691a4f78defSmrg        ;;
19692a4f78defSmrg    *::*)
19693a4f78defSmrg        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19694a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19695a4f78defSmrg        ;;
19696a4f78defSmrg    *)
19697a4f78defSmrg        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19698a4f78defSmrg        ;;
19699a4f78defSmrg    esac
19700a4f78defSmrg}
19701a4f78defSmrg
19702a4f78defSmrg
19703a4f78defSmrg# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19704a4f78defSmrgfunc_cc_basename ()
19705a4f78defSmrg{
19706a4f78defSmrg    for cc_temp in $*""; do
19707a4f78defSmrg      case $cc_temp in
19708a4f78defSmrg        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19709a4f78defSmrg        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19710a4f78defSmrg        \-*) ;;
19711a4f78defSmrg        *) break;;
19712a4f78defSmrg      esac
19713a4f78defSmrg    done
19714a4f78defSmrg    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19715a4f78defSmrg}
19716a4f78defSmrg
19717a4f78defSmrg
19718a4f78defSmrg# ### END FUNCTIONS SHARED WITH CONFIGURE
19719a4f78defSmrg
19720a4f78defSmrg_LT_EOF
19721a4f78defSmrg
19722a4f78defSmrg  case $host_os in
19723a4f78defSmrg  aix3*)
19724a4f78defSmrg    cat <<\_LT_EOF >> "$cfgfile"
19725a4f78defSmrg# AIX sometimes has problems with the GCC collect2 program.  For some
19726a4f78defSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems
19727a4f78defSmrg# vanish in a puff of smoke.
19728a4f78defSmrgif test set != "${COLLECT_NAMES+set}"; then
19729a4f78defSmrg  COLLECT_NAMES=
19730a4f78defSmrg  export COLLECT_NAMES
19731a4f78defSmrgfi
19732a4f78defSmrg_LT_EOF
19733a4f78defSmrg    ;;
19734a4f78defSmrg  esac
19735a4f78defSmrg
19736a4f78defSmrg
19737a4f78defSmrgltmain=$ac_aux_dir/ltmain.sh
19738a4f78defSmrg
19739a4f78defSmrg
19740a4f78defSmrg  # We use sed instead of cat because bash on DJGPP gets confused if
19741a4f78defSmrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19742a4f78defSmrg  # text mode, it properly converts lines to CR/LF.  This bash problem
19743a4f78defSmrg  # is reportedly fixed, but why not run on old versions too?
19744a4f78defSmrg  sed '$q' "$ltmain" >> "$cfgfile" \
19745a4f78defSmrg     || (rm -f "$cfgfile"; exit 1)
19746a4f78defSmrg
19747a4f78defSmrg   mv -f "$cfgfile" "$ofile" ||
19748a4f78defSmrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19749a4f78defSmrg  chmod +x "$ofile"
19750a4f78defSmrg
19751a4f78defSmrg
19752a4f78defSmrg    cat <<_LT_EOF >> "$ofile"
19753a4f78defSmrg
19754a4f78defSmrg# ### BEGIN LIBTOOL TAG CONFIG: CXX
19755a4f78defSmrg
19756a4f78defSmrg# The linker used to build libraries.
19757a4f78defSmrgLD=$lt_LD_CXX
19758a4f78defSmrg
19759a4f78defSmrg# How to create reloadable object files.
19760a4f78defSmrgreload_flag=$lt_reload_flag_CXX
19761a4f78defSmrgreload_cmds=$lt_reload_cmds_CXX
19762a4f78defSmrg
19763a4f78defSmrg# Commands used to build an old-style archive.
19764a4f78defSmrgold_archive_cmds=$lt_old_archive_cmds_CXX
19765a4f78defSmrg
19766a4f78defSmrg# A language specific compiler.
19767a4f78defSmrgCC=$lt_compiler_CXX
19768a4f78defSmrg
19769a4f78defSmrg# Is the compiler the GNU compiler?
19770a4f78defSmrgwith_gcc=$GCC_CXX
19771a4f78defSmrg
19772a4f78defSmrg# Compiler flag to turn off builtin functions.
19773a4f78defSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19774a4f78defSmrg
19775a4f78defSmrg# Additional compiler flags for building library objects.
19776a4f78defSmrgpic_flag=$lt_lt_prog_compiler_pic_CXX
19777a4f78defSmrg
19778a4f78defSmrg# How to pass a linker flag through the compiler.
19779a4f78defSmrgwl=$lt_lt_prog_compiler_wl_CXX
19780a4f78defSmrg
19781a4f78defSmrg# Compiler flag to prevent dynamic linking.
19782a4f78defSmrglink_static_flag=$lt_lt_prog_compiler_static_CXX
19783a4f78defSmrg
19784a4f78defSmrg# Does compiler simultaneously support -c and -o options?
19785a4f78defSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19786a4f78defSmrg
19787a4f78defSmrg# Whether or not to add -lc for building shared libraries.
19788a4f78defSmrgbuild_libtool_need_lc=$archive_cmds_need_lc_CXX
19789a4f78defSmrg
19790a4f78defSmrg# Whether or not to disallow shared libs when runtime libs are static.
19791a4f78defSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19792a4f78defSmrg
19793a4f78defSmrg# Compiler flag to allow reflexive dlopens.
19794a4f78defSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19795a4f78defSmrg
19796a4f78defSmrg# Compiler flag to generate shared objects directly from archives.
19797a4f78defSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19798a4f78defSmrg
19799a4f78defSmrg# Whether the compiler copes with passing no objects directly.
19800a4f78defSmrgcompiler_needs_object=$lt_compiler_needs_object_CXX
19801a4f78defSmrg
19802a4f78defSmrg# Create an old-style archive from a shared archive.
19803a4f78defSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19804a4f78defSmrg
19805a4f78defSmrg# Create a temporary old-style archive to link instead of a shared archive.
19806a4f78defSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19807a4f78defSmrg
19808a4f78defSmrg# Commands used to build a shared archive.
19809a4f78defSmrgarchive_cmds=$lt_archive_cmds_CXX
19810a4f78defSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19811a4f78defSmrg
19812a4f78defSmrg# Commands used to build a loadable module if different from building
19813a4f78defSmrg# a shared archive.
19814a4f78defSmrgmodule_cmds=$lt_module_cmds_CXX
19815a4f78defSmrgmodule_expsym_cmds=$lt_module_expsym_cmds_CXX
19816a4f78defSmrg
19817a4f78defSmrg# Whether we are building with GNU ld or not.
19818a4f78defSmrgwith_gnu_ld=$lt_with_gnu_ld_CXX
19819a4f78defSmrg
19820a4f78defSmrg# Flag that allows shared libraries with undefined symbols to be built.
19821a4f78defSmrgallow_undefined_flag=$lt_allow_undefined_flag_CXX
19822a4f78defSmrg
19823a4f78defSmrg# Flag that enforces no undefined symbols.
19824a4f78defSmrgno_undefined_flag=$lt_no_undefined_flag_CXX
19825a4f78defSmrg
19826a4f78defSmrg# Flag to hardcode \$libdir into a binary during linking.
19827a4f78defSmrg# This must work even if \$libdir does not exist
19828a4f78defSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19829a4f78defSmrg
19830a4f78defSmrg# Whether we need a single "-rpath" flag with a separated argument.
19831a4f78defSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19832a4f78defSmrg
19833a4f78defSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19834a4f78defSmrg# DIR into the resulting binary.
19835a4f78defSmrghardcode_direct=$hardcode_direct_CXX
19836a4f78defSmrg
19837a4f78defSmrg# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19838a4f78defSmrg# DIR into the resulting binary and the resulting library dependency is
19839a4f78defSmrg# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19840a4f78defSmrg# library is relocated.
19841a4f78defSmrghardcode_direct_absolute=$hardcode_direct_absolute_CXX
19842a4f78defSmrg
19843a4f78defSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19844a4f78defSmrg# into the resulting binary.
19845a4f78defSmrghardcode_minus_L=$hardcode_minus_L_CXX
19846a4f78defSmrg
19847a4f78defSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19848a4f78defSmrg# into the resulting binary.
19849a4f78defSmrghardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19850a4f78defSmrg
19851a4f78defSmrg# Set to "yes" if building a shared library automatically hardcodes DIR
19852a4f78defSmrg# into the library and all subsequent libraries and executables linked
19853a4f78defSmrg# against it.
19854a4f78defSmrghardcode_automatic=$hardcode_automatic_CXX
19855a4f78defSmrg
19856a4f78defSmrg# Set to yes if linker adds runtime paths of dependent libraries
19857a4f78defSmrg# to runtime path list.
19858a4f78defSmrginherit_rpath=$inherit_rpath_CXX
19859a4f78defSmrg
19860a4f78defSmrg# Whether libtool must link a program against all its dependency libraries.
19861a4f78defSmrglink_all_deplibs=$link_all_deplibs_CXX
19862a4f78defSmrg
19863a4f78defSmrg# Set to "yes" if exported symbols are required.
19864a4f78defSmrgalways_export_symbols=$always_export_symbols_CXX
19865a4f78defSmrg
19866a4f78defSmrg# The commands to list exported symbols.
19867a4f78defSmrgexport_symbols_cmds=$lt_export_symbols_cmds_CXX
19868a4f78defSmrg
19869a4f78defSmrg# Symbols that should not be listed in the preloaded symbols.
19870a4f78defSmrgexclude_expsyms=$lt_exclude_expsyms_CXX
19871a4f78defSmrg
19872a4f78defSmrg# Symbols that must always be exported.
19873a4f78defSmrginclude_expsyms=$lt_include_expsyms_CXX
19874a4f78defSmrg
19875a4f78defSmrg# Commands necessary for linking programs (against libraries) with templates.
19876a4f78defSmrgprelink_cmds=$lt_prelink_cmds_CXX
19877a4f78defSmrg
19878a4f78defSmrg# Commands necessary for finishing linking programs.
19879a4f78defSmrgpostlink_cmds=$lt_postlink_cmds_CXX
19880a4f78defSmrg
19881a4f78defSmrg# Specify filename containing input files.
19882a4f78defSmrgfile_list_spec=$lt_file_list_spec_CXX
19883a4f78defSmrg
19884a4f78defSmrg# How to hardcode a shared library path into an executable.
19885a4f78defSmrghardcode_action=$hardcode_action_CXX
19886a4f78defSmrg
19887a4f78defSmrg# The directories searched by this compiler when creating a shared library.
19888a4f78defSmrgcompiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19889a4f78defSmrg
19890a4f78defSmrg# Dependencies to place before and after the objects being linked to
19891a4f78defSmrg# create a shared library.
19892a4f78defSmrgpredep_objects=$lt_predep_objects_CXX
19893a4f78defSmrgpostdep_objects=$lt_postdep_objects_CXX
19894a4f78defSmrgpredeps=$lt_predeps_CXX
19895a4f78defSmrgpostdeps=$lt_postdeps_CXX
19896a4f78defSmrg
19897a4f78defSmrg# The library search path used internally by the compiler when linking
19898a4f78defSmrg# a shared library.
19899a4f78defSmrgcompiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19900a4f78defSmrg
19901a4f78defSmrg# ### END LIBTOOL TAG CONFIG: CXX
19902a4f78defSmrg_LT_EOF
19903a4f78defSmrg
19904a4f78defSmrg ;;
19905a4f78defSmrg
19906a4f78defSmrg  esac
19907a4f78defSmrgdone # for ac_tag
19908a4f78defSmrg
19909a4f78defSmrg
19910a4f78defSmrgas_fn_exit 0
19911a4f78defSmrg_ACEOF
19912a4f78defSmrgac_clean_files=$ac_clean_files_save
19913a4f78defSmrg
19914a4f78defSmrgtest $ac_write_fail = 0 ||
19915a4f78defSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19916a4f78defSmrg
19917a4f78defSmrg
19918a4f78defSmrg# configure is writing to config.log, and then calls config.status.
19919a4f78defSmrg# config.status does its own redirection, appending to config.log.
19920a4f78defSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
19921a4f78defSmrg# by configure, so config.status won't be able to write to it; its
19922a4f78defSmrg# output is simply discarded.  So we exec the FD to /dev/null,
19923a4f78defSmrg# effectively closing config.log, so it can be properly (re)opened and
19924a4f78defSmrg# appended to by config.status.  When coming back to configure, we
19925a4f78defSmrg# need to make the FD available again.
19926a4f78defSmrgif test "$no_create" != yes; then
19927a4f78defSmrg  ac_cs_success=:
19928a4f78defSmrg  ac_config_status_args=
19929a4f78defSmrg  test "$silent" = yes &&
19930a4f78defSmrg    ac_config_status_args="$ac_config_status_args --quiet"
19931a4f78defSmrg  exec 5>/dev/null
19932a4f78defSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19933a4f78defSmrg  exec 5>>config.log
19934a4f78defSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19935a4f78defSmrg  # would make configure fail if this is the last instruction.
19936a4f78defSmrg  $ac_cs_success || as_fn_exit 1
19937a4f78defSmrgfi
19938a4f78defSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19939a4f78defSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19940a4f78defSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19941a4f78defSmrgfi
19942a4f78defSmrg
19943