1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GStreamer Base Plug-ins 1.16.2.
4#
5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='GStreamer Base Plug-ins'
593PACKAGE_TARNAME='gst-plugins-base'
594PACKAGE_VERSION='1.16.2'
595PACKAGE_STRING='GStreamer Base Plug-ins 1.16.2'
596PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer'
597PACKAGE_URL=''
598
599ac_unique_file="gst/audiotestsrc/gstaudiotestsrc.c"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636gt_needs=
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641GST_PLUGIN_LDFLAGS
642GST_LIB_LDFLAGS
643GST_ALL_LDFLAGS
644GST_CXXFLAGS
645GST_PLUGINS_BASE_CFLAGS
646GST_OPTION_CXXFLAGS
647GST_OPTION_CFLAGS
648EXTRA_CFLAGS
649VISIBILITY_CXXFLAGS
650VISIBILITY_CFLAGS
651DEPRECATED_CFLAGS
652PROFILE_CFLAGS
653USE_GIO_UNIX_2_0_FALSE
654USE_GIO_UNIX_2_0_TRUE
655GIO_UNIX_2_0_LIBS
656GIO_UNIX_2_0_CFLAGS
657HAVE_JPEG_FALSE
658HAVE_JPEG_TRUE
659HAVE_PNG_FALSE
660HAVE_PNG_TRUE
661HAVE_GRAPHENE_FALSE
662HAVE_GRAPHENE_TRUE
663USE_VORBIS_FALSE
664USE_VORBIS_TRUE
665VORBIS_LIBS
666VORBIS_CFLAGS
667USE_THEORA_FALSE
668USE_THEORA_TRUE
669THEORA_LIBS
670THEORA_CFLAGS
671USE_PANGO_FALSE
672USE_PANGO_TRUE
673PANGO_LIBS
674PANGO_CFLAGS
675USE_OPUS_FALSE
676USE_OPUS_TRUE
677OPUS_LIBS
678OPUS_CFLAGS
679USE_OGG_FALSE
680USE_OGG_TRUE
681OGG_LIBS
682OGG_CFLAGS
683USE_LIBVISUAL_FALSE
684USE_LIBVISUAL_TRUE
685LIBVISUAL_LIBS
686LIBVISUAL_CFLAGS
687USE_IVORBIS_FALSE
688USE_IVORBIS_TRUE
689IVORBIS_LIBS
690IVORBIS_CFLAGS
691USE_GL_FALSE
692USE_GL_TRUE
693HAVE_JPEG
694JPEG_LIBS
695HAVE_PNG
696LIBPNG_LIBS
697LIBPNG_CFLAGS
698GMODULE_NO_EXPORT_LIBS
699GMODULE_NO_EXPORT_CFLAGS
700HAVE_GRAPHENE
701GRAPHENE_LIBS
702GRAPHENE_CFLAGS
703USE_CDPARANOIA_FALSE
704USE_CDPARANOIA_TRUE
705HAVE_CDPARANOIA
706CDPARANOIA_LIBS
707CDPARANOIA_CFLAGS
708USE_ALSA_FALSE
709USE_ALSA_TRUE
710ALSA_LIBS
711ALSA_CFLAGS
712USE_XSHM_FALSE
713USE_XSHM_TRUE
714HAVE_XSHM
715XSHM_LIBS
716XSHM_CFLAGS
717USE_XVIDEO_FALSE
718USE_XVIDEO_TRUE
719XVIDEO_LIBS
720XVIDEO_CFLAGS
721USE_X_FALSE
722USE_X_TRUE
723X_LIBS
724X_CFLAGS
725USE_ZLIB_FALSE
726USE_ZLIB_TRUE
727HAVE_ZLIB
728ZLIB_LIBS
729ZLIB_CFLAGS
730USE_ISO_CODES_FALSE
731USE_ISO_CODES_TRUE
732USE_PLUGIN_VOLUME_FALSE
733USE_PLUGIN_VOLUME_TRUE
734USE_PLUGIN_VIDEOSCALE_FALSE
735USE_PLUGIN_VIDEOSCALE_TRUE
736USE_PLUGIN_VIDEORATE_FALSE
737USE_PLUGIN_VIDEORATE_TRUE
738USE_PLUGIN_VIDEOTESTSRC_FALSE
739USE_PLUGIN_VIDEOTESTSRC_TRUE
740USE_PLUGIN_TYPEFIND_FALSE
741USE_PLUGIN_TYPEFIND_TRUE
742USE_PLUGIN_TCP_FALSE
743USE_PLUGIN_TCP_TRUE
744USE_PLUGIN_SUBPARSE_FALSE
745USE_PLUGIN_SUBPARSE_TRUE
746USE_PLUGIN_RAWPARSE_FALSE
747USE_PLUGIN_RAWPARSE_TRUE
748USE_PLUGIN_AUDIORESAMPLE_FALSE
749USE_PLUGIN_AUDIORESAMPLE_TRUE
750USE_PLUGIN_PLAYBACK_FALSE
751USE_PLUGIN_PLAYBACK_TRUE
752USE_PLUGIN_OVERLAYCOMPOSITION_FALSE
753USE_PLUGIN_OVERLAYCOMPOSITION_TRUE
754USE_PLUGIN_GIO_FALSE
755USE_PLUGIN_GIO_TRUE
756USE_PLUGIN_VIDEOCONVERT_FALSE
757USE_PLUGIN_VIDEOCONVERT_TRUE
758USE_PLUGIN_ENCODING_FALSE
759USE_PLUGIN_ENCODING_TRUE
760USE_PLUGIN_COMPOSITOR_FALSE
761USE_PLUGIN_COMPOSITOR_TRUE
762USE_PLUGIN_AUDIOTESTSRC_FALSE
763USE_PLUGIN_AUDIOTESTSRC_TRUE
764USE_PLUGIN_AUDIORATE_FALSE
765USE_PLUGIN_AUDIORATE_TRUE
766USE_PLUGIN_AUDIOMIXER_FALSE
767USE_PLUGIN_AUDIOMIXER_TRUE
768USE_PLUGIN_AUDIOCONVERT_FALSE
769USE_PLUGIN_AUDIOCONVERT_TRUE
770USE_PLUGIN_APP_FALSE
771USE_PLUGIN_APP_TRUE
772USE_PLUGIN_ADDER_FALSE
773USE_PLUGIN_ADDER_TRUE
774AUDIORESAMPLE_FORMAT_AUTO
775AUDIORESAMPLE_FORMAT_FLOAT
776AUDIORESAMPLE_FORMAT_INT
777DEFAULT_VISUALIZER
778DEFAULT_VIDEOSRC
779DEFAULT_VIDEOSINK
780DEFAULT_AUDIOSRC
781DEFAULT_AUDIOSINK
782GST_LEVEL_DEFAULT
783ERROR_CXXFLAGS
784WARNING_CXXFLAGS
785ERROR_CFLAGS
786WARNING_CFLAGS
787plugindir
788PLUGINDIR
789GST_LICENSE
790HAVE_LINUX_JOYSTICK_HEADERS_FALSE
791HAVE_LINUX_JOYSTICK_HEADERS_TRUE
792HAVE_SDL_FALSE
793HAVE_SDL_TRUE
794SDL_LIBS
795SDL_CFLAGS
796HAVE_QT_MOC_FALSE
797HAVE_QT_MOC_TRUE
798HAVE_QT_FALSE
799HAVE_QT_TRUE
800QTCHOOSER
801QT_MOC
802QT_LIBS
803QT_CFLAGS
804HAVE_GDK_PIXBUF_FALSE
805HAVE_GDK_PIXBUF_TRUE
806HAVE_GTK_QUARTZ_FALSE
807HAVE_GTK_QUARTZ_TRUE
808HAVE_GTK_X11_FALSE
809HAVE_GTK_X11_TRUE
810HAVE_GTK_FALSE
811HAVE_GTK_TRUE
812GDK_PIXBUF_LIBS
813GDK_PIXBUF_CFLAGS
814GTK_QUARTZ_LIBS
815GTK_QUARTZ_CFLAGS
816GTK_X11_LIBS
817GTK_X11_CFLAGS
818GTK_LIBS
819GTK_CFLAGS
820HAVE_GST_GL_FALSE
821HAVE_GST_GL_TRUE
822USE_EAGL_FALSE
823USE_EAGL_TRUE
824USE_EGL_RPI_FALSE
825USE_EGL_RPI_TRUE
826USE_EGL_MALI_FALSE
827USE_EGL_MALI_TRUE
828USE_COCOA_FALSE
829USE_COCOA_TRUE
830USE_WGL_FALSE
831USE_WGL_TRUE
832USE_EGL_FALSE
833USE_EGL_TRUE
834USE_GLX_FALSE
835USE_GLX_TRUE
836USE_GLES2_FALSE
837USE_GLES2_TRUE
838USE_OPENGL_FALSE
839USE_OPENGL_TRUE
840HAVE_WINDOW_GBM_FALSE
841HAVE_WINDOW_GBM_TRUE
842HAVE_WINDOW_VIV_FB_FALSE
843HAVE_WINDOW_VIV_FB_TRUE
844HAVE_WINDOW_EAGL_FALSE
845HAVE_WINDOW_EAGL_TRUE
846HAVE_WINDOW_ANDROID_FALSE
847HAVE_WINDOW_ANDROID_TRUE
848HAVE_WINDOW_WAYLAND_FALSE
849HAVE_WINDOW_WAYLAND_TRUE
850HAVE_WINDOW_DISPMANX_FALSE
851HAVE_WINDOW_DISPMANX_TRUE
852HAVE_WINDOW_WIN32_FALSE
853HAVE_WINDOW_WIN32_TRUE
854HAVE_WINDOW_COCOA_FALSE
855HAVE_WINDOW_COCOA_TRUE
856HAVE_WINDOW_X11_FALSE
857HAVE_WINDOW_X11_TRUE
858USE_GLES2
859USE_OPENGL
860GL_OBJCFLAGS
861GL_WINDOWS
862GL_PLATFORMS
863GL_APIS
864WAYLAND_PROTOCOLS_DATADIR
865WAYLAND_SCANNER
866WAYLAND_EGL_LIBS
867WAYLAND_EGL_CFLAGS
868GBM_LIBS
869GBM_CFLAGS
870DRM_LIBS
871DRM_CFLAGS
872HAVE_EGL
873EGL_LIBS
874EGL_CFLAGS
875HAVE_GLES2
876GLES2_LIBS
877GLES2_CFLAGS
878GL_LIBS
879GL_CFLAGS
880HAVE_GL
881X11_XCB_LIBS
882X11_XCB_CFLAGS
883HAVE_IOS_FALSE
884HAVE_IOS_TRUE
885ERROR_OBJCFLAGS
886WARNING_OBJCFLAGS
887am__fastdepOBJC_FALSE
888am__fastdepOBJC_TRUE
889OBJCDEPMODE
890ac_ct_OBJC
891OBJCFLAGS
892OBJC
893G_UDEV_LIBS
894G_UDEV_CFLAGS
895GST_PREFIX
896GLIB_PREFIX
897HAVE_GST_CHECK_FALSE
898HAVE_GST_CHECK_TRUE
899GST_CHECK_LIBS
900GST_CHECK_CFLAGS
901GST_CONTROLLER_LIBS
902GST_CONTROLLER_CFLAGS
903GST_BASE_LIBS
904GST_BASE_CFLAGS
905GST_NET_LIBS
906GST_NET_CFLAGS
907GST_PLUGINS_DIR
908GST_TOOLS_DIR
909GST_LIBS
910GST_CFLAGS
911ORC_PC
912HAVE_ORCC_FALSE
913HAVE_ORCC_TRUE
914HAVE_ORC_FALSE
915HAVE_ORC_TRUE
916ORCC_FLAGS
917ORCC
918ORC_LIBS
919ORC_CFLAGS
920GIO_LDFLAGS
921GIO_LIBS
922GIO_CFLAGS
923GLIB_EXTRA_CFLAGS
924GLIB_MKENUMS
925GLIB_GENMARSHAL
926GLIB_LIBS
927GLIB_CFLAGS
928GLIB_REQ
929WIN32_LIBS
930HAVE_WINSOCK2_H_FALSE
931HAVE_WINSOCK2_H_TRUE
932HAVE_SYS_SOCKET_H_FALSE
933HAVE_SYS_SOCKET_H_TRUE
934SSE41_CFLAGS
935SSE2_CFLAGS
936SSE_CFLAGS
937HAVE_X86_FALSE
938HAVE_X86_TRUE
939PTHREAD_CFLAGS
940PTHREAD_LIBS
941PTHREAD_CC
942ax_pthread_config
943LIBM
944ENABLE_PLUGIN_DOCS_FALSE
945ENABLE_PLUGIN_DOCS_TRUE
946pkgpyexecdir
947pyexecdir
948pkgpythondir
949pythondir
950PYTHON_PLATFORM
951PYTHON_EXEC_PREFIX
952PYTHON_PREFIX
953PYTHON_VERSION
954PYTHON
955GTK_DOC_USE_LIBTOOL_FALSE
956GTK_DOC_USE_LIBTOOL_TRUE
957GTK_DOC_BUILD_PDF_FALSE
958GTK_DOC_BUILD_PDF_TRUE
959GTK_DOC_BUILD_HTML_FALSE
960GTK_DOC_BUILD_HTML_TRUE
961ENABLE_GTK_DOC_FALSE
962ENABLE_GTK_DOC_TRUE
963GTKDOC_DEPS_LIBS
964GTKDOC_DEPS_CFLAGS
965HTML_DIR
966GTKDOC_MKPDF
967GTKDOC_REBASE
968GTKDOC_CHECK
969HAVE_INTROSPECTION_FALSE
970HAVE_INTROSPECTION_TRUE
971INTROSPECTION_INIT
972INTROSPECTION_MAKEFILE
973INTROSPECTION_LIBS
974INTROSPECTION_CFLAGS
975INTROSPECTION_TYPELIBDIR
976INTROSPECTION_GIRDIR
977INTROSPECTION_GENERATE
978INTROSPECTION_COMPILER
979INTROSPECTION_SCANNER
980HAVE_VALGRIND_FALSE
981HAVE_VALGRIND_TRUE
982VALGRIND_PATH
983HAVE_CXX_FALSE
984HAVE_CXX_TRUE
985CXXCPP
986am__fastdepCXX_FALSE
987am__fastdepCXX_TRUE
988CXXDEPMODE
989ac_ct_CXX
990CXX
991HAVE_CPU_CRISV32_FALSE
992HAVE_CPU_CRISV32_TRUE
993HAVE_CPU_CRIS_FALSE
994HAVE_CPU_CRIS_TRUE
995HAVE_CPU_X86_64_FALSE
996HAVE_CPU_X86_64_TRUE
997HAVE_CPU_M68K_FALSE
998HAVE_CPU_M68K_TRUE
999HAVE_CPU_IA64_FALSE
1000HAVE_CPU_IA64_TRUE
1001HAVE_CPU_S390_FALSE
1002HAVE_CPU_S390_TRUE
1003HAVE_CPU_MIPS_FALSE
1004HAVE_CPU_MIPS_TRUE
1005HAVE_CPU_HPPA_FALSE
1006HAVE_CPU_HPPA_TRUE
1007HAVE_CPU_SPARC_FALSE
1008HAVE_CPU_SPARC_TRUE
1009HAVE_CPU_ARM_FALSE
1010HAVE_CPU_ARM_TRUE
1011HAVE_CPU_ARC_FALSE
1012HAVE_CPU_ARC_TRUE
1013HAVE_CPU_ALPHA_FALSE
1014HAVE_CPU_ALPHA_TRUE
1015HAVE_CPU_PPC64_FALSE
1016HAVE_CPU_PPC64_TRUE
1017HAVE_CPU_PPC_FALSE
1018HAVE_CPU_PPC_TRUE
1019HAVE_CPU_I386_FALSE
1020HAVE_CPU_I386_TRUE
1021BUILD_EXPERIMENTAL_FALSE
1022BUILD_EXPERIMENTAL_TRUE
1023USE_EXPERIMENTAL_FALSE
1024USE_EXPERIMENTAL_TRUE
1025BUILD_EXTERNAL_FALSE
1026BUILD_EXTERNAL_TRUE
1027USE_EXTERNAL_FALSE
1028USE_EXTERNAL_TRUE
1029GST_PLUGINS_NONPORTED
1030GST_PLUGINS_SELECTED
1031GST_PLUGINS_ALL
1032GST_INSTALL_PLUGINS_HELPER
1033GST_PKG_CONFIG_PATH
1034GST_PACKAGE_ORIGIN
1035GST_PACKAGE_NAME
1036BUILD_EXAMPLES_FALSE
1037BUILD_EXAMPLES_TRUE
1038GST_GCOV_ENABLED_FALSE
1039GST_GCOV_ENABLED_TRUE
1040CCASFLAGS
1041FFLAGS
1042CXXFLAGS
1043GCOV
1044GCOV_LIBS
1045GCOV_CFLAGS
1046VALGRIND_LIBS
1047VALGRIND_CFLAGS
1048PKG_CONFIG
1049LOCALEDIR
1050GETTEXT_PACKAGE
1051POSUB
1052LTLIBINTL
1053LIBINTL
1054INTLLIBS
1055LTLIBICONV
1056LIBICONV
1057INTL_MACOSX_LIBS
1058XGETTEXT_EXTRA_OPTIONS
1059MSGMERGE
1060XGETTEXT_015
1061XGETTEXT
1062GMSGFMT_015
1063MSGFMT_015
1064GMSGFMT
1065MSGFMT
1066GETTEXT_MACRO_VERSION
1067USE_NLS
1068ACLOCAL_AMFLAGS
1069CPP
1070LT_SYS_LIBRARY_PATH
1071OTOOL64
1072OTOOL
1073LIPO
1074NMEDIT
1075DSYMUTIL
1076MANIFEST_TOOL
1077RANLIB
1078ac_ct_AR
1079AR
1080LN_S
1081NM
1082ac_ct_DUMPBIN
1083DUMPBIN
1084LD
1085FGREP
1086EGREP
1087GREP
1088SED
1089am__fastdepCC_FALSE
1090am__fastdepCC_TRUE
1091CCDEPMODE
1092am__nodep
1093AMDEPBACKSLASH
1094AMDEP_FALSE
1095AMDEP_TRUE
1096am__include
1097DEPDIR
1098OBJEXT
1099EXEEXT
1100ac_ct_CC
1101CPPFLAGS
1102LDFLAGS
1103CFLAGS
1104CC
1105LIBTOOL
1106OBJDUMP
1107DLLTOOL
1108AS
1109GST_LT_LDFLAGS
1110GST_LIBVERSION
1111GST_AGE
1112GST_REVISION
1113GST_CURRENT
1114GST_API_VERSION
1115MAINT
1116MAINTAINER_MODE_FALSE
1117MAINTAINER_MODE_TRUE
1118PACKAGE_VERSION_RELEASE
1119PACKAGE_VERSION_NANO
1120PACKAGE_VERSION_MICRO
1121PACKAGE_VERSION_MINOR
1122PACKAGE_VERSION_MAJOR
1123AM_BACKSLASH
1124AM_DEFAULT_VERBOSITY
1125AM_DEFAULT_V
1126AM_V
1127am__untar
1128am__tar
1129AMTAR
1130am__leading_dot
1131SET_MAKE
1132AWK
1133mkdir_p
1134MKDIR_P
1135INSTALL_STRIP_PROGRAM
1136STRIP
1137install_sh
1138MAKEINFO
1139AUTOHEADER
1140AUTOMAKE
1141AUTOCONF
1142ACLOCAL
1143VERSION
1144PACKAGE
1145CYGPATH_W
1146am__isrc
1147INSTALL_DATA
1148INSTALL_SCRIPT
1149INSTALL_PROGRAM
1150target_os
1151target_vendor
1152target_cpu
1153target
1154host_os
1155host_vendor
1156host_cpu
1157host
1158build_os
1159build_vendor
1160build_cpu
1161build
1162target_alias
1163host_alias
1164build_alias
1165LIBS
1166ECHO_T
1167ECHO_N
1168ECHO_C
1169DEFS
1170mandir
1171localedir
1172libdir
1173psdir
1174pdfdir
1175dvidir
1176htmldir
1177infodir
1178docdir
1179oldincludedir
1180includedir
1181runstatedir
1182localstatedir
1183sharedstatedir
1184sysconfdir
1185datadir
1186datarootdir
1187libexecdir
1188sbindir
1189bindir
1190program_transform_name
1191prefix
1192exec_prefix
1193PACKAGE_URL
1194PACKAGE_BUGREPORT
1195PACKAGE_STRING
1196PACKAGE_VERSION
1197PACKAGE_TARNAME
1198PACKAGE_NAME
1199PATH_SEPARATOR
1200SHELL
1201am__quote'
1202ac_subst_files=''
1203ac_user_opts='
1204enable_option_checking
1205enable_silent_rules
1206enable_maintainer_mode
1207enable_static
1208enable_shared
1209with_pic
1210enable_fast_install
1211with_aix_soname
1212enable_dependency_tracking
1213with_gnu_ld
1214with_sysroot
1215enable_libtool_lock
1216with_autoconf
1217with_autoheader
1218with_automake
1219with_aclocal
1220enable_nls
1221enable_rpath
1222with_libiconv_prefix
1223with_libintl_prefix
1224enable_fatal_warnings
1225enable_extra_check
1226enable_debug
1227enable_profiling
1228enable_valgrind
1229enable_gcov
1230enable_examples
1231with_pkg_config_path
1232with_package_name
1233with_package_origin
1234with_install_plugins_helper
1235with_plugins
1236enable_external
1237enable_experimental
1238enable_largefile
1239enable_introspection
1240with_html_dir
1241enable_gtk_doc
1242enable_gtk_doc_html
1243enable_gtk_doc_pdf
1244enable_gobject_cast_checks
1245enable_glib_asserts
1246enable_orc
1247enable_opengl
1248with_opengl_module_name
1249enable_gles2
1250with_gles2_module_name
1251enable_egl
1252with_egl_module_name
1253enable_wgl
1254enable_glx
1255enable_cocoa
1256enable_x11
1257enable_wayland
1258enable_dispmanx
1259enable_gbm
1260enable_png
1261enable_jpeg
1262enable_Bsymbolic
1263with_default_audiosink
1264with_default_audiosrc
1265with_default_videosink
1266with_default_videosrc
1267with_default_visualizer
1268with_audioresample_format
1269enable_adder
1270enable_app
1271enable_audioconvert
1272enable_audiomixer
1273enable_audiorate
1274enable_audiotestsrc
1275enable_compositor
1276enable_encoding
1277enable_videoconvert
1278enable_gio
1279enable_overlaycomposition
1280enable_playback
1281enable_audioresample
1282enable_rawparse
1283enable_subparse
1284enable_tcp
1285enable_typefind
1286enable_videotestsrc
1287enable_videorate
1288enable_videoscale
1289enable_volume
1290enable_iso_codes
1291enable_zlib
1292enable_x
1293enable_xvideo
1294enable_xshm
1295enable_alsa
1296with_alsa_prefix
1297with_alsa_inc_prefix
1298enable_cdparanoia
1299enable_gl
1300with_jpeg_mmx
1301enable_ivorbis
1302enable_libvisual
1303enable_ogg
1304enable_opus
1305enable_pango
1306enable_theora
1307enable_vorbis
1308'
1309      ac_precious_vars='build_alias
1310host_alias
1311target_alias
1312CC
1313CFLAGS
1314LDFLAGS
1315LIBS
1316CPPFLAGS
1317LT_SYS_LIBRARY_PATH
1318CPP
1319PKG_CONFIG
1320VALGRIND_CFLAGS
1321VALGRIND_LIBS
1322CXX
1323CXXFLAGS
1324CCC
1325CXXCPP
1326GTKDOC_DEPS_CFLAGS
1327GTKDOC_DEPS_LIBS
1328PYTHON
1329GLIB_CFLAGS
1330GLIB_LIBS
1331GIO_CFLAGS
1332GIO_LIBS
1333ORC_CFLAGS
1334ORC_LIBS
1335GST_CFLAGS
1336GST_LIBS
1337GST_NET_CFLAGS
1338GST_NET_LIBS
1339GST_BASE_CFLAGS
1340GST_BASE_LIBS
1341GST_CONTROLLER_CFLAGS
1342GST_CONTROLLER_LIBS
1343GST_CHECK_CFLAGS
1344GST_CHECK_LIBS
1345G_UDEV_CFLAGS
1346G_UDEV_LIBS
1347OBJC
1348OBJCFLAGS
1349X11_XCB_CFLAGS
1350X11_XCB_LIBS
1351GL_CFLAGS
1352GL_LIBS
1353GLES2_CFLAGS
1354GLES2_LIBS
1355EGL_CFLAGS
1356EGL_LIBS
1357DRM_CFLAGS
1358DRM_LIBS
1359GBM_CFLAGS
1360GBM_LIBS
1361WAYLAND_EGL_CFLAGS
1362WAYLAND_EGL_LIBS
1363GTK_CFLAGS
1364GTK_LIBS
1365GTK_X11_CFLAGS
1366GTK_X11_LIBS
1367GTK_QUARTZ_CFLAGS
1368GTK_QUARTZ_LIBS
1369GDK_PIXBUF_CFLAGS
1370GDK_PIXBUF_LIBS
1371QT_CFLAGS
1372QT_LIBS
1373SDL_CFLAGS
1374SDL_LIBS
1375ZLIB_CFLAGS
1376ZLIB_LIBS
1377X_CFLAGS
1378X_LIBS
1379XVIDEO_CFLAGS
1380XVIDEO_LIBS
1381XSHM_CFLAGS
1382XSHM_LIBS
1383ALSA_CFLAGS
1384ALSA_LIBS
1385CDPARANOIA_CFLAGS
1386CDPARANOIA_LIBS
1387GRAPHENE_CFLAGS
1388GRAPHENE_LIBS
1389GMODULE_NO_EXPORT_CFLAGS
1390GMODULE_NO_EXPORT_LIBS
1391LIBPNG_CFLAGS
1392LIBPNG_LIBS
1393IVORBIS_CFLAGS
1394IVORBIS_LIBS
1395LIBVISUAL_CFLAGS
1396LIBVISUAL_LIBS
1397OGG_CFLAGS
1398OGG_LIBS
1399OPUS_CFLAGS
1400OPUS_LIBS
1401PANGO_CFLAGS
1402PANGO_LIBS
1403THEORA_CFLAGS
1404THEORA_LIBS
1405VORBIS_CFLAGS
1406VORBIS_LIBS
1407GIO_UNIX_2_0_CFLAGS
1408GIO_UNIX_2_0_LIBS'
1409
1410
1411# Initialize some variables set by options.
1412ac_init_help=
1413ac_init_version=false
1414ac_unrecognized_opts=
1415ac_unrecognized_sep=
1416# The variables have the same names as the options, with
1417# dashes changed to underlines.
1418cache_file=/dev/null
1419exec_prefix=NONE
1420no_create=
1421no_recursion=
1422prefix=NONE
1423program_prefix=NONE
1424program_suffix=NONE
1425program_transform_name=s,x,x,
1426silent=
1427site=
1428srcdir=
1429verbose=
1430x_includes=NONE
1431x_libraries=NONE
1432
1433# Installation directory options.
1434# These are left unexpanded so users can "make install exec_prefix=/foo"
1435# and all the variables that are supposed to be based on exec_prefix
1436# by default will actually change.
1437# Use braces instead of parens because sh, perl, etc. also accept them.
1438# (The list follows the same order as the GNU Coding Standards.)
1439bindir='${exec_prefix}/bin'
1440sbindir='${exec_prefix}/sbin'
1441libexecdir='${exec_prefix}/libexec'
1442datarootdir='${prefix}/share'
1443datadir='${datarootdir}'
1444sysconfdir='${prefix}/etc'
1445sharedstatedir='${prefix}/com'
1446localstatedir='${prefix}/var'
1447runstatedir='${localstatedir}/run'
1448includedir='${prefix}/include'
1449oldincludedir='/usr/include'
1450docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1451infodir='${datarootdir}/info'
1452htmldir='${docdir}'
1453dvidir='${docdir}'
1454pdfdir='${docdir}'
1455psdir='${docdir}'
1456libdir='${exec_prefix}/lib'
1457localedir='${datarootdir}/locale'
1458mandir='${datarootdir}/man'
1459
1460ac_prev=
1461ac_dashdash=
1462for ac_option
1463do
1464  # If the previous option needs an argument, assign it.
1465  if test -n "$ac_prev"; then
1466    eval $ac_prev=\$ac_option
1467    ac_prev=
1468    continue
1469  fi
1470
1471  case $ac_option in
1472  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1473  *=)   ac_optarg= ;;
1474  *)    ac_optarg=yes ;;
1475  esac
1476
1477  # Accept the important Cygnus configure options, so we can diagnose typos.
1478
1479  case $ac_dashdash$ac_option in
1480  --)
1481    ac_dashdash=yes ;;
1482
1483  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1484    ac_prev=bindir ;;
1485  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1486    bindir=$ac_optarg ;;
1487
1488  -build | --build | --buil | --bui | --bu)
1489    ac_prev=build_alias ;;
1490  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1491    build_alias=$ac_optarg ;;
1492
1493  -cache-file | --cache-file | --cache-fil | --cache-fi \
1494  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1495    ac_prev=cache_file ;;
1496  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1497  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1498    cache_file=$ac_optarg ;;
1499
1500  --config-cache | -C)
1501    cache_file=config.cache ;;
1502
1503  -datadir | --datadir | --datadi | --datad)
1504    ac_prev=datadir ;;
1505  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1506    datadir=$ac_optarg ;;
1507
1508  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1509  | --dataroo | --dataro | --datar)
1510    ac_prev=datarootdir ;;
1511  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1512  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1513    datarootdir=$ac_optarg ;;
1514
1515  -disable-* | --disable-*)
1516    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1517    # Reject names that are not valid shell variable names.
1518    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1519      as_fn_error $? "invalid feature name: $ac_useropt"
1520    ac_useropt_orig=$ac_useropt
1521    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1522    case $ac_user_opts in
1523      *"
1524"enable_$ac_useropt"
1525"*) ;;
1526      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1527	 ac_unrecognized_sep=', ';;
1528    esac
1529    eval enable_$ac_useropt=no ;;
1530
1531  -docdir | --docdir | --docdi | --doc | --do)
1532    ac_prev=docdir ;;
1533  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1534    docdir=$ac_optarg ;;
1535
1536  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1537    ac_prev=dvidir ;;
1538  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1539    dvidir=$ac_optarg ;;
1540
1541  -enable-* | --enable-*)
1542    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1543    # Reject names that are not valid shell variable names.
1544    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545      as_fn_error $? "invalid feature name: $ac_useropt"
1546    ac_useropt_orig=$ac_useropt
1547    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1548    case $ac_user_opts in
1549      *"
1550"enable_$ac_useropt"
1551"*) ;;
1552      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1553	 ac_unrecognized_sep=', ';;
1554    esac
1555    eval enable_$ac_useropt=\$ac_optarg ;;
1556
1557  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1558  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1559  | --exec | --exe | --ex)
1560    ac_prev=exec_prefix ;;
1561  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1562  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1563  | --exec=* | --exe=* | --ex=*)
1564    exec_prefix=$ac_optarg ;;
1565
1566  -gas | --gas | --ga | --g)
1567    # Obsolete; use --with-gas.
1568    with_gas=yes ;;
1569
1570  -help | --help | --hel | --he | -h)
1571    ac_init_help=long ;;
1572  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1573    ac_init_help=recursive ;;
1574  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1575    ac_init_help=short ;;
1576
1577  -host | --host | --hos | --ho)
1578    ac_prev=host_alias ;;
1579  -host=* | --host=* | --hos=* | --ho=*)
1580    host_alias=$ac_optarg ;;
1581
1582  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1583    ac_prev=htmldir ;;
1584  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1585  | --ht=*)
1586    htmldir=$ac_optarg ;;
1587
1588  -includedir | --includedir | --includedi | --included | --include \
1589  | --includ | --inclu | --incl | --inc)
1590    ac_prev=includedir ;;
1591  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1592  | --includ=* | --inclu=* | --incl=* | --inc=*)
1593    includedir=$ac_optarg ;;
1594
1595  -infodir | --infodir | --infodi | --infod | --info | --inf)
1596    ac_prev=infodir ;;
1597  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1598    infodir=$ac_optarg ;;
1599
1600  -libdir | --libdir | --libdi | --libd)
1601    ac_prev=libdir ;;
1602  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1603    libdir=$ac_optarg ;;
1604
1605  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1606  | --libexe | --libex | --libe)
1607    ac_prev=libexecdir ;;
1608  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1609  | --libexe=* | --libex=* | --libe=*)
1610    libexecdir=$ac_optarg ;;
1611
1612  -localedir | --localedir | --localedi | --localed | --locale)
1613    ac_prev=localedir ;;
1614  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1615    localedir=$ac_optarg ;;
1616
1617  -localstatedir | --localstatedir | --localstatedi | --localstated \
1618  | --localstate | --localstat | --localsta | --localst | --locals)
1619    ac_prev=localstatedir ;;
1620  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1621  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1622    localstatedir=$ac_optarg ;;
1623
1624  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1625    ac_prev=mandir ;;
1626  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1627    mandir=$ac_optarg ;;
1628
1629  -nfp | --nfp | --nf)
1630    # Obsolete; use --without-fp.
1631    with_fp=no ;;
1632
1633  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1634  | --no-cr | --no-c | -n)
1635    no_create=yes ;;
1636
1637  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1638  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1639    no_recursion=yes ;;
1640
1641  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1642  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1643  | --oldin | --oldi | --old | --ol | --o)
1644    ac_prev=oldincludedir ;;
1645  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1646  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1647  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1648    oldincludedir=$ac_optarg ;;
1649
1650  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1651    ac_prev=prefix ;;
1652  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1653    prefix=$ac_optarg ;;
1654
1655  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1656  | --program-pre | --program-pr | --program-p)
1657    ac_prev=program_prefix ;;
1658  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1659  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1660    program_prefix=$ac_optarg ;;
1661
1662  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1663  | --program-suf | --program-su | --program-s)
1664    ac_prev=program_suffix ;;
1665  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1666  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1667    program_suffix=$ac_optarg ;;
1668
1669  -program-transform-name | --program-transform-name \
1670  | --program-transform-nam | --program-transform-na \
1671  | --program-transform-n | --program-transform- \
1672  | --program-transform | --program-transfor \
1673  | --program-transfo | --program-transf \
1674  | --program-trans | --program-tran \
1675  | --progr-tra | --program-tr | --program-t)
1676    ac_prev=program_transform_name ;;
1677  -program-transform-name=* | --program-transform-name=* \
1678  | --program-transform-nam=* | --program-transform-na=* \
1679  | --program-transform-n=* | --program-transform-=* \
1680  | --program-transform=* | --program-transfor=* \
1681  | --program-transfo=* | --program-transf=* \
1682  | --program-trans=* | --program-tran=* \
1683  | --progr-tra=* | --program-tr=* | --program-t=*)
1684    program_transform_name=$ac_optarg ;;
1685
1686  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1687    ac_prev=pdfdir ;;
1688  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1689    pdfdir=$ac_optarg ;;
1690
1691  -psdir | --psdir | --psdi | --psd | --ps)
1692    ac_prev=psdir ;;
1693  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1694    psdir=$ac_optarg ;;
1695
1696  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1697  | -silent | --silent | --silen | --sile | --sil)
1698    silent=yes ;;
1699
1700  -runstatedir | --runstatedir | --runstatedi | --runstated \
1701  | --runstate | --runstat | --runsta | --runst | --runs \
1702  | --run | --ru | --r)
1703    ac_prev=runstatedir ;;
1704  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1705  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1706  | --run=* | --ru=* | --r=*)
1707    runstatedir=$ac_optarg ;;
1708
1709  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1710    ac_prev=sbindir ;;
1711  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1712  | --sbi=* | --sb=*)
1713    sbindir=$ac_optarg ;;
1714
1715  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1716  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1717  | --sharedst | --shareds | --shared | --share | --shar \
1718  | --sha | --sh)
1719    ac_prev=sharedstatedir ;;
1720  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1721  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1722  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1723  | --sha=* | --sh=*)
1724    sharedstatedir=$ac_optarg ;;
1725
1726  -site | --site | --sit)
1727    ac_prev=site ;;
1728  -site=* | --site=* | --sit=*)
1729    site=$ac_optarg ;;
1730
1731  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1732    ac_prev=srcdir ;;
1733  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1734    srcdir=$ac_optarg ;;
1735
1736  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1737  | --syscon | --sysco | --sysc | --sys | --sy)
1738    ac_prev=sysconfdir ;;
1739  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1740  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1741    sysconfdir=$ac_optarg ;;
1742
1743  -target | --target | --targe | --targ | --tar | --ta | --t)
1744    ac_prev=target_alias ;;
1745  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1746    target_alias=$ac_optarg ;;
1747
1748  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1749    verbose=yes ;;
1750
1751  -version | --version | --versio | --versi | --vers | -V)
1752    ac_init_version=: ;;
1753
1754  -with-* | --with-*)
1755    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1756    # Reject names that are not valid shell variable names.
1757    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1758      as_fn_error $? "invalid package name: $ac_useropt"
1759    ac_useropt_orig=$ac_useropt
1760    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1761    case $ac_user_opts in
1762      *"
1763"with_$ac_useropt"
1764"*) ;;
1765      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1766	 ac_unrecognized_sep=', ';;
1767    esac
1768    eval with_$ac_useropt=\$ac_optarg ;;
1769
1770  -without-* | --without-*)
1771    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1772    # Reject names that are not valid shell variable names.
1773    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1774      as_fn_error $? "invalid package name: $ac_useropt"
1775    ac_useropt_orig=$ac_useropt
1776    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777    case $ac_user_opts in
1778      *"
1779"with_$ac_useropt"
1780"*) ;;
1781      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1782	 ac_unrecognized_sep=', ';;
1783    esac
1784    eval with_$ac_useropt=no ;;
1785
1786  --x)
1787    # Obsolete; use --with-x.
1788    with_x=yes ;;
1789
1790  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1791  | --x-incl | --x-inc | --x-in | --x-i)
1792    ac_prev=x_includes ;;
1793  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1794  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1795    x_includes=$ac_optarg ;;
1796
1797  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1798  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1799    ac_prev=x_libraries ;;
1800  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1801  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1802    x_libraries=$ac_optarg ;;
1803
1804  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1805Try \`$0 --help' for more information"
1806    ;;
1807
1808  *=*)
1809    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1810    # Reject names that are not valid shell variable names.
1811    case $ac_envvar in #(
1812      '' | [0-9]* | *[!_$as_cr_alnum]* )
1813      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1814    esac
1815    eval $ac_envvar=\$ac_optarg
1816    export $ac_envvar ;;
1817
1818  *)
1819    # FIXME: should be removed in autoconf 3.0.
1820    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1821    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1822      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1823    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1824    ;;
1825
1826  esac
1827done
1828
1829if test -n "$ac_prev"; then
1830  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1831  as_fn_error $? "missing argument to $ac_option"
1832fi
1833
1834if test -n "$ac_unrecognized_opts"; then
1835  case $enable_option_checking in
1836    no) ;;
1837    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1838    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1839  esac
1840fi
1841
1842# Check all directory arguments for consistency.
1843for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1844		datadir sysconfdir sharedstatedir localstatedir includedir \
1845		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1846		libdir localedir mandir runstatedir
1847do
1848  eval ac_val=\$$ac_var
1849  # Remove trailing slashes.
1850  case $ac_val in
1851    */ )
1852      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1853      eval $ac_var=\$ac_val;;
1854  esac
1855  # Be sure to have absolute directory names.
1856  case $ac_val in
1857    [\\/$]* | ?:[\\/]* )  continue;;
1858    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1859  esac
1860  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1861done
1862
1863# There might be people who depend on the old broken behavior: `$host'
1864# used to hold the argument of --host etc.
1865# FIXME: To remove some day.
1866build=$build_alias
1867host=$host_alias
1868target=$target_alias
1869
1870# FIXME: To remove some day.
1871if test "x$host_alias" != x; then
1872  if test "x$build_alias" = x; then
1873    cross_compiling=maybe
1874  elif test "x$build_alias" != "x$host_alias"; then
1875    cross_compiling=yes
1876  fi
1877fi
1878
1879ac_tool_prefix=
1880test -n "$host_alias" && ac_tool_prefix=$host_alias-
1881
1882test "$silent" = yes && exec 6>/dev/null
1883
1884
1885ac_pwd=`pwd` && test -n "$ac_pwd" &&
1886ac_ls_di=`ls -di .` &&
1887ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1888  as_fn_error $? "working directory cannot be determined"
1889test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1890  as_fn_error $? "pwd does not report name of working directory"
1891
1892
1893# Find the source files, if location was not specified.
1894if test -z "$srcdir"; then
1895  ac_srcdir_defaulted=yes
1896  # Try the directory containing this script, then the parent directory.
1897  ac_confdir=`$as_dirname -- "$as_myself" ||
1898$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1899	 X"$as_myself" : 'X\(//\)[^/]' \| \
1900	 X"$as_myself" : 'X\(//\)$' \| \
1901	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1902$as_echo X"$as_myself" |
1903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1904	    s//\1/
1905	    q
1906	  }
1907	  /^X\(\/\/\)[^/].*/{
1908	    s//\1/
1909	    q
1910	  }
1911	  /^X\(\/\/\)$/{
1912	    s//\1/
1913	    q
1914	  }
1915	  /^X\(\/\).*/{
1916	    s//\1/
1917	    q
1918	  }
1919	  s/.*/./; q'`
1920  srcdir=$ac_confdir
1921  if test ! -r "$srcdir/$ac_unique_file"; then
1922    srcdir=..
1923  fi
1924else
1925  ac_srcdir_defaulted=no
1926fi
1927if test ! -r "$srcdir/$ac_unique_file"; then
1928  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1929  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1930fi
1931ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1932ac_abs_confdir=`(
1933	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1934	pwd)`
1935# When building in place, set srcdir=.
1936if test "$ac_abs_confdir" = "$ac_pwd"; then
1937  srcdir=.
1938fi
1939# Remove unnecessary trailing slashes from srcdir.
1940# Double slashes in file names in object file debugging info
1941# mess up M-x gdb in Emacs.
1942case $srcdir in
1943*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1944esac
1945for ac_var in $ac_precious_vars; do
1946  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1947  eval ac_env_${ac_var}_value=\$${ac_var}
1948  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1949  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1950done
1951
1952#
1953# Report the --help message.
1954#
1955if test "$ac_init_help" = "long"; then
1956  # Omit some internal or obsolete options to make the list less imposing.
1957  # This message is too long to be a string in the A/UX 3.1 sh.
1958  cat <<_ACEOF
1959\`configure' configures GStreamer Base Plug-ins 1.16.2 to adapt to many kinds of systems.
1960
1961Usage: $0 [OPTION]... [VAR=VALUE]...
1962
1963To assign environment variables (e.g., CC, CFLAGS...), specify them as
1964VAR=VALUE.  See below for descriptions of some of the useful variables.
1965
1966Defaults for the options are specified in brackets.
1967
1968Configuration:
1969  -h, --help              display this help and exit
1970      --help=short        display options specific to this package
1971      --help=recursive    display the short help of all the included packages
1972  -V, --version           display version information and exit
1973  -q, --quiet, --silent   do not print \`checking ...' messages
1974      --cache-file=FILE   cache test results in FILE [disabled]
1975  -C, --config-cache      alias for \`--cache-file=config.cache'
1976  -n, --no-create         do not create output files
1977      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1978
1979Installation directories:
1980  --prefix=PREFIX         install architecture-independent files in PREFIX
1981                          [$ac_default_prefix]
1982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1983                          [PREFIX]
1984
1985By default, \`make install' will install all the files in
1986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1988for instance \`--prefix=\$HOME'.
1989
1990For better control, use the options below.
1991
1992Fine tuning of the installation directories:
1993  --bindir=DIR            user executables [EPREFIX/bin]
1994  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1995  --libexecdir=DIR        program executables [EPREFIX/libexec]
1996  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1997  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1998  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1999  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2000  --libdir=DIR            object code libraries [EPREFIX/lib]
2001  --includedir=DIR        C header files [PREFIX/include]
2002  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2003  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2004  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2005  --infodir=DIR           info documentation [DATAROOTDIR/info]
2006  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2007  --mandir=DIR            man documentation [DATAROOTDIR/man]
2008  --docdir=DIR            documentation root
2009                          [DATAROOTDIR/doc/gst-plugins-base]
2010  --htmldir=DIR           html documentation [DOCDIR]
2011  --dvidir=DIR            dvi documentation [DOCDIR]
2012  --pdfdir=DIR            pdf documentation [DOCDIR]
2013  --psdir=DIR             ps documentation [DOCDIR]
2014_ACEOF
2015
2016  cat <<\_ACEOF
2017
2018Program names:
2019  --program-prefix=PREFIX            prepend PREFIX to installed program names
2020  --program-suffix=SUFFIX            append SUFFIX to installed program names
2021  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2022
2023System types:
2024  --build=BUILD     configure for building on BUILD [guessed]
2025  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2026  --target=TARGET   configure for building compilers for TARGET [HOST]
2027_ACEOF
2028fi
2029
2030if test -n "$ac_init_help"; then
2031  case $ac_init_help in
2032     short | recursive ) echo "Configuration of GStreamer Base Plug-ins 1.16.2:";;
2033   esac
2034  cat <<\_ACEOF
2035
2036Optional Features:
2037  --disable-option-checking  ignore unrecognized --enable/--with options
2038  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2039  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2040  --enable-silent-rules   less verbose build output (undo: "make V=1")
2041  --disable-silent-rules  verbose build output (undo: "make V=0")
2042  --disable-maintainer-mode
2043                          disable make rules and dependencies not useful (and
2044                          sometimes confusing) to the casual installer
2045  --enable-static[=PKGS]  build static libraries [default=no]
2046  --enable-shared[=PKGS]  build shared libraries [default=yes]
2047  --enable-fast-install[=PKGS]
2048                          optimize for fast installation [default=yes]
2049  --enable-dependency-tracking
2050                          do not reject slow dependency extractors
2051  --disable-dependency-tracking
2052                          speeds up one-time build
2053  --disable-libtool-lock  avoid locking (might break parallel builds)
2054  --disable-nls           do not use Native Language Support
2055  --disable-rpath         do not hardcode runtime library paths
2056  --disable-fatal-warnings
2057                          Don't turn compiler warnings into fatal errors
2058  --enable-extra-checks   Enable extra runtime checks
2059  --disable-debug         disable addition of -g debugging info
2060  --enable-profiling      adds -pg to compiler commandline, for profiling
2061  --disable-valgrind      disable run-time valgrind detection
2062  --enable-gcov           compile with coverage profiling instrumentation (gcc
2063                          only)
2064  --disable-examples      disable building examples
2065  --disable-external           disable building of plug-ins with external deps
2066  --enable-experimental        enable building of experimental plug-ins
2067  --disable-largefile     omit support for large files
2068  --enable-introspection=[no/auto/yes]
2069                          Enable introspection for this build
2070  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2071  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2072  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2073  --enable-gobject-cast-checks=[no/auto/yes]
2074                          Enable GObject cast checks
2075  --enable-glib-asserts=[no/yes]
2076                          Enable GLib assertion
2077  --enable-orc            use Orc if installed
2078  --enable-opengl         Enable Desktop OpenGL support [default=auto]
2079  --enable-gles2          Enable OpenGL|ES 2.0 support [default=auto]
2080  --enable-egl            Enable EGL support [default=auto]
2081  --enable-wgl            Enable WGL support [default=auto]
2082  --enable-glx            Enable GLX support [default=auto]
2083  --enable-cocoa          Enable Cocoa support [default=auto]
2084  --enable-x11            Enable x11 support [default=auto]
2085  --enable-wayland        Enable Wayland support (requires EGL) [default=auto]
2086  --enable-dispmanx        Enable Dispmanx support (requires EGL) [default=auto]
2087  --enable-gbm        Enable Mesa3D GBM support (requires EGL) [default=auto]
2088  --enable-png        Enable libpng support [default=auto]
2089  --enable-jpeg        Enable libjpeg support [default=auto]
2090  --disable-Bsymbolic     avoid linking with -Bsymbolic
2091  --disable-adder         disable dependency-less adder plugin
2092  --disable-app           disable dependency-less app plugin
2093  --disable-audioconvert  disable dependency-less audioconvert plugin
2094  --disable-audiomixer    disable dependency-less audiomixer plugin
2095  --disable-audiorate     disable dependency-less audiorate plugin
2096  --disable-audiotestsrc  disable dependency-less audiotestsrc plugin
2097  --disable-compositor    disable dependency-less compositor plugin
2098  --disable-encoding      disable dependency-less encoding plugin
2099  --disable-videoconvert  disable dependency-less videoconvert plugin
2100  --disable-gio           disable dependency-less gio plugin
2101  --disable-overlaycomposition
2102                          disable dependency-less overlaycomposition plugin
2103  --disable-playback      disable dependency-less playback plugin
2104  --disable-audioresample disable dependency-less audioresample plugin
2105  --disable-rawparse      disable dependency-less rawparse plugin
2106  --disable-subparse      disable dependency-less subparse plugin
2107  --disable-tcp           disable dependency-less tcp plugin
2108  --disable-typefind      disable dependency-less typefind plugin
2109  --disable-videotestsrc  disable dependency-less videotestsrc plugin
2110  --disable-videorate     disable dependency-less videorate plugin
2111  --disable-videoscale    disable dependency-less videoscale plugin
2112  --disable-volume        disable dependency-less volume plugin
2113  --enable-iso-codes      use iso-codes if installed
2114  --disable-zlib               disable zlib support for ID3 parsing in libgsttag
2115  --disable-x                  disable X libraries and plugins: ximagesink
2116  --disable-xvideo             disable X11 XVideo extensions: xvimagesink
2117  --disable-xshm               disable X Shared Memory extension:
2118  --disable-alsa               disable ALSA: alsa
2119  --disable-cdparanoia         disable CDParanoia: cdparanoia
2120  --disable-gl                 disable gl elements: gl
2121  --disable-ivorbis            disable integer vorbis plug-in: ivorbisdec
2122  --disable-libvisual          disable libvisual visualization library: libvisual
2123  --disable-ogg                disable Xiph Ogg library: ogg
2124  --disable-opus               disable opus: opus
2125  --disable-pango              disable Pango font rendering: pango
2126  --disable-theora             disable Xiph Theora video codec: theora
2127  --disable-vorbis             disable Xiph Vorbis audio codec: vorbis
2128
2129Optional Packages:
2130  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2131  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2132  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2133                          both]
2134  --with-aix-soname=aix|svr4|both
2135                          shared library versioning (aka "SONAME") variant to
2136                          provide on AIX, [default=aix].
2137  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2138  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2139                          compiler's sysroot if not specified).
2140  --with-autoconf         use a different autoconf for regeneration of
2141                          Makefiles
2142  --with-autoheader       use a different autoheader for regeneration of
2143                          Makefiles
2144  --with-automake         use a different automake for regeneration of
2145                          Makefiles
2146  --with-aclocal          use a different aclocal for regeneration of
2147                          Makefiles
2148  --with-gnu-ld           assume the C compiler uses GNU ld default=no
2149  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2150  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2151  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2152  --without-libintl-prefix     don't search for libintl in includedir and libdir
2153  --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
2154  --with-package-name     specify package name to use in plugins
2155  --with-package-origin   specify package origin URL to use in plugins
2156  --with-install-plugins-helper
2157                          specify path of helper script to call to install
2158                          plugins
2159  --with-plugins          comma-separated list of dependencyless plug-ins to
2160                          compile
2161  --with-html-dir=PATH    path to installed docs
2162  --with-opengl-module-name
2163                          library module name for OpenGL (default: libGL)
2164  --with-gles2-module-name
2165                          library module name for GLES2 (default: libGLESv2)
2166  --with-egl-module-name  library module name for EGL (default: libEGL)
2167  --with-default-audiosink
2168                          specify default audio sink
2169  --with-default-audiosrc specify default audio source
2170  --with-default-videosink
2171                          specify default video sink
2172  --with-default-videosrc specify default video source
2173  --with-default-visualizer
2174                          specify default visualizer
2175  --with-audioresample-format
2176                          Which implementation should be used for integer
2177                          audio resampling, int/float/auto, (default is auto)
2178  --with-alsa-prefix=PFX  prefix where Alsa library is installed(optional)
2179  --with-alsa-inc-prefix=PFX
2180                          prefix where include libraries are (optional)
2181  --with-jpeg-mmx, path to MMX'ified JPEG library
2182
2183Some influential environment variables:
2184  CC          C compiler command
2185  CFLAGS      C compiler flags
2186  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2187              nonstandard directory <lib dir>
2188  LIBS        libraries to pass to the linker, e.g. -l<library>
2189  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190              you have headers in a nonstandard directory <include dir>
2191  LT_SYS_LIBRARY_PATH
2192              User-defined run-time library search path.
2193  CPP         C preprocessor
2194  PKG_CONFIG  path to pkg-config utility
2195  VALGRIND_CFLAGS
2196              C compiler flags for VALGRIND, overriding pkg-config
2197  VALGRIND_LIBS
2198              linker flags for VALGRIND, overriding pkg-config
2199  CXX         C++ compiler command
2200  CXXFLAGS    C++ compiler flags
2201  CXXCPP      C++ preprocessor
2202  GTKDOC_DEPS_CFLAGS
2203              C compiler flags for GTKDOC_DEPS, overriding pkg-config
2204  GTKDOC_DEPS_LIBS
2205              linker flags for GTKDOC_DEPS, overriding pkg-config
2206  PYTHON      the Python interpreter
2207  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2208  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2209  GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2210  GIO_LIBS    linker flags for GIO, overriding pkg-config
2211  ORC_CFLAGS  C compiler flags for ORC, overriding pkg-config
2212  ORC_LIBS    linker flags for ORC, overriding pkg-config
2213  GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2214  GST_LIBS    linker flags for GST, overriding pkg-config
2215  GST_NET_CFLAGS
2216              C compiler flags for GST_NET, overriding pkg-config
2217  GST_NET_LIBS
2218              linker flags for GST_NET, overriding pkg-config
2219  GST_BASE_CFLAGS
2220              C compiler flags for GST_BASE, overriding pkg-config
2221  GST_BASE_LIBS
2222              linker flags for GST_BASE, overriding pkg-config
2223  GST_CONTROLLER_CFLAGS
2224              C compiler flags for GST_CONTROLLER, overriding pkg-config
2225  GST_CONTROLLER_LIBS
2226              linker flags for GST_CONTROLLER, overriding pkg-config
2227  GST_CHECK_CFLAGS
2228              C compiler flags for GST_CHECK, overriding pkg-config
2229  GST_CHECK_LIBS
2230              linker flags for GST_CHECK, overriding pkg-config
2231  G_UDEV_CFLAGS
2232              C compiler flags for G_UDEV, overriding pkg-config
2233  G_UDEV_LIBS linker flags for G_UDEV, overriding pkg-config
2234  OBJC        Objective C compiler command
2235  OBJCFLAGS   Objective C compiler flags
2236  X11_XCB_CFLAGS
2237              C compiler flags for X11_XCB, overriding pkg-config
2238  X11_XCB_LIBS
2239              linker flags for X11_XCB, overriding pkg-config
2240  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2241  GL_LIBS     linker flags for GL, overriding pkg-config
2242  GLES2_CFLAGS
2243              C compiler flags for GLES2, overriding pkg-config
2244  GLES2_LIBS  linker flags for GLES2, overriding pkg-config
2245  EGL_CFLAGS  C compiler flags for EGL, overriding pkg-config
2246  EGL_LIBS    linker flags for EGL, overriding pkg-config
2247  DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
2248  DRM_LIBS    linker flags for DRM, overriding pkg-config
2249  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2250  GBM_LIBS    linker flags for GBM, overriding pkg-config
2251  WAYLAND_EGL_CFLAGS
2252              C compiler flags for WAYLAND_EGL, overriding pkg-config
2253  WAYLAND_EGL_LIBS
2254              linker flags for WAYLAND_EGL, overriding pkg-config
2255  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
2256  GTK_LIBS    linker flags for GTK, overriding pkg-config
2257  GTK_X11_CFLAGS
2258              C compiler flags for GTK_X11, overriding pkg-config
2259  GTK_X11_LIBS
2260              linker flags for GTK_X11, overriding pkg-config
2261  GTK_QUARTZ_CFLAGS
2262              C compiler flags for GTK_QUARTZ, overriding pkg-config
2263  GTK_QUARTZ_LIBS
2264              linker flags for GTK_QUARTZ, overriding pkg-config
2265  GDK_PIXBUF_CFLAGS
2266              C compiler flags for GDK_PIXBUF, overriding pkg-config
2267  GDK_PIXBUF_LIBS
2268              linker flags for GDK_PIXBUF, overriding pkg-config
2269  QT_CFLAGS   C compiler flags for QT, overriding pkg-config
2270  QT_LIBS     linker flags for QT, overriding pkg-config
2271  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
2272  SDL_LIBS    linker flags for SDL, overriding pkg-config
2273  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2274  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2275  X_CFLAGS    C compiler flags for X, overriding pkg-config
2276  X_LIBS      linker flags for X, overriding pkg-config
2277  XVIDEO_CFLAGS
2278              C compiler flags for XVIDEO, overriding pkg-config
2279  XVIDEO_LIBS linker flags for XVIDEO, overriding pkg-config
2280  XSHM_CFLAGS C compiler flags for XSHM, overriding pkg-config
2281  XSHM_LIBS   linker flags for XSHM, overriding pkg-config
2282  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2283  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2284  CDPARANOIA_CFLAGS
2285              C compiler flags for CDPARANOIA, overriding pkg-config
2286  CDPARANOIA_LIBS
2287              linker flags for CDPARANOIA, overriding pkg-config
2288  GRAPHENE_CFLAGS
2289              C compiler flags for GRAPHENE, overriding pkg-config
2290  GRAPHENE_LIBS
2291              linker flags for GRAPHENE, overriding pkg-config
2292  GMODULE_NO_EXPORT_CFLAGS
2293              C compiler flags for GMODULE_NO_EXPORT, overriding pkg-config
2294  GMODULE_NO_EXPORT_LIBS
2295              linker flags for GMODULE_NO_EXPORT, overriding pkg-config
2296  LIBPNG_CFLAGS
2297              C compiler flags for LIBPNG, overriding pkg-config
2298  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
2299  IVORBIS_CFLAGS
2300              C compiler flags for IVORBIS, overriding pkg-config
2301  IVORBIS_LIBS
2302              linker flags for IVORBIS, overriding pkg-config
2303  LIBVISUAL_CFLAGS
2304              C compiler flags for LIBVISUAL, overriding pkg-config
2305  LIBVISUAL_LIBS
2306              linker flags for LIBVISUAL, overriding pkg-config
2307  OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
2308  OGG_LIBS    linker flags for OGG, overriding pkg-config
2309  OPUS_CFLAGS C compiler flags for OPUS, overriding pkg-config
2310  OPUS_LIBS   linker flags for OPUS, overriding pkg-config
2311  PANGO_CFLAGS
2312              C compiler flags for PANGO, overriding pkg-config
2313  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2314  THEORA_CFLAGS
2315              C compiler flags for THEORA, overriding pkg-config
2316  THEORA_LIBS linker flags for THEORA, overriding pkg-config
2317  VORBIS_CFLAGS
2318              C compiler flags for VORBIS, overriding pkg-config
2319  VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
2320  GIO_UNIX_2_0_CFLAGS
2321              C compiler flags for GIO_UNIX_2_0, overriding pkg-config
2322  GIO_UNIX_2_0_LIBS
2323              linker flags for GIO_UNIX_2_0, overriding pkg-config
2324
2325Use these variables to override the choices made by `configure' or to help
2326it to find libraries and programs with nonstandard names/locations.
2327
2328Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
2329_ACEOF
2330ac_status=$?
2331fi
2332
2333if test "$ac_init_help" = "recursive"; then
2334  # If there are subdirs, report their specific --help.
2335  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2336    test -d "$ac_dir" ||
2337      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2338      continue
2339    ac_builddir=.
2340
2341case "$ac_dir" in
2342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2343*)
2344  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2345  # A ".." for each directory in $ac_dir_suffix.
2346  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2347  case $ac_top_builddir_sub in
2348  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2349  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2350  esac ;;
2351esac
2352ac_abs_top_builddir=$ac_pwd
2353ac_abs_builddir=$ac_pwd$ac_dir_suffix
2354# for backward compatibility:
2355ac_top_builddir=$ac_top_build_prefix
2356
2357case $srcdir in
2358  .)  # We are building in place.
2359    ac_srcdir=.
2360    ac_top_srcdir=$ac_top_builddir_sub
2361    ac_abs_top_srcdir=$ac_pwd ;;
2362  [\\/]* | ?:[\\/]* )  # Absolute name.
2363    ac_srcdir=$srcdir$ac_dir_suffix;
2364    ac_top_srcdir=$srcdir
2365    ac_abs_top_srcdir=$srcdir ;;
2366  *) # Relative name.
2367    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2368    ac_top_srcdir=$ac_top_build_prefix$srcdir
2369    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2370esac
2371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2372
2373    cd "$ac_dir" || { ac_status=$?; continue; }
2374    # Check for guested configure.
2375    if test -f "$ac_srcdir/configure.gnu"; then
2376      echo &&
2377      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2378    elif test -f "$ac_srcdir/configure"; then
2379      echo &&
2380      $SHELL "$ac_srcdir/configure" --help=recursive
2381    else
2382      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2383    fi || ac_status=$?
2384    cd "$ac_pwd" || { ac_status=$?; break; }
2385  done
2386fi
2387
2388test -n "$ac_init_help" && exit $ac_status
2389if $ac_init_version; then
2390  cat <<\_ACEOF
2391GStreamer Base Plug-ins configure 1.16.2
2392generated by GNU Autoconf 2.69
2393
2394Copyright (C) 2012 Free Software Foundation, Inc.
2395This configure script is free software; the Free Software Foundation
2396gives unlimited permission to copy, distribute and modify it.
2397_ACEOF
2398  exit
2399fi
2400
2401## ------------------------ ##
2402## Autoconf initialization. ##
2403## ------------------------ ##
2404
2405# ac_fn_c_try_compile LINENO
2406# --------------------------
2407# Try to compile conftest.$ac_ext, and return whether this succeeded.
2408ac_fn_c_try_compile ()
2409{
2410  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411  rm -f conftest.$ac_objext
2412  if { { ac_try="$ac_compile"
2413case "(($ac_try" in
2414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415  *) ac_try_echo=$ac_try;;
2416esac
2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418$as_echo "$ac_try_echo"; } >&5
2419  (eval "$ac_compile") 2>conftest.err
2420  ac_status=$?
2421  if test -s conftest.err; then
2422    grep -v '^ *+' conftest.err >conftest.er1
2423    cat conftest.er1 >&5
2424    mv -f conftest.er1 conftest.err
2425  fi
2426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427  test $ac_status = 0; } && {
2428	 test -z "$ac_c_werror_flag" ||
2429	 test ! -s conftest.err
2430       } && test -s conftest.$ac_objext; then :
2431  ac_retval=0
2432else
2433  $as_echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436	ac_retval=1
2437fi
2438  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439  as_fn_set_status $ac_retval
2440
2441} # ac_fn_c_try_compile
2442
2443# ac_fn_c_try_link LINENO
2444# -----------------------
2445# Try to link conftest.$ac_ext, and return whether this succeeded.
2446ac_fn_c_try_link ()
2447{
2448  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449  rm -f conftest.$ac_objext conftest$ac_exeext
2450  if { { ac_try="$ac_link"
2451case "(($ac_try" in
2452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453  *) ac_try_echo=$ac_try;;
2454esac
2455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2456$as_echo "$ac_try_echo"; } >&5
2457  (eval "$ac_link") 2>conftest.err
2458  ac_status=$?
2459  if test -s conftest.err; then
2460    grep -v '^ *+' conftest.err >conftest.er1
2461    cat conftest.er1 >&5
2462    mv -f conftest.er1 conftest.err
2463  fi
2464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465  test $ac_status = 0; } && {
2466	 test -z "$ac_c_werror_flag" ||
2467	 test ! -s conftest.err
2468       } && test -s conftest$ac_exeext && {
2469	 test "$cross_compiling" = yes ||
2470	 test -x conftest$ac_exeext
2471       }; then :
2472  ac_retval=0
2473else
2474  $as_echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477	ac_retval=1
2478fi
2479  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2480  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2481  # interfere with the next link command; also delete a directory that is
2482  # left behind by Apple's compiler.  We do this before executing the actions.
2483  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2484  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485  as_fn_set_status $ac_retval
2486
2487} # ac_fn_c_try_link
2488
2489# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2490# -------------------------------------------------------
2491# Tests whether HEADER exists and can be compiled using the include files in
2492# INCLUDES, setting the cache variable VAR accordingly.
2493ac_fn_c_check_header_compile ()
2494{
2495  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497$as_echo_n "checking for $2... " >&6; }
2498if eval \${$3+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502/* end confdefs.h.  */
2503$4
2504#include <$2>
2505_ACEOF
2506if ac_fn_c_try_compile "$LINENO"; then :
2507  eval "$3=yes"
2508else
2509  eval "$3=no"
2510fi
2511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512fi
2513eval ac_res=\$$3
2514	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515$as_echo "$ac_res" >&6; }
2516  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517
2518} # ac_fn_c_check_header_compile
2519
2520# ac_fn_c_try_cpp LINENO
2521# ----------------------
2522# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523ac_fn_c_try_cpp ()
2524{
2525  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526  if { { ac_try="$ac_cpp conftest.$ac_ext"
2527case "(($ac_try" in
2528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529  *) ac_try_echo=$ac_try;;
2530esac
2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532$as_echo "$ac_try_echo"; } >&5
2533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534  ac_status=$?
2535  if test -s conftest.err; then
2536    grep -v '^ *+' conftest.err >conftest.er1
2537    cat conftest.er1 >&5
2538    mv -f conftest.er1 conftest.err
2539  fi
2540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541  test $ac_status = 0; } > conftest.i && {
2542	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2543	 test ! -s conftest.err
2544       }; then :
2545  ac_retval=0
2546else
2547  $as_echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550    ac_retval=1
2551fi
2552  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553  as_fn_set_status $ac_retval
2554
2555} # ac_fn_c_try_cpp
2556
2557# ac_fn_c_try_run LINENO
2558# ----------------------
2559# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2560# that executables *can* be run.
2561ac_fn_c_try_run ()
2562{
2563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564  if { { ac_try="$ac_link"
2565case "(($ac_try" in
2566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567  *) ac_try_echo=$ac_try;;
2568esac
2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570$as_echo "$ac_try_echo"; } >&5
2571  (eval "$ac_link") 2>&5
2572  ac_status=$?
2573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2575  { { case "(($ac_try" in
2576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577  *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580$as_echo "$ac_try_echo"; } >&5
2581  (eval "$ac_try") 2>&5
2582  ac_status=$?
2583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584  test $ac_status = 0; }; }; then :
2585  ac_retval=0
2586else
2587  $as_echo "$as_me: program exited with status $ac_status" >&5
2588       $as_echo "$as_me: failed program was:" >&5
2589sed 's/^/| /' conftest.$ac_ext >&5
2590
2591       ac_retval=$ac_status
2592fi
2593  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595  as_fn_set_status $ac_retval
2596
2597} # ac_fn_c_try_run
2598
2599# ac_fn_c_check_func LINENO FUNC VAR
2600# ----------------------------------
2601# Tests whether FUNC exists, setting the cache variable VAR accordingly
2602ac_fn_c_check_func ()
2603{
2604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606$as_echo_n "checking for $2... " >&6; }
2607if eval \${$3+:} false; then :
2608  $as_echo_n "(cached) " >&6
2609else
2610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h.  */
2612/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2614#define $2 innocuous_$2
2615
2616/* System header to define __stub macros and hopefully few prototypes,
2617    which can conflict with char $2 (); below.
2618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619    <limits.h> exists even on freestanding compilers.  */
2620
2621#ifdef __STDC__
2622# include <limits.h>
2623#else
2624# include <assert.h>
2625#endif
2626
2627#undef $2
2628
2629/* Override any GCC internal prototype to avoid an error.
2630   Use char because int might match the return type of a GCC
2631   builtin and then its argument prototype would still apply.  */
2632#ifdef __cplusplus
2633extern "C"
2634#endif
2635char $2 ();
2636/* The GNU C library defines this for functions which it implements
2637    to always fail with ENOSYS.  Some functions are actually named
2638    something starting with __ and the normal name is an alias.  */
2639#if defined __stub_$2 || defined __stub___$2
2640choke me
2641#endif
2642
2643int
2644main ()
2645{
2646return $2 ();
2647  ;
2648  return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_link "$LINENO"; then :
2652  eval "$3=yes"
2653else
2654  eval "$3=no"
2655fi
2656rm -f core conftest.err conftest.$ac_objext \
2657    conftest$ac_exeext conftest.$ac_ext
2658fi
2659eval ac_res=\$$3
2660	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661$as_echo "$ac_res" >&6; }
2662  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663
2664} # ac_fn_c_check_func
2665
2666# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2667# ---------------------------------------------
2668# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2669# accordingly.
2670ac_fn_c_check_decl ()
2671{
2672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673  as_decl_name=`echo $2|sed 's/ *(.*//'`
2674  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2676$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2677if eval \${$3+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h.  */
2682$4
2683int
2684main ()
2685{
2686#ifndef $as_decl_name
2687#ifdef __cplusplus
2688  (void) $as_decl_use;
2689#else
2690  (void) $as_decl_name;
2691#endif
2692#endif
2693
2694  ;
2695  return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699  eval "$3=yes"
2700else
2701  eval "$3=no"
2702fi
2703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704fi
2705eval ac_res=\$$3
2706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2707$as_echo "$ac_res" >&6; }
2708  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709
2710} # ac_fn_c_check_decl
2711
2712# ac_fn_cxx_try_compile LINENO
2713# ----------------------------
2714# Try to compile conftest.$ac_ext, and return whether this succeeded.
2715ac_fn_cxx_try_compile ()
2716{
2717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2718  rm -f conftest.$ac_objext
2719  if { { ac_try="$ac_compile"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726  (eval "$ac_compile") 2>conftest.err
2727  ac_status=$?
2728  if test -s conftest.err; then
2729    grep -v '^ *+' conftest.err >conftest.er1
2730    cat conftest.er1 >&5
2731    mv -f conftest.er1 conftest.err
2732  fi
2733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2734  test $ac_status = 0; } && {
2735	 test -z "$ac_cxx_werror_flag" ||
2736	 test ! -s conftest.err
2737       } && test -s conftest.$ac_objext; then :
2738  ac_retval=0
2739else
2740  $as_echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743	ac_retval=1
2744fi
2745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746  as_fn_set_status $ac_retval
2747
2748} # ac_fn_cxx_try_compile
2749
2750# ac_fn_cxx_try_cpp LINENO
2751# ------------------------
2752# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2753ac_fn_cxx_try_cpp ()
2754{
2755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756  if { { ac_try="$ac_cpp conftest.$ac_ext"
2757case "(($ac_try" in
2758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759  *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762$as_echo "$ac_try_echo"; } >&5
2763  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2764  ac_status=$?
2765  if test -s conftest.err; then
2766    grep -v '^ *+' conftest.err >conftest.er1
2767    cat conftest.er1 >&5
2768    mv -f conftest.er1 conftest.err
2769  fi
2770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771  test $ac_status = 0; } > conftest.i && {
2772	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2773	 test ! -s conftest.err
2774       }; then :
2775  ac_retval=0
2776else
2777  $as_echo "$as_me: failed program was:" >&5
2778sed 's/^/| /' conftest.$ac_ext >&5
2779
2780    ac_retval=1
2781fi
2782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2783  as_fn_set_status $ac_retval
2784
2785} # ac_fn_cxx_try_cpp
2786
2787# ac_fn_cxx_try_link LINENO
2788# -------------------------
2789# Try to link conftest.$ac_ext, and return whether this succeeded.
2790ac_fn_cxx_try_link ()
2791{
2792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2793  rm -f conftest.$ac_objext conftest$ac_exeext
2794  if { { ac_try="$ac_link"
2795case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800$as_echo "$ac_try_echo"; } >&5
2801  (eval "$ac_link") 2>conftest.err
2802  ac_status=$?
2803  if test -s conftest.err; then
2804    grep -v '^ *+' conftest.err >conftest.er1
2805    cat conftest.er1 >&5
2806    mv -f conftest.er1 conftest.err
2807  fi
2808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809  test $ac_status = 0; } && {
2810	 test -z "$ac_cxx_werror_flag" ||
2811	 test ! -s conftest.err
2812       } && test -s conftest$ac_exeext && {
2813	 test "$cross_compiling" = yes ||
2814	 test -x conftest$ac_exeext
2815       }; then :
2816  ac_retval=0
2817else
2818  $as_echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821	ac_retval=1
2822fi
2823  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2824  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2825  # interfere with the next link command; also delete a directory that is
2826  # left behind by Apple's compiler.  We do this before executing the actions.
2827  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2828  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2829  as_fn_set_status $ac_retval
2830
2831} # ac_fn_cxx_try_link
2832
2833# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2834# -------------------------------------------------------
2835# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2836# the include files in INCLUDES and setting the cache variable VAR
2837# accordingly.
2838ac_fn_c_check_header_mongrel ()
2839{
2840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841  if eval \${$3+:} false; then :
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2843$as_echo_n "checking for $2... " >&6; }
2844if eval \${$3+:} false; then :
2845  $as_echo_n "(cached) " >&6
2846fi
2847eval ac_res=\$$3
2848	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2849$as_echo "$ac_res" >&6; }
2850else
2851  # Is the header compilable?
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2853$as_echo_n "checking $2 usability... " >&6; }
2854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855/* end confdefs.h.  */
2856$4
2857#include <$2>
2858_ACEOF
2859if ac_fn_c_try_compile "$LINENO"; then :
2860  ac_header_compiler=yes
2861else
2862  ac_header_compiler=no
2863fi
2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2866$as_echo "$ac_header_compiler" >&6; }
2867
2868# Is the header present?
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2870$as_echo_n "checking $2 presence... " >&6; }
2871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872/* end confdefs.h.  */
2873#include <$2>
2874_ACEOF
2875if ac_fn_c_try_cpp "$LINENO"; then :
2876  ac_header_preproc=yes
2877else
2878  ac_header_preproc=no
2879fi
2880rm -f conftest.err conftest.i conftest.$ac_ext
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2882$as_echo "$ac_header_preproc" >&6; }
2883
2884# So?  What about this header?
2885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2886  yes:no: )
2887    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2888$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2891    ;;
2892  no:yes:* )
2893    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2894$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2895    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2896$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2897    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2898$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2899    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2900$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2903( $as_echo "## ------------------------------------------------------------------------ ##
2904## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ##
2905## ------------------------------------------------------------------------ ##"
2906     ) | sed "s/^/$as_me: WARNING:     /" >&2
2907    ;;
2908esac
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2910$as_echo_n "checking for $2... " >&6; }
2911if eval \${$3+:} false; then :
2912  $as_echo_n "(cached) " >&6
2913else
2914  eval "$3=\$ac_header_compiler"
2915fi
2916eval ac_res=\$$3
2917	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2918$as_echo "$ac_res" >&6; }
2919fi
2920  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2921
2922} # ac_fn_c_check_header_mongrel
2923
2924# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2925# -------------------------------------------
2926# Tests whether TYPE exists after having included INCLUDES, setting cache
2927# variable VAR accordingly.
2928ac_fn_c_check_type ()
2929{
2930  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2932$as_echo_n "checking for $2... " >&6; }
2933if eval \${$3+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  eval "$3=no"
2937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939$4
2940int
2941main ()
2942{
2943if (sizeof ($2))
2944	 return 0;
2945  ;
2946  return 0;
2947}
2948_ACEOF
2949if ac_fn_c_try_compile "$LINENO"; then :
2950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h.  */
2952$4
2953int
2954main ()
2955{
2956if (sizeof (($2)))
2957	    return 0;
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962if ac_fn_c_try_compile "$LINENO"; then :
2963
2964else
2965  eval "$3=yes"
2966fi
2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970fi
2971eval ac_res=\$$3
2972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2973$as_echo "$ac_res" >&6; }
2974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2975
2976} # ac_fn_c_check_type
2977
2978# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2979# --------------------------------------------
2980# Tries to find the compile-time value of EXPR in a program that includes
2981# INCLUDES, setting VAR accordingly. Returns whether the value could be
2982# computed
2983ac_fn_c_compute_int ()
2984{
2985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2986  if test "$cross_compiling" = yes; then
2987    # Depending upon the size, compute the lo and hi bounds.
2988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989/* end confdefs.h.  */
2990$4
2991int
2992main ()
2993{
2994static int test_array [1 - 2 * !(($2) >= 0)];
2995test_array [0] = 0;
2996return test_array [0];
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002if ac_fn_c_try_compile "$LINENO"; then :
3003  ac_lo=0 ac_mid=0
3004  while :; do
3005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006/* end confdefs.h.  */
3007$4
3008int
3009main ()
3010{
3011static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3012test_array [0] = 0;
3013return test_array [0];
3014
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019if ac_fn_c_try_compile "$LINENO"; then :
3020  ac_hi=$ac_mid; break
3021else
3022  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3023			if test $ac_lo -le $ac_mid; then
3024			  ac_lo= ac_hi=
3025			  break
3026			fi
3027			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3028fi
3029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030  done
3031else
3032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033/* end confdefs.h.  */
3034$4
3035int
3036main ()
3037{
3038static int test_array [1 - 2 * !(($2) < 0)];
3039test_array [0] = 0;
3040return test_array [0];
3041
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046if ac_fn_c_try_compile "$LINENO"; then :
3047  ac_hi=-1 ac_mid=-1
3048  while :; do
3049    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050/* end confdefs.h.  */
3051$4
3052int
3053main ()
3054{
3055static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3056test_array [0] = 0;
3057return test_array [0];
3058
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063if ac_fn_c_try_compile "$LINENO"; then :
3064  ac_lo=$ac_mid; break
3065else
3066  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3067			if test $ac_mid -le $ac_hi; then
3068			  ac_lo= ac_hi=
3069			  break
3070			fi
3071			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3072fi
3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074  done
3075else
3076  ac_lo= ac_hi=
3077fi
3078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079fi
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081# Binary search between lo and hi bounds.
3082while test "x$ac_lo" != "x$ac_hi"; do
3083  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086$4
3087int
3088main ()
3089{
3090static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3091test_array [0] = 0;
3092return test_array [0];
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098if ac_fn_c_try_compile "$LINENO"; then :
3099  ac_hi=$ac_mid
3100else
3101  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3102fi
3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104done
3105case $ac_lo in #((
3106?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3107'') ac_retval=1 ;;
3108esac
3109  else
3110    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h.  */
3112$4
3113static long int longval () { return $2; }
3114static unsigned long int ulongval () { return $2; }
3115#include <stdio.h>
3116#include <stdlib.h>
3117int
3118main ()
3119{
3120
3121  FILE *f = fopen ("conftest.val", "w");
3122  if (! f)
3123    return 1;
3124  if (($2) < 0)
3125    {
3126      long int i = longval ();
3127      if (i != ($2))
3128	return 1;
3129      fprintf (f, "%ld", i);
3130    }
3131  else
3132    {
3133      unsigned long int i = ulongval ();
3134      if (i != ($2))
3135	return 1;
3136      fprintf (f, "%lu", i);
3137    }
3138  /* Do not output a trailing newline, as this causes \r\n confusion
3139     on some platforms.  */
3140  return ferror (f) || fclose (f) != 0;
3141
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146if ac_fn_c_try_run "$LINENO"; then :
3147  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3148else
3149  ac_retval=1
3150fi
3151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3152  conftest.$ac_objext conftest.beam conftest.$ac_ext
3153rm -f conftest.val
3154
3155  fi
3156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3157  as_fn_set_status $ac_retval
3158
3159} # ac_fn_c_compute_int
3160
3161# ac_fn_objc_try_compile LINENO
3162# -----------------------------
3163# Try to compile conftest.$ac_ext, and return whether this succeeded.
3164ac_fn_objc_try_compile ()
3165{
3166  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3167  rm -f conftest.$ac_objext
3168  if { { ac_try="$ac_compile"
3169case "(($ac_try" in
3170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171  *) ac_try_echo=$ac_try;;
3172esac
3173eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174$as_echo "$ac_try_echo"; } >&5
3175  (eval "$ac_compile") 2>conftest.err
3176  ac_status=$?
3177  if test -s conftest.err; then
3178    grep -v '^ *+' conftest.err >conftest.er1
3179    cat conftest.er1 >&5
3180    mv -f conftest.er1 conftest.err
3181  fi
3182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183  test $ac_status = 0; } && {
3184	 test -z "$ac_objc_werror_flag" ||
3185	 test ! -s conftest.err
3186       } && test -s conftest.$ac_objext; then :
3187  ac_retval=0
3188else
3189  $as_echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192	ac_retval=1
3193fi
3194  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3195  as_fn_set_status $ac_retval
3196
3197} # ac_fn_objc_try_compile
3198
3199# ac_fn_c_check_header_preproc LINENO HEADER VAR
3200# ----------------------------------------------
3201# Tests whether HEADER is present, setting the cache variable VAR accordingly.
3202ac_fn_c_check_header_preproc ()
3203{
3204  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3206$as_echo_n "checking for $2... " >&6; }
3207if eval \${$3+:} false; then :
3208  $as_echo_n "(cached) " >&6
3209else
3210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211/* end confdefs.h.  */
3212#include <$2>
3213_ACEOF
3214if ac_fn_c_try_cpp "$LINENO"; then :
3215  eval "$3=yes"
3216else
3217  eval "$3=no"
3218fi
3219rm -f conftest.err conftest.i conftest.$ac_ext
3220fi
3221eval ac_res=\$$3
3222	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3223$as_echo "$ac_res" >&6; }
3224  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3225
3226} # ac_fn_c_check_header_preproc
3227cat >config.log <<_ACEOF
3228This file contains any messages produced by compilers while
3229running configure, to aid debugging if configure makes a mistake.
3230
3231It was created by GStreamer Base Plug-ins $as_me 1.16.2, which was
3232generated by GNU Autoconf 2.69.  Invocation command line was
3233
3234  $ $0 $@
3235
3236_ACEOF
3237exec 5>>config.log
3238{
3239cat <<_ASUNAME
3240## --------- ##
3241## Platform. ##
3242## --------- ##
3243
3244hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3245uname -m = `(uname -m) 2>/dev/null || echo unknown`
3246uname -r = `(uname -r) 2>/dev/null || echo unknown`
3247uname -s = `(uname -s) 2>/dev/null || echo unknown`
3248uname -v = `(uname -v) 2>/dev/null || echo unknown`
3249
3250/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3251/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3252
3253/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3254/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3255/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3256/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3257/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3258/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3259/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3260
3261_ASUNAME
3262
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268    $as_echo "PATH: $as_dir"
3269  done
3270IFS=$as_save_IFS
3271
3272} >&5
3273
3274cat >&5 <<_ACEOF
3275
3276
3277## ----------- ##
3278## Core tests. ##
3279## ----------- ##
3280
3281_ACEOF
3282
3283
3284# Keep a trace of the command line.
3285# Strip out --no-create and --no-recursion so they do not pile up.
3286# Strip out --silent because we don't want to record it for future runs.
3287# Also quote any args containing shell meta-characters.
3288# Make two passes to allow for proper duplicate-argument suppression.
3289ac_configure_args=
3290ac_configure_args0=
3291ac_configure_args1=
3292ac_must_keep_next=false
3293for ac_pass in 1 2
3294do
3295  for ac_arg
3296  do
3297    case $ac_arg in
3298    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3299    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3300    | -silent | --silent | --silen | --sile | --sil)
3301      continue ;;
3302    *\'*)
3303      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3304    esac
3305    case $ac_pass in
3306    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3307    2)
3308      as_fn_append ac_configure_args1 " '$ac_arg'"
3309      if test $ac_must_keep_next = true; then
3310	ac_must_keep_next=false # Got value, back to normal.
3311      else
3312	case $ac_arg in
3313	  *=* | --config-cache | -C | -disable-* | --disable-* \
3314	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3315	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3316	  | -with-* | --with-* | -without-* | --without-* | --x)
3317	    case "$ac_configure_args0 " in
3318	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3319	    esac
3320	    ;;
3321	  -* ) ac_must_keep_next=true ;;
3322	esac
3323      fi
3324      as_fn_append ac_configure_args " '$ac_arg'"
3325      ;;
3326    esac
3327  done
3328done
3329{ ac_configure_args0=; unset ac_configure_args0;}
3330{ ac_configure_args1=; unset ac_configure_args1;}
3331
3332# When interrupted or exit'd, cleanup temporary files, and complete
3333# config.log.  We remove comments because anyway the quotes in there
3334# would cause problems or look ugly.
3335# WARNING: Use '\'' to represent an apostrophe within the trap.
3336# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3337trap 'exit_status=$?
3338  # Save into config.log some information that might help in debugging.
3339  {
3340    echo
3341
3342    $as_echo "## ---------------- ##
3343## Cache variables. ##
3344## ---------------- ##"
3345    echo
3346    # The following way of writing the cache mishandles newlines in values,
3347(
3348  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3349    eval ac_val=\$$ac_var
3350    case $ac_val in #(
3351    *${as_nl}*)
3352      case $ac_var in #(
3353      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3354$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3355      esac
3356      case $ac_var in #(
3357      _ | IFS | as_nl) ;; #(
3358      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3359      *) { eval $ac_var=; unset $ac_var;} ;;
3360      esac ;;
3361    esac
3362  done
3363  (set) 2>&1 |
3364    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3365    *${as_nl}ac_space=\ *)
3366      sed -n \
3367	"s/'\''/'\''\\\\'\'''\''/g;
3368	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3369      ;; #(
3370    *)
3371      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3372      ;;
3373    esac |
3374    sort
3375)
3376    echo
3377
3378    $as_echo "## ----------------- ##
3379## Output variables. ##
3380## ----------------- ##"
3381    echo
3382    for ac_var in $ac_subst_vars
3383    do
3384      eval ac_val=\$$ac_var
3385      case $ac_val in
3386      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3387      esac
3388      $as_echo "$ac_var='\''$ac_val'\''"
3389    done | sort
3390    echo
3391
3392    if test -n "$ac_subst_files"; then
3393      $as_echo "## ------------------- ##
3394## File substitutions. ##
3395## ------------------- ##"
3396      echo
3397      for ac_var in $ac_subst_files
3398      do
3399	eval ac_val=\$$ac_var
3400	case $ac_val in
3401	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3402	esac
3403	$as_echo "$ac_var='\''$ac_val'\''"
3404      done | sort
3405      echo
3406    fi
3407
3408    if test -s confdefs.h; then
3409      $as_echo "## ----------- ##
3410## confdefs.h. ##
3411## ----------- ##"
3412      echo
3413      cat confdefs.h
3414      echo
3415    fi
3416    test "$ac_signal" != 0 &&
3417      $as_echo "$as_me: caught signal $ac_signal"
3418    $as_echo "$as_me: exit $exit_status"
3419  } >&5
3420  rm -f core *.core core.conftest.* &&
3421    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3422    exit $exit_status
3423' 0
3424for ac_signal in 1 2 13 15; do
3425  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3426done
3427ac_signal=0
3428
3429# confdefs.h avoids OS command line length limits that DEFS can exceed.
3430rm -f -r conftest* confdefs.h
3431
3432$as_echo "/* confdefs.h */" > confdefs.h
3433
3434# Predefined preprocessor variables.
3435
3436cat >>confdefs.h <<_ACEOF
3437#define PACKAGE_NAME "$PACKAGE_NAME"
3438_ACEOF
3439
3440cat >>confdefs.h <<_ACEOF
3441#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3442_ACEOF
3443
3444cat >>confdefs.h <<_ACEOF
3445#define PACKAGE_VERSION "$PACKAGE_VERSION"
3446_ACEOF
3447
3448cat >>confdefs.h <<_ACEOF
3449#define PACKAGE_STRING "$PACKAGE_STRING"
3450_ACEOF
3451
3452cat >>confdefs.h <<_ACEOF
3453#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3454_ACEOF
3455
3456cat >>confdefs.h <<_ACEOF
3457#define PACKAGE_URL "$PACKAGE_URL"
3458_ACEOF
3459
3460
3461# Let the site file select an alternate cache file if it wants to.
3462# Prefer an explicitly selected file to automatically selected ones.
3463ac_site_file1=NONE
3464ac_site_file2=NONE
3465if test -n "$CONFIG_SITE"; then
3466  # We do not want a PATH search for config.site.
3467  case $CONFIG_SITE in #((
3468    -*)  ac_site_file1=./$CONFIG_SITE;;
3469    */*) ac_site_file1=$CONFIG_SITE;;
3470    *)   ac_site_file1=./$CONFIG_SITE;;
3471  esac
3472elif test "x$prefix" != xNONE; then
3473  ac_site_file1=$prefix/share/config.site
3474  ac_site_file2=$prefix/etc/config.site
3475else
3476  ac_site_file1=$ac_default_prefix/share/config.site
3477  ac_site_file2=$ac_default_prefix/etc/config.site
3478fi
3479for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3480do
3481  test "x$ac_site_file" = xNONE && continue
3482  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3483    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3484$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3485    sed 's/^/| /' "$ac_site_file" >&5
3486    . "$ac_site_file" \
3487      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489as_fn_error $? "failed to load site script $ac_site_file
3490See \`config.log' for more details" "$LINENO" 5; }
3491  fi
3492done
3493
3494if test -r "$cache_file"; then
3495  # Some versions of bash will fail to source /dev/null (special files
3496  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3497  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3498    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3499$as_echo "$as_me: loading cache $cache_file" >&6;}
3500    case $cache_file in
3501      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3502      *)                      . "./$cache_file";;
3503    esac
3504  fi
3505else
3506  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3507$as_echo "$as_me: creating cache $cache_file" >&6;}
3508  >$cache_file
3509fi
3510
3511gt_needs="$gt_needs "
3512# Check that the precious variables saved in the cache have kept the same
3513# value.
3514ac_cache_corrupted=false
3515for ac_var in $ac_precious_vars; do
3516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3517  eval ac_new_set=\$ac_env_${ac_var}_set
3518  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3519  eval ac_new_val=\$ac_env_${ac_var}_value
3520  case $ac_old_set,$ac_new_set in
3521    set,)
3522      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3523$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3524      ac_cache_corrupted=: ;;
3525    ,set)
3526      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3527$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3528      ac_cache_corrupted=: ;;
3529    ,);;
3530    *)
3531      if test "x$ac_old_val" != "x$ac_new_val"; then
3532	# differences in whitespace do not lead to failure.
3533	ac_old_val_w=`echo x $ac_old_val`
3534	ac_new_val_w=`echo x $ac_new_val`
3535	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3536	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3537$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3538	  ac_cache_corrupted=:
3539	else
3540	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3541$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3542	  eval $ac_var=\$ac_old_val
3543	fi
3544	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3545$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3546	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3547$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3548      fi;;
3549  esac
3550  # Pass precious variables to config.status.
3551  if test "$ac_new_set" = set; then
3552    case $ac_new_val in
3553    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3554    *) ac_arg=$ac_var=$ac_new_val ;;
3555    esac
3556    case " $ac_configure_args " in
3557      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3558      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3559    esac
3560  fi
3561done
3562if $ac_cache_corrupted; then
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3566$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3567  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3568fi
3569## -------------------- ##
3570## Main body of script. ##
3571## -------------------- ##
3572
3573ac_ext=c
3574ac_cpp='$CPP $CPPFLAGS'
3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
3579
3580
3581ac_aux_dir=
3582for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3583  if test -f "$ac_dir/install-sh"; then
3584    ac_aux_dir=$ac_dir
3585    ac_install_sh="$ac_aux_dir/install-sh -c"
3586    break
3587  elif test -f "$ac_dir/install.sh"; then
3588    ac_aux_dir=$ac_dir
3589    ac_install_sh="$ac_aux_dir/install.sh -c"
3590    break
3591  elif test -f "$ac_dir/shtool"; then
3592    ac_aux_dir=$ac_dir
3593    ac_install_sh="$ac_aux_dir/shtool install -c"
3594    break
3595  fi
3596done
3597if test -z "$ac_aux_dir"; then
3598  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3599fi
3600
3601# These three variables are undocumented and unsupported,
3602# and are intended to be withdrawn in a future Autoconf release.
3603# They can cause serious problems if a builder's source tree is in a directory
3604# whose full name contains unusual characters.
3605ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3606ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3607ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3608
3609
3610# Make sure we can run config.sub.
3611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3612  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3613
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3615$as_echo_n "checking build system type... " >&6; }
3616if ${ac_cv_build+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  ac_build_alias=$build_alias
3620test "x$ac_build_alias" = x &&
3621  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3622test "x$ac_build_alias" = x &&
3623  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3625  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3626
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3629$as_echo "$ac_cv_build" >&6; }
3630case $ac_cv_build in
3631*-*-*) ;;
3632*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3633esac
3634build=$ac_cv_build
3635ac_save_IFS=$IFS; IFS='-'
3636set x $ac_cv_build
3637shift
3638build_cpu=$1
3639build_vendor=$2
3640shift; shift
3641# Remember, the first character of IFS is used to create $*,
3642# except with old shells:
3643build_os=$*
3644IFS=$ac_save_IFS
3645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3646
3647
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3649$as_echo_n "checking host system type... " >&6; }
3650if ${ac_cv_host+:} false; then :
3651  $as_echo_n "(cached) " >&6
3652else
3653  if test "x$host_alias" = x; then
3654  ac_cv_host=$ac_cv_build
3655else
3656  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3657    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3658fi
3659
3660fi
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3662$as_echo "$ac_cv_host" >&6; }
3663case $ac_cv_host in
3664*-*-*) ;;
3665*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3666esac
3667host=$ac_cv_host
3668ac_save_IFS=$IFS; IFS='-'
3669set x $ac_cv_host
3670shift
3671host_cpu=$1
3672host_vendor=$2
3673shift; shift
3674# Remember, the first character of IFS is used to create $*,
3675# except with old shells:
3676host_os=$*
3677IFS=$ac_save_IFS
3678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3679
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3682$as_echo_n "checking target system type... " >&6; }
3683if ${ac_cv_target+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  if test "x$target_alias" = x; then
3687  ac_cv_target=$ac_cv_host
3688else
3689  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3690    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3691fi
3692
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3695$as_echo "$ac_cv_target" >&6; }
3696case $ac_cv_target in
3697*-*-*) ;;
3698*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3699esac
3700target=$ac_cv_target
3701ac_save_IFS=$IFS; IFS='-'
3702set x $ac_cv_target
3703shift
3704target_cpu=$1
3705target_vendor=$2
3706shift; shift
3707# Remember, the first character of IFS is used to create $*,
3708# except with old shells:
3709target_os=$*
3710IFS=$ac_save_IFS
3711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3712
3713
3714# The aliases save the names the user supplied, while $host etc.
3715# will get canonicalized.
3716test -n "$target_alias" &&
3717  test "$program_prefix$program_suffix$program_transform_name" = \
3718    NONENONEs,x,x, &&
3719  program_prefix=${target_alias}-
3720
3721
3722
3723
3724am__api_version='1.16'
3725
3726# Find a good install program.  We prefer a C program (faster),
3727# so one script is as good as another.  But avoid the broken or
3728# incompatible versions:
3729# SysV /etc/install, /usr/sbin/install
3730# SunOS /usr/etc/install
3731# IRIX /sbin/install
3732# AIX /bin/install
3733# AmigaOS /C/install, which installs bootblocks on floppy discs
3734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3735# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3737# OS/2's system install, which has a completely different semantic
3738# ./install, which can be erroneously created by make from ./install.sh.
3739# Reject install programs that cannot install multiple files.
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3741$as_echo_n "checking for a BSD-compatible install... " >&6; }
3742if test -z "$INSTALL"; then
3743if ${ac_cv_path_install+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749  IFS=$as_save_IFS
3750  test -z "$as_dir" && as_dir=.
3751    # Account for people who put trailing slashes in PATH elements.
3752case $as_dir/ in #((
3753  ./ | .// | /[cC]/* | \
3754  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3755  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3756  /usr/ucb/* ) ;;
3757  *)
3758    # OSF1 and SCO ODT 3.0 have their own names for install.
3759    # Don't use installbsd from OSF since it installs stuff as root
3760    # by default.
3761    for ac_prog in ginstall scoinst install; do
3762      for ac_exec_ext in '' $ac_executable_extensions; do
3763	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3764	  if test $ac_prog = install &&
3765	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766	    # AIX install.  It has an incompatible calling convention.
3767	    :
3768	  elif test $ac_prog = install &&
3769	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3770	    # program-specific install script used by HP pwplus--don't use.
3771	    :
3772	  else
3773	    rm -rf conftest.one conftest.two conftest.dir
3774	    echo one > conftest.one
3775	    echo two > conftest.two
3776	    mkdir conftest.dir
3777	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3778	      test -s conftest.one && test -s conftest.two &&
3779	      test -s conftest.dir/conftest.one &&
3780	      test -s conftest.dir/conftest.two
3781	    then
3782	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3783	      break 3
3784	    fi
3785	  fi
3786	fi
3787      done
3788    done
3789    ;;
3790esac
3791
3792  done
3793IFS=$as_save_IFS
3794
3795rm -rf conftest.one conftest.two conftest.dir
3796
3797fi
3798  if test "${ac_cv_path_install+set}" = set; then
3799    INSTALL=$ac_cv_path_install
3800  else
3801    # As a last resort, use the slow shell script.  Don't cache a
3802    # value for INSTALL within a source directory, because that will
3803    # break other packages using the cache if that directory is
3804    # removed, or if the value is a relative name.
3805    INSTALL=$ac_install_sh
3806  fi
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3809$as_echo "$INSTALL" >&6; }
3810
3811# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3812# It thinks the first close brace ends the variable substitution.
3813test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3814
3815test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3816
3817test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3818
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3820$as_echo_n "checking whether build environment is sane... " >&6; }
3821# Reject unsafe characters in $srcdir or the absolute working directory
3822# name.  Accept space and tab only in the latter.
3823am_lf='
3824'
3825case `pwd` in
3826  *[\\\"\#\$\&\'\`$am_lf]*)
3827    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3828esac
3829case $srcdir in
3830  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3831    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3832esac
3833
3834# Do 'set' in a subshell so we don't clobber the current shell's
3835# arguments.  Must try -L first in case configure is actually a
3836# symlink; some systems play weird games with the mod time of symlinks
3837# (eg FreeBSD returns the mod time of the symlink's containing
3838# directory).
3839if (
3840   am_has_slept=no
3841   for am_try in 1 2; do
3842     echo "timestamp, slept: $am_has_slept" > conftest.file
3843     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3844     if test "$*" = "X"; then
3845	# -L didn't work.
3846	set X `ls -t "$srcdir/configure" conftest.file`
3847     fi
3848     if test "$*" != "X $srcdir/configure conftest.file" \
3849	&& test "$*" != "X conftest.file $srcdir/configure"; then
3850
3851	# If neither matched, then we have a broken ls.  This can happen
3852	# if, for instance, CONFIG_SHELL is bash and it inherits a
3853	# broken ls alias from the environment.  This has actually
3854	# happened.  Such a system could not be considered "sane".
3855	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3856  alias in your environment" "$LINENO" 5
3857     fi
3858     if test "$2" = conftest.file || test $am_try -eq 2; then
3859       break
3860     fi
3861     # Just in case.
3862     sleep 1
3863     am_has_slept=yes
3864   done
3865   test "$2" = conftest.file
3866   )
3867then
3868   # Ok.
3869   :
3870else
3871   as_fn_error $? "newly created file is older than distributed files!
3872Check your system clock" "$LINENO" 5
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875$as_echo "yes" >&6; }
3876# If we didn't sleep, we still need to ensure time stamps of config.status and
3877# generated files are strictly newer.
3878am_sleep_pid=
3879if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3880  ( sleep 1 ) &
3881  am_sleep_pid=$!
3882fi
3883
3884rm -f conftest.file
3885
3886test "$program_prefix" != NONE &&
3887  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3888# Use a double $ so make ignores it.
3889test "$program_suffix" != NONE &&
3890  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3891# Double any \ or $.
3892# By default was `s,x,x', remove it if useless.
3893ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3894program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3895
3896# Expand $ac_aux_dir to an absolute path.
3897am_aux_dir=`cd "$ac_aux_dir" && pwd`
3898
3899if test x"${MISSING+set}" != xset; then
3900  case $am_aux_dir in
3901  *\ * | *\	*)
3902    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3903  *)
3904    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3905  esac
3906fi
3907# Use eval to expand $SHELL
3908if eval "$MISSING --is-lightweight"; then
3909  am_missing_run="$MISSING "
3910else
3911  am_missing_run=
3912  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3913$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3914fi
3915
3916if test x"${install_sh+set}" != xset; then
3917  case $am_aux_dir in
3918  *\ * | *\	*)
3919    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3920  *)
3921    install_sh="\${SHELL} $am_aux_dir/install-sh"
3922  esac
3923fi
3924
3925# Installed binaries are usually stripped using 'strip' when the user
3926# run "make install-strip".  However 'strip' might not be the right
3927# tool to use in cross-compilation environments, therefore Automake
3928# will honor the 'STRIP' environment variable to overrule this program.
3929if test "$cross_compiling" != no; then
3930  if test -n "$ac_tool_prefix"; then
3931  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3932set dummy ${ac_tool_prefix}strip; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if ${ac_cv_prog_STRIP+:} false; then :
3936  $as_echo_n "(cached) " >&6
3937else
3938  if test -n "$STRIP"; then
3939  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944  IFS=$as_save_IFS
3945  test -z "$as_dir" && as_dir=.
3946    for ac_exec_ext in '' $ac_executable_extensions; do
3947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950    break 2
3951  fi
3952done
3953  done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958STRIP=$ac_cv_prog_STRIP
3959if test -n "$STRIP"; then
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3961$as_echo "$STRIP" >&6; }
3962else
3963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968fi
3969if test -z "$ac_cv_prog_STRIP"; then
3970  ac_ct_STRIP=$STRIP
3971  # Extract the first word of "strip", so it can be a program name with args.
3972set dummy strip; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
3975if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3976  $as_echo_n "(cached) " >&6
3977else
3978  if test -n "$ac_ct_STRIP"; then
3979  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984  IFS=$as_save_IFS
3985  test -z "$as_dir" && as_dir=.
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988    ac_cv_prog_ac_ct_STRIP="strip"
3989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993  done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3999if test -n "$ac_ct_STRIP"; then
4000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4001$as_echo "$ac_ct_STRIP" >&6; }
4002else
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007  if test "x$ac_ct_STRIP" = x; then
4008    STRIP=":"
4009  else
4010    case $cross_compiling:$ac_tool_warned in
4011yes:)
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016    STRIP=$ac_ct_STRIP
4017  fi
4018else
4019  STRIP="$ac_cv_prog_STRIP"
4020fi
4021
4022fi
4023INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4026$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4027if test -z "$MKDIR_P"; then
4028  if ${ac_cv_path_mkdir+:} false; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036    for ac_prog in mkdir gmkdir; do
4037	 for ac_exec_ext in '' $ac_executable_extensions; do
4038	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4039	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4040	     'mkdir (GNU coreutils) '* | \
4041	     'mkdir (coreutils) '* | \
4042	     'mkdir (fileutils) '4.1*)
4043	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4044	       break 3;;
4045	   esac
4046	 done
4047       done
4048  done
4049IFS=$as_save_IFS
4050
4051fi
4052
4053  test -d ./--version && rmdir ./--version
4054  if test "${ac_cv_path_mkdir+set}" = set; then
4055    MKDIR_P="$ac_cv_path_mkdir -p"
4056  else
4057    # As a last resort, use the slow shell script.  Don't cache a
4058    # value for MKDIR_P within a source directory, because that will
4059    # break other packages using the cache if that directory is
4060    # removed, or if the value is a relative name.
4061    MKDIR_P="$ac_install_sh -d"
4062  fi
4063fi
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4065$as_echo "$MKDIR_P" >&6; }
4066
4067for ac_prog in gawk mawk nawk awk
4068do
4069  # Extract the first word of "$ac_prog", so it can be a program name with args.
4070set dummy $ac_prog; ac_word=$2
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
4073if ${ac_cv_prog_AWK+:} false; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  if test -n "$AWK"; then
4077  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082  IFS=$as_save_IFS
4083  test -z "$as_dir" && as_dir=.
4084    for ac_exec_ext in '' $ac_executable_extensions; do
4085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086    ac_cv_prog_AWK="$ac_prog"
4087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088    break 2
4089  fi
4090done
4091  done
4092IFS=$as_save_IFS
4093
4094fi
4095fi
4096AWK=$ac_cv_prog_AWK
4097if test -n "$AWK"; then
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4099$as_echo "$AWK" >&6; }
4100else
4101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
4103fi
4104
4105
4106  test -n "$AWK" && break
4107done
4108
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4111set x ${MAKE-make}
4112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  cat >conftest.make <<\_ACEOF
4117SHELL = /bin/sh
4118all:
4119	@echo '@@@%%%=$(MAKE)=@@@%%%'
4120_ACEOF
4121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4122case `${MAKE-make} -f conftest.make 2>/dev/null` in
4123  *@@@%%%=?*=@@@%%%*)
4124    eval ac_cv_prog_make_${ac_make}_set=yes;;
4125  *)
4126    eval ac_cv_prog_make_${ac_make}_set=no;;
4127esac
4128rm -f conftest.make
4129fi
4130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132$as_echo "yes" >&6; }
4133  SET_MAKE=
4134else
4135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
4137  SET_MAKE="MAKE=${MAKE-make}"
4138fi
4139
4140rm -rf .tst 2>/dev/null
4141mkdir .tst 2>/dev/null
4142if test -d .tst; then
4143  am__leading_dot=.
4144else
4145  am__leading_dot=_
4146fi
4147rmdir .tst 2>/dev/null
4148
4149# Check whether --enable-silent-rules was given.
4150if test "${enable_silent_rules+set}" = set; then :
4151  enableval=$enable_silent_rules;
4152fi
4153
4154case $enable_silent_rules in # (((
4155  yes) AM_DEFAULT_VERBOSITY=0;;
4156   no) AM_DEFAULT_VERBOSITY=1;;
4157    *) AM_DEFAULT_VERBOSITY=1;;
4158esac
4159am_make=${MAKE-make}
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4161$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4162if ${am_cv_make_support_nested_variables+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  if $as_echo 'TRUE=$(BAR$(V))
4166BAR0=false
4167BAR1=true
4168V=1
4169am__doit:
4170	@$(TRUE)
4171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4172  am_cv_make_support_nested_variables=yes
4173else
4174  am_cv_make_support_nested_variables=no
4175fi
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4178$as_echo "$am_cv_make_support_nested_variables" >&6; }
4179if test $am_cv_make_support_nested_variables = yes; then
4180    AM_V='$(V)'
4181  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4182else
4183  AM_V=$AM_DEFAULT_VERBOSITY
4184  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4185fi
4186AM_BACKSLASH='\'
4187
4188if test "`cd $srcdir && pwd`" != "`pwd`"; then
4189  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4190  # is not polluted with repeated "-I."
4191  am__isrc=' -I$(srcdir)'
4192  # test to see if srcdir already configured
4193  if test -f $srcdir/config.status; then
4194    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4195  fi
4196fi
4197
4198# test whether we have cygpath
4199if test -z "$CYGPATH_W"; then
4200  if (cygpath --version) >/dev/null 2>/dev/null; then
4201    CYGPATH_W='cygpath -w'
4202  else
4203    CYGPATH_W=echo
4204  fi
4205fi
4206
4207
4208# Define the identity of the package.
4209 PACKAGE='gst-plugins-base'
4210 VERSION='1.16.2'
4211
4212
4213cat >>confdefs.h <<_ACEOF
4214#define PACKAGE "$PACKAGE"
4215_ACEOF
4216
4217
4218cat >>confdefs.h <<_ACEOF
4219#define VERSION "$VERSION"
4220_ACEOF
4221
4222# Some tools Automake needs.
4223
4224ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4225
4226
4227AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4228
4229
4230AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4231
4232
4233AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4234
4235
4236MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4237
4238# For better backward compatibility.  To be removed once Automake 1.9.x
4239# dies out for good.  For more background, see:
4240# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4241# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4242mkdir_p='$(MKDIR_P)'
4243
4244# We need awk for the "check" target (and possibly the TAP driver).  The
4245# system "awk" is bad on some platforms.
4246# Always define AMTAR for backward compatibility.  Yes, it's still used
4247# in the wild :-(  We should find a proper way to deprecate it ...
4248AMTAR='$${TAR-tar}'
4249
4250
4251# We'll loop over all known methods to create a tar archive until one works.
4252_am_tools='gnutar plaintar pax cpio none'
4253
4254# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4255      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4256      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4257      # and bug#13588).
4258      am_max_uid=2097151 # 2^21 - 1
4259      am_max_gid=$am_max_uid
4260      # The $UID and $GID variables are not portable, so we need to resort
4261      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4262      # below are definitely unexpected, so allow the users to see them
4263      # (that is, avoid stderr redirection).
4264      am_uid=`id -u || echo unknown`
4265      am_gid=`id -g || echo unknown`
4266      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4267$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4268      if test $am_uid -le $am_max_uid; then
4269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4270$as_echo "yes" >&6; }
4271      else
4272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273$as_echo "no" >&6; }
4274         _am_tools=none
4275      fi
4276      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4277$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4278      if test $am_gid -le $am_max_gid; then
4279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280$as_echo "yes" >&6; }
4281      else
4282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283$as_echo "no" >&6; }
4284        _am_tools=none
4285      fi
4286
4287  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4288$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4289
4290  # Go ahead even if we have the value already cached.  We do so because we
4291  # need to set the values for the 'am__tar' and 'am__untar' variables.
4292  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4293
4294  for _am_tool in $_am_tools; do
4295    case $_am_tool in
4296    gnutar)
4297      for _am_tar in tar gnutar gtar; do
4298        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4299   ($_am_tar --version) >&5 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } && break
4303      done
4304      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4305      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4306      am__untar="$_am_tar -xf -"
4307      ;;
4308    plaintar)
4309      # Must skip GNU tar: if it does not support --format= it doesn't create
4310      # ustar tarball either.
4311      (tar --version) >/dev/null 2>&1 && continue
4312      am__tar='tar chf - "$$tardir"'
4313      am__tar_='tar chf - "$tardir"'
4314      am__untar='tar xf -'
4315      ;;
4316    pax)
4317      am__tar='pax -L -x ustar -w "$$tardir"'
4318      am__tar_='pax -L -x ustar -w "$tardir"'
4319      am__untar='pax -r'
4320      ;;
4321    cpio)
4322      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4323      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4324      am__untar='cpio -i -H ustar -d'
4325      ;;
4326    none)
4327      am__tar=false
4328      am__tar_=false
4329      am__untar=false
4330      ;;
4331    esac
4332
4333    # If the value was cached, stop now.  We just wanted to have am__tar
4334    # and am__untar set.
4335    test -n "${am_cv_prog_tar_ustar}" && break
4336
4337    # tar/untar a dummy directory, and stop if the command works.
4338    rm -rf conftest.dir
4339    mkdir conftest.dir
4340    echo GrepMe > conftest.dir/file
4341    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4342   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }
4346    rm -rf conftest.dir
4347    if test -s conftest.tar; then
4348      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4349   ($am__untar <conftest.tar) >&5 2>&5
4350   ac_status=$?
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); }
4353      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4354   (cat conftest.dir/file) >&5 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }
4358      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4359    fi
4360  done
4361  rm -rf conftest.dir
4362
4363  if ${am_cv_prog_tar_ustar+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  am_cv_prog_tar_ustar=$_am_tool
4367fi
4368
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4370$as_echo "$am_cv_prog_tar_ustar" >&6; }
4371
4372
4373
4374
4375
4376
4377# POSIX will say in a future version that running "rm -f" with no argument
4378# is OK; and we want to be able to make that assumption in our Makefile
4379# recipes.  So use an aggressive probe to check that the usage we want is
4380# actually supported "in the wild" to an acceptable degree.
4381# See automake bug#10828.
4382# To make any issue more visible, cause the running configure to be aborted
4383# by default if the 'rm' program in use doesn't match our expectations; the
4384# user can still override this though.
4385if rm -f && rm -fr && rm -rf; then : OK; else
4386  cat >&2 <<'END'
4387Oops!
4388
4389Your 'rm' program seems unable to run without file operands specified
4390on the command line, even when the '-f' option is present.  This is contrary
4391to the behaviour of most rm programs out there, and not conforming with
4392the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4393
4394Please tell bug-automake@gnu.org about your system, including the value
4395of your $PATH and any error possibly output before this message.  This
4396can help us improve future automake versions.
4397
4398END
4399  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4400    echo 'Configuration will proceed anyway, since you have set the' >&2
4401    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4402    echo >&2
4403  else
4404    cat >&2 <<'END'
4405Aborting the configuration process, to ensure you take notice of the issue.
4406
4407You can download and install GNU coreutils to get an 'rm' implementation
4408that behaves properly: <https://www.gnu.org/software/coreutils/>.
4409
4410If you want to complete the configuration process using your problematic
4411'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4412to "yes", and re-run configure.
4413
4414END
4415    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4416  fi
4417fi
4418
4419
4420
4421  PACKAGE_VERSION_MAJOR=$(echo 1.16.2 | cut -d'.' -f1)
4422  PACKAGE_VERSION_MINOR=$(echo 1.16.2 | cut -d'.' -f2)
4423  PACKAGE_VERSION_MICRO=$(echo 1.16.2 | cut -d'.' -f3)
4424
4425
4426
4427
4428
4429
4430
4431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
4432$as_echo_n "checking nano version... " >&6; }
4433
4434  NANO=$(echo 1.16.2 | cut -d'.' -f4)
4435
4436  if test x"$NANO" = x || test "x$NANO" = "x0" ; then
4437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
4438$as_echo "0 (release)" >&6; }
4439    NANO=0
4440    PACKAGE_VERSION_RELEASE=1
4441    GST_GIT="no"
4442  else
4443    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
4444$as_echo "$NANO" >&6; }
4445    PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
4446    if test "x$NANO" != "x1" ; then
4447       GST_GIT="no"
4448    else
4449       GST_GIT="yes"
4450    fi
4451  fi
4452  PACKAGE_VERSION_NANO=$NANO
4453
4454
4455
4456
4457
4458
4459ac_config_headers="$ac_config_headers config.h"
4460
4461
4462
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4464$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4465    # Check whether --enable-maintainer-mode was given.
4466if test "${enable_maintainer_mode+set}" = set; then :
4467  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4468else
4469  USE_MAINTAINER_MODE=yes
4470fi
4471
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4473$as_echo "$USE_MAINTAINER_MODE" >&6; }
4474   if test $USE_MAINTAINER_MODE = yes; then
4475  MAINTAINER_MODE_TRUE=
4476  MAINTAINER_MODE_FALSE='#'
4477else
4478  MAINTAINER_MODE_TRUE='#'
4479  MAINTAINER_MODE_FALSE=
4480fi
4481
4482  MAINT=$MAINTAINER_MODE_TRUE
4483
4484
4485
4486
4487
4488# Check whether --enable-silent-rules was given.
4489if test "${enable_silent_rules+set}" = set; then :
4490  enableval=$enable_silent_rules;
4491fi
4492
4493case $enable_silent_rules in # (((
4494  yes) AM_DEFAULT_VERBOSITY=0;;
4495   no) AM_DEFAULT_VERBOSITY=1;;
4496    *) AM_DEFAULT_VERBOSITY=0;;
4497esac
4498am_make=${MAKE-make}
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4500$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4501if ${am_cv_make_support_nested_variables+:} false; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  if $as_echo 'TRUE=$(BAR$(V))
4505BAR0=false
4506BAR1=true
4507V=1
4508am__doit:
4509	@$(TRUE)
4510.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4511  am_cv_make_support_nested_variables=yes
4512else
4513  am_cv_make_support_nested_variables=no
4514fi
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4517$as_echo "$am_cv_make_support_nested_variables" >&6; }
4518if test $am_cv_make_support_nested_variables = yes; then
4519    AM_V='$(V)'
4520  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4521else
4522  AM_V=$AM_DEFAULT_VERBOSITY
4523  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4524fi
4525AM_BACKSLASH='\'
4526
4527
4528GST_API_VERSION=1.0
4529
4530
4531cat >>confdefs.h <<_ACEOF
4532#define GST_API_VERSION "$GST_API_VERSION"
4533_ACEOF
4534
4535
4536case `pwd` in
4537  *\ * | *\	*)
4538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4539$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4540esac
4541
4542
4543
4544macro_version='2.4.6'
4545macro_revision='2.4.6'
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559ltmain=$ac_aux_dir/ltmain.sh
4560
4561# Backslashify metacharacters that are still active within
4562# double-quoted strings.
4563sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4564
4565# Same as above, but do not quote variable references.
4566double_quote_subst='s/\(["`\\]\)/\\\1/g'
4567
4568# Sed substitution to delay expansion of an escaped shell variable in a
4569# double_quote_subst'ed string.
4570delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4571
4572# Sed substitution to delay expansion of an escaped single quote.
4573delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4574
4575# Sed substitution to avoid accidental globbing in evaled expressions
4576no_glob_subst='s/\*/\\\*/g'
4577
4578ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4579ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4580ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4581
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4583$as_echo_n "checking how to print strings... " >&6; }
4584# Test print first, because it will be a builtin if present.
4585if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4586   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4587  ECHO='print -r --'
4588elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4589  ECHO='printf %s\n'
4590else
4591  # Use this function as a fallback that always works.
4592  func_fallback_echo ()
4593  {
4594    eval 'cat <<_LTECHO_EOF
4595$1
4596_LTECHO_EOF'
4597  }
4598  ECHO='func_fallback_echo'
4599fi
4600
4601# func_echo_all arg...
4602# Invoke $ECHO with all args, space-separated.
4603func_echo_all ()
4604{
4605    $ECHO ""
4606}
4607
4608case $ECHO in
4609  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4610$as_echo "printf" >&6; } ;;
4611  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4612$as_echo "print -r" >&6; } ;;
4613  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4614$as_echo "cat" >&6; } ;;
4615esac
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630DEPDIR="${am__leading_dot}deps"
4631
4632ac_config_commands="$ac_config_commands depfiles"
4633
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4635$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4636cat > confinc.mk << 'END'
4637am__doit:
4638	@echo this is the am__doit target >confinc.out
4639.PHONY: am__doit
4640END
4641am__include="#"
4642am__quote=
4643# BSD make does it like this.
4644echo '.include "confinc.mk" # ignored' > confmf.BSD
4645# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4646echo 'include confinc.mk # ignored' > confmf.GNU
4647_am_result=no
4648for s in GNU BSD; do
4649  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4650   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }
4654  case $?:`cat confinc.out 2>/dev/null` in #(
4655  '0:this is the am__doit target') :
4656    case $s in #(
4657  BSD) :
4658    am__include='.include' am__quote='"' ;; #(
4659  *) :
4660    am__include='include' am__quote='' ;;
4661esac ;; #(
4662  *) :
4663     ;;
4664esac
4665  if test "$am__include" != "#"; then
4666    _am_result="yes ($s style)"
4667    break
4668  fi
4669done
4670rm -f confinc.* confmf.*
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4672$as_echo "${_am_result}" >&6; }
4673
4674# Check whether --enable-dependency-tracking was given.
4675if test "${enable_dependency_tracking+set}" = set; then :
4676  enableval=$enable_dependency_tracking;
4677fi
4678
4679if test "x$enable_dependency_tracking" != xno; then
4680  am_depcomp="$ac_aux_dir/depcomp"
4681  AMDEPBACKSLASH='\'
4682  am__nodep='_no'
4683fi
4684 if test "x$enable_dependency_tracking" != xno; then
4685  AMDEP_TRUE=
4686  AMDEP_FALSE='#'
4687else
4688  AMDEP_TRUE='#'
4689  AMDEP_FALSE=
4690fi
4691
4692
4693ac_ext=c
4694ac_cpp='$CPP $CPPFLAGS'
4695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698if test -n "$ac_tool_prefix"; then
4699  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4700set dummy ${ac_tool_prefix}gcc; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_CC+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$CC"; then
4707  ac_cv_prog_CC="$CC" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726CC=$ac_cv_prog_CC
4727if test -n "$CC"; then
4728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4729$as_echo "$CC" >&6; }
4730else
4731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732$as_echo "no" >&6; }
4733fi
4734
4735
4736fi
4737if test -z "$ac_cv_prog_CC"; then
4738  ac_ct_CC=$CC
4739  # Extract the first word of "gcc", so it can be a program name with args.
4740set dummy gcc; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
4743if ${ac_cv_prog_ac_ct_CC+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -n "$ac_ct_CC"; then
4747  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756    ac_cv_prog_ac_ct_CC="gcc"
4757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761  done
4762IFS=$as_save_IFS
4763
4764fi
4765fi
4766ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767if test -n "$ac_ct_CC"; then
4768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769$as_echo "$ac_ct_CC" >&6; }
4770else
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773fi
4774
4775  if test "x$ac_ct_CC" = x; then
4776    CC=""
4777  else
4778    case $cross_compiling:$ac_tool_warned in
4779yes:)
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782ac_tool_warned=yes ;;
4783esac
4784    CC=$ac_ct_CC
4785  fi
4786else
4787  CC="$ac_cv_prog_CC"
4788fi
4789
4790if test -z "$CC"; then
4791          if test -n "$ac_tool_prefix"; then
4792    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4793set dummy ${ac_tool_prefix}cc; ac_word=$2
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if ${ac_cv_prog_CC+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  if test -n "$CC"; then
4800  ac_cv_prog_CC="$CC" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805  IFS=$as_save_IFS
4806  test -z "$as_dir" && as_dir=.
4807    for ac_exec_ext in '' $ac_executable_extensions; do
4808  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809    ac_cv_prog_CC="${ac_tool_prefix}cc"
4810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811    break 2
4812  fi
4813done
4814  done
4815IFS=$as_save_IFS
4816
4817fi
4818fi
4819CC=$ac_cv_prog_CC
4820if test -n "$CC"; then
4821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4822$as_echo "$CC" >&6; }
4823else
4824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
4826fi
4827
4828
4829  fi
4830fi
4831if test -z "$CC"; then
4832  # Extract the first word of "cc", so it can be a program name with args.
4833set dummy cc; ac_word=$2
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if ${ac_cv_prog_CC+:} false; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  if test -n "$CC"; then
4840  ac_cv_prog_CC="$CC" # Let the user override the test.
4841else
4842  ac_prog_rejected=no
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846  IFS=$as_save_IFS
4847  test -z "$as_dir" && as_dir=.
4848    for ac_exec_ext in '' $ac_executable_extensions; do
4849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4851       ac_prog_rejected=yes
4852       continue
4853     fi
4854    ac_cv_prog_CC="cc"
4855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856    break 2
4857  fi
4858done
4859  done
4860IFS=$as_save_IFS
4861
4862if test $ac_prog_rejected = yes; then
4863  # We found a bogon in the path, so make sure we never use it.
4864  set dummy $ac_cv_prog_CC
4865  shift
4866  if test $# != 0; then
4867    # We chose a different compiler from the bogus one.
4868    # However, it has the same basename, so the bogon will be chosen
4869    # first if we set CC to just the basename; use the full file name.
4870    shift
4871    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4872  fi
4873fi
4874fi
4875fi
4876CC=$ac_cv_prog_CC
4877if test -n "$CC"; then
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879$as_echo "$CC" >&6; }
4880else
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885
4886fi
4887if test -z "$CC"; then
4888  if test -n "$ac_tool_prefix"; then
4889  for ac_prog in cl.exe
4890  do
4891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if ${ac_cv_prog_CC+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if test -n "$CC"; then
4899  ac_cv_prog_CC="$CC" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906    for ac_exec_ext in '' $ac_executable_extensions; do
4907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910    break 2
4911  fi
4912done
4913  done
4914IFS=$as_save_IFS
4915
4916fi
4917fi
4918CC=$ac_cv_prog_CC
4919if test -n "$CC"; then
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4921$as_echo "$CC" >&6; }
4922else
4923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
4925fi
4926
4927
4928    test -n "$CC" && break
4929  done
4930fi
4931if test -z "$CC"; then
4932  ac_ct_CC=$CC
4933  for ac_prog in cl.exe
4934do
4935  # Extract the first word of "$ac_prog", so it can be a program name with args.
4936set dummy $ac_prog; ac_word=$2
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938$as_echo_n "checking for $ac_word... " >&6; }
4939if ${ac_cv_prog_ac_ct_CC+:} false; then :
4940  $as_echo_n "(cached) " >&6
4941else
4942  if test -n "$ac_ct_CC"; then
4943  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948  IFS=$as_save_IFS
4949  test -z "$as_dir" && as_dir=.
4950    for ac_exec_ext in '' $ac_executable_extensions; do
4951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952    ac_cv_prog_ac_ct_CC="$ac_prog"
4953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954    break 2
4955  fi
4956done
4957  done
4958IFS=$as_save_IFS
4959
4960fi
4961fi
4962ac_ct_CC=$ac_cv_prog_ac_ct_CC
4963if test -n "$ac_ct_CC"; then
4964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4965$as_echo "$ac_ct_CC" >&6; }
4966else
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968$as_echo "no" >&6; }
4969fi
4970
4971
4972  test -n "$ac_ct_CC" && break
4973done
4974
4975  if test "x$ac_ct_CC" = x; then
4976    CC=""
4977  else
4978    case $cross_compiling:$ac_tool_warned in
4979yes:)
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4982ac_tool_warned=yes ;;
4983esac
4984    CC=$ac_ct_CC
4985  fi
4986fi
4987
4988fi
4989
4990
4991test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4993as_fn_error $? "no acceptable C compiler found in \$PATH
4994See \`config.log' for more details" "$LINENO" 5; }
4995
4996# Provide some information about the compiler.
4997$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4998set X $ac_compile
4999ac_compiler=$2
5000for ac_option in --version -v -V -qversion; do
5001  { { ac_try="$ac_compiler $ac_option >&5"
5002case "(($ac_try" in
5003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004  *) ac_try_echo=$ac_try;;
5005esac
5006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5007$as_echo "$ac_try_echo"; } >&5
5008  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5009  ac_status=$?
5010  if test -s conftest.err; then
5011    sed '10a\
5012... rest of stderr output deleted ...
5013         10q' conftest.err >conftest.er1
5014    cat conftest.er1 >&5
5015  fi
5016  rm -f conftest.er1 conftest.err
5017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5018  test $ac_status = 0; }
5019done
5020
5021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022/* end confdefs.h.  */
5023
5024int
5025main ()
5026{
5027
5028  ;
5029  return 0;
5030}
5031_ACEOF
5032ac_clean_files_save=$ac_clean_files
5033ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5034# Try to create an executable without -o first, disregard a.out.
5035# It will help us diagnose broken compilers, and finding out an intuition
5036# of exeext.
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5038$as_echo_n "checking whether the C compiler works... " >&6; }
5039ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5040
5041# The possible output files:
5042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5043
5044ac_rmfiles=
5045for ac_file in $ac_files
5046do
5047  case $ac_file in
5048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5049    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5050  esac
5051done
5052rm -f $ac_rmfiles
5053
5054if { { ac_try="$ac_link_default"
5055case "(($ac_try" in
5056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057  *) ac_try_echo=$ac_try;;
5058esac
5059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5060$as_echo "$ac_try_echo"; } >&5
5061  (eval "$ac_link_default") 2>&5
5062  ac_status=$?
5063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064  test $ac_status = 0; }; then :
5065  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5066# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5067# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5068# so that the user can short-circuit this test for compilers unknown to
5069# Autoconf.
5070for ac_file in $ac_files ''
5071do
5072  test -f "$ac_file" || continue
5073  case $ac_file in
5074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5075	;;
5076    [ab].out )
5077	# We found the default executable, but exeext='' is most
5078	# certainly right.
5079	break;;
5080    *.* )
5081	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5082	then :; else
5083	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5084	fi
5085	# We set ac_cv_exeext here because the later test for it is not
5086	# safe: cross compilers may not add the suffix if given an `-o'
5087	# argument, so we may need to know it at that point already.
5088	# Even if this section looks crufty: it has the advantage of
5089	# actually working.
5090	break;;
5091    * )
5092	break;;
5093  esac
5094done
5095test "$ac_cv_exeext" = no && ac_cv_exeext=
5096
5097else
5098  ac_file=''
5099fi
5100if test -z "$ac_file"; then :
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103$as_echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5108as_fn_error 77 "C compiler cannot create executables
5109See \`config.log' for more details" "$LINENO" 5; }
5110else
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112$as_echo "yes" >&6; }
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5115$as_echo_n "checking for C compiler default output file name... " >&6; }
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5117$as_echo "$ac_file" >&6; }
5118ac_exeext=$ac_cv_exeext
5119
5120rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5121ac_clean_files=$ac_clean_files_save
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5123$as_echo_n "checking for suffix of executables... " >&6; }
5124if { { ac_try="$ac_link"
5125case "(($ac_try" in
5126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127  *) ac_try_echo=$ac_try;;
5128esac
5129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5130$as_echo "$ac_try_echo"; } >&5
5131  (eval "$ac_link") 2>&5
5132  ac_status=$?
5133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5134  test $ac_status = 0; }; then :
5135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5137# work properly (i.e., refer to `conftest.exe'), while it won't with
5138# `rm'.
5139for ac_file in conftest.exe conftest conftest.*; do
5140  test -f "$ac_file" || continue
5141  case $ac_file in
5142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5144	  break;;
5145    * ) break;;
5146  esac
5147done
5148else
5149  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5151as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5152See \`config.log' for more details" "$LINENO" 5; }
5153fi
5154rm -f conftest conftest$ac_cv_exeext
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5156$as_echo "$ac_cv_exeext" >&6; }
5157
5158rm -f conftest.$ac_ext
5159EXEEXT=$ac_cv_exeext
5160ac_exeext=$EXEEXT
5161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h.  */
5163#include <stdio.h>
5164int
5165main ()
5166{
5167FILE *f = fopen ("conftest.out", "w");
5168 return ferror (f) || fclose (f) != 0;
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174ac_clean_files="$ac_clean_files conftest.out"
5175# Check that the compiler produces executables we can run.  If not, either
5176# the compiler is broken, or we cross compile.
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5178$as_echo_n "checking whether we are cross compiling... " >&6; }
5179if test "$cross_compiling" != yes; then
5180  { { ac_try="$ac_link"
5181case "(($ac_try" in
5182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183  *) ac_try_echo=$ac_try;;
5184esac
5185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5186$as_echo "$ac_try_echo"; } >&5
5187  (eval "$ac_link") 2>&5
5188  ac_status=$?
5189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190  test $ac_status = 0; }
5191  if { ac_try='./conftest$ac_cv_exeext'
5192  { { case "(($ac_try" in
5193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194  *) ac_try_echo=$ac_try;;
5195esac
5196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5197$as_echo "$ac_try_echo"; } >&5
5198  (eval "$ac_try") 2>&5
5199  ac_status=$?
5200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5201  test $ac_status = 0; }; }; then
5202    cross_compiling=no
5203  else
5204    if test "$cross_compiling" = maybe; then
5205	cross_compiling=yes
5206    else
5207	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209as_fn_error $? "cannot run C compiled programs.
5210If you meant to cross compile, use \`--host'.
5211See \`config.log' for more details" "$LINENO" 5; }
5212    fi
5213  fi
5214fi
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5216$as_echo "$cross_compiling" >&6; }
5217
5218rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5219ac_clean_files=$ac_clean_files_save
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5221$as_echo_n "checking for suffix of object files... " >&6; }
5222if ${ac_cv_objext+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227
5228int
5229main ()
5230{
5231
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236rm -f conftest.o conftest.obj
5237if { { ac_try="$ac_compile"
5238case "(($ac_try" in
5239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240  *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5243$as_echo "$ac_try_echo"; } >&5
5244  (eval "$ac_compile") 2>&5
5245  ac_status=$?
5246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5247  test $ac_status = 0; }; then :
5248  for ac_file in conftest.o conftest.obj conftest.*; do
5249  test -f "$ac_file" || continue;
5250  case $ac_file in
5251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5252    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5253       break;;
5254  esac
5255done
5256else
5257  $as_echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5262as_fn_error $? "cannot compute suffix of object files: cannot compile
5263See \`config.log' for more details" "$LINENO" 5; }
5264fi
5265rm -f conftest.$ac_cv_objext conftest.$ac_ext
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5268$as_echo "$ac_cv_objext" >&6; }
5269OBJEXT=$ac_cv_objext
5270ac_objext=$OBJEXT
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5272$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5273if ${ac_cv_c_compiler_gnu+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h.  */
5278
5279int
5280main ()
5281{
5282#ifndef __GNUC__
5283       choke me
5284#endif
5285
5286  ;
5287  return 0;
5288}
5289_ACEOF
5290if ac_fn_c_try_compile "$LINENO"; then :
5291  ac_compiler_gnu=yes
5292else
5293  ac_compiler_gnu=no
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296ac_cv_c_compiler_gnu=$ac_compiler_gnu
5297
5298fi
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5300$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5301if test $ac_compiler_gnu = yes; then
5302  GCC=yes
5303else
5304  GCC=
5305fi
5306ac_test_CFLAGS=${CFLAGS+set}
5307ac_save_CFLAGS=$CFLAGS
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5309$as_echo_n "checking whether $CC accepts -g... " >&6; }
5310if ${ac_cv_prog_cc_g+:} false; then :
5311  $as_echo_n "(cached) " >&6
5312else
5313  ac_save_c_werror_flag=$ac_c_werror_flag
5314   ac_c_werror_flag=yes
5315   ac_cv_prog_cc_g=no
5316   CFLAGS="-g"
5317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319
5320int
5321main ()
5322{
5323
5324  ;
5325  return 0;
5326}
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"; then :
5329  ac_cv_prog_cc_g=yes
5330else
5331  CFLAGS=""
5332      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_compile "$LINENO"; then :
5344
5345else
5346  ac_c_werror_flag=$ac_save_c_werror_flag
5347	 CFLAGS="-g"
5348	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360  ac_cv_prog_cc_g=yes
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365fi
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367   ac_c_werror_flag=$ac_save_c_werror_flag
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5370$as_echo "$ac_cv_prog_cc_g" >&6; }
5371if test "$ac_test_CFLAGS" = set; then
5372  CFLAGS=$ac_save_CFLAGS
5373elif test $ac_cv_prog_cc_g = yes; then
5374  if test "$GCC" = yes; then
5375    CFLAGS="-g -O2"
5376  else
5377    CFLAGS="-g"
5378  fi
5379else
5380  if test "$GCC" = yes; then
5381    CFLAGS="-O2"
5382  else
5383    CFLAGS=
5384  fi
5385fi
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5387$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5388if ${ac_cv_prog_cc_c89+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  ac_cv_prog_cc_c89=no
5392ac_save_CC=$CC
5393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395#include <stdarg.h>
5396#include <stdio.h>
5397struct stat;
5398/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5399struct buf { int x; };
5400FILE * (*rcsopen) (struct buf *, struct stat *, int);
5401static char *e (p, i)
5402     char **p;
5403     int i;
5404{
5405  return p[i];
5406}
5407static char *f (char * (*g) (char **, int), char **p, ...)
5408{
5409  char *s;
5410  va_list v;
5411  va_start (v,p);
5412  s = g (p, va_arg (v,int));
5413  va_end (v);
5414  return s;
5415}
5416
5417/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5418   function prototypes and stuff, but not '\xHH' hex character constants.
5419   These don't provoke an error unfortunately, instead are silently treated
5420   as 'x'.  The following induces an error, until -std is added to get
5421   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5422   array size at least.  It's necessary to write '\x00'==0 to get something
5423   that's true only with -std.  */
5424int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5425
5426/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5427   inside strings and character constants.  */
5428#define FOO(x) 'x'
5429int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5430
5431int test (int i, double x);
5432struct s1 {int (*f) (int a);};
5433struct s2 {int (*f) (double a);};
5434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5435int argc;
5436char **argv;
5437int
5438main ()
5439{
5440return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5441  ;
5442  return 0;
5443}
5444_ACEOF
5445for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5446	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5447do
5448  CC="$ac_save_CC $ac_arg"
5449  if ac_fn_c_try_compile "$LINENO"; then :
5450  ac_cv_prog_cc_c89=$ac_arg
5451fi
5452rm -f core conftest.err conftest.$ac_objext
5453  test "x$ac_cv_prog_cc_c89" != "xno" && break
5454done
5455rm -f conftest.$ac_ext
5456CC=$ac_save_CC
5457
5458fi
5459# AC_CACHE_VAL
5460case "x$ac_cv_prog_cc_c89" in
5461  x)
5462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5463$as_echo "none needed" >&6; } ;;
5464  xno)
5465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5466$as_echo "unsupported" >&6; } ;;
5467  *)
5468    CC="$CC $ac_cv_prog_cc_c89"
5469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5470$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5471esac
5472if test "x$ac_cv_prog_cc_c89" != xno; then :
5473
5474fi
5475
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482ac_ext=c
5483ac_cpp='$CPP $CPPFLAGS'
5484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5488$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5489if ${am_cv_prog_cc_c_o+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494
5495int
5496main ()
5497{
5498
5499  ;
5500  return 0;
5501}
5502_ACEOF
5503  # Make sure it works both with $CC and with simple cc.
5504  # Following AC_PROG_CC_C_O, we do the test twice because some
5505  # compilers refuse to overwrite an existing .o file with -o,
5506  # though they will create one.
5507  am_cv_prog_cc_c_o=yes
5508  for am_i in 1 2; do
5509    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5510   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } \
5514         && test -f conftest2.$ac_objext; then
5515      : OK
5516    else
5517      am_cv_prog_cc_c_o=no
5518      break
5519    fi
5520  done
5521  rm -f core conftest*
5522  unset am_i
5523fi
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5525$as_echo "$am_cv_prog_cc_c_o" >&6; }
5526if test "$am_cv_prog_cc_c_o" != yes; then
5527   # Losing compiler, so override with the script.
5528   # FIXME: It is wrong to rewrite CC.
5529   # But if we don't then we get into trouble of one sort or another.
5530   # A longer-term fix would be to have automake use am__CC in this case,
5531   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5532   CC="$am_aux_dir/compile $CC"
5533fi
5534ac_ext=c
5535ac_cpp='$CPP $CPPFLAGS'
5536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539
5540
5541depcc="$CC"   am_compiler_list=
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5544$as_echo_n "checking dependency style of $depcc... " >&6; }
5545if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5549  # We make a subdir and do the tests there.  Otherwise we can end up
5550  # making bogus files that we don't know about and never remove.  For
5551  # instance it was reported that on HP-UX the gcc test will end up
5552  # making a dummy file named 'D' -- because '-MD' means "put the output
5553  # in D".
5554  rm -rf conftest.dir
5555  mkdir conftest.dir
5556  # Copy depcomp to subdir because otherwise we won't find it if we're
5557  # using a relative directory.
5558  cp "$am_depcomp" conftest.dir
5559  cd conftest.dir
5560  # We will build objects and dependencies in a subdirectory because
5561  # it helps to detect inapplicable dependency modes.  For instance
5562  # both Tru64's cc and ICC support -MD to output dependencies as a
5563  # side effect of compilation, but ICC will put the dependencies in
5564  # the current directory while Tru64 will put them in the object
5565  # directory.
5566  mkdir sub
5567
5568  am_cv_CC_dependencies_compiler_type=none
5569  if test "$am_compiler_list" = ""; then
5570     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5571  fi
5572  am__universal=false
5573  case " $depcc " in #(
5574     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5575     esac
5576
5577  for depmode in $am_compiler_list; do
5578    # Setup a source with many dependencies, because some compilers
5579    # like to wrap large dependency lists on column 80 (with \), and
5580    # we should not choose a depcomp mode which is confused by this.
5581    #
5582    # We need to recreate these files for each test, as the compiler may
5583    # overwrite some of them when testing with obscure command lines.
5584    # This happens at least with the AIX C compiler.
5585    : > sub/conftest.c
5586    for i in 1 2 3 4 5 6; do
5587      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5588      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5589      # Solaris 10 /bin/sh.
5590      echo '/* dummy */' > sub/conftst$i.h
5591    done
5592    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5593
5594    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5595    # mode.  It turns out that the SunPro C++ compiler does not properly
5596    # handle '-M -o', and we need to detect this.  Also, some Intel
5597    # versions had trouble with output in subdirs.
5598    am__obj=sub/conftest.${OBJEXT-o}
5599    am__minus_obj="-o $am__obj"
5600    case $depmode in
5601    gcc)
5602      # This depmode causes a compiler race in universal mode.
5603      test "$am__universal" = false || continue
5604      ;;
5605    nosideeffect)
5606      # After this tag, mechanisms are not by side-effect, so they'll
5607      # only be used when explicitly requested.
5608      if test "x$enable_dependency_tracking" = xyes; then
5609	continue
5610      else
5611	break
5612      fi
5613      ;;
5614    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5615      # This compiler won't grok '-c -o', but also, the minuso test has
5616      # not run yet.  These depmodes are late enough in the game, and
5617      # so weak that their functioning should not be impacted.
5618      am__obj=conftest.${OBJEXT-o}
5619      am__minus_obj=
5620      ;;
5621    none) break ;;
5622    esac
5623    if depmode=$depmode \
5624       source=sub/conftest.c object=$am__obj \
5625       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5626       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5627         >/dev/null 2>conftest.err &&
5628       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5629       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5630       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5631       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5632      # icc doesn't choke on unknown options, it will just issue warnings
5633      # or remarks (even with -Werror).  So we grep stderr for any message
5634      # that says an option was ignored or not supported.
5635      # When given -MP, icc 7.0 and 7.1 complain thusly:
5636      #   icc: Command line warning: ignoring option '-M'; no argument required
5637      # The diagnosis changed in icc 8.0:
5638      #   icc: Command line remark: option '-MP' not supported
5639      if (grep 'ignoring option' conftest.err ||
5640          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5641        am_cv_CC_dependencies_compiler_type=$depmode
5642        break
5643      fi
5644    fi
5645  done
5646
5647  cd ..
5648  rm -rf conftest.dir
5649else
5650  am_cv_CC_dependencies_compiler_type=none
5651fi
5652
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5655$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5656CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5657
5658 if
5659  test "x$enable_dependency_tracking" != xno \
5660  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5661  am__fastdepCC_TRUE=
5662  am__fastdepCC_FALSE='#'
5663else
5664  am__fastdepCC_TRUE='#'
5665  am__fastdepCC_FALSE=
5666fi
5667
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5670$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5671if ${ac_cv_path_SED+:} false; then :
5672  $as_echo_n "(cached) " >&6
5673else
5674            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5675     for ac_i in 1 2 3 4 5 6 7; do
5676       ac_script="$ac_script$as_nl$ac_script"
5677     done
5678     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5679     { ac_script=; unset ac_script;}
5680     if test -z "$SED"; then
5681  ac_path_SED_found=false
5682  # Loop through the user's path and test for each of PROGNAME-LIST
5683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688    for ac_prog in sed gsed; do
5689    for ac_exec_ext in '' $ac_executable_extensions; do
5690      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5691      as_fn_executable_p "$ac_path_SED" || continue
5692# Check for GNU ac_path_SED and select it if it is found.
5693  # Check for GNU $ac_path_SED
5694case `"$ac_path_SED" --version 2>&1` in
5695*GNU*)
5696  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5697*)
5698  ac_count=0
5699  $as_echo_n 0123456789 >"conftest.in"
5700  while :
5701  do
5702    cat "conftest.in" "conftest.in" >"conftest.tmp"
5703    mv "conftest.tmp" "conftest.in"
5704    cp "conftest.in" "conftest.nl"
5705    $as_echo '' >> "conftest.nl"
5706    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5707    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5708    as_fn_arith $ac_count + 1 && ac_count=$as_val
5709    if test $ac_count -gt ${ac_path_SED_max-0}; then
5710      # Best one so far, save it but keep looking for a better one
5711      ac_cv_path_SED="$ac_path_SED"
5712      ac_path_SED_max=$ac_count
5713    fi
5714    # 10*(2^10) chars as input seems more than enough
5715    test $ac_count -gt 10 && break
5716  done
5717  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5718esac
5719
5720      $ac_path_SED_found && break 3
5721    done
5722  done
5723  done
5724IFS=$as_save_IFS
5725  if test -z "$ac_cv_path_SED"; then
5726    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5727  fi
5728else
5729  ac_cv_path_SED=$SED
5730fi
5731
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5734$as_echo "$ac_cv_path_SED" >&6; }
5735 SED="$ac_cv_path_SED"
5736  rm -f conftest.sed
5737
5738test -z "$SED" && SED=sed
5739Xsed="$SED -e 1s/^X//"
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5752$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5753if ${ac_cv_path_GREP+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  if test -z "$GREP"; then
5757  ac_path_GREP_found=false
5758  # Loop through the user's path and test for each of PROGNAME-LIST
5759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761do
5762  IFS=$as_save_IFS
5763  test -z "$as_dir" && as_dir=.
5764    for ac_prog in grep ggrep; do
5765    for ac_exec_ext in '' $ac_executable_extensions; do
5766      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5767      as_fn_executable_p "$ac_path_GREP" || continue
5768# Check for GNU ac_path_GREP and select it if it is found.
5769  # Check for GNU $ac_path_GREP
5770case `"$ac_path_GREP" --version 2>&1` in
5771*GNU*)
5772  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5773*)
5774  ac_count=0
5775  $as_echo_n 0123456789 >"conftest.in"
5776  while :
5777  do
5778    cat "conftest.in" "conftest.in" >"conftest.tmp"
5779    mv "conftest.tmp" "conftest.in"
5780    cp "conftest.in" "conftest.nl"
5781    $as_echo 'GREP' >> "conftest.nl"
5782    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784    as_fn_arith $ac_count + 1 && ac_count=$as_val
5785    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5786      # Best one so far, save it but keep looking for a better one
5787      ac_cv_path_GREP="$ac_path_GREP"
5788      ac_path_GREP_max=$ac_count
5789    fi
5790    # 10*(2^10) chars as input seems more than enough
5791    test $ac_count -gt 10 && break
5792  done
5793  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794esac
5795
5796      $ac_path_GREP_found && break 3
5797    done
5798  done
5799  done
5800IFS=$as_save_IFS
5801  if test -z "$ac_cv_path_GREP"; then
5802    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5803  fi
5804else
5805  ac_cv_path_GREP=$GREP
5806fi
5807
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5810$as_echo "$ac_cv_path_GREP" >&6; }
5811 GREP="$ac_cv_path_GREP"
5812
5813
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5815$as_echo_n "checking for egrep... " >&6; }
5816if ${ac_cv_path_EGREP+:} false; then :
5817  $as_echo_n "(cached) " >&6
5818else
5819  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5820   then ac_cv_path_EGREP="$GREP -E"
5821   else
5822     if test -z "$EGREP"; then
5823  ac_path_EGREP_found=false
5824  # Loop through the user's path and test for each of PROGNAME-LIST
5825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5827do
5828  IFS=$as_save_IFS
5829  test -z "$as_dir" && as_dir=.
5830    for ac_prog in egrep; do
5831    for ac_exec_ext in '' $ac_executable_extensions; do
5832      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5833      as_fn_executable_p "$ac_path_EGREP" || continue
5834# Check for GNU ac_path_EGREP and select it if it is found.
5835  # Check for GNU $ac_path_EGREP
5836case `"$ac_path_EGREP" --version 2>&1` in
5837*GNU*)
5838  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5839*)
5840  ac_count=0
5841  $as_echo_n 0123456789 >"conftest.in"
5842  while :
5843  do
5844    cat "conftest.in" "conftest.in" >"conftest.tmp"
5845    mv "conftest.tmp" "conftest.in"
5846    cp "conftest.in" "conftest.nl"
5847    $as_echo 'EGREP' >> "conftest.nl"
5848    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5849    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5850    as_fn_arith $ac_count + 1 && ac_count=$as_val
5851    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5852      # Best one so far, save it but keep looking for a better one
5853      ac_cv_path_EGREP="$ac_path_EGREP"
5854      ac_path_EGREP_max=$ac_count
5855    fi
5856    # 10*(2^10) chars as input seems more than enough
5857    test $ac_count -gt 10 && break
5858  done
5859  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5860esac
5861
5862      $ac_path_EGREP_found && break 3
5863    done
5864  done
5865  done
5866IFS=$as_save_IFS
5867  if test -z "$ac_cv_path_EGREP"; then
5868    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5869  fi
5870else
5871  ac_cv_path_EGREP=$EGREP
5872fi
5873
5874   fi
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5877$as_echo "$ac_cv_path_EGREP" >&6; }
5878 EGREP="$ac_cv_path_EGREP"
5879
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5882$as_echo_n "checking for fgrep... " >&6; }
5883if ${ac_cv_path_FGREP+:} false; then :
5884  $as_echo_n "(cached) " >&6
5885else
5886  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5887   then ac_cv_path_FGREP="$GREP -F"
5888   else
5889     if test -z "$FGREP"; then
5890  ac_path_FGREP_found=false
5891  # Loop through the user's path and test for each of PROGNAME-LIST
5892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5894do
5895  IFS=$as_save_IFS
5896  test -z "$as_dir" && as_dir=.
5897    for ac_prog in fgrep; do
5898    for ac_exec_ext in '' $ac_executable_extensions; do
5899      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5900      as_fn_executable_p "$ac_path_FGREP" || continue
5901# Check for GNU ac_path_FGREP and select it if it is found.
5902  # Check for GNU $ac_path_FGREP
5903case `"$ac_path_FGREP" --version 2>&1` in
5904*GNU*)
5905  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5906*)
5907  ac_count=0
5908  $as_echo_n 0123456789 >"conftest.in"
5909  while :
5910  do
5911    cat "conftest.in" "conftest.in" >"conftest.tmp"
5912    mv "conftest.tmp" "conftest.in"
5913    cp "conftest.in" "conftest.nl"
5914    $as_echo 'FGREP' >> "conftest.nl"
5915    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5916    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5917    as_fn_arith $ac_count + 1 && ac_count=$as_val
5918    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5919      # Best one so far, save it but keep looking for a better one
5920      ac_cv_path_FGREP="$ac_path_FGREP"
5921      ac_path_FGREP_max=$ac_count
5922    fi
5923    # 10*(2^10) chars as input seems more than enough
5924    test $ac_count -gt 10 && break
5925  done
5926  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5927esac
5928
5929      $ac_path_FGREP_found && break 3
5930    done
5931  done
5932  done
5933IFS=$as_save_IFS
5934  if test -z "$ac_cv_path_FGREP"; then
5935    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5936  fi
5937else
5938  ac_cv_path_FGREP=$FGREP
5939fi
5940
5941   fi
5942fi
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5944$as_echo "$ac_cv_path_FGREP" >&6; }
5945 FGREP="$ac_cv_path_FGREP"
5946
5947
5948test -z "$GREP" && GREP=grep
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968# Check whether --with-gnu-ld was given.
5969if test "${with_gnu_ld+set}" = set; then :
5970  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5971else
5972  with_gnu_ld=no
5973fi
5974
5975ac_prog=ld
5976if test yes = "$GCC"; then
5977  # Check if gcc -print-prog-name=ld gives a path.
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5979$as_echo_n "checking for ld used by $CC... " >&6; }
5980  case $host in
5981  *-*-mingw*)
5982    # gcc leaves a trailing carriage return, which upsets mingw
5983    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5984  *)
5985    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5986  esac
5987  case $ac_prog in
5988    # Accept absolute paths.
5989    [\\/]* | ?:[\\/]*)
5990      re_direlt='/[^/][^/]*/\.\./'
5991      # Canonicalize the pathname of ld
5992      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5993      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5994	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5995      done
5996      test -z "$LD" && LD=$ac_prog
5997      ;;
5998  "")
5999    # If it fails, then pretend we aren't using GCC.
6000    ac_prog=ld
6001    ;;
6002  *)
6003    # If it is relative, then search for the first ld in PATH.
6004    with_gnu_ld=unknown
6005    ;;
6006  esac
6007elif test yes = "$with_gnu_ld"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6009$as_echo_n "checking for GNU ld... " >&6; }
6010else
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6012$as_echo_n "checking for non-GNU ld... " >&6; }
6013fi
6014if ${lt_cv_path_LD+:} false; then :
6015  $as_echo_n "(cached) " >&6
6016else
6017  if test -z "$LD"; then
6018  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6019  for ac_dir in $PATH; do
6020    IFS=$lt_save_ifs
6021    test -z "$ac_dir" && ac_dir=.
6022    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6023      lt_cv_path_LD=$ac_dir/$ac_prog
6024      # Check to see if the program is GNU ld.  I'd rather use --version,
6025      # but apparently some variants of GNU ld only accept -v.
6026      # Break only if it was the GNU/non-GNU ld that we prefer.
6027      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6028      *GNU* | *'with BFD'*)
6029	test no != "$with_gnu_ld" && break
6030	;;
6031      *)
6032	test yes != "$with_gnu_ld" && break
6033	;;
6034      esac
6035    fi
6036  done
6037  IFS=$lt_save_ifs
6038else
6039  lt_cv_path_LD=$LD # Let the user override the test with a path.
6040fi
6041fi
6042
6043LD=$lt_cv_path_LD
6044if test -n "$LD"; then
6045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6046$as_echo "$LD" >&6; }
6047else
6048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049$as_echo "no" >&6; }
6050fi
6051test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6053$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6054if ${lt_cv_prog_gnu_ld+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6058case `$LD -v 2>&1 </dev/null` in
6059*GNU* | *'with BFD'*)
6060  lt_cv_prog_gnu_ld=yes
6061  ;;
6062*)
6063  lt_cv_prog_gnu_ld=no
6064  ;;
6065esac
6066fi
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6068$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6069with_gnu_ld=$lt_cv_prog_gnu_ld
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6080$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6081if ${lt_cv_path_NM+:} false; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$NM"; then
6085  # Let the user override the test.
6086  lt_cv_path_NM=$NM
6087else
6088  lt_nm_to_check=${ac_tool_prefix}nm
6089  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6090    lt_nm_to_check="$lt_nm_to_check nm"
6091  fi
6092  for lt_tmp_nm in $lt_nm_to_check; do
6093    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6094    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6095      IFS=$lt_save_ifs
6096      test -z "$ac_dir" && ac_dir=.
6097      tmp_nm=$ac_dir/$lt_tmp_nm
6098      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6099	# Check to see if the nm accepts a BSD-compat flag.
6100	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6101	#   nm: unknown option "B" ignored
6102	# Tru64's nm complains that /dev/null is an invalid object file
6103	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6104	case $build_os in
6105	mingw*) lt_bad_file=conftest.nm/nofile ;;
6106	*) lt_bad_file=/dev/null ;;
6107	esac
6108	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6109	*$lt_bad_file* | *'Invalid file or object type'*)
6110	  lt_cv_path_NM="$tmp_nm -B"
6111	  break 2
6112	  ;;
6113	*)
6114	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6115	  */dev/null*)
6116	    lt_cv_path_NM="$tmp_nm -p"
6117	    break 2
6118	    ;;
6119	  *)
6120	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6121	    continue # so that we can try to find one that supports BSD flags
6122	    ;;
6123	  esac
6124	  ;;
6125	esac
6126      fi
6127    done
6128    IFS=$lt_save_ifs
6129  done
6130  : ${lt_cv_path_NM=no}
6131fi
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6134$as_echo "$lt_cv_path_NM" >&6; }
6135if test no != "$lt_cv_path_NM"; then
6136  NM=$lt_cv_path_NM
6137else
6138  # Didn't find any BSD compatible name lister, look for dumpbin.
6139  if test -n "$DUMPBIN"; then :
6140    # Let the user override the test.
6141  else
6142    if test -n "$ac_tool_prefix"; then
6143  for ac_prog in dumpbin "link -dump"
6144  do
6145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148$as_echo_n "checking for $ac_word... " >&6; }
6149if ${ac_cv_prog_DUMPBIN+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  if test -n "$DUMPBIN"; then
6153  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158  IFS=$as_save_IFS
6159  test -z "$as_dir" && as_dir=.
6160    for ac_exec_ext in '' $ac_executable_extensions; do
6161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164    break 2
6165  fi
6166done
6167  done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172DUMPBIN=$ac_cv_prog_DUMPBIN
6173if test -n "$DUMPBIN"; then
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6175$as_echo "$DUMPBIN" >&6; }
6176else
6177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178$as_echo "no" >&6; }
6179fi
6180
6181
6182    test -n "$DUMPBIN" && break
6183  done
6184fi
6185if test -z "$DUMPBIN"; then
6186  ac_ct_DUMPBIN=$DUMPBIN
6187  for ac_prog in dumpbin "link -dump"
6188do
6189  # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192$as_echo_n "checking for $ac_word... " >&6; }
6193if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6194  $as_echo_n "(cached) " >&6
6195else
6196  if test -n "$ac_ct_DUMPBIN"; then
6197  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202  IFS=$as_save_IFS
6203  test -z "$as_dir" && as_dir=.
6204    for ac_exec_ext in '' $ac_executable_extensions; do
6205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208    break 2
6209  fi
6210done
6211  done
6212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6217if test -n "$ac_ct_DUMPBIN"; then
6218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6219$as_echo "$ac_ct_DUMPBIN" >&6; }
6220else
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222$as_echo "no" >&6; }
6223fi
6224
6225
6226  test -n "$ac_ct_DUMPBIN" && break
6227done
6228
6229  if test "x$ac_ct_DUMPBIN" = x; then
6230    DUMPBIN=":"
6231  else
6232    case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236ac_tool_warned=yes ;;
6237esac
6238    DUMPBIN=$ac_ct_DUMPBIN
6239  fi
6240fi
6241
6242    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6243    *COFF*)
6244      DUMPBIN="$DUMPBIN -symbols -headers"
6245      ;;
6246    *)
6247      DUMPBIN=:
6248      ;;
6249    esac
6250  fi
6251
6252  if test : != "$DUMPBIN"; then
6253    NM=$DUMPBIN
6254  fi
6255fi
6256test -z "$NM" && NM=nm
6257
6258
6259
6260
6261
6262
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6264$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6265if ${lt_cv_nm_interface+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  lt_cv_nm_interface="BSD nm"
6269  echo "int some_variable = 0;" > conftest.$ac_ext
6270  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6271  (eval "$ac_compile" 2>conftest.err)
6272  cat conftest.err >&5
6273  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6274  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6275  cat conftest.err >&5
6276  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6277  cat conftest.out >&5
6278  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6279    lt_cv_nm_interface="MS dumpbin"
6280  fi
6281  rm -f conftest*
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6284$as_echo "$lt_cv_nm_interface" >&6; }
6285
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6287$as_echo_n "checking whether ln -s works... " >&6; }
6288LN_S=$as_ln_s
6289if test "$LN_S" = "ln -s"; then
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6291$as_echo "yes" >&6; }
6292else
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6294$as_echo "no, using $LN_S" >&6; }
6295fi
6296
6297# find the maximum length of command line arguments
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6299$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6300if ${lt_cv_sys_max_cmd_len+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303    i=0
6304  teststring=ABCD
6305
6306  case $build_os in
6307  msdosdjgpp*)
6308    # On DJGPP, this test can blow up pretty badly due to problems in libc
6309    # (any single argument exceeding 2000 bytes causes a buffer overrun
6310    # during glob expansion).  Even if it were fixed, the result of this
6311    # check would be larger than it should be.
6312    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6313    ;;
6314
6315  gnu*)
6316    # Under GNU Hurd, this test is not required because there is
6317    # no limit to the length of command line arguments.
6318    # Libtool will interpret -1 as no limit whatsoever
6319    lt_cv_sys_max_cmd_len=-1;
6320    ;;
6321
6322  cygwin* | mingw* | cegcc*)
6323    # On Win9x/ME, this test blows up -- it succeeds, but takes
6324    # about 5 minutes as the teststring grows exponentially.
6325    # Worse, since 9x/ME are not pre-emptively multitasking,
6326    # you end up with a "frozen" computer, even though with patience
6327    # the test eventually succeeds (with a max line length of 256k).
6328    # Instead, let's just punt: use the minimum linelength reported by
6329    # all of the supported platforms: 8192 (on NT/2K/XP).
6330    lt_cv_sys_max_cmd_len=8192;
6331    ;;
6332
6333  mint*)
6334    # On MiNT this can take a long time and run out of memory.
6335    lt_cv_sys_max_cmd_len=8192;
6336    ;;
6337
6338  amigaos*)
6339    # On AmigaOS with pdksh, this test takes hours, literally.
6340    # So we just punt and use a minimum line length of 8192.
6341    lt_cv_sys_max_cmd_len=8192;
6342    ;;
6343
6344  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6345    # This has been around since 386BSD, at least.  Likely further.
6346    if test -x /sbin/sysctl; then
6347      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6348    elif test -x /usr/sbin/sysctl; then
6349      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6350    else
6351      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6352    fi
6353    # And add a safety zone
6354    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6355    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6356    ;;
6357
6358  interix*)
6359    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6360    lt_cv_sys_max_cmd_len=196608
6361    ;;
6362
6363  os2*)
6364    # The test takes a long time on OS/2.
6365    lt_cv_sys_max_cmd_len=8192
6366    ;;
6367
6368  osf*)
6369    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6370    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6371    # nice to cause kernel panics so lets avoid the loop below.
6372    # First set a reasonable default.
6373    lt_cv_sys_max_cmd_len=16384
6374    #
6375    if test -x /sbin/sysconfig; then
6376      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6377        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6378      esac
6379    fi
6380    ;;
6381  sco3.2v5*)
6382    lt_cv_sys_max_cmd_len=102400
6383    ;;
6384  sysv5* | sco5v6* | sysv4.2uw2*)
6385    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6386    if test -n "$kargmax"; then
6387      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6388    else
6389      lt_cv_sys_max_cmd_len=32768
6390    fi
6391    ;;
6392  *)
6393    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6394    if test -n "$lt_cv_sys_max_cmd_len" && \
6395       test undefined != "$lt_cv_sys_max_cmd_len"; then
6396      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398    else
6399      # Make teststring a little bigger before we do anything with it.
6400      # a 1K string should be a reasonable start.
6401      for i in 1 2 3 4 5 6 7 8; do
6402        teststring=$teststring$teststring
6403      done
6404      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6405      # If test is not a shell built-in, we'll probably end up computing a
6406      # maximum length that is only half of the actual maximum length, but
6407      # we can't tell.
6408      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6409	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6410	      test 17 != "$i" # 1/2 MB should be enough
6411      do
6412        i=`expr $i + 1`
6413        teststring=$teststring$teststring
6414      done
6415      # Only check the string length outside the loop.
6416      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6417      teststring=
6418      # Add a significant safety factor because C++ compilers can tack on
6419      # massive amounts of additional arguments before passing them to the
6420      # linker.  It appears as though 1/2 is a usable value.
6421      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6422    fi
6423    ;;
6424  esac
6425
6426fi
6427
6428if test -n "$lt_cv_sys_max_cmd_len"; then
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6430$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6431else
6432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6433$as_echo "none" >&6; }
6434fi
6435max_cmd_len=$lt_cv_sys_max_cmd_len
6436
6437
6438
6439
6440
6441
6442: ${CP="cp -f"}
6443: ${MV="mv -f"}
6444: ${RM="rm -f"}
6445
6446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6447  lt_unset=unset
6448else
6449  lt_unset=false
6450fi
6451
6452
6453
6454
6455
6456# test EBCDIC or ASCII
6457case `echo X|tr X '\101'` in
6458 A) # ASCII based system
6459    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6460  lt_SP2NL='tr \040 \012'
6461  lt_NL2SP='tr \015\012 \040\040'
6462  ;;
6463 *) # EBCDIC based system
6464  lt_SP2NL='tr \100 \n'
6465  lt_NL2SP='tr \r\n \100\100'
6466  ;;
6467esac
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6478$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6479if ${lt_cv_to_host_file_cmd+:} false; then :
6480  $as_echo_n "(cached) " >&6
6481else
6482  case $host in
6483  *-*-mingw* )
6484    case $build in
6485      *-*-mingw* ) # actually msys
6486        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6487        ;;
6488      *-*-cygwin* )
6489        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6490        ;;
6491      * ) # otherwise, assume *nix
6492        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6493        ;;
6494    esac
6495    ;;
6496  *-*-cygwin* )
6497    case $build in
6498      *-*-mingw* ) # actually msys
6499        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6500        ;;
6501      *-*-cygwin* )
6502        lt_cv_to_host_file_cmd=func_convert_file_noop
6503        ;;
6504      * ) # otherwise, assume *nix
6505        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6506        ;;
6507    esac
6508    ;;
6509  * ) # unhandled hosts (and "normal" native builds)
6510    lt_cv_to_host_file_cmd=func_convert_file_noop
6511    ;;
6512esac
6513
6514fi
6515
6516to_host_file_cmd=$lt_cv_to_host_file_cmd
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6518$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6519
6520
6521
6522
6523
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6525$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6526if ${lt_cv_to_tool_file_cmd+:} false; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529  #assume ordinary cross tools, or native build.
6530lt_cv_to_tool_file_cmd=func_convert_file_noop
6531case $host in
6532  *-*-mingw* )
6533    case $build in
6534      *-*-mingw* ) # actually msys
6535        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6536        ;;
6537    esac
6538    ;;
6539esac
6540
6541fi
6542
6543to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6545$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6546
6547
6548
6549
6550
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6552$as_echo_n "checking for $LD option to reload object files... " >&6; }
6553if ${lt_cv_ld_reload_flag+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  lt_cv_ld_reload_flag='-r'
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6559$as_echo "$lt_cv_ld_reload_flag" >&6; }
6560reload_flag=$lt_cv_ld_reload_flag
6561case $reload_flag in
6562"" | " "*) ;;
6563*) reload_flag=" $reload_flag" ;;
6564esac
6565reload_cmds='$LD$reload_flag -o $output$reload_objs'
6566case $host_os in
6567  cygwin* | mingw* | pw32* | cegcc*)
6568    if test yes != "$GCC"; then
6569      reload_cmds=false
6570    fi
6571    ;;
6572  darwin*)
6573    if test yes = "$GCC"; then
6574      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6575    else
6576      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6577    fi
6578    ;;
6579esac
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589if test -n "$ac_tool_prefix"; then
6590  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}objdump; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if ${ac_cv_prog_OBJDUMP+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$OBJDUMP"; then
6598  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617OBJDUMP=$ac_cv_prog_OBJDUMP
6618if test -n "$OBJDUMP"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6620$as_echo "$OBJDUMP" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_OBJDUMP"; then
6629  ac_ct_OBJDUMP=$OBJDUMP
6630  # Extract the first word of "objdump", so it can be a program name with args.
6631set dummy objdump; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$ac_ct_OBJDUMP"; then
6638  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6658if test -n "$ac_ct_OBJDUMP"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6660$as_echo "$ac_ct_OBJDUMP" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_OBJDUMP" = x; then
6667    OBJDUMP="false"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    OBJDUMP=$ac_ct_OBJDUMP
6676  fi
6677else
6678  OBJDUMP="$ac_cv_prog_OBJDUMP"
6679fi
6680
6681test -z "$OBJDUMP" && OBJDUMP=objdump
6682
6683
6684
6685
6686
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6689$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6690if ${lt_cv_deplibs_check_method+:} false; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693  lt_cv_file_magic_cmd='$MAGIC_CMD'
6694lt_cv_file_magic_test_file=
6695lt_cv_deplibs_check_method='unknown'
6696# Need to set the preceding variable on all platforms that support
6697# interlibrary dependencies.
6698# 'none' -- dependencies not supported.
6699# 'unknown' -- same as none, but documents that we really don't know.
6700# 'pass_all' -- all dependencies passed with no checks.
6701# 'test_compile' -- check by making test program.
6702# 'file_magic [[regex]]' -- check by looking for files in library path
6703# that responds to the $file_magic_cmd with a given extended regex.
6704# If you have 'file' or equivalent on your system and you're not sure
6705# whether 'pass_all' will *always* work, you probably want this one.
6706
6707case $host_os in
6708aix[4-9]*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711
6712beos*)
6713  lt_cv_deplibs_check_method=pass_all
6714  ;;
6715
6716bsdi[45]*)
6717  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6718  lt_cv_file_magic_cmd='/usr/bin/file -L'
6719  lt_cv_file_magic_test_file=/shlib/libc.so
6720  ;;
6721
6722cygwin*)
6723  # func_win32_libid is a shell function defined in ltmain.sh
6724  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6725  lt_cv_file_magic_cmd='func_win32_libid'
6726  ;;
6727
6728mingw* | pw32*)
6729  # Base MSYS/MinGW do not provide the 'file' command needed by
6730  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6731  # unless we find 'file', for example because we are cross-compiling.
6732  if ( file / ) >/dev/null 2>&1; then
6733    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6734    lt_cv_file_magic_cmd='func_win32_libid'
6735  else
6736    # Keep this pattern in sync with the one in func_win32_libid.
6737    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6738    lt_cv_file_magic_cmd='$OBJDUMP -f'
6739  fi
6740  ;;
6741
6742cegcc*)
6743  # use the weaker test based on 'objdump'. See mingw*.
6744  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6745  lt_cv_file_magic_cmd='$OBJDUMP -f'
6746  ;;
6747
6748darwin* | rhapsody*)
6749  lt_cv_deplibs_check_method=pass_all
6750  ;;
6751
6752freebsd* | dragonfly*)
6753  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6754    case $host_cpu in
6755    i*86 )
6756      # Not sure whether the presence of OpenBSD here was a mistake.
6757      # Let's accept both of them until this is cleared up.
6758      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6759      lt_cv_file_magic_cmd=/usr/bin/file
6760      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6761      ;;
6762    esac
6763  else
6764    lt_cv_deplibs_check_method=pass_all
6765  fi
6766  ;;
6767
6768haiku*)
6769  lt_cv_deplibs_check_method=pass_all
6770  ;;
6771
6772hpux10.20* | hpux11*)
6773  lt_cv_file_magic_cmd=/usr/bin/file
6774  case $host_cpu in
6775  ia64*)
6776    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6777    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6778    ;;
6779  hppa*64*)
6780    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]'
6781    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6782    ;;
6783  *)
6784    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6785    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6786    ;;
6787  esac
6788  ;;
6789
6790interix[3-9]*)
6791  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6792  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6793  ;;
6794
6795irix5* | irix6* | nonstopux*)
6796  case $LD in
6797  *-32|*"-32 ") libmagic=32-bit;;
6798  *-n32|*"-n32 ") libmagic=N32;;
6799  *-64|*"-64 ") libmagic=64-bit;;
6800  *) libmagic=never-match;;
6801  esac
6802  lt_cv_deplibs_check_method=pass_all
6803  ;;
6804
6805# This must be glibc/ELF.
6806linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6807  lt_cv_deplibs_check_method=pass_all
6808  ;;
6809
6810netbsd* | netbsdelf*-gnu)
6811  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6812    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6813  else
6814    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6815  fi
6816  ;;
6817
6818newos6*)
6819  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6820  lt_cv_file_magic_cmd=/usr/bin/file
6821  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6822  ;;
6823
6824*nto* | *qnx*)
6825  lt_cv_deplibs_check_method=pass_all
6826  ;;
6827
6828openbsd* | bitrig*)
6829  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6830    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6831  else
6832    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6833  fi
6834  ;;
6835
6836osf3* | osf4* | osf5*)
6837  lt_cv_deplibs_check_method=pass_all
6838  ;;
6839
6840rdos*)
6841  lt_cv_deplibs_check_method=pass_all
6842  ;;
6843
6844solaris*)
6845  lt_cv_deplibs_check_method=pass_all
6846  ;;
6847
6848sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6849  lt_cv_deplibs_check_method=pass_all
6850  ;;
6851
6852sysv4 | sysv4.3*)
6853  case $host_vendor in
6854  motorola)
6855    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]'
6856    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6857    ;;
6858  ncr)
6859    lt_cv_deplibs_check_method=pass_all
6860    ;;
6861  sequent)
6862    lt_cv_file_magic_cmd='/bin/file'
6863    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6864    ;;
6865  sni)
6866    lt_cv_file_magic_cmd='/bin/file'
6867    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6868    lt_cv_file_magic_test_file=/lib/libc.so
6869    ;;
6870  siemens)
6871    lt_cv_deplibs_check_method=pass_all
6872    ;;
6873  pc)
6874    lt_cv_deplibs_check_method=pass_all
6875    ;;
6876  esac
6877  ;;
6878
6879tpf*)
6880  lt_cv_deplibs_check_method=pass_all
6881  ;;
6882os2*)
6883  lt_cv_deplibs_check_method=pass_all
6884  ;;
6885esac
6886
6887fi
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6889$as_echo "$lt_cv_deplibs_check_method" >&6; }
6890
6891file_magic_glob=
6892want_nocaseglob=no
6893if test "$build" = "$host"; then
6894  case $host_os in
6895  mingw* | pw32*)
6896    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6897      want_nocaseglob=yes
6898    else
6899      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6900    fi
6901    ;;
6902  esac
6903fi
6904
6905file_magic_cmd=$lt_cv_file_magic_cmd
6906deplibs_check_method=$lt_cv_deplibs_check_method
6907test -z "$deplibs_check_method" && deplibs_check_method=unknown
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930if test -n "$ac_tool_prefix"; then
6931  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if ${ac_cv_prog_DLLTOOL+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  if test -n "$DLLTOOL"; then
6939  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946    for ac_exec_ext in '' $ac_executable_extensions; do
6947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950    break 2
6951  fi
6952done
6953  done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958DLLTOOL=$ac_cv_prog_DLLTOOL
6959if test -n "$DLLTOOL"; then
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6961$as_echo "$DLLTOOL" >&6; }
6962else
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967
6968fi
6969if test -z "$ac_cv_prog_DLLTOOL"; then
6970  ac_ct_DLLTOOL=$DLLTOOL
6971  # Extract the first word of "dlltool", so it can be a program name with args.
6972set dummy dlltool; ac_word=$2
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  if test -n "$ac_ct_DLLTOOL"; then
6979  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984  IFS=$as_save_IFS
6985  test -z "$as_dir" && as_dir=.
6986    for ac_exec_ext in '' $ac_executable_extensions; do
6987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990    break 2
6991  fi
6992done
6993  done
6994IFS=$as_save_IFS
6995
6996fi
6997fi
6998ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6999if test -n "$ac_ct_DLLTOOL"; then
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7001$as_echo "$ac_ct_DLLTOOL" >&6; }
7002else
7003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
7005fi
7006
7007  if test "x$ac_ct_DLLTOOL" = x; then
7008    DLLTOOL="false"
7009  else
7010    case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016    DLLTOOL=$ac_ct_DLLTOOL
7017  fi
7018else
7019  DLLTOOL="$ac_cv_prog_DLLTOOL"
7020fi
7021
7022test -z "$DLLTOOL" && DLLTOOL=dlltool
7023
7024
7025
7026
7027
7028
7029
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7031$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7032if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  lt_cv_sharedlib_from_linklib_cmd='unknown'
7036
7037case $host_os in
7038cygwin* | mingw* | pw32* | cegcc*)
7039  # two different shell functions defined in ltmain.sh;
7040  # decide which one to use based on capabilities of $DLLTOOL
7041  case `$DLLTOOL --help 2>&1` in
7042  *--identify-strict*)
7043    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7044    ;;
7045  *)
7046    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7047    ;;
7048  esac
7049  ;;
7050*)
7051  # fallback: assume linklib IS sharedlib
7052  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7053  ;;
7054esac
7055
7056fi
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7058$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7059sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7060test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7061
7062
7063
7064
7065
7066
7067
7068
7069if test -n "$ac_tool_prefix"; then
7070  for ac_prog in ar
7071  do
7072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if ${ac_cv_prog_AR+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  if test -n "$AR"; then
7080  ac_cv_prog_AR="$AR" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087    for ac_exec_ext in '' $ac_executable_extensions; do
7088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094  done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099AR=$ac_cv_prog_AR
7100if test -n "$AR"; then
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7102$as_echo "$AR" >&6; }
7103else
7104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
7106fi
7107
7108
7109    test -n "$AR" && break
7110  done
7111fi
7112if test -z "$AR"; then
7113  ac_ct_AR=$AR
7114  for ac_prog in ar
7115do
7116  # Extract the first word of "$ac_prog", so it can be a program name with args.
7117set dummy $ac_prog; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if ${ac_cv_prog_ac_ct_AR+:} false; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  if test -n "$ac_ct_AR"; then
7124  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129  IFS=$as_save_IFS
7130  test -z "$as_dir" && as_dir=.
7131    for ac_exec_ext in '' $ac_executable_extensions; do
7132  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133    ac_cv_prog_ac_ct_AR="$ac_prog"
7134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135    break 2
7136  fi
7137done
7138  done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_AR=$ac_cv_prog_ac_ct_AR
7144if test -n "$ac_ct_AR"; then
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7146$as_echo "$ac_ct_AR" >&6; }
7147else
7148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152
7153  test -n "$ac_ct_AR" && break
7154done
7155
7156  if test "x$ac_ct_AR" = x; then
7157    AR="false"
7158  else
7159    case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165    AR=$ac_ct_AR
7166  fi
7167fi
7168
7169: ${AR=ar}
7170: ${AR_FLAGS=cru}
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7183$as_echo_n "checking for archiver @FILE support... " >&6; }
7184if ${lt_cv_ar_at_file+:} false; then :
7185  $as_echo_n "(cached) " >&6
7186else
7187  lt_cv_ar_at_file=no
7188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190
7191int
7192main ()
7193{
7194
7195  ;
7196  return 0;
7197}
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  echo conftest.$ac_objext > conftest.lst
7201      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7202      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7203  (eval $lt_ar_try) 2>&5
7204  ac_status=$?
7205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206  test $ac_status = 0; }
7207      if test 0 -eq "$ac_status"; then
7208	# Ensure the archiver fails upon bogus file names.
7209	rm -f conftest.$ac_objext libconftest.a
7210	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7211  (eval $lt_ar_try) 2>&5
7212  ac_status=$?
7213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214  test $ac_status = 0; }
7215	if test 0 -ne "$ac_status"; then
7216          lt_cv_ar_at_file=@
7217        fi
7218      fi
7219      rm -f conftest.* libconftest.a
7220
7221fi
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223
7224fi
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7226$as_echo "$lt_cv_ar_at_file" >&6; }
7227
7228if test no = "$lt_cv_ar_at_file"; then
7229  archiver_list_spec=
7230else
7231  archiver_list_spec=$lt_cv_ar_at_file
7232fi
7233
7234
7235
7236
7237
7238
7239
7240if test -n "$ac_tool_prefix"; then
7241  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}strip; ac_word=$2
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
7245if ${ac_cv_prog_STRIP+:} false; then :
7246  $as_echo_n "(cached) " >&6
7247else
7248  if test -n "$STRIP"; then
7249  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254  IFS=$as_save_IFS
7255  test -z "$as_dir" && as_dir=.
7256    for ac_exec_ext in '' $ac_executable_extensions; do
7257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260    break 2
7261  fi
7262done
7263  done
7264IFS=$as_save_IFS
7265
7266fi
7267fi
7268STRIP=$ac_cv_prog_STRIP
7269if test -n "$STRIP"; then
7270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7271$as_echo "$STRIP" >&6; }
7272else
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
7275fi
7276
7277
7278fi
7279if test -z "$ac_cv_prog_STRIP"; then
7280  ac_ct_STRIP=$STRIP
7281  # Extract the first word of "strip", so it can be a program name with args.
7282set dummy strip; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  if test -n "$ac_ct_STRIP"; then
7289  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294  IFS=$as_save_IFS
7295  test -z "$as_dir" && as_dir=.
7296    for ac_exec_ext in '' $ac_executable_extensions; do
7297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298    ac_cv_prog_ac_ct_STRIP="strip"
7299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300    break 2
7301  fi
7302done
7303  done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7309if test -n "$ac_ct_STRIP"; then
7310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7311$as_echo "$ac_ct_STRIP" >&6; }
7312else
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317  if test "x$ac_ct_STRIP" = x; then
7318    STRIP=":"
7319  else
7320    case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326    STRIP=$ac_ct_STRIP
7327  fi
7328else
7329  STRIP="$ac_cv_prog_STRIP"
7330fi
7331
7332test -z "$STRIP" && STRIP=:
7333
7334
7335
7336
7337
7338
7339if test -n "$ac_tool_prefix"; then
7340  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_prog_RANLIB+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$RANLIB"; then
7348  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355    for ac_exec_ext in '' $ac_executable_extensions; do
7356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362  done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367RANLIB=$ac_cv_prog_RANLIB
7368if test -n "$RANLIB"; then
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7370$as_echo "$RANLIB" >&6; }
7371else
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377fi
7378if test -z "$ac_cv_prog_RANLIB"; then
7379  ac_ct_RANLIB=$RANLIB
7380  # Extract the first word of "ranlib", so it can be a program name with args.
7381set dummy ranlib; ac_word=$2
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
7384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  if test -n "$ac_ct_RANLIB"; then
7388  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395    for ac_exec_ext in '' $ac_executable_extensions; do
7396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397    ac_cv_prog_ac_ct_RANLIB="ranlib"
7398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402  done
7403IFS=$as_save_IFS
7404
7405fi
7406fi
7407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408if test -n "$ac_ct_RANLIB"; then
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7410$as_echo "$ac_ct_RANLIB" >&6; }
7411else
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
7415
7416  if test "x$ac_ct_RANLIB" = x; then
7417    RANLIB=":"
7418  else
7419    case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425    RANLIB=$ac_ct_RANLIB
7426  fi
7427else
7428  RANLIB="$ac_cv_prog_RANLIB"
7429fi
7430
7431test -z "$RANLIB" && RANLIB=:
7432
7433
7434
7435
7436
7437
7438# Determine commands to create old-style static archives.
7439old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7440old_postinstall_cmds='chmod 644 $oldlib'
7441old_postuninstall_cmds=
7442
7443if test -n "$RANLIB"; then
7444  case $host_os in
7445  bitrig* | openbsd*)
7446    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7447    ;;
7448  *)
7449    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7450    ;;
7451  esac
7452  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7453fi
7454
7455case $host_os in
7456  darwin*)
7457    lock_old_archive_extraction=yes ;;
7458  *)
7459    lock_old_archive_extraction=no ;;
7460esac
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500# If no C compiler was specified, use CC.
7501LTCC=${LTCC-"$CC"}
7502
7503# If no C compiler flags were specified, use CFLAGS.
7504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7505
7506# Allow CC to be a program name with arguments.
7507compiler=$CC
7508
7509
7510# Check for command to grab the raw symbol name followed by C symbol from nm.
7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7513if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7514  $as_echo_n "(cached) " >&6
7515else
7516
7517# These are sane defaults that work on at least a few old systems.
7518# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7519
7520# Character class describing NM global symbol codes.
7521symcode='[BCDEGRST]'
7522
7523# Regexp to match symbols that can be accessed directly from C.
7524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7525
7526# Define system-specific variables.
7527case $host_os in
7528aix*)
7529  symcode='[BCDT]'
7530  ;;
7531cygwin* | mingw* | pw32* | cegcc*)
7532  symcode='[ABCDGISTW]'
7533  ;;
7534hpux*)
7535  if test ia64 = "$host_cpu"; then
7536    symcode='[ABCDEGRST]'
7537  fi
7538  ;;
7539irix* | nonstopux*)
7540  symcode='[BCDEGRST]'
7541  ;;
7542osf*)
7543  symcode='[BCDEGQRST]'
7544  ;;
7545solaris*)
7546  symcode='[BDRT]'
7547  ;;
7548sco3.2v5*)
7549  symcode='[DT]'
7550  ;;
7551sysv4.2uw2*)
7552  symcode='[DT]'
7553  ;;
7554sysv5* | sco5v6* | unixware* | OpenUNIX*)
7555  symcode='[ABDT]'
7556  ;;
7557sysv4)
7558  symcode='[DFNSTU]'
7559  ;;
7560esac
7561
7562# If we're using GNU nm, then use its standard symbol codes.
7563case `$NM -V 2>&1` in
7564*GNU* | *'with BFD'*)
7565  symcode='[ABCDGIRSTW]' ;;
7566esac
7567
7568if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7569  # Gets list of data symbols to import.
7570  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7571  # Adjust the below global symbol transforms to fixup imported variables.
7572  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7573  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7574  lt_c_name_lib_hook="\
7575  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7576  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7577else
7578  # Disable hooks by default.
7579  lt_cv_sys_global_symbol_to_import=
7580  lt_cdecl_hook=
7581  lt_c_name_hook=
7582  lt_c_name_lib_hook=
7583fi
7584
7585# Transform an extracted symbol line into a proper C declaration.
7586# Some systems (esp. on ia64) link data and code symbols differently,
7587# so use this general approach.
7588lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7589$lt_cdecl_hook\
7590" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7591" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7592
7593# Transform an extracted symbol line into symbol name and symbol address
7594lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7595$lt_c_name_hook\
7596" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7597" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7598
7599# Transform an extracted symbol line into symbol name with lib prefix and
7600# symbol address.
7601lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7602$lt_c_name_lib_hook\
7603" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7604" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7605" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7606
7607# Handle CRLF in mingw tool chain
7608opt_cr=
7609case $build_os in
7610mingw*)
7611  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7612  ;;
7613esac
7614
7615# Try without a prefix underscore, then with it.
7616for ac_symprfx in "" "_"; do
7617
7618  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7619  symxfrm="\\1 $ac_symprfx\\2 \\2"
7620
7621  # Write the raw and C identifiers.
7622  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7623    # Fake it for dumpbin and say T for any non-static function,
7624    # D for any global variable and I for any imported variable.
7625    # Also find C++ and __fastcall symbols from MSVC++,
7626    # which start with @ or ?.
7627    lt_cv_sys_global_symbol_pipe="$AWK '"\
7628"     {last_section=section; section=\$ 3};"\
7629"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7630"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7631"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7632"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7633"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7634"     \$ 0!~/External *\|/{next};"\
7635"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7636"     {if(hide[section]) next};"\
7637"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7638"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7639"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7640"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7641"     ' prfx=^$ac_symprfx"
7642  else
7643    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7644  fi
7645  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7646
7647  # Check to see that the pipe works correctly.
7648  pipe_works=no
7649
7650  rm -f conftest*
7651  cat > conftest.$ac_ext <<_LT_EOF
7652#ifdef __cplusplus
7653extern "C" {
7654#endif
7655char nm_test_var;
7656void nm_test_func(void);
7657void nm_test_func(void){}
7658#ifdef __cplusplus
7659}
7660#endif
7661int main(){nm_test_var='a';nm_test_func();return(0);}
7662_LT_EOF
7663
7664  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665  (eval $ac_compile) 2>&5
7666  ac_status=$?
7667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668  test $ac_status = 0; }; then
7669    # Now try to grab the symbols.
7670    nlist=conftest.nm
7671    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7672    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7673      # Try sorting and uniquifying the output.
7674      if sort "$nlist" | uniq > "$nlist"T; then
7675	mv -f "$nlist"T "$nlist"
7676      else
7677	rm -f "$nlist"T
7678      fi
7679
7680      # Make sure that we snagged all the symbols we need.
7681      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7682	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7683	  cat <<_LT_EOF > conftest.$ac_ext
7684/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7685#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7686/* DATA imports from DLLs on WIN32 can't be const, because runtime
7687   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7688# define LT_DLSYM_CONST
7689#elif defined __osf__
7690/* This system does not cope well with relocations in const data.  */
7691# define LT_DLSYM_CONST
7692#else
7693# define LT_DLSYM_CONST const
7694#endif
7695
7696#ifdef __cplusplus
7697extern "C" {
7698#endif
7699
7700_LT_EOF
7701	  # Now generate the symbol file.
7702	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7703
7704	  cat <<_LT_EOF >> conftest.$ac_ext
7705
7706/* The mapping between symbol names and symbols.  */
7707LT_DLSYM_CONST struct {
7708  const char *name;
7709  void       *address;
7710}
7711lt__PROGRAM__LTX_preloaded_symbols[] =
7712{
7713  { "@PROGRAM@", (void *) 0 },
7714_LT_EOF
7715	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7716	  cat <<\_LT_EOF >> conftest.$ac_ext
7717  {0, (void *) 0}
7718};
7719
7720/* This works around a problem in FreeBSD linker */
7721#ifdef FREEBSD_WORKAROUND
7722static const void *lt_preloaded_setup() {
7723  return lt__PROGRAM__LTX_preloaded_symbols;
7724}
7725#endif
7726
7727#ifdef __cplusplus
7728}
7729#endif
7730_LT_EOF
7731	  # Now try linking the two files.
7732	  mv conftest.$ac_objext conftstm.$ac_objext
7733	  lt_globsym_save_LIBS=$LIBS
7734	  lt_globsym_save_CFLAGS=$CFLAGS
7735	  LIBS=conftstm.$ac_objext
7736	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7737	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7738  (eval $ac_link) 2>&5
7739  ac_status=$?
7740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7742	    pipe_works=yes
7743	  fi
7744	  LIBS=$lt_globsym_save_LIBS
7745	  CFLAGS=$lt_globsym_save_CFLAGS
7746	else
7747	  echo "cannot find nm_test_func in $nlist" >&5
7748	fi
7749      else
7750	echo "cannot find nm_test_var in $nlist" >&5
7751      fi
7752    else
7753      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7754    fi
7755  else
7756    echo "$progname: failed program was:" >&5
7757    cat conftest.$ac_ext >&5
7758  fi
7759  rm -rf conftest* conftst*
7760
7761  # Do not use the global_symbol_pipe unless it works.
7762  if test yes = "$pipe_works"; then
7763    break
7764  else
7765    lt_cv_sys_global_symbol_pipe=
7766  fi
7767done
7768
7769fi
7770
7771if test -z "$lt_cv_sys_global_symbol_pipe"; then
7772  lt_cv_sys_global_symbol_to_cdecl=
7773fi
7774if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7776$as_echo "failed" >&6; }
7777else
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7779$as_echo "ok" >&6; }
7780fi
7781
7782# Response file support.
7783if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7784  nm_file_list_spec='@'
7785elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7786  nm_file_list_spec='@'
7787fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7826$as_echo_n "checking for sysroot... " >&6; }
7827
7828# Check whether --with-sysroot was given.
7829if test "${with_sysroot+set}" = set; then :
7830  withval=$with_sysroot;
7831else
7832  with_sysroot=no
7833fi
7834
7835
7836lt_sysroot=
7837case $with_sysroot in #(
7838 yes)
7839   if test yes = "$GCC"; then
7840     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7841   fi
7842   ;; #(
7843 /*)
7844   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7845   ;; #(
7846 no|'')
7847   ;; #(
7848 *)
7849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7850$as_echo "$with_sysroot" >&6; }
7851   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7852   ;;
7853esac
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7856$as_echo "${lt_sysroot:-no}" >&6; }
7857
7858
7859
7860
7861
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7863$as_echo_n "checking for a working dd... " >&6; }
7864if ${ac_cv_path_lt_DD+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867  printf 0123456789abcdef0123456789abcdef >conftest.i
7868cat conftest.i conftest.i >conftest2.i
7869: ${lt_DD:=$DD}
7870if test -z "$lt_DD"; then
7871  ac_path_lt_DD_found=false
7872  # Loop through the user's path and test for each of PROGNAME-LIST
7873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876  IFS=$as_save_IFS
7877  test -z "$as_dir" && as_dir=.
7878    for ac_prog in dd; do
7879    for ac_exec_ext in '' $ac_executable_extensions; do
7880      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7881      as_fn_executable_p "$ac_path_lt_DD" || continue
7882if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7883  cmp -s conftest.i conftest.out \
7884  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7885fi
7886      $ac_path_lt_DD_found && break 3
7887    done
7888  done
7889  done
7890IFS=$as_save_IFS
7891  if test -z "$ac_cv_path_lt_DD"; then
7892    :
7893  fi
7894else
7895  ac_cv_path_lt_DD=$lt_DD
7896fi
7897
7898rm -f conftest.i conftest2.i conftest.out
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7901$as_echo "$ac_cv_path_lt_DD" >&6; }
7902
7903
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7905$as_echo_n "checking how to truncate binary pipes... " >&6; }
7906if ${lt_cv_truncate_bin+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  printf 0123456789abcdef0123456789abcdef >conftest.i
7910cat conftest.i conftest.i >conftest2.i
7911lt_cv_truncate_bin=
7912if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7913  cmp -s conftest.i conftest.out \
7914  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7915fi
7916rm -f conftest.i conftest2.i conftest.out
7917test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7920$as_echo "$lt_cv_truncate_bin" >&6; }
7921
7922
7923
7924
7925
7926
7927
7928# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7929func_cc_basename ()
7930{
7931    for cc_temp in $*""; do
7932      case $cc_temp in
7933        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7934        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7935        \-*) ;;
7936        *) break;;
7937      esac
7938    done
7939    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7940}
7941
7942# Check whether --enable-libtool-lock was given.
7943if test "${enable_libtool_lock+set}" = set; then :
7944  enableval=$enable_libtool_lock;
7945fi
7946
7947test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7948
7949# Some flags need to be propagated to the compiler or linker for good
7950# libtool support.
7951case $host in
7952ia64-*-hpux*)
7953  # Find out what ABI is being produced by ac_compile, and set mode
7954  # options accordingly.
7955  echo 'int i;' > conftest.$ac_ext
7956  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7957  (eval $ac_compile) 2>&5
7958  ac_status=$?
7959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7960  test $ac_status = 0; }; then
7961    case `/usr/bin/file conftest.$ac_objext` in
7962      *ELF-32*)
7963	HPUX_IA64_MODE=32
7964	;;
7965      *ELF-64*)
7966	HPUX_IA64_MODE=64
7967	;;
7968    esac
7969  fi
7970  rm -rf conftest*
7971  ;;
7972*-*-irix6*)
7973  # Find out what ABI is being produced by ac_compile, and set linker
7974  # options accordingly.
7975  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7976  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7977  (eval $ac_compile) 2>&5
7978  ac_status=$?
7979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980  test $ac_status = 0; }; then
7981    if test yes = "$lt_cv_prog_gnu_ld"; then
7982      case `/usr/bin/file conftest.$ac_objext` in
7983	*32-bit*)
7984	  LD="${LD-ld} -melf32bsmip"
7985	  ;;
7986	*N32*)
7987	  LD="${LD-ld} -melf32bmipn32"
7988	  ;;
7989	*64-bit*)
7990	  LD="${LD-ld} -melf64bmip"
7991	;;
7992      esac
7993    else
7994      case `/usr/bin/file conftest.$ac_objext` in
7995	*32-bit*)
7996	  LD="${LD-ld} -32"
7997	  ;;
7998	*N32*)
7999	  LD="${LD-ld} -n32"
8000	  ;;
8001	*64-bit*)
8002	  LD="${LD-ld} -64"
8003	  ;;
8004      esac
8005    fi
8006  fi
8007  rm -rf conftest*
8008  ;;
8009
8010mips64*-*linux*)
8011  # Find out what ABI is being produced by ac_compile, and set linker
8012  # options accordingly.
8013  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8014  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8015  (eval $ac_compile) 2>&5
8016  ac_status=$?
8017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8018  test $ac_status = 0; }; then
8019    emul=elf
8020    case `/usr/bin/file conftest.$ac_objext` in
8021      *32-bit*)
8022	emul="${emul}32"
8023	;;
8024      *64-bit*)
8025	emul="${emul}64"
8026	;;
8027    esac
8028    case `/usr/bin/file conftest.$ac_objext` in
8029      *MSB*)
8030	emul="${emul}btsmip"
8031	;;
8032      *LSB*)
8033	emul="${emul}ltsmip"
8034	;;
8035    esac
8036    case `/usr/bin/file conftest.$ac_objext` in
8037      *N32*)
8038	emul="${emul}n32"
8039	;;
8040    esac
8041    LD="${LD-ld} -m $emul"
8042  fi
8043  rm -rf conftest*
8044  ;;
8045
8046x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8047s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8048  # Find out what ABI is being produced by ac_compile, and set linker
8049  # options accordingly.  Note that the listed cases only cover the
8050  # situations where additional linker options are needed (such as when
8051  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8052  # vice versa); the common cases where no linker options are needed do
8053  # not appear in the list.
8054  echo 'int i;' > conftest.$ac_ext
8055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8056  (eval $ac_compile) 2>&5
8057  ac_status=$?
8058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8059  test $ac_status = 0; }; then
8060    case `/usr/bin/file conftest.o` in
8061      *32-bit*)
8062	case $host in
8063	  x86_64-*kfreebsd*-gnu)
8064	    LD="${LD-ld} -m elf_i386_fbsd"
8065	    ;;
8066	  x86_64-*linux*)
8067	    case `/usr/bin/file conftest.o` in
8068	      *x86-64*)
8069		LD="${LD-ld} -m elf32_x86_64"
8070		;;
8071	      *)
8072		LD="${LD-ld} -m elf_i386"
8073		;;
8074	    esac
8075	    ;;
8076	  powerpc64le-*linux*)
8077	    LD="${LD-ld} -m elf32lppclinux"
8078	    ;;
8079	  powerpc64-*linux*)
8080	    LD="${LD-ld} -m elf32ppclinux"
8081	    ;;
8082	  s390x-*linux*)
8083	    LD="${LD-ld} -m elf_s390"
8084	    ;;
8085	  sparc64-*linux*)
8086	    LD="${LD-ld} -m elf32_sparc"
8087	    ;;
8088	esac
8089	;;
8090      *64-bit*)
8091	case $host in
8092	  x86_64-*kfreebsd*-gnu)
8093	    LD="${LD-ld} -m elf_x86_64_fbsd"
8094	    ;;
8095	  x86_64-*linux*)
8096	    LD="${LD-ld} -m elf_x86_64"
8097	    ;;
8098	  powerpcle-*linux*)
8099	    LD="${LD-ld} -m elf64lppc"
8100	    ;;
8101	  powerpc-*linux*)
8102	    LD="${LD-ld} -m elf64ppc"
8103	    ;;
8104	  s390*-*linux*|s390*-*tpf*)
8105	    LD="${LD-ld} -m elf64_s390"
8106	    ;;
8107	  sparc*-*linux*)
8108	    LD="${LD-ld} -m elf64_sparc"
8109	    ;;
8110	esac
8111	;;
8112    esac
8113  fi
8114  rm -rf conftest*
8115  ;;
8116
8117*-*-sco3.2v5*)
8118  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8119  SAVE_CFLAGS=$CFLAGS
8120  CFLAGS="$CFLAGS -belf"
8121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8122$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8123if ${lt_cv_cc_needs_belf+:} false; then :
8124  $as_echo_n "(cached) " >&6
8125else
8126  ac_ext=c
8127ac_cpp='$CPP $CPPFLAGS'
8128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134
8135int
8136main ()
8137{
8138
8139  ;
8140  return 0;
8141}
8142_ACEOF
8143if ac_fn_c_try_link "$LINENO"; then :
8144  lt_cv_cc_needs_belf=yes
8145else
8146  lt_cv_cc_needs_belf=no
8147fi
8148rm -f core conftest.err conftest.$ac_objext \
8149    conftest$ac_exeext conftest.$ac_ext
8150     ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8158$as_echo "$lt_cv_cc_needs_belf" >&6; }
8159  if test yes != "$lt_cv_cc_needs_belf"; then
8160    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8161    CFLAGS=$SAVE_CFLAGS
8162  fi
8163  ;;
8164*-*solaris*)
8165  # Find out what ABI is being produced by ac_compile, and set linker
8166  # options accordingly.
8167  echo 'int i;' > conftest.$ac_ext
8168  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8169  (eval $ac_compile) 2>&5
8170  ac_status=$?
8171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8172  test $ac_status = 0; }; then
8173    case `/usr/bin/file conftest.o` in
8174    *64-bit*)
8175      case $lt_cv_prog_gnu_ld in
8176      yes*)
8177        case $host in
8178        i?86-*-solaris*|x86_64-*-solaris*)
8179          LD="${LD-ld} -m elf_x86_64"
8180          ;;
8181        sparc*-*-solaris*)
8182          LD="${LD-ld} -m elf64_sparc"
8183          ;;
8184        esac
8185        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8186        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8187          LD=${LD-ld}_sol2
8188        fi
8189        ;;
8190      *)
8191	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8192	  LD="${LD-ld} -64"
8193	fi
8194	;;
8195      esac
8196      ;;
8197    esac
8198  fi
8199  rm -rf conftest*
8200  ;;
8201esac
8202
8203need_locks=$enable_libtool_lock
8204
8205if test -n "$ac_tool_prefix"; then
8206  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8207set dummy ${ac_tool_prefix}mt; ac_word=$2
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  if test -n "$MANIFEST_TOOL"; then
8214  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219  IFS=$as_save_IFS
8220  test -z "$as_dir" && as_dir=.
8221    for ac_exec_ext in '' $ac_executable_extensions; do
8222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225    break 2
8226  fi
8227done
8228  done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8234if test -n "$MANIFEST_TOOL"; then
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8236$as_echo "$MANIFEST_TOOL" >&6; }
8237else
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243fi
8244if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8245  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8246  # Extract the first word of "mt", so it can be a program name with args.
8247set dummy mt; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  if test -n "$ac_ct_MANIFEST_TOOL"; then
8254  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  test -z "$as_dir" && as_dir=.
8261    for ac_exec_ext in '' $ac_executable_extensions; do
8262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8263    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265    break 2
8266  fi
8267done
8268  done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8274if test -n "$ac_ct_MANIFEST_TOOL"; then
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8276$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8277else
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8283    MANIFEST_TOOL=":"
8284  else
8285    case $cross_compiling:$ac_tool_warned in
8286yes:)
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289ac_tool_warned=yes ;;
8290esac
8291    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8292  fi
8293else
8294  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8295fi
8296
8297test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8299$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8300if ${lt_cv_path_mainfest_tool+:} false; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303  lt_cv_path_mainfest_tool=no
8304  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8305  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8306  cat conftest.err >&5
8307  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8308    lt_cv_path_mainfest_tool=yes
8309  fi
8310  rm -f conftest*
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8313$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8314if test yes != "$lt_cv_path_mainfest_tool"; then
8315  MANIFEST_TOOL=:
8316fi
8317
8318
8319
8320
8321
8322
8323  case $host_os in
8324    rhapsody* | darwin*)
8325    if test -n "$ac_tool_prefix"; then
8326  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8327set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329$as_echo_n "checking for $ac_word... " >&6; }
8330if ${ac_cv_prog_DSYMUTIL+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  if test -n "$DSYMUTIL"; then
8334  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8335else
8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339  IFS=$as_save_IFS
8340  test -z "$as_dir" && as_dir=.
8341    for ac_exec_ext in '' $ac_executable_extensions; do
8342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345    break 2
8346  fi
8347done
8348  done
8349IFS=$as_save_IFS
8350
8351fi
8352fi
8353DSYMUTIL=$ac_cv_prog_DSYMUTIL
8354if test -n "$DSYMUTIL"; then
8355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8356$as_echo "$DSYMUTIL" >&6; }
8357else
8358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359$as_echo "no" >&6; }
8360fi
8361
8362
8363fi
8364if test -z "$ac_cv_prog_DSYMUTIL"; then
8365  ac_ct_DSYMUTIL=$DSYMUTIL
8366  # Extract the first word of "dsymutil", so it can be a program name with args.
8367set dummy dsymutil; ac_word=$2
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373  if test -n "$ac_ct_DSYMUTIL"; then
8374  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379  IFS=$as_save_IFS
8380  test -z "$as_dir" && as_dir=.
8381    for ac_exec_ext in '' $ac_executable_extensions; do
8382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385    break 2
8386  fi
8387done
8388  done
8389IFS=$as_save_IFS
8390
8391fi
8392fi
8393ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8394if test -n "$ac_ct_DSYMUTIL"; then
8395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8396$as_echo "$ac_ct_DSYMUTIL" >&6; }
8397else
8398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
8400fi
8401
8402  if test "x$ac_ct_DSYMUTIL" = x; then
8403    DSYMUTIL=":"
8404  else
8405    case $cross_compiling:$ac_tool_warned in
8406yes:)
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409ac_tool_warned=yes ;;
8410esac
8411    DSYMUTIL=$ac_ct_DSYMUTIL
8412  fi
8413else
8414  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8415fi
8416
8417    if test -n "$ac_tool_prefix"; then
8418  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8419set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421$as_echo_n "checking for $ac_word... " >&6; }
8422if ${ac_cv_prog_NMEDIT+:} false; then :
8423  $as_echo_n "(cached) " >&6
8424else
8425  if test -n "$NMEDIT"; then
8426  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8427else
8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431  IFS=$as_save_IFS
8432  test -z "$as_dir" && as_dir=.
8433    for ac_exec_ext in '' $ac_executable_extensions; do
8434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8435    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437    break 2
8438  fi
8439done
8440  done
8441IFS=$as_save_IFS
8442
8443fi
8444fi
8445NMEDIT=$ac_cv_prog_NMEDIT
8446if test -n "$NMEDIT"; then
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8448$as_echo "$NMEDIT" >&6; }
8449else
8450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
8452fi
8453
8454
8455fi
8456if test -z "$ac_cv_prog_NMEDIT"; then
8457  ac_ct_NMEDIT=$NMEDIT
8458  # Extract the first word of "nmedit", so it can be a program name with args.
8459set dummy nmedit; ac_word=$2
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8463  $as_echo_n "(cached) " >&6
8464else
8465  if test -n "$ac_ct_NMEDIT"; then
8466  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8467else
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471  IFS=$as_save_IFS
8472  test -z "$as_dir" && as_dir=.
8473    for ac_exec_ext in '' $ac_executable_extensions; do
8474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477    break 2
8478  fi
8479done
8480  done
8481IFS=$as_save_IFS
8482
8483fi
8484fi
8485ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8486if test -n "$ac_ct_NMEDIT"; then
8487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8488$as_echo "$ac_ct_NMEDIT" >&6; }
8489else
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
8492fi
8493
8494  if test "x$ac_ct_NMEDIT" = x; then
8495    NMEDIT=":"
8496  else
8497    case $cross_compiling:$ac_tool_warned in
8498yes:)
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501ac_tool_warned=yes ;;
8502esac
8503    NMEDIT=$ac_ct_NMEDIT
8504  fi
8505else
8506  NMEDIT="$ac_cv_prog_NMEDIT"
8507fi
8508
8509    if test -n "$ac_tool_prefix"; then
8510  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8511set dummy ${ac_tool_prefix}lipo; ac_word=$2
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513$as_echo_n "checking for $ac_word... " >&6; }
8514if ${ac_cv_prog_LIPO+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  if test -n "$LIPO"; then
8518  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8519else
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523  IFS=$as_save_IFS
8524  test -z "$as_dir" && as_dir=.
8525    for ac_exec_ext in '' $ac_executable_extensions; do
8526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529    break 2
8530  fi
8531done
8532  done
8533IFS=$as_save_IFS
8534
8535fi
8536fi
8537LIPO=$ac_cv_prog_LIPO
8538if test -n "$LIPO"; then
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8540$as_echo "$LIPO" >&6; }
8541else
8542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8545
8546
8547fi
8548if test -z "$ac_cv_prog_LIPO"; then
8549  ac_ct_LIPO=$LIPO
8550  # Extract the first word of "lipo", so it can be a program name with args.
8551set dummy lipo; ac_word=$2
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  if test -n "$ac_ct_LIPO"; then
8558  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8559else
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563  IFS=$as_save_IFS
8564  test -z "$as_dir" && as_dir=.
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_ac_ct_LIPO="lipo"
8568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
8577ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8578if test -n "$ac_ct_LIPO"; then
8579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8580$as_echo "$ac_ct_LIPO" >&6; }
8581else
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
8584fi
8585
8586  if test "x$ac_ct_LIPO" = x; then
8587    LIPO=":"
8588  else
8589    case $cross_compiling:$ac_tool_warned in
8590yes:)
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593ac_tool_warned=yes ;;
8594esac
8595    LIPO=$ac_ct_LIPO
8596  fi
8597else
8598  LIPO="$ac_cv_prog_LIPO"
8599fi
8600
8601    if test -n "$ac_tool_prefix"; then
8602  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8603set dummy ${ac_tool_prefix}otool; ac_word=$2
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605$as_echo_n "checking for $ac_word... " >&6; }
8606if ${ac_cv_prog_OTOOL+:} false; then :
8607  $as_echo_n "(cached) " >&6
8608else
8609  if test -n "$OTOOL"; then
8610  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8611else
8612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615  IFS=$as_save_IFS
8616  test -z "$as_dir" && as_dir=.
8617    for ac_exec_ext in '' $ac_executable_extensions; do
8618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621    break 2
8622  fi
8623done
8624  done
8625IFS=$as_save_IFS
8626
8627fi
8628fi
8629OTOOL=$ac_cv_prog_OTOOL
8630if test -n "$OTOOL"; then
8631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8632$as_echo "$OTOOL" >&6; }
8633else
8634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635$as_echo "no" >&6; }
8636fi
8637
8638
8639fi
8640if test -z "$ac_cv_prog_OTOOL"; then
8641  ac_ct_OTOOL=$OTOOL
8642  # Extract the first word of "otool", so it can be a program name with args.
8643set dummy otool; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  if test -n "$ac_ct_OTOOL"; then
8650  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655  IFS=$as_save_IFS
8656  test -z "$as_dir" && as_dir=.
8657    for ac_exec_ext in '' $ac_executable_extensions; do
8658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659    ac_cv_prog_ac_ct_OTOOL="otool"
8660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661    break 2
8662  fi
8663done
8664  done
8665IFS=$as_save_IFS
8666
8667fi
8668fi
8669ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8670if test -n "$ac_ct_OTOOL"; then
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8672$as_echo "$ac_ct_OTOOL" >&6; }
8673else
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678  if test "x$ac_ct_OTOOL" = x; then
8679    OTOOL=":"
8680  else
8681    case $cross_compiling:$ac_tool_warned in
8682yes:)
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8685ac_tool_warned=yes ;;
8686esac
8687    OTOOL=$ac_ct_OTOOL
8688  fi
8689else
8690  OTOOL="$ac_cv_prog_OTOOL"
8691fi
8692
8693    if test -n "$ac_tool_prefix"; then
8694  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8695set dummy ${ac_tool_prefix}otool64; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if ${ac_cv_prog_OTOOL64+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  if test -n "$OTOOL64"; then
8702  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707  IFS=$as_save_IFS
8708  test -z "$as_dir" && as_dir=.
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721OTOOL64=$ac_cv_prog_OTOOL64
8722if test -n "$OTOOL64"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8724$as_echo "$OTOOL64" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730
8731fi
8732if test -z "$ac_cv_prog_OTOOL64"; then
8733  ac_ct_OTOOL64=$OTOOL64
8734  # Extract the first word of "otool64", so it can be a program name with args.
8735set dummy otool64; ac_word=$2
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737$as_echo_n "checking for $ac_word... " >&6; }
8738if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8739  $as_echo_n "(cached) " >&6
8740else
8741  if test -n "$ac_ct_OTOOL64"; then
8742  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8743else
8744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747  IFS=$as_save_IFS
8748  test -z "$as_dir" && as_dir=.
8749    for ac_exec_ext in '' $ac_executable_extensions; do
8750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751    ac_cv_prog_ac_ct_OTOOL64="otool64"
8752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753    break 2
8754  fi
8755done
8756  done
8757IFS=$as_save_IFS
8758
8759fi
8760fi
8761ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8762if test -n "$ac_ct_OTOOL64"; then
8763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8764$as_echo "$ac_ct_OTOOL64" >&6; }
8765else
8766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767$as_echo "no" >&6; }
8768fi
8769
8770  if test "x$ac_ct_OTOOL64" = x; then
8771    OTOOL64=":"
8772  else
8773    case $cross_compiling:$ac_tool_warned in
8774yes:)
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777ac_tool_warned=yes ;;
8778esac
8779    OTOOL64=$ac_ct_OTOOL64
8780  fi
8781else
8782  OTOOL64="$ac_cv_prog_OTOOL64"
8783fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8812$as_echo_n "checking for -single_module linker flag... " >&6; }
8813if ${lt_cv_apple_cc_single_mod+:} false; then :
8814  $as_echo_n "(cached) " >&6
8815else
8816  lt_cv_apple_cc_single_mod=no
8817      if test -z "$LT_MULTI_MODULE"; then
8818	# By default we will add the -single_module flag. You can override
8819	# by either setting the environment variable LT_MULTI_MODULE
8820	# non-empty at configure time, or by adding -multi_module to the
8821	# link flags.
8822	rm -rf libconftest.dylib*
8823	echo "int foo(void){return 1;}" > conftest.c
8824	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8825-dynamiclib -Wl,-single_module conftest.c" >&5
8826	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8827	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8828        _lt_result=$?
8829	# If there is a non-empty error log, and "single_module"
8830	# appears in it, assume the flag caused a linker warning
8831        if test -s conftest.err && $GREP single_module conftest.err; then
8832	  cat conftest.err >&5
8833	# Otherwise, if the output was created with a 0 exit code from
8834	# the compiler, it worked.
8835	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8836	  lt_cv_apple_cc_single_mod=yes
8837	else
8838	  cat conftest.err >&5
8839	fi
8840	rm -rf libconftest.dylib*
8841	rm -f conftest.*
8842      fi
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8845$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8846
8847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8848$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8849if ${lt_cv_ld_exported_symbols_list+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  lt_cv_ld_exported_symbols_list=no
8853      save_LDFLAGS=$LDFLAGS
8854      echo "_main" > conftest.sym
8855      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857/* end confdefs.h.  */
8858
8859int
8860main ()
8861{
8862
8863  ;
8864  return 0;
8865}
8866_ACEOF
8867if ac_fn_c_try_link "$LINENO"; then :
8868  lt_cv_ld_exported_symbols_list=yes
8869else
8870  lt_cv_ld_exported_symbols_list=no
8871fi
8872rm -f core conftest.err conftest.$ac_objext \
8873    conftest$ac_exeext conftest.$ac_ext
8874	LDFLAGS=$save_LDFLAGS
8875
8876fi
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8878$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8879
8880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8881$as_echo_n "checking for -force_load linker flag... " >&6; }
8882if ${lt_cv_ld_force_load+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  lt_cv_ld_force_load=no
8886      cat > conftest.c << _LT_EOF
8887int forced_loaded() { return 2;}
8888_LT_EOF
8889      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8890      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8891      echo "$AR cru libconftest.a conftest.o" >&5
8892      $AR cru libconftest.a conftest.o 2>&5
8893      echo "$RANLIB libconftest.a" >&5
8894      $RANLIB libconftest.a 2>&5
8895      cat > conftest.c << _LT_EOF
8896int main() { return 0;}
8897_LT_EOF
8898      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8899      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8900      _lt_result=$?
8901      if test -s conftest.err && $GREP force_load conftest.err; then
8902	cat conftest.err >&5
8903      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8904	lt_cv_ld_force_load=yes
8905      else
8906	cat conftest.err >&5
8907      fi
8908        rm -f conftest.err libconftest.a conftest conftest.c
8909        rm -rf conftest.dSYM
8910
8911fi
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8913$as_echo "$lt_cv_ld_force_load" >&6; }
8914    case $host_os in
8915    rhapsody* | darwin1.[012])
8916      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8917    darwin1.*)
8918      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8919    darwin*) # darwin 5.x on
8920      # if running on 10.5 or later, the deployment target defaults
8921      # to the OS version, if on x86, and 10.4, the deployment
8922      # target defaults to 10.4. Don't you love it?
8923      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8924	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8925	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8926	10.[012][,.]*)
8927	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8928	10.*)
8929	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8930      esac
8931    ;;
8932  esac
8933    if test yes = "$lt_cv_apple_cc_single_mod"; then
8934      _lt_dar_single_mod='$single_module'
8935    fi
8936    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8937      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8938    else
8939      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8940    fi
8941    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8942      _lt_dsymutil='~$DSYMUTIL $lib || :'
8943    else
8944      _lt_dsymutil=
8945    fi
8946    ;;
8947  esac
8948
8949# func_munge_path_list VARIABLE PATH
8950# -----------------------------------
8951# VARIABLE is name of variable containing _space_ separated list of
8952# directories to be munged by the contents of PATH, which is string
8953# having a format:
8954# "DIR[:DIR]:"
8955#       string "DIR[ DIR]" will be prepended to VARIABLE
8956# ":DIR[:DIR]"
8957#       string "DIR[ DIR]" will be appended to VARIABLE
8958# "DIRP[:DIRP]::[DIRA:]DIRA"
8959#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8960#       "DIRA[ DIRA]" will be appended to VARIABLE
8961# "DIR[:DIR]"
8962#       VARIABLE will be replaced by "DIR[ DIR]"
8963func_munge_path_list ()
8964{
8965    case x$2 in
8966    x)
8967        ;;
8968    *:)
8969        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8970        ;;
8971    x:*)
8972        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8973        ;;
8974    *::*)
8975        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8976        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8977        ;;
8978    *)
8979        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8980        ;;
8981    esac
8982}
8983
8984ac_ext=c
8985ac_cpp='$CPP $CPPFLAGS'
8986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8990$as_echo_n "checking how to run the C preprocessor... " >&6; }
8991# On Suns, sometimes $CPP names a directory.
8992if test -n "$CPP" && test -d "$CPP"; then
8993  CPP=
8994fi
8995if test -z "$CPP"; then
8996  if ${ac_cv_prog_CPP+:} false; then :
8997  $as_echo_n "(cached) " >&6
8998else
8999      # Double quotes because CPP needs to be expanded
9000    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9001    do
9002      ac_preproc_ok=false
9003for ac_c_preproc_warn_flag in '' yes
9004do
9005  # Use a header file that comes with gcc, so configuring glibc
9006  # with a fresh cross-compiler works.
9007  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008  # <limits.h> exists even on freestanding compilers.
9009  # On the NeXT, cc -E runs the code through the compiler's parser,
9010  # not just through cpp. "Syntax error" is here to catch this case.
9011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012/* end confdefs.h.  */
9013#ifdef __STDC__
9014# include <limits.h>
9015#else
9016# include <assert.h>
9017#endif
9018		     Syntax error
9019_ACEOF
9020if ac_fn_c_try_cpp "$LINENO"; then :
9021
9022else
9023  # Broken: fails on valid input.
9024continue
9025fi
9026rm -f conftest.err conftest.i conftest.$ac_ext
9027
9028  # OK, works on sane cases.  Now check whether nonexistent headers
9029  # can be detected and how.
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032#include <ac_nonexistent.h>
9033_ACEOF
9034if ac_fn_c_try_cpp "$LINENO"; then :
9035  # Broken: success on invalid input.
9036continue
9037else
9038  # Passes both tests.
9039ac_preproc_ok=:
9040break
9041fi
9042rm -f conftest.err conftest.i conftest.$ac_ext
9043
9044done
9045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9046rm -f conftest.i conftest.err conftest.$ac_ext
9047if $ac_preproc_ok; then :
9048  break
9049fi
9050
9051    done
9052    ac_cv_prog_CPP=$CPP
9053
9054fi
9055  CPP=$ac_cv_prog_CPP
9056else
9057  ac_cv_prog_CPP=$CPP
9058fi
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9060$as_echo "$CPP" >&6; }
9061ac_preproc_ok=false
9062for ac_c_preproc_warn_flag in '' yes
9063do
9064  # Use a header file that comes with gcc, so configuring glibc
9065  # with a fresh cross-compiler works.
9066  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067  # <limits.h> exists even on freestanding compilers.
9068  # On the NeXT, cc -E runs the code through the compiler's parser,
9069  # not just through cpp. "Syntax error" is here to catch this case.
9070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072#ifdef __STDC__
9073# include <limits.h>
9074#else
9075# include <assert.h>
9076#endif
9077		     Syntax error
9078_ACEOF
9079if ac_fn_c_try_cpp "$LINENO"; then :
9080
9081else
9082  # Broken: fails on valid input.
9083continue
9084fi
9085rm -f conftest.err conftest.i conftest.$ac_ext
9086
9087  # OK, works on sane cases.  Now check whether nonexistent headers
9088  # can be detected and how.
9089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090/* end confdefs.h.  */
9091#include <ac_nonexistent.h>
9092_ACEOF
9093if ac_fn_c_try_cpp "$LINENO"; then :
9094  # Broken: success on invalid input.
9095continue
9096else
9097  # Passes both tests.
9098ac_preproc_ok=:
9099break
9100fi
9101rm -f conftest.err conftest.i conftest.$ac_ext
9102
9103done
9104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9105rm -f conftest.i conftest.err conftest.$ac_ext
9106if $ac_preproc_ok; then :
9107
9108else
9109  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9111as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9112See \`config.log' for more details" "$LINENO" 5; }
9113fi
9114
9115ac_ext=c
9116ac_cpp='$CPP $CPPFLAGS'
9117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9119ac_compiler_gnu=$ac_cv_c_compiler_gnu
9120
9121
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9123$as_echo_n "checking for ANSI C header files... " >&6; }
9124if ${ac_cv_header_stdc+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128/* end confdefs.h.  */
9129#include <stdlib.h>
9130#include <stdarg.h>
9131#include <string.h>
9132#include <float.h>
9133
9134int
9135main ()
9136{
9137
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"; then :
9143  ac_cv_header_stdc=yes
9144else
9145  ac_cv_header_stdc=no
9146fi
9147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148
9149if test $ac_cv_header_stdc = yes; then
9150  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153#include <string.h>
9154
9155_ACEOF
9156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9157  $EGREP "memchr" >/dev/null 2>&1; then :
9158
9159else
9160  ac_cv_header_stdc=no
9161fi
9162rm -f conftest*
9163
9164fi
9165
9166if test $ac_cv_header_stdc = yes; then
9167  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169/* end confdefs.h.  */
9170#include <stdlib.h>
9171
9172_ACEOF
9173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9174  $EGREP "free" >/dev/null 2>&1; then :
9175
9176else
9177  ac_cv_header_stdc=no
9178fi
9179rm -f conftest*
9180
9181fi
9182
9183if test $ac_cv_header_stdc = yes; then
9184  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9185  if test "$cross_compiling" = yes; then :
9186  :
9187else
9188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190#include <ctype.h>
9191#include <stdlib.h>
9192#if ((' ' & 0x0FF) == 0x020)
9193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9195#else
9196# define ISLOWER(c) \
9197		   (('a' <= (c) && (c) <= 'i') \
9198		     || ('j' <= (c) && (c) <= 'r') \
9199		     || ('s' <= (c) && (c) <= 'z'))
9200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9201#endif
9202
9203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9204int
9205main ()
9206{
9207  int i;
9208  for (i = 0; i < 256; i++)
9209    if (XOR (islower (i), ISLOWER (i))
9210	|| toupper (i) != TOUPPER (i))
9211      return 2;
9212  return 0;
9213}
9214_ACEOF
9215if ac_fn_c_try_run "$LINENO"; then :
9216
9217else
9218  ac_cv_header_stdc=no
9219fi
9220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9221  conftest.$ac_objext conftest.beam conftest.$ac_ext
9222fi
9223
9224fi
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9227$as_echo "$ac_cv_header_stdc" >&6; }
9228if test $ac_cv_header_stdc = yes; then
9229
9230$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9231
9232fi
9233
9234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9235for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9236		  inttypes.h stdint.h unistd.h
9237do :
9238  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9239ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9240"
9241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9242  cat >>confdefs.h <<_ACEOF
9243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244_ACEOF
9245
9246fi
9247
9248done
9249
9250
9251for ac_header in dlfcn.h
9252do :
9253  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9254"
9255if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9256  cat >>confdefs.h <<_ACEOF
9257#define HAVE_DLFCN_H 1
9258_ACEOF
9259
9260fi
9261
9262done
9263
9264
9265  GST_CURRENT=1602
9266  GST_REVISION=0
9267  GST_AGE=1602
9268  GST_LIBVERSION=1602:0:1602
9269
9270
9271
9272
9273
9274  GST_LT_LDFLAGS="$GST_LT_LDFLAGS -version-info $GST_LIBVERSION"
9275  if test ! -z ""
9276  then
9277    GST_LT_LDFLAGS="$GST_LT_LDFLAGS -release "
9278  fi
9279
9280
9281
9282
9283
9284
9285
9286# Set options
9287enable_dlopen=yes
9288enable_win32_dll=yes
9289
9290case $host in
9291*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9292  if test -n "$ac_tool_prefix"; then
9293  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9294set dummy ${ac_tool_prefix}as; ac_word=$2
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296$as_echo_n "checking for $ac_word... " >&6; }
9297if ${ac_cv_prog_AS+:} false; then :
9298  $as_echo_n "(cached) " >&6
9299else
9300  if test -n "$AS"; then
9301  ac_cv_prog_AS="$AS" # Let the user override the test.
9302else
9303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304for as_dir in $PATH
9305do
9306  IFS=$as_save_IFS
9307  test -z "$as_dir" && as_dir=.
9308    for ac_exec_ext in '' $ac_executable_extensions; do
9309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9310    ac_cv_prog_AS="${ac_tool_prefix}as"
9311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312    break 2
9313  fi
9314done
9315  done
9316IFS=$as_save_IFS
9317
9318fi
9319fi
9320AS=$ac_cv_prog_AS
9321if test -n "$AS"; then
9322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9323$as_echo "$AS" >&6; }
9324else
9325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9326$as_echo "no" >&6; }
9327fi
9328
9329
9330fi
9331if test -z "$ac_cv_prog_AS"; then
9332  ac_ct_AS=$AS
9333  # Extract the first word of "as", so it can be a program name with args.
9334set dummy as; ac_word=$2
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if ${ac_cv_prog_ac_ct_AS+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  if test -n "$ac_ct_AS"; then
9341  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346  IFS=$as_save_IFS
9347  test -z "$as_dir" && as_dir=.
9348    for ac_exec_ext in '' $ac_executable_extensions; do
9349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350    ac_cv_prog_ac_ct_AS="as"
9351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352    break 2
9353  fi
9354done
9355  done
9356IFS=$as_save_IFS
9357
9358fi
9359fi
9360ac_ct_AS=$ac_cv_prog_ac_ct_AS
9361if test -n "$ac_ct_AS"; then
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9363$as_echo "$ac_ct_AS" >&6; }
9364else
9365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
9367fi
9368
9369  if test "x$ac_ct_AS" = x; then
9370    AS="false"
9371  else
9372    case $cross_compiling:$ac_tool_warned in
9373yes:)
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9376ac_tool_warned=yes ;;
9377esac
9378    AS=$ac_ct_AS
9379  fi
9380else
9381  AS="$ac_cv_prog_AS"
9382fi
9383
9384  if test -n "$ac_tool_prefix"; then
9385  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9386set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388$as_echo_n "checking for $ac_word... " >&6; }
9389if ${ac_cv_prog_DLLTOOL+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  if test -n "$DLLTOOL"; then
9393  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398  IFS=$as_save_IFS
9399  test -z "$as_dir" && as_dir=.
9400    for ac_exec_ext in '' $ac_executable_extensions; do
9401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404    break 2
9405  fi
9406done
9407  done
9408IFS=$as_save_IFS
9409
9410fi
9411fi
9412DLLTOOL=$ac_cv_prog_DLLTOOL
9413if test -n "$DLLTOOL"; then
9414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9415$as_echo "$DLLTOOL" >&6; }
9416else
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418$as_echo "no" >&6; }
9419fi
9420
9421
9422fi
9423if test -z "$ac_cv_prog_DLLTOOL"; then
9424  ac_ct_DLLTOOL=$DLLTOOL
9425  # Extract the first word of "dlltool", so it can be a program name with args.
9426set dummy dlltool; ac_word=$2
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  if test -n "$ac_ct_DLLTOOL"; then
9433  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9434else
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438  IFS=$as_save_IFS
9439  test -z "$as_dir" && as_dir=.
9440    for ac_exec_ext in '' $ac_executable_extensions; do
9441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9444    break 2
9445  fi
9446done
9447  done
9448IFS=$as_save_IFS
9449
9450fi
9451fi
9452ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9453if test -n "$ac_ct_DLLTOOL"; then
9454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9455$as_echo "$ac_ct_DLLTOOL" >&6; }
9456else
9457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
9459fi
9460
9461  if test "x$ac_ct_DLLTOOL" = x; then
9462    DLLTOOL="false"
9463  else
9464    case $cross_compiling:$ac_tool_warned in
9465yes:)
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468ac_tool_warned=yes ;;
9469esac
9470    DLLTOOL=$ac_ct_DLLTOOL
9471  fi
9472else
9473  DLLTOOL="$ac_cv_prog_DLLTOOL"
9474fi
9475
9476  if test -n "$ac_tool_prefix"; then
9477  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9478set dummy ${ac_tool_prefix}objdump; ac_word=$2
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480$as_echo_n "checking for $ac_word... " >&6; }
9481if ${ac_cv_prog_OBJDUMP+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  if test -n "$OBJDUMP"; then
9485  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9486else
9487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9488for as_dir in $PATH
9489do
9490  IFS=$as_save_IFS
9491  test -z "$as_dir" && as_dir=.
9492    for ac_exec_ext in '' $ac_executable_extensions; do
9493  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9494    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9496    break 2
9497  fi
9498done
9499  done
9500IFS=$as_save_IFS
9501
9502fi
9503fi
9504OBJDUMP=$ac_cv_prog_OBJDUMP
9505if test -n "$OBJDUMP"; then
9506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9507$as_echo "$OBJDUMP" >&6; }
9508else
9509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510$as_echo "no" >&6; }
9511fi
9512
9513
9514fi
9515if test -z "$ac_cv_prog_OBJDUMP"; then
9516  ac_ct_OBJDUMP=$OBJDUMP
9517  # Extract the first word of "objdump", so it can be a program name with args.
9518set dummy objdump; ac_word=$2
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520$as_echo_n "checking for $ac_word... " >&6; }
9521if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  if test -n "$ac_ct_OBJDUMP"; then
9525  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9526else
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530  IFS=$as_save_IFS
9531  test -z "$as_dir" && as_dir=.
9532    for ac_exec_ext in '' $ac_executable_extensions; do
9533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536    break 2
9537  fi
9538done
9539  done
9540IFS=$as_save_IFS
9541
9542fi
9543fi
9544ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9545if test -n "$ac_ct_OBJDUMP"; then
9546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9547$as_echo "$ac_ct_OBJDUMP" >&6; }
9548else
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550$as_echo "no" >&6; }
9551fi
9552
9553  if test "x$ac_ct_OBJDUMP" = x; then
9554    OBJDUMP="false"
9555  else
9556    case $cross_compiling:$ac_tool_warned in
9557yes:)
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9560ac_tool_warned=yes ;;
9561esac
9562    OBJDUMP=$ac_ct_OBJDUMP
9563  fi
9564else
9565  OBJDUMP="$ac_cv_prog_OBJDUMP"
9566fi
9567
9568  ;;
9569esac
9570
9571test -z "$AS" && AS=as
9572
9573
9574
9575
9576
9577test -z "$DLLTOOL" && DLLTOOL=dlltool
9578
9579
9580
9581
9582
9583test -z "$OBJDUMP" && OBJDUMP=objdump
9584
9585
9586
9587
9588# Check whether --enable-static was given.
9589if test "${enable_static+set}" = set; then :
9590  enableval=$enable_static; p=${PACKAGE-default}
9591    case $enableval in
9592    yes) enable_static=yes ;;
9593    no) enable_static=no ;;
9594    *)
9595     enable_static=no
9596      # Look at the argument we got.  We use all the common list separators.
9597      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9598      for pkg in $enableval; do
9599	IFS=$lt_save_ifs
9600	if test "X$pkg" = "X$p"; then
9601	  enable_static=yes
9602	fi
9603      done
9604      IFS=$lt_save_ifs
9605      ;;
9606    esac
9607else
9608  enable_static=no
9609fi
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622            # Check whether --enable-shared was given.
9623if test "${enable_shared+set}" = set; then :
9624  enableval=$enable_shared; p=${PACKAGE-default}
9625    case $enableval in
9626    yes) enable_shared=yes ;;
9627    no) enable_shared=no ;;
9628    *)
9629      enable_shared=no
9630      # Look at the argument we got.  We use all the common list separators.
9631      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9632      for pkg in $enableval; do
9633	IFS=$lt_save_ifs
9634	if test "X$pkg" = "X$p"; then
9635	  enable_shared=yes
9636	fi
9637      done
9638      IFS=$lt_save_ifs
9639      ;;
9640    esac
9641else
9642  enable_shared=yes
9643fi
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655# Check whether --with-pic was given.
9656if test "${with_pic+set}" = set; then :
9657  withval=$with_pic; lt_p=${PACKAGE-default}
9658    case $withval in
9659    yes|no) pic_mode=$withval ;;
9660    *)
9661      pic_mode=default
9662      # Look at the argument we got.  We use all the common list separators.
9663      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9664      for lt_pkg in $withval; do
9665	IFS=$lt_save_ifs
9666	if test "X$lt_pkg" = "X$lt_p"; then
9667	  pic_mode=yes
9668	fi
9669      done
9670      IFS=$lt_save_ifs
9671      ;;
9672    esac
9673else
9674  pic_mode=default
9675fi
9676
9677
9678
9679
9680
9681
9682
9683
9684  # Check whether --enable-fast-install was given.
9685if test "${enable_fast_install+set}" = set; then :
9686  enableval=$enable_fast_install; p=${PACKAGE-default}
9687    case $enableval in
9688    yes) enable_fast_install=yes ;;
9689    no) enable_fast_install=no ;;
9690    *)
9691      enable_fast_install=no
9692      # Look at the argument we got.  We use all the common list separators.
9693      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9694      for pkg in $enableval; do
9695	IFS=$lt_save_ifs
9696	if test "X$pkg" = "X$p"; then
9697	  enable_fast_install=yes
9698	fi
9699      done
9700      IFS=$lt_save_ifs
9701      ;;
9702    esac
9703else
9704  enable_fast_install=yes
9705fi
9706
9707
9708
9709
9710
9711
9712
9713
9714  shared_archive_member_spec=
9715case $host,$enable_shared in
9716power*-*-aix[5-9]*,yes)
9717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9718$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9719
9720# Check whether --with-aix-soname was given.
9721if test "${with_aix_soname+set}" = set; then :
9722  withval=$with_aix_soname; case $withval in
9723    aix|svr4|both)
9724      ;;
9725    *)
9726      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9727      ;;
9728    esac
9729    lt_cv_with_aix_soname=$with_aix_soname
9730else
9731  if ${lt_cv_with_aix_soname+:} false; then :
9732  $as_echo_n "(cached) " >&6
9733else
9734  lt_cv_with_aix_soname=aix
9735fi
9736
9737    with_aix_soname=$lt_cv_with_aix_soname
9738fi
9739
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9741$as_echo "$with_aix_soname" >&6; }
9742  if test aix != "$with_aix_soname"; then
9743    # For the AIX way of multilib, we name the shared archive member
9744    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9745    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9746    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9747    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9748    if test 64 = "${OBJECT_MODE-32}"; then
9749      shared_archive_member_spec=shr_64
9750    else
9751      shared_archive_member_spec=shr
9752    fi
9753  fi
9754  ;;
9755*)
9756  with_aix_soname=aix
9757  ;;
9758esac
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769# This can be used to rebuild libtool when needed
9770LIBTOOL_DEPS=$ltmain
9771
9772# Always use our own libtool.
9773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804test -z "$LN_S" && LN_S="ln -s"
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819if test -n "${ZSH_VERSION+set}"; then
9820   setopt NO_GLOB_SUBST
9821fi
9822
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9824$as_echo_n "checking for objdir... " >&6; }
9825if ${lt_cv_objdir+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  rm -f .libs 2>/dev/null
9829mkdir .libs 2>/dev/null
9830if test -d .libs; then
9831  lt_cv_objdir=.libs
9832else
9833  # MS-DOS does not allow filenames that begin with a dot.
9834  lt_cv_objdir=_libs
9835fi
9836rmdir .libs 2>/dev/null
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9839$as_echo "$lt_cv_objdir" >&6; }
9840objdir=$lt_cv_objdir
9841
9842
9843
9844
9845
9846cat >>confdefs.h <<_ACEOF
9847#define LT_OBJDIR "$lt_cv_objdir/"
9848_ACEOF
9849
9850
9851
9852
9853case $host_os in
9854aix3*)
9855  # AIX sometimes has problems with the GCC collect2 program.  For some
9856  # reason, if we set the COLLECT_NAMES environment variable, the problems
9857  # vanish in a puff of smoke.
9858  if test set != "${COLLECT_NAMES+set}"; then
9859    COLLECT_NAMES=
9860    export COLLECT_NAMES
9861  fi
9862  ;;
9863esac
9864
9865# Global variables:
9866ofile=libtool
9867can_build_shared=yes
9868
9869# All known linkers require a '.a' archive for static linking (except MSVC,
9870# which needs '.lib').
9871libext=a
9872
9873with_gnu_ld=$lt_cv_prog_gnu_ld
9874
9875old_CC=$CC
9876old_CFLAGS=$CFLAGS
9877
9878# Set sane defaults for various variables
9879test -z "$CC" && CC=cc
9880test -z "$LTCC" && LTCC=$CC
9881test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9882test -z "$LD" && LD=ld
9883test -z "$ac_objext" && ac_objext=o
9884
9885func_cc_basename $compiler
9886cc_basename=$func_cc_basename_result
9887
9888
9889# Only perform the check for file, if the check method requires it
9890test -z "$MAGIC_CMD" && MAGIC_CMD=file
9891case $deplibs_check_method in
9892file_magic*)
9893  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9895$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9896if ${lt_cv_path_MAGIC_CMD+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  case $MAGIC_CMD in
9900[\\/*] |  ?:[\\/]*)
9901  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9902  ;;
9903*)
9904  lt_save_MAGIC_CMD=$MAGIC_CMD
9905  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9906  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9907  for ac_dir in $ac_dummy; do
9908    IFS=$lt_save_ifs
9909    test -z "$ac_dir" && ac_dir=.
9910    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9911      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9912      if test -n "$file_magic_test_file"; then
9913	case $deplibs_check_method in
9914	"file_magic "*)
9915	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9916	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9917	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9918	    $EGREP "$file_magic_regex" > /dev/null; then
9919	    :
9920	  else
9921	    cat <<_LT_EOF 1>&2
9922
9923*** Warning: the command libtool uses to detect shared libraries,
9924*** $file_magic_cmd, produces output that libtool cannot recognize.
9925*** The result is that libtool may fail to recognize shared libraries
9926*** as such.  This will affect the creation of libtool libraries that
9927*** depend on shared libraries, but programs linked with such libtool
9928*** libraries will work regardless of this problem.  Nevertheless, you
9929*** may want to report the problem to your system manager and/or to
9930*** bug-libtool@gnu.org
9931
9932_LT_EOF
9933	  fi ;;
9934	esac
9935      fi
9936      break
9937    fi
9938  done
9939  IFS=$lt_save_ifs
9940  MAGIC_CMD=$lt_save_MAGIC_CMD
9941  ;;
9942esac
9943fi
9944
9945MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9946if test -n "$MAGIC_CMD"; then
9947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9948$as_echo "$MAGIC_CMD" >&6; }
9949else
9950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951$as_echo "no" >&6; }
9952fi
9953
9954
9955
9956
9957
9958if test -z "$lt_cv_path_MAGIC_CMD"; then
9959  if test -n "$ac_tool_prefix"; then
9960    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9961$as_echo_n "checking for file... " >&6; }
9962if ${lt_cv_path_MAGIC_CMD+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  case $MAGIC_CMD in
9966[\\/*] |  ?:[\\/]*)
9967  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9968  ;;
9969*)
9970  lt_save_MAGIC_CMD=$MAGIC_CMD
9971  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9972  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9973  for ac_dir in $ac_dummy; do
9974    IFS=$lt_save_ifs
9975    test -z "$ac_dir" && ac_dir=.
9976    if test -f "$ac_dir/file"; then
9977      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9978      if test -n "$file_magic_test_file"; then
9979	case $deplibs_check_method in
9980	"file_magic "*)
9981	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9982	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9983	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9984	    $EGREP "$file_magic_regex" > /dev/null; then
9985	    :
9986	  else
9987	    cat <<_LT_EOF 1>&2
9988
9989*** Warning: the command libtool uses to detect shared libraries,
9990*** $file_magic_cmd, produces output that libtool cannot recognize.
9991*** The result is that libtool may fail to recognize shared libraries
9992*** as such.  This will affect the creation of libtool libraries that
9993*** depend on shared libraries, but programs linked with such libtool
9994*** libraries will work regardless of this problem.  Nevertheless, you
9995*** may want to report the problem to your system manager and/or to
9996*** bug-libtool@gnu.org
9997
9998_LT_EOF
9999	  fi ;;
10000	esac
10001      fi
10002      break
10003    fi
10004  done
10005  IFS=$lt_save_ifs
10006  MAGIC_CMD=$lt_save_MAGIC_CMD
10007  ;;
10008esac
10009fi
10010
10011MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10012if test -n "$MAGIC_CMD"; then
10013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10014$as_echo "$MAGIC_CMD" >&6; }
10015else
10016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017$as_echo "no" >&6; }
10018fi
10019
10020
10021  else
10022    MAGIC_CMD=:
10023  fi
10024fi
10025
10026  fi
10027  ;;
10028esac
10029
10030# Use C for the default configuration in the libtool script
10031
10032lt_save_CC=$CC
10033ac_ext=c
10034ac_cpp='$CPP $CPPFLAGS'
10035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10037ac_compiler_gnu=$ac_cv_c_compiler_gnu
10038
10039
10040# Source file extension for C test sources.
10041ac_ext=c
10042
10043# Object file extension for compiled C test sources.
10044objext=o
10045objext=$objext
10046
10047# Code to be used in simple compile tests
10048lt_simple_compile_test_code="int some_variable = 0;"
10049
10050# Code to be used in simple link tests
10051lt_simple_link_test_code='int main(){return(0);}'
10052
10053
10054
10055
10056
10057
10058
10059# If no C compiler was specified, use CC.
10060LTCC=${LTCC-"$CC"}
10061
10062# If no C compiler flags were specified, use CFLAGS.
10063LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10064
10065# Allow CC to be a program name with arguments.
10066compiler=$CC
10067
10068# Save the default compiler, since it gets overwritten when the other
10069# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10070compiler_DEFAULT=$CC
10071
10072# save warnings/boilerplate of simple test code
10073ac_outfile=conftest.$ac_objext
10074echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10075eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10076_lt_compiler_boilerplate=`cat conftest.err`
10077$RM conftest*
10078
10079ac_outfile=conftest.$ac_objext
10080echo "$lt_simple_link_test_code" >conftest.$ac_ext
10081eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10082_lt_linker_boilerplate=`cat conftest.err`
10083$RM -r conftest*
10084
10085
10086## CAVEAT EMPTOR:
10087## There is no encapsulation within the following macros, do not change
10088## the running order or otherwise move them around unless you know exactly
10089## what you are doing...
10090if test -n "$compiler"; then
10091
10092lt_prog_compiler_no_builtin_flag=
10093
10094if test yes = "$GCC"; then
10095  case $cc_basename in
10096  nvcc*)
10097    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10098  *)
10099    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10100  esac
10101
10102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10103$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10104if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10105  $as_echo_n "(cached) " >&6
10106else
10107  lt_cv_prog_compiler_rtti_exceptions=no
10108   ac_outfile=conftest.$ac_objext
10109   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10110   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10111   # Insert the option either (1) after the last *FLAGS variable, or
10112   # (2) before a word containing "conftest.", or (3) at the end.
10113   # Note that $ac_compile itself does not contain backslashes and begins
10114   # with a dollar sign (not a hyphen), so the echo should work correctly.
10115   # The option is referenced via a variable to avoid confusing sed.
10116   lt_compile=`echo "$ac_compile" | $SED \
10117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10119   -e 's:$: $lt_compiler_flag:'`
10120   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10121   (eval "$lt_compile" 2>conftest.err)
10122   ac_status=$?
10123   cat conftest.err >&5
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   if (exit $ac_status) && test -s "$ac_outfile"; then
10126     # The compiler can only warn and ignore the option if not recognized
10127     # So say no if there are warnings other than the usual output.
10128     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10129     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10130     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10131       lt_cv_prog_compiler_rtti_exceptions=yes
10132     fi
10133   fi
10134   $RM conftest*
10135
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10138$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10139
10140if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10141    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10142else
10143    :
10144fi
10145
10146fi
10147
10148
10149
10150
10151
10152
10153  lt_prog_compiler_wl=
10154lt_prog_compiler_pic=
10155lt_prog_compiler_static=
10156
10157
10158  if test yes = "$GCC"; then
10159    lt_prog_compiler_wl='-Wl,'
10160    lt_prog_compiler_static='-static'
10161
10162    case $host_os in
10163      aix*)
10164      # All AIX code is PIC.
10165      if test ia64 = "$host_cpu"; then
10166	# AIX 5 now supports IA64 processor
10167	lt_prog_compiler_static='-Bstatic'
10168      fi
10169      lt_prog_compiler_pic='-fPIC'
10170      ;;
10171
10172    amigaos*)
10173      case $host_cpu in
10174      powerpc)
10175            # see comment about AmigaOS4 .so support
10176            lt_prog_compiler_pic='-fPIC'
10177        ;;
10178      m68k)
10179            # FIXME: we need at least 68020 code to build shared libraries, but
10180            # adding the '-m68020' flag to GCC prevents building anything better,
10181            # like '-m68040'.
10182            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10183        ;;
10184      esac
10185      ;;
10186
10187    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10188      # PIC is the default for these OSes.
10189      ;;
10190
10191    mingw* | cygwin* | pw32* | os2* | cegcc*)
10192      # This hack is so that the source file can tell whether it is being
10193      # built for inclusion in a dll (and should export symbols for example).
10194      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10195      # (--disable-auto-import) libraries
10196      lt_prog_compiler_pic='-DDLL_EXPORT'
10197      case $host_os in
10198      os2*)
10199	lt_prog_compiler_static='$wl-static'
10200	;;
10201      esac
10202      ;;
10203
10204    darwin* | rhapsody*)
10205      # PIC is the default on this platform
10206      # Common symbols not allowed in MH_DYLIB files
10207      lt_prog_compiler_pic='-fno-common'
10208      ;;
10209
10210    haiku*)
10211      # PIC is the default for Haiku.
10212      # The "-static" flag exists, but is broken.
10213      lt_prog_compiler_static=
10214      ;;
10215
10216    hpux*)
10217      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10218      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10219      # sets the default TLS model and affects inlining.
10220      case $host_cpu in
10221      hppa*64*)
10222	# +Z the default
10223	;;
10224      *)
10225	lt_prog_compiler_pic='-fPIC'
10226	;;
10227      esac
10228      ;;
10229
10230    interix[3-9]*)
10231      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10232      # Instead, we relocate shared libraries at runtime.
10233      ;;
10234
10235    msdosdjgpp*)
10236      # Just because we use GCC doesn't mean we suddenly get shared libraries
10237      # on systems that don't support them.
10238      lt_prog_compiler_can_build_shared=no
10239      enable_shared=no
10240      ;;
10241
10242    *nto* | *qnx*)
10243      # QNX uses GNU C++, but need to define -shared option too, otherwise
10244      # it will coredump.
10245      lt_prog_compiler_pic='-fPIC -shared'
10246      ;;
10247
10248    sysv4*MP*)
10249      if test -d /usr/nec; then
10250	lt_prog_compiler_pic=-Kconform_pic
10251      fi
10252      ;;
10253
10254    *)
10255      lt_prog_compiler_pic='-fPIC'
10256      ;;
10257    esac
10258
10259    case $cc_basename in
10260    nvcc*) # Cuda Compiler Driver 2.2
10261      lt_prog_compiler_wl='-Xlinker '
10262      if test -n "$lt_prog_compiler_pic"; then
10263        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10264      fi
10265      ;;
10266    esac
10267  else
10268    # PORTME Check for flag to pass linker flags through the system compiler.
10269    case $host_os in
10270    aix*)
10271      lt_prog_compiler_wl='-Wl,'
10272      if test ia64 = "$host_cpu"; then
10273	# AIX 5 now supports IA64 processor
10274	lt_prog_compiler_static='-Bstatic'
10275      else
10276	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10277      fi
10278      ;;
10279
10280    darwin* | rhapsody*)
10281      # PIC is the default on this platform
10282      # Common symbols not allowed in MH_DYLIB files
10283      lt_prog_compiler_pic='-fno-common'
10284      case $cc_basename in
10285      nagfor*)
10286        # NAG Fortran compiler
10287        lt_prog_compiler_wl='-Wl,-Wl,,'
10288        lt_prog_compiler_pic='-PIC'
10289        lt_prog_compiler_static='-Bstatic'
10290        ;;
10291      esac
10292      ;;
10293
10294    mingw* | cygwin* | pw32* | os2* | cegcc*)
10295      # This hack is so that the source file can tell whether it is being
10296      # built for inclusion in a dll (and should export symbols for example).
10297      lt_prog_compiler_pic='-DDLL_EXPORT'
10298      case $host_os in
10299      os2*)
10300	lt_prog_compiler_static='$wl-static'
10301	;;
10302      esac
10303      ;;
10304
10305    hpux9* | hpux10* | hpux11*)
10306      lt_prog_compiler_wl='-Wl,'
10307      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10308      # not for PA HP-UX.
10309      case $host_cpu in
10310      hppa*64*|ia64*)
10311	# +Z the default
10312	;;
10313      *)
10314	lt_prog_compiler_pic='+Z'
10315	;;
10316      esac
10317      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10318      lt_prog_compiler_static='$wl-a ${wl}archive'
10319      ;;
10320
10321    irix5* | irix6* | nonstopux*)
10322      lt_prog_compiler_wl='-Wl,'
10323      # PIC (with -KPIC) is the default.
10324      lt_prog_compiler_static='-non_shared'
10325      ;;
10326
10327    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10328      case $cc_basename in
10329      # old Intel for x86_64, which still supported -KPIC.
10330      ecc*)
10331	lt_prog_compiler_wl='-Wl,'
10332	lt_prog_compiler_pic='-KPIC'
10333	lt_prog_compiler_static='-static'
10334        ;;
10335      # flang / f18. f95 an alias for gfortran or flang on Debian
10336      flang* | f18* | f95*)
10337	lt_prog_compiler_wl='-Wl,'
10338	lt_prog_compiler_pic='-fPIC'
10339	lt_prog_compiler_static='-static'
10340        ;;
10341      # icc used to be incompatible with GCC.
10342      # ICC 10 doesn't accept -KPIC any more.
10343      icc* | ifort*)
10344	lt_prog_compiler_wl='-Wl,'
10345	lt_prog_compiler_pic='-fPIC'
10346	lt_prog_compiler_static='-static'
10347        ;;
10348      # Lahey Fortran 8.1.
10349      lf95*)
10350	lt_prog_compiler_wl='-Wl,'
10351	lt_prog_compiler_pic='--shared'
10352	lt_prog_compiler_static='--static'
10353	;;
10354      nagfor*)
10355	# NAG Fortran compiler
10356	lt_prog_compiler_wl='-Wl,-Wl,,'
10357	lt_prog_compiler_pic='-PIC'
10358	lt_prog_compiler_static='-Bstatic'
10359	;;
10360      tcc*)
10361	# Fabrice Bellard et al's Tiny C Compiler
10362	lt_prog_compiler_wl='-Wl,'
10363	lt_prog_compiler_pic='-fPIC'
10364	lt_prog_compiler_static='-static'
10365	;;
10366      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10367        # Portland Group compilers (*not* the Pentium gcc compiler,
10368	# which looks to be a dead project)
10369	lt_prog_compiler_wl='-Wl,'
10370	lt_prog_compiler_pic='-fpic'
10371	lt_prog_compiler_static='-Bstatic'
10372        ;;
10373      ccc*)
10374        lt_prog_compiler_wl='-Wl,'
10375        # All Alpha code is PIC.
10376        lt_prog_compiler_static='-non_shared'
10377        ;;
10378      xl* | bgxl* | bgf* | mpixl*)
10379	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10380	lt_prog_compiler_wl='-Wl,'
10381	lt_prog_compiler_pic='-qpic'
10382	lt_prog_compiler_static='-qstaticlink'
10383	;;
10384      *)
10385	case `$CC -V 2>&1 | sed 5q` in
10386	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10387	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10388	  lt_prog_compiler_pic='-KPIC'
10389	  lt_prog_compiler_static='-Bstatic'
10390	  lt_prog_compiler_wl=''
10391	  ;;
10392	*Sun\ F* | *Sun*Fortran*)
10393	  lt_prog_compiler_pic='-KPIC'
10394	  lt_prog_compiler_static='-Bstatic'
10395	  lt_prog_compiler_wl='-Qoption ld '
10396	  ;;
10397	*Sun\ C*)
10398	  # Sun C 5.9
10399	  lt_prog_compiler_pic='-KPIC'
10400	  lt_prog_compiler_static='-Bstatic'
10401	  lt_prog_compiler_wl='-Wl,'
10402	  ;;
10403        *Intel*\ [CF]*Compiler*)
10404	  lt_prog_compiler_wl='-Wl,'
10405	  lt_prog_compiler_pic='-fPIC'
10406	  lt_prog_compiler_static='-static'
10407	  ;;
10408	*Portland\ Group*)
10409	  lt_prog_compiler_wl='-Wl,'
10410	  lt_prog_compiler_pic='-fpic'
10411	  lt_prog_compiler_static='-Bstatic'
10412	  ;;
10413	esac
10414	;;
10415      esac
10416      ;;
10417
10418    newsos6)
10419      lt_prog_compiler_pic='-KPIC'
10420      lt_prog_compiler_static='-Bstatic'
10421      ;;
10422
10423    *nto* | *qnx*)
10424      # QNX uses GNU C++, but need to define -shared option too, otherwise
10425      # it will coredump.
10426      lt_prog_compiler_pic='-fPIC -shared'
10427      ;;
10428
10429    osf3* | osf4* | osf5*)
10430      lt_prog_compiler_wl='-Wl,'
10431      # All OSF/1 code is PIC.
10432      lt_prog_compiler_static='-non_shared'
10433      ;;
10434
10435    rdos*)
10436      lt_prog_compiler_static='-non_shared'
10437      ;;
10438
10439    solaris*)
10440      lt_prog_compiler_pic='-KPIC'
10441      lt_prog_compiler_static='-Bstatic'
10442      case $cc_basename in
10443      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10444	lt_prog_compiler_wl='-Qoption ld ';;
10445      *)
10446	lt_prog_compiler_wl='-Wl,';;
10447      esac
10448      ;;
10449
10450    sunos4*)
10451      lt_prog_compiler_wl='-Qoption ld '
10452      lt_prog_compiler_pic='-PIC'
10453      lt_prog_compiler_static='-Bstatic'
10454      ;;
10455
10456    sysv4 | sysv4.2uw2* | sysv4.3*)
10457      lt_prog_compiler_wl='-Wl,'
10458      lt_prog_compiler_pic='-KPIC'
10459      lt_prog_compiler_static='-Bstatic'
10460      ;;
10461
10462    sysv4*MP*)
10463      if test -d /usr/nec; then
10464	lt_prog_compiler_pic='-Kconform_pic'
10465	lt_prog_compiler_static='-Bstatic'
10466      fi
10467      ;;
10468
10469    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10470      lt_prog_compiler_wl='-Wl,'
10471      lt_prog_compiler_pic='-KPIC'
10472      lt_prog_compiler_static='-Bstatic'
10473      ;;
10474
10475    unicos*)
10476      lt_prog_compiler_wl='-Wl,'
10477      lt_prog_compiler_can_build_shared=no
10478      ;;
10479
10480    uts4*)
10481      lt_prog_compiler_pic='-pic'
10482      lt_prog_compiler_static='-Bstatic'
10483      ;;
10484
10485    *)
10486      lt_prog_compiler_can_build_shared=no
10487      ;;
10488    esac
10489  fi
10490
10491case $host_os in
10492  # For platforms that do not support PIC, -DPIC is meaningless:
10493  *djgpp*)
10494    lt_prog_compiler_pic=
10495    ;;
10496  *)
10497    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10498    ;;
10499esac
10500
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10502$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10503if ${lt_cv_prog_compiler_pic+:} false; then :
10504  $as_echo_n "(cached) " >&6
10505else
10506  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10507fi
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10509$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10510lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10511
10512#
10513# Check to make sure the PIC flag actually works.
10514#
10515if test -n "$lt_prog_compiler_pic"; then
10516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10517$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10518if ${lt_cv_prog_compiler_pic_works+:} false; then :
10519  $as_echo_n "(cached) " >&6
10520else
10521  lt_cv_prog_compiler_pic_works=no
10522   ac_outfile=conftest.$ac_objext
10523   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10524   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10525   # Insert the option either (1) after the last *FLAGS variable, or
10526   # (2) before a word containing "conftest.", or (3) at the end.
10527   # Note that $ac_compile itself does not contain backslashes and begins
10528   # with a dollar sign (not a hyphen), so the echo should work correctly.
10529   # The option is referenced via a variable to avoid confusing sed.
10530   lt_compile=`echo "$ac_compile" | $SED \
10531   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10532   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10533   -e 's:$: $lt_compiler_flag:'`
10534   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10535   (eval "$lt_compile" 2>conftest.err)
10536   ac_status=$?
10537   cat conftest.err >&5
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   if (exit $ac_status) && test -s "$ac_outfile"; then
10540     # The compiler can only warn and ignore the option if not recognized
10541     # So say no if there are warnings other than the usual output.
10542     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10543     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10544     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10545       lt_cv_prog_compiler_pic_works=yes
10546     fi
10547   fi
10548   $RM conftest*
10549
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10552$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10553
10554if test yes = "$lt_cv_prog_compiler_pic_works"; then
10555    case $lt_prog_compiler_pic in
10556     "" | " "*) ;;
10557     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10558     esac
10559else
10560    lt_prog_compiler_pic=
10561     lt_prog_compiler_can_build_shared=no
10562fi
10563
10564fi
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576#
10577# Check to make sure the static flag actually works.
10578#
10579wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10581$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10582if ${lt_cv_prog_compiler_static_works+:} false; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  lt_cv_prog_compiler_static_works=no
10586   save_LDFLAGS=$LDFLAGS
10587   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10588   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10589   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10590     # The linker can only warn and ignore the option if not recognized
10591     # So say no if there are warnings
10592     if test -s conftest.err; then
10593       # Append any errors to the config.log.
10594       cat conftest.err 1>&5
10595       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10596       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10597       if diff conftest.exp conftest.er2 >/dev/null; then
10598         lt_cv_prog_compiler_static_works=yes
10599       fi
10600     else
10601       lt_cv_prog_compiler_static_works=yes
10602     fi
10603   fi
10604   $RM -r conftest*
10605   LDFLAGS=$save_LDFLAGS
10606
10607fi
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10609$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10610
10611if test yes = "$lt_cv_prog_compiler_static_works"; then
10612    :
10613else
10614    lt_prog_compiler_static=
10615fi
10616
10617
10618
10619
10620
10621
10622
10623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10624$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10625if ${lt_cv_prog_compiler_c_o+:} false; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  lt_cv_prog_compiler_c_o=no
10629   $RM -r conftest 2>/dev/null
10630   mkdir conftest
10631   cd conftest
10632   mkdir out
10633   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10634
10635   lt_compiler_flag="-o out/conftest2.$ac_objext"
10636   # Insert the option either (1) after the last *FLAGS variable, or
10637   # (2) before a word containing "conftest.", or (3) at the end.
10638   # Note that $ac_compile itself does not contain backslashes and begins
10639   # with a dollar sign (not a hyphen), so the echo should work correctly.
10640   lt_compile=`echo "$ac_compile" | $SED \
10641   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10642   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10643   -e 's:$: $lt_compiler_flag:'`
10644   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10645   (eval "$lt_compile" 2>out/conftest.err)
10646   ac_status=$?
10647   cat out/conftest.err >&5
10648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10650   then
10651     # The compiler can only warn and ignore the option if not recognized
10652     # So say no if there are warnings
10653     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10654     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10655     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10656       lt_cv_prog_compiler_c_o=yes
10657     fi
10658   fi
10659   chmod u+w . 2>&5
10660   $RM conftest*
10661   # SGI C++ compiler will create directory out/ii_files/ for
10662   # template instantiation
10663   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10664   $RM out/* && rmdir out
10665   cd ..
10666   $RM -r conftest
10667   $RM conftest*
10668
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10671$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10672
10673
10674
10675
10676
10677
10678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10680if ${lt_cv_prog_compiler_c_o+:} false; then :
10681  $as_echo_n "(cached) " >&6
10682else
10683  lt_cv_prog_compiler_c_o=no
10684   $RM -r conftest 2>/dev/null
10685   mkdir conftest
10686   cd conftest
10687   mkdir out
10688   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10689
10690   lt_compiler_flag="-o out/conftest2.$ac_objext"
10691   # Insert the option either (1) after the last *FLAGS variable, or
10692   # (2) before a word containing "conftest.", or (3) at the end.
10693   # Note that $ac_compile itself does not contain backslashes and begins
10694   # with a dollar sign (not a hyphen), so the echo should work correctly.
10695   lt_compile=`echo "$ac_compile" | $SED \
10696   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10697   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10698   -e 's:$: $lt_compiler_flag:'`
10699   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10700   (eval "$lt_compile" 2>out/conftest.err)
10701   ac_status=$?
10702   cat out/conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10705   then
10706     # The compiler can only warn and ignore the option if not recognized
10707     # So say no if there are warnings
10708     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10709     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10710     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10711       lt_cv_prog_compiler_c_o=yes
10712     fi
10713   fi
10714   chmod u+w . 2>&5
10715   $RM conftest*
10716   # SGI C++ compiler will create directory out/ii_files/ for
10717   # template instantiation
10718   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10719   $RM out/* && rmdir out
10720   cd ..
10721   $RM -r conftest
10722   $RM conftest*
10723
10724fi
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10726$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10727
10728
10729
10730
10731hard_links=nottested
10732if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10733  # do not overwrite the value of need_locks provided by the user
10734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10735$as_echo_n "checking if we can lock with hard links... " >&6; }
10736  hard_links=yes
10737  $RM conftest*
10738  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10739  touch conftest.a
10740  ln conftest.a conftest.b 2>&5 || hard_links=no
10741  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10743$as_echo "$hard_links" >&6; }
10744  if test no = "$hard_links"; then
10745    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10746$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10747    need_locks=warn
10748  fi
10749else
10750  need_locks=no
10751fi
10752
10753
10754
10755
10756
10757
10758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10759$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10760
10761  runpath_var=
10762  allow_undefined_flag=
10763  always_export_symbols=no
10764  archive_cmds=
10765  archive_expsym_cmds=
10766  compiler_needs_object=no
10767  enable_shared_with_static_runtimes=no
10768  export_dynamic_flag_spec=
10769  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10770  hardcode_automatic=no
10771  hardcode_direct=no
10772  hardcode_direct_absolute=no
10773  hardcode_libdir_flag_spec=
10774  hardcode_libdir_separator=
10775  hardcode_minus_L=no
10776  hardcode_shlibpath_var=unsupported
10777  inherit_rpath=no
10778  link_all_deplibs=unknown
10779  module_cmds=
10780  module_expsym_cmds=
10781  old_archive_from_new_cmds=
10782  old_archive_from_expsyms_cmds=
10783  thread_safe_flag_spec=
10784  whole_archive_flag_spec=
10785  # include_expsyms should be a list of space-separated symbols to be *always*
10786  # included in the symbol list
10787  include_expsyms=
10788  # exclude_expsyms can be an extended regexp of symbols to exclude
10789  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10790  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10791  # as well as any symbol that contains 'd'.
10792  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10793  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10794  # platforms (ab)use it in PIC code, but their linkers get confused if
10795  # the symbol is explicitly referenced.  Since portable code cannot
10796  # rely on this symbol name, it's probably fine to never include it in
10797  # preloaded symbol tables.
10798  # Exclude shared library initialization/finalization symbols.
10799  extract_expsyms_cmds=
10800
10801  case $host_os in
10802  cygwin* | mingw* | pw32* | cegcc*)
10803    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10804    # When not using gcc, we currently assume that we are using
10805    # Microsoft Visual C++.
10806    if test yes != "$GCC"; then
10807      with_gnu_ld=no
10808    fi
10809    ;;
10810  interix*)
10811    # we just hope/assume this is gcc and not c89 (= MSVC++)
10812    with_gnu_ld=yes
10813    ;;
10814  openbsd* | bitrig*)
10815    with_gnu_ld=no
10816    ;;
10817  linux* | k*bsd*-gnu | gnu*)
10818    link_all_deplibs=no
10819    ;;
10820  esac
10821
10822  ld_shlibs=yes
10823
10824  # On some targets, GNU ld is compatible enough with the native linker
10825  # that we're better off using the native interface for both.
10826  lt_use_gnu_ld_interface=no
10827  if test yes = "$with_gnu_ld"; then
10828    case $host_os in
10829      aix*)
10830	# The AIX port of GNU ld has always aspired to compatibility
10831	# with the native linker.  However, as the warning in the GNU ld
10832	# block says, versions before 2.19.5* couldn't really create working
10833	# shared libraries, regardless of the interface used.
10834	case `$LD -v 2>&1` in
10835	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10836	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10837	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10838	  *)
10839	    lt_use_gnu_ld_interface=yes
10840	    ;;
10841	esac
10842	;;
10843      *)
10844	lt_use_gnu_ld_interface=yes
10845	;;
10846    esac
10847  fi
10848
10849  if test yes = "$lt_use_gnu_ld_interface"; then
10850    # If archive_cmds runs LD, not CC, wlarc should be empty
10851    wlarc='$wl'
10852
10853    # Set some defaults for GNU ld with shared library support. These
10854    # are reset later if shared libraries are not supported. Putting them
10855    # here allows them to be overridden if necessary.
10856    runpath_var=LD_RUN_PATH
10857    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10858    export_dynamic_flag_spec='$wl--export-dynamic'
10859    # ancient GNU ld didn't support --whole-archive et. al.
10860    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10861      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10862    else
10863      whole_archive_flag_spec=
10864    fi
10865    supports_anon_versioning=no
10866    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10867      *GNU\ gold*) supports_anon_versioning=yes ;;
10868      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10869      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10870      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10871      *\ 2.11.*) ;; # other 2.11 versions
10872      *) supports_anon_versioning=yes ;;
10873    esac
10874
10875    # See if GNU ld supports shared libraries.
10876    case $host_os in
10877    aix[3-9]*)
10878      # On AIX/PPC, the GNU linker is very broken
10879      if test ia64 != "$host_cpu"; then
10880	ld_shlibs=no
10881	cat <<_LT_EOF 1>&2
10882
10883*** Warning: the GNU linker, at least up to release 2.19, is reported
10884*** to be unable to reliably create shared libraries on AIX.
10885*** Therefore, libtool is disabling shared libraries support.  If you
10886*** really care for shared libraries, you may want to install binutils
10887*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10888*** You will then need to restart the configuration process.
10889
10890_LT_EOF
10891      fi
10892      ;;
10893
10894    amigaos*)
10895      case $host_cpu in
10896      powerpc)
10897            # see comment about AmigaOS4 .so support
10898            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10899            archive_expsym_cmds=''
10900        ;;
10901      m68k)
10902            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)'
10903            hardcode_libdir_flag_spec='-L$libdir'
10904            hardcode_minus_L=yes
10905        ;;
10906      esac
10907      ;;
10908
10909    beos*)
10910      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10911	allow_undefined_flag=unsupported
10912	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10913	# support --undefined.  This deserves some investigation.  FIXME
10914	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915      else
10916	ld_shlibs=no
10917      fi
10918      ;;
10919
10920    cygwin* | mingw* | pw32* | cegcc*)
10921      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10922      # as there is no search path for DLLs.
10923      hardcode_libdir_flag_spec='-L$libdir'
10924      export_dynamic_flag_spec='$wl--export-all-symbols'
10925      allow_undefined_flag=unsupported
10926      always_export_symbols=no
10927      enable_shared_with_static_runtimes=yes
10928      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'
10929      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10930
10931      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10932        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10933	# If the export-symbols file already is a .def file, use it as
10934	# is; otherwise, prepend EXPORTS...
10935	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10936          cp $export_symbols $output_objdir/$soname.def;
10937        else
10938          echo EXPORTS > $output_objdir/$soname.def;
10939          cat $export_symbols >> $output_objdir/$soname.def;
10940        fi~
10941        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10942      else
10943	ld_shlibs=no
10944      fi
10945      ;;
10946
10947    haiku*)
10948      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10949      link_all_deplibs=yes
10950      ;;
10951
10952    os2*)
10953      hardcode_libdir_flag_spec='-L$libdir'
10954      hardcode_minus_L=yes
10955      allow_undefined_flag=unsupported
10956      shrext_cmds=.dll
10957      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10958	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10959	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10960	$ECHO EXPORTS >> $output_objdir/$libname.def~
10961	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10962	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10963	emximp -o $lib $output_objdir/$libname.def'
10964      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10965	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10966	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10967	$ECHO EXPORTS >> $output_objdir/$libname.def~
10968	prefix_cmds="$SED"~
10969	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10970	  prefix_cmds="$prefix_cmds -e 1d";
10971	fi~
10972	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10973	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10974	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10975	emximp -o $lib $output_objdir/$libname.def'
10976      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10977      enable_shared_with_static_runtimes=yes
10978      ;;
10979
10980    interix[3-9]*)
10981      hardcode_direct=no
10982      hardcode_shlibpath_var=no
10983      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10984      export_dynamic_flag_spec='$wl-E'
10985      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10986      # Instead, shared libraries are loaded at an image base (0x10000000 by
10987      # default) and relocated if they conflict, which is a slow very memory
10988      # consuming and fragmenting process.  To avoid this, we pick a random,
10989      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10990      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10991      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10992      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'
10993      ;;
10994
10995    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10996      tmp_diet=no
10997      if test linux-dietlibc = "$host_os"; then
10998	case $cc_basename in
10999	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11000	esac
11001      fi
11002      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11003	 && test no = "$tmp_diet"
11004      then
11005	tmp_addflag=' $pic_flag'
11006	tmp_sharedflag='-shared'
11007	case $cc_basename,$host_cpu in
11008        pgcc*)				# Portland Group C compiler
11009	  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'
11010	  tmp_addflag=' $pic_flag'
11011	  ;;
11012	pgf77* | pgf90* | pgf95* | pgfortran*)
11013					# Portland Group f77 and f90 compilers
11014	  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'
11015	  tmp_addflag=' $pic_flag -Mnomain' ;;
11016	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11017	  tmp_addflag=' -i_dynamic' ;;
11018	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11019	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11020	ifc* | ifort*)			# Intel Fortran compiler
11021	  tmp_addflag=' -nofor_main' ;;
11022	lf95*)				# Lahey Fortran 8.1
11023	  whole_archive_flag_spec=
11024	  tmp_sharedflag='--shared' ;;
11025        nagfor*)                        # NAGFOR 5.3
11026          tmp_sharedflag='-Wl,-shared' ;;
11027	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11028	  tmp_sharedflag='-qmkshrobj'
11029	  tmp_addflag= ;;
11030	nvcc*)	# Cuda Compiler Driver 2.2
11031	  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'
11032	  compiler_needs_object=yes
11033	  ;;
11034	esac
11035	case `$CC -V 2>&1 | sed 5q` in
11036	*Sun\ C*)			# Sun C 5.9
11037	  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'
11038	  compiler_needs_object=yes
11039	  tmp_sharedflag='-G' ;;
11040	*Sun\ F*)			# Sun Fortran 8.3
11041	  tmp_sharedflag='-G' ;;
11042	esac
11043	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11044
11045        if test yes = "$supports_anon_versioning"; then
11046          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11047            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11048            echo "local: *; };" >> $output_objdir/$libname.ver~
11049            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11050        fi
11051
11052	case $cc_basename in
11053	tcc*)
11054	  export_dynamic_flag_spec='-rdynamic'
11055	  ;;
11056	xlf* | bgf* | bgxlf* | mpixlf*)
11057	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11058	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11059	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11060	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11061	  if test yes = "$supports_anon_versioning"; then
11062	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11063              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11064              echo "local: *; };" >> $output_objdir/$libname.ver~
11065              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11066	  fi
11067	  ;;
11068	esac
11069      else
11070        ld_shlibs=no
11071      fi
11072      ;;
11073
11074    netbsd* | netbsdelf*-gnu)
11075      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11076	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11077	wlarc=
11078      else
11079	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11080	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11081      fi
11082      ;;
11083
11084    solaris*)
11085      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11086	ld_shlibs=no
11087	cat <<_LT_EOF 1>&2
11088
11089*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11090*** create shared libraries on Solaris systems.  Therefore, libtool
11091*** is disabling shared libraries support.  We urge you to upgrade GNU
11092*** binutils to release 2.9.1 or newer.  Another option is to modify
11093*** your PATH or compiler configuration so that the native linker is
11094*** used, and then restart.
11095
11096_LT_EOF
11097      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11098	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11099	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11100      else
11101	ld_shlibs=no
11102      fi
11103      ;;
11104
11105    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11106      case `$LD -v 2>&1` in
11107        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11108	ld_shlibs=no
11109	cat <<_LT_EOF 1>&2
11110
11111*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11112*** reliably create shared libraries on SCO systems.  Therefore, libtool
11113*** is disabling shared libraries support.  We urge you to upgrade GNU
11114*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11115*** your PATH or compiler configuration so that the native linker is
11116*** used, and then restart.
11117
11118_LT_EOF
11119	;;
11120	*)
11121	  # For security reasons, it is highly recommended that you always
11122	  # use absolute paths for naming shared libraries, and exclude the
11123	  # DT_RUNPATH tag from executables and libraries.  But doing so
11124	  # requires that you compile everything twice, which is a pain.
11125	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11126	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11127	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11128	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11129	  else
11130	    ld_shlibs=no
11131	  fi
11132	;;
11133      esac
11134      ;;
11135
11136    sunos4*)
11137      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11138      wlarc=
11139      hardcode_direct=yes
11140      hardcode_shlibpath_var=no
11141      ;;
11142
11143    *)
11144      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11145	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11146	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11147      else
11148	ld_shlibs=no
11149      fi
11150      ;;
11151    esac
11152
11153    if test no = "$ld_shlibs"; then
11154      runpath_var=
11155      hardcode_libdir_flag_spec=
11156      export_dynamic_flag_spec=
11157      whole_archive_flag_spec=
11158    fi
11159  else
11160    # PORTME fill in a description of your system's linker (not GNU ld)
11161    case $host_os in
11162    aix3*)
11163      allow_undefined_flag=unsupported
11164      always_export_symbols=yes
11165      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'
11166      # Note: this linker hardcodes the directories in LIBPATH if there
11167      # are no directories specified by -L.
11168      hardcode_minus_L=yes
11169      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11170	# Neither direct hardcoding nor static linking is supported with a
11171	# broken collect2.
11172	hardcode_direct=unsupported
11173      fi
11174      ;;
11175
11176    aix[4-9]*)
11177      if test ia64 = "$host_cpu"; then
11178	# On IA64, the linker does run time linking by default, so we don't
11179	# have to do anything special.
11180	aix_use_runtimelinking=no
11181	exp_sym_flag='-Bexport'
11182	no_entry_flag=
11183      else
11184	# If we're using GNU nm, then we don't want the "-C" option.
11185	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11186	# Without the "-l" option, or with the "-B" option, AIX nm treats
11187	# weak defined symbols like other global defined symbols, whereas
11188	# GNU nm marks them as "W".
11189	# While the 'weak' keyword is ignored in the Export File, we need
11190	# it in the Import File for the 'aix-soname' feature, so we have
11191	# to replace the "-B" option with "-P" for AIX nm.
11192	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11193	  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'
11194	else
11195	  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'
11196	fi
11197	aix_use_runtimelinking=no
11198
11199	# Test if we are trying to use run time linking or normal
11200	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11201	# have runtime linking enabled, and use it for executables.
11202	# For shared libraries, we enable/disable runtime linking
11203	# depending on the kind of the shared library created -
11204	# when "with_aix_soname,aix_use_runtimelinking" is:
11205	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11206	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11207	#            lib.a           static archive
11208	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11209	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11210	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11211	#            lib.a(lib.so.V) shared, rtl:no
11212	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11213	#            lib.a           static archive
11214	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11215	  for ld_flag in $LDFLAGS; do
11216	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11217	    aix_use_runtimelinking=yes
11218	    break
11219	  fi
11220	  done
11221	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11222	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11223	    # so we don't have lib.a shared libs to link our executables.
11224	    # We have to force runtime linking in this case.
11225	    aix_use_runtimelinking=yes
11226	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11227	  fi
11228	  ;;
11229	esac
11230
11231	exp_sym_flag='-bexport'
11232	no_entry_flag='-bnoentry'
11233      fi
11234
11235      # When large executables or shared objects are built, AIX ld can
11236      # have problems creating the table of contents.  If linking a library
11237      # or program results in "error TOC overflow" add -mminimal-toc to
11238      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11239      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11240
11241      archive_cmds=''
11242      hardcode_direct=yes
11243      hardcode_direct_absolute=yes
11244      hardcode_libdir_separator=':'
11245      link_all_deplibs=yes
11246      file_list_spec='$wl-f,'
11247      case $with_aix_soname,$aix_use_runtimelinking in
11248      aix,*) ;; # traditional, no import file
11249      svr4,* | *,yes) # use import file
11250	# The Import File defines what to hardcode.
11251	hardcode_direct=no
11252	hardcode_direct_absolute=no
11253	;;
11254      esac
11255
11256      if test yes = "$GCC"; then
11257	case $host_os in aix4.[012]|aix4.[012].*)
11258	# We only want to do this on AIX 4.2 and lower, the check
11259	# below for broken collect2 doesn't work under 4.3+
11260	  collect2name=`$CC -print-prog-name=collect2`
11261	  if test -f "$collect2name" &&
11262	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11263	  then
11264	  # We have reworked collect2
11265	  :
11266	  else
11267	  # We have old collect2
11268	  hardcode_direct=unsupported
11269	  # It fails to find uninstalled libraries when the uninstalled
11270	  # path is not listed in the libpath.  Setting hardcode_minus_L
11271	  # to unsupported forces relinking
11272	  hardcode_minus_L=yes
11273	  hardcode_libdir_flag_spec='-L$libdir'
11274	  hardcode_libdir_separator=
11275	  fi
11276	  ;;
11277	esac
11278	shared_flag='-shared'
11279	if test yes = "$aix_use_runtimelinking"; then
11280	  shared_flag="$shared_flag "'$wl-G'
11281	fi
11282	# Need to ensure runtime linking is disabled for the traditional
11283	# shared library, or the linker may eventually find shared libraries
11284	# /with/ Import File - we do not want to mix them.
11285	shared_flag_aix='-shared'
11286	shared_flag_svr4='-shared $wl-G'
11287      else
11288	# not using gcc
11289	if test ia64 = "$host_cpu"; then
11290	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11291	# chokes on -Wl,-G. The following line is correct:
11292	  shared_flag='-G'
11293	else
11294	  if test yes = "$aix_use_runtimelinking"; then
11295	    shared_flag='$wl-G'
11296	  else
11297	    shared_flag='$wl-bM:SRE'
11298	  fi
11299	  shared_flag_aix='$wl-bM:SRE'
11300	  shared_flag_svr4='$wl-G'
11301	fi
11302      fi
11303
11304      export_dynamic_flag_spec='$wl-bexpall'
11305      # It seems that -bexpall does not export symbols beginning with
11306      # underscore (_), so it is better to generate a list of symbols to export.
11307      always_export_symbols=yes
11308      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11309	# Warning - without using the other runtime loading flags (-brtl),
11310	# -berok will link without error, but may produce a broken library.
11311	allow_undefined_flag='-berok'
11312        # Determine the default libpath from the value encoded in an
11313        # empty executable.
11314        if test set = "${lt_cv_aix_libpath+set}"; then
11315  aix_libpath=$lt_cv_aix_libpath
11316else
11317  if ${lt_cv_aix_libpath_+:} false; then :
11318  $as_echo_n "(cached) " >&6
11319else
11320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321/* end confdefs.h.  */
11322
11323int
11324main ()
11325{
11326
11327  ;
11328  return 0;
11329}
11330_ACEOF
11331if ac_fn_c_try_link "$LINENO"; then :
11332
11333  lt_aix_libpath_sed='
11334      /Import File Strings/,/^$/ {
11335	  /^0/ {
11336	      s/^0  *\([^ ]*\) *$/\1/
11337	      p
11338	  }
11339      }'
11340  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11341  # Check for a 64-bit object if we didn't find anything.
11342  if test -z "$lt_cv_aix_libpath_"; then
11343    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11344  fi
11345fi
11346rm -f core conftest.err conftest.$ac_objext \
11347    conftest$ac_exeext conftest.$ac_ext
11348  if test -z "$lt_cv_aix_libpath_"; then
11349    lt_cv_aix_libpath_=/usr/lib:/lib
11350  fi
11351
11352fi
11353
11354  aix_libpath=$lt_cv_aix_libpath_
11355fi
11356
11357        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11358        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
11359      else
11360	if test ia64 = "$host_cpu"; then
11361	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11362	  allow_undefined_flag="-z nodefs"
11363	  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"
11364	else
11365	 # Determine the default libpath from the value encoded in an
11366	 # empty executable.
11367	 if test set = "${lt_cv_aix_libpath+set}"; then
11368  aix_libpath=$lt_cv_aix_libpath
11369else
11370  if ${lt_cv_aix_libpath_+:} false; then :
11371  $as_echo_n "(cached) " >&6
11372else
11373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h.  */
11375
11376int
11377main ()
11378{
11379
11380  ;
11381  return 0;
11382}
11383_ACEOF
11384if ac_fn_c_try_link "$LINENO"; then :
11385
11386  lt_aix_libpath_sed='
11387      /Import File Strings/,/^$/ {
11388	  /^0/ {
11389	      s/^0  *\([^ ]*\) *$/\1/
11390	      p
11391	  }
11392      }'
11393  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11394  # Check for a 64-bit object if we didn't find anything.
11395  if test -z "$lt_cv_aix_libpath_"; then
11396    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11397  fi
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400    conftest$ac_exeext conftest.$ac_ext
11401  if test -z "$lt_cv_aix_libpath_"; then
11402    lt_cv_aix_libpath_=/usr/lib:/lib
11403  fi
11404
11405fi
11406
11407  aix_libpath=$lt_cv_aix_libpath_
11408fi
11409
11410	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11411	  # Warning - without using the other run time loading flags,
11412	  # -berok will link without error, but may produce a broken library.
11413	  no_undefined_flag=' $wl-bernotok'
11414	  allow_undefined_flag=' $wl-berok'
11415	  if test yes = "$with_gnu_ld"; then
11416	    # We only use this code for GNU lds that support --whole-archive.
11417	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11418	  else
11419	    # Exported symbols can be pulled into shared objects from archives
11420	    whole_archive_flag_spec='$convenience'
11421	  fi
11422	  archive_cmds_need_lc=yes
11423	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11424	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11425	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11426	  if test svr4 != "$with_aix_soname"; then
11427	    # This is similar to how AIX traditionally builds its shared libraries.
11428	    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'
11429	  fi
11430	  if test aix != "$with_aix_soname"; then
11431	    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'
11432	  else
11433	    # used by -dlpreopen to get the symbols
11434	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11435	  fi
11436	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11437	fi
11438      fi
11439      ;;
11440
11441    amigaos*)
11442      case $host_cpu in
11443      powerpc)
11444            # see comment about AmigaOS4 .so support
11445            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11446            archive_expsym_cmds=''
11447        ;;
11448      m68k)
11449            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)'
11450            hardcode_libdir_flag_spec='-L$libdir'
11451            hardcode_minus_L=yes
11452        ;;
11453      esac
11454      ;;
11455
11456    bsdi[45]*)
11457      export_dynamic_flag_spec=-rdynamic
11458      ;;
11459
11460    cygwin* | mingw* | pw32* | cegcc*)
11461      # When not using gcc, we currently assume that we are using
11462      # Microsoft Visual C++.
11463      # hardcode_libdir_flag_spec is actually meaningless, as there is
11464      # no search path for DLLs.
11465      case $cc_basename in
11466      cl*)
11467	# Native MSVC
11468	hardcode_libdir_flag_spec=' '
11469	allow_undefined_flag=unsupported
11470	always_export_symbols=yes
11471	file_list_spec='@'
11472	# Tell ltmain to make .lib files, not .a files.
11473	libext=lib
11474	# Tell ltmain to make .dll files, not .so files.
11475	shrext_cmds=.dll
11476	# FIXME: Setting linknames here is a bad hack.
11477	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11478	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11479            cp "$export_symbols" "$output_objdir/$soname.def";
11480            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11481          else
11482            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11483          fi~
11484          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11485          linknames='
11486	# The linker will not automatically build a static lib if we build a DLL.
11487	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11488	enable_shared_with_static_runtimes=yes
11489	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11490	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11491	# Don't use ranlib
11492	old_postinstall_cmds='chmod 644 $oldlib'
11493	postlink_cmds='lt_outputfile="@OUTPUT@"~
11494          lt_tool_outputfile="@TOOL_OUTPUT@"~
11495          case $lt_outputfile in
11496            *.exe|*.EXE) ;;
11497            *)
11498              lt_outputfile=$lt_outputfile.exe
11499              lt_tool_outputfile=$lt_tool_outputfile.exe
11500              ;;
11501          esac~
11502          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11503            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11504            $RM "$lt_outputfile.manifest";
11505          fi'
11506	;;
11507      *)
11508	# Assume MSVC wrapper
11509	hardcode_libdir_flag_spec=' '
11510	allow_undefined_flag=unsupported
11511	# Tell ltmain to make .lib files, not .a files.
11512	libext=lib
11513	# Tell ltmain to make .dll files, not .so files.
11514	shrext_cmds=.dll
11515	# FIXME: Setting linknames here is a bad hack.
11516	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11517	# The linker will automatically build a .lib file if we build a DLL.
11518	old_archive_from_new_cmds='true'
11519	# FIXME: Should let the user specify the lib program.
11520	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11521	enable_shared_with_static_runtimes=yes
11522	;;
11523      esac
11524      ;;
11525
11526    darwin* | rhapsody*)
11527
11528
11529  archive_cmds_need_lc=no
11530  hardcode_direct=no
11531  hardcode_automatic=yes
11532  hardcode_shlibpath_var=unsupported
11533  if test yes = "$lt_cv_ld_force_load"; then
11534    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\"`'
11535
11536  else
11537    whole_archive_flag_spec=''
11538  fi
11539  link_all_deplibs=yes
11540  allow_undefined_flag=$_lt_dar_allow_undefined
11541  case $cc_basename in
11542     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11543     *) _lt_dar_can_shared=$GCC ;;
11544  esac
11545  if test yes = "$_lt_dar_can_shared"; then
11546    output_verbose_link_cmd=func_echo_all
11547    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11548    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11549    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"
11550    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"
11551
11552  else
11553  ld_shlibs=no
11554  fi
11555
11556      ;;
11557
11558    dgux*)
11559      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11560      hardcode_libdir_flag_spec='-L$libdir'
11561      hardcode_shlibpath_var=no
11562      ;;
11563
11564    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11565    # support.  Future versions do this automatically, but an explicit c++rt0.o
11566    # does not break anything, and helps significantly (at the cost of a little
11567    # extra space).
11568    freebsd2.2*)
11569      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11570      hardcode_libdir_flag_spec='-R$libdir'
11571      hardcode_direct=yes
11572      hardcode_shlibpath_var=no
11573      ;;
11574
11575    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11576    freebsd2.*)
11577      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11578      hardcode_direct=yes
11579      hardcode_minus_L=yes
11580      hardcode_shlibpath_var=no
11581      ;;
11582
11583    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11584    freebsd* | dragonfly*)
11585      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11586      hardcode_libdir_flag_spec='-R$libdir'
11587      hardcode_direct=yes
11588      hardcode_shlibpath_var=no
11589      ;;
11590
11591    hpux9*)
11592      if test yes = "$GCC"; then
11593	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'
11594      else
11595	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'
11596      fi
11597      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11598      hardcode_libdir_separator=:
11599      hardcode_direct=yes
11600
11601      # hardcode_minus_L: Not really in the search PATH,
11602      # but as the default location of the library.
11603      hardcode_minus_L=yes
11604      export_dynamic_flag_spec='$wl-E'
11605      ;;
11606
11607    hpux10*)
11608      if test yes,no = "$GCC,$with_gnu_ld"; then
11609	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11610      else
11611	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11612      fi
11613      if test no = "$with_gnu_ld"; then
11614	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11615	hardcode_libdir_separator=:
11616	hardcode_direct=yes
11617	hardcode_direct_absolute=yes
11618	export_dynamic_flag_spec='$wl-E'
11619	# hardcode_minus_L: Not really in the search PATH,
11620	# but as the default location of the library.
11621	hardcode_minus_L=yes
11622      fi
11623      ;;
11624
11625    hpux11*)
11626      if test yes,no = "$GCC,$with_gnu_ld"; then
11627	case $host_cpu in
11628	hppa*64*)
11629	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11630	  ;;
11631	ia64*)
11632	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11633	  ;;
11634	*)
11635	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11636	  ;;
11637	esac
11638      else
11639	case $host_cpu in
11640	hppa*64*)
11641	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11642	  ;;
11643	ia64*)
11644	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11645	  ;;
11646	*)
11647
11648	  # Older versions of the 11.00 compiler do not understand -b yet
11649	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11650	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11651$as_echo_n "checking if $CC understands -b... " >&6; }
11652if ${lt_cv_prog_compiler__b+:} false; then :
11653  $as_echo_n "(cached) " >&6
11654else
11655  lt_cv_prog_compiler__b=no
11656   save_LDFLAGS=$LDFLAGS
11657   LDFLAGS="$LDFLAGS -b"
11658   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11659   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11660     # The linker can only warn and ignore the option if not recognized
11661     # So say no if there are warnings
11662     if test -s conftest.err; then
11663       # Append any errors to the config.log.
11664       cat conftest.err 1>&5
11665       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11666       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11667       if diff conftest.exp conftest.er2 >/dev/null; then
11668         lt_cv_prog_compiler__b=yes
11669       fi
11670     else
11671       lt_cv_prog_compiler__b=yes
11672     fi
11673   fi
11674   $RM -r conftest*
11675   LDFLAGS=$save_LDFLAGS
11676
11677fi
11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11679$as_echo "$lt_cv_prog_compiler__b" >&6; }
11680
11681if test yes = "$lt_cv_prog_compiler__b"; then
11682    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11683else
11684    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11685fi
11686
11687	  ;;
11688	esac
11689      fi
11690      if test no = "$with_gnu_ld"; then
11691	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11692	hardcode_libdir_separator=:
11693
11694	case $host_cpu in
11695	hppa*64*|ia64*)
11696	  hardcode_direct=no
11697	  hardcode_shlibpath_var=no
11698	  ;;
11699	*)
11700	  hardcode_direct=yes
11701	  hardcode_direct_absolute=yes
11702	  export_dynamic_flag_spec='$wl-E'
11703
11704	  # hardcode_minus_L: Not really in the search PATH,
11705	  # but as the default location of the library.
11706	  hardcode_minus_L=yes
11707	  ;;
11708	esac
11709      fi
11710      ;;
11711
11712    irix5* | irix6* | nonstopux*)
11713      if test yes = "$GCC"; then
11714	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'
11715	# Try to use the -exported_symbol ld option, if it does not
11716	# work, assume that -exports_file does not work either and
11717	# implicitly export all symbols.
11718	# This should be the same for all languages, so no per-tag cache variable.
11719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11720$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11721if ${lt_cv_irix_exported_symbol+:} false; then :
11722  $as_echo_n "(cached) " >&6
11723else
11724  save_LDFLAGS=$LDFLAGS
11725	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11726	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727/* end confdefs.h.  */
11728int foo (void) { return 0; }
11729_ACEOF
11730if ac_fn_c_try_link "$LINENO"; then :
11731  lt_cv_irix_exported_symbol=yes
11732else
11733  lt_cv_irix_exported_symbol=no
11734fi
11735rm -f core conftest.err conftest.$ac_objext \
11736    conftest$ac_exeext conftest.$ac_ext
11737           LDFLAGS=$save_LDFLAGS
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11740$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11741	if test yes = "$lt_cv_irix_exported_symbol"; then
11742          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'
11743	fi
11744	link_all_deplibs=no
11745      else
11746	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'
11747	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'
11748      fi
11749      archive_cmds_need_lc='no'
11750      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11751      hardcode_libdir_separator=:
11752      inherit_rpath=yes
11753      link_all_deplibs=yes
11754      ;;
11755
11756    linux*)
11757      case $cc_basename in
11758      tcc*)
11759	# Fabrice Bellard et al's Tiny C Compiler
11760	ld_shlibs=yes
11761	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11762	;;
11763      esac
11764      ;;
11765
11766    netbsd* | netbsdelf*-gnu)
11767      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11768	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11769      else
11770	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11771      fi
11772      hardcode_libdir_flag_spec='-R$libdir'
11773      hardcode_direct=yes
11774      hardcode_shlibpath_var=no
11775      ;;
11776
11777    newsos6)
11778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779      hardcode_direct=yes
11780      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11781      hardcode_libdir_separator=:
11782      hardcode_shlibpath_var=no
11783      ;;
11784
11785    *nto* | *qnx*)
11786      ;;
11787
11788    openbsd* | bitrig*)
11789      if test -f /usr/libexec/ld.so; then
11790	hardcode_direct=yes
11791	hardcode_shlibpath_var=no
11792	hardcode_direct_absolute=yes
11793	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11794	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11795	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11796	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11797	  export_dynamic_flag_spec='$wl-E'
11798	else
11799	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11800	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11801	fi
11802      else
11803	ld_shlibs=no
11804      fi
11805      ;;
11806
11807    os2*)
11808      hardcode_libdir_flag_spec='-L$libdir'
11809      hardcode_minus_L=yes
11810      allow_undefined_flag=unsupported
11811      shrext_cmds=.dll
11812      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11813	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11814	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11815	$ECHO EXPORTS >> $output_objdir/$libname.def~
11816	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11817	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11818	emximp -o $lib $output_objdir/$libname.def'
11819      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11820	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11821	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11822	$ECHO EXPORTS >> $output_objdir/$libname.def~
11823	prefix_cmds="$SED"~
11824	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11825	  prefix_cmds="$prefix_cmds -e 1d";
11826	fi~
11827	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11828	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11829	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11830	emximp -o $lib $output_objdir/$libname.def'
11831      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11832      enable_shared_with_static_runtimes=yes
11833      ;;
11834
11835    osf3*)
11836      if test yes = "$GCC"; then
11837	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11838	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'
11839      else
11840	allow_undefined_flag=' -expect_unresolved \*'
11841	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'
11842      fi
11843      archive_cmds_need_lc='no'
11844      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11845      hardcode_libdir_separator=:
11846      ;;
11847
11848    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11849      if test yes = "$GCC"; then
11850	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11851	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'
11852	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11853      else
11854	allow_undefined_flag=' -expect_unresolved \*'
11855	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'
11856	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~
11857          $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'
11858
11859	# Both c and cxx compiler support -rpath directly
11860	hardcode_libdir_flag_spec='-rpath $libdir'
11861      fi
11862      archive_cmds_need_lc='no'
11863      hardcode_libdir_separator=:
11864      ;;
11865
11866    solaris*)
11867      no_undefined_flag=' -z defs'
11868      if test yes = "$GCC"; then
11869	wlarc='$wl'
11870	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11871	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11872          $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'
11873      else
11874	case `$CC -V 2>&1` in
11875	*"Compilers 5.0"*)
11876	  wlarc=''
11877	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11878	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11879            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11880	  ;;
11881	*)
11882	  wlarc='$wl'
11883	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11884	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11885            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11886	  ;;
11887	esac
11888      fi
11889      hardcode_libdir_flag_spec='-R$libdir'
11890      hardcode_shlibpath_var=no
11891      case $host_os in
11892      solaris2.[0-5] | solaris2.[0-5].*) ;;
11893      *)
11894	# The compiler driver will combine and reorder linker options,
11895	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11896	# but is careful enough not to reorder.
11897	# Supported since Solaris 2.6 (maybe 2.5.1?)
11898	if test yes = "$GCC"; then
11899	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11900	else
11901	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11902	fi
11903	;;
11904      esac
11905      link_all_deplibs=yes
11906      ;;
11907
11908    sunos4*)
11909      if test sequent = "$host_vendor"; then
11910	# Use $CC to link under sequent, because it throws in some extra .o
11911	# files that make .init and .fini sections work.
11912	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11913      else
11914	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11915      fi
11916      hardcode_libdir_flag_spec='-L$libdir'
11917      hardcode_direct=yes
11918      hardcode_minus_L=yes
11919      hardcode_shlibpath_var=no
11920      ;;
11921
11922    sysv4)
11923      case $host_vendor in
11924	sni)
11925	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11926	  hardcode_direct=yes # is this really true???
11927	;;
11928	siemens)
11929	  ## LD is ld it makes a PLAMLIB
11930	  ## CC just makes a GrossModule.
11931	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11932	  reload_cmds='$CC -r -o $output$reload_objs'
11933	  hardcode_direct=no
11934        ;;
11935	motorola)
11936	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11937	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11938	;;
11939      esac
11940      runpath_var='LD_RUN_PATH'
11941      hardcode_shlibpath_var=no
11942      ;;
11943
11944    sysv4.3*)
11945      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11946      hardcode_shlibpath_var=no
11947      export_dynamic_flag_spec='-Bexport'
11948      ;;
11949
11950    sysv4*MP*)
11951      if test -d /usr/nec; then
11952	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11953	hardcode_shlibpath_var=no
11954	runpath_var=LD_RUN_PATH
11955	hardcode_runpath_var=yes
11956	ld_shlibs=yes
11957      fi
11958      ;;
11959
11960    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11961      no_undefined_flag='$wl-z,text'
11962      archive_cmds_need_lc=no
11963      hardcode_shlibpath_var=no
11964      runpath_var='LD_RUN_PATH'
11965
11966      if test yes = "$GCC"; then
11967	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11968	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969      else
11970	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11972      fi
11973      ;;
11974
11975    sysv5* | sco3.2v5* | sco5v6*)
11976      # Note: We CANNOT use -z defs as we might desire, because we do not
11977      # link with -lc, and that would cause any symbols used from libc to
11978      # always be unresolved, which means just about no library would
11979      # ever link correctly.  If we're not using GNU ld we use -z text
11980      # though, which does catch some bad symbols but isn't as heavy-handed
11981      # as -z defs.
11982      no_undefined_flag='$wl-z,text'
11983      allow_undefined_flag='$wl-z,nodefs'
11984      archive_cmds_need_lc=no
11985      hardcode_shlibpath_var=no
11986      hardcode_libdir_flag_spec='$wl-R,$libdir'
11987      hardcode_libdir_separator=':'
11988      link_all_deplibs=yes
11989      export_dynamic_flag_spec='$wl-Bexport'
11990      runpath_var='LD_RUN_PATH'
11991
11992      if test yes = "$GCC"; then
11993	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11994	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995      else
11996	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11997	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11998      fi
11999      ;;
12000
12001    uts4*)
12002      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12003      hardcode_libdir_flag_spec='-L$libdir'
12004      hardcode_shlibpath_var=no
12005      ;;
12006
12007    *)
12008      ld_shlibs=no
12009      ;;
12010    esac
12011
12012    if test sni = "$host_vendor"; then
12013      case $host in
12014      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12015	export_dynamic_flag_spec='$wl-Blargedynsym'
12016	;;
12017      esac
12018    fi
12019  fi
12020
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12022$as_echo "$ld_shlibs" >&6; }
12023test no = "$ld_shlibs" && can_build_shared=no
12024
12025with_gnu_ld=$with_gnu_ld
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041#
12042# Do we need to explicitly link libc?
12043#
12044case "x$archive_cmds_need_lc" in
12045x|xyes)
12046  # Assume -lc should be added
12047  archive_cmds_need_lc=yes
12048
12049  if test yes,yes = "$GCC,$enable_shared"; then
12050    case $archive_cmds in
12051    *'~'*)
12052      # FIXME: we may have to deal with multi-command sequences.
12053      ;;
12054    '$CC '*)
12055      # Test whether the compiler implicitly links with -lc since on some
12056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12057      # to ld, don't add -lc before -lgcc.
12058      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12059$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12060if ${lt_cv_archive_cmds_need_lc+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  $RM conftest*
12064	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12065
12066	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12067  (eval $ac_compile) 2>&5
12068  ac_status=$?
12069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12070  test $ac_status = 0; } 2>conftest.err; then
12071	  soname=conftest
12072	  lib=conftest
12073	  libobjs=conftest.$ac_objext
12074	  deplibs=
12075	  wl=$lt_prog_compiler_wl
12076	  pic_flag=$lt_prog_compiler_pic
12077	  compiler_flags=-v
12078	  linker_flags=-v
12079	  verstring=
12080	  output_objdir=.
12081	  libname=conftest
12082	  lt_save_allow_undefined_flag=$allow_undefined_flag
12083	  allow_undefined_flag=
12084	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12085  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12086  ac_status=$?
12087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12088  test $ac_status = 0; }
12089	  then
12090	    lt_cv_archive_cmds_need_lc=no
12091	  else
12092	    lt_cv_archive_cmds_need_lc=yes
12093	  fi
12094	  allow_undefined_flag=$lt_save_allow_undefined_flag
12095	else
12096	  cat conftest.err 1>&5
12097	fi
12098	$RM conftest*
12099
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12102$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12103      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12104      ;;
12105    esac
12106  fi
12107  ;;
12108esac
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12262$as_echo_n "checking dynamic linker characteristics... " >&6; }
12263
12264if test yes = "$GCC"; then
12265  case $host_os in
12266    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12267    *) lt_awk_arg='/^libraries:/' ;;
12268  esac
12269  case $host_os in
12270    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12271    *) lt_sed_strip_eq='s|=/|/|g' ;;
12272  esac
12273  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12274  case $lt_search_path_spec in
12275  *\;*)
12276    # if the path contains ";" then we assume it to be the separator
12277    # otherwise default to the standard path separator (i.e. ":") - it is
12278    # assumed that no part of a normal pathname contains ";" but that should
12279    # okay in the real world where ";" in dirpaths is itself problematic.
12280    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12281    ;;
12282  *)
12283    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12284    ;;
12285  esac
12286  # Ok, now we have the path, separated by spaces, we can step through it
12287  # and add multilib dir if necessary...
12288  lt_tmp_lt_search_path_spec=
12289  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12290  # ...but if some path component already ends with the multilib dir we assume
12291  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12292  case "$lt_multi_os_dir; $lt_search_path_spec " in
12293  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12294    lt_multi_os_dir=
12295    ;;
12296  esac
12297  for lt_sys_path in $lt_search_path_spec; do
12298    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12299      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12300    elif test -n "$lt_multi_os_dir"; then
12301      test -d "$lt_sys_path" && \
12302	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12303    fi
12304  done
12305  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12306BEGIN {RS = " "; FS = "/|\n";} {
12307  lt_foo = "";
12308  lt_count = 0;
12309  for (lt_i = NF; lt_i > 0; lt_i--) {
12310    if ($lt_i != "" && $lt_i != ".") {
12311      if ($lt_i == "..") {
12312        lt_count++;
12313      } else {
12314        if (lt_count == 0) {
12315          lt_foo = "/" $lt_i lt_foo;
12316        } else {
12317          lt_count--;
12318        }
12319      }
12320    }
12321  }
12322  if (lt_foo != "") { lt_freq[lt_foo]++; }
12323  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12324}'`
12325  # AWK program above erroneously prepends '/' to C:/dos/paths
12326  # for these hosts.
12327  case $host_os in
12328    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12329      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12330  esac
12331  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12332else
12333  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12334fi
12335library_names_spec=
12336libname_spec='lib$name'
12337soname_spec=
12338shrext_cmds=.so
12339postinstall_cmds=
12340postuninstall_cmds=
12341finish_cmds=
12342finish_eval=
12343shlibpath_var=
12344shlibpath_overrides_runpath=unknown
12345version_type=none
12346dynamic_linker="$host_os ld.so"
12347sys_lib_dlsearch_path_spec="/lib /usr/lib"
12348need_lib_prefix=unknown
12349hardcode_into_libs=no
12350
12351# when you set need_version to no, make sure it does not cause -set_version
12352# flags to be left without arguments
12353need_version=unknown
12354
12355
12356
12357case $host_os in
12358aix3*)
12359  version_type=linux # correct to gnu/linux during the next big refactor
12360  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12361  shlibpath_var=LIBPATH
12362
12363  # AIX 3 has no versioning support, so we append a major version to the name.
12364  soname_spec='$libname$release$shared_ext$major'
12365  ;;
12366
12367aix[4-9]*)
12368  version_type=linux # correct to gnu/linux during the next big refactor
12369  need_lib_prefix=no
12370  need_version=no
12371  hardcode_into_libs=yes
12372  if test ia64 = "$host_cpu"; then
12373    # AIX 5 supports IA64
12374    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12375    shlibpath_var=LD_LIBRARY_PATH
12376  else
12377    # With GCC up to 2.95.x, collect2 would create an import file
12378    # for dependence libraries.  The import file would start with
12379    # the line '#! .'.  This would cause the generated library to
12380    # depend on '.', always an invalid library.  This was fixed in
12381    # development snapshots of GCC prior to 3.0.
12382    case $host_os in
12383      aix4 | aix4.[01] | aix4.[01].*)
12384      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12385	   echo ' yes '
12386	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12387	:
12388      else
12389	can_build_shared=no
12390      fi
12391      ;;
12392    esac
12393    # Using Import Files as archive members, it is possible to support
12394    # filename-based versioning of shared library archives on AIX. While
12395    # this would work for both with and without runtime linking, it will
12396    # prevent static linking of such archives. So we do filename-based
12397    # shared library versioning with .so extension only, which is used
12398    # when both runtime linking and shared linking is enabled.
12399    # Unfortunately, runtime linking may impact performance, so we do
12400    # not want this to be the default eventually. Also, we use the
12401    # versioned .so libs for executables only if there is the -brtl
12402    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12403    # To allow for filename-based versioning support, we need to create
12404    # libNAME.so.V as an archive file, containing:
12405    # *) an Import File, referring to the versioned filename of the
12406    #    archive as well as the shared archive member, telling the
12407    #    bitwidth (32 or 64) of that shared object, and providing the
12408    #    list of exported symbols of that shared object, eventually
12409    #    decorated with the 'weak' keyword
12410    # *) the shared object with the F_LOADONLY flag set, to really avoid
12411    #    it being seen by the linker.
12412    # At run time we better use the real file rather than another symlink,
12413    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12414
12415    case $with_aix_soname,$aix_use_runtimelinking in
12416    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12417    # soname into executable. Probably we can add versioning support to
12418    # collect2, so additional links can be useful in future.
12419    aix,yes) # traditional libtool
12420      dynamic_linker='AIX unversionable lib.so'
12421      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12422      # instead of lib<name>.a to let people know that these are not
12423      # typical AIX shared libraries.
12424      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12425      ;;
12426    aix,no) # traditional AIX only
12427      dynamic_linker='AIX lib.a(lib.so.V)'
12428      # We preserve .a as extension for shared libraries through AIX4.2
12429      # and later when we are not doing run time linking.
12430      library_names_spec='$libname$release.a $libname.a'
12431      soname_spec='$libname$release$shared_ext$major'
12432      ;;
12433    svr4,*) # full svr4 only
12434      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12435      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12436      # We do not specify a path in Import Files, so LIBPATH fires.
12437      shlibpath_overrides_runpath=yes
12438      ;;
12439    *,yes) # both, prefer svr4
12440      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12441      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12442      # unpreferred sharedlib libNAME.a needs extra handling
12443      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"'
12444      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"'
12445      # We do not specify a path in Import Files, so LIBPATH fires.
12446      shlibpath_overrides_runpath=yes
12447      ;;
12448    *,no) # both, prefer aix
12449      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12450      library_names_spec='$libname$release.a $libname.a'
12451      soname_spec='$libname$release$shared_ext$major'
12452      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12453      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)'
12454      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"'
12455      ;;
12456    esac
12457    shlibpath_var=LIBPATH
12458  fi
12459  ;;
12460
12461amigaos*)
12462  case $host_cpu in
12463  powerpc)
12464    # Since July 2007 AmigaOS4 officially supports .so libraries.
12465    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12466    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467    ;;
12468  m68k)
12469    library_names_spec='$libname.ixlibrary $libname.a'
12470    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12471    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'
12472    ;;
12473  esac
12474  ;;
12475
12476beos*)
12477  library_names_spec='$libname$shared_ext'
12478  dynamic_linker="$host_os ld.so"
12479  shlibpath_var=LIBRARY_PATH
12480  ;;
12481
12482bsdi[45]*)
12483  version_type=linux # correct to gnu/linux during the next big refactor
12484  need_version=no
12485  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12486  soname_spec='$libname$release$shared_ext$major'
12487  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12488  shlibpath_var=LD_LIBRARY_PATH
12489  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12490  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12491  # the default ld.so.conf also contains /usr/contrib/lib and
12492  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12493  # libtool to hard-code these into programs
12494  ;;
12495
12496cygwin* | mingw* | pw32* | cegcc*)
12497  version_type=windows
12498  shrext_cmds=.dll
12499  need_version=no
12500  need_lib_prefix=no
12501
12502  case $GCC,$cc_basename in
12503  yes,*)
12504    # gcc
12505    library_names_spec='$libname.dll.a'
12506    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12507    postinstall_cmds='base_file=`basename \$file`~
12508      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12509      dldir=$destdir/`dirname \$dlpath`~
12510      test -d \$dldir || mkdir -p \$dldir~
12511      $install_prog $dir/$dlname \$dldir/$dlname~
12512      chmod a+x \$dldir/$dlname~
12513      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12514        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12515      fi'
12516    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12517      dlpath=$dir/\$dldll~
12518       $RM \$dlpath'
12519    shlibpath_overrides_runpath=yes
12520
12521    case $host_os in
12522    cygwin*)
12523      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12524      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12525
12526      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12527      ;;
12528    mingw* | cegcc*)
12529      # MinGW DLLs use traditional 'lib' prefix
12530      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12531      ;;
12532    pw32*)
12533      # pw32 DLLs use 'pw' prefix rather than 'lib'
12534      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12535      ;;
12536    esac
12537    dynamic_linker='Win32 ld.exe'
12538    ;;
12539
12540  *,cl*)
12541    # Native MSVC
12542    libname_spec='$name'
12543    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12544    library_names_spec='$libname.dll.lib'
12545
12546    case $build_os in
12547    mingw*)
12548      sys_lib_search_path_spec=
12549      lt_save_ifs=$IFS
12550      IFS=';'
12551      for lt_path in $LIB
12552      do
12553        IFS=$lt_save_ifs
12554        # Let DOS variable expansion print the short 8.3 style file name.
12555        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12556        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12557      done
12558      IFS=$lt_save_ifs
12559      # Convert to MSYS style.
12560      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12561      ;;
12562    cygwin*)
12563      # Convert to unix form, then to dos form, then back to unix form
12564      # but this time dos style (no spaces!) so that the unix form looks
12565      # like /cygdrive/c/PROGRA~1:/cygdr...
12566      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12567      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12568      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12569      ;;
12570    *)
12571      sys_lib_search_path_spec=$LIB
12572      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12573        # It is most probably a Windows format PATH.
12574        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12575      else
12576        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12577      fi
12578      # FIXME: find the short name or the path components, as spaces are
12579      # common. (e.g. "Program Files" -> "PROGRA~1")
12580      ;;
12581    esac
12582
12583    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12584    postinstall_cmds='base_file=`basename \$file`~
12585      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12586      dldir=$destdir/`dirname \$dlpath`~
12587      test -d \$dldir || mkdir -p \$dldir~
12588      $install_prog $dir/$dlname \$dldir/$dlname'
12589    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12590      dlpath=$dir/\$dldll~
12591       $RM \$dlpath'
12592    shlibpath_overrides_runpath=yes
12593    dynamic_linker='Win32 link.exe'
12594    ;;
12595
12596  *)
12597    # Assume MSVC wrapper
12598    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12599    dynamic_linker='Win32 ld.exe'
12600    ;;
12601  esac
12602  # FIXME: first we should search . and the directory the executable is in
12603  shlibpath_var=PATH
12604  ;;
12605
12606darwin* | rhapsody*)
12607  dynamic_linker="$host_os dyld"
12608  version_type=darwin
12609  need_lib_prefix=no
12610  need_version=no
12611  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12612  soname_spec='$libname$release$major$shared_ext'
12613  shlibpath_overrides_runpath=yes
12614  shlibpath_var=DYLD_LIBRARY_PATH
12615  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12616
12617  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12618  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12619  ;;
12620
12621dgux*)
12622  version_type=linux # correct to gnu/linux during the next big refactor
12623  need_lib_prefix=no
12624  need_version=no
12625  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12626  soname_spec='$libname$release$shared_ext$major'
12627  shlibpath_var=LD_LIBRARY_PATH
12628  ;;
12629
12630freebsd* | dragonfly*)
12631  # DragonFly does not have aout.  When/if they implement a new
12632  # versioning mechanism, adjust this.
12633  if test -x /usr/bin/objformat; then
12634    objformat=`/usr/bin/objformat`
12635  else
12636    case $host_os in
12637    freebsd[23].*) objformat=aout ;;
12638    *) objformat=elf ;;
12639    esac
12640  fi
12641  version_type=freebsd-$objformat
12642  case $version_type in
12643    freebsd-elf*)
12644      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12645      soname_spec='$libname$release$shared_ext$major'
12646      need_version=no
12647      need_lib_prefix=no
12648      ;;
12649    freebsd-*)
12650      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12651      need_version=yes
12652      ;;
12653  esac
12654  shlibpath_var=LD_LIBRARY_PATH
12655  case $host_os in
12656  freebsd2.*)
12657    shlibpath_overrides_runpath=yes
12658    ;;
12659  freebsd3.[01]* | freebsdelf3.[01]*)
12660    shlibpath_overrides_runpath=yes
12661    hardcode_into_libs=yes
12662    ;;
12663  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12664  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12665    shlibpath_overrides_runpath=no
12666    hardcode_into_libs=yes
12667    ;;
12668  *) # from 4.6 on, and DragonFly
12669    shlibpath_overrides_runpath=yes
12670    hardcode_into_libs=yes
12671    ;;
12672  esac
12673  ;;
12674
12675haiku*)
12676  version_type=linux # correct to gnu/linux during the next big refactor
12677  need_lib_prefix=no
12678  need_version=no
12679  dynamic_linker="$host_os runtime_loader"
12680  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12681  soname_spec='$libname$release$shared_ext$major'
12682  shlibpath_var=LIBRARY_PATH
12683  shlibpath_overrides_runpath=no
12684  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12685  hardcode_into_libs=yes
12686  ;;
12687
12688hpux9* | hpux10* | hpux11*)
12689  # Give a soname corresponding to the major version so that dld.sl refuses to
12690  # link against other versions.
12691  version_type=sunos
12692  need_lib_prefix=no
12693  need_version=no
12694  case $host_cpu in
12695  ia64*)
12696    shrext_cmds='.so'
12697    hardcode_into_libs=yes
12698    dynamic_linker="$host_os dld.so"
12699    shlibpath_var=LD_LIBRARY_PATH
12700    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12701    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12702    soname_spec='$libname$release$shared_ext$major'
12703    if test 32 = "$HPUX_IA64_MODE"; then
12704      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12705      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12706    else
12707      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12708      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12709    fi
12710    ;;
12711  hppa*64*)
12712    shrext_cmds='.sl'
12713    hardcode_into_libs=yes
12714    dynamic_linker="$host_os dld.sl"
12715    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12716    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12717    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12718    soname_spec='$libname$release$shared_ext$major'
12719    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12721    ;;
12722  *)
12723    shrext_cmds='.sl'
12724    dynamic_linker="$host_os dld.sl"
12725    shlibpath_var=SHLIB_PATH
12726    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12727    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12728    soname_spec='$libname$release$shared_ext$major'
12729    ;;
12730  esac
12731  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12732  postinstall_cmds='chmod 555 $lib'
12733  # or fails outright, so override atomically:
12734  install_override_mode=555
12735  ;;
12736
12737interix[3-9]*)
12738  version_type=linux # correct to gnu/linux during the next big refactor
12739  need_lib_prefix=no
12740  need_version=no
12741  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12742  soname_spec='$libname$release$shared_ext$major'
12743  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12744  shlibpath_var=LD_LIBRARY_PATH
12745  shlibpath_overrides_runpath=no
12746  hardcode_into_libs=yes
12747  ;;
12748
12749irix5* | irix6* | nonstopux*)
12750  case $host_os in
12751    nonstopux*) version_type=nonstopux ;;
12752    *)
12753	if test yes = "$lt_cv_prog_gnu_ld"; then
12754		version_type=linux # correct to gnu/linux during the next big refactor
12755	else
12756		version_type=irix
12757	fi ;;
12758  esac
12759  need_lib_prefix=no
12760  need_version=no
12761  soname_spec='$libname$release$shared_ext$major'
12762  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12763  case $host_os in
12764  irix5* | nonstopux*)
12765    libsuff= shlibsuff=
12766    ;;
12767  *)
12768    case $LD in # libtool.m4 will add one of these switches to LD
12769    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12770      libsuff= shlibsuff= libmagic=32-bit;;
12771    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12772      libsuff=32 shlibsuff=N32 libmagic=N32;;
12773    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12774      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12775    *) libsuff= shlibsuff= libmagic=never-match;;
12776    esac
12777    ;;
12778  esac
12779  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12780  shlibpath_overrides_runpath=no
12781  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12782  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12783  hardcode_into_libs=yes
12784  ;;
12785
12786# No shared lib support for Linux oldld, aout, or coff.
12787linux*oldld* | linux*aout* | linux*coff*)
12788  dynamic_linker=no
12789  ;;
12790
12791linux*android*)
12792  version_type=none # Android doesn't support versioned libraries.
12793  need_lib_prefix=no
12794  need_version=no
12795  library_names_spec='$libname$release$shared_ext'
12796  soname_spec='$libname$release$shared_ext'
12797  finish_cmds=
12798  shlibpath_var=LD_LIBRARY_PATH
12799  shlibpath_overrides_runpath=yes
12800
12801  # This implies no fast_install, which is unacceptable.
12802  # Some rework will be needed to allow for fast_install
12803  # before this can be enabled.
12804  hardcode_into_libs=yes
12805
12806  dynamic_linker='Android linker'
12807  # Don't embed -rpath directories since the linker doesn't support them.
12808  hardcode_libdir_flag_spec='-L$libdir'
12809  ;;
12810
12811# This must be glibc/ELF.
12812linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12813  version_type=linux # correct to gnu/linux during the next big refactor
12814  need_lib_prefix=no
12815  need_version=no
12816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12817  soname_spec='$libname$release$shared_ext$major'
12818  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12819  shlibpath_var=LD_LIBRARY_PATH
12820  shlibpath_overrides_runpath=no
12821
12822  # Some binutils ld are patched to set DT_RUNPATH
12823  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12824  $as_echo_n "(cached) " >&6
12825else
12826  lt_cv_shlibpath_overrides_runpath=no
12827    save_LDFLAGS=$LDFLAGS
12828    save_libdir=$libdir
12829    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12830	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12831    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832/* end confdefs.h.  */
12833
12834int
12835main ()
12836{
12837
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842if ac_fn_c_try_link "$LINENO"; then :
12843  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12844  lt_cv_shlibpath_overrides_runpath=yes
12845fi
12846fi
12847rm -f core conftest.err conftest.$ac_objext \
12848    conftest$ac_exeext conftest.$ac_ext
12849    LDFLAGS=$save_LDFLAGS
12850    libdir=$save_libdir
12851
12852fi
12853
12854  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12855
12856  # This implies no fast_install, which is unacceptable.
12857  # Some rework will be needed to allow for fast_install
12858  # before this can be enabled.
12859  hardcode_into_libs=yes
12860
12861  # Ideally, we could use ldconfig to report *all* directores which are
12862  # searched for libraries, however this is still not possible.  Aside from not
12863  # being certain /sbin/ldconfig is available, command
12864  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12865  # even though it is searched at run-time.  Try to do the best guess by
12866  # appending ld.so.conf contents (and includes) to the search path.
12867  if test -f /etc/ld.so.conf; then
12868    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' ' '`
12869    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12870  fi
12871
12872  # We used to test for /lib/ld.so.1 and disable shared libraries on
12873  # powerpc, because MkLinux only supported shared libraries with the
12874  # GNU dynamic linker.  Since this was broken with cross compilers,
12875  # most powerpc-linux boxes support dynamic linking these days and
12876  # people can always --disable-shared, the test was removed, and we
12877  # assume the GNU/Linux dynamic linker is in use.
12878  dynamic_linker='GNU/Linux ld.so'
12879  ;;
12880
12881netbsdelf*-gnu)
12882  version_type=linux
12883  need_lib_prefix=no
12884  need_version=no
12885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12886  soname_spec='${libname}${release}${shared_ext}$major'
12887  shlibpath_var=LD_LIBRARY_PATH
12888  shlibpath_overrides_runpath=no
12889  hardcode_into_libs=yes
12890  dynamic_linker='NetBSD ld.elf_so'
12891  ;;
12892
12893netbsd*)
12894  version_type=sunos
12895  need_lib_prefix=no
12896  need_version=no
12897  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12898    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12899    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12900    dynamic_linker='NetBSD (a.out) ld.so'
12901  else
12902    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12903    soname_spec='$libname$release$shared_ext$major'
12904    dynamic_linker='NetBSD ld.elf_so'
12905  fi
12906  shlibpath_var=LD_LIBRARY_PATH
12907  shlibpath_overrides_runpath=yes
12908  hardcode_into_libs=yes
12909  ;;
12910
12911newsos6)
12912  version_type=linux # correct to gnu/linux during the next big refactor
12913  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914  shlibpath_var=LD_LIBRARY_PATH
12915  shlibpath_overrides_runpath=yes
12916  ;;
12917
12918*nto* | *qnx*)
12919  version_type=qnx
12920  need_lib_prefix=no
12921  need_version=no
12922  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923  soname_spec='$libname$release$shared_ext$major'
12924  shlibpath_var=LD_LIBRARY_PATH
12925  shlibpath_overrides_runpath=no
12926  hardcode_into_libs=yes
12927  dynamic_linker='ldqnx.so'
12928  ;;
12929
12930openbsd* | bitrig*)
12931  version_type=sunos
12932  sys_lib_dlsearch_path_spec=/usr/lib
12933  need_lib_prefix=no
12934  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12935    need_version=no
12936  else
12937    need_version=yes
12938  fi
12939  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12940  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12941  shlibpath_var=LD_LIBRARY_PATH
12942  shlibpath_overrides_runpath=yes
12943  ;;
12944
12945os2*)
12946  libname_spec='$name'
12947  version_type=windows
12948  shrext_cmds=.dll
12949  need_version=no
12950  need_lib_prefix=no
12951  # OS/2 can only load a DLL with a base name of 8 characters or less.
12952  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12953    v=$($ECHO $release$versuffix | tr -d .-);
12954    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12955    $ECHO $n$v`$shared_ext'
12956  library_names_spec='${libname}_dll.$libext'
12957  dynamic_linker='OS/2 ld.exe'
12958  shlibpath_var=BEGINLIBPATH
12959  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12960  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12961  postinstall_cmds='base_file=`basename \$file`~
12962    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12963    dldir=$destdir/`dirname \$dlpath`~
12964    test -d \$dldir || mkdir -p \$dldir~
12965    $install_prog $dir/$dlname \$dldir/$dlname~
12966    chmod a+x \$dldir/$dlname~
12967    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12968      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12969    fi'
12970  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12971    dlpath=$dir/\$dldll~
12972    $RM \$dlpath'
12973  ;;
12974
12975osf3* | osf4* | osf5*)
12976  version_type=osf
12977  need_lib_prefix=no
12978  need_version=no
12979  soname_spec='$libname$release$shared_ext$major'
12980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981  shlibpath_var=LD_LIBRARY_PATH
12982  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12983  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12984  ;;
12985
12986rdos*)
12987  dynamic_linker=no
12988  ;;
12989
12990solaris*)
12991  version_type=linux # correct to gnu/linux during the next big refactor
12992  need_lib_prefix=no
12993  need_version=no
12994  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12995  soname_spec='$libname$release$shared_ext$major'
12996  shlibpath_var=LD_LIBRARY_PATH
12997  shlibpath_overrides_runpath=yes
12998  hardcode_into_libs=yes
12999  # ldd complains unless libraries are executable
13000  postinstall_cmds='chmod +x $lib'
13001  ;;
13002
13003sunos4*)
13004  version_type=sunos
13005  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13006  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13007  shlibpath_var=LD_LIBRARY_PATH
13008  shlibpath_overrides_runpath=yes
13009  if test yes = "$with_gnu_ld"; then
13010    need_lib_prefix=no
13011  fi
13012  need_version=yes
13013  ;;
13014
13015sysv4 | sysv4.3*)
13016  version_type=linux # correct to gnu/linux during the next big refactor
13017  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13018  soname_spec='$libname$release$shared_ext$major'
13019  shlibpath_var=LD_LIBRARY_PATH
13020  case $host_vendor in
13021    sni)
13022      shlibpath_overrides_runpath=no
13023      need_lib_prefix=no
13024      runpath_var=LD_RUN_PATH
13025      ;;
13026    siemens)
13027      need_lib_prefix=no
13028      ;;
13029    motorola)
13030      need_lib_prefix=no
13031      need_version=no
13032      shlibpath_overrides_runpath=no
13033      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13034      ;;
13035  esac
13036  ;;
13037
13038sysv4*MP*)
13039  if test -d /usr/nec; then
13040    version_type=linux # correct to gnu/linux during the next big refactor
13041    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13042    soname_spec='$libname$shared_ext.$major'
13043    shlibpath_var=LD_LIBRARY_PATH
13044  fi
13045  ;;
13046
13047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13048  version_type=sco
13049  need_lib_prefix=no
13050  need_version=no
13051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13052  soname_spec='$libname$release$shared_ext$major'
13053  shlibpath_var=LD_LIBRARY_PATH
13054  shlibpath_overrides_runpath=yes
13055  hardcode_into_libs=yes
13056  if test yes = "$with_gnu_ld"; then
13057    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13058  else
13059    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13060    case $host_os in
13061      sco3.2v5*)
13062        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13063	;;
13064    esac
13065  fi
13066  sys_lib_dlsearch_path_spec='/usr/lib'
13067  ;;
13068
13069tpf*)
13070  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13071  version_type=linux # correct to gnu/linux during the next big refactor
13072  need_lib_prefix=no
13073  need_version=no
13074  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13075  shlibpath_var=LD_LIBRARY_PATH
13076  shlibpath_overrides_runpath=no
13077  hardcode_into_libs=yes
13078  ;;
13079
13080uts4*)
13081  version_type=linux # correct to gnu/linux during the next big refactor
13082  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13083  soname_spec='$libname$release$shared_ext$major'
13084  shlibpath_var=LD_LIBRARY_PATH
13085  ;;
13086
13087*)
13088  dynamic_linker=no
13089  ;;
13090esac
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13092$as_echo "$dynamic_linker" >&6; }
13093test no = "$dynamic_linker" && can_build_shared=no
13094
13095variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13096if test yes = "$GCC"; then
13097  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13098fi
13099
13100if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13101  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13102fi
13103
13104if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13105  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13106fi
13107
13108# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13109configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13110
13111# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13112func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13113
13114# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13115configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13214$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13215hardcode_action=
13216if test -n "$hardcode_libdir_flag_spec" ||
13217   test -n "$runpath_var" ||
13218   test yes = "$hardcode_automatic"; then
13219
13220  # We can hardcode non-existent directories.
13221  if test no != "$hardcode_direct" &&
13222     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13223     # have to relink, otherwise we might link with an installed library
13224     # when we should be linking with a yet-to-be-installed one
13225     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13226     test no != "$hardcode_minus_L"; then
13227    # Linking always hardcodes the temporary library directory.
13228    hardcode_action=relink
13229  else
13230    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13231    hardcode_action=immediate
13232  fi
13233else
13234  # We cannot hardcode anything, or else we can only hardcode existing
13235  # directories.
13236  hardcode_action=unsupported
13237fi
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13239$as_echo "$hardcode_action" >&6; }
13240
13241if test relink = "$hardcode_action" ||
13242   test yes = "$inherit_rpath"; then
13243  # Fast installation is not supported
13244  enable_fast_install=no
13245elif test yes = "$shlibpath_overrides_runpath" ||
13246     test no = "$enable_shared"; then
13247  # Fast installation is not necessary
13248  enable_fast_install=needless
13249fi
13250
13251
13252
13253
13254
13255
13256  if test yes != "$enable_dlopen"; then
13257  enable_dlopen=unknown
13258  enable_dlopen_self=unknown
13259  enable_dlopen_self_static=unknown
13260else
13261  lt_cv_dlopen=no
13262  lt_cv_dlopen_libs=
13263
13264  case $host_os in
13265  beos*)
13266    lt_cv_dlopen=load_add_on
13267    lt_cv_dlopen_libs=
13268    lt_cv_dlopen_self=yes
13269    ;;
13270
13271  mingw* | pw32* | cegcc*)
13272    lt_cv_dlopen=LoadLibrary
13273    lt_cv_dlopen_libs=
13274    ;;
13275
13276  cygwin*)
13277    lt_cv_dlopen=dlopen
13278    lt_cv_dlopen_libs=
13279    ;;
13280
13281  darwin*)
13282    # if libdl is installed we need to link against it
13283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13284$as_echo_n "checking for dlopen in -ldl... " >&6; }
13285if ${ac_cv_lib_dl_dlopen+:} false; then :
13286  $as_echo_n "(cached) " >&6
13287else
13288  ac_check_lib_save_LIBS=$LIBS
13289LIBS="-ldl  $LIBS"
13290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h.  */
13292
13293/* Override any GCC internal prototype to avoid an error.
13294   Use char because int might match the return type of a GCC
13295   builtin and then its argument prototype would still apply.  */
13296#ifdef __cplusplus
13297extern "C"
13298#endif
13299char dlopen ();
13300int
13301main ()
13302{
13303return dlopen ();
13304  ;
13305  return 0;
13306}
13307_ACEOF
13308if ac_fn_c_try_link "$LINENO"; then :
13309  ac_cv_lib_dl_dlopen=yes
13310else
13311  ac_cv_lib_dl_dlopen=no
13312fi
13313rm -f core conftest.err conftest.$ac_objext \
13314    conftest$ac_exeext conftest.$ac_ext
13315LIBS=$ac_check_lib_save_LIBS
13316fi
13317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13320  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13321else
13322
13323    lt_cv_dlopen=dyld
13324    lt_cv_dlopen_libs=
13325    lt_cv_dlopen_self=yes
13326
13327fi
13328
13329    ;;
13330
13331  tpf*)
13332    # Don't try to run any link tests for TPF.  We know it's impossible
13333    # because TPF is a cross-compiler, and we know how we open DSOs.
13334    lt_cv_dlopen=dlopen
13335    lt_cv_dlopen_libs=
13336    lt_cv_dlopen_self=no
13337    ;;
13338
13339  *)
13340    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13341if test "x$ac_cv_func_shl_load" = xyes; then :
13342  lt_cv_dlopen=shl_load
13343else
13344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13345$as_echo_n "checking for shl_load in -ldld... " >&6; }
13346if ${ac_cv_lib_dld_shl_load+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349  ac_check_lib_save_LIBS=$LIBS
13350LIBS="-ldld  $LIBS"
13351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352/* end confdefs.h.  */
13353
13354/* Override any GCC internal prototype to avoid an error.
13355   Use char because int might match the return type of a GCC
13356   builtin and then its argument prototype would still apply.  */
13357#ifdef __cplusplus
13358extern "C"
13359#endif
13360char shl_load ();
13361int
13362main ()
13363{
13364return shl_load ();
13365  ;
13366  return 0;
13367}
13368_ACEOF
13369if ac_fn_c_try_link "$LINENO"; then :
13370  ac_cv_lib_dld_shl_load=yes
13371else
13372  ac_cv_lib_dld_shl_load=no
13373fi
13374rm -f core conftest.err conftest.$ac_objext \
13375    conftest$ac_exeext conftest.$ac_ext
13376LIBS=$ac_check_lib_save_LIBS
13377fi
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13379$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13380if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13381  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13382else
13383  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13384if test "x$ac_cv_func_dlopen" = xyes; then :
13385  lt_cv_dlopen=dlopen
13386else
13387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13388$as_echo_n "checking for dlopen in -ldl... " >&6; }
13389if ${ac_cv_lib_dl_dlopen+:} false; then :
13390  $as_echo_n "(cached) " >&6
13391else
13392  ac_check_lib_save_LIBS=$LIBS
13393LIBS="-ldl  $LIBS"
13394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395/* end confdefs.h.  */
13396
13397/* Override any GCC internal prototype to avoid an error.
13398   Use char because int might match the return type of a GCC
13399   builtin and then its argument prototype would still apply.  */
13400#ifdef __cplusplus
13401extern "C"
13402#endif
13403char dlopen ();
13404int
13405main ()
13406{
13407return dlopen ();
13408  ;
13409  return 0;
13410}
13411_ACEOF
13412if ac_fn_c_try_link "$LINENO"; then :
13413  ac_cv_lib_dl_dlopen=yes
13414else
13415  ac_cv_lib_dl_dlopen=no
13416fi
13417rm -f core conftest.err conftest.$ac_objext \
13418    conftest$ac_exeext conftest.$ac_ext
13419LIBS=$ac_check_lib_save_LIBS
13420fi
13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13422$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13423if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13424  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13425else
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13427$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13428if ${ac_cv_lib_svld_dlopen+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430else
13431  ac_check_lib_save_LIBS=$LIBS
13432LIBS="-lsvld  $LIBS"
13433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434/* end confdefs.h.  */
13435
13436/* Override any GCC internal prototype to avoid an error.
13437   Use char because int might match the return type of a GCC
13438   builtin and then its argument prototype would still apply.  */
13439#ifdef __cplusplus
13440extern "C"
13441#endif
13442char dlopen ();
13443int
13444main ()
13445{
13446return dlopen ();
13447  ;
13448  return 0;
13449}
13450_ACEOF
13451if ac_fn_c_try_link "$LINENO"; then :
13452  ac_cv_lib_svld_dlopen=yes
13453else
13454  ac_cv_lib_svld_dlopen=no
13455fi
13456rm -f core conftest.err conftest.$ac_objext \
13457    conftest$ac_exeext conftest.$ac_ext
13458LIBS=$ac_check_lib_save_LIBS
13459fi
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13461$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13462if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13463  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13464else
13465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13466$as_echo_n "checking for dld_link in -ldld... " >&6; }
13467if ${ac_cv_lib_dld_dld_link+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  ac_check_lib_save_LIBS=$LIBS
13471LIBS="-ldld  $LIBS"
13472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473/* end confdefs.h.  */
13474
13475/* Override any GCC internal prototype to avoid an error.
13476   Use char because int might match the return type of a GCC
13477   builtin and then its argument prototype would still apply.  */
13478#ifdef __cplusplus
13479extern "C"
13480#endif
13481char dld_link ();
13482int
13483main ()
13484{
13485return dld_link ();
13486  ;
13487  return 0;
13488}
13489_ACEOF
13490if ac_fn_c_try_link "$LINENO"; then :
13491  ac_cv_lib_dld_dld_link=yes
13492else
13493  ac_cv_lib_dld_dld_link=no
13494fi
13495rm -f core conftest.err conftest.$ac_objext \
13496    conftest$ac_exeext conftest.$ac_ext
13497LIBS=$ac_check_lib_save_LIBS
13498fi
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13500$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13501if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13502  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13503fi
13504
13505
13506fi
13507
13508
13509fi
13510
13511
13512fi
13513
13514
13515fi
13516
13517
13518fi
13519
13520    ;;
13521  esac
13522
13523  if test no = "$lt_cv_dlopen"; then
13524    enable_dlopen=no
13525  else
13526    enable_dlopen=yes
13527  fi
13528
13529  case $lt_cv_dlopen in
13530  dlopen)
13531    save_CPPFLAGS=$CPPFLAGS
13532    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13533
13534    save_LDFLAGS=$LDFLAGS
13535    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13536
13537    save_LIBS=$LIBS
13538    LIBS="$lt_cv_dlopen_libs $LIBS"
13539
13540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13541$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13542if ${lt_cv_dlopen_self+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  	  if test yes = "$cross_compiling"; then :
13546  lt_cv_dlopen_self=cross
13547else
13548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13549  lt_status=$lt_dlunknown
13550  cat > conftest.$ac_ext <<_LT_EOF
13551#line $LINENO "configure"
13552#include "confdefs.h"
13553
13554#if HAVE_DLFCN_H
13555#include <dlfcn.h>
13556#endif
13557
13558#include <stdio.h>
13559
13560#ifdef RTLD_GLOBAL
13561#  define LT_DLGLOBAL		RTLD_GLOBAL
13562#else
13563#  ifdef DL_GLOBAL
13564#    define LT_DLGLOBAL		DL_GLOBAL
13565#  else
13566#    define LT_DLGLOBAL		0
13567#  endif
13568#endif
13569
13570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13571   find out it does not work in some platform. */
13572#ifndef LT_DLLAZY_OR_NOW
13573#  ifdef RTLD_LAZY
13574#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13575#  else
13576#    ifdef DL_LAZY
13577#      define LT_DLLAZY_OR_NOW		DL_LAZY
13578#    else
13579#      ifdef RTLD_NOW
13580#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13581#      else
13582#        ifdef DL_NOW
13583#          define LT_DLLAZY_OR_NOW	DL_NOW
13584#        else
13585#          define LT_DLLAZY_OR_NOW	0
13586#        endif
13587#      endif
13588#    endif
13589#  endif
13590#endif
13591
13592/* When -fvisibility=hidden is used, assume the code has been annotated
13593   correspondingly for the symbols needed.  */
13594#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13595int fnord () __attribute__((visibility("default")));
13596#endif
13597
13598int fnord () { return 42; }
13599int main ()
13600{
13601  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13602  int status = $lt_dlunknown;
13603
13604  if (self)
13605    {
13606      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13607      else
13608        {
13609	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13610          else puts (dlerror ());
13611	}
13612      /* dlclose (self); */
13613    }
13614  else
13615    puts (dlerror ());
13616
13617  return status;
13618}
13619_LT_EOF
13620  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13621  (eval $ac_link) 2>&5
13622  ac_status=$?
13623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13625    (./conftest; exit; ) >&5 2>/dev/null
13626    lt_status=$?
13627    case x$lt_status in
13628      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13629      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13630      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13631    esac
13632  else :
13633    # compilation failed
13634    lt_cv_dlopen_self=no
13635  fi
13636fi
13637rm -fr conftest*
13638
13639
13640fi
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13642$as_echo "$lt_cv_dlopen_self" >&6; }
13643
13644    if test yes = "$lt_cv_dlopen_self"; then
13645      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13646      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13647$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13648if ${lt_cv_dlopen_self_static+:} false; then :
13649  $as_echo_n "(cached) " >&6
13650else
13651  	  if test yes = "$cross_compiling"; then :
13652  lt_cv_dlopen_self_static=cross
13653else
13654  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13655  lt_status=$lt_dlunknown
13656  cat > conftest.$ac_ext <<_LT_EOF
13657#line $LINENO "configure"
13658#include "confdefs.h"
13659
13660#if HAVE_DLFCN_H
13661#include <dlfcn.h>
13662#endif
13663
13664#include <stdio.h>
13665
13666#ifdef RTLD_GLOBAL
13667#  define LT_DLGLOBAL		RTLD_GLOBAL
13668#else
13669#  ifdef DL_GLOBAL
13670#    define LT_DLGLOBAL		DL_GLOBAL
13671#  else
13672#    define LT_DLGLOBAL		0
13673#  endif
13674#endif
13675
13676/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13677   find out it does not work in some platform. */
13678#ifndef LT_DLLAZY_OR_NOW
13679#  ifdef RTLD_LAZY
13680#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13681#  else
13682#    ifdef DL_LAZY
13683#      define LT_DLLAZY_OR_NOW		DL_LAZY
13684#    else
13685#      ifdef RTLD_NOW
13686#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13687#      else
13688#        ifdef DL_NOW
13689#          define LT_DLLAZY_OR_NOW	DL_NOW
13690#        else
13691#          define LT_DLLAZY_OR_NOW	0
13692#        endif
13693#      endif
13694#    endif
13695#  endif
13696#endif
13697
13698/* When -fvisibility=hidden is used, assume the code has been annotated
13699   correspondingly for the symbols needed.  */
13700#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13701int fnord () __attribute__((visibility("default")));
13702#endif
13703
13704int fnord () { return 42; }
13705int main ()
13706{
13707  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13708  int status = $lt_dlunknown;
13709
13710  if (self)
13711    {
13712      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13713      else
13714        {
13715	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13716          else puts (dlerror ());
13717	}
13718      /* dlclose (self); */
13719    }
13720  else
13721    puts (dlerror ());
13722
13723  return status;
13724}
13725_LT_EOF
13726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13727  (eval $ac_link) 2>&5
13728  ac_status=$?
13729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13730  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13731    (./conftest; exit; ) >&5 2>/dev/null
13732    lt_status=$?
13733    case x$lt_status in
13734      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13735      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13736      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13737    esac
13738  else :
13739    # compilation failed
13740    lt_cv_dlopen_self_static=no
13741  fi
13742fi
13743rm -fr conftest*
13744
13745
13746fi
13747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13748$as_echo "$lt_cv_dlopen_self_static" >&6; }
13749    fi
13750
13751    CPPFLAGS=$save_CPPFLAGS
13752    LDFLAGS=$save_LDFLAGS
13753    LIBS=$save_LIBS
13754    ;;
13755  esac
13756
13757  case $lt_cv_dlopen_self in
13758  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13759  *) enable_dlopen_self=unknown ;;
13760  esac
13761
13762  case $lt_cv_dlopen_self_static in
13763  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13764  *) enable_dlopen_self_static=unknown ;;
13765  esac
13766fi
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784striplib=
13785old_striplib=
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13787$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13788if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13789  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13790  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13792$as_echo "yes" >&6; }
13793else
13794# FIXME - insert some real tests, host_os isn't really good enough
13795  case $host_os in
13796  darwin*)
13797    if test -n "$STRIP"; then
13798      striplib="$STRIP -x"
13799      old_striplib="$STRIP -S"
13800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801$as_echo "yes" >&6; }
13802    else
13803      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804$as_echo "no" >&6; }
13805    fi
13806    ;;
13807  *)
13808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
13810    ;;
13811  esac
13812fi
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825  # Report what library types will actually be built
13826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13827$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13829$as_echo "$can_build_shared" >&6; }
13830
13831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13832$as_echo_n "checking whether to build shared libraries... " >&6; }
13833  test no = "$can_build_shared" && enable_shared=no
13834
13835  # On AIX, shared libraries and static libraries use the same namespace, and
13836  # are all built from PIC.
13837  case $host_os in
13838  aix3*)
13839    test yes = "$enable_shared" && enable_static=no
13840    if test -n "$RANLIB"; then
13841      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13842      postinstall_cmds='$RANLIB $lib'
13843    fi
13844    ;;
13845
13846  aix[4-9]*)
13847    if test ia64 != "$host_cpu"; then
13848      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13849      yes,aix,yes) ;;			# shared object as lib.so file only
13850      yes,svr4,*) ;;			# shared object as lib.so archive member only
13851      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13852      esac
13853    fi
13854    ;;
13855  esac
13856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13857$as_echo "$enable_shared" >&6; }
13858
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13860$as_echo_n "checking whether to build static libraries... " >&6; }
13861  # Make sure either enable_shared or enable_static is yes.
13862  test yes = "$enable_shared" || enable_static=yes
13863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13864$as_echo "$enable_static" >&6; }
13865
13866
13867
13868
13869fi
13870ac_ext=c
13871ac_cpp='$CPP $CPPFLAGS'
13872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13874ac_compiler_gnu=$ac_cv_c_compiler_gnu
13875
13876CC=$lt_save_CC
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892        ac_config_commands="$ac_config_commands libtool"
13893
13894
13895
13896
13897# Only expand once:
13898
13899
13900
13901
13902GST_REQ=1.16.2
13903
13904
13905
13906
13907# Check whether --with-autoconf was given.
13908if test "${with_autoconf+set}" = set; then :
13909  withval=$with_autoconf;
13910      unset AUTOCONF
13911
13912AUTOCONF=${AUTOCONF-"${am_missing_run}${withval}"}
13913
13914      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOCONF as autoconf" >&5
13915$as_echo "$as_me: Using $AUTOCONF as autoconf" >&6;}
13916
13917fi
13918
13919
13920
13921# Check whether --with-autoheader was given.
13922if test "${with_autoheader+set}" = set; then :
13923  withval=$with_autoheader;
13924      unset AUTOHEADER
13925
13926AUTOHEADER=${AUTOHEADER-"${am_missing_run}${withval}"}
13927
13928      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOHEADER as autoheader" >&5
13929$as_echo "$as_me: Using $AUTOHEADER as autoheader" >&6;}
13930
13931fi
13932
13933
13934
13935# Check whether --with-automake was given.
13936if test "${with_automake+set}" = set; then :
13937  withval=$with_automake;
13938      unset AUTOMAKE
13939
13940AUTOMAKE=${AUTOMAKE-"${am_missing_run}${withval}"}
13941
13942      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOMAKE as automake" >&5
13943$as_echo "$as_me: Using $AUTOMAKE as automake" >&6;}
13944
13945fi
13946
13947
13948
13949# Check whether --with-aclocal was given.
13950if test "${with_aclocal+set}" = set; then :
13951  withval=$with_aclocal;
13952      unset ACLOCAL
13953
13954ACLOCAL=${ACLOCAL-"${am_missing_run}${withval}"}
13955
13956      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $ACLOCAL as aclocal" >&5
13957$as_echo "$as_me: Using $ACLOCAL as aclocal" >&6;}
13958
13959fi
13960
13961
13962
13963ACLOCAL_AMFLAGS="-I m4 -I common/m4"
13964
13965
13966
13967
13968mkdir_p="$MKDIR_P"
13969case $mkdir_p in
13970  [\\/$]* | ?:[\\/]*) ;;
13971  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13972esac
13973
13974
13975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13976$as_echo_n "checking whether NLS is requested... " >&6; }
13977    # Check whether --enable-nls was given.
13978if test "${enable_nls+set}" = set; then :
13979  enableval=$enable_nls; USE_NLS=$enableval
13980else
13981  USE_NLS=yes
13982fi
13983
13984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13985$as_echo "$USE_NLS" >&6; }
13986
13987
13988
13989
13990      GETTEXT_MACRO_VERSION=0.17
13991
13992
13993
13994
13995# Prepare PATH_SEPARATOR.
13996# The user is always right.
13997if test "${PATH_SEPARATOR+set}" != set; then
13998  echo "#! /bin/sh" >conf$$.sh
13999  echo  "exit 0"   >>conf$$.sh
14000  chmod +x conf$$.sh
14001  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14002    PATH_SEPARATOR=';'
14003  else
14004    PATH_SEPARATOR=:
14005  fi
14006  rm -f conf$$.sh
14007fi
14008
14009# Find out how to test for executable files. Don't use a zero-byte file,
14010# as systems may use methods other than mode bits to determine executability.
14011cat >conf$$.file <<_ASEOF
14012#! /bin/sh
14013exit 0
14014_ASEOF
14015chmod +x conf$$.file
14016if test -x conf$$.file >/dev/null 2>&1; then
14017  ac_executable_p="test -x"
14018else
14019  ac_executable_p="test -f"
14020fi
14021rm -f conf$$.file
14022
14023# Extract the first word of "msgfmt", so it can be a program name with args.
14024set dummy msgfmt; ac_word=$2
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026$as_echo_n "checking for $ac_word... " >&6; }
14027if ${ac_cv_path_MSGFMT+:} false; then :
14028  $as_echo_n "(cached) " >&6
14029else
14030  case "$MSGFMT" in
14031  [\\/]* | ?:[\\/]*)
14032    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14033    ;;
14034  *)
14035    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14036    for ac_dir in $PATH; do
14037      IFS="$ac_save_IFS"
14038      test -z "$ac_dir" && ac_dir=.
14039      for ac_exec_ext in '' $ac_executable_extensions; do
14040        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14041          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14042          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14043     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14044            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14045            break 2
14046          fi
14047        fi
14048      done
14049    done
14050    IFS="$ac_save_IFS"
14051  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14052    ;;
14053esac
14054fi
14055MSGFMT="$ac_cv_path_MSGFMT"
14056if test "$MSGFMT" != ":"; then
14057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14058$as_echo "$MSGFMT" >&6; }
14059else
14060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061$as_echo "no" >&6; }
14062fi
14063
14064  # Extract the first word of "gmsgfmt", so it can be a program name with args.
14065set dummy gmsgfmt; ac_word=$2
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14067$as_echo_n "checking for $ac_word... " >&6; }
14068if ${ac_cv_path_GMSGFMT+:} false; then :
14069  $as_echo_n "(cached) " >&6
14070else
14071  case $GMSGFMT in
14072  [\\/]* | ?:[\\/]*)
14073  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14074  ;;
14075  *)
14076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079  IFS=$as_save_IFS
14080  test -z "$as_dir" && as_dir=.
14081    for ac_exec_ext in '' $ac_executable_extensions; do
14082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085    break 2
14086  fi
14087done
14088  done
14089IFS=$as_save_IFS
14090
14091  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14092  ;;
14093esac
14094fi
14095GMSGFMT=$ac_cv_path_GMSGFMT
14096if test -n "$GMSGFMT"; then
14097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14098$as_echo "$GMSGFMT" >&6; }
14099else
14100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101$as_echo "no" >&6; }
14102fi
14103
14104
14105
14106    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14107    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14108    *) MSGFMT_015=$MSGFMT ;;
14109  esac
14110
14111  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14112    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14113    *) GMSGFMT_015=$GMSGFMT ;;
14114  esac
14115
14116
14117
14118# Prepare PATH_SEPARATOR.
14119# The user is always right.
14120if test "${PATH_SEPARATOR+set}" != set; then
14121  echo "#! /bin/sh" >conf$$.sh
14122  echo  "exit 0"   >>conf$$.sh
14123  chmod +x conf$$.sh
14124  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14125    PATH_SEPARATOR=';'
14126  else
14127    PATH_SEPARATOR=:
14128  fi
14129  rm -f conf$$.sh
14130fi
14131
14132# Find out how to test for executable files. Don't use a zero-byte file,
14133# as systems may use methods other than mode bits to determine executability.
14134cat >conf$$.file <<_ASEOF
14135#! /bin/sh
14136exit 0
14137_ASEOF
14138chmod +x conf$$.file
14139if test -x conf$$.file >/dev/null 2>&1; then
14140  ac_executable_p="test -x"
14141else
14142  ac_executable_p="test -f"
14143fi
14144rm -f conf$$.file
14145
14146# Extract the first word of "xgettext", so it can be a program name with args.
14147set dummy xgettext; ac_word=$2
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14149$as_echo_n "checking for $ac_word... " >&6; }
14150if ${ac_cv_path_XGETTEXT+:} false; then :
14151  $as_echo_n "(cached) " >&6
14152else
14153  case "$XGETTEXT" in
14154  [\\/]* | ?:[\\/]*)
14155    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14156    ;;
14157  *)
14158    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14159    for ac_dir in $PATH; do
14160      IFS="$ac_save_IFS"
14161      test -z "$ac_dir" && ac_dir=.
14162      for ac_exec_ext in '' $ac_executable_extensions; do
14163        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14164          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14165          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14166     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14167            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14168            break 2
14169          fi
14170        fi
14171      done
14172    done
14173    IFS="$ac_save_IFS"
14174  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14175    ;;
14176esac
14177fi
14178XGETTEXT="$ac_cv_path_XGETTEXT"
14179if test "$XGETTEXT" != ":"; then
14180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14181$as_echo "$XGETTEXT" >&6; }
14182else
14183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14184$as_echo "no" >&6; }
14185fi
14186
14187    rm -f messages.po
14188
14189    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14190    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14191    *) XGETTEXT_015=$XGETTEXT ;;
14192  esac
14193
14194
14195
14196# Prepare PATH_SEPARATOR.
14197# The user is always right.
14198if test "${PATH_SEPARATOR+set}" != set; then
14199  echo "#! /bin/sh" >conf$$.sh
14200  echo  "exit 0"   >>conf$$.sh
14201  chmod +x conf$$.sh
14202  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14203    PATH_SEPARATOR=';'
14204  else
14205    PATH_SEPARATOR=:
14206  fi
14207  rm -f conf$$.sh
14208fi
14209
14210# Find out how to test for executable files. Don't use a zero-byte file,
14211# as systems may use methods other than mode bits to determine executability.
14212cat >conf$$.file <<_ASEOF
14213#! /bin/sh
14214exit 0
14215_ASEOF
14216chmod +x conf$$.file
14217if test -x conf$$.file >/dev/null 2>&1; then
14218  ac_executable_p="test -x"
14219else
14220  ac_executable_p="test -f"
14221fi
14222rm -f conf$$.file
14223
14224# Extract the first word of "msgmerge", so it can be a program name with args.
14225set dummy msgmerge; ac_word=$2
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227$as_echo_n "checking for $ac_word... " >&6; }
14228if ${ac_cv_path_MSGMERGE+:} false; then :
14229  $as_echo_n "(cached) " >&6
14230else
14231  case "$MSGMERGE" in
14232  [\\/]* | ?:[\\/]*)
14233    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14234    ;;
14235  *)
14236    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14237    for ac_dir in $PATH; do
14238      IFS="$ac_save_IFS"
14239      test -z "$ac_dir" && ac_dir=.
14240      for ac_exec_ext in '' $ac_executable_extensions; do
14241        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14242          echo "$as_me: trying $ac_dir/$ac_word..." >&5
14243          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14244            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14245            break 2
14246          fi
14247        fi
14248      done
14249    done
14250    IFS="$ac_save_IFS"
14251  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14252    ;;
14253esac
14254fi
14255MSGMERGE="$ac_cv_path_MSGMERGE"
14256if test "$MSGMERGE" != ":"; then
14257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14258$as_echo "$MSGMERGE" >&6; }
14259else
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261$as_echo "no" >&6; }
14262fi
14263
14264
14265        test -n "$localedir" || localedir='${datadir}/locale'
14266
14267
14268    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14269
14270
14271  ac_config_commands="$ac_config_commands po-directories"
14272
14273
14274
14275      if test "X$prefix" = "XNONE"; then
14276    acl_final_prefix="$ac_default_prefix"
14277  else
14278    acl_final_prefix="$prefix"
14279  fi
14280  if test "X$exec_prefix" = "XNONE"; then
14281    acl_final_exec_prefix='${prefix}'
14282  else
14283    acl_final_exec_prefix="$exec_prefix"
14284  fi
14285  acl_save_prefix="$prefix"
14286  prefix="$acl_final_prefix"
14287  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14288  prefix="$acl_save_prefix"
14289
14290
14291# Check whether --with-gnu-ld was given.
14292if test "${with_gnu_ld+set}" = set; then :
14293  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14294else
14295  with_gnu_ld=no
14296fi
14297
14298# Prepare PATH_SEPARATOR.
14299# The user is always right.
14300if test "${PATH_SEPARATOR+set}" != set; then
14301  echo "#! /bin/sh" >conf$$.sh
14302  echo  "exit 0"   >>conf$$.sh
14303  chmod +x conf$$.sh
14304  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14305    PATH_SEPARATOR=';'
14306  else
14307    PATH_SEPARATOR=:
14308  fi
14309  rm -f conf$$.sh
14310fi
14311ac_prog=ld
14312if test "$GCC" = yes; then
14313  # Check if gcc -print-prog-name=ld gives a path.
14314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14315$as_echo_n "checking for ld used by GCC... " >&6; }
14316  case $host in
14317  *-*-mingw*)
14318    # gcc leaves a trailing carriage return which upsets mingw
14319    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14320  *)
14321    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14322  esac
14323  case $ac_prog in
14324    # Accept absolute paths.
14325    [\\/]* | [A-Za-z]:[\\/]*)
14326      re_direlt='/[^/][^/]*/\.\./'
14327      # Canonicalize the path of ld
14328      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14329      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14330	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14331      done
14332      test -z "$LD" && LD="$ac_prog"
14333      ;;
14334  "")
14335    # If it fails, then pretend we aren't using GCC.
14336    ac_prog=ld
14337    ;;
14338  *)
14339    # If it is relative, then search for the first ld in PATH.
14340    with_gnu_ld=unknown
14341    ;;
14342  esac
14343elif test "$with_gnu_ld" = yes; then
14344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14345$as_echo_n "checking for GNU ld... " >&6; }
14346else
14347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14348$as_echo_n "checking for non-GNU ld... " >&6; }
14349fi
14350if ${acl_cv_path_LD+:} false; then :
14351  $as_echo_n "(cached) " >&6
14352else
14353  if test -z "$LD"; then
14354  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14355  for ac_dir in $PATH; do
14356    test -z "$ac_dir" && ac_dir=.
14357    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14358      acl_cv_path_LD="$ac_dir/$ac_prog"
14359      # Check to see if the program is GNU ld.  I'd rather use --version,
14360      # but apparently some GNU ld's only accept -v.
14361      # Break only if it was the GNU/non-GNU ld that we prefer.
14362      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14363      *GNU* | *'with BFD'*)
14364	test "$with_gnu_ld" != no && break ;;
14365      *)
14366	test "$with_gnu_ld" != yes && break ;;
14367      esac
14368    fi
14369  done
14370  IFS="$ac_save_ifs"
14371else
14372  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14373fi
14374fi
14375
14376LD="$acl_cv_path_LD"
14377if test -n "$LD"; then
14378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14379$as_echo "$LD" >&6; }
14380else
14381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382$as_echo "no" >&6; }
14383fi
14384test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14386$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14387if ${acl_cv_prog_gnu_ld+:} false; then :
14388  $as_echo_n "(cached) " >&6
14389else
14390  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14391case `$LD -v 2>&1 </dev/null` in
14392*GNU* | *'with BFD'*)
14393  acl_cv_prog_gnu_ld=yes ;;
14394*)
14395  acl_cv_prog_gnu_ld=no ;;
14396esac
14397fi
14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14399$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14400with_gnu_ld=$acl_cv_prog_gnu_ld
14401
14402
14403
14404
14405                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14406$as_echo_n "checking for shared library run path origin... " >&6; }
14407if ${acl_cv_rpath+:} false; then :
14408  $as_echo_n "(cached) " >&6
14409else
14410
14411    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14412    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14413    . ./conftest.sh
14414    rm -f ./conftest.sh
14415    acl_cv_rpath=done
14416
14417fi
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14419$as_echo "$acl_cv_rpath" >&6; }
14420  wl="$acl_cv_wl"
14421  acl_libext="$acl_cv_libext"
14422  acl_shlibext="$acl_cv_shlibext"
14423  acl_libname_spec="$acl_cv_libname_spec"
14424  acl_library_names_spec="$acl_cv_library_names_spec"
14425  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14426  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14427  acl_hardcode_direct="$acl_cv_hardcode_direct"
14428  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14429    # Check whether --enable-rpath was given.
14430if test "${enable_rpath+set}" = set; then :
14431  enableval=$enable_rpath; :
14432else
14433  enable_rpath=yes
14434fi
14435
14436
14437
14438                  acl_libdirstem=lib
14439  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14440  if test -n "$searchpath"; then
14441    acl_save_IFS="${IFS= 	}"; IFS=":"
14442    for searchdir in $searchpath; do
14443      if test -d "$searchdir"; then
14444        case "$searchdir" in
14445          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14446          *) searchdir=`cd "$searchdir" && pwd`
14447             case "$searchdir" in
14448               */lib64 ) acl_libdirstem=lib64 ;;
14449             esac ;;
14450        esac
14451      fi
14452    done
14453    IFS="$acl_save_IFS"
14454  fi
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464    use_additional=yes
14465
14466  acl_save_prefix="$prefix"
14467  prefix="$acl_final_prefix"
14468  acl_save_exec_prefix="$exec_prefix"
14469  exec_prefix="$acl_final_exec_prefix"
14470
14471    eval additional_includedir=\"$includedir\"
14472    eval additional_libdir=\"$libdir\"
14473
14474  exec_prefix="$acl_save_exec_prefix"
14475  prefix="$acl_save_prefix"
14476
14477
14478# Check whether --with-libiconv-prefix was given.
14479if test "${with_libiconv_prefix+set}" = set; then :
14480  withval=$with_libiconv_prefix;
14481    if test "X$withval" = "Xno"; then
14482      use_additional=no
14483    else
14484      if test "X$withval" = "X"; then
14485
14486  acl_save_prefix="$prefix"
14487  prefix="$acl_final_prefix"
14488  acl_save_exec_prefix="$exec_prefix"
14489  exec_prefix="$acl_final_exec_prefix"
14490
14491          eval additional_includedir=\"$includedir\"
14492          eval additional_libdir=\"$libdir\"
14493
14494  exec_prefix="$acl_save_exec_prefix"
14495  prefix="$acl_save_prefix"
14496
14497      else
14498        additional_includedir="$withval/include"
14499        additional_libdir="$withval/$acl_libdirstem"
14500      fi
14501    fi
14502
14503fi
14504
14505      LIBICONV=
14506  LTLIBICONV=
14507  INCICONV=
14508  LIBICONV_PREFIX=
14509  rpathdirs=
14510  ltrpathdirs=
14511  names_already_handled=
14512  names_next_round='iconv '
14513  while test -n "$names_next_round"; do
14514    names_this_round="$names_next_round"
14515    names_next_round=
14516    for name in $names_this_round; do
14517      already_handled=
14518      for n in $names_already_handled; do
14519        if test "$n" = "$name"; then
14520          already_handled=yes
14521          break
14522        fi
14523      done
14524      if test -z "$already_handled"; then
14525        names_already_handled="$names_already_handled $name"
14526                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14527        eval value=\"\$HAVE_LIB$uppername\"
14528        if test -n "$value"; then
14529          if test "$value" = yes; then
14530            eval value=\"\$LIB$uppername\"
14531            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14532            eval value=\"\$LTLIB$uppername\"
14533            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14534          else
14535                                    :
14536          fi
14537        else
14538                              found_dir=
14539          found_la=
14540          found_so=
14541          found_a=
14542          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14543          if test -n "$acl_shlibext"; then
14544            shrext=".$acl_shlibext"             # typically: shrext=.so
14545          else
14546            shrext=
14547          fi
14548          if test $use_additional = yes; then
14549            dir="$additional_libdir"
14550                                    if test -n "$acl_shlibext"; then
14551              if test -f "$dir/$libname$shrext"; then
14552                found_dir="$dir"
14553                found_so="$dir/$libname$shrext"
14554              else
14555                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14556                  ver=`(cd "$dir" && \
14557                        for f in "$libname$shrext".*; do echo "$f"; done \
14558                        | sed -e "s,^$libname$shrext\\\\.,," \
14559                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14560                        | sed 1q ) 2>/dev/null`
14561                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14562                    found_dir="$dir"
14563                    found_so="$dir/$libname$shrext.$ver"
14564                  fi
14565                else
14566                  eval library_names=\"$acl_library_names_spec\"
14567                  for f in $library_names; do
14568                    if test -f "$dir/$f"; then
14569                      found_dir="$dir"
14570                      found_so="$dir/$f"
14571                      break
14572                    fi
14573                  done
14574                fi
14575              fi
14576            fi
14577                        if test "X$found_dir" = "X"; then
14578              if test -f "$dir/$libname.$acl_libext"; then
14579                found_dir="$dir"
14580                found_a="$dir/$libname.$acl_libext"
14581              fi
14582            fi
14583            if test "X$found_dir" != "X"; then
14584              if test -f "$dir/$libname.la"; then
14585                found_la="$dir/$libname.la"
14586              fi
14587            fi
14588          fi
14589          if test "X$found_dir" = "X"; then
14590            for x in $LDFLAGS $LTLIBICONV; do
14591
14592  acl_save_prefix="$prefix"
14593  prefix="$acl_final_prefix"
14594  acl_save_exec_prefix="$exec_prefix"
14595  exec_prefix="$acl_final_exec_prefix"
14596  eval x=\"$x\"
14597  exec_prefix="$acl_save_exec_prefix"
14598  prefix="$acl_save_prefix"
14599
14600              case "$x" in
14601                -L*)
14602                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14603                                    if test -n "$acl_shlibext"; then
14604                    if test -f "$dir/$libname$shrext"; then
14605                      found_dir="$dir"
14606                      found_so="$dir/$libname$shrext"
14607                    else
14608                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14609                        ver=`(cd "$dir" && \
14610                              for f in "$libname$shrext".*; do echo "$f"; done \
14611                              | sed -e "s,^$libname$shrext\\\\.,," \
14612                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14613                              | sed 1q ) 2>/dev/null`
14614                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14615                          found_dir="$dir"
14616                          found_so="$dir/$libname$shrext.$ver"
14617                        fi
14618                      else
14619                        eval library_names=\"$acl_library_names_spec\"
14620                        for f in $library_names; do
14621                          if test -f "$dir/$f"; then
14622                            found_dir="$dir"
14623                            found_so="$dir/$f"
14624                            break
14625                          fi
14626                        done
14627                      fi
14628                    fi
14629                  fi
14630                                    if test "X$found_dir" = "X"; then
14631                    if test -f "$dir/$libname.$acl_libext"; then
14632                      found_dir="$dir"
14633                      found_a="$dir/$libname.$acl_libext"
14634                    fi
14635                  fi
14636                  if test "X$found_dir" != "X"; then
14637                    if test -f "$dir/$libname.la"; then
14638                      found_la="$dir/$libname.la"
14639                    fi
14640                  fi
14641                  ;;
14642              esac
14643              if test "X$found_dir" != "X"; then
14644                break
14645              fi
14646            done
14647          fi
14648          if test "X$found_dir" != "X"; then
14649                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14650            if test "X$found_so" != "X"; then
14651                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14652                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14653              else
14654                                                                                haveit=
14655                for x in $ltrpathdirs; do
14656                  if test "X$x" = "X$found_dir"; then
14657                    haveit=yes
14658                    break
14659                  fi
14660                done
14661                if test -z "$haveit"; then
14662                  ltrpathdirs="$ltrpathdirs $found_dir"
14663                fi
14664                                if test "$acl_hardcode_direct" = yes; then
14665                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14666                else
14667                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14668                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14669                                                            haveit=
14670                    for x in $rpathdirs; do
14671                      if test "X$x" = "X$found_dir"; then
14672                        haveit=yes
14673                        break
14674                      fi
14675                    done
14676                    if test -z "$haveit"; then
14677                      rpathdirs="$rpathdirs $found_dir"
14678                    fi
14679                  else
14680                                                                                haveit=
14681                    for x in $LDFLAGS $LIBICONV; do
14682
14683  acl_save_prefix="$prefix"
14684  prefix="$acl_final_prefix"
14685  acl_save_exec_prefix="$exec_prefix"
14686  exec_prefix="$acl_final_exec_prefix"
14687  eval x=\"$x\"
14688  exec_prefix="$acl_save_exec_prefix"
14689  prefix="$acl_save_prefix"
14690
14691                      if test "X$x" = "X-L$found_dir"; then
14692                        haveit=yes
14693                        break
14694                      fi
14695                    done
14696                    if test -z "$haveit"; then
14697                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14698                    fi
14699                    if test "$acl_hardcode_minus_L" != no; then
14700                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14701                    else
14702                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14703                    fi
14704                  fi
14705                fi
14706              fi
14707            else
14708              if test "X$found_a" != "X"; then
14709                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14710              else
14711                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14712              fi
14713            fi
14714                        additional_includedir=
14715            case "$found_dir" in
14716              */$acl_libdirstem | */$acl_libdirstem/)
14717                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14718                LIBICONV_PREFIX="$basedir"
14719                additional_includedir="$basedir/include"
14720                ;;
14721            esac
14722            if test "X$additional_includedir" != "X"; then
14723                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14724                haveit=
14725                if test "X$additional_includedir" = "X/usr/local/include"; then
14726                  if test -n "$GCC"; then
14727                    case $host_os in
14728                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14729                    esac
14730                  fi
14731                fi
14732                if test -z "$haveit"; then
14733                  for x in $CPPFLAGS $INCICONV; do
14734
14735  acl_save_prefix="$prefix"
14736  prefix="$acl_final_prefix"
14737  acl_save_exec_prefix="$exec_prefix"
14738  exec_prefix="$acl_final_exec_prefix"
14739  eval x=\"$x\"
14740  exec_prefix="$acl_save_exec_prefix"
14741  prefix="$acl_save_prefix"
14742
14743                    if test "X$x" = "X-I$additional_includedir"; then
14744                      haveit=yes
14745                      break
14746                    fi
14747                  done
14748                  if test -z "$haveit"; then
14749                    if test -d "$additional_includedir"; then
14750                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14751                    fi
14752                  fi
14753                fi
14754              fi
14755            fi
14756                        if test -n "$found_la"; then
14757                                                        save_libdir="$libdir"
14758              case "$found_la" in
14759                */* | *\\*) . "$found_la" ;;
14760                *) . "./$found_la" ;;
14761              esac
14762              libdir="$save_libdir"
14763                            for dep in $dependency_libs; do
14764                case "$dep" in
14765                  -L*)
14766                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14767                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14768                      haveit=
14769                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14770                        if test -n "$GCC"; then
14771                          case $host_os in
14772                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14773                          esac
14774                        fi
14775                      fi
14776                      if test -z "$haveit"; then
14777                        haveit=
14778                        for x in $LDFLAGS $LIBICONV; do
14779
14780  acl_save_prefix="$prefix"
14781  prefix="$acl_final_prefix"
14782  acl_save_exec_prefix="$exec_prefix"
14783  exec_prefix="$acl_final_exec_prefix"
14784  eval x=\"$x\"
14785  exec_prefix="$acl_save_exec_prefix"
14786  prefix="$acl_save_prefix"
14787
14788                          if test "X$x" = "X-L$additional_libdir"; then
14789                            haveit=yes
14790                            break
14791                          fi
14792                        done
14793                        if test -z "$haveit"; then
14794                          if test -d "$additional_libdir"; then
14795                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14796                          fi
14797                        fi
14798                        haveit=
14799                        for x in $LDFLAGS $LTLIBICONV; do
14800
14801  acl_save_prefix="$prefix"
14802  prefix="$acl_final_prefix"
14803  acl_save_exec_prefix="$exec_prefix"
14804  exec_prefix="$acl_final_exec_prefix"
14805  eval x=\"$x\"
14806  exec_prefix="$acl_save_exec_prefix"
14807  prefix="$acl_save_prefix"
14808
14809                          if test "X$x" = "X-L$additional_libdir"; then
14810                            haveit=yes
14811                            break
14812                          fi
14813                        done
14814                        if test -z "$haveit"; then
14815                          if test -d "$additional_libdir"; then
14816                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14817                          fi
14818                        fi
14819                      fi
14820                    fi
14821                    ;;
14822                  -R*)
14823                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14824                    if test "$enable_rpath" != no; then
14825                                                                  haveit=
14826                      for x in $rpathdirs; do
14827                        if test "X$x" = "X$dir"; then
14828                          haveit=yes
14829                          break
14830                        fi
14831                      done
14832                      if test -z "$haveit"; then
14833                        rpathdirs="$rpathdirs $dir"
14834                      fi
14835                                                                  haveit=
14836                      for x in $ltrpathdirs; do
14837                        if test "X$x" = "X$dir"; then
14838                          haveit=yes
14839                          break
14840                        fi
14841                      done
14842                      if test -z "$haveit"; then
14843                        ltrpathdirs="$ltrpathdirs $dir"
14844                      fi
14845                    fi
14846                    ;;
14847                  -l*)
14848                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14849                    ;;
14850                  *.la)
14851                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14852                    ;;
14853                  *)
14854                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14855                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14856                    ;;
14857                esac
14858              done
14859            fi
14860          else
14861                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14862            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14863          fi
14864        fi
14865      fi
14866    done
14867  done
14868  if test "X$rpathdirs" != "X"; then
14869    if test -n "$acl_hardcode_libdir_separator"; then
14870                        alldirs=
14871      for found_dir in $rpathdirs; do
14872        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14873      done
14874            acl_save_libdir="$libdir"
14875      libdir="$alldirs"
14876      eval flag=\"$acl_hardcode_libdir_flag_spec\"
14877      libdir="$acl_save_libdir"
14878      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14879    else
14880            for found_dir in $rpathdirs; do
14881        acl_save_libdir="$libdir"
14882        libdir="$found_dir"
14883        eval flag=\"$acl_hardcode_libdir_flag_spec\"
14884        libdir="$acl_save_libdir"
14885        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14886      done
14887    fi
14888  fi
14889  if test "X$ltrpathdirs" != "X"; then
14890            for found_dir in $ltrpathdirs; do
14891      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14892    done
14893  fi
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14920$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14921if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14922  $as_echo_n "(cached) " >&6
14923else
14924  gt_save_LIBS="$LIBS"
14925     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14926     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927/* end confdefs.h.  */
14928#include <CoreFoundation/CFPreferences.h>
14929int
14930main ()
14931{
14932CFPreferencesCopyAppValue(NULL, NULL)
14933  ;
14934  return 0;
14935}
14936_ACEOF
14937if ac_fn_c_try_link "$LINENO"; then :
14938  gt_cv_func_CFPreferencesCopyAppValue=yes
14939else
14940  gt_cv_func_CFPreferencesCopyAppValue=no
14941fi
14942rm -f core conftest.err conftest.$ac_objext \
14943    conftest$ac_exeext conftest.$ac_ext
14944     LIBS="$gt_save_LIBS"
14945fi
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14947$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14948  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14949
14950$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14951
14952  fi
14953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14954$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14955if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14956  $as_echo_n "(cached) " >&6
14957else
14958  gt_save_LIBS="$LIBS"
14959     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962#include <CoreFoundation/CFLocale.h>
14963int
14964main ()
14965{
14966CFLocaleCopyCurrent();
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_link "$LINENO"; then :
14972  gt_cv_func_CFLocaleCopyCurrent=yes
14973else
14974  gt_cv_func_CFLocaleCopyCurrent=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext \
14977    conftest$ac_exeext conftest.$ac_ext
14978     LIBS="$gt_save_LIBS"
14979fi
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14981$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14982  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14983
14984$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14985
14986  fi
14987  INTL_MACOSX_LIBS=
14988  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14989    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14990  fi
14991
14992
14993
14994
14995
14996
14997  LIBINTL=
14998  LTLIBINTL=
14999  POSUB=
15000
15001    case " $gt_needs " in
15002    *" need-formatstring-macros "*) gt_api_version=3 ;;
15003    *" need-ngettext "*) gt_api_version=2 ;;
15004    *) gt_api_version=1 ;;
15005  esac
15006  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15007  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15008
15009    if test "$USE_NLS" = "yes"; then
15010    gt_use_preinstalled_gnugettext=no
15011
15012
15013        if test $gt_api_version -ge 3; then
15014          gt_revision_test_code='
15015#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15016#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15017#endif
15018typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15019'
15020        else
15021          gt_revision_test_code=
15022        fi
15023        if test $gt_api_version -ge 2; then
15024          gt_expression_test_code=' + * ngettext ("", "", 0)'
15025        else
15026          gt_expression_test_code=
15027        fi
15028
15029        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15030$as_echo_n "checking for GNU gettext in libc... " >&6; }
15031if eval \${$gt_func_gnugettext_libc+:} false; then :
15032  $as_echo_n "(cached) " >&6
15033else
15034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036#include <libintl.h>
15037$gt_revision_test_code
15038extern int _nl_msg_cat_cntr;
15039extern int *_nl_domain_bindings;
15040int
15041main ()
15042{
15043bindtextdomain ("", "");
15044return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15045  ;
15046  return 0;
15047}
15048_ACEOF
15049if ac_fn_c_try_link "$LINENO"; then :
15050  eval "$gt_func_gnugettext_libc=yes"
15051else
15052  eval "$gt_func_gnugettext_libc=no"
15053fi
15054rm -f core conftest.err conftest.$ac_objext \
15055    conftest$ac_exeext conftest.$ac_ext
15056fi
15057eval ac_res=\$$gt_func_gnugettext_libc
15058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15059$as_echo "$ac_res" >&6; }
15060
15061        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15062
15063
15064
15065
15066
15067          am_save_CPPFLAGS="$CPPFLAGS"
15068
15069  for element in $INCICONV; do
15070    haveit=
15071    for x in $CPPFLAGS; do
15072
15073  acl_save_prefix="$prefix"
15074  prefix="$acl_final_prefix"
15075  acl_save_exec_prefix="$exec_prefix"
15076  exec_prefix="$acl_final_exec_prefix"
15077  eval x=\"$x\"
15078  exec_prefix="$acl_save_exec_prefix"
15079  prefix="$acl_save_prefix"
15080
15081      if test "X$x" = "X$element"; then
15082        haveit=yes
15083        break
15084      fi
15085    done
15086    if test -z "$haveit"; then
15087      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15088    fi
15089  done
15090
15091
15092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15093$as_echo_n "checking for iconv... " >&6; }
15094if ${am_cv_func_iconv+:} false; then :
15095  $as_echo_n "(cached) " >&6
15096else
15097
15098    am_cv_func_iconv="no, consider installing GNU libiconv"
15099    am_cv_lib_iconv=no
15100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101/* end confdefs.h.  */
15102#include <stdlib.h>
15103#include <iconv.h>
15104int
15105main ()
15106{
15107iconv_t cd = iconv_open("","");
15108       iconv(cd,NULL,NULL,NULL,NULL);
15109       iconv_close(cd);
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_link "$LINENO"; then :
15115  am_cv_func_iconv=yes
15116fi
15117rm -f core conftest.err conftest.$ac_objext \
15118    conftest$ac_exeext conftest.$ac_ext
15119    if test "$am_cv_func_iconv" != yes; then
15120      am_save_LIBS="$LIBS"
15121      LIBS="$LIBS $LIBICONV"
15122      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123/* end confdefs.h.  */
15124#include <stdlib.h>
15125#include <iconv.h>
15126int
15127main ()
15128{
15129iconv_t cd = iconv_open("","");
15130         iconv(cd,NULL,NULL,NULL,NULL);
15131         iconv_close(cd);
15132  ;
15133  return 0;
15134}
15135_ACEOF
15136if ac_fn_c_try_link "$LINENO"; then :
15137  am_cv_lib_iconv=yes
15138        am_cv_func_iconv=yes
15139fi
15140rm -f core conftest.err conftest.$ac_objext \
15141    conftest$ac_exeext conftest.$ac_ext
15142      LIBS="$am_save_LIBS"
15143    fi
15144
15145fi
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15147$as_echo "$am_cv_func_iconv" >&6; }
15148  if test "$am_cv_func_iconv" = yes; then
15149    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15150$as_echo_n "checking for working iconv... " >&6; }
15151if ${am_cv_func_iconv_works+:} false; then :
15152  $as_echo_n "(cached) " >&6
15153else
15154
15155            am_save_LIBS="$LIBS"
15156      if test $am_cv_lib_iconv = yes; then
15157        LIBS="$LIBS $LIBICONV"
15158      fi
15159      if test "$cross_compiling" = yes; then :
15160  case "$host_os" in
15161           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15162           *)            am_cv_func_iconv_works="guessing yes" ;;
15163         esac
15164else
15165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h.  */
15167
15168#include <iconv.h>
15169#include <string.h>
15170int main ()
15171{
15172  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15173     returns.  */
15174  {
15175    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15176    if (cd_utf8_to_88591 != (iconv_t)(-1))
15177      {
15178        static const char input[] = "\342\202\254"; /* EURO SIGN */
15179        char buf[10];
15180        const char *inptr = input;
15181        size_t inbytesleft = strlen (input);
15182        char *outptr = buf;
15183        size_t outbytesleft = sizeof (buf);
15184        size_t res = iconv (cd_utf8_to_88591,
15185                            (char **) &inptr, &inbytesleft,
15186                            &outptr, &outbytesleft);
15187        if (res == 0)
15188          return 1;
15189      }
15190  }
15191#if 0 /* This bug could be worked around by the caller.  */
15192  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
15193  {
15194    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15195    if (cd_88591_to_utf8 != (iconv_t)(-1))
15196      {
15197        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15198        char buf[50];
15199        const char *inptr = input;
15200        size_t inbytesleft = strlen (input);
15201        char *outptr = buf;
15202        size_t outbytesleft = sizeof (buf);
15203        size_t res = iconv (cd_88591_to_utf8,
15204                            (char **) &inptr, &inbytesleft,
15205                            &outptr, &outbytesleft);
15206        if ((int)res > 0)
15207          return 1;
15208      }
15209  }
15210#endif
15211  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15212     provided.  */
15213  if (/* Try standardized names.  */
15214      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15215      /* Try IRIX, OSF/1 names.  */
15216      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15217      /* Try AIX names.  */
15218      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15219      /* Try HP-UX names.  */
15220      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15221    return 1;
15222  return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_run "$LINENO"; then :
15226  am_cv_func_iconv_works=yes
15227else
15228  am_cv_func_iconv_works=no
15229fi
15230rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15231  conftest.$ac_objext conftest.beam conftest.$ac_ext
15232fi
15233
15234      LIBS="$am_save_LIBS"
15235
15236fi
15237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15238$as_echo "$am_cv_func_iconv_works" >&6; }
15239    case "$am_cv_func_iconv_works" in
15240      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15241      *)   am_func_iconv=yes ;;
15242    esac
15243  else
15244    am_func_iconv=no am_cv_lib_iconv=no
15245  fi
15246  if test "$am_func_iconv" = yes; then
15247
15248$as_echo "#define HAVE_ICONV 1" >>confdefs.h
15249
15250  fi
15251  if test "$am_cv_lib_iconv" = yes; then
15252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15253$as_echo_n "checking how to link with libiconv... " >&6; }
15254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15255$as_echo "$LIBICONV" >&6; }
15256  else
15257            CPPFLAGS="$am_save_CPPFLAGS"
15258    LIBICONV=
15259    LTLIBICONV=
15260  fi
15261
15262
15263
15264
15265
15266
15267
15268
15269    use_additional=yes
15270
15271  acl_save_prefix="$prefix"
15272  prefix="$acl_final_prefix"
15273  acl_save_exec_prefix="$exec_prefix"
15274  exec_prefix="$acl_final_exec_prefix"
15275
15276    eval additional_includedir=\"$includedir\"
15277    eval additional_libdir=\"$libdir\"
15278
15279  exec_prefix="$acl_save_exec_prefix"
15280  prefix="$acl_save_prefix"
15281
15282
15283# Check whether --with-libintl-prefix was given.
15284if test "${with_libintl_prefix+set}" = set; then :
15285  withval=$with_libintl_prefix;
15286    if test "X$withval" = "Xno"; then
15287      use_additional=no
15288    else
15289      if test "X$withval" = "X"; then
15290
15291  acl_save_prefix="$prefix"
15292  prefix="$acl_final_prefix"
15293  acl_save_exec_prefix="$exec_prefix"
15294  exec_prefix="$acl_final_exec_prefix"
15295
15296          eval additional_includedir=\"$includedir\"
15297          eval additional_libdir=\"$libdir\"
15298
15299  exec_prefix="$acl_save_exec_prefix"
15300  prefix="$acl_save_prefix"
15301
15302      else
15303        additional_includedir="$withval/include"
15304        additional_libdir="$withval/$acl_libdirstem"
15305      fi
15306    fi
15307
15308fi
15309
15310      LIBINTL=
15311  LTLIBINTL=
15312  INCINTL=
15313  LIBINTL_PREFIX=
15314  rpathdirs=
15315  ltrpathdirs=
15316  names_already_handled=
15317  names_next_round='intl '
15318  while test -n "$names_next_round"; do
15319    names_this_round="$names_next_round"
15320    names_next_round=
15321    for name in $names_this_round; do
15322      already_handled=
15323      for n in $names_already_handled; do
15324        if test "$n" = "$name"; then
15325          already_handled=yes
15326          break
15327        fi
15328      done
15329      if test -z "$already_handled"; then
15330        names_already_handled="$names_already_handled $name"
15331                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15332        eval value=\"\$HAVE_LIB$uppername\"
15333        if test -n "$value"; then
15334          if test "$value" = yes; then
15335            eval value=\"\$LIB$uppername\"
15336            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15337            eval value=\"\$LTLIB$uppername\"
15338            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15339          else
15340                                    :
15341          fi
15342        else
15343                              found_dir=
15344          found_la=
15345          found_so=
15346          found_a=
15347          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15348          if test -n "$acl_shlibext"; then
15349            shrext=".$acl_shlibext"             # typically: shrext=.so
15350          else
15351            shrext=
15352          fi
15353          if test $use_additional = yes; then
15354            dir="$additional_libdir"
15355                                    if test -n "$acl_shlibext"; then
15356              if test -f "$dir/$libname$shrext"; then
15357                found_dir="$dir"
15358                found_so="$dir/$libname$shrext"
15359              else
15360                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15361                  ver=`(cd "$dir" && \
15362                        for f in "$libname$shrext".*; do echo "$f"; done \
15363                        | sed -e "s,^$libname$shrext\\\\.,," \
15364                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15365                        | sed 1q ) 2>/dev/null`
15366                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15367                    found_dir="$dir"
15368                    found_so="$dir/$libname$shrext.$ver"
15369                  fi
15370                else
15371                  eval library_names=\"$acl_library_names_spec\"
15372                  for f in $library_names; do
15373                    if test -f "$dir/$f"; then
15374                      found_dir="$dir"
15375                      found_so="$dir/$f"
15376                      break
15377                    fi
15378                  done
15379                fi
15380              fi
15381            fi
15382                        if test "X$found_dir" = "X"; then
15383              if test -f "$dir/$libname.$acl_libext"; then
15384                found_dir="$dir"
15385                found_a="$dir/$libname.$acl_libext"
15386              fi
15387            fi
15388            if test "X$found_dir" != "X"; then
15389              if test -f "$dir/$libname.la"; then
15390                found_la="$dir/$libname.la"
15391              fi
15392            fi
15393          fi
15394          if test "X$found_dir" = "X"; then
15395            for x in $LDFLAGS $LTLIBINTL; do
15396
15397  acl_save_prefix="$prefix"
15398  prefix="$acl_final_prefix"
15399  acl_save_exec_prefix="$exec_prefix"
15400  exec_prefix="$acl_final_exec_prefix"
15401  eval x=\"$x\"
15402  exec_prefix="$acl_save_exec_prefix"
15403  prefix="$acl_save_prefix"
15404
15405              case "$x" in
15406                -L*)
15407                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15408                                    if test -n "$acl_shlibext"; then
15409                    if test -f "$dir/$libname$shrext"; then
15410                      found_dir="$dir"
15411                      found_so="$dir/$libname$shrext"
15412                    else
15413                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15414                        ver=`(cd "$dir" && \
15415                              for f in "$libname$shrext".*; do echo "$f"; done \
15416                              | sed -e "s,^$libname$shrext\\\\.,," \
15417                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15418                              | sed 1q ) 2>/dev/null`
15419                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15420                          found_dir="$dir"
15421                          found_so="$dir/$libname$shrext.$ver"
15422                        fi
15423                      else
15424                        eval library_names=\"$acl_library_names_spec\"
15425                        for f in $library_names; do
15426                          if test -f "$dir/$f"; then
15427                            found_dir="$dir"
15428                            found_so="$dir/$f"
15429                            break
15430                          fi
15431                        done
15432                      fi
15433                    fi
15434                  fi
15435                                    if test "X$found_dir" = "X"; then
15436                    if test -f "$dir/$libname.$acl_libext"; then
15437                      found_dir="$dir"
15438                      found_a="$dir/$libname.$acl_libext"
15439                    fi
15440                  fi
15441                  if test "X$found_dir" != "X"; then
15442                    if test -f "$dir/$libname.la"; then
15443                      found_la="$dir/$libname.la"
15444                    fi
15445                  fi
15446                  ;;
15447              esac
15448              if test "X$found_dir" != "X"; then
15449                break
15450              fi
15451            done
15452          fi
15453          if test "X$found_dir" != "X"; then
15454                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15455            if test "X$found_so" != "X"; then
15456                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15457                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15458              else
15459                                                                                haveit=
15460                for x in $ltrpathdirs; do
15461                  if test "X$x" = "X$found_dir"; then
15462                    haveit=yes
15463                    break
15464                  fi
15465                done
15466                if test -z "$haveit"; then
15467                  ltrpathdirs="$ltrpathdirs $found_dir"
15468                fi
15469                                if test "$acl_hardcode_direct" = yes; then
15470                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15471                else
15472                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15473                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15474                                                            haveit=
15475                    for x in $rpathdirs; do
15476                      if test "X$x" = "X$found_dir"; then
15477                        haveit=yes
15478                        break
15479                      fi
15480                    done
15481                    if test -z "$haveit"; then
15482                      rpathdirs="$rpathdirs $found_dir"
15483                    fi
15484                  else
15485                                                                                haveit=
15486                    for x in $LDFLAGS $LIBINTL; do
15487
15488  acl_save_prefix="$prefix"
15489  prefix="$acl_final_prefix"
15490  acl_save_exec_prefix="$exec_prefix"
15491  exec_prefix="$acl_final_exec_prefix"
15492  eval x=\"$x\"
15493  exec_prefix="$acl_save_exec_prefix"
15494  prefix="$acl_save_prefix"
15495
15496                      if test "X$x" = "X-L$found_dir"; then
15497                        haveit=yes
15498                        break
15499                      fi
15500                    done
15501                    if test -z "$haveit"; then
15502                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15503                    fi
15504                    if test "$acl_hardcode_minus_L" != no; then
15505                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15506                    else
15507                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15508                    fi
15509                  fi
15510                fi
15511              fi
15512            else
15513              if test "X$found_a" != "X"; then
15514                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15515              else
15516                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15517              fi
15518            fi
15519                        additional_includedir=
15520            case "$found_dir" in
15521              */$acl_libdirstem | */$acl_libdirstem/)
15522                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15523                LIBINTL_PREFIX="$basedir"
15524                additional_includedir="$basedir/include"
15525                ;;
15526            esac
15527            if test "X$additional_includedir" != "X"; then
15528                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15529                haveit=
15530                if test "X$additional_includedir" = "X/usr/local/include"; then
15531                  if test -n "$GCC"; then
15532                    case $host_os in
15533                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15534                    esac
15535                  fi
15536                fi
15537                if test -z "$haveit"; then
15538                  for x in $CPPFLAGS $INCINTL; do
15539
15540  acl_save_prefix="$prefix"
15541  prefix="$acl_final_prefix"
15542  acl_save_exec_prefix="$exec_prefix"
15543  exec_prefix="$acl_final_exec_prefix"
15544  eval x=\"$x\"
15545  exec_prefix="$acl_save_exec_prefix"
15546  prefix="$acl_save_prefix"
15547
15548                    if test "X$x" = "X-I$additional_includedir"; then
15549                      haveit=yes
15550                      break
15551                    fi
15552                  done
15553                  if test -z "$haveit"; then
15554                    if test -d "$additional_includedir"; then
15555                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15556                    fi
15557                  fi
15558                fi
15559              fi
15560            fi
15561                        if test -n "$found_la"; then
15562                                                        save_libdir="$libdir"
15563              case "$found_la" in
15564                */* | *\\*) . "$found_la" ;;
15565                *) . "./$found_la" ;;
15566              esac
15567              libdir="$save_libdir"
15568                            for dep in $dependency_libs; do
15569                case "$dep" in
15570                  -L*)
15571                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15572                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15573                      haveit=
15574                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15575                        if test -n "$GCC"; then
15576                          case $host_os in
15577                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15578                          esac
15579                        fi
15580                      fi
15581                      if test -z "$haveit"; then
15582                        haveit=
15583                        for x in $LDFLAGS $LIBINTL; do
15584
15585  acl_save_prefix="$prefix"
15586  prefix="$acl_final_prefix"
15587  acl_save_exec_prefix="$exec_prefix"
15588  exec_prefix="$acl_final_exec_prefix"
15589  eval x=\"$x\"
15590  exec_prefix="$acl_save_exec_prefix"
15591  prefix="$acl_save_prefix"
15592
15593                          if test "X$x" = "X-L$additional_libdir"; then
15594                            haveit=yes
15595                            break
15596                          fi
15597                        done
15598                        if test -z "$haveit"; then
15599                          if test -d "$additional_libdir"; then
15600                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15601                          fi
15602                        fi
15603                        haveit=
15604                        for x in $LDFLAGS $LTLIBINTL; do
15605
15606  acl_save_prefix="$prefix"
15607  prefix="$acl_final_prefix"
15608  acl_save_exec_prefix="$exec_prefix"
15609  exec_prefix="$acl_final_exec_prefix"
15610  eval x=\"$x\"
15611  exec_prefix="$acl_save_exec_prefix"
15612  prefix="$acl_save_prefix"
15613
15614                          if test "X$x" = "X-L$additional_libdir"; then
15615                            haveit=yes
15616                            break
15617                          fi
15618                        done
15619                        if test -z "$haveit"; then
15620                          if test -d "$additional_libdir"; then
15621                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15622                          fi
15623                        fi
15624                      fi
15625                    fi
15626                    ;;
15627                  -R*)
15628                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15629                    if test "$enable_rpath" != no; then
15630                                                                  haveit=
15631                      for x in $rpathdirs; do
15632                        if test "X$x" = "X$dir"; then
15633                          haveit=yes
15634                          break
15635                        fi
15636                      done
15637                      if test -z "$haveit"; then
15638                        rpathdirs="$rpathdirs $dir"
15639                      fi
15640                                                                  haveit=
15641                      for x in $ltrpathdirs; do
15642                        if test "X$x" = "X$dir"; then
15643                          haveit=yes
15644                          break
15645                        fi
15646                      done
15647                      if test -z "$haveit"; then
15648                        ltrpathdirs="$ltrpathdirs $dir"
15649                      fi
15650                    fi
15651                    ;;
15652                  -l*)
15653                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15654                    ;;
15655                  *.la)
15656                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15657                    ;;
15658                  *)
15659                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15660                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15661                    ;;
15662                esac
15663              done
15664            fi
15665          else
15666                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15667            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15668          fi
15669        fi
15670      fi
15671    done
15672  done
15673  if test "X$rpathdirs" != "X"; then
15674    if test -n "$acl_hardcode_libdir_separator"; then
15675                        alldirs=
15676      for found_dir in $rpathdirs; do
15677        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15678      done
15679            acl_save_libdir="$libdir"
15680      libdir="$alldirs"
15681      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15682      libdir="$acl_save_libdir"
15683      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15684    else
15685            for found_dir in $rpathdirs; do
15686        acl_save_libdir="$libdir"
15687        libdir="$found_dir"
15688        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15689        libdir="$acl_save_libdir"
15690        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15691      done
15692    fi
15693  fi
15694  if test "X$ltrpathdirs" != "X"; then
15695            for found_dir in $ltrpathdirs; do
15696      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15697    done
15698  fi
15699
15700          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15701$as_echo_n "checking for GNU gettext in libintl... " >&6; }
15702if eval \${$gt_func_gnugettext_libintl+:} false; then :
15703  $as_echo_n "(cached) " >&6
15704else
15705  gt_save_CPPFLAGS="$CPPFLAGS"
15706            CPPFLAGS="$CPPFLAGS $INCINTL"
15707            gt_save_LIBS="$LIBS"
15708            LIBS="$LIBS $LIBINTL"
15709                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710/* end confdefs.h.  */
15711#include <libintl.h>
15712$gt_revision_test_code
15713extern int _nl_msg_cat_cntr;
15714extern
15715#ifdef __cplusplus
15716"C"
15717#endif
15718const char *_nl_expand_alias (const char *);
15719int
15720main ()
15721{
15722bindtextdomain ("", "");
15723return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15724  ;
15725  return 0;
15726}
15727_ACEOF
15728if ac_fn_c_try_link "$LINENO"; then :
15729  eval "$gt_func_gnugettext_libintl=yes"
15730else
15731  eval "$gt_func_gnugettext_libintl=no"
15732fi
15733rm -f core conftest.err conftest.$ac_objext \
15734    conftest$ac_exeext conftest.$ac_ext
15735                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15736              LIBS="$LIBS $LIBICONV"
15737              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738/* end confdefs.h.  */
15739#include <libintl.h>
15740$gt_revision_test_code
15741extern int _nl_msg_cat_cntr;
15742extern
15743#ifdef __cplusplus
15744"C"
15745#endif
15746const char *_nl_expand_alias (const char *);
15747int
15748main ()
15749{
15750bindtextdomain ("", "");
15751return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15752  ;
15753  return 0;
15754}
15755_ACEOF
15756if ac_fn_c_try_link "$LINENO"; then :
15757  LIBINTL="$LIBINTL $LIBICONV"
15758                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15759                eval "$gt_func_gnugettext_libintl=yes"
15760
15761fi
15762rm -f core conftest.err conftest.$ac_objext \
15763    conftest$ac_exeext conftest.$ac_ext
15764            fi
15765            CPPFLAGS="$gt_save_CPPFLAGS"
15766            LIBS="$gt_save_LIBS"
15767fi
15768eval ac_res=\$$gt_func_gnugettext_libintl
15769	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15770$as_echo "$ac_res" >&6; }
15771        fi
15772
15773                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15774           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15775                && test "$PACKAGE" != gettext-runtime \
15776                && test "$PACKAGE" != gettext-tools; }; then
15777          gt_use_preinstalled_gnugettext=yes
15778        else
15779                    LIBINTL=
15780          LTLIBINTL=
15781          INCINTL=
15782        fi
15783
15784
15785
15786    if test -n "$INTL_MACOSX_LIBS"; then
15787      if test "$gt_use_preinstalled_gnugettext" = "yes" \
15788         || test "$nls_cv_use_gnu_gettext" = "yes"; then
15789                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15790        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15791      fi
15792    fi
15793
15794    if test "$gt_use_preinstalled_gnugettext" = "yes" \
15795       || test "$nls_cv_use_gnu_gettext" = "yes"; then
15796
15797$as_echo "#define ENABLE_NLS 1" >>confdefs.h
15798
15799    else
15800      USE_NLS=no
15801    fi
15802  fi
15803
15804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15805$as_echo_n "checking whether to use NLS... " >&6; }
15806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15807$as_echo "$USE_NLS" >&6; }
15808  if test "$USE_NLS" = "yes"; then
15809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15810$as_echo_n "checking where the gettext function comes from... " >&6; }
15811    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15812      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15813        gt_source="external libintl"
15814      else
15815        gt_source="libc"
15816      fi
15817    else
15818      gt_source="included intl directory"
15819    fi
15820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15821$as_echo "$gt_source" >&6; }
15822  fi
15823
15824  if test "$USE_NLS" = "yes"; then
15825
15826    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15827      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15828        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15829$as_echo_n "checking how to link with libintl... " >&6; }
15830        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15831$as_echo "$LIBINTL" >&6; }
15832
15833  for element in $INCINTL; do
15834    haveit=
15835    for x in $CPPFLAGS; do
15836
15837  acl_save_prefix="$prefix"
15838  prefix="$acl_final_prefix"
15839  acl_save_exec_prefix="$exec_prefix"
15840  exec_prefix="$acl_final_exec_prefix"
15841  eval x=\"$x\"
15842  exec_prefix="$acl_save_exec_prefix"
15843  prefix="$acl_save_prefix"
15844
15845      if test "X$x" = "X$element"; then
15846        haveit=yes
15847        break
15848      fi
15849    done
15850    if test -z "$haveit"; then
15851      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15852    fi
15853  done
15854
15855      fi
15856
15857
15858$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15859
15860
15861$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15862
15863    fi
15864
15865        POSUB=po
15866  fi
15867
15868
15869
15870    INTLLIBS="$LIBINTL"
15871
15872
15873
15874
15875
15876
15877
15878  if test "$USE_NLS" = "yes"; then
15879    GETTEXT_PACKAGE=gst-plugins-base-$GST_API_VERSION
15880  else
15881    GETTEXT_PACKAGE=NULL
15882  fi
15883
15884
15885cat >>confdefs.h <<_ACEOF
15886#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15887_ACEOF
15888
15889
15890    if test -e "${srcdir}/po/Makevars"; then
15891    if ! grep -e "gst-plugins-base-$GST_API_VERSION" "${srcdir}/po/Makevars"; then
15892      as_fn_error $? "DOMAIN in po/Makevars does not match GETTEXT_PACKAGE gst-plugins-base-$GST_API_VERSION" "$LINENO" 5
15893    fi
15894  fi
15895
15896
15897  EXP_VAR=LOCALEDIR
15898  FROM_VAR=$datadir/locale
15899
15900    prefix_save=$prefix
15901  exec_prefix_save=$exec_prefix
15902
15903    if test "x$prefix" = "xNONE"; then
15904    prefix="$ac_default_prefix"
15905  fi
15906    if test "x$exec_prefix" = "xNONE"; then
15907    exec_prefix=$prefix
15908  fi
15909
15910  full_var="$FROM_VAR"
15911    while true; do
15912    new_full_var="`eval echo $full_var`"
15913    if test "x$new_full_var" = "x$full_var"; then break; fi
15914    full_var=$new_full_var
15915  done
15916
15917    full_var=$new_full_var
15918  LOCALEDIR="$full_var"
15919
15920
15921    prefix=$prefix_save
15922  exec_prefix=$exec_prefix_save
15923
15924
15925cat >>confdefs.h <<_ACEOF
15926#define LOCALEDIR "$LOCALEDIR"
15927_ACEOF
15928
15929
15930
15931
15932
15933  # Check whether --enable-fatal-warnings was given.
15934if test "${enable_fatal_warnings+set}" = set; then :
15935  enableval=$enable_fatal_warnings;
15936      case "${enableval}" in
15937        yes) FATAL_WARNINGS=yes ;;
15938        no)  FATAL_WARNINGS=no ;;
15939        *)   as_fn_error $? "bad value ${enableval} for --disable-fatal-warnings" "$LINENO" 5 ;;
15940      esac
15941
15942else
15943
15944      if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
15945        FATAL_WARNINGS=yes
15946      else
15947        FATAL_WARNINGS=no
15948      fi
15949
15950fi
15951
15952
15953
15954  # Check whether --enable-extra-check was given.
15955if test "${enable_extra_check+set}" = set; then :
15956  enableval=$enable_extra_check;
15957      case "${enableval}" in
15958        yes) EXTRA_CHECKS=yes ;;
15959        no)  EXTRA_CHECKS=no ;;
15960        *)   as_fn_error $? "bad value ${enableval} for --enable-extra-checks" "$LINENO" 5 ;;
15961      esac
15962
15963else
15964
15965      if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
15966        EXTRA_CHECKS=yes
15967      else
15968        EXTRA_CHECKS=no
15969      fi
15970
15971fi
15972
15973
15974    if test "x$EXTRA_CHECKS" = "xyes"; then
15975
15976$as_echo "#define GST_ENABLE_EXTRA_CHECKS 1" >>confdefs.h
15977
15978    fi
15979
15980
15981
15982    # Check whether --enable-debug was given.
15983if test "${enable_debug+set}" = set; then :
15984  enableval=$enable_debug;
15985      case "${enableval}" in
15986        yes) USE_DEBUG=yes ;;
15987        no)  USE_DEBUG=no ;;
15988        *)   as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
15989      esac
15990
15991else
15992  USE_DEBUG=yes
15993fi
15994
15995
15996  # Check whether --enable-profiling was given.
15997if test "${enable_profiling+set}" = set; then :
15998  enableval=$enable_profiling;
15999      case "${enableval}" in
16000        yes) USE_PROFILING=yes ;;
16001        no)  USE_PROFILING=no ;;
16002        *)   as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
16003      esac
16004
16005else
16006  USE_PROFILING=no
16007fi
16008
16009
16010
16011if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16012	if test -n "$ac_tool_prefix"; then
16013  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16014set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16016$as_echo_n "checking for $ac_word... " >&6; }
16017if ${ac_cv_path_PKG_CONFIG+:} false; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020  case $PKG_CONFIG in
16021  [\\/]* | ?:[\\/]*)
16022  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16023  ;;
16024  *)
16025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16026for as_dir in $PATH
16027do
16028  IFS=$as_save_IFS
16029  test -z "$as_dir" && as_dir=.
16030    for ac_exec_ext in '' $ac_executable_extensions; do
16031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16032    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16034    break 2
16035  fi
16036done
16037  done
16038IFS=$as_save_IFS
16039
16040  ;;
16041esac
16042fi
16043PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16044if test -n "$PKG_CONFIG"; then
16045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16046$as_echo "$PKG_CONFIG" >&6; }
16047else
16048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049$as_echo "no" >&6; }
16050fi
16051
16052
16053fi
16054if test -z "$ac_cv_path_PKG_CONFIG"; then
16055  ac_pt_PKG_CONFIG=$PKG_CONFIG
16056  # Extract the first word of "pkg-config", so it can be a program name with args.
16057set dummy pkg-config; ac_word=$2
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16059$as_echo_n "checking for $ac_word... " >&6; }
16060if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16061  $as_echo_n "(cached) " >&6
16062else
16063  case $ac_pt_PKG_CONFIG in
16064  [\\/]* | ?:[\\/]*)
16065  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16066  ;;
16067  *)
16068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069for as_dir in $PATH
16070do
16071  IFS=$as_save_IFS
16072  test -z "$as_dir" && as_dir=.
16073    for ac_exec_ext in '' $ac_executable_extensions; do
16074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16075    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16077    break 2
16078  fi
16079done
16080  done
16081IFS=$as_save_IFS
16082
16083  ;;
16084esac
16085fi
16086ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16087if test -n "$ac_pt_PKG_CONFIG"; then
16088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16089$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16090else
16091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092$as_echo "no" >&6; }
16093fi
16094
16095  if test "x$ac_pt_PKG_CONFIG" = x; then
16096    PKG_CONFIG=""
16097  else
16098    case $cross_compiling:$ac_tool_warned in
16099yes:)
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16102ac_tool_warned=yes ;;
16103esac
16104    PKG_CONFIG=$ac_pt_PKG_CONFIG
16105  fi
16106else
16107  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16108fi
16109
16110fi
16111if test -n "$PKG_CONFIG"; then
16112	_pkg_min_version=0.9.0
16113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16114$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16115	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16117$as_echo "yes" >&6; }
16118	else
16119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120$as_echo "no" >&6; }
16121		PKG_CONFIG=""
16122	fi
16123
16124fi
16125
16126    # Check whether --enable-valgrind was given.
16127if test "${enable_valgrind+set}" = set; then :
16128  enableval=$enable_valgrind;
16129      case "${enableval}" in
16130        yes) USE_VALGRIND="$USE_DEBUG" ;;
16131        no)  USE_VALGRIND=no ;;
16132        *)   as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
16133      esac
16134
16135else
16136  USE_VALGRIND="$USE_DEBUG"
16137fi
16138   VALGRIND_REQ="3.0"
16139  if test "x$USE_VALGRIND" = xyes; then
16140
16141pkg_failed=no
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
16143$as_echo_n "checking for VALGRIND... " >&6; }
16144
16145if test -n "$PKG_CONFIG"; then
16146    if test -n "$VALGRIND_CFLAGS"; then
16147        pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
16148    else
16149        if test -n "$PKG_CONFIG" && \
16150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
16151  ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
16152  ac_status=$?
16153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16154  test $ac_status = 0; }; then
16155  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= $VALGRIND_REQ" 2>/dev/null`
16156else
16157  pkg_failed=yes
16158fi
16159    fi
16160else
16161	pkg_failed=untried
16162fi
16163if test -n "$PKG_CONFIG"; then
16164    if test -n "$VALGRIND_LIBS"; then
16165        pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
16166    else
16167        if test -n "$PKG_CONFIG" && \
16168    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
16169  ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
16170  ac_status=$?
16171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16172  test $ac_status = 0; }; then
16173  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= $VALGRIND_REQ" 2>/dev/null`
16174else
16175  pkg_failed=yes
16176fi
16177    fi
16178else
16179	pkg_failed=untried
16180fi
16181
16182
16183
16184if test $pkg_failed = yes; then
16185
16186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16187        _pkg_short_errors_supported=yes
16188else
16189        _pkg_short_errors_supported=no
16190fi
16191        if test $_pkg_short_errors_supported = yes; then
16192	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
16193        else
16194	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
16195        fi
16196	# Put the nasty error message in config.log where it belongs
16197	echo "$VALGRIND_PKG_ERRORS" >&5
16198
16199	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200$as_echo "no" >&6; }
16201                USE_VALGRIND="no"
16202elif test $pkg_failed = untried; then
16203	USE_VALGRIND="no"
16204else
16205	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
16206	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
16207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16208$as_echo "yes" >&6; }
16209	USE_VALGRIND="yes"
16210fi
16211  fi
16212  if test "x$USE_VALGRIND" = xyes; then
16213
16214$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
16215
16216    { $as_echo "$as_me:${as_lineno-$LINENO}: Using extra code paths for valgrind" >&5
16217$as_echo "$as_me: Using extra code paths for valgrind" >&6;}
16218  fi
16219
16220
16221  # Check whether --enable-gcov was given.
16222if test "${enable_gcov+set}" = set; then :
16223  enableval=$enable_gcov; enable_gcov=$enableval
16224else
16225  enable_gcov=no
16226fi
16227
16228  if test x$enable_gcov = xyes ; then
16229    if test "x$GCC" != "xyes"
16230    then
16231      as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
16232    fi
16233
16234
16235  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-fprofile-arcs\"" >&5
16236$as_echo_n "checking to see if compiler understands \"-fprofile-arcs\"... " >&6; }
16237
16238  save_CFLAGS="$CFLAGS"
16239  CFLAGS="$CFLAGS "-fprofile-arcs""
16240
16241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h.  */
16243
16244int
16245main ()
16246{
16247
16248  ;
16249  return 0;
16250}
16251_ACEOF
16252if ac_fn_c_try_compile "$LINENO"; then :
16253  flag_ok=yes
16254else
16255  flag_ok=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258  CFLAGS="$save_CFLAGS"
16259
16260  if test "X$flag_ok" = Xyes ; then
16261    GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"
16262    true
16263  else
16264    true
16265    true
16266  fi
16267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16268$as_echo "$flag_ok" >&6; }
16269
16270
16271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-ftest-coverage\"" >&5
16272$as_echo_n "checking to see if compiler understands \"-ftest-coverage\"... " >&6; }
16273
16274  save_CFLAGS="$CFLAGS"
16275  CFLAGS="$CFLAGS "-ftest-coverage""
16276
16277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279
16280int
16281main ()
16282{
16283
16284  ;
16285  return 0;
16286}
16287_ACEOF
16288if ac_fn_c_try_compile "$LINENO"; then :
16289  flag_ok=yes
16290else
16291  flag_ok=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294  CFLAGS="$save_CFLAGS"
16295
16296  if test "X$flag_ok" = Xyes ; then
16297    GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"
16298    true
16299  else
16300    true
16301    true
16302  fi
16303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16304$as_echo "$flag_ok" >&6; }
16305
16306        GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[0-9]*//g'`
16307                GCOV_LIBS=-lgcov
16308
16309
16310    GCOV=`echo $CC | sed s/gcc/gcov/g`
16311
16312
16313    GST_GCOV_ENABLED=yes
16314
16315cat >>confdefs.h <<_ACEOF
16316#define GST_GCOV_ENABLED 1
16317_ACEOF
16318
16319        if test "x$GST_GCOV_ENABLED" = "xyes"
16320    then
16321      CFLAGS="$CFLAGS -O0"
16322
16323      CXXFLAGS="$CXXFLAGS -O0"
16324
16325      FFLAGS="$FFLAGS -O0"
16326
16327      CCASFLAGS="$CCASFLAGS -O0"
16328
16329      { $as_echo "$as_me:${as_lineno-$LINENO}: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&5
16330$as_echo "$as_me: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&6;}
16331    fi
16332  fi
16333   if test x$enable_gcov = xyes; then
16334  GST_GCOV_ENABLED_TRUE=
16335  GST_GCOV_ENABLED_FALSE='#'
16336else
16337  GST_GCOV_ENABLED_TRUE='#'
16338  GST_GCOV_ENABLED_FALSE=
16339fi
16340
16341
16342
16343
16344  # Check whether --enable-examples was given.
16345if test "${enable_examples+set}" = set; then :
16346  enableval=$enable_examples;
16347        case "${enableval}" in
16348          yes) BUILD_EXAMPLES=yes ;;
16349          no)  BUILD_EXAMPLES=no ;;
16350          *)   as_fn_error $? "bad value ${enableval} for --disable-examples" "$LINENO" 5 ;;
16351        esac
16352
16353else
16354  BUILD_EXAMPLES=yes
16355fi
16356    if test "x$BUILD_EXAMPLES" = "xyes"; then
16357  BUILD_EXAMPLES_TRUE=
16358  BUILD_EXAMPLES_FALSE='#'
16359else
16360  BUILD_EXAMPLES_TRUE='#'
16361  BUILD_EXAMPLES_FALSE=
16362fi
16363
16364
16365
16366
16367
16368# Check whether --with-pkg-config-path was given.
16369if test "${with_pkg_config_path+set}" = set; then :
16370  withval=$with_pkg_config_path;
16371       export PKG_CONFIG_PATH=${withval}
16372       { $as_echo "$as_me:${as_lineno-$LINENO}: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&5
16373$as_echo "$as_me: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&6;}
16374
16375fi
16376
16377
16378
16379
16380# Check whether --with-package-name was given.
16381if test "${with_package_name+set}" = set; then :
16382  withval=$with_package_name;
16383      case "${withval}" in
16384        yes) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
16385        no)  as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
16386        *)   GST_PACKAGE_NAME="${withval}" ;;
16387      esac
16388
16389else
16390
16391      P=
16392      if test "x$P" = "x"
16393      then
16394        P=$PACKAGE_NAME
16395      fi
16396
16397      if test "x$PACKAGE_VERSION_NANO" = "x0"
16398      then
16399        GST_PACKAGE_NAME="$P source release"
16400      else
16401        if test "x$PACKAGE_VERSION_NANO" = "x1"
16402        then
16403          GST_PACKAGE_NAME="$P git"
16404        else
16405          GST_PACKAGE_NAME="$P prerelease"
16406        fi
16407      fi
16408
16409
16410fi
16411
16412  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_NAME as package name" >&5
16413$as_echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
16414
16415cat >>confdefs.h <<_ACEOF
16416#define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
16417_ACEOF
16418
16419
16420
16421
16422
16423# Check whether --with-package-origin was given.
16424if test "${with_package_origin+set}" = set; then :
16425  withval=$with_package_origin;
16426      case "${withval}" in
16427        yes) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
16428        no)  as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
16429        *)   GST_PACKAGE_ORIGIN="${withval}" ;;
16430      esac
16431
16432else
16433  GST_PACKAGE_ORIGIN="Unknown package origin"
16434fi
16435
16436  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_ORIGIN as package origin" >&5
16437$as_echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
16438
16439cat >>confdefs.h <<_ACEOF
16440#define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
16441_ACEOF
16442
16443
16444
16445
16446
16447  GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
16448  if test "x$PKG_CONFIG_PATH" != "x"; then
16449    GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
16450  fi
16451
16452  { $as_echo "$as_me:${as_lineno-$LINENO}: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&5
16453$as_echo "$as_me: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&6;}
16454
16455
16456
16457# Check whether --with-install-plugins-helper was given.
16458if test "${with_install_plugins_helper+set}" = set; then :
16459  withval=$with_install_plugins_helper;
16460    case "${withval}" in
16461      yes) as_fn_error $? "bad value ${withval} for --with-install-plugins-helper" "$LINENO" 5 ;;
16462      no)  as_fn_error $? "bad value ${withval} for --with-install-plugins-helper" "$LINENO" 5 ;;
16463      *)   GST_INSTALL_PLUGINS_HELPER="${withval}" ;;
16464    esac
16465
16466else
16467
16468
16469  EXP_VAR=GST_INSTALL_PLUGINS_HELPER
16470  FROM_VAR=${libexecdir}/gst-install-plugins-helper
16471
16472    prefix_save=$prefix
16473  exec_prefix_save=$exec_prefix
16474
16475    if test "x$prefix" = "xNONE"; then
16476    prefix="$ac_default_prefix"
16477  fi
16478    if test "x$exec_prefix" = "xNONE"; then
16479    exec_prefix=$prefix
16480  fi
16481
16482  full_var="$FROM_VAR"
16483    while true; do
16484    new_full_var="`eval echo $full_var`"
16485    if test "x$new_full_var" = "x$full_var"; then break; fi
16486    full_var=$new_full_var
16487  done
16488
16489    full_var=$new_full_var
16490  GST_INSTALL_PLUGINS_HELPER="$full_var"
16491
16492
16493    prefix=$prefix_save
16494  exec_prefix=$exec_prefix_save
16495
16496
16497
16498fi
16499
16500{ $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_INSTALL_PLUGINS_HELPER as plugin install helper" >&5
16501$as_echo "$as_me: Using $GST_INSTALL_PLUGINS_HELPER as plugin install helper" >&6;}
16502
16503cat >>confdefs.h <<_ACEOF
16504#define GST_INSTALL_PLUGINS_HELPER "$GST_INSTALL_PLUGINS_HELPER"
16505_ACEOF
16506
16507
16508
16509
16510
16511# Check whether --with-plugins was given.
16512if test "${with_plugins+set}" = set; then :
16513  withval=$with_plugins; WITH_PLUGINS=$withval
16514else
16515  WITH_PLUGINS=
16516fi
16517
16518
16519  GST_PLUGINS_ALL=""
16520  GST_PLUGINS_SELECTED=""
16521  GST_PLUGINS_NONPORTED=""
16522
16523
16524
16525
16526
16527
16528
16529  echo
16530{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: building of plug-ins with external deps ***" >&5
16531$as_echo "$as_me: *** checking feature: building of plug-ins with external deps ***" >&6;}
16532if test "x" != "x"
16533then
16534  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
16535$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
16536fi
16537NOUSE=
16538if test "x$USE_EXTERNAL" = "xno"; then
16539  NOUSE="yes"
16540fi
16541# Check whether --enable-external was given.
16542if test "${enable_external+set}" = set; then :
16543  enableval=$enable_external;  case "${enableval}" in
16544      yes) USE_EXTERNAL=yes;;
16545      no) USE_EXTERNAL=no;;
16546      *) as_fn_error $? "bad value ${enableval} for --enable-external" "$LINENO" 5 ;;
16547    esac
16548else
16549   USE_EXTERNAL=yes
16550fi
16551
16552if test "x$NOUSE" = "xyes"; then
16553  USE_EXTERNAL="no"
16554  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
16555$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
16556fi
16557NOUSE=
16558
16559if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " EXTERNAL " > /dev/null; then
16560  USE_EXTERNAL="no"
16561  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
16562$as_echo "$as_me: WARNING: ***  not ported" >&2;}
16563fi
16564
16565
16566if test x$USE_EXTERNAL = xyes; then
16567
16568  gst_check_save_LIBS=$LIBS
16569  gst_check_save_LDFLAGS=$LDFLAGS
16570  gst_check_save_CFLAGS=$CFLAGS
16571  gst_check_save_CPPFLAGS=$CPPFLAGS
16572  gst_check_save_CXXFLAGS=$CXXFLAGS
16573
16574  HAVE_EXTERNAL=no
16575    HAVE_EXTERNAL=yes
16576
16577  LIBS=$gst_check_save_LIBS
16578  LDFLAGS=$gst_check_save_LDFLAGS
16579  CFLAGS=$gst_check_save_CFLAGS
16580  CPPFLAGS=$gst_check_save_CPPFLAGS
16581  CXXFLAGS=$gst_check_save_CXXFLAGS
16582
16583    if test x$HAVE_EXTERNAL = xno; then
16584    USE_EXTERNAL=no
16585  else
16586    :
16587  fi
16588fi
16589if test x$USE_EXTERNAL = xyes; then
16590
16591      { $as_echo "$as_me:${as_lineno-$LINENO}: building external plug-ins" >&5
16592$as_echo "$as_me: building external plug-ins" >&6;}
16593      BUILD_EXTERNAL="yes"
16594
16595  if test "x" != "x"; then
16596    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
16597  fi
16598
16599$as_echo "#define HAVE_EXTERNAL /**/" >>confdefs.h
16600
16601else
16602  :
16603  if test "x" != "x"; then
16604    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
16605  fi
16606
16607      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: all plug-ins with external dependencies will not be built" >&5
16608$as_echo "$as_me: WARNING: all plug-ins with external dependencies will not be built" >&2;}
16609      BUILD_EXTERNAL="no"
16610
16611fi
16612 if test x$USE_EXTERNAL = xyes; then
16613  USE_EXTERNAL_TRUE=
16614  USE_EXTERNAL_FALSE='#'
16615else
16616  USE_EXTERNAL_TRUE='#'
16617  USE_EXTERNAL_FALSE=
16618fi
16619
16620
16621  # make BUILD_EXTERNAL available to Makefile.am
16622   if test "x$BUILD_EXTERNAL" = "xyes"; then
16623  BUILD_EXTERNAL_TRUE=
16624  BUILD_EXTERNAL_FALSE='#'
16625else
16626  BUILD_EXTERNAL_TRUE='#'
16627  BUILD_EXTERNAL_FALSE=
16628fi
16629
16630
16631
16632
16633  echo
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: building of experimental plug-ins ***" >&5
16635$as_echo "$as_me: *** checking feature: building of experimental plug-ins ***" >&6;}
16636if test "x" != "x"
16637then
16638  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
16639$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
16640fi
16641NOUSE=
16642if test "x$USE_EXPERIMENTAL" = "xno"; then
16643  NOUSE="yes"
16644fi
16645# Check whether --enable-experimental was given.
16646if test "${enable_experimental+set}" = set; then :
16647  enableval=$enable_experimental;  case "${enableval}" in
16648      yes) USE_EXPERIMENTAL=yes;;
16649      no) USE_EXPERIMENTAL=no;;
16650      *) as_fn_error $? "bad value ${enableval} for --enable-experimental" "$LINENO" 5 ;;
16651    esac
16652else
16653   USE_EXPERIMENTAL=no
16654fi
16655
16656if test "x$NOUSE" = "xyes"; then
16657  USE_EXPERIMENTAL="no"
16658  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
16659$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
16660fi
16661NOUSE=
16662
16663if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " EXPERIMENTAL " > /dev/null; then
16664  USE_EXPERIMENTAL="no"
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
16666$as_echo "$as_me: WARNING: ***  not ported" >&2;}
16667fi
16668
16669
16670if test x$USE_EXPERIMENTAL = xyes; then
16671
16672  gst_check_save_LIBS=$LIBS
16673  gst_check_save_LDFLAGS=$LDFLAGS
16674  gst_check_save_CFLAGS=$CFLAGS
16675  gst_check_save_CPPFLAGS=$CPPFLAGS
16676  gst_check_save_CXXFLAGS=$CXXFLAGS
16677
16678  HAVE_EXPERIMENTAL=no
16679    HAVE_EXPERIMENTAL=yes
16680
16681  LIBS=$gst_check_save_LIBS
16682  LDFLAGS=$gst_check_save_LDFLAGS
16683  CFLAGS=$gst_check_save_CFLAGS
16684  CPPFLAGS=$gst_check_save_CPPFLAGS
16685  CXXFLAGS=$gst_check_save_CXXFLAGS
16686
16687    if test x$HAVE_EXPERIMENTAL = xno; then
16688    USE_EXPERIMENTAL=no
16689  else
16690    :
16691  fi
16692fi
16693if test x$USE_EXPERIMENTAL = xyes; then
16694
16695      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building experimental plug-ins" >&5
16696$as_echo "$as_me: WARNING: building experimental plug-ins" >&2;}
16697      BUILD_EXPERIMENTAL="yes"
16698
16699  if test "x" != "x"; then
16700    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
16701  fi
16702
16703$as_echo "#define HAVE_EXPERIMENTAL /**/" >>confdefs.h
16704
16705else
16706  :
16707  if test "x" != "x"; then
16708    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
16709  fi
16710
16711      { $as_echo "$as_me:${as_lineno-$LINENO}: not building experimental plug-ins" >&5
16712$as_echo "$as_me: not building experimental plug-ins" >&6;}
16713      BUILD_EXPERIMENTAL="no"
16714
16715fi
16716 if test x$USE_EXPERIMENTAL = xyes; then
16717  USE_EXPERIMENTAL_TRUE=
16718  USE_EXPERIMENTAL_FALSE='#'
16719else
16720  USE_EXPERIMENTAL_TRUE='#'
16721  USE_EXPERIMENTAL_FALSE=
16722fi
16723
16724
16725  # make BUILD_EXPERIMENTAL available to Makefile.am
16726   if test "x$BUILD_EXPERIMENTAL" = "xyes"; then
16727  BUILD_EXPERIMENTAL_TRUE=
16728  BUILD_EXPERIMENTAL_FALSE='#'
16729else
16730  BUILD_EXPERIMENTAL_TRUE='#'
16731  BUILD_EXPERIMENTAL_FALSE=
16732fi
16733
16734
16735
16736
16737
16738
16739  case $host_os in
16740    rhapsody*)
16741
16742cat >>confdefs.h <<_ACEOF
16743#define GST_EXTRA_MODULE_SUFFIX ".dylib"
16744_ACEOF
16745
16746      ;;
16747    darwin*)
16748
16749cat >>confdefs.h <<_ACEOF
16750#define GST_EXTRA_MODULE_SUFFIX ".dylib"
16751_ACEOF
16752
16753
16754cat >>confdefs.h <<_ACEOF
16755#define HAVE_OSX 1
16756_ACEOF
16757
16758      ;;
16759    cygwin*)
16760
16761cat >>confdefs.h <<_ACEOF
16762#define GST_HAVE_UNSAFE_FORK 1
16763_ACEOF
16764
16765      ;;
16766    mingw* | msvc* | mks*)
16767
16768cat >>confdefs.h <<_ACEOF
16769#define HAVE_WIN32 1
16770_ACEOF
16771
16772
16773                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774/* end confdefs.h.  */
16775
16776int
16777main ()
16778{
16779 return __MSVCRT_VERSION__;
16780  ;
16781  return 0;
16782}
16783_ACEOF
16784if ac_fn_c_try_compile "$LINENO"; then :
16785
16786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787/* end confdefs.h.  */
16788
16789int
16790main ()
16791{
16792
16793            #if __MSVCRT_VERSION__ < 0x0601
16794            #error "MSVCRT too old"
16795            #endif
16796
16797  ;
16798  return 0;
16799}
16800_ACEOF
16801if ac_fn_c_try_compile "$LINENO"; then :
16802
16803            { $as_echo "$as_me:${as_lineno-$LINENO}: MSVCRT version looks ok" >&5
16804$as_echo "$as_me: MSVCRT version looks ok" >&6;}
16805
16806else
16807
16808            as_fn_error $? "MSVCRT version too old, need at least WinXP SP2" "$LINENO" 5
16809
16810fi
16811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812
16813else
16814
16815        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting MSVCRT version to 0x0601" >&5
16816$as_echo "$as_me: Setting MSVCRT version to 0x0601" >&6;}
16817
16818cat >>confdefs.h <<_ACEOF
16819#define __MSVCRT_VERSION__ 0x0601
16820_ACEOF
16821
16822
16823fi
16824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16825      ;;
16826     *)
16827      ;;
16828  esac
16829
16830
16831
16832
16833    case "x${target_cpu}" in
16834    xi?86 | xk? | xi?86_64)
16835      case $target_os in
16836         solaris*)
16837            ac_fn_c_check_decl "$LINENO" "__i386" "ac_cv_have_decl___i386" "$ac_includes_default"
16838if test "x$ac_cv_have_decl___i386" = xyes; then :
16839  I386_ABI="yes"
16840else
16841  I386_ABI="no"
16842fi
16843
16844            ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default"
16845if test "x$ac_cv_have_decl___amd64" = xyes; then :
16846  AMD64_ABI="yes"
16847else
16848  AMD64_ABI="no"
16849fi
16850
16851
16852            if test "x$I386_ABI" = "xyes" ; then
16853               HAVE_CPU_I386=yes
16854
16855$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
16856
16857            fi
16858            if test "x$AMD64_ABI" = "xyes" ; then
16859                HAVE_CPU_X86_64=yes
16860
16861$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
16862
16863            fi
16864            ;;
16865         *)
16866            HAVE_CPU_I386=yes
16867
16868$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
16869
16870
16871                                    case "x${target_cpu}" in
16872              xi386 | xi486) ;;
16873            *)
16874
16875$as_echo "#define HAVE_RDTSC 1" >>confdefs.h
16876 ;;
16877            esac
16878            ;;
16879      esac
16880      ;;
16881    xpowerpc)
16882      HAVE_CPU_PPC=yes
16883
16884$as_echo "#define HAVE_CPU_PPC 1" >>confdefs.h
16885 ;;
16886    xpowerpc64)
16887      HAVE_CPU_PPC64=yes
16888
16889$as_echo "#define HAVE_CPU_PPC64 1" >>confdefs.h
16890 ;;
16891    xalpha*)
16892      HAVE_CPU_ALPHA=yes
16893
16894$as_echo "#define HAVE_CPU_ALPHA 1" >>confdefs.h
16895 ;;
16896    xarc*)
16897      HAVE_CPU_ARC=yes
16898
16899$as_echo "#define HAVE_CPU_ARC 1" >>confdefs.h
16900 ;;
16901    xarm*)
16902      HAVE_CPU_ARM=yes
16903
16904$as_echo "#define HAVE_CPU_ARM 1" >>confdefs.h
16905 ;;
16906    xaarch64*)
16907      HAVE_CPU_AARCH64=yes
16908
16909$as_echo "#define HAVE_CPU_AARCH64 1" >>confdefs.h
16910 ;;
16911    xsparc*)
16912      HAVE_CPU_SPARC=yes
16913
16914$as_echo "#define HAVE_CPU_SPARC 1" >>confdefs.h
16915 ;;
16916    xmips*)
16917      HAVE_CPU_MIPS=yes
16918
16919$as_echo "#define HAVE_CPU_MIPS 1" >>confdefs.h
16920 ;;
16921    xhppa*)
16922      HAVE_CPU_HPPA=yes
16923
16924$as_echo "#define HAVE_CPU_HPPA 1" >>confdefs.h
16925 ;;
16926    xs390*)
16927      HAVE_CPU_S390=yes
16928
16929$as_echo "#define HAVE_CPU_S390 1" >>confdefs.h
16930 ;;
16931    xia64*)
16932      HAVE_CPU_IA64=yes
16933
16934$as_echo "#define HAVE_CPU_IA64 1" >>confdefs.h
16935 ;;
16936    xm68k*)
16937      HAVE_CPU_M68K=yes
16938
16939$as_echo "#define HAVE_CPU_M68K 1" >>confdefs.h
16940 ;;
16941    xx86_64)
16942      HAVE_CPU_X86_64=yes
16943
16944$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
16945 ;;
16946    xcris)
16947      HAVE_CPU_CRIS=yes
16948
16949$as_echo "#define HAVE_CPU_CRIS 1" >>confdefs.h
16950 ;;
16951    xcrisv32)
16952      HAVE_CPU_CRISV32=yes
16953
16954$as_echo "#define HAVE_CPU_CRISV32 1" >>confdefs.h
16955 ;;
16956  esac
16957
16958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16959$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16960if ${ac_cv_c_bigendian+:} false; then :
16961  $as_echo_n "(cached) " >&6
16962else
16963  ac_cv_c_bigendian=unknown
16964    # See if we're dealing with a universal compiler.
16965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16966/* end confdefs.h.  */
16967#ifndef __APPLE_CC__
16968	       not a universal capable compiler
16969	     #endif
16970	     typedef int dummy;
16971
16972_ACEOF
16973if ac_fn_c_try_compile "$LINENO"; then :
16974
16975	# Check for potential -arch flags.  It is not universal unless
16976	# there are at least two -arch flags with different values.
16977	ac_arch=
16978	ac_prev=
16979	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16980	 if test -n "$ac_prev"; then
16981	   case $ac_word in
16982	     i?86 | x86_64 | ppc | ppc64)
16983	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16984		 ac_arch=$ac_word
16985	       else
16986		 ac_cv_c_bigendian=universal
16987		 break
16988	       fi
16989	       ;;
16990	   esac
16991	   ac_prev=
16992	 elif test "x$ac_word" = "x-arch"; then
16993	   ac_prev=arch
16994	 fi
16995       done
16996fi
16997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998    if test $ac_cv_c_bigendian = unknown; then
16999      # See if sys/param.h defines the BYTE_ORDER macro.
17000      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001/* end confdefs.h.  */
17002#include <sys/types.h>
17003	     #include <sys/param.h>
17004
17005int
17006main ()
17007{
17008#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17009		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17010		     && LITTLE_ENDIAN)
17011	      bogus endian macros
17012	     #endif
17013
17014  ;
17015  return 0;
17016}
17017_ACEOF
17018if ac_fn_c_try_compile "$LINENO"; then :
17019  # It does; now see whether it defined to BIG_ENDIAN or not.
17020	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17021/* end confdefs.h.  */
17022#include <sys/types.h>
17023		#include <sys/param.h>
17024
17025int
17026main ()
17027{
17028#if BYTE_ORDER != BIG_ENDIAN
17029		 not big endian
17030		#endif
17031
17032  ;
17033  return 0;
17034}
17035_ACEOF
17036if ac_fn_c_try_compile "$LINENO"; then :
17037  ac_cv_c_bigendian=yes
17038else
17039  ac_cv_c_bigendian=no
17040fi
17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042fi
17043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044    fi
17045    if test $ac_cv_c_bigendian = unknown; then
17046      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048/* end confdefs.h.  */
17049#include <limits.h>
17050
17051int
17052main ()
17053{
17054#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17055	      bogus endian macros
17056	     #endif
17057
17058  ;
17059  return 0;
17060}
17061_ACEOF
17062if ac_fn_c_try_compile "$LINENO"; then :
17063  # It does; now see whether it defined to _BIG_ENDIAN or not.
17064	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065/* end confdefs.h.  */
17066#include <limits.h>
17067
17068int
17069main ()
17070{
17071#ifndef _BIG_ENDIAN
17072		 not big endian
17073		#endif
17074
17075  ;
17076  return 0;
17077}
17078_ACEOF
17079if ac_fn_c_try_compile "$LINENO"; then :
17080  ac_cv_c_bigendian=yes
17081else
17082  ac_cv_c_bigendian=no
17083fi
17084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17085fi
17086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087    fi
17088    if test $ac_cv_c_bigendian = unknown; then
17089      # Compile a test program.
17090      if test "$cross_compiling" = yes; then :
17091  # Try to guess by grepping values from an object file.
17092	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093/* end confdefs.h.  */
17094short int ascii_mm[] =
17095		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17096		short int ascii_ii[] =
17097		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17098		int use_ascii (int i) {
17099		  return ascii_mm[i] + ascii_ii[i];
17100		}
17101		short int ebcdic_ii[] =
17102		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17103		short int ebcdic_mm[] =
17104		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17105		int use_ebcdic (int i) {
17106		  return ebcdic_mm[i] + ebcdic_ii[i];
17107		}
17108		extern int foo;
17109
17110int
17111main ()
17112{
17113return use_ascii (foo) == use_ebcdic (foo);
17114  ;
17115  return 0;
17116}
17117_ACEOF
17118if ac_fn_c_try_compile "$LINENO"; then :
17119  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17120	      ac_cv_c_bigendian=yes
17121	    fi
17122	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17123	      if test "$ac_cv_c_bigendian" = unknown; then
17124		ac_cv_c_bigendian=no
17125	      else
17126		# finding both strings is unlikely to happen, but who knows?
17127		ac_cv_c_bigendian=unknown
17128	      fi
17129	    fi
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132else
17133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17134/* end confdefs.h.  */
17135$ac_includes_default
17136int
17137main ()
17138{
17139
17140	     /* Are we little or big endian?  From Harbison&Steele.  */
17141	     union
17142	     {
17143	       long int l;
17144	       char c[sizeof (long int)];
17145	     } u;
17146	     u.l = 1;
17147	     return u.c[sizeof (long int) - 1] == 1;
17148
17149  ;
17150  return 0;
17151}
17152_ACEOF
17153if ac_fn_c_try_run "$LINENO"; then :
17154  ac_cv_c_bigendian=no
17155else
17156  ac_cv_c_bigendian=yes
17157fi
17158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17159  conftest.$ac_objext conftest.beam conftest.$ac_ext
17160fi
17161
17162    fi
17163fi
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17165$as_echo "$ac_cv_c_bigendian" >&6; }
17166 case $ac_cv_c_bigendian in #(
17167   yes)
17168     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17169;; #(
17170   no)
17171      ;; #(
17172   universal)
17173
17174$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17175
17176     ;; #(
17177   *)
17178     as_fn_error $? "unknown endianness
17179 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17180 esac
17181
17182
17183   if test "x$HAVE_CPU_I386" = "xyes"; then
17184  HAVE_CPU_I386_TRUE=
17185  HAVE_CPU_I386_FALSE='#'
17186else
17187  HAVE_CPU_I386_TRUE='#'
17188  HAVE_CPU_I386_FALSE=
17189fi
17190
17191   if test "x$HAVE_CPU_PPC" = "xyes"; then
17192  HAVE_CPU_PPC_TRUE=
17193  HAVE_CPU_PPC_FALSE='#'
17194else
17195  HAVE_CPU_PPC_TRUE='#'
17196  HAVE_CPU_PPC_FALSE=
17197fi
17198
17199   if test "x$HAVE_CPU_PPC64" = "xyes"; then
17200  HAVE_CPU_PPC64_TRUE=
17201  HAVE_CPU_PPC64_FALSE='#'
17202else
17203  HAVE_CPU_PPC64_TRUE='#'
17204  HAVE_CPU_PPC64_FALSE=
17205fi
17206
17207   if test "x$HAVE_CPU_ALPHA" = "xyes"; then
17208  HAVE_CPU_ALPHA_TRUE=
17209  HAVE_CPU_ALPHA_FALSE='#'
17210else
17211  HAVE_CPU_ALPHA_TRUE='#'
17212  HAVE_CPU_ALPHA_FALSE=
17213fi
17214
17215   if test "x$HAVE_CPU_ARC" = "xyes"; then
17216  HAVE_CPU_ARC_TRUE=
17217  HAVE_CPU_ARC_FALSE='#'
17218else
17219  HAVE_CPU_ARC_TRUE='#'
17220  HAVE_CPU_ARC_FALSE=
17221fi
17222
17223   if test "x$HAVE_CPU_ARM" = "xyes"; then
17224  HAVE_CPU_ARM_TRUE=
17225  HAVE_CPU_ARM_FALSE='#'
17226else
17227  HAVE_CPU_ARM_TRUE='#'
17228  HAVE_CPU_ARM_FALSE=
17229fi
17230
17231   if test "x$HAVE_CPU_SPARC" = "xyes"; then
17232  HAVE_CPU_SPARC_TRUE=
17233  HAVE_CPU_SPARC_FALSE='#'
17234else
17235  HAVE_CPU_SPARC_TRUE='#'
17236  HAVE_CPU_SPARC_FALSE=
17237fi
17238
17239   if test "x$HAVE_CPU_HPPA" = "xyes"; then
17240  HAVE_CPU_HPPA_TRUE=
17241  HAVE_CPU_HPPA_FALSE='#'
17242else
17243  HAVE_CPU_HPPA_TRUE='#'
17244  HAVE_CPU_HPPA_FALSE=
17245fi
17246
17247   if test "x$HAVE_CPU_MIPS" = "xyes"; then
17248  HAVE_CPU_MIPS_TRUE=
17249  HAVE_CPU_MIPS_FALSE='#'
17250else
17251  HAVE_CPU_MIPS_TRUE='#'
17252  HAVE_CPU_MIPS_FALSE=
17253fi
17254
17255   if test "x$HAVE_CPU_S390" = "xyes"; then
17256  HAVE_CPU_S390_TRUE=
17257  HAVE_CPU_S390_FALSE='#'
17258else
17259  HAVE_CPU_S390_TRUE='#'
17260  HAVE_CPU_S390_FALSE=
17261fi
17262
17263   if test "x$HAVE_CPU_IA64" = "xyes"; then
17264  HAVE_CPU_IA64_TRUE=
17265  HAVE_CPU_IA64_FALSE='#'
17266else
17267  HAVE_CPU_IA64_TRUE='#'
17268  HAVE_CPU_IA64_FALSE=
17269fi
17270
17271   if test "x$HAVE_CPU_M68K" = "xyes"; then
17272  HAVE_CPU_M68K_TRUE=
17273  HAVE_CPU_M68K_FALSE='#'
17274else
17275  HAVE_CPU_M68K_TRUE='#'
17276  HAVE_CPU_M68K_FALSE=
17277fi
17278
17279   if test "x$HAVE_CPU_X86_64" = "xyes"; then
17280  HAVE_CPU_X86_64_TRUE=
17281  HAVE_CPU_X86_64_FALSE='#'
17282else
17283  HAVE_CPU_X86_64_TRUE='#'
17284  HAVE_CPU_X86_64_FALSE=
17285fi
17286
17287   if test "x$HAVE_CPU_CRIS" = "xyes"; then
17288  HAVE_CPU_CRIS_TRUE=
17289  HAVE_CPU_CRIS_FALSE='#'
17290else
17291  HAVE_CPU_CRIS_TRUE='#'
17292  HAVE_CPU_CRIS_FALSE=
17293fi
17294
17295   if test "x$HAVE_CPU_CRISV32" = "xyes"; then
17296  HAVE_CPU_CRISV32_TRUE=
17297  HAVE_CPU_CRISV32_FALSE='#'
17298else
17299  HAVE_CPU_CRISV32_TRUE='#'
17300  HAVE_CPU_CRISV32_FALSE=
17301fi
17302
17303
17304
17305cat >>confdefs.h <<_ACEOF
17306#define HOST_CPU "$host_cpu"
17307_ACEOF
17308
17309
17310cat >>confdefs.h <<_ACEOF
17311#define TARGET_CPU "$target_cpu"
17312_ACEOF
17313
17314
17315
17316# Check whether --enable-largefile was given.
17317if test "${enable_largefile+set}" = set; then :
17318  enableval=$enable_largefile;
17319fi
17320
17321if test "$enable_largefile" != no; then
17322
17323  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17324$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17325if ${ac_cv_sys_largefile_CC+:} false; then :
17326  $as_echo_n "(cached) " >&6
17327else
17328  ac_cv_sys_largefile_CC=no
17329     if test "$GCC" != yes; then
17330       ac_save_CC=$CC
17331       while :; do
17332	 # IRIX 6.2 and later do not support large files by default,
17333	 # so use the C compiler's -n32 option if that helps.
17334	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335/* end confdefs.h.  */
17336#include <sys/types.h>
17337 /* Check that off_t can represent 2**63 - 1 correctly.
17338    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17339    since some C++ compilers masquerading as C compilers
17340    incorrectly reject 9223372036854775807.  */
17341#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17342  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17343		       && LARGE_OFF_T % 2147483647 == 1)
17344		      ? 1 : -1];
17345int
17346main ()
17347{
17348
17349  ;
17350  return 0;
17351}
17352_ACEOF
17353	 if ac_fn_c_try_compile "$LINENO"; then :
17354  break
17355fi
17356rm -f core conftest.err conftest.$ac_objext
17357	 CC="$CC -n32"
17358	 if ac_fn_c_try_compile "$LINENO"; then :
17359  ac_cv_sys_largefile_CC=' -n32'; break
17360fi
17361rm -f core conftest.err conftest.$ac_objext
17362	 break
17363       done
17364       CC=$ac_save_CC
17365       rm -f conftest.$ac_ext
17366    fi
17367fi
17368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17369$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17370  if test "$ac_cv_sys_largefile_CC" != no; then
17371    CC=$CC$ac_cv_sys_largefile_CC
17372  fi
17373
17374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17375$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17376if ${ac_cv_sys_file_offset_bits+:} false; then :
17377  $as_echo_n "(cached) " >&6
17378else
17379  while :; do
17380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h.  */
17382#include <sys/types.h>
17383 /* Check that off_t can represent 2**63 - 1 correctly.
17384    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17385    since some C++ compilers masquerading as C compilers
17386    incorrectly reject 9223372036854775807.  */
17387#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17388  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17389		       && LARGE_OFF_T % 2147483647 == 1)
17390		      ? 1 : -1];
17391int
17392main ()
17393{
17394
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399if ac_fn_c_try_compile "$LINENO"; then :
17400  ac_cv_sys_file_offset_bits=no; break
17401fi
17402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404/* end confdefs.h.  */
17405#define _FILE_OFFSET_BITS 64
17406#include <sys/types.h>
17407 /* Check that off_t can represent 2**63 - 1 correctly.
17408    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17409    since some C++ compilers masquerading as C compilers
17410    incorrectly reject 9223372036854775807.  */
17411#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17412  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17413		       && LARGE_OFF_T % 2147483647 == 1)
17414		      ? 1 : -1];
17415int
17416main ()
17417{
17418
17419  ;
17420  return 0;
17421}
17422_ACEOF
17423if ac_fn_c_try_compile "$LINENO"; then :
17424  ac_cv_sys_file_offset_bits=64; break
17425fi
17426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427  ac_cv_sys_file_offset_bits=unknown
17428  break
17429done
17430fi
17431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17432$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17433case $ac_cv_sys_file_offset_bits in #(
17434  no | unknown) ;;
17435  *)
17436cat >>confdefs.h <<_ACEOF
17437#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17438_ACEOF
17439;;
17440esac
17441rm -rf conftest*
17442  if test $ac_cv_sys_file_offset_bits = unknown; then
17443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17444$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17445if ${ac_cv_sys_large_files+:} false; then :
17446  $as_echo_n "(cached) " >&6
17447else
17448  while :; do
17449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h.  */
17451#include <sys/types.h>
17452 /* Check that off_t can represent 2**63 - 1 correctly.
17453    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17454    since some C++ compilers masquerading as C compilers
17455    incorrectly reject 9223372036854775807.  */
17456#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17457  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17458		       && LARGE_OFF_T % 2147483647 == 1)
17459		      ? 1 : -1];
17460int
17461main ()
17462{
17463
17464  ;
17465  return 0;
17466}
17467_ACEOF
17468if ac_fn_c_try_compile "$LINENO"; then :
17469  ac_cv_sys_large_files=no; break
17470fi
17471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474#define _LARGE_FILES 1
17475#include <sys/types.h>
17476 /* Check that off_t can represent 2**63 - 1 correctly.
17477    We can't simply define LARGE_OFF_T to be 9223372036854775807,
17478    since some C++ compilers masquerading as C compilers
17479    incorrectly reject 9223372036854775807.  */
17480#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
17481  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17482		       && LARGE_OFF_T % 2147483647 == 1)
17483		      ? 1 : -1];
17484int
17485main ()
17486{
17487
17488  ;
17489  return 0;
17490}
17491_ACEOF
17492if ac_fn_c_try_compile "$LINENO"; then :
17493  ac_cv_sys_large_files=1; break
17494fi
17495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496  ac_cv_sys_large_files=unknown
17497  break
17498done
17499fi
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17501$as_echo "$ac_cv_sys_large_files" >&6; }
17502case $ac_cv_sys_large_files in #(
17503  no | unknown) ;;
17504  *)
17505cat >>confdefs.h <<_ACEOF
17506#define _LARGE_FILES $ac_cv_sys_large_files
17507_ACEOF
17508;;
17509esac
17510rm -rf conftest*
17511  fi
17512
17513
17514fi
17515
17516
17517
17518ac_ext=c
17519ac_cpp='$CPP $CPPFLAGS'
17520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17522ac_compiler_gnu=$ac_cv_c_compiler_gnu
17523if test -n "$ac_tool_prefix"; then
17524  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17525set dummy ${ac_tool_prefix}gcc; ac_word=$2
17526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17527$as_echo_n "checking for $ac_word... " >&6; }
17528if ${ac_cv_prog_CC+:} false; then :
17529  $as_echo_n "(cached) " >&6
17530else
17531  if test -n "$CC"; then
17532  ac_cv_prog_CC="$CC" # Let the user override the test.
17533else
17534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17535for as_dir in $PATH
17536do
17537  IFS=$as_save_IFS
17538  test -z "$as_dir" && as_dir=.
17539    for ac_exec_ext in '' $ac_executable_extensions; do
17540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17541    ac_cv_prog_CC="${ac_tool_prefix}gcc"
17542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17543    break 2
17544  fi
17545done
17546  done
17547IFS=$as_save_IFS
17548
17549fi
17550fi
17551CC=$ac_cv_prog_CC
17552if test -n "$CC"; then
17553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17554$as_echo "$CC" >&6; }
17555else
17556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17557$as_echo "no" >&6; }
17558fi
17559
17560
17561fi
17562if test -z "$ac_cv_prog_CC"; then
17563  ac_ct_CC=$CC
17564  # Extract the first word of "gcc", so it can be a program name with args.
17565set dummy gcc; ac_word=$2
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17567$as_echo_n "checking for $ac_word... " >&6; }
17568if ${ac_cv_prog_ac_ct_CC+:} false; then :
17569  $as_echo_n "(cached) " >&6
17570else
17571  if test -n "$ac_ct_CC"; then
17572  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17573else
17574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17575for as_dir in $PATH
17576do
17577  IFS=$as_save_IFS
17578  test -z "$as_dir" && as_dir=.
17579    for ac_exec_ext in '' $ac_executable_extensions; do
17580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17581    ac_cv_prog_ac_ct_CC="gcc"
17582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17583    break 2
17584  fi
17585done
17586  done
17587IFS=$as_save_IFS
17588
17589fi
17590fi
17591ac_ct_CC=$ac_cv_prog_ac_ct_CC
17592if test -n "$ac_ct_CC"; then
17593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17594$as_echo "$ac_ct_CC" >&6; }
17595else
17596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17597$as_echo "no" >&6; }
17598fi
17599
17600  if test "x$ac_ct_CC" = x; then
17601    CC=""
17602  else
17603    case $cross_compiling:$ac_tool_warned in
17604yes:)
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17607ac_tool_warned=yes ;;
17608esac
17609    CC=$ac_ct_CC
17610  fi
17611else
17612  CC="$ac_cv_prog_CC"
17613fi
17614
17615if test -z "$CC"; then
17616          if test -n "$ac_tool_prefix"; then
17617    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17618set dummy ${ac_tool_prefix}cc; ac_word=$2
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17620$as_echo_n "checking for $ac_word... " >&6; }
17621if ${ac_cv_prog_CC+:} false; then :
17622  $as_echo_n "(cached) " >&6
17623else
17624  if test -n "$CC"; then
17625  ac_cv_prog_CC="$CC" # Let the user override the test.
17626else
17627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17628for as_dir in $PATH
17629do
17630  IFS=$as_save_IFS
17631  test -z "$as_dir" && as_dir=.
17632    for ac_exec_ext in '' $ac_executable_extensions; do
17633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17634    ac_cv_prog_CC="${ac_tool_prefix}cc"
17635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17636    break 2
17637  fi
17638done
17639  done
17640IFS=$as_save_IFS
17641
17642fi
17643fi
17644CC=$ac_cv_prog_CC
17645if test -n "$CC"; then
17646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17647$as_echo "$CC" >&6; }
17648else
17649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17650$as_echo "no" >&6; }
17651fi
17652
17653
17654  fi
17655fi
17656if test -z "$CC"; then
17657  # Extract the first word of "cc", so it can be a program name with args.
17658set dummy cc; ac_word=$2
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17660$as_echo_n "checking for $ac_word... " >&6; }
17661if ${ac_cv_prog_CC+:} false; then :
17662  $as_echo_n "(cached) " >&6
17663else
17664  if test -n "$CC"; then
17665  ac_cv_prog_CC="$CC" # Let the user override the test.
17666else
17667  ac_prog_rejected=no
17668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17669for as_dir in $PATH
17670do
17671  IFS=$as_save_IFS
17672  test -z "$as_dir" && as_dir=.
17673    for ac_exec_ext in '' $ac_executable_extensions; do
17674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17675    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17676       ac_prog_rejected=yes
17677       continue
17678     fi
17679    ac_cv_prog_CC="cc"
17680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17681    break 2
17682  fi
17683done
17684  done
17685IFS=$as_save_IFS
17686
17687if test $ac_prog_rejected = yes; then
17688  # We found a bogon in the path, so make sure we never use it.
17689  set dummy $ac_cv_prog_CC
17690  shift
17691  if test $# != 0; then
17692    # We chose a different compiler from the bogus one.
17693    # However, it has the same basename, so the bogon will be chosen
17694    # first if we set CC to just the basename; use the full file name.
17695    shift
17696    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
17697  fi
17698fi
17699fi
17700fi
17701CC=$ac_cv_prog_CC
17702if test -n "$CC"; then
17703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17704$as_echo "$CC" >&6; }
17705else
17706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707$as_echo "no" >&6; }
17708fi
17709
17710
17711fi
17712if test -z "$CC"; then
17713  if test -n "$ac_tool_prefix"; then
17714  for ac_prog in cl.exe
17715  do
17716    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17719$as_echo_n "checking for $ac_word... " >&6; }
17720if ${ac_cv_prog_CC+:} false; then :
17721  $as_echo_n "(cached) " >&6
17722else
17723  if test -n "$CC"; then
17724  ac_cv_prog_CC="$CC" # Let the user override the test.
17725else
17726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727for as_dir in $PATH
17728do
17729  IFS=$as_save_IFS
17730  test -z "$as_dir" && as_dir=.
17731    for ac_exec_ext in '' $ac_executable_extensions; do
17732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17733    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17735    break 2
17736  fi
17737done
17738  done
17739IFS=$as_save_IFS
17740
17741fi
17742fi
17743CC=$ac_cv_prog_CC
17744if test -n "$CC"; then
17745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17746$as_echo "$CC" >&6; }
17747else
17748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17749$as_echo "no" >&6; }
17750fi
17751
17752
17753    test -n "$CC" && break
17754  done
17755fi
17756if test -z "$CC"; then
17757  ac_ct_CC=$CC
17758  for ac_prog in cl.exe
17759do
17760  # Extract the first word of "$ac_prog", so it can be a program name with args.
17761set dummy $ac_prog; ac_word=$2
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763$as_echo_n "checking for $ac_word... " >&6; }
17764if ${ac_cv_prog_ac_ct_CC+:} false; then :
17765  $as_echo_n "(cached) " >&6
17766else
17767  if test -n "$ac_ct_CC"; then
17768  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17769else
17770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771for as_dir in $PATH
17772do
17773  IFS=$as_save_IFS
17774  test -z "$as_dir" && as_dir=.
17775    for ac_exec_ext in '' $ac_executable_extensions; do
17776  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17777    ac_cv_prog_ac_ct_CC="$ac_prog"
17778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17779    break 2
17780  fi
17781done
17782  done
17783IFS=$as_save_IFS
17784
17785fi
17786fi
17787ac_ct_CC=$ac_cv_prog_ac_ct_CC
17788if test -n "$ac_ct_CC"; then
17789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17790$as_echo "$ac_ct_CC" >&6; }
17791else
17792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17793$as_echo "no" >&6; }
17794fi
17795
17796
17797  test -n "$ac_ct_CC" && break
17798done
17799
17800  if test "x$ac_ct_CC" = x; then
17801    CC=""
17802  else
17803    case $cross_compiling:$ac_tool_warned in
17804yes:)
17805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17807ac_tool_warned=yes ;;
17808esac
17809    CC=$ac_ct_CC
17810  fi
17811fi
17812
17813fi
17814
17815
17816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17818as_fn_error $? "no acceptable C compiler found in \$PATH
17819See \`config.log' for more details" "$LINENO" 5; }
17820
17821# Provide some information about the compiler.
17822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
17823set X $ac_compile
17824ac_compiler=$2
17825for ac_option in --version -v -V -qversion; do
17826  { { ac_try="$ac_compiler $ac_option >&5"
17827case "(($ac_try" in
17828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829  *) ac_try_echo=$ac_try;;
17830esac
17831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17832$as_echo "$ac_try_echo"; } >&5
17833  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17834  ac_status=$?
17835  if test -s conftest.err; then
17836    sed '10a\
17837... rest of stderr output deleted ...
17838         10q' conftest.err >conftest.er1
17839    cat conftest.er1 >&5
17840  fi
17841  rm -f conftest.er1 conftest.err
17842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17843  test $ac_status = 0; }
17844done
17845
17846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
17847$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
17848if ${ac_cv_c_compiler_gnu+:} false; then :
17849  $as_echo_n "(cached) " >&6
17850else
17851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852/* end confdefs.h.  */
17853
17854int
17855main ()
17856{
17857#ifndef __GNUC__
17858       choke me
17859#endif
17860
17861  ;
17862  return 0;
17863}
17864_ACEOF
17865if ac_fn_c_try_compile "$LINENO"; then :
17866  ac_compiler_gnu=yes
17867else
17868  ac_compiler_gnu=no
17869fi
17870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871ac_cv_c_compiler_gnu=$ac_compiler_gnu
17872
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
17875$as_echo "$ac_cv_c_compiler_gnu" >&6; }
17876if test $ac_compiler_gnu = yes; then
17877  GCC=yes
17878else
17879  GCC=
17880fi
17881ac_test_CFLAGS=${CFLAGS+set}
17882ac_save_CFLAGS=$CFLAGS
17883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
17884$as_echo_n "checking whether $CC accepts -g... " >&6; }
17885if ${ac_cv_prog_cc_g+:} false; then :
17886  $as_echo_n "(cached) " >&6
17887else
17888  ac_save_c_werror_flag=$ac_c_werror_flag
17889   ac_c_werror_flag=yes
17890   ac_cv_prog_cc_g=no
17891   CFLAGS="-g"
17892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h.  */
17894
17895int
17896main ()
17897{
17898
17899  ;
17900  return 0;
17901}
17902_ACEOF
17903if ac_fn_c_try_compile "$LINENO"; then :
17904  ac_cv_prog_cc_g=yes
17905else
17906  CFLAGS=""
17907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908/* end confdefs.h.  */
17909
17910int
17911main ()
17912{
17913
17914  ;
17915  return 0;
17916}
17917_ACEOF
17918if ac_fn_c_try_compile "$LINENO"; then :
17919
17920else
17921  ac_c_werror_flag=$ac_save_c_werror_flag
17922	 CFLAGS="-g"
17923	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924/* end confdefs.h.  */
17925
17926int
17927main ()
17928{
17929
17930  ;
17931  return 0;
17932}
17933_ACEOF
17934if ac_fn_c_try_compile "$LINENO"; then :
17935  ac_cv_prog_cc_g=yes
17936fi
17937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17938fi
17939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17940fi
17941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17942   ac_c_werror_flag=$ac_save_c_werror_flag
17943fi
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17945$as_echo "$ac_cv_prog_cc_g" >&6; }
17946if test "$ac_test_CFLAGS" = set; then
17947  CFLAGS=$ac_save_CFLAGS
17948elif test $ac_cv_prog_cc_g = yes; then
17949  if test "$GCC" = yes; then
17950    CFLAGS="-g -O2"
17951  else
17952    CFLAGS="-g"
17953  fi
17954else
17955  if test "$GCC" = yes; then
17956    CFLAGS="-O2"
17957  else
17958    CFLAGS=
17959  fi
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
17962$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
17963if ${ac_cv_prog_cc_c89+:} false; then :
17964  $as_echo_n "(cached) " >&6
17965else
17966  ac_cv_prog_cc_c89=no
17967ac_save_CC=$CC
17968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969/* end confdefs.h.  */
17970#include <stdarg.h>
17971#include <stdio.h>
17972struct stat;
17973/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17974struct buf { int x; };
17975FILE * (*rcsopen) (struct buf *, struct stat *, int);
17976static char *e (p, i)
17977     char **p;
17978     int i;
17979{
17980  return p[i];
17981}
17982static char *f (char * (*g) (char **, int), char **p, ...)
17983{
17984  char *s;
17985  va_list v;
17986  va_start (v,p);
17987  s = g (p, va_arg (v,int));
17988  va_end (v);
17989  return s;
17990}
17991
17992/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17993   function prototypes and stuff, but not '\xHH' hex character constants.
17994   These don't provoke an error unfortunately, instead are silently treated
17995   as 'x'.  The following induces an error, until -std is added to get
17996   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17997   array size at least.  It's necessary to write '\x00'==0 to get something
17998   that's true only with -std.  */
17999int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18000
18001/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18002   inside strings and character constants.  */
18003#define FOO(x) 'x'
18004int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18005
18006int test (int i, double x);
18007struct s1 {int (*f) (int a);};
18008struct s2 {int (*f) (double a);};
18009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18010int argc;
18011char **argv;
18012int
18013main ()
18014{
18015return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18016  ;
18017  return 0;
18018}
18019_ACEOF
18020for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18021	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18022do
18023  CC="$ac_save_CC $ac_arg"
18024  if ac_fn_c_try_compile "$LINENO"; then :
18025  ac_cv_prog_cc_c89=$ac_arg
18026fi
18027rm -f core conftest.err conftest.$ac_objext
18028  test "x$ac_cv_prog_cc_c89" != "xno" && break
18029done
18030rm -f conftest.$ac_ext
18031CC=$ac_save_CC
18032
18033fi
18034# AC_CACHE_VAL
18035case "x$ac_cv_prog_cc_c89" in
18036  x)
18037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18038$as_echo "none needed" >&6; } ;;
18039  xno)
18040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18041$as_echo "unsupported" >&6; } ;;
18042  *)
18043    CC="$CC $ac_cv_prog_cc_c89"
18044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18045$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18046esac
18047if test "x$ac_cv_prog_cc_c89" != xno; then :
18048
18049fi
18050
18051ac_ext=c
18052ac_cpp='$CPP $CPPFLAGS'
18053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055ac_compiler_gnu=$ac_cv_c_compiler_gnu
18056
18057ac_ext=c
18058ac_cpp='$CPP $CPPFLAGS'
18059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18063$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18064if ${am_cv_prog_cc_c_o+:} false; then :
18065  $as_echo_n "(cached) " >&6
18066else
18067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068/* end confdefs.h.  */
18069
18070int
18071main ()
18072{
18073
18074  ;
18075  return 0;
18076}
18077_ACEOF
18078  # Make sure it works both with $CC and with simple cc.
18079  # Following AC_PROG_CC_C_O, we do the test twice because some
18080  # compilers refuse to overwrite an existing .o file with -o,
18081  # though they will create one.
18082  am_cv_prog_cc_c_o=yes
18083  for am_i in 1 2; do
18084    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18085   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18086   ac_status=$?
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } \
18089         && test -f conftest2.$ac_objext; then
18090      : OK
18091    else
18092      am_cv_prog_cc_c_o=no
18093      break
18094    fi
18095  done
18096  rm -f core conftest*
18097  unset am_i
18098fi
18099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18100$as_echo "$am_cv_prog_cc_c_o" >&6; }
18101if test "$am_cv_prog_cc_c_o" != yes; then
18102   # Losing compiler, so override with the script.
18103   # FIXME: It is wrong to rewrite CC.
18104   # But if we don't then we get into trouble of one sort or another.
18105   # A longer-term fix would be to have automake use am__CC in this case,
18106   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18107   CC="$am_aux_dir/compile $CC"
18108fi
18109ac_ext=c
18110ac_cpp='$CPP $CPPFLAGS'
18111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113ac_compiler_gnu=$ac_cv_c_compiler_gnu
18114
18115
18116depcc="$CC"   am_compiler_list=
18117
18118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18119$as_echo_n "checking dependency style of $depcc... " >&6; }
18120if ${am_cv_CC_dependencies_compiler_type+:} false; then :
18121  $as_echo_n "(cached) " >&6
18122else
18123  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18124  # We make a subdir and do the tests there.  Otherwise we can end up
18125  # making bogus files that we don't know about and never remove.  For
18126  # instance it was reported that on HP-UX the gcc test will end up
18127  # making a dummy file named 'D' -- because '-MD' means "put the output
18128  # in D".
18129  rm -rf conftest.dir
18130  mkdir conftest.dir
18131  # Copy depcomp to subdir because otherwise we won't find it if we're
18132  # using a relative directory.
18133  cp "$am_depcomp" conftest.dir
18134  cd conftest.dir
18135  # We will build objects and dependencies in a subdirectory because
18136  # it helps to detect inapplicable dependency modes.  For instance
18137  # both Tru64's cc and ICC support -MD to output dependencies as a
18138  # side effect of compilation, but ICC will put the dependencies in
18139  # the current directory while Tru64 will put them in the object
18140  # directory.
18141  mkdir sub
18142
18143  am_cv_CC_dependencies_compiler_type=none
18144  if test "$am_compiler_list" = ""; then
18145     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18146  fi
18147  am__universal=false
18148  case " $depcc " in #(
18149     *\ -arch\ *\ -arch\ *) am__universal=true ;;
18150     esac
18151
18152  for depmode in $am_compiler_list; do
18153    # Setup a source with many dependencies, because some compilers
18154    # like to wrap large dependency lists on column 80 (with \), and
18155    # we should not choose a depcomp mode which is confused by this.
18156    #
18157    # We need to recreate these files for each test, as the compiler may
18158    # overwrite some of them when testing with obscure command lines.
18159    # This happens at least with the AIX C compiler.
18160    : > sub/conftest.c
18161    for i in 1 2 3 4 5 6; do
18162      echo '#include "conftst'$i'.h"' >> sub/conftest.c
18163      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18164      # Solaris 10 /bin/sh.
18165      echo '/* dummy */' > sub/conftst$i.h
18166    done
18167    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18168
18169    # We check with '-c' and '-o' for the sake of the "dashmstdout"
18170    # mode.  It turns out that the SunPro C++ compiler does not properly
18171    # handle '-M -o', and we need to detect this.  Also, some Intel
18172    # versions had trouble with output in subdirs.
18173    am__obj=sub/conftest.${OBJEXT-o}
18174    am__minus_obj="-o $am__obj"
18175    case $depmode in
18176    gcc)
18177      # This depmode causes a compiler race in universal mode.
18178      test "$am__universal" = false || continue
18179      ;;
18180    nosideeffect)
18181      # After this tag, mechanisms are not by side-effect, so they'll
18182      # only be used when explicitly requested.
18183      if test "x$enable_dependency_tracking" = xyes; then
18184	continue
18185      else
18186	break
18187      fi
18188      ;;
18189    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18190      # This compiler won't grok '-c -o', but also, the minuso test has
18191      # not run yet.  These depmodes are late enough in the game, and
18192      # so weak that their functioning should not be impacted.
18193      am__obj=conftest.${OBJEXT-o}
18194      am__minus_obj=
18195      ;;
18196    none) break ;;
18197    esac
18198    if depmode=$depmode \
18199       source=sub/conftest.c object=$am__obj \
18200       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18201       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18202         >/dev/null 2>conftest.err &&
18203       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18204       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18205       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18206       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18207      # icc doesn't choke on unknown options, it will just issue warnings
18208      # or remarks (even with -Werror).  So we grep stderr for any message
18209      # that says an option was ignored or not supported.
18210      # When given -MP, icc 7.0 and 7.1 complain thusly:
18211      #   icc: Command line warning: ignoring option '-M'; no argument required
18212      # The diagnosis changed in icc 8.0:
18213      #   icc: Command line remark: option '-MP' not supported
18214      if (grep 'ignoring option' conftest.err ||
18215          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18216        am_cv_CC_dependencies_compiler_type=$depmode
18217        break
18218      fi
18219    fi
18220  done
18221
18222  cd ..
18223  rm -rf conftest.dir
18224else
18225  am_cv_CC_dependencies_compiler_type=none
18226fi
18227
18228fi
18229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18230$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18231CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18232
18233 if
18234  test "x$enable_dependency_tracking" != xno \
18235  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18236  am__fastdepCC_TRUE=
18237  am__fastdepCC_FALSE='#'
18238else
18239  am__fastdepCC_TRUE='#'
18240  am__fastdepCC_FALSE=
18241fi
18242
18243
18244   case $ac_cv_prog_cc_stdc in #(
18245  no) :
18246    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
18247  *) :
18248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
18249$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
18250if ${ac_cv_prog_cc_c99+:} false; then :
18251  $as_echo_n "(cached) " >&6
18252else
18253  ac_cv_prog_cc_c99=no
18254ac_save_CC=$CC
18255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256/* end confdefs.h.  */
18257#include <stdarg.h>
18258#include <stdbool.h>
18259#include <stdlib.h>
18260#include <wchar.h>
18261#include <stdio.h>
18262
18263// Check varargs macros.  These examples are taken from C99 6.10.3.5.
18264#define debug(...) fprintf (stderr, __VA_ARGS__)
18265#define showlist(...) puts (#__VA_ARGS__)
18266#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
18267static void
18268test_varargs_macros (void)
18269{
18270  int x = 1234;
18271  int y = 5678;
18272  debug ("Flag");
18273  debug ("X = %d\n", x);
18274  showlist (The first, second, and third items.);
18275  report (x>y, "x is %d but y is %d", x, y);
18276}
18277
18278// Check long long types.
18279#define BIG64 18446744073709551615ull
18280#define BIG32 4294967295ul
18281#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
18282#if !BIG_OK
18283  your preprocessor is broken;
18284#endif
18285#if BIG_OK
18286#else
18287  your preprocessor is broken;
18288#endif
18289static long long int bignum = -9223372036854775807LL;
18290static unsigned long long int ubignum = BIG64;
18291
18292struct incomplete_array
18293{
18294  int datasize;
18295  double data[];
18296};
18297
18298struct named_init {
18299  int number;
18300  const wchar_t *name;
18301  double average;
18302};
18303
18304typedef const char *ccp;
18305
18306static inline int
18307test_restrict (ccp restrict text)
18308{
18309  // See if C++-style comments work.
18310  // Iterate through items via the restricted pointer.
18311  // Also check for declarations in for loops.
18312  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
18313    continue;
18314  return 0;
18315}
18316
18317// Check varargs and va_copy.
18318static void
18319test_varargs (const char *format, ...)
18320{
18321  va_list args;
18322  va_start (args, format);
18323  va_list args_copy;
18324  va_copy (args_copy, args);
18325
18326  const char *str;
18327  int number;
18328  float fnumber;
18329
18330  while (*format)
18331    {
18332      switch (*format++)
18333	{
18334	case 's': // string
18335	  str = va_arg (args_copy, const char *);
18336	  break;
18337	case 'd': // int
18338	  number = va_arg (args_copy, int);
18339	  break;
18340	case 'f': // float
18341	  fnumber = va_arg (args_copy, double);
18342	  break;
18343	default:
18344	  break;
18345	}
18346    }
18347  va_end (args_copy);
18348  va_end (args);
18349}
18350
18351int
18352main ()
18353{
18354
18355  // Check bool.
18356  _Bool success = false;
18357
18358  // Check restrict.
18359  if (test_restrict ("String literal") == 0)
18360    success = true;
18361  char *restrict newvar = "Another string";
18362
18363  // Check varargs.
18364  test_varargs ("s, d' f .", "string", 65, 34.234);
18365  test_varargs_macros ();
18366
18367  // Check flexible array members.
18368  struct incomplete_array *ia =
18369    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
18370  ia->datasize = 10;
18371  for (int i = 0; i < ia->datasize; ++i)
18372    ia->data[i] = i * 1.234;
18373
18374  // Check named initializers.
18375  struct named_init ni = {
18376    .number = 34,
18377    .name = L"Test wide string",
18378    .average = 543.34343,
18379  };
18380
18381  ni.number = 58;
18382
18383  int dynamic_array[ni.number];
18384  dynamic_array[ni.number - 1] = 543;
18385
18386  // work around unused variable warnings
18387  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
18388	  || dynamic_array[ni.number - 1] != 543);
18389
18390  ;
18391  return 0;
18392}
18393_ACEOF
18394for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
18395do
18396  CC="$ac_save_CC $ac_arg"
18397  if ac_fn_c_try_compile "$LINENO"; then :
18398  ac_cv_prog_cc_c99=$ac_arg
18399fi
18400rm -f core conftest.err conftest.$ac_objext
18401  test "x$ac_cv_prog_cc_c99" != "xno" && break
18402done
18403rm -f conftest.$ac_ext
18404CC=$ac_save_CC
18405
18406fi
18407# AC_CACHE_VAL
18408case "x$ac_cv_prog_cc_c99" in
18409  x)
18410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18411$as_echo "none needed" >&6; } ;;
18412  xno)
18413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18414$as_echo "unsupported" >&6; } ;;
18415  *)
18416    CC="$CC $ac_cv_prog_cc_c99"
18417    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
18418$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
18419esac
18420if test "x$ac_cv_prog_cc_c99" != xno; then :
18421  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
18422else
18423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18424$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18425if ${ac_cv_prog_cc_c89+:} false; then :
18426  $as_echo_n "(cached) " >&6
18427else
18428  ac_cv_prog_cc_c89=no
18429ac_save_CC=$CC
18430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h.  */
18432#include <stdarg.h>
18433#include <stdio.h>
18434struct stat;
18435/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18436struct buf { int x; };
18437FILE * (*rcsopen) (struct buf *, struct stat *, int);
18438static char *e (p, i)
18439     char **p;
18440     int i;
18441{
18442  return p[i];
18443}
18444static char *f (char * (*g) (char **, int), char **p, ...)
18445{
18446  char *s;
18447  va_list v;
18448  va_start (v,p);
18449  s = g (p, va_arg (v,int));
18450  va_end (v);
18451  return s;
18452}
18453
18454/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
18455   function prototypes and stuff, but not '\xHH' hex character constants.
18456   These don't provoke an error unfortunately, instead are silently treated
18457   as 'x'.  The following induces an error, until -std is added to get
18458   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
18459   array size at least.  It's necessary to write '\x00'==0 to get something
18460   that's true only with -std.  */
18461int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18462
18463/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18464   inside strings and character constants.  */
18465#define FOO(x) 'x'
18466int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18467
18468int test (int i, double x);
18469struct s1 {int (*f) (int a);};
18470struct s2 {int (*f) (double a);};
18471int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18472int argc;
18473char **argv;
18474int
18475main ()
18476{
18477return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18478  ;
18479  return 0;
18480}
18481_ACEOF
18482for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18483	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18484do
18485  CC="$ac_save_CC $ac_arg"
18486  if ac_fn_c_try_compile "$LINENO"; then :
18487  ac_cv_prog_cc_c89=$ac_arg
18488fi
18489rm -f core conftest.err conftest.$ac_objext
18490  test "x$ac_cv_prog_cc_c89" != "xno" && break
18491done
18492rm -f conftest.$ac_ext
18493CC=$ac_save_CC
18494
18495fi
18496# AC_CACHE_VAL
18497case "x$ac_cv_prog_cc_c89" in
18498  x)
18499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18500$as_echo "none needed" >&6; } ;;
18501  xno)
18502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18503$as_echo "unsupported" >&6; } ;;
18504  *)
18505    CC="$CC $ac_cv_prog_cc_c89"
18506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18507$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18508esac
18509if test "x$ac_cv_prog_cc_c89" != xno; then :
18510  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
18511else
18512  ac_cv_prog_cc_stdc=no
18513fi
18514
18515fi
18516 ;;
18517esac
18518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
18519$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
18520  if ${ac_cv_prog_cc_stdc+:} false; then :
18521  $as_echo_n "(cached) " >&6
18522fi
18523
18524  case $ac_cv_prog_cc_stdc in #(
18525  no) :
18526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18527$as_echo "unsupported" >&6; } ;; #(
18528  '') :
18529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18530$as_echo "none needed" >&6; } ;; #(
18531  *) :
18532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
18533$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
18534esac
18535
18536
18537
18538
18539ac_ext=cpp
18540ac_cpp='$CXXCPP $CPPFLAGS'
18541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18544if test -z "$CXX"; then
18545  if test -n "$CCC"; then
18546    CXX=$CCC
18547  else
18548    if test -n "$ac_tool_prefix"; then
18549  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18550  do
18551    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18554$as_echo_n "checking for $ac_word... " >&6; }
18555if ${ac_cv_prog_CXX+:} false; then :
18556  $as_echo_n "(cached) " >&6
18557else
18558  if test -n "$CXX"; then
18559  ac_cv_prog_CXX="$CXX" # Let the user override the test.
18560else
18561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18562for as_dir in $PATH
18563do
18564  IFS=$as_save_IFS
18565  test -z "$as_dir" && as_dir=.
18566    for ac_exec_ext in '' $ac_executable_extensions; do
18567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18568    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18570    break 2
18571  fi
18572done
18573  done
18574IFS=$as_save_IFS
18575
18576fi
18577fi
18578CXX=$ac_cv_prog_CXX
18579if test -n "$CXX"; then
18580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18581$as_echo "$CXX" >&6; }
18582else
18583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18584$as_echo "no" >&6; }
18585fi
18586
18587
18588    test -n "$CXX" && break
18589  done
18590fi
18591if test -z "$CXX"; then
18592  ac_ct_CXX=$CXX
18593  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18594do
18595  # Extract the first word of "$ac_prog", so it can be a program name with args.
18596set dummy $ac_prog; ac_word=$2
18597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18598$as_echo_n "checking for $ac_word... " >&6; }
18599if ${ac_cv_prog_ac_ct_CXX+:} false; then :
18600  $as_echo_n "(cached) " >&6
18601else
18602  if test -n "$ac_ct_CXX"; then
18603  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18604else
18605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18606for as_dir in $PATH
18607do
18608  IFS=$as_save_IFS
18609  test -z "$as_dir" && as_dir=.
18610    for ac_exec_ext in '' $ac_executable_extensions; do
18611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18612    ac_cv_prog_ac_ct_CXX="$ac_prog"
18613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18614    break 2
18615  fi
18616done
18617  done
18618IFS=$as_save_IFS
18619
18620fi
18621fi
18622ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18623if test -n "$ac_ct_CXX"; then
18624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18625$as_echo "$ac_ct_CXX" >&6; }
18626else
18627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18628$as_echo "no" >&6; }
18629fi
18630
18631
18632  test -n "$ac_ct_CXX" && break
18633done
18634
18635  if test "x$ac_ct_CXX" = x; then
18636    CXX="g++"
18637  else
18638    case $cross_compiling:$ac_tool_warned in
18639yes:)
18640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18642ac_tool_warned=yes ;;
18643esac
18644    CXX=$ac_ct_CXX
18645  fi
18646fi
18647
18648  fi
18649fi
18650# Provide some information about the compiler.
18651$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18652set X $ac_compile
18653ac_compiler=$2
18654for ac_option in --version -v -V -qversion; do
18655  { { ac_try="$ac_compiler $ac_option >&5"
18656case "(($ac_try" in
18657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658  *) ac_try_echo=$ac_try;;
18659esac
18660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18661$as_echo "$ac_try_echo"; } >&5
18662  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18663  ac_status=$?
18664  if test -s conftest.err; then
18665    sed '10a\
18666... rest of stderr output deleted ...
18667         10q' conftest.err >conftest.er1
18668    cat conftest.er1 >&5
18669  fi
18670  rm -f conftest.er1 conftest.err
18671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672  test $ac_status = 0; }
18673done
18674
18675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
18676$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
18677if ${ac_cv_cxx_compiler_gnu+:} false; then :
18678  $as_echo_n "(cached) " >&6
18679else
18680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681/* end confdefs.h.  */
18682
18683int
18684main ()
18685{
18686#ifndef __GNUC__
18687       choke me
18688#endif
18689
18690  ;
18691  return 0;
18692}
18693_ACEOF
18694if ac_fn_cxx_try_compile "$LINENO"; then :
18695  ac_compiler_gnu=yes
18696else
18697  ac_compiler_gnu=no
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18700ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18701
18702fi
18703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
18704$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
18705if test $ac_compiler_gnu = yes; then
18706  GXX=yes
18707else
18708  GXX=
18709fi
18710ac_test_CXXFLAGS=${CXXFLAGS+set}
18711ac_save_CXXFLAGS=$CXXFLAGS
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
18713$as_echo_n "checking whether $CXX accepts -g... " >&6; }
18714if ${ac_cv_prog_cxx_g+:} false; then :
18715  $as_echo_n "(cached) " >&6
18716else
18717  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18718   ac_cxx_werror_flag=yes
18719   ac_cv_prog_cxx_g=no
18720   CXXFLAGS="-g"
18721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722/* end confdefs.h.  */
18723
18724int
18725main ()
18726{
18727
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_cxx_try_compile "$LINENO"; then :
18733  ac_cv_prog_cxx_g=yes
18734else
18735  CXXFLAGS=""
18736      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737/* end confdefs.h.  */
18738
18739int
18740main ()
18741{
18742
18743  ;
18744  return 0;
18745}
18746_ACEOF
18747if ac_fn_cxx_try_compile "$LINENO"; then :
18748
18749else
18750  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18751	 CXXFLAGS="-g"
18752	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753/* end confdefs.h.  */
18754
18755int
18756main ()
18757{
18758
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763if ac_fn_cxx_try_compile "$LINENO"; then :
18764  ac_cv_prog_cxx_g=yes
18765fi
18766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767fi
18768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769fi
18770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18771   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18772fi
18773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
18774$as_echo "$ac_cv_prog_cxx_g" >&6; }
18775if test "$ac_test_CXXFLAGS" = set; then
18776  CXXFLAGS=$ac_save_CXXFLAGS
18777elif test $ac_cv_prog_cxx_g = yes; then
18778  if test "$GXX" = yes; then
18779    CXXFLAGS="-g -O2"
18780  else
18781    CXXFLAGS="-g"
18782  fi
18783else
18784  if test "$GXX" = yes; then
18785    CXXFLAGS="-O2"
18786  else
18787    CXXFLAGS=
18788  fi
18789fi
18790ac_ext=c
18791ac_cpp='$CPP $CPPFLAGS'
18792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794ac_compiler_gnu=$ac_cv_c_compiler_gnu
18795
18796depcc="$CXX"  am_compiler_list=
18797
18798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18799$as_echo_n "checking dependency style of $depcc... " >&6; }
18800if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
18801  $as_echo_n "(cached) " >&6
18802else
18803  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18804  # We make a subdir and do the tests there.  Otherwise we can end up
18805  # making bogus files that we don't know about and never remove.  For
18806  # instance it was reported that on HP-UX the gcc test will end up
18807  # making a dummy file named 'D' -- because '-MD' means "put the output
18808  # in D".
18809  rm -rf conftest.dir
18810  mkdir conftest.dir
18811  # Copy depcomp to subdir because otherwise we won't find it if we're
18812  # using a relative directory.
18813  cp "$am_depcomp" conftest.dir
18814  cd conftest.dir
18815  # We will build objects and dependencies in a subdirectory because
18816  # it helps to detect inapplicable dependency modes.  For instance
18817  # both Tru64's cc and ICC support -MD to output dependencies as a
18818  # side effect of compilation, but ICC will put the dependencies in
18819  # the current directory while Tru64 will put them in the object
18820  # directory.
18821  mkdir sub
18822
18823  am_cv_CXX_dependencies_compiler_type=none
18824  if test "$am_compiler_list" = ""; then
18825     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18826  fi
18827  am__universal=false
18828  case " $depcc " in #(
18829     *\ -arch\ *\ -arch\ *) am__universal=true ;;
18830     esac
18831
18832  for depmode in $am_compiler_list; do
18833    # Setup a source with many dependencies, because some compilers
18834    # like to wrap large dependency lists on column 80 (with \), and
18835    # we should not choose a depcomp mode which is confused by this.
18836    #
18837    # We need to recreate these files for each test, as the compiler may
18838    # overwrite some of them when testing with obscure command lines.
18839    # This happens at least with the AIX C compiler.
18840    : > sub/conftest.c
18841    for i in 1 2 3 4 5 6; do
18842      echo '#include "conftst'$i'.h"' >> sub/conftest.c
18843      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
18844      # Solaris 10 /bin/sh.
18845      echo '/* dummy */' > sub/conftst$i.h
18846    done
18847    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18848
18849    # We check with '-c' and '-o' for the sake of the "dashmstdout"
18850    # mode.  It turns out that the SunPro C++ compiler does not properly
18851    # handle '-M -o', and we need to detect this.  Also, some Intel
18852    # versions had trouble with output in subdirs.
18853    am__obj=sub/conftest.${OBJEXT-o}
18854    am__minus_obj="-o $am__obj"
18855    case $depmode in
18856    gcc)
18857      # This depmode causes a compiler race in universal mode.
18858      test "$am__universal" = false || continue
18859      ;;
18860    nosideeffect)
18861      # After this tag, mechanisms are not by side-effect, so they'll
18862      # only be used when explicitly requested.
18863      if test "x$enable_dependency_tracking" = xyes; then
18864	continue
18865      else
18866	break
18867      fi
18868      ;;
18869    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
18870      # This compiler won't grok '-c -o', but also, the minuso test has
18871      # not run yet.  These depmodes are late enough in the game, and
18872      # so weak that their functioning should not be impacted.
18873      am__obj=conftest.${OBJEXT-o}
18874      am__minus_obj=
18875      ;;
18876    none) break ;;
18877    esac
18878    if depmode=$depmode \
18879       source=sub/conftest.c object=$am__obj \
18880       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18881       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18882         >/dev/null 2>conftest.err &&
18883       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18884       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18885       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18886       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18887      # icc doesn't choke on unknown options, it will just issue warnings
18888      # or remarks (even with -Werror).  So we grep stderr for any message
18889      # that says an option was ignored or not supported.
18890      # When given -MP, icc 7.0 and 7.1 complain thusly:
18891      #   icc: Command line warning: ignoring option '-M'; no argument required
18892      # The diagnosis changed in icc 8.0:
18893      #   icc: Command line remark: option '-MP' not supported
18894      if (grep 'ignoring option' conftest.err ||
18895          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18896        am_cv_CXX_dependencies_compiler_type=$depmode
18897        break
18898      fi
18899    fi
18900  done
18901
18902  cd ..
18903  rm -rf conftest.dir
18904else
18905  am_cv_CXX_dependencies_compiler_type=none
18906fi
18907
18908fi
18909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
18910$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
18911CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
18912
18913 if
18914  test "x$enable_dependency_tracking" != xno \
18915  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
18916  am__fastdepCXX_TRUE=
18917  am__fastdepCXX_FALSE='#'
18918else
18919  am__fastdepCXX_TRUE='#'
18920  am__fastdepCXX_FALSE=
18921fi
18922
18923
18924
18925
18926func_stripname_cnf ()
18927{
18928  case $2 in
18929  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
18930  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
18931  esac
18932} # func_stripname_cnf
18933
18934      if test -n "$CXX" && ( test no != "$CXX" &&
18935    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18936    (test g++ != "$CXX"))); then
18937  ac_ext=cpp
18938ac_cpp='$CXXCPP $CPPFLAGS'
18939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18943$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18944if test -z "$CXXCPP"; then
18945  if ${ac_cv_prog_CXXCPP+:} false; then :
18946  $as_echo_n "(cached) " >&6
18947else
18948      # Double quotes because CXXCPP needs to be expanded
18949    for CXXCPP in "$CXX -E" "/lib/cpp"
18950    do
18951      ac_preproc_ok=false
18952for ac_cxx_preproc_warn_flag in '' yes
18953do
18954  # Use a header file that comes with gcc, so configuring glibc
18955  # with a fresh cross-compiler works.
18956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957  # <limits.h> exists even on freestanding compilers.
18958  # On the NeXT, cc -E runs the code through the compiler's parser,
18959  # not just through cpp. "Syntax error" is here to catch this case.
18960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961/* end confdefs.h.  */
18962#ifdef __STDC__
18963# include <limits.h>
18964#else
18965# include <assert.h>
18966#endif
18967		     Syntax error
18968_ACEOF
18969if ac_fn_cxx_try_cpp "$LINENO"; then :
18970
18971else
18972  # Broken: fails on valid input.
18973continue
18974fi
18975rm -f conftest.err conftest.i conftest.$ac_ext
18976
18977  # OK, works on sane cases.  Now check whether nonexistent headers
18978  # can be detected and how.
18979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980/* end confdefs.h.  */
18981#include <ac_nonexistent.h>
18982_ACEOF
18983if ac_fn_cxx_try_cpp "$LINENO"; then :
18984  # Broken: success on invalid input.
18985continue
18986else
18987  # Passes both tests.
18988ac_preproc_ok=:
18989break
18990fi
18991rm -f conftest.err conftest.i conftest.$ac_ext
18992
18993done
18994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18995rm -f conftest.i conftest.err conftest.$ac_ext
18996if $ac_preproc_ok; then :
18997  break
18998fi
18999
19000    done
19001    ac_cv_prog_CXXCPP=$CXXCPP
19002
19003fi
19004  CXXCPP=$ac_cv_prog_CXXCPP
19005else
19006  ac_cv_prog_CXXCPP=$CXXCPP
19007fi
19008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19009$as_echo "$CXXCPP" >&6; }
19010ac_preproc_ok=false
19011for ac_cxx_preproc_warn_flag in '' yes
19012do
19013  # Use a header file that comes with gcc, so configuring glibc
19014  # with a fresh cross-compiler works.
19015  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19016  # <limits.h> exists even on freestanding compilers.
19017  # On the NeXT, cc -E runs the code through the compiler's parser,
19018  # not just through cpp. "Syntax error" is here to catch this case.
19019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020/* end confdefs.h.  */
19021#ifdef __STDC__
19022# include <limits.h>
19023#else
19024# include <assert.h>
19025#endif
19026		     Syntax error
19027_ACEOF
19028if ac_fn_cxx_try_cpp "$LINENO"; then :
19029
19030else
19031  # Broken: fails on valid input.
19032continue
19033fi
19034rm -f conftest.err conftest.i conftest.$ac_ext
19035
19036  # OK, works on sane cases.  Now check whether nonexistent headers
19037  # can be detected and how.
19038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039/* end confdefs.h.  */
19040#include <ac_nonexistent.h>
19041_ACEOF
19042if ac_fn_cxx_try_cpp "$LINENO"; then :
19043  # Broken: success on invalid input.
19044continue
19045else
19046  # Passes both tests.
19047ac_preproc_ok=:
19048break
19049fi
19050rm -f conftest.err conftest.i conftest.$ac_ext
19051
19052done
19053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19054rm -f conftest.i conftest.err conftest.$ac_ext
19055if $ac_preproc_ok; then :
19056
19057else
19058  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19060as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19061See \`config.log' for more details" "$LINENO" 5; }
19062fi
19063
19064ac_ext=c
19065ac_cpp='$CPP $CPPFLAGS'
19066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19068ac_compiler_gnu=$ac_cv_c_compiler_gnu
19069
19070else
19071  _lt_caught_CXX_error=yes
19072fi
19073
19074ac_ext=cpp
19075ac_cpp='$CXXCPP $CPPFLAGS'
19076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19079
19080archive_cmds_need_lc_CXX=no
19081allow_undefined_flag_CXX=
19082always_export_symbols_CXX=no
19083archive_expsym_cmds_CXX=
19084compiler_needs_object_CXX=no
19085export_dynamic_flag_spec_CXX=
19086hardcode_direct_CXX=no
19087hardcode_direct_absolute_CXX=no
19088hardcode_libdir_flag_spec_CXX=
19089hardcode_libdir_separator_CXX=
19090hardcode_minus_L_CXX=no
19091hardcode_shlibpath_var_CXX=unsupported
19092hardcode_automatic_CXX=no
19093inherit_rpath_CXX=no
19094module_cmds_CXX=
19095module_expsym_cmds_CXX=
19096link_all_deplibs_CXX=unknown
19097old_archive_cmds_CXX=$old_archive_cmds
19098reload_flag_CXX=$reload_flag
19099reload_cmds_CXX=$reload_cmds
19100no_undefined_flag_CXX=
19101whole_archive_flag_spec_CXX=
19102enable_shared_with_static_runtimes_CXX=no
19103
19104# Source file extension for C++ test sources.
19105ac_ext=cpp
19106
19107# Object file extension for compiled C++ test sources.
19108objext=o
19109objext_CXX=$objext
19110
19111# No sense in running all these tests if we already determined that
19112# the CXX compiler isn't working.  Some variables (like enable_shared)
19113# are currently assumed to apply to all compilers on this platform,
19114# and will be corrupted by setting them based on a non-working compiler.
19115if test yes != "$_lt_caught_CXX_error"; then
19116  # Code to be used in simple compile tests
19117  lt_simple_compile_test_code="int some_variable = 0;"
19118
19119  # Code to be used in simple link tests
19120  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19121
19122  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19123
19124
19125
19126
19127
19128
19129# If no C compiler was specified, use CC.
19130LTCC=${LTCC-"$CC"}
19131
19132# If no C compiler flags were specified, use CFLAGS.
19133LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19134
19135# Allow CC to be a program name with arguments.
19136compiler=$CC
19137
19138
19139  # save warnings/boilerplate of simple test code
19140  ac_outfile=conftest.$ac_objext
19141echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19142eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19143_lt_compiler_boilerplate=`cat conftest.err`
19144$RM conftest*
19145
19146  ac_outfile=conftest.$ac_objext
19147echo "$lt_simple_link_test_code" >conftest.$ac_ext
19148eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19149_lt_linker_boilerplate=`cat conftest.err`
19150$RM -r conftest*
19151
19152
19153  # Allow CC to be a program name with arguments.
19154  lt_save_CC=$CC
19155  lt_save_CFLAGS=$CFLAGS
19156  lt_save_LD=$LD
19157  lt_save_GCC=$GCC
19158  GCC=$GXX
19159  lt_save_with_gnu_ld=$with_gnu_ld
19160  lt_save_path_LD=$lt_cv_path_LD
19161  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19162    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19163  else
19164    $as_unset lt_cv_prog_gnu_ld
19165  fi
19166  if test -n "${lt_cv_path_LDCXX+set}"; then
19167    lt_cv_path_LD=$lt_cv_path_LDCXX
19168  else
19169    $as_unset lt_cv_path_LD
19170  fi
19171  test -z "${LDCXX+set}" || LD=$LDCXX
19172  CC=${CXX-"c++"}
19173  CFLAGS=$CXXFLAGS
19174  compiler=$CC
19175  compiler_CXX=$CC
19176  func_cc_basename $compiler
19177cc_basename=$func_cc_basename_result
19178
19179
19180  if test -n "$compiler"; then
19181    # We don't want -fno-exception when compiling C++ code, so set the
19182    # no_builtin_flag separately
19183    if test yes = "$GXX"; then
19184      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19185    else
19186      lt_prog_compiler_no_builtin_flag_CXX=
19187    fi
19188
19189    if test yes = "$GXX"; then
19190      # Set up default GNU C++ configuration
19191
19192
19193
19194# Check whether --with-gnu-ld was given.
19195if test "${with_gnu_ld+set}" = set; then :
19196  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19197else
19198  with_gnu_ld=no
19199fi
19200
19201ac_prog=ld
19202if test yes = "$GCC"; then
19203  # Check if gcc -print-prog-name=ld gives a path.
19204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19205$as_echo_n "checking for ld used by $CC... " >&6; }
19206  case $host in
19207  *-*-mingw*)
19208    # gcc leaves a trailing carriage return, which upsets mingw
19209    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19210  *)
19211    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19212  esac
19213  case $ac_prog in
19214    # Accept absolute paths.
19215    [\\/]* | ?:[\\/]*)
19216      re_direlt='/[^/][^/]*/\.\./'
19217      # Canonicalize the pathname of ld
19218      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19219      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19220	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19221      done
19222      test -z "$LD" && LD=$ac_prog
19223      ;;
19224  "")
19225    # If it fails, then pretend we aren't using GCC.
19226    ac_prog=ld
19227    ;;
19228  *)
19229    # If it is relative, then search for the first ld in PATH.
19230    with_gnu_ld=unknown
19231    ;;
19232  esac
19233elif test yes = "$with_gnu_ld"; then
19234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19235$as_echo_n "checking for GNU ld... " >&6; }
19236else
19237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19238$as_echo_n "checking for non-GNU ld... " >&6; }
19239fi
19240if ${lt_cv_path_LD+:} false; then :
19241  $as_echo_n "(cached) " >&6
19242else
19243  if test -z "$LD"; then
19244  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19245  for ac_dir in $PATH; do
19246    IFS=$lt_save_ifs
19247    test -z "$ac_dir" && ac_dir=.
19248    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19249      lt_cv_path_LD=$ac_dir/$ac_prog
19250      # Check to see if the program is GNU ld.  I'd rather use --version,
19251      # but apparently some variants of GNU ld only accept -v.
19252      # Break only if it was the GNU/non-GNU ld that we prefer.
19253      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19254      *GNU* | *'with BFD'*)
19255	test no != "$with_gnu_ld" && break
19256	;;
19257      *)
19258	test yes != "$with_gnu_ld" && break
19259	;;
19260      esac
19261    fi
19262  done
19263  IFS=$lt_save_ifs
19264else
19265  lt_cv_path_LD=$LD # Let the user override the test with a path.
19266fi
19267fi
19268
19269LD=$lt_cv_path_LD
19270if test -n "$LD"; then
19271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19272$as_echo "$LD" >&6; }
19273else
19274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275$as_echo "no" >&6; }
19276fi
19277test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19279$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19280if ${lt_cv_prog_gnu_ld+:} false; then :
19281  $as_echo_n "(cached) " >&6
19282else
19283  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19284case `$LD -v 2>&1 </dev/null` in
19285*GNU* | *'with BFD'*)
19286  lt_cv_prog_gnu_ld=yes
19287  ;;
19288*)
19289  lt_cv_prog_gnu_ld=no
19290  ;;
19291esac
19292fi
19293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19294$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19295with_gnu_ld=$lt_cv_prog_gnu_ld
19296
19297
19298
19299
19300
19301
19302
19303      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19304      # archiving commands below assume that GNU ld is being used.
19305      if test yes = "$with_gnu_ld"; then
19306        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19307        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'
19308
19309        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19310        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19311
19312        # If archive_cmds runs LD, not CC, wlarc should be empty
19313        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19314        #     investigate it a little bit more. (MM)
19315        wlarc='$wl'
19316
19317        # ancient GNU ld didn't support --whole-archive et. al.
19318        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19319	  $GREP 'no-whole-archive' > /dev/null; then
19320          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19321        else
19322          whole_archive_flag_spec_CXX=
19323        fi
19324      else
19325        with_gnu_ld=no
19326        wlarc=
19327
19328        # A generic and very simple default shared library creation
19329        # command for GNU C++ for the case where it uses the native
19330        # linker, instead of GNU ld.  If possible, this setting should
19331        # overridden to take advantage of the native linker features on
19332        # the platform it is being used on.
19333        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19334      fi
19335
19336      # Commands to make compiler produce verbose output that lists
19337      # what "hidden" libraries, object files and flags are used when
19338      # linking a shared library.
19339      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
19340
19341    else
19342      GXX=no
19343      with_gnu_ld=no
19344      wlarc=
19345    fi
19346
19347    # PORTME: fill in a description of your system's C++ link characteristics
19348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19349$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19350    ld_shlibs_CXX=yes
19351    case $host_os in
19352      aix3*)
19353        # FIXME: insert proper C++ library support
19354        ld_shlibs_CXX=no
19355        ;;
19356      aix[4-9]*)
19357        if test ia64 = "$host_cpu"; then
19358          # On IA64, the linker does run time linking by default, so we don't
19359          # have to do anything special.
19360          aix_use_runtimelinking=no
19361          exp_sym_flag='-Bexport'
19362          no_entry_flag=
19363        else
19364          aix_use_runtimelinking=no
19365
19366          # Test if we are trying to use run time linking or normal
19367          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19368          # have runtime linking enabled, and use it for executables.
19369          # For shared libraries, we enable/disable runtime linking
19370          # depending on the kind of the shared library created -
19371          # when "with_aix_soname,aix_use_runtimelinking" is:
19372          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19373          # "aix,yes"  lib.so          shared, rtl:yes, for executables
19374          #            lib.a           static archive
19375          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
19376          #            lib.a(lib.so.V) shared, rtl:no,  for executables
19377          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19378          #            lib.a(lib.so.V) shared, rtl:no
19379          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19380          #            lib.a           static archive
19381          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19382	    for ld_flag in $LDFLAGS; do
19383	      case $ld_flag in
19384	      *-brtl*)
19385	        aix_use_runtimelinking=yes
19386	        break
19387	        ;;
19388	      esac
19389	    done
19390	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19391	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
19392	      # so we don't have lib.a shared libs to link our executables.
19393	      # We have to force runtime linking in this case.
19394	      aix_use_runtimelinking=yes
19395	      LDFLAGS="$LDFLAGS -Wl,-brtl"
19396	    fi
19397	    ;;
19398          esac
19399
19400          exp_sym_flag='-bexport'
19401          no_entry_flag='-bnoentry'
19402        fi
19403
19404        # When large executables or shared objects are built, AIX ld can
19405        # have problems creating the table of contents.  If linking a library
19406        # or program results in "error TOC overflow" add -mminimal-toc to
19407        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19408        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19409
19410        archive_cmds_CXX=''
19411        hardcode_direct_CXX=yes
19412        hardcode_direct_absolute_CXX=yes
19413        hardcode_libdir_separator_CXX=':'
19414        link_all_deplibs_CXX=yes
19415        file_list_spec_CXX='$wl-f,'
19416        case $with_aix_soname,$aix_use_runtimelinking in
19417        aix,*) ;;	# no import file
19418        svr4,* | *,yes) # use import file
19419          # The Import File defines what to hardcode.
19420          hardcode_direct_CXX=no
19421          hardcode_direct_absolute_CXX=no
19422          ;;
19423        esac
19424
19425        if test yes = "$GXX"; then
19426          case $host_os in aix4.[012]|aix4.[012].*)
19427          # We only want to do this on AIX 4.2 and lower, the check
19428          # below for broken collect2 doesn't work under 4.3+
19429	  collect2name=`$CC -print-prog-name=collect2`
19430	  if test -f "$collect2name" &&
19431	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19432	  then
19433	    # We have reworked collect2
19434	    :
19435	  else
19436	    # We have old collect2
19437	    hardcode_direct_CXX=unsupported
19438	    # It fails to find uninstalled libraries when the uninstalled
19439	    # path is not listed in the libpath.  Setting hardcode_minus_L
19440	    # to unsupported forces relinking
19441	    hardcode_minus_L_CXX=yes
19442	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19443	    hardcode_libdir_separator_CXX=
19444	  fi
19445          esac
19446          shared_flag='-shared'
19447	  if test yes = "$aix_use_runtimelinking"; then
19448	    shared_flag=$shared_flag' $wl-G'
19449	  fi
19450	  # Need to ensure runtime linking is disabled for the traditional
19451	  # shared library, or the linker may eventually find shared libraries
19452	  # /with/ Import File - we do not want to mix them.
19453	  shared_flag_aix='-shared'
19454	  shared_flag_svr4='-shared $wl-G'
19455        else
19456          # not using gcc
19457          if test ia64 = "$host_cpu"; then
19458	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19459	  # chokes on -Wl,-G. The following line is correct:
19460	  shared_flag='-G'
19461          else
19462	    if test yes = "$aix_use_runtimelinking"; then
19463	      shared_flag='$wl-G'
19464	    else
19465	      shared_flag='$wl-bM:SRE'
19466	    fi
19467	    shared_flag_aix='$wl-bM:SRE'
19468	    shared_flag_svr4='$wl-G'
19469          fi
19470        fi
19471
19472        export_dynamic_flag_spec_CXX='$wl-bexpall'
19473        # It seems that -bexpall does not export symbols beginning with
19474        # underscore (_), so it is better to generate a list of symbols to
19475	# export.
19476        always_export_symbols_CXX=yes
19477	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19478          # Warning - without using the other runtime loading flags (-brtl),
19479          # -berok will link without error, but may produce a broken library.
19480          # The "-G" linker flag allows undefined symbols.
19481          no_undefined_flag_CXX='-bernotok'
19482          # Determine the default libpath from the value encoded in an empty
19483          # executable.
19484          if test set = "${lt_cv_aix_libpath+set}"; then
19485  aix_libpath=$lt_cv_aix_libpath
19486else
19487  if ${lt_cv_aix_libpath__CXX+:} false; then :
19488  $as_echo_n "(cached) " >&6
19489else
19490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491/* end confdefs.h.  */
19492
19493int
19494main ()
19495{
19496
19497  ;
19498  return 0;
19499}
19500_ACEOF
19501if ac_fn_cxx_try_link "$LINENO"; then :
19502
19503  lt_aix_libpath_sed='
19504      /Import File Strings/,/^$/ {
19505	  /^0/ {
19506	      s/^0  *\([^ ]*\) *$/\1/
19507	      p
19508	  }
19509      }'
19510  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19511  # Check for a 64-bit object if we didn't find anything.
19512  if test -z "$lt_cv_aix_libpath__CXX"; then
19513    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19514  fi
19515fi
19516rm -f core conftest.err conftest.$ac_objext \
19517    conftest$ac_exeext conftest.$ac_ext
19518  if test -z "$lt_cv_aix_libpath__CXX"; then
19519    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19520  fi
19521
19522fi
19523
19524  aix_libpath=$lt_cv_aix_libpath__CXX
19525fi
19526
19527          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19528
19529          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
19530        else
19531          if test ia64 = "$host_cpu"; then
19532	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19533	    allow_undefined_flag_CXX="-z nodefs"
19534	    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"
19535          else
19536	    # Determine the default libpath from the value encoded in an
19537	    # empty executable.
19538	    if test set = "${lt_cv_aix_libpath+set}"; then
19539  aix_libpath=$lt_cv_aix_libpath
19540else
19541  if ${lt_cv_aix_libpath__CXX+:} false; then :
19542  $as_echo_n "(cached) " >&6
19543else
19544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545/* end confdefs.h.  */
19546
19547int
19548main ()
19549{
19550
19551  ;
19552  return 0;
19553}
19554_ACEOF
19555if ac_fn_cxx_try_link "$LINENO"; then :
19556
19557  lt_aix_libpath_sed='
19558      /Import File Strings/,/^$/ {
19559	  /^0/ {
19560	      s/^0  *\([^ ]*\) *$/\1/
19561	      p
19562	  }
19563      }'
19564  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19565  # Check for a 64-bit object if we didn't find anything.
19566  if test -z "$lt_cv_aix_libpath__CXX"; then
19567    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19568  fi
19569fi
19570rm -f core conftest.err conftest.$ac_objext \
19571    conftest$ac_exeext conftest.$ac_ext
19572  if test -z "$lt_cv_aix_libpath__CXX"; then
19573    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19574  fi
19575
19576fi
19577
19578  aix_libpath=$lt_cv_aix_libpath__CXX
19579fi
19580
19581	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19582	    # Warning - without using the other run time loading flags,
19583	    # -berok will link without error, but may produce a broken library.
19584	    no_undefined_flag_CXX=' $wl-bernotok'
19585	    allow_undefined_flag_CXX=' $wl-berok'
19586	    if test yes = "$with_gnu_ld"; then
19587	      # We only use this code for GNU lds that support --whole-archive.
19588	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19589	    else
19590	      # Exported symbols can be pulled into shared objects from archives
19591	      whole_archive_flag_spec_CXX='$convenience'
19592	    fi
19593	    archive_cmds_need_lc_CXX=yes
19594	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19595	    # -brtl affects multiple linker settings, -berok does not and is overridden later
19596	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19597	    if test svr4 != "$with_aix_soname"; then
19598	      # This is similar to how AIX traditionally builds its shared
19599	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19600	      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'
19601	    fi
19602	    if test aix != "$with_aix_soname"; then
19603	      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'
19604	    else
19605	      # used by -dlpreopen to get the symbols
19606	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19607	    fi
19608	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19609          fi
19610        fi
19611        ;;
19612
19613      beos*)
19614	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19615	  allow_undefined_flag_CXX=unsupported
19616	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19617	  # support --undefined.  This deserves some investigation.  FIXME
19618	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19619	else
19620	  ld_shlibs_CXX=no
19621	fi
19622	;;
19623
19624      chorus*)
19625        case $cc_basename in
19626          *)
19627	  # FIXME: insert proper C++ library support
19628	  ld_shlibs_CXX=no
19629	  ;;
19630        esac
19631        ;;
19632
19633      cygwin* | mingw* | pw32* | cegcc*)
19634	case $GXX,$cc_basename in
19635	,cl* | no,cl*)
19636	  # Native MSVC
19637	  # hardcode_libdir_flag_spec is actually meaningless, as there is
19638	  # no search path for DLLs.
19639	  hardcode_libdir_flag_spec_CXX=' '
19640	  allow_undefined_flag_CXX=unsupported
19641	  always_export_symbols_CXX=yes
19642	  file_list_spec_CXX='@'
19643	  # Tell ltmain to make .lib files, not .a files.
19644	  libext=lib
19645	  # Tell ltmain to make .dll files, not .so files.
19646	  shrext_cmds=.dll
19647	  # FIXME: Setting linknames here is a bad hack.
19648	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19649	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19650              cp "$export_symbols" "$output_objdir/$soname.def";
19651              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19652            else
19653              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19654            fi~
19655            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19656            linknames='
19657	  # The linker will not automatically build a static lib if we build a DLL.
19658	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19659	  enable_shared_with_static_runtimes_CXX=yes
19660	  # Don't use ranlib
19661	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
19662	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19663            lt_tool_outputfile="@TOOL_OUTPUT@"~
19664            case $lt_outputfile in
19665              *.exe|*.EXE) ;;
19666              *)
19667                lt_outputfile=$lt_outputfile.exe
19668                lt_tool_outputfile=$lt_tool_outputfile.exe
19669                ;;
19670            esac~
19671            func_to_tool_file "$lt_outputfile"~
19672            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19673              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19674              $RM "$lt_outputfile.manifest";
19675            fi'
19676	  ;;
19677	*)
19678	  # g++
19679	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19680	  # as there is no search path for DLLs.
19681	  hardcode_libdir_flag_spec_CXX='-L$libdir'
19682	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19683	  allow_undefined_flag_CXX=unsupported
19684	  always_export_symbols_CXX=no
19685	  enable_shared_with_static_runtimes_CXX=yes
19686
19687	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19688	    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'
19689	    # If the export-symbols file already is a .def file, use it as
19690	    # is; otherwise, prepend EXPORTS...
19691	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19692              cp $export_symbols $output_objdir/$soname.def;
19693            else
19694              echo EXPORTS > $output_objdir/$soname.def;
19695              cat $export_symbols >> $output_objdir/$soname.def;
19696            fi~
19697            $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'
19698	  else
19699	    ld_shlibs_CXX=no
19700	  fi
19701	  ;;
19702	esac
19703	;;
19704      darwin* | rhapsody*)
19705
19706
19707  archive_cmds_need_lc_CXX=no
19708  hardcode_direct_CXX=no
19709  hardcode_automatic_CXX=yes
19710  hardcode_shlibpath_var_CXX=unsupported
19711  if test yes = "$lt_cv_ld_force_load"; then
19712    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\"`'
19713
19714  else
19715    whole_archive_flag_spec_CXX=''
19716  fi
19717  link_all_deplibs_CXX=yes
19718  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19719  case $cc_basename in
19720     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19721     *) _lt_dar_can_shared=$GCC ;;
19722  esac
19723  if test yes = "$_lt_dar_can_shared"; then
19724    output_verbose_link_cmd=func_echo_all
19725    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"
19726    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19727    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"
19728    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"
19729       if test yes != "$lt_cv_apple_cc_single_mod"; then
19730      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"
19731      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"
19732    fi
19733
19734  else
19735  ld_shlibs_CXX=no
19736  fi
19737
19738	;;
19739
19740      os2*)
19741	hardcode_libdir_flag_spec_CXX='-L$libdir'
19742	hardcode_minus_L_CXX=yes
19743	allow_undefined_flag_CXX=unsupported
19744	shrext_cmds=.dll
19745	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19746	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19747	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19748	  $ECHO EXPORTS >> $output_objdir/$libname.def~
19749	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19750	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19751	  emximp -o $lib $output_objdir/$libname.def'
19752	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19753	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19754	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19755	  $ECHO EXPORTS >> $output_objdir/$libname.def~
19756	  prefix_cmds="$SED"~
19757	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
19758	    prefix_cmds="$prefix_cmds -e 1d";
19759	  fi~
19760	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19761	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19762	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19763	  emximp -o $lib $output_objdir/$libname.def'
19764	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19765	enable_shared_with_static_runtimes_CXX=yes
19766	;;
19767
19768      dgux*)
19769        case $cc_basename in
19770          ec++*)
19771	    # FIXME: insert proper C++ library support
19772	    ld_shlibs_CXX=no
19773	    ;;
19774          ghcx*)
19775	    # Green Hills C++ Compiler
19776	    # FIXME: insert proper C++ library support
19777	    ld_shlibs_CXX=no
19778	    ;;
19779          *)
19780	    # FIXME: insert proper C++ library support
19781	    ld_shlibs_CXX=no
19782	    ;;
19783        esac
19784        ;;
19785
19786      freebsd2.*)
19787        # C++ shared libraries reported to be fairly broken before
19788	# switch to ELF
19789        ld_shlibs_CXX=no
19790        ;;
19791
19792      freebsd-elf*)
19793        archive_cmds_need_lc_CXX=no
19794        ;;
19795
19796      freebsd* | dragonfly*)
19797        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19798        # conventions
19799        ld_shlibs_CXX=yes
19800        ;;
19801
19802      haiku*)
19803        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19804        link_all_deplibs_CXX=yes
19805        ;;
19806
19807      hpux9*)
19808        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19809        hardcode_libdir_separator_CXX=:
19810        export_dynamic_flag_spec_CXX='$wl-E'
19811        hardcode_direct_CXX=yes
19812        hardcode_minus_L_CXX=yes # Not in the search PATH,
19813				             # but as the default
19814				             # location of the library.
19815
19816        case $cc_basename in
19817          CC*)
19818            # FIXME: insert proper C++ library support
19819            ld_shlibs_CXX=no
19820            ;;
19821          aCC*)
19822            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'
19823            # Commands to make compiler produce verbose output that lists
19824            # what "hidden" libraries, object files and flags are used when
19825            # linking a shared library.
19826            #
19827            # There doesn't appear to be a way to prevent this compiler from
19828            # explicitly linking system object files so we need to strip them
19829            # from the output so that they don't get included in the library
19830            # dependencies.
19831            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"'
19832            ;;
19833          *)
19834            if test yes = "$GXX"; then
19835              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'
19836            else
19837              # FIXME: insert proper C++ library support
19838              ld_shlibs_CXX=no
19839            fi
19840            ;;
19841        esac
19842        ;;
19843
19844      hpux10*|hpux11*)
19845        if test no = "$with_gnu_ld"; then
19846	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19847	  hardcode_libdir_separator_CXX=:
19848
19849          case $host_cpu in
19850            hppa*64*|ia64*)
19851              ;;
19852            *)
19853	      export_dynamic_flag_spec_CXX='$wl-E'
19854              ;;
19855          esac
19856        fi
19857        case $host_cpu in
19858          hppa*64*|ia64*)
19859            hardcode_direct_CXX=no
19860            hardcode_shlibpath_var_CXX=no
19861            ;;
19862          *)
19863            hardcode_direct_CXX=yes
19864            hardcode_direct_absolute_CXX=yes
19865            hardcode_minus_L_CXX=yes # Not in the search PATH,
19866					         # but as the default
19867					         # location of the library.
19868            ;;
19869        esac
19870
19871        case $cc_basename in
19872          CC*)
19873	    # FIXME: insert proper C++ library support
19874	    ld_shlibs_CXX=no
19875	    ;;
19876          aCC*)
19877	    case $host_cpu in
19878	      hppa*64*)
19879	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19880	        ;;
19881	      ia64*)
19882	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19883	        ;;
19884	      *)
19885	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19886	        ;;
19887	    esac
19888	    # Commands to make compiler produce verbose output that lists
19889	    # what "hidden" libraries, object files and flags are used when
19890	    # linking a shared library.
19891	    #
19892	    # There doesn't appear to be a way to prevent this compiler from
19893	    # explicitly linking system object files so we need to strip them
19894	    # from the output so that they don't get included in the library
19895	    # dependencies.
19896	    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"'
19897	    ;;
19898          *)
19899	    if test yes = "$GXX"; then
19900	      if test no = "$with_gnu_ld"; then
19901	        case $host_cpu in
19902	          hppa*64*)
19903	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19904	            ;;
19905	          ia64*)
19906	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19907	            ;;
19908	          *)
19909	            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'
19910	            ;;
19911	        esac
19912	      fi
19913	    else
19914	      # FIXME: insert proper C++ library support
19915	      ld_shlibs_CXX=no
19916	    fi
19917	    ;;
19918        esac
19919        ;;
19920
19921      interix[3-9]*)
19922	hardcode_direct_CXX=no
19923	hardcode_shlibpath_var_CXX=no
19924	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19925	export_dynamic_flag_spec_CXX='$wl-E'
19926	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19927	# Instead, shared libraries are loaded at an image base (0x10000000 by
19928	# default) and relocated if they conflict, which is a slow very memory
19929	# consuming and fragmenting process.  To avoid this, we pick a random,
19930	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19931	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19932	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'
19933	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'
19934	;;
19935      irix5* | irix6*)
19936        case $cc_basename in
19937          CC*)
19938	    # SGI C++
19939	    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'
19940
19941	    # Archives containing C++ object files must be created using
19942	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19943	    # necessary to make sure instantiated templates are included
19944	    # in the archive.
19945	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19946	    ;;
19947          *)
19948	    if test yes = "$GXX"; then
19949	      if test no = "$with_gnu_ld"; then
19950	        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'
19951	      else
19952	        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'
19953	      fi
19954	    fi
19955	    link_all_deplibs_CXX=yes
19956	    ;;
19957        esac
19958        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19959        hardcode_libdir_separator_CXX=:
19960        inherit_rpath_CXX=yes
19961        ;;
19962
19963      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19964        case $cc_basename in
19965          KCC*)
19966	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19967
19968	    # KCC will only create a shared library if the output file
19969	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19970	    # to its proper name (with version) after linking.
19971	    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'
19972	    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'
19973	    # Commands to make compiler produce verbose output that lists
19974	    # what "hidden" libraries, object files and flags are used when
19975	    # linking a shared library.
19976	    #
19977	    # There doesn't appear to be a way to prevent this compiler from
19978	    # explicitly linking system object files so we need to strip them
19979	    # from the output so that they don't get included in the library
19980	    # dependencies.
19981	    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"'
19982
19983	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19984	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19985
19986	    # Archives containing C++ object files must be created using
19987	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19988	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19989	    ;;
19990	  icpc* | ecpc* )
19991	    # Intel C++
19992	    with_gnu_ld=yes
19993	    # version 8.0 and above of icpc choke on multiply defined symbols
19994	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19995	    # earlier do not add the objects themselves.
19996	    case `$CC -V 2>&1` in
19997	      *"Version 7."*)
19998	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19999		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'
20000		;;
20001	      *)  # Version 8.0 or newer
20002	        tmp_idyn=
20003	        case $host_cpu in
20004		  ia64*) tmp_idyn=' -i_dynamic';;
20005		esac
20006	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20007		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'
20008		;;
20009	    esac
20010	    archive_cmds_need_lc_CXX=no
20011	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20012	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20013	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20014	    ;;
20015          pgCC* | pgcpp*)
20016            # Portland Group C++ compiler
20017	    case `$CC -V` in
20018	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20019	      prelink_cmds_CXX='tpldir=Template.dir~
20020               rm -rf $tpldir~
20021               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20022               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20023	      old_archive_cmds_CXX='tpldir=Template.dir~
20024                rm -rf $tpldir~
20025                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20026                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20027                $RANLIB $oldlib'
20028	      archive_cmds_CXX='tpldir=Template.dir~
20029                rm -rf $tpldir~
20030                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20031                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20032	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20033                rm -rf $tpldir~
20034                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20035                $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'
20036	      ;;
20037	    *) # Version 6 and above use weak symbols
20038	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20039	      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'
20040	      ;;
20041	    esac
20042
20043	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20044	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20045	    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'
20046            ;;
20047	  cxx*)
20048	    # Compaq C++
20049	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20050	    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'
20051
20052	    runpath_var=LD_RUN_PATH
20053	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20054	    hardcode_libdir_separator_CXX=:
20055
20056	    # Commands to make compiler produce verbose output that lists
20057	    # what "hidden" libraries, object files and flags are used when
20058	    # linking a shared library.
20059	    #
20060	    # There doesn't appear to be a way to prevent this compiler from
20061	    # explicitly linking system object files so we need to strip them
20062	    # from the output so that they don't get included in the library
20063	    # dependencies.
20064	    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'
20065	    ;;
20066	  xl* | mpixl* | bgxl*)
20067	    # IBM XL 8.0 on PPC, with GNU ld
20068	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20069	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20070	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20071	    if test yes = "$supports_anon_versioning"; then
20072	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20073                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20074                echo "local: *; };" >> $output_objdir/$libname.ver~
20075                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20076	    fi
20077	    ;;
20078	  *)
20079	    case `$CC -V 2>&1 | sed 5q` in
20080	    *Sun\ C*)
20081	      # Sun C++ 5.9
20082	      no_undefined_flag_CXX=' -zdefs'
20083	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20084	      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'
20085	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20086	      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'
20087	      compiler_needs_object_CXX=yes
20088
20089	      # Not sure whether something based on
20090	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20091	      # would be better.
20092	      output_verbose_link_cmd='func_echo_all'
20093
20094	      # Archives containing C++ object files must be created using
20095	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20096	      # necessary to make sure instantiated templates are included
20097	      # in the archive.
20098	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20099	      ;;
20100	    esac
20101	    ;;
20102	esac
20103	;;
20104
20105      lynxos*)
20106        # FIXME: insert proper C++ library support
20107	ld_shlibs_CXX=no
20108	;;
20109
20110      m88k*)
20111        # FIXME: insert proper C++ library support
20112        ld_shlibs_CXX=no
20113	;;
20114
20115      mvs*)
20116        case $cc_basename in
20117          cxx*)
20118	    # FIXME: insert proper C++ library support
20119	    ld_shlibs_CXX=no
20120	    ;;
20121	  *)
20122	    # FIXME: insert proper C++ library support
20123	    ld_shlibs_CXX=no
20124	    ;;
20125	esac
20126	;;
20127
20128      netbsd*)
20129        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20130	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20131	  wlarc=
20132	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20133	  hardcode_direct_CXX=yes
20134	  hardcode_shlibpath_var_CXX=no
20135	fi
20136	# Workaround some broken pre-1.5 toolchains
20137	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20138	;;
20139
20140      *nto* | *qnx*)
20141        ld_shlibs_CXX=yes
20142	;;
20143
20144      openbsd* | bitrig*)
20145	if test -f /usr/libexec/ld.so; then
20146	  hardcode_direct_CXX=yes
20147	  hardcode_shlibpath_var_CXX=no
20148	  hardcode_direct_absolute_CXX=yes
20149	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20150	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20151	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20152	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20153	    export_dynamic_flag_spec_CXX='$wl-E'
20154	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20155	  fi
20156	  output_verbose_link_cmd=func_echo_all
20157	else
20158	  ld_shlibs_CXX=no
20159	fi
20160	;;
20161
20162      osf3* | osf4* | osf5*)
20163        case $cc_basename in
20164          KCC*)
20165	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20166
20167	    # KCC will only create a shared library if the output file
20168	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20169	    # to its proper name (with version) after linking.
20170	    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'
20171
20172	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20173	    hardcode_libdir_separator_CXX=:
20174
20175	    # Archives containing C++ object files must be created using
20176	    # the KAI C++ compiler.
20177	    case $host in
20178	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20179	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20180	    esac
20181	    ;;
20182          RCC*)
20183	    # Rational C++ 2.4.1
20184	    # FIXME: insert proper C++ library support
20185	    ld_shlibs_CXX=no
20186	    ;;
20187          cxx*)
20188	    case $host in
20189	      osf3*)
20190	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20191	        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'
20192	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20193		;;
20194	      *)
20195	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20196	        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'
20197	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20198                  echo "-hidden">> $lib.exp~
20199                  $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~
20200                  $RM $lib.exp'
20201	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20202		;;
20203	    esac
20204
20205	    hardcode_libdir_separator_CXX=:
20206
20207	    # Commands to make compiler produce verbose output that lists
20208	    # what "hidden" libraries, object files and flags are used when
20209	    # linking a shared library.
20210	    #
20211	    # There doesn't appear to be a way to prevent this compiler from
20212	    # explicitly linking system object files so we need to strip them
20213	    # from the output so that they don't get included in the library
20214	    # dependencies.
20215	    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"'
20216	    ;;
20217	  *)
20218	    if test yes,no = "$GXX,$with_gnu_ld"; then
20219	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20220	      case $host in
20221	        osf3*)
20222	          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'
20223		  ;;
20224	        *)
20225	          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'
20226		  ;;
20227	      esac
20228
20229	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20230	      hardcode_libdir_separator_CXX=:
20231
20232	      # Commands to make compiler produce verbose output that lists
20233	      # what "hidden" libraries, object files and flags are used when
20234	      # linking a shared library.
20235	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20236
20237	    else
20238	      # FIXME: insert proper C++ library support
20239	      ld_shlibs_CXX=no
20240	    fi
20241	    ;;
20242        esac
20243        ;;
20244
20245      psos*)
20246        # FIXME: insert proper C++ library support
20247        ld_shlibs_CXX=no
20248        ;;
20249
20250      sunos4*)
20251        case $cc_basename in
20252          CC*)
20253	    # Sun C++ 4.x
20254	    # FIXME: insert proper C++ library support
20255	    ld_shlibs_CXX=no
20256	    ;;
20257          lcc*)
20258	    # Lucid
20259	    # FIXME: insert proper C++ library support
20260	    ld_shlibs_CXX=no
20261	    ;;
20262          *)
20263	    # FIXME: insert proper C++ library support
20264	    ld_shlibs_CXX=no
20265	    ;;
20266        esac
20267        ;;
20268
20269      solaris*)
20270        case $cc_basename in
20271          CC* | sunCC*)
20272	    # Sun C++ 4.2, 5.x and Centerline C++
20273            archive_cmds_need_lc_CXX=yes
20274	    no_undefined_flag_CXX=' -zdefs'
20275	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20276	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20277              $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'
20278
20279	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20280	    hardcode_shlibpath_var_CXX=no
20281	    case $host_os in
20282	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20283	      *)
20284		# The compiler driver will combine and reorder linker options,
20285		# but understands '-z linker_flag'.
20286	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20287		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20288	        ;;
20289	    esac
20290	    link_all_deplibs_CXX=yes
20291
20292	    output_verbose_link_cmd='func_echo_all'
20293
20294	    # Archives containing C++ object files must be created using
20295	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20296	    # necessary to make sure instantiated templates are included
20297	    # in the archive.
20298	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20299	    ;;
20300          gcx*)
20301	    # Green Hills C++ Compiler
20302	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20303
20304	    # The C++ compiler must be used to create the archive.
20305	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20306	    ;;
20307          *)
20308	    # GNU C++ compiler with Solaris linker
20309	    if test yes,no = "$GXX,$with_gnu_ld"; then
20310	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
20311	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20312	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20313	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20314                  $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'
20315
20316	        # Commands to make compiler produce verbose output that lists
20317	        # what "hidden" libraries, object files and flags are used when
20318	        # linking a shared library.
20319	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20320	      else
20321	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
20322	        # platform.
20323	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20324	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20325                  $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'
20326
20327	        # Commands to make compiler produce verbose output that lists
20328	        # what "hidden" libraries, object files and flags are used when
20329	        # linking a shared library.
20330	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20331	      fi
20332
20333	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20334	      case $host_os in
20335		solaris2.[0-5] | solaris2.[0-5].*) ;;
20336		*)
20337		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20338		  ;;
20339	      esac
20340	    fi
20341	    ;;
20342        esac
20343        ;;
20344
20345    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20346      no_undefined_flag_CXX='$wl-z,text'
20347      archive_cmds_need_lc_CXX=no
20348      hardcode_shlibpath_var_CXX=no
20349      runpath_var='LD_RUN_PATH'
20350
20351      case $cc_basename in
20352        CC*)
20353	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20354	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20355	  ;;
20356	*)
20357	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20358	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20359	  ;;
20360      esac
20361      ;;
20362
20363      sysv5* | sco3.2v5* | sco5v6*)
20364	# Note: We CANNOT use -z defs as we might desire, because we do not
20365	# link with -lc, and that would cause any symbols used from libc to
20366	# always be unresolved, which means just about no library would
20367	# ever link correctly.  If we're not using GNU ld we use -z text
20368	# though, which does catch some bad symbols but isn't as heavy-handed
20369	# as -z defs.
20370	no_undefined_flag_CXX='$wl-z,text'
20371	allow_undefined_flag_CXX='$wl-z,nodefs'
20372	archive_cmds_need_lc_CXX=no
20373	hardcode_shlibpath_var_CXX=no
20374	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20375	hardcode_libdir_separator_CXX=':'
20376	link_all_deplibs_CXX=yes
20377	export_dynamic_flag_spec_CXX='$wl-Bexport'
20378	runpath_var='LD_RUN_PATH'
20379
20380	case $cc_basename in
20381          CC*)
20382	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20383	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20384	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20385              '"$old_archive_cmds_CXX"
20386	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20387              '"$reload_cmds_CXX"
20388	    ;;
20389	  *)
20390	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20391	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20392	    ;;
20393	esac
20394      ;;
20395
20396      tandem*)
20397        case $cc_basename in
20398          NCC*)
20399	    # NonStop-UX NCC 3.20
20400	    # FIXME: insert proper C++ library support
20401	    ld_shlibs_CXX=no
20402	    ;;
20403          *)
20404	    # FIXME: insert proper C++ library support
20405	    ld_shlibs_CXX=no
20406	    ;;
20407        esac
20408        ;;
20409
20410      vxworks*)
20411        # FIXME: insert proper C++ library support
20412        ld_shlibs_CXX=no
20413        ;;
20414
20415      *)
20416        # FIXME: insert proper C++ library support
20417        ld_shlibs_CXX=no
20418        ;;
20419    esac
20420
20421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20422$as_echo "$ld_shlibs_CXX" >&6; }
20423    test no = "$ld_shlibs_CXX" && can_build_shared=no
20424
20425    GCC_CXX=$GXX
20426    LD_CXX=$LD
20427
20428    ## CAVEAT EMPTOR:
20429    ## There is no encapsulation within the following macros, do not change
20430    ## the running order or otherwise move them around unless you know exactly
20431    ## what you are doing...
20432    # Dependencies to place before and after the object being linked:
20433predep_objects_CXX=
20434postdep_objects_CXX=
20435predeps_CXX=
20436postdeps_CXX=
20437compiler_lib_search_path_CXX=
20438
20439cat > conftest.$ac_ext <<_LT_EOF
20440class Foo
20441{
20442public:
20443  Foo (void) { a = 0; }
20444private:
20445  int a;
20446};
20447_LT_EOF
20448
20449
20450_lt_libdeps_save_CFLAGS=$CFLAGS
20451case "$CC $CFLAGS " in #(
20452*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20453*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20454*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20455esac
20456
20457if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20458  (eval $ac_compile) 2>&5
20459  ac_status=$?
20460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20461  test $ac_status = 0; }; then
20462  # Parse the compiler output and extract the necessary
20463  # objects, libraries and library flags.
20464
20465  # Sentinel used to keep track of whether or not we are before
20466  # the conftest object file.
20467  pre_test_object_deps_done=no
20468
20469  for p in `eval "$output_verbose_link_cmd"`; do
20470    case $prev$p in
20471
20472    -L* | -R* | -l*)
20473       # Some compilers place space between "-{L,R}" and the path.
20474       # Remove the space.
20475       if test x-L = "$p" ||
20476          test x-R = "$p"; then
20477	 prev=$p
20478	 continue
20479       fi
20480
20481       # Expand the sysroot to ease extracting the directories later.
20482       if test -z "$prev"; then
20483         case $p in
20484         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20485         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20486         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20487         esac
20488       fi
20489       case $p in
20490       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20491       esac
20492       if test no = "$pre_test_object_deps_done"; then
20493	 case $prev in
20494	 -L | -R)
20495	   # Internal compiler library paths should come after those
20496	   # provided the user.  The postdeps already come after the
20497	   # user supplied libs so there is no need to process them.
20498	   if test -z "$compiler_lib_search_path_CXX"; then
20499	     compiler_lib_search_path_CXX=$prev$p
20500	   else
20501	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20502	   fi
20503	   ;;
20504	 # The "-l" case would never come before the object being
20505	 # linked, so don't bother handling this case.
20506	 esac
20507       else
20508	 if test -z "$postdeps_CXX"; then
20509	   postdeps_CXX=$prev$p
20510	 else
20511	   postdeps_CXX="${postdeps_CXX} $prev$p"
20512	 fi
20513       fi
20514       prev=
20515       ;;
20516
20517    *.lto.$objext) ;; # Ignore GCC LTO objects
20518    *.$objext)
20519       # This assumes that the test object file only shows up
20520       # once in the compiler output.
20521       if test "$p" = "conftest.$objext"; then
20522	 pre_test_object_deps_done=yes
20523	 continue
20524       fi
20525
20526       if test no = "$pre_test_object_deps_done"; then
20527	 if test -z "$predep_objects_CXX"; then
20528	   predep_objects_CXX=$p
20529	 else
20530	   predep_objects_CXX="$predep_objects_CXX $p"
20531	 fi
20532       else
20533	 if test -z "$postdep_objects_CXX"; then
20534	   postdep_objects_CXX=$p
20535	 else
20536	   postdep_objects_CXX="$postdep_objects_CXX $p"
20537	 fi
20538       fi
20539       ;;
20540
20541    *) ;; # Ignore the rest.
20542
20543    esac
20544  done
20545
20546  # Clean up.
20547  rm -f a.out a.exe
20548else
20549  echo "libtool.m4: error: problem compiling CXX test program"
20550fi
20551
20552$RM -f confest.$objext
20553CFLAGS=$_lt_libdeps_save_CFLAGS
20554
20555# PORTME: override above test on systems where it is broken
20556case $host_os in
20557interix[3-9]*)
20558  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20559  # hack all around it, let's just trust "g++" to DTRT.
20560  predep_objects_CXX=
20561  postdep_objects_CXX=
20562  postdeps_CXX=
20563  ;;
20564esac
20565
20566
20567case " $postdeps_CXX " in
20568*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20569esac
20570 compiler_lib_search_dirs_CXX=
20571if test -n "${compiler_lib_search_path_CXX}"; then
20572 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20573fi
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605    lt_prog_compiler_wl_CXX=
20606lt_prog_compiler_pic_CXX=
20607lt_prog_compiler_static_CXX=
20608
20609
20610  # C++ specific cases for pic, static, wl, etc.
20611  if test yes = "$GXX"; then
20612    lt_prog_compiler_wl_CXX='-Wl,'
20613    lt_prog_compiler_static_CXX='-static'
20614
20615    case $host_os in
20616    aix*)
20617      # All AIX code is PIC.
20618      if test ia64 = "$host_cpu"; then
20619	# AIX 5 now supports IA64 processor
20620	lt_prog_compiler_static_CXX='-Bstatic'
20621      fi
20622      lt_prog_compiler_pic_CXX='-fPIC'
20623      ;;
20624
20625    amigaos*)
20626      case $host_cpu in
20627      powerpc)
20628            # see comment about AmigaOS4 .so support
20629            lt_prog_compiler_pic_CXX='-fPIC'
20630        ;;
20631      m68k)
20632            # FIXME: we need at least 68020 code to build shared libraries, but
20633            # adding the '-m68020' flag to GCC prevents building anything better,
20634            # like '-m68040'.
20635            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20636        ;;
20637      esac
20638      ;;
20639
20640    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20641      # PIC is the default for these OSes.
20642      ;;
20643    mingw* | cygwin* | os2* | pw32* | cegcc*)
20644      # This hack is so that the source file can tell whether it is being
20645      # built for inclusion in a dll (and should export symbols for example).
20646      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20647      # (--disable-auto-import) libraries
20648      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20649      case $host_os in
20650      os2*)
20651	lt_prog_compiler_static_CXX='$wl-static'
20652	;;
20653      esac
20654      ;;
20655    darwin* | rhapsody*)
20656      # PIC is the default on this platform
20657      # Common symbols not allowed in MH_DYLIB files
20658      lt_prog_compiler_pic_CXX='-fno-common'
20659      ;;
20660    *djgpp*)
20661      # DJGPP does not support shared libraries at all
20662      lt_prog_compiler_pic_CXX=
20663      ;;
20664    haiku*)
20665      # PIC is the default for Haiku.
20666      # The "-static" flag exists, but is broken.
20667      lt_prog_compiler_static_CXX=
20668      ;;
20669    interix[3-9]*)
20670      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20671      # Instead, we relocate shared libraries at runtime.
20672      ;;
20673    sysv4*MP*)
20674      if test -d /usr/nec; then
20675	lt_prog_compiler_pic_CXX=-Kconform_pic
20676      fi
20677      ;;
20678    hpux*)
20679      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20680      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20681      # sets the default TLS model and affects inlining.
20682      case $host_cpu in
20683      hppa*64*)
20684	;;
20685      *)
20686	lt_prog_compiler_pic_CXX='-fPIC'
20687	;;
20688      esac
20689      ;;
20690    *qnx* | *nto*)
20691      # QNX uses GNU C++, but need to define -shared option too, otherwise
20692      # it will coredump.
20693      lt_prog_compiler_pic_CXX='-fPIC -shared'
20694      ;;
20695    *)
20696      lt_prog_compiler_pic_CXX='-fPIC'
20697      ;;
20698    esac
20699  else
20700    case $host_os in
20701      aix[4-9]*)
20702	# All AIX code is PIC.
20703	if test ia64 = "$host_cpu"; then
20704	  # AIX 5 now supports IA64 processor
20705	  lt_prog_compiler_static_CXX='-Bstatic'
20706	else
20707	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20708	fi
20709	;;
20710      chorus*)
20711	case $cc_basename in
20712	cxch68*)
20713	  # Green Hills C++ Compiler
20714	  # _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"
20715	  ;;
20716	esac
20717	;;
20718      mingw* | cygwin* | os2* | pw32* | cegcc*)
20719	# This hack is so that the source file can tell whether it is being
20720	# built for inclusion in a dll (and should export symbols for example).
20721	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20722	;;
20723      dgux*)
20724	case $cc_basename in
20725	  ec++*)
20726	    lt_prog_compiler_pic_CXX='-KPIC'
20727	    ;;
20728	  ghcx*)
20729	    # Green Hills C++ Compiler
20730	    lt_prog_compiler_pic_CXX='-pic'
20731	    ;;
20732	  *)
20733	    ;;
20734	esac
20735	;;
20736      freebsd* | dragonfly*)
20737	# FreeBSD uses GNU C++
20738	;;
20739      hpux9* | hpux10* | hpux11*)
20740	case $cc_basename in
20741	  CC*)
20742	    lt_prog_compiler_wl_CXX='-Wl,'
20743	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20744	    if test ia64 != "$host_cpu"; then
20745	      lt_prog_compiler_pic_CXX='+Z'
20746	    fi
20747	    ;;
20748	  aCC*)
20749	    lt_prog_compiler_wl_CXX='-Wl,'
20750	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20751	    case $host_cpu in
20752	    hppa*64*|ia64*)
20753	      # +Z the default
20754	      ;;
20755	    *)
20756	      lt_prog_compiler_pic_CXX='+Z'
20757	      ;;
20758	    esac
20759	    ;;
20760	  *)
20761	    ;;
20762	esac
20763	;;
20764      interix*)
20765	# This is c89, which is MS Visual C++ (no shared libs)
20766	# Anyone wants to do a port?
20767	;;
20768      irix5* | irix6* | nonstopux*)
20769	case $cc_basename in
20770	  CC*)
20771	    lt_prog_compiler_wl_CXX='-Wl,'
20772	    lt_prog_compiler_static_CXX='-non_shared'
20773	    # CC pic flag -KPIC is the default.
20774	    ;;
20775	  *)
20776	    ;;
20777	esac
20778	;;
20779      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20780	case $cc_basename in
20781	  KCC*)
20782	    # KAI C++ Compiler
20783	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20784	    lt_prog_compiler_pic_CXX='-fPIC'
20785	    ;;
20786	  ecpc* )
20787	    # old Intel C++ for x86_64, which still supported -KPIC.
20788	    lt_prog_compiler_wl_CXX='-Wl,'
20789	    lt_prog_compiler_pic_CXX='-KPIC'
20790	    lt_prog_compiler_static_CXX='-static'
20791	    ;;
20792	  icpc* )
20793	    # Intel C++, used to be incompatible with GCC.
20794	    # ICC 10 doesn't accept -KPIC any more.
20795	    lt_prog_compiler_wl_CXX='-Wl,'
20796	    lt_prog_compiler_pic_CXX='-fPIC'
20797	    lt_prog_compiler_static_CXX='-static'
20798	    ;;
20799	  pgCC* | pgcpp*)
20800	    # Portland Group C++ compiler
20801	    lt_prog_compiler_wl_CXX='-Wl,'
20802	    lt_prog_compiler_pic_CXX='-fpic'
20803	    lt_prog_compiler_static_CXX='-Bstatic'
20804	    ;;
20805	  cxx*)
20806	    # Compaq C++
20807	    # Make sure the PIC flag is empty.  It appears that all Alpha
20808	    # Linux and Compaq Tru64 Unix objects are PIC.
20809	    lt_prog_compiler_pic_CXX=
20810	    lt_prog_compiler_static_CXX='-non_shared'
20811	    ;;
20812	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20813	    # IBM XL 8.0, 9.0 on PPC and BlueGene
20814	    lt_prog_compiler_wl_CXX='-Wl,'
20815	    lt_prog_compiler_pic_CXX='-qpic'
20816	    lt_prog_compiler_static_CXX='-qstaticlink'
20817	    ;;
20818	  *)
20819	    case `$CC -V 2>&1 | sed 5q` in
20820	    *Sun\ C*)
20821	      # Sun C++ 5.9
20822	      lt_prog_compiler_pic_CXX='-KPIC'
20823	      lt_prog_compiler_static_CXX='-Bstatic'
20824	      lt_prog_compiler_wl_CXX='-Qoption ld '
20825	      ;;
20826	    esac
20827	    ;;
20828	esac
20829	;;
20830      lynxos*)
20831	;;
20832      m88k*)
20833	;;
20834      mvs*)
20835	case $cc_basename in
20836	  cxx*)
20837	    lt_prog_compiler_pic_CXX='-W c,exportall'
20838	    ;;
20839	  *)
20840	    ;;
20841	esac
20842	;;
20843      netbsd* | netbsdelf*-gnu)
20844	;;
20845      *qnx* | *nto*)
20846        # QNX uses GNU C++, but need to define -shared option too, otherwise
20847        # it will coredump.
20848        lt_prog_compiler_pic_CXX='-fPIC -shared'
20849        ;;
20850      osf3* | osf4* | osf5*)
20851	case $cc_basename in
20852	  KCC*)
20853	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20854	    ;;
20855	  RCC*)
20856	    # Rational C++ 2.4.1
20857	    lt_prog_compiler_pic_CXX='-pic'
20858	    ;;
20859	  cxx*)
20860	    # Digital/Compaq C++
20861	    lt_prog_compiler_wl_CXX='-Wl,'
20862	    # Make sure the PIC flag is empty.  It appears that all Alpha
20863	    # Linux and Compaq Tru64 Unix objects are PIC.
20864	    lt_prog_compiler_pic_CXX=
20865	    lt_prog_compiler_static_CXX='-non_shared'
20866	    ;;
20867	  *)
20868	    ;;
20869	esac
20870	;;
20871      psos*)
20872	;;
20873      solaris*)
20874	case $cc_basename in
20875	  CC* | sunCC*)
20876	    # Sun C++ 4.2, 5.x and Centerline C++
20877	    lt_prog_compiler_pic_CXX='-KPIC'
20878	    lt_prog_compiler_static_CXX='-Bstatic'
20879	    lt_prog_compiler_wl_CXX='-Qoption ld '
20880	    ;;
20881	  gcx*)
20882	    # Green Hills C++ Compiler
20883	    lt_prog_compiler_pic_CXX='-PIC'
20884	    ;;
20885	  *)
20886	    ;;
20887	esac
20888	;;
20889      sunos4*)
20890	case $cc_basename in
20891	  CC*)
20892	    # Sun C++ 4.x
20893	    lt_prog_compiler_pic_CXX='-pic'
20894	    lt_prog_compiler_static_CXX='-Bstatic'
20895	    ;;
20896	  lcc*)
20897	    # Lucid
20898	    lt_prog_compiler_pic_CXX='-pic'
20899	    ;;
20900	  *)
20901	    ;;
20902	esac
20903	;;
20904      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20905	case $cc_basename in
20906	  CC*)
20907	    lt_prog_compiler_wl_CXX='-Wl,'
20908	    lt_prog_compiler_pic_CXX='-KPIC'
20909	    lt_prog_compiler_static_CXX='-Bstatic'
20910	    ;;
20911	esac
20912	;;
20913      tandem*)
20914	case $cc_basename in
20915	  NCC*)
20916	    # NonStop-UX NCC 3.20
20917	    lt_prog_compiler_pic_CXX='-KPIC'
20918	    ;;
20919	  *)
20920	    ;;
20921	esac
20922	;;
20923      vxworks*)
20924	;;
20925      *)
20926	lt_prog_compiler_can_build_shared_CXX=no
20927	;;
20928    esac
20929  fi
20930
20931case $host_os in
20932  # For platforms that do not support PIC, -DPIC is meaningless:
20933  *djgpp*)
20934    lt_prog_compiler_pic_CXX=
20935    ;;
20936  *)
20937    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20938    ;;
20939esac
20940
20941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20942$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20943if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20944  $as_echo_n "(cached) " >&6
20945else
20946  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20947fi
20948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20949$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20950lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20951
20952#
20953# Check to make sure the PIC flag actually works.
20954#
20955if test -n "$lt_prog_compiler_pic_CXX"; then
20956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20957$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20958if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
20959  $as_echo_n "(cached) " >&6
20960else
20961  lt_cv_prog_compiler_pic_works_CXX=no
20962   ac_outfile=conftest.$ac_objext
20963   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20964   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
20965   # Insert the option either (1) after the last *FLAGS variable, or
20966   # (2) before a word containing "conftest.", or (3) at the end.
20967   # Note that $ac_compile itself does not contain backslashes and begins
20968   # with a dollar sign (not a hyphen), so the echo should work correctly.
20969   # The option is referenced via a variable to avoid confusing sed.
20970   lt_compile=`echo "$ac_compile" | $SED \
20971   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20972   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20973   -e 's:$: $lt_compiler_flag:'`
20974   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20975   (eval "$lt_compile" 2>conftest.err)
20976   ac_status=$?
20977   cat conftest.err >&5
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   if (exit $ac_status) && test -s "$ac_outfile"; then
20980     # The compiler can only warn and ignore the option if not recognized
20981     # So say no if there are warnings other than the usual output.
20982     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20983     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20984     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20985       lt_cv_prog_compiler_pic_works_CXX=yes
20986     fi
20987   fi
20988   $RM conftest*
20989
20990fi
20991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20992$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20993
20994if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20995    case $lt_prog_compiler_pic_CXX in
20996     "" | " "*) ;;
20997     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20998     esac
20999else
21000    lt_prog_compiler_pic_CXX=
21001     lt_prog_compiler_can_build_shared_CXX=no
21002fi
21003
21004fi
21005
21006
21007
21008
21009
21010#
21011# Check to make sure the static flag actually works.
21012#
21013wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21015$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21016if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21017  $as_echo_n "(cached) " >&6
21018else
21019  lt_cv_prog_compiler_static_works_CXX=no
21020   save_LDFLAGS=$LDFLAGS
21021   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21022   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21023   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21024     # The linker can only warn and ignore the option if not recognized
21025     # So say no if there are warnings
21026     if test -s conftest.err; then
21027       # Append any errors to the config.log.
21028       cat conftest.err 1>&5
21029       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21030       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21031       if diff conftest.exp conftest.er2 >/dev/null; then
21032         lt_cv_prog_compiler_static_works_CXX=yes
21033       fi
21034     else
21035       lt_cv_prog_compiler_static_works_CXX=yes
21036     fi
21037   fi
21038   $RM -r conftest*
21039   LDFLAGS=$save_LDFLAGS
21040
21041fi
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21043$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21044
21045if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21046    :
21047else
21048    lt_prog_compiler_static_CXX=
21049fi
21050
21051
21052
21053
21054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21055$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21056if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21057  $as_echo_n "(cached) " >&6
21058else
21059  lt_cv_prog_compiler_c_o_CXX=no
21060   $RM -r conftest 2>/dev/null
21061   mkdir conftest
21062   cd conftest
21063   mkdir out
21064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21065
21066   lt_compiler_flag="-o out/conftest2.$ac_objext"
21067   # Insert the option either (1) after the last *FLAGS variable, or
21068   # (2) before a word containing "conftest.", or (3) at the end.
21069   # Note that $ac_compile itself does not contain backslashes and begins
21070   # with a dollar sign (not a hyphen), so the echo should work correctly.
21071   lt_compile=`echo "$ac_compile" | $SED \
21072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21074   -e 's:$: $lt_compiler_flag:'`
21075   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21076   (eval "$lt_compile" 2>out/conftest.err)
21077   ac_status=$?
21078   cat out/conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21081   then
21082     # The compiler can only warn and ignore the option if not recognized
21083     # So say no if there are warnings
21084     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21085     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21086     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21087       lt_cv_prog_compiler_c_o_CXX=yes
21088     fi
21089   fi
21090   chmod u+w . 2>&5
21091   $RM conftest*
21092   # SGI C++ compiler will create directory out/ii_files/ for
21093   # template instantiation
21094   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21095   $RM out/* && rmdir out
21096   cd ..
21097   $RM -r conftest
21098   $RM conftest*
21099
21100fi
21101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21102$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21103
21104
21105
21106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21107$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21108if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21109  $as_echo_n "(cached) " >&6
21110else
21111  lt_cv_prog_compiler_c_o_CXX=no
21112   $RM -r conftest 2>/dev/null
21113   mkdir conftest
21114   cd conftest
21115   mkdir out
21116   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21117
21118   lt_compiler_flag="-o out/conftest2.$ac_objext"
21119   # Insert the option either (1) after the last *FLAGS variable, or
21120   # (2) before a word containing "conftest.", or (3) at the end.
21121   # Note that $ac_compile itself does not contain backslashes and begins
21122   # with a dollar sign (not a hyphen), so the echo should work correctly.
21123   lt_compile=`echo "$ac_compile" | $SED \
21124   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21125   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21126   -e 's:$: $lt_compiler_flag:'`
21127   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21128   (eval "$lt_compile" 2>out/conftest.err)
21129   ac_status=$?
21130   cat out/conftest.err >&5
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21133   then
21134     # The compiler can only warn and ignore the option if not recognized
21135     # So say no if there are warnings
21136     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21137     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21138     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21139       lt_cv_prog_compiler_c_o_CXX=yes
21140     fi
21141   fi
21142   chmod u+w . 2>&5
21143   $RM conftest*
21144   # SGI C++ compiler will create directory out/ii_files/ for
21145   # template instantiation
21146   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21147   $RM out/* && rmdir out
21148   cd ..
21149   $RM -r conftest
21150   $RM conftest*
21151
21152fi
21153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21154$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21155
21156
21157
21158
21159hard_links=nottested
21160if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21161  # do not overwrite the value of need_locks provided by the user
21162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21163$as_echo_n "checking if we can lock with hard links... " >&6; }
21164  hard_links=yes
21165  $RM conftest*
21166  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21167  touch conftest.a
21168  ln conftest.a conftest.b 2>&5 || hard_links=no
21169  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21171$as_echo "$hard_links" >&6; }
21172  if test no = "$hard_links"; then
21173    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21174$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21175    need_locks=warn
21176  fi
21177else
21178  need_locks=no
21179fi
21180
21181
21182
21183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21184$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21185
21186  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21187  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21188  case $host_os in
21189  aix[4-9]*)
21190    # If we're using GNU nm, then we don't want the "-C" option.
21191    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21192    # Without the "-l" option, or with the "-B" option, AIX nm treats
21193    # weak defined symbols like other global defined symbols, whereas
21194    # GNU nm marks them as "W".
21195    # While the 'weak' keyword is ignored in the Export File, we need
21196    # it in the Import File for the 'aix-soname' feature, so we have
21197    # to replace the "-B" option with "-P" for AIX nm.
21198    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21199      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'
21200    else
21201      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'
21202    fi
21203    ;;
21204  pw32*)
21205    export_symbols_cmds_CXX=$ltdll_cmds
21206    ;;
21207  cygwin* | mingw* | cegcc*)
21208    case $cc_basename in
21209    cl*)
21210      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21211      ;;
21212    *)
21213      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'
21214      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21215      ;;
21216    esac
21217    ;;
21218  linux* | k*bsd*-gnu | gnu*)
21219    link_all_deplibs_CXX=no
21220    ;;
21221  *)
21222    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21223    ;;
21224  esac
21225
21226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21227$as_echo "$ld_shlibs_CXX" >&6; }
21228test no = "$ld_shlibs_CXX" && can_build_shared=no
21229
21230with_gnu_ld_CXX=$with_gnu_ld
21231
21232
21233
21234
21235
21236
21237#
21238# Do we need to explicitly link libc?
21239#
21240case "x$archive_cmds_need_lc_CXX" in
21241x|xyes)
21242  # Assume -lc should be added
21243  archive_cmds_need_lc_CXX=yes
21244
21245  if test yes,yes = "$GCC,$enable_shared"; then
21246    case $archive_cmds_CXX in
21247    *'~'*)
21248      # FIXME: we may have to deal with multi-command sequences.
21249      ;;
21250    '$CC '*)
21251      # Test whether the compiler implicitly links with -lc since on some
21252      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21253      # to ld, don't add -lc before -lgcc.
21254      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21255$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21256if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21257  $as_echo_n "(cached) " >&6
21258else
21259  $RM conftest*
21260	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21261
21262	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21263  (eval $ac_compile) 2>&5
21264  ac_status=$?
21265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21266  test $ac_status = 0; } 2>conftest.err; then
21267	  soname=conftest
21268	  lib=conftest
21269	  libobjs=conftest.$ac_objext
21270	  deplibs=
21271	  wl=$lt_prog_compiler_wl_CXX
21272	  pic_flag=$lt_prog_compiler_pic_CXX
21273	  compiler_flags=-v
21274	  linker_flags=-v
21275	  verstring=
21276	  output_objdir=.
21277	  libname=conftest
21278	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21279	  allow_undefined_flag_CXX=
21280	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21281  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21282  ac_status=$?
21283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21284  test $ac_status = 0; }
21285	  then
21286	    lt_cv_archive_cmds_need_lc_CXX=no
21287	  else
21288	    lt_cv_archive_cmds_need_lc_CXX=yes
21289	  fi
21290	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21291	else
21292	  cat conftest.err 1>&5
21293	fi
21294	$RM conftest*
21295
21296fi
21297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21298$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21299      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21300      ;;
21301    esac
21302  fi
21303  ;;
21304esac
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21368$as_echo_n "checking dynamic linker characteristics... " >&6; }
21369
21370library_names_spec=
21371libname_spec='lib$name'
21372soname_spec=
21373shrext_cmds=.so
21374postinstall_cmds=
21375postuninstall_cmds=
21376finish_cmds=
21377finish_eval=
21378shlibpath_var=
21379shlibpath_overrides_runpath=unknown
21380version_type=none
21381dynamic_linker="$host_os ld.so"
21382sys_lib_dlsearch_path_spec="/lib /usr/lib"
21383need_lib_prefix=unknown
21384hardcode_into_libs=no
21385
21386# when you set need_version to no, make sure it does not cause -set_version
21387# flags to be left without arguments
21388need_version=unknown
21389
21390
21391
21392case $host_os in
21393aix3*)
21394  version_type=linux # correct to gnu/linux during the next big refactor
21395  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21396  shlibpath_var=LIBPATH
21397
21398  # AIX 3 has no versioning support, so we append a major version to the name.
21399  soname_spec='$libname$release$shared_ext$major'
21400  ;;
21401
21402aix[4-9]*)
21403  version_type=linux # correct to gnu/linux during the next big refactor
21404  need_lib_prefix=no
21405  need_version=no
21406  hardcode_into_libs=yes
21407  if test ia64 = "$host_cpu"; then
21408    # AIX 5 supports IA64
21409    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21410    shlibpath_var=LD_LIBRARY_PATH
21411  else
21412    # With GCC up to 2.95.x, collect2 would create an import file
21413    # for dependence libraries.  The import file would start with
21414    # the line '#! .'.  This would cause the generated library to
21415    # depend on '.', always an invalid library.  This was fixed in
21416    # development snapshots of GCC prior to 3.0.
21417    case $host_os in
21418      aix4 | aix4.[01] | aix4.[01].*)
21419      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21420	   echo ' yes '
21421	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21422	:
21423      else
21424	can_build_shared=no
21425      fi
21426      ;;
21427    esac
21428    # Using Import Files as archive members, it is possible to support
21429    # filename-based versioning of shared library archives on AIX. While
21430    # this would work for both with and without runtime linking, it will
21431    # prevent static linking of such archives. So we do filename-based
21432    # shared library versioning with .so extension only, which is used
21433    # when both runtime linking and shared linking is enabled.
21434    # Unfortunately, runtime linking may impact performance, so we do
21435    # not want this to be the default eventually. Also, we use the
21436    # versioned .so libs for executables only if there is the -brtl
21437    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21438    # To allow for filename-based versioning support, we need to create
21439    # libNAME.so.V as an archive file, containing:
21440    # *) an Import File, referring to the versioned filename of the
21441    #    archive as well as the shared archive member, telling the
21442    #    bitwidth (32 or 64) of that shared object, and providing the
21443    #    list of exported symbols of that shared object, eventually
21444    #    decorated with the 'weak' keyword
21445    # *) the shared object with the F_LOADONLY flag set, to really avoid
21446    #    it being seen by the linker.
21447    # At run time we better use the real file rather than another symlink,
21448    # but for link time we create the symlink libNAME.so -> libNAME.so.V
21449
21450    case $with_aix_soname,$aix_use_runtimelinking in
21451    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21452    # soname into executable. Probably we can add versioning support to
21453    # collect2, so additional links can be useful in future.
21454    aix,yes) # traditional libtool
21455      dynamic_linker='AIX unversionable lib.so'
21456      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21457      # instead of lib<name>.a to let people know that these are not
21458      # typical AIX shared libraries.
21459      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21460      ;;
21461    aix,no) # traditional AIX only
21462      dynamic_linker='AIX lib.a(lib.so.V)'
21463      # We preserve .a as extension for shared libraries through AIX4.2
21464      # and later when we are not doing run time linking.
21465      library_names_spec='$libname$release.a $libname.a'
21466      soname_spec='$libname$release$shared_ext$major'
21467      ;;
21468    svr4,*) # full svr4 only
21469      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21470      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21471      # We do not specify a path in Import Files, so LIBPATH fires.
21472      shlibpath_overrides_runpath=yes
21473      ;;
21474    *,yes) # both, prefer svr4
21475      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21476      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21477      # unpreferred sharedlib libNAME.a needs extra handling
21478      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"'
21479      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"'
21480      # We do not specify a path in Import Files, so LIBPATH fires.
21481      shlibpath_overrides_runpath=yes
21482      ;;
21483    *,no) # both, prefer aix
21484      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21485      library_names_spec='$libname$release.a $libname.a'
21486      soname_spec='$libname$release$shared_ext$major'
21487      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21488      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)'
21489      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"'
21490      ;;
21491    esac
21492    shlibpath_var=LIBPATH
21493  fi
21494  ;;
21495
21496amigaos*)
21497  case $host_cpu in
21498  powerpc)
21499    # Since July 2007 AmigaOS4 officially supports .so libraries.
21500    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21501    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21502    ;;
21503  m68k)
21504    library_names_spec='$libname.ixlibrary $libname.a'
21505    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21506    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'
21507    ;;
21508  esac
21509  ;;
21510
21511beos*)
21512  library_names_spec='$libname$shared_ext'
21513  dynamic_linker="$host_os ld.so"
21514  shlibpath_var=LIBRARY_PATH
21515  ;;
21516
21517bsdi[45]*)
21518  version_type=linux # correct to gnu/linux during the next big refactor
21519  need_version=no
21520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21521  soname_spec='$libname$release$shared_ext$major'
21522  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21523  shlibpath_var=LD_LIBRARY_PATH
21524  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21525  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21526  # the default ld.so.conf also contains /usr/contrib/lib and
21527  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21528  # libtool to hard-code these into programs
21529  ;;
21530
21531cygwin* | mingw* | pw32* | cegcc*)
21532  version_type=windows
21533  shrext_cmds=.dll
21534  need_version=no
21535  need_lib_prefix=no
21536
21537  case $GCC,$cc_basename in
21538  yes,*)
21539    # gcc
21540    library_names_spec='$libname.dll.a'
21541    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21542    postinstall_cmds='base_file=`basename \$file`~
21543      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21544      dldir=$destdir/`dirname \$dlpath`~
21545      test -d \$dldir || mkdir -p \$dldir~
21546      $install_prog $dir/$dlname \$dldir/$dlname~
21547      chmod a+x \$dldir/$dlname~
21548      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21549        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21550      fi'
21551    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21552      dlpath=$dir/\$dldll~
21553       $RM \$dlpath'
21554    shlibpath_overrides_runpath=yes
21555
21556    case $host_os in
21557    cygwin*)
21558      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21559      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21560
21561      ;;
21562    mingw* | cegcc*)
21563      # MinGW DLLs use traditional 'lib' prefix
21564      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21565      ;;
21566    pw32*)
21567      # pw32 DLLs use 'pw' prefix rather than 'lib'
21568      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21569      ;;
21570    esac
21571    dynamic_linker='Win32 ld.exe'
21572    ;;
21573
21574  *,cl*)
21575    # Native MSVC
21576    libname_spec='$name'
21577    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21578    library_names_spec='$libname.dll.lib'
21579
21580    case $build_os in
21581    mingw*)
21582      sys_lib_search_path_spec=
21583      lt_save_ifs=$IFS
21584      IFS=';'
21585      for lt_path in $LIB
21586      do
21587        IFS=$lt_save_ifs
21588        # Let DOS variable expansion print the short 8.3 style file name.
21589        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21590        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21591      done
21592      IFS=$lt_save_ifs
21593      # Convert to MSYS style.
21594      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21595      ;;
21596    cygwin*)
21597      # Convert to unix form, then to dos form, then back to unix form
21598      # but this time dos style (no spaces!) so that the unix form looks
21599      # like /cygdrive/c/PROGRA~1:/cygdr...
21600      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21601      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21602      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21603      ;;
21604    *)
21605      sys_lib_search_path_spec=$LIB
21606      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21607        # It is most probably a Windows format PATH.
21608        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21609      else
21610        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21611      fi
21612      # FIXME: find the short name or the path components, as spaces are
21613      # common. (e.g. "Program Files" -> "PROGRA~1")
21614      ;;
21615    esac
21616
21617    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21618    postinstall_cmds='base_file=`basename \$file`~
21619      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21620      dldir=$destdir/`dirname \$dlpath`~
21621      test -d \$dldir || mkdir -p \$dldir~
21622      $install_prog $dir/$dlname \$dldir/$dlname'
21623    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21624      dlpath=$dir/\$dldll~
21625       $RM \$dlpath'
21626    shlibpath_overrides_runpath=yes
21627    dynamic_linker='Win32 link.exe'
21628    ;;
21629
21630  *)
21631    # Assume MSVC wrapper
21632    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21633    dynamic_linker='Win32 ld.exe'
21634    ;;
21635  esac
21636  # FIXME: first we should search . and the directory the executable is in
21637  shlibpath_var=PATH
21638  ;;
21639
21640darwin* | rhapsody*)
21641  dynamic_linker="$host_os dyld"
21642  version_type=darwin
21643  need_lib_prefix=no
21644  need_version=no
21645  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21646  soname_spec='$libname$release$major$shared_ext'
21647  shlibpath_overrides_runpath=yes
21648  shlibpath_var=DYLD_LIBRARY_PATH
21649  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21650
21651  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21652  ;;
21653
21654dgux*)
21655  version_type=linux # correct to gnu/linux during the next big refactor
21656  need_lib_prefix=no
21657  need_version=no
21658  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21659  soname_spec='$libname$release$shared_ext$major'
21660  shlibpath_var=LD_LIBRARY_PATH
21661  ;;
21662
21663freebsd* | dragonfly*)
21664  # DragonFly does not have aout.  When/if they implement a new
21665  # versioning mechanism, adjust this.
21666  if test -x /usr/bin/objformat; then
21667    objformat=`/usr/bin/objformat`
21668  else
21669    case $host_os in
21670    freebsd[23].*) objformat=aout ;;
21671    *) objformat=elf ;;
21672    esac
21673  fi
21674  version_type=freebsd-$objformat
21675  case $version_type in
21676    freebsd-elf*)
21677      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21678      soname_spec='$libname$release$shared_ext$major'
21679      need_version=no
21680      need_lib_prefix=no
21681      ;;
21682    freebsd-*)
21683      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21684      need_version=yes
21685      ;;
21686  esac
21687  shlibpath_var=LD_LIBRARY_PATH
21688  case $host_os in
21689  freebsd2.*)
21690    shlibpath_overrides_runpath=yes
21691    ;;
21692  freebsd3.[01]* | freebsdelf3.[01]*)
21693    shlibpath_overrides_runpath=yes
21694    hardcode_into_libs=yes
21695    ;;
21696  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21697  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21698    shlibpath_overrides_runpath=no
21699    hardcode_into_libs=yes
21700    ;;
21701  *) # from 4.6 on, and DragonFly
21702    shlibpath_overrides_runpath=yes
21703    hardcode_into_libs=yes
21704    ;;
21705  esac
21706  ;;
21707
21708haiku*)
21709  version_type=linux # correct to gnu/linux during the next big refactor
21710  need_lib_prefix=no
21711  need_version=no
21712  dynamic_linker="$host_os runtime_loader"
21713  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21714  soname_spec='$libname$release$shared_ext$major'
21715  shlibpath_var=LIBRARY_PATH
21716  shlibpath_overrides_runpath=no
21717  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21718  hardcode_into_libs=yes
21719  ;;
21720
21721hpux9* | hpux10* | hpux11*)
21722  # Give a soname corresponding to the major version so that dld.sl refuses to
21723  # link against other versions.
21724  version_type=sunos
21725  need_lib_prefix=no
21726  need_version=no
21727  case $host_cpu in
21728  ia64*)
21729    shrext_cmds='.so'
21730    hardcode_into_libs=yes
21731    dynamic_linker="$host_os dld.so"
21732    shlibpath_var=LD_LIBRARY_PATH
21733    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21734    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21735    soname_spec='$libname$release$shared_ext$major'
21736    if test 32 = "$HPUX_IA64_MODE"; then
21737      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21738      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21739    else
21740      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21741      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21742    fi
21743    ;;
21744  hppa*64*)
21745    shrext_cmds='.sl'
21746    hardcode_into_libs=yes
21747    dynamic_linker="$host_os dld.sl"
21748    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21749    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21750    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21751    soname_spec='$libname$release$shared_ext$major'
21752    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21753    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21754    ;;
21755  *)
21756    shrext_cmds='.sl'
21757    dynamic_linker="$host_os dld.sl"
21758    shlibpath_var=SHLIB_PATH
21759    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21760    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21761    soname_spec='$libname$release$shared_ext$major'
21762    ;;
21763  esac
21764  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21765  postinstall_cmds='chmod 555 $lib'
21766  # or fails outright, so override atomically:
21767  install_override_mode=555
21768  ;;
21769
21770interix[3-9]*)
21771  version_type=linux # correct to gnu/linux during the next big refactor
21772  need_lib_prefix=no
21773  need_version=no
21774  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21775  soname_spec='$libname$release$shared_ext$major'
21776  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21777  shlibpath_var=LD_LIBRARY_PATH
21778  shlibpath_overrides_runpath=no
21779  hardcode_into_libs=yes
21780  ;;
21781
21782irix5* | irix6* | nonstopux*)
21783  case $host_os in
21784    nonstopux*) version_type=nonstopux ;;
21785    *)
21786	if test yes = "$lt_cv_prog_gnu_ld"; then
21787		version_type=linux # correct to gnu/linux during the next big refactor
21788	else
21789		version_type=irix
21790	fi ;;
21791  esac
21792  need_lib_prefix=no
21793  need_version=no
21794  soname_spec='$libname$release$shared_ext$major'
21795  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21796  case $host_os in
21797  irix5* | nonstopux*)
21798    libsuff= shlibsuff=
21799    ;;
21800  *)
21801    case $LD in # libtool.m4 will add one of these switches to LD
21802    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21803      libsuff= shlibsuff= libmagic=32-bit;;
21804    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21805      libsuff=32 shlibsuff=N32 libmagic=N32;;
21806    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21807      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21808    *) libsuff= shlibsuff= libmagic=never-match;;
21809    esac
21810    ;;
21811  esac
21812  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21813  shlibpath_overrides_runpath=no
21814  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21815  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21816  hardcode_into_libs=yes
21817  ;;
21818
21819# No shared lib support for Linux oldld, aout, or coff.
21820linux*oldld* | linux*aout* | linux*coff*)
21821  dynamic_linker=no
21822  ;;
21823
21824linux*android*)
21825  version_type=none # Android doesn't support versioned libraries.
21826  need_lib_prefix=no
21827  need_version=no
21828  library_names_spec='$libname$release$shared_ext'
21829  soname_spec='$libname$release$shared_ext'
21830  finish_cmds=
21831  shlibpath_var=LD_LIBRARY_PATH
21832  shlibpath_overrides_runpath=yes
21833
21834  # This implies no fast_install, which is unacceptable.
21835  # Some rework will be needed to allow for fast_install
21836  # before this can be enabled.
21837  hardcode_into_libs=yes
21838
21839  dynamic_linker='Android linker'
21840  # Don't embed -rpath directories since the linker doesn't support them.
21841  hardcode_libdir_flag_spec_CXX='-L$libdir'
21842  ;;
21843
21844# This must be glibc/ELF.
21845linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21846  version_type=linux # correct to gnu/linux during the next big refactor
21847  need_lib_prefix=no
21848  need_version=no
21849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21850  soname_spec='$libname$release$shared_ext$major'
21851  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21852  shlibpath_var=LD_LIBRARY_PATH
21853  shlibpath_overrides_runpath=no
21854
21855  # Some binutils ld are patched to set DT_RUNPATH
21856  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21857  $as_echo_n "(cached) " >&6
21858else
21859  lt_cv_shlibpath_overrides_runpath=no
21860    save_LDFLAGS=$LDFLAGS
21861    save_libdir=$libdir
21862    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21863	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21864    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21865/* end confdefs.h.  */
21866
21867int
21868main ()
21869{
21870
21871  ;
21872  return 0;
21873}
21874_ACEOF
21875if ac_fn_cxx_try_link "$LINENO"; then :
21876  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21877  lt_cv_shlibpath_overrides_runpath=yes
21878fi
21879fi
21880rm -f core conftest.err conftest.$ac_objext \
21881    conftest$ac_exeext conftest.$ac_ext
21882    LDFLAGS=$save_LDFLAGS
21883    libdir=$save_libdir
21884
21885fi
21886
21887  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21888
21889  # This implies no fast_install, which is unacceptable.
21890  # Some rework will be needed to allow for fast_install
21891  # before this can be enabled.
21892  hardcode_into_libs=yes
21893
21894  # Ideally, we could use ldconfig to report *all* directores which are
21895  # searched for libraries, however this is still not possible.  Aside from not
21896  # being certain /sbin/ldconfig is available, command
21897  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21898  # even though it is searched at run-time.  Try to do the best guess by
21899  # appending ld.so.conf contents (and includes) to the search path.
21900  if test -f /etc/ld.so.conf; then
21901    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' ' '`
21902    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21903  fi
21904
21905  # We used to test for /lib/ld.so.1 and disable shared libraries on
21906  # powerpc, because MkLinux only supported shared libraries with the
21907  # GNU dynamic linker.  Since this was broken with cross compilers,
21908  # most powerpc-linux boxes support dynamic linking these days and
21909  # people can always --disable-shared, the test was removed, and we
21910  # assume the GNU/Linux dynamic linker is in use.
21911  dynamic_linker='GNU/Linux ld.so'
21912  ;;
21913
21914netbsdelf*-gnu)
21915  version_type=linux
21916  need_lib_prefix=no
21917  need_version=no
21918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21919  soname_spec='${libname}${release}${shared_ext}$major'
21920  shlibpath_var=LD_LIBRARY_PATH
21921  shlibpath_overrides_runpath=no
21922  hardcode_into_libs=yes
21923  dynamic_linker='NetBSD ld.elf_so'
21924  ;;
21925
21926netbsd*)
21927  version_type=sunos
21928  need_lib_prefix=no
21929  need_version=no
21930  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21931    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21932    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21933    dynamic_linker='NetBSD (a.out) ld.so'
21934  else
21935    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21936    soname_spec='$libname$release$shared_ext$major'
21937    dynamic_linker='NetBSD ld.elf_so'
21938  fi
21939  shlibpath_var=LD_LIBRARY_PATH
21940  shlibpath_overrides_runpath=yes
21941  hardcode_into_libs=yes
21942  ;;
21943
21944newsos6)
21945  version_type=linux # correct to gnu/linux during the next big refactor
21946  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21947  shlibpath_var=LD_LIBRARY_PATH
21948  shlibpath_overrides_runpath=yes
21949  ;;
21950
21951*nto* | *qnx*)
21952  version_type=qnx
21953  need_lib_prefix=no
21954  need_version=no
21955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21956  soname_spec='$libname$release$shared_ext$major'
21957  shlibpath_var=LD_LIBRARY_PATH
21958  shlibpath_overrides_runpath=no
21959  hardcode_into_libs=yes
21960  dynamic_linker='ldqnx.so'
21961  ;;
21962
21963openbsd* | bitrig*)
21964  version_type=sunos
21965  sys_lib_dlsearch_path_spec=/usr/lib
21966  need_lib_prefix=no
21967  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21968    need_version=no
21969  else
21970    need_version=yes
21971  fi
21972  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21973  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21974  shlibpath_var=LD_LIBRARY_PATH
21975  shlibpath_overrides_runpath=yes
21976  ;;
21977
21978os2*)
21979  libname_spec='$name'
21980  version_type=windows
21981  shrext_cmds=.dll
21982  need_version=no
21983  need_lib_prefix=no
21984  # OS/2 can only load a DLL with a base name of 8 characters or less.
21985  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21986    v=$($ECHO $release$versuffix | tr -d .-);
21987    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21988    $ECHO $n$v`$shared_ext'
21989  library_names_spec='${libname}_dll.$libext'
21990  dynamic_linker='OS/2 ld.exe'
21991  shlibpath_var=BEGINLIBPATH
21992  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21993  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21994  postinstall_cmds='base_file=`basename \$file`~
21995    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21996    dldir=$destdir/`dirname \$dlpath`~
21997    test -d \$dldir || mkdir -p \$dldir~
21998    $install_prog $dir/$dlname \$dldir/$dlname~
21999    chmod a+x \$dldir/$dlname~
22000    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22001      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22002    fi'
22003  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22004    dlpath=$dir/\$dldll~
22005    $RM \$dlpath'
22006  ;;
22007
22008osf3* | osf4* | osf5*)
22009  version_type=osf
22010  need_lib_prefix=no
22011  need_version=no
22012  soname_spec='$libname$release$shared_ext$major'
22013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22014  shlibpath_var=LD_LIBRARY_PATH
22015  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22016  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22017  ;;
22018
22019rdos*)
22020  dynamic_linker=no
22021  ;;
22022
22023solaris*)
22024  version_type=linux # correct to gnu/linux during the next big refactor
22025  need_lib_prefix=no
22026  need_version=no
22027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22028  soname_spec='$libname$release$shared_ext$major'
22029  shlibpath_var=LD_LIBRARY_PATH
22030  shlibpath_overrides_runpath=yes
22031  hardcode_into_libs=yes
22032  # ldd complains unless libraries are executable
22033  postinstall_cmds='chmod +x $lib'
22034  ;;
22035
22036sunos4*)
22037  version_type=sunos
22038  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22039  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22040  shlibpath_var=LD_LIBRARY_PATH
22041  shlibpath_overrides_runpath=yes
22042  if test yes = "$with_gnu_ld"; then
22043    need_lib_prefix=no
22044  fi
22045  need_version=yes
22046  ;;
22047
22048sysv4 | sysv4.3*)
22049  version_type=linux # correct to gnu/linux during the next big refactor
22050  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22051  soname_spec='$libname$release$shared_ext$major'
22052  shlibpath_var=LD_LIBRARY_PATH
22053  case $host_vendor in
22054    sni)
22055      shlibpath_overrides_runpath=no
22056      need_lib_prefix=no
22057      runpath_var=LD_RUN_PATH
22058      ;;
22059    siemens)
22060      need_lib_prefix=no
22061      ;;
22062    motorola)
22063      need_lib_prefix=no
22064      need_version=no
22065      shlibpath_overrides_runpath=no
22066      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22067      ;;
22068  esac
22069  ;;
22070
22071sysv4*MP*)
22072  if test -d /usr/nec; then
22073    version_type=linux # correct to gnu/linux during the next big refactor
22074    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22075    soname_spec='$libname$shared_ext.$major'
22076    shlibpath_var=LD_LIBRARY_PATH
22077  fi
22078  ;;
22079
22080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22081  version_type=sco
22082  need_lib_prefix=no
22083  need_version=no
22084  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22085  soname_spec='$libname$release$shared_ext$major'
22086  shlibpath_var=LD_LIBRARY_PATH
22087  shlibpath_overrides_runpath=yes
22088  hardcode_into_libs=yes
22089  if test yes = "$with_gnu_ld"; then
22090    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22091  else
22092    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22093    case $host_os in
22094      sco3.2v5*)
22095        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22096	;;
22097    esac
22098  fi
22099  sys_lib_dlsearch_path_spec='/usr/lib'
22100  ;;
22101
22102tpf*)
22103  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22104  version_type=linux # correct to gnu/linux during the next big refactor
22105  need_lib_prefix=no
22106  need_version=no
22107  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22108  shlibpath_var=LD_LIBRARY_PATH
22109  shlibpath_overrides_runpath=no
22110  hardcode_into_libs=yes
22111  ;;
22112
22113uts4*)
22114  version_type=linux # correct to gnu/linux during the next big refactor
22115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22116  soname_spec='$libname$release$shared_ext$major'
22117  shlibpath_var=LD_LIBRARY_PATH
22118  ;;
22119
22120*)
22121  dynamic_linker=no
22122  ;;
22123esac
22124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22125$as_echo "$dynamic_linker" >&6; }
22126test no = "$dynamic_linker" && can_build_shared=no
22127
22128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22129if test yes = "$GCC"; then
22130  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22131fi
22132
22133if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22134  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22135fi
22136
22137if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22138  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22139fi
22140
22141# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22142configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22143
22144# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22145func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22146
22147# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22148configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22190$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22191hardcode_action_CXX=
22192if test -n "$hardcode_libdir_flag_spec_CXX" ||
22193   test -n "$runpath_var_CXX" ||
22194   test yes = "$hardcode_automatic_CXX"; then
22195
22196  # We can hardcode non-existent directories.
22197  if test no != "$hardcode_direct_CXX" &&
22198     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22199     # have to relink, otherwise we might link with an installed library
22200     # when we should be linking with a yet-to-be-installed one
22201     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22202     test no != "$hardcode_minus_L_CXX"; then
22203    # Linking always hardcodes the temporary library directory.
22204    hardcode_action_CXX=relink
22205  else
22206    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22207    hardcode_action_CXX=immediate
22208  fi
22209else
22210  # We cannot hardcode anything, or else we can only hardcode existing
22211  # directories.
22212  hardcode_action_CXX=unsupported
22213fi
22214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22215$as_echo "$hardcode_action_CXX" >&6; }
22216
22217if test relink = "$hardcode_action_CXX" ||
22218   test yes = "$inherit_rpath_CXX"; then
22219  # Fast installation is not supported
22220  enable_fast_install=no
22221elif test yes = "$shlibpath_overrides_runpath" ||
22222     test no = "$enable_shared"; then
22223  # Fast installation is not necessary
22224  enable_fast_install=needless
22225fi
22226
22227
22228
22229
22230
22231
22232
22233  fi # test -n "$compiler"
22234
22235  CC=$lt_save_CC
22236  CFLAGS=$lt_save_CFLAGS
22237  LDCXX=$LD
22238  LD=$lt_save_LD
22239  GCC=$lt_save_GCC
22240  with_gnu_ld=$lt_save_with_gnu_ld
22241  lt_cv_path_LDCXX=$lt_cv_path_LD
22242  lt_cv_path_LD=$lt_save_path_LD
22243  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22244  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22245fi # test yes != "$_lt_caught_CXX_error"
22246
22247ac_ext=c
22248ac_cpp='$CPP $CPPFLAGS'
22249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22251ac_compiler_gnu=$ac_cv_c_compiler_gnu
22252
22253
22254ac_ext=cpp
22255ac_cpp='$CXXCPP $CPPFLAGS'
22256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22259
22260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22261/* end confdefs.h.  */
22262 class Foo { int bar; };
22263int
22264main ()
22265{
22266
22267  ;
22268  return 0;
22269}
22270_ACEOF
22271if ac_fn_cxx_try_compile "$LINENO"; then :
22272  working_cxx=yes
22273else
22274  working_cxx=no
22275fi
22276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22277ac_ext=c
22278ac_cpp='$CPP $CPPFLAGS'
22279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22281ac_compiler_gnu=$ac_cv_c_compiler_gnu
22282
22283{ $as_echo "$as_me:${as_lineno-$LINENO}: working c++ compiler found: $working_cxx" >&5
22284$as_echo "$as_me: working c++ compiler found: $working_cxx" >&6;}
22285 if test "x$working_cxx" = "xyes"; then
22286  HAVE_CXX_TRUE=
22287  HAVE_CXX_FALSE='#'
22288else
22289  HAVE_CXX_TRUE='#'
22290  HAVE_CXX_FALSE=
22291fi
22292
22293
22294# Extract the first word of "valgrind", so it can be a program name with args.
22295set dummy valgrind; ac_word=$2
22296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22297$as_echo_n "checking for $ac_word... " >&6; }
22298if ${ac_cv_path_VALGRIND_PATH+:} false; then :
22299  $as_echo_n "(cached) " >&6
22300else
22301  case $VALGRIND_PATH in
22302  [\\/]* | ?:[\\/]*)
22303  ac_cv_path_VALGRIND_PATH="$VALGRIND_PATH" # Let the user override the test with a path.
22304  ;;
22305  *)
22306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22307for as_dir in $PATH
22308do
22309  IFS=$as_save_IFS
22310  test -z "$as_dir" && as_dir=.
22311    for ac_exec_ext in '' $ac_executable_extensions; do
22312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22313    ac_cv_path_VALGRIND_PATH="$as_dir/$ac_word$ac_exec_ext"
22314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22315    break 2
22316  fi
22317done
22318  done
22319IFS=$as_save_IFS
22320
22321  test -z "$ac_cv_path_VALGRIND_PATH" && ac_cv_path_VALGRIND_PATH="no"
22322  ;;
22323esac
22324fi
22325VALGRIND_PATH=$ac_cv_path_VALGRIND_PATH
22326if test -n "$VALGRIND_PATH"; then
22327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_PATH" >&5
22328$as_echo "$VALGRIND_PATH" >&6; }
22329else
22330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22331$as_echo "no" >&6; }
22332fi
22333
22334
22335 if test ! "x$VALGRIND_PATH" = "xno"; then
22336  HAVE_VALGRIND_TRUE=
22337  HAVE_VALGRIND_FALSE='#'
22338else
22339  HAVE_VALGRIND_TRUE='#'
22340  HAVE_VALGRIND_FALSE=
22341fi
22342
22343
22344
22345
22346
22347                # Check whether --enable-introspection was given.
22348if test "${enable_introspection+set}" = set; then :
22349  enableval=$enable_introspection;
22350else
22351  enable_introspection=auto
22352fi
22353
22354
22355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
22356$as_echo_n "checking for gobject-introspection... " >&6; }
22357
22358        case $enable_introspection in #(
22359  no) :
22360            found_introspection="no (disabled, use --enable-introspection to enable)"
22361     ;; #(
22362      yes) :
22363            if test -n "$PKG_CONFIG" && \
22364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
22365  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
22366  ac_status=$?
22367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22368  test $ac_status = 0; }; then
22369  :
22370else
22371  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
22372fi
22373        if test -n "$PKG_CONFIG" && \
22374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
22375  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
22376  ac_status=$?
22377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22378  test $ac_status = 0; }; then
22379  found_introspection=yes
22380else
22381  as_fn_error $? "You need to have gobject-introspection >= 1.31.1 installed to build GStreamer Base Plug-ins" "$LINENO" 5
22382fi
22383     ;; #(
22384      auto) :
22385            if test -n "$PKG_CONFIG" && \
22386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
22387  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
22388  ac_status=$?
22389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22390  test $ac_status = 0; }; then
22391  found_introspection=yes
22392else
22393  found_introspection=no
22394fi
22395     ;; #(
22396  *) :
22397                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
22398     ;;
22399esac
22400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
22401$as_echo "$found_introspection" >&6; }
22402
22403    INTROSPECTION_SCANNER=
22404    INTROSPECTION_COMPILER=
22405    INTROSPECTION_GENERATE=
22406    INTROSPECTION_GIRDIR=
22407    INTROSPECTION_TYPELIBDIR=
22408    if test "x$found_introspection" = "xyes"; then
22409       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
22410       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
22411       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
22412       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
22413       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
22414       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
22415       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
22416       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
22417       INTROSPECTION_INIT="extern void gst_init(gint*,gchar**); gst_init(NULL,NULL);"
22418    fi
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429     if test "x$found_introspection" = "xyes"; then
22430  HAVE_INTROSPECTION_TRUE=
22431  HAVE_INTROSPECTION_FALSE='#'
22432else
22433  HAVE_INTROSPECTION_TRUE='#'
22434  HAVE_INTROSPECTION_FALSE=
22435fi
22436
22437
22438
22439
22440
22441
22442
22443    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
22444set dummy gtkdoc-check; ac_word=$2
22445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22446$as_echo_n "checking for $ac_word... " >&6; }
22447if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
22448  $as_echo_n "(cached) " >&6
22449else
22450  case $GTKDOC_CHECK in
22451  [\\/]* | ?:[\\/]*)
22452  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
22453  ;;
22454  *)
22455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22456for as_dir in $PATH
22457do
22458  IFS=$as_save_IFS
22459  test -z "$as_dir" && as_dir=.
22460    for ac_exec_ext in '' $ac_executable_extensions; do
22461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22462    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
22463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22464    break 2
22465  fi
22466done
22467  done
22468IFS=$as_save_IFS
22469
22470  ;;
22471esac
22472fi
22473GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
22474if test -n "$GTKDOC_CHECK"; then
22475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
22476$as_echo "$GTKDOC_CHECK" >&6; }
22477else
22478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22479$as_echo "no" >&6; }
22480fi
22481
22482
22483  for ac_prog in gtkdoc-rebase
22484do
22485  # Extract the first word of "$ac_prog", so it can be a program name with args.
22486set dummy $ac_prog; ac_word=$2
22487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22488$as_echo_n "checking for $ac_word... " >&6; }
22489if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
22490  $as_echo_n "(cached) " >&6
22491else
22492  case $GTKDOC_REBASE in
22493  [\\/]* | ?:[\\/]*)
22494  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
22495  ;;
22496  *)
22497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22498for as_dir in $PATH
22499do
22500  IFS=$as_save_IFS
22501  test -z "$as_dir" && as_dir=.
22502    for ac_exec_ext in '' $ac_executable_extensions; do
22503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22504    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
22505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22506    break 2
22507  fi
22508done
22509  done
22510IFS=$as_save_IFS
22511
22512  ;;
22513esac
22514fi
22515GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
22516if test -n "$GTKDOC_REBASE"; then
22517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
22518$as_echo "$GTKDOC_REBASE" >&6; }
22519else
22520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22521$as_echo "no" >&6; }
22522fi
22523
22524
22525  test -n "$GTKDOC_REBASE" && break
22526done
22527test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
22528
22529  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
22530set dummy gtkdoc-mkpdf; ac_word=$2
22531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22532$as_echo_n "checking for $ac_word... " >&6; }
22533if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
22534  $as_echo_n "(cached) " >&6
22535else
22536  case $GTKDOC_MKPDF in
22537  [\\/]* | ?:[\\/]*)
22538  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
22539  ;;
22540  *)
22541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22542for as_dir in $PATH
22543do
22544  IFS=$as_save_IFS
22545  test -z "$as_dir" && as_dir=.
22546    for ac_exec_ext in '' $ac_executable_extensions; do
22547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22548    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
22549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22550    break 2
22551  fi
22552done
22553  done
22554IFS=$as_save_IFS
22555
22556  ;;
22557esac
22558fi
22559GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
22560if test -n "$GTKDOC_MKPDF"; then
22561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
22562$as_echo "$GTKDOC_MKPDF" >&6; }
22563else
22564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22565$as_echo "no" >&6; }
22566fi
22567
22568
22569
22570
22571# Check whether --with-html-dir was given.
22572if test "${with_html_dir+set}" = set; then :
22573  withval=$with_html_dir;
22574else
22575  with_html_dir='${datadir}/gtk-doc/html'
22576fi
22577
22578  HTML_DIR="$with_html_dir"
22579
22580
22581    # Check whether --enable-gtk-doc was given.
22582if test "${enable_gtk_doc+set}" = set; then :
22583  enableval=$enable_gtk_doc;
22584else
22585  enable_gtk_doc=no
22586fi
22587
22588
22589  if test x$enable_gtk_doc = xyes; then
22590    if test -n "$PKG_CONFIG" && \
22591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.12\""; } >&5
22592  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.12") 2>&5
22593  ac_status=$?
22594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22595  test $ac_status = 0; }; then
22596  :
22597else
22598  as_fn_error $? "You need to have gtk-doc >= 1.12 installed to build $PACKAGE_NAME" "$LINENO" 5
22599fi
22600        if test "x$PACKAGE_NAME" != "xglib"; then
22601
22602pkg_failed=no
22603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
22604$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
22605
22606if test -n "$PKG_CONFIG"; then
22607    if test -n "$GTKDOC_DEPS_CFLAGS"; then
22608        pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
22609    else
22610        if test -n "$PKG_CONFIG" && \
22611    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
22612  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
22613  ac_status=$?
22614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22615  test $ac_status = 0; }; then
22616  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
22617else
22618  pkg_failed=yes
22619fi
22620    fi
22621else
22622	pkg_failed=untried
22623fi
22624if test -n "$PKG_CONFIG"; then
22625    if test -n "$GTKDOC_DEPS_LIBS"; then
22626        pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
22627    else
22628        if test -n "$PKG_CONFIG" && \
22629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
22630  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
22631  ac_status=$?
22632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22633  test $ac_status = 0; }; then
22634  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
22635else
22636  pkg_failed=yes
22637fi
22638    fi
22639else
22640	pkg_failed=untried
22641fi
22642
22643
22644
22645if test $pkg_failed = yes; then
22646
22647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22648        _pkg_short_errors_supported=yes
22649else
22650        _pkg_short_errors_supported=no
22651fi
22652        if test $_pkg_short_errors_supported = yes; then
22653	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
22654        else
22655	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
22656        fi
22657	# Put the nasty error message in config.log where it belongs
22658	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
22659
22660	as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
22661
22662$GTKDOC_DEPS_PKG_ERRORS
22663
22664Consider adjusting the PKG_CONFIG_PATH environment variable if you
22665installed software in a non-standard prefix.
22666
22667Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
22668and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
22669See the pkg-config man page for more details.
22670" "$LINENO" 5
22671elif test $pkg_failed = untried; then
22672	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22674as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
22675is in your PATH or set the PKG_CONFIG environment variable to the full
22676path to pkg-config.
22677
22678Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
22679and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
22680See the pkg-config man page for more details.
22681
22682To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22683See \`config.log' for more details" "$LINENO" 5; }
22684else
22685	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
22686	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
22687        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22688$as_echo "yes" >&6; }
22689	:
22690fi
22691    fi
22692        if test -z "$SED"; then
22693      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
22694$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22695if ${ac_cv_path_SED+:} false; then :
22696  $as_echo_n "(cached) " >&6
22697else
22698            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
22699     for ac_i in 1 2 3 4 5 6 7; do
22700       ac_script="$ac_script$as_nl$ac_script"
22701     done
22702     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
22703     { ac_script=; unset ac_script;}
22704     if test -z "$SED"; then
22705  ac_path_SED_found=false
22706  # Loop through the user's path and test for each of PROGNAME-LIST
22707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22708for as_dir in $PATH
22709do
22710  IFS=$as_save_IFS
22711  test -z "$as_dir" && as_dir=.
22712    for ac_prog in sed gsed; do
22713    for ac_exec_ext in '' $ac_executable_extensions; do
22714      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22715      as_fn_executable_p "$ac_path_SED" || continue
22716# Check for GNU ac_path_SED and select it if it is found.
22717  # Check for GNU $ac_path_SED
22718case `"$ac_path_SED" --version 2>&1` in
22719*GNU*)
22720  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
22721*)
22722  ac_count=0
22723  $as_echo_n 0123456789 >"conftest.in"
22724  while :
22725  do
22726    cat "conftest.in" "conftest.in" >"conftest.tmp"
22727    mv "conftest.tmp" "conftest.in"
22728    cp "conftest.in" "conftest.nl"
22729    $as_echo '' >> "conftest.nl"
22730    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
22731    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22732    as_fn_arith $ac_count + 1 && ac_count=$as_val
22733    if test $ac_count -gt ${ac_path_SED_max-0}; then
22734      # Best one so far, save it but keep looking for a better one
22735      ac_cv_path_SED="$ac_path_SED"
22736      ac_path_SED_max=$ac_count
22737    fi
22738    # 10*(2^10) chars as input seems more than enough
22739    test $ac_count -gt 10 && break
22740  done
22741  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22742esac
22743
22744      $ac_path_SED_found && break 3
22745    done
22746  done
22747  done
22748IFS=$as_save_IFS
22749  if test -z "$ac_cv_path_SED"; then
22750    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
22751  fi
22752else
22753  ac_cv_path_SED=$SED
22754fi
22755
22756fi
22757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
22758$as_echo "$ac_cv_path_SED" >&6; }
22759 SED="$ac_cv_path_SED"
22760  rm -f conftest.sed
22761
22762    fi
22763  fi
22764
22765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
22766$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
22767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
22768$as_echo "$enable_gtk_doc" >&6; }
22769
22770    # Check whether --enable-gtk-doc-html was given.
22771if test "${enable_gtk_doc_html+set}" = set; then :
22772  enableval=$enable_gtk_doc_html;
22773else
22774  enable_gtk_doc_html=yes
22775fi
22776
22777    # Check whether --enable-gtk-doc-pdf was given.
22778if test "${enable_gtk_doc_pdf+set}" = set; then :
22779  enableval=$enable_gtk_doc_pdf;
22780else
22781  enable_gtk_doc_pdf=no
22782fi
22783
22784
22785  if test -z "$GTKDOC_MKPDF"; then
22786    enable_gtk_doc_pdf=no
22787  fi
22788
22789
22790   if test x$enable_gtk_doc = xyes; then
22791  ENABLE_GTK_DOC_TRUE=
22792  ENABLE_GTK_DOC_FALSE='#'
22793else
22794  ENABLE_GTK_DOC_TRUE='#'
22795  ENABLE_GTK_DOC_FALSE=
22796fi
22797
22798   if test x$enable_gtk_doc_html = xyes; then
22799  GTK_DOC_BUILD_HTML_TRUE=
22800  GTK_DOC_BUILD_HTML_FALSE='#'
22801else
22802  GTK_DOC_BUILD_HTML_TRUE='#'
22803  GTK_DOC_BUILD_HTML_FALSE=
22804fi
22805
22806   if test x$enable_gtk_doc_pdf = xyes; then
22807  GTK_DOC_BUILD_PDF_TRUE=
22808  GTK_DOC_BUILD_PDF_FALSE='#'
22809else
22810  GTK_DOC_BUILD_PDF_TRUE='#'
22811  GTK_DOC_BUILD_PDF_FALSE=
22812fi
22813
22814   if test -n "$LIBTOOL"; then
22815  GTK_DOC_USE_LIBTOOL_TRUE=
22816  GTK_DOC_USE_LIBTOOL_FALSE='#'
22817else
22818  GTK_DOC_USE_LIBTOOL_TRUE='#'
22819  GTK_DOC_USE_LIBTOOL_FALSE=
22820fi
22821
22822
22823
22824
22825
22826
22827
22828
22829        # Find any Python interpreter.
22830    if test -z "$PYTHON"; then
22831      for ac_prog in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0
22832do
22833  # Extract the first word of "$ac_prog", so it can be a program name with args.
22834set dummy $ac_prog; ac_word=$2
22835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22836$as_echo_n "checking for $ac_word... " >&6; }
22837if ${ac_cv_path_PYTHON+:} false; then :
22838  $as_echo_n "(cached) " >&6
22839else
22840  case $PYTHON in
22841  [\\/]* | ?:[\\/]*)
22842  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22843  ;;
22844  *)
22845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22846for as_dir in $PATH
22847do
22848  IFS=$as_save_IFS
22849  test -z "$as_dir" && as_dir=.
22850    for ac_exec_ext in '' $ac_executable_extensions; do
22851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22852    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22854    break 2
22855  fi
22856done
22857  done
22858IFS=$as_save_IFS
22859
22860  ;;
22861esac
22862fi
22863PYTHON=$ac_cv_path_PYTHON
22864if test -n "$PYTHON"; then
22865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22866$as_echo "$PYTHON" >&6; }
22867else
22868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869$as_echo "no" >&6; }
22870fi
22871
22872
22873  test -n "$PYTHON" && break
22874done
22875test -n "$PYTHON" || PYTHON=":"
22876
22877    fi
22878    am_display_PYTHON=python
22879
22880
22881  if test "$PYTHON" = :; then
22882      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
22883  else
22884
22885
22886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22887$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22888if ${am_cv_python_version+:} false; then :
22889  $as_echo_n "(cached) " >&6
22890else
22891  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22892fi
22893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22894$as_echo "$am_cv_python_version" >&6; }
22895  PYTHON_VERSION=$am_cv_python_version
22896
22897
22898
22899  PYTHON_PREFIX='${prefix}'
22900
22901  PYTHON_EXEC_PREFIX='${exec_prefix}'
22902
22903
22904
22905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22906$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22907if ${am_cv_python_platform+:} false; then :
22908  $as_echo_n "(cached) " >&6
22909else
22910  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22911fi
22912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22913$as_echo "$am_cv_python_platform" >&6; }
22914  PYTHON_PLATFORM=$am_cv_python_platform
22915
22916
22917  # Just factor out some code duplication.
22918  am_python_setup_sysconfig="\
22919import sys
22920# Prefer sysconfig over distutils.sysconfig, for better compatibility
22921# with python 3.x.  See automake bug#10227.
22922try:
22923    import sysconfig
22924except ImportError:
22925    can_use_sysconfig = 0
22926else:
22927    can_use_sysconfig = 1
22928# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22929# <https://github.com/pypa/virtualenv/issues/118>
22930try:
22931    from platform import python_implementation
22932    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22933        can_use_sysconfig = 0
22934except ImportError:
22935    pass"
22936
22937
22938            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22939$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22940if ${am_cv_python_pythondir+:} false; then :
22941  $as_echo_n "(cached) " >&6
22942else
22943  if test "x$prefix" = xNONE
22944     then
22945       am_py_prefix=$ac_default_prefix
22946     else
22947       am_py_prefix=$prefix
22948     fi
22949     am_cv_python_pythondir=`$PYTHON -c "
22950$am_python_setup_sysconfig
22951if can_use_sysconfig:
22952    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22953else:
22954    from distutils import sysconfig
22955    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22956sys.stdout.write(sitedir)"`
22957     case $am_cv_python_pythondir in
22958     $am_py_prefix*)
22959       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22960       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22961       ;;
22962     *)
22963       case $am_py_prefix in
22964         /usr|/System*) ;;
22965         *)
22966	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22967	  ;;
22968       esac
22969       ;;
22970     esac
22971
22972fi
22973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22974$as_echo "$am_cv_python_pythondir" >&6; }
22975  pythondir=$am_cv_python_pythondir
22976
22977
22978
22979  pkgpythondir=\${pythondir}/$PACKAGE
22980
22981
22982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22983$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22984if ${am_cv_python_pyexecdir+:} false; then :
22985  $as_echo_n "(cached) " >&6
22986else
22987  if test "x$exec_prefix" = xNONE
22988     then
22989       am_py_exec_prefix=$am_py_prefix
22990     else
22991       am_py_exec_prefix=$exec_prefix
22992     fi
22993     am_cv_python_pyexecdir=`$PYTHON -c "
22994$am_python_setup_sysconfig
22995if can_use_sysconfig:
22996    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22997else:
22998    from distutils import sysconfig
22999    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23000sys.stdout.write(sitedir)"`
23001     case $am_cv_python_pyexecdir in
23002     $am_py_exec_prefix*)
23003       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23004       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23005       ;;
23006     *)
23007       case $am_py_exec_prefix in
23008         /usr|/System*) ;;
23009         *)
23010	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23011	   ;;
23012       esac
23013       ;;
23014     esac
23015
23016fi
23017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23018$as_echo "$am_cv_python_pyexecdir" >&6; }
23019  pyexecdir=$am_cv_python_pyexecdir
23020
23021
23022
23023  pkgpyexecdir=\${pyexecdir}/$PACKAGE
23024
23025
23026
23027  fi
23028
23029
23030
23031
23032  build_plugin_docs=no
23033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build plugin documentation" >&5
23034$as_echo_n "checking whether to build plugin documentation... " >&6; }
23035  if test x$enable_gtk_doc = xyes; then
23036    if test x$PYTHON != x; then
23037      build_plugin_docs=yes
23038      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23039$as_echo "yes" >&6; }
23040    else
23041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (python not found)" >&5
23042$as_echo "no (python not found)" >&6; }
23043    fi
23044  else
23045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (gtk-doc disabled or not available)" >&5
23046$as_echo "no (gtk-doc disabled or not available)" >&6; }
23047  fi
23048
23049   if test x$build_plugin_docs = xyes; then
23050  ENABLE_PLUGIN_DOCS_TRUE=
23051  ENABLE_PLUGIN_DOCS_FALSE='#'
23052else
23053  ENABLE_PLUGIN_DOCS_TRUE='#'
23054  ENABLE_PLUGIN_DOCS_FALSE=
23055fi
23056
23057
23058
23059
23060LIBM=
23061case $host in
23062*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
23063  # These system don't have libm, or don't need it
23064  ;;
23065*-ncr-sysv4.3*)
23066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
23067$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
23068if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
23069  $as_echo_n "(cached) " >&6
23070else
23071  ac_check_lib_save_LIBS=$LIBS
23072LIBS="-lmw  $LIBS"
23073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23074/* end confdefs.h.  */
23075
23076/* Override any GCC internal prototype to avoid an error.
23077   Use char because int might match the return type of a GCC
23078   builtin and then its argument prototype would still apply.  */
23079#ifdef __cplusplus
23080extern "C"
23081#endif
23082char _mwvalidcheckl ();
23083int
23084main ()
23085{
23086return _mwvalidcheckl ();
23087  ;
23088  return 0;
23089}
23090_ACEOF
23091if ac_fn_c_try_link "$LINENO"; then :
23092  ac_cv_lib_mw__mwvalidcheckl=yes
23093else
23094  ac_cv_lib_mw__mwvalidcheckl=no
23095fi
23096rm -f core conftest.err conftest.$ac_objext \
23097    conftest$ac_exeext conftest.$ac_ext
23098LIBS=$ac_check_lib_save_LIBS
23099fi
23100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
23101$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
23102if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
23103  LIBM=-lmw
23104fi
23105
23106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23107$as_echo_n "checking for cos in -lm... " >&6; }
23108if ${ac_cv_lib_m_cos+:} false; then :
23109  $as_echo_n "(cached) " >&6
23110else
23111  ac_check_lib_save_LIBS=$LIBS
23112LIBS="-lm  $LIBS"
23113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114/* end confdefs.h.  */
23115
23116/* Override any GCC internal prototype to avoid an error.
23117   Use char because int might match the return type of a GCC
23118   builtin and then its argument prototype would still apply.  */
23119#ifdef __cplusplus
23120extern "C"
23121#endif
23122char cos ();
23123int
23124main ()
23125{
23126return cos ();
23127  ;
23128  return 0;
23129}
23130_ACEOF
23131if ac_fn_c_try_link "$LINENO"; then :
23132  ac_cv_lib_m_cos=yes
23133else
23134  ac_cv_lib_m_cos=no
23135fi
23136rm -f core conftest.err conftest.$ac_objext \
23137    conftest$ac_exeext conftest.$ac_ext
23138LIBS=$ac_check_lib_save_LIBS
23139fi
23140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23141$as_echo "$ac_cv_lib_m_cos" >&6; }
23142if test "x$ac_cv_lib_m_cos" = xyes; then :
23143  LIBM="$LIBM -lm"
23144fi
23145
23146  ;;
23147*)
23148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
23149$as_echo_n "checking for cos in -lm... " >&6; }
23150if ${ac_cv_lib_m_cos+:} false; then :
23151  $as_echo_n "(cached) " >&6
23152else
23153  ac_check_lib_save_LIBS=$LIBS
23154LIBS="-lm  $LIBS"
23155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156/* end confdefs.h.  */
23157
23158/* Override any GCC internal prototype to avoid an error.
23159   Use char because int might match the return type of a GCC
23160   builtin and then its argument prototype would still apply.  */
23161#ifdef __cplusplus
23162extern "C"
23163#endif
23164char cos ();
23165int
23166main ()
23167{
23168return cos ();
23169  ;
23170  return 0;
23171}
23172_ACEOF
23173if ac_fn_c_try_link "$LINENO"; then :
23174  ac_cv_lib_m_cos=yes
23175else
23176  ac_cv_lib_m_cos=no
23177fi
23178rm -f core conftest.err conftest.$ac_objext \
23179    conftest$ac_exeext conftest.$ac_ext
23180LIBS=$ac_check_lib_save_LIBS
23181fi
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
23183$as_echo "$ac_cv_lib_m_cos" >&6; }
23184if test "x$ac_cv_lib_m_cos" = xyes; then :
23185  LIBM=-lm
23186fi
23187
23188  ;;
23189esac
23190
23191
23192
23193
23194
23195
23196
23197
23198ac_ext=c
23199ac_cpp='$CPP $CPPFLAGS'
23200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202ac_compiler_gnu=$ac_cv_c_compiler_gnu
23203
23204ax_pthread_ok=no
23205
23206# We used to check for pthread.h first, but this fails if pthread.h
23207# requires special compiler flags (e.g. on Tru64 or Sequent).
23208# It gets checked for in the link test anyway.
23209
23210# First of all, check if the user has set any of the PTHREAD_LIBS,
23211# etcetera environment variables, and if threads linking works using
23212# them:
23213if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
23214        ax_pthread_save_CC="$CC"
23215        ax_pthread_save_CFLAGS="$CFLAGS"
23216        ax_pthread_save_LIBS="$LIBS"
23217        if test "x$PTHREAD_CC" != "x"; then :
23218  CC="$PTHREAD_CC"
23219fi
23220        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23221        LIBS="$PTHREAD_LIBS $LIBS"
23222        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
23223$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
23224        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23225/* end confdefs.h.  */
23226
23227/* Override any GCC internal prototype to avoid an error.
23228   Use char because int might match the return type of a GCC
23229   builtin and then its argument prototype would still apply.  */
23230#ifdef __cplusplus
23231extern "C"
23232#endif
23233char pthread_join ();
23234int
23235main ()
23236{
23237return pthread_join ();
23238  ;
23239  return 0;
23240}
23241_ACEOF
23242if ac_fn_c_try_link "$LINENO"; then :
23243  ax_pthread_ok=yes
23244fi
23245rm -f core conftest.err conftest.$ac_objext \
23246    conftest$ac_exeext conftest.$ac_ext
23247        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23248$as_echo "$ax_pthread_ok" >&6; }
23249        if test "x$ax_pthread_ok" = "xno"; then
23250                PTHREAD_LIBS=""
23251                PTHREAD_CFLAGS=""
23252        fi
23253        CC="$ax_pthread_save_CC"
23254        CFLAGS="$ax_pthread_save_CFLAGS"
23255        LIBS="$ax_pthread_save_LIBS"
23256fi
23257
23258# We must check for the threads library under a number of different
23259# names; the ordering is very important because some systems
23260# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23261# libraries is broken (non-POSIX).
23262
23263# Create a list of thread flags to try.  Items starting with a "-" are
23264# C compiler flags, and other items are library names, except for "none"
23265# which indicates that we try without any flags at all, and "pthread-config"
23266# which is a program returning the flags for the Pth emulation library.
23267
23268ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23269
23270# The ordering *is* (sometimes) important.  Some notes on the
23271# individual items follow:
23272
23273# pthreads: AIX (must check this before -lpthread)
23274# none: in case threads are in libc; should be tried before -Kthread and
23275#       other compiler flags to prevent continual compiler warnings
23276# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23277# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
23278#           (Note: HP C rejects this with "bad form for `-t' option")
23279# -pthreads: Solaris/gcc (Note: HP C also rejects)
23280# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23281#      doesn't hurt to check since this sometimes defines pthreads and
23282#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
23283#      is present but should not be used directly; and before -mthreads,
23284#      because the compiler interprets this as "-mt" + "-hreads")
23285# -mthreads: Mingw32/gcc, Lynx/gcc
23286# pthread: Linux, etcetera
23287# --thread-safe: KAI C++
23288# pthread-config: use pthread-config program (for GNU Pth library)
23289
23290case $host_os in
23291
23292        freebsd*)
23293
23294        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23295        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23296
23297        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
23298        ;;
23299
23300        hpux*)
23301
23302        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
23303        # multi-threading and also sets -lpthread."
23304
23305        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
23306        ;;
23307
23308        openedition*)
23309
23310        # IBM z/OS requires a feature-test macro to be defined in order to
23311        # enable POSIX threads at all, so give the user a hint if this is
23312        # not set. (We don't define these ourselves, as they can affect
23313        # other portions of the system API in unpredictable ways.)
23314
23315        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316/* end confdefs.h.  */
23317
23318#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
23319             AX_PTHREAD_ZOS_MISSING
23320#            endif
23321
23322_ACEOF
23323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23324  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
23325  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
23326$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
23327fi
23328rm -f conftest*
23329
23330        ;;
23331
23332        solaris*)
23333
23334        # On Solaris (at least, for some versions), libc contains stubbed
23335        # (non-functional) versions of the pthreads routines, so link-based
23336        # tests will erroneously succeed. (N.B.: The stubs are missing
23337        # pthread_cleanup_push, or rather a function called by this macro,
23338        # so we could check for that, but who knows whether they'll stub
23339        # that too in a future libc.)  So we'll check first for the
23340        # standard Solaris way of linking pthreads (-mt -lpthread).
23341
23342        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
23343        ;;
23344esac
23345
23346# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
23347
23348if test "x$GCC" = "xyes"; then :
23349  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
23350fi
23351
23352# The presence of a feature test macro requesting re-entrant function
23353# definitions is, on some systems, a strong hint that pthreads support is
23354# correctly enabled
23355
23356case $host_os in
23357        darwin* | hpux* | linux* | osf* | solaris*)
23358        ax_pthread_check_macro="_REENTRANT"
23359        ;;
23360
23361        aix*)
23362        ax_pthread_check_macro="_THREAD_SAFE"
23363        ;;
23364
23365        *)
23366        ax_pthread_check_macro="--"
23367        ;;
23368esac
23369if test "x$ax_pthread_check_macro" = "x--"; then :
23370  ax_pthread_check_cond=0
23371else
23372  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
23373fi
23374
23375# Are we compiling with Clang?
23376
23377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
23378$as_echo_n "checking whether $CC is Clang... " >&6; }
23379if ${ax_cv_PTHREAD_CLANG+:} false; then :
23380  $as_echo_n "(cached) " >&6
23381else
23382  ax_cv_PTHREAD_CLANG=no
23383     # Note that Autoconf sets GCC=yes for Clang as well as GCC
23384     if test "x$GCC" = "xyes"; then
23385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23386/* end confdefs.h.  */
23387/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
23388#            if defined(__clang__) && defined(__llvm__)
23389             AX_PTHREAD_CC_IS_CLANG
23390#            endif
23391
23392_ACEOF
23393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23394  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
23395  ax_cv_PTHREAD_CLANG=yes
23396fi
23397rm -f conftest*
23398
23399     fi
23400
23401fi
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
23403$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
23404ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
23405
23406ax_pthread_clang_warning=no
23407
23408# Clang needs special handling, because older versions handle the -pthread
23409# option in a rather... idiosyncratic way
23410
23411if test "x$ax_pthread_clang" = "xyes"; then
23412
23413        # Clang takes -pthread; it has never supported any other flag
23414
23415        # (Note 1: This will need to be revisited if a system that Clang
23416        # supports has POSIX threads in a separate library.  This tends not
23417        # to be the way of modern systems, but it's conceivable.)
23418
23419        # (Note 2: On some systems, notably Darwin, -pthread is not needed
23420        # to get POSIX threads support; the API is always present and
23421        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
23422        # -pthread does define _REENTRANT, and while the Darwin headers
23423        # ignore this macro, third-party headers might not.)
23424
23425        PTHREAD_CFLAGS="-pthread"
23426        PTHREAD_LIBS=
23427
23428        ax_pthread_ok=yes
23429
23430        # However, older versions of Clang make a point of warning the user
23431        # that, in an invocation where only linking and no compilation is
23432        # taking place, the -pthread option has no effect ("argument unused
23433        # during compilation").  They expect -pthread to be passed in only
23434        # when source code is being compiled.
23435        #
23436        # Problem is, this is at odds with the way Automake and most other
23437        # C build frameworks function, which is that the same flags used in
23438        # compilation (CFLAGS) are also used in linking.  Many systems
23439        # supported by AX_PTHREAD require exactly this for POSIX threads
23440        # support, and in fact it is often not straightforward to specify a
23441        # flag that is used only in the compilation phase and not in
23442        # linking.  Such a scenario is extremely rare in practice.
23443        #
23444        # Even though use of the -pthread flag in linking would only print
23445        # a warning, this can be a nuisance for well-run software projects
23446        # that build with -Werror.  So if the active version of Clang has
23447        # this misfeature, we search for an option to squash it.
23448
23449        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
23450$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
23451if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
23452  $as_echo_n "(cached) " >&6
23453else
23454  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
23455             # Create an alternate version of $ac_link that compiles and
23456             # links in two steps (.c -> .o, .o -> exe) instead of one
23457             # (.c -> exe), because the warning occurs only in the second
23458             # step
23459             ax_pthread_save_ac_link="$ac_link"
23460             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
23461             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
23462             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
23463             ax_pthread_save_CFLAGS="$CFLAGS"
23464             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
23465                if test "x$ax_pthread_try" = "xunknown"; then :
23466  break
23467fi
23468                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
23469                ac_link="$ax_pthread_save_ac_link"
23470                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471/* end confdefs.h.  */
23472int main(void){return 0;}
23473_ACEOF
23474if ac_fn_c_try_link "$LINENO"; then :
23475  ac_link="$ax_pthread_2step_ac_link"
23476                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23477/* end confdefs.h.  */
23478int main(void){return 0;}
23479_ACEOF
23480if ac_fn_c_try_link "$LINENO"; then :
23481  break
23482fi
23483rm -f core conftest.err conftest.$ac_objext \
23484    conftest$ac_exeext conftest.$ac_ext
23485
23486fi
23487rm -f core conftest.err conftest.$ac_objext \
23488    conftest$ac_exeext conftest.$ac_ext
23489             done
23490             ac_link="$ax_pthread_save_ac_link"
23491             CFLAGS="$ax_pthread_save_CFLAGS"
23492             if test "x$ax_pthread_try" = "x"; then :
23493  ax_pthread_try=no
23494fi
23495             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
23496
23497fi
23498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
23499$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
23500
23501        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
23502                no | unknown) ;;
23503                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
23504        esac
23505
23506fi # $ax_pthread_clang = yes
23507
23508if test "x$ax_pthread_ok" = "xno"; then
23509for ax_pthread_try_flag in $ax_pthread_flags; do
23510
23511        case $ax_pthread_try_flag in
23512                none)
23513                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
23514$as_echo_n "checking whether pthreads work without any flags... " >&6; }
23515                ;;
23516
23517                -mt,pthread)
23518                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
23519$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
23520                PTHREAD_CFLAGS="-mt"
23521                PTHREAD_LIBS="-lpthread"
23522                ;;
23523
23524                -*)
23525                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
23526$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
23527                PTHREAD_CFLAGS="$ax_pthread_try_flag"
23528                ;;
23529
23530                pthread-config)
23531                # Extract the first word of "pthread-config", so it can be a program name with args.
23532set dummy pthread-config; ac_word=$2
23533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23534$as_echo_n "checking for $ac_word... " >&6; }
23535if ${ac_cv_prog_ax_pthread_config+:} false; then :
23536  $as_echo_n "(cached) " >&6
23537else
23538  if test -n "$ax_pthread_config"; then
23539  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
23540else
23541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23542for as_dir in $PATH
23543do
23544  IFS=$as_save_IFS
23545  test -z "$as_dir" && as_dir=.
23546    for ac_exec_ext in '' $ac_executable_extensions; do
23547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23548    ac_cv_prog_ax_pthread_config="yes"
23549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23550    break 2
23551  fi
23552done
23553  done
23554IFS=$as_save_IFS
23555
23556  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
23557fi
23558fi
23559ax_pthread_config=$ac_cv_prog_ax_pthread_config
23560if test -n "$ax_pthread_config"; then
23561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
23562$as_echo "$ax_pthread_config" >&6; }
23563else
23564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23565$as_echo "no" >&6; }
23566fi
23567
23568
23569                if test "x$ax_pthread_config" = "xno"; then :
23570  continue
23571fi
23572                PTHREAD_CFLAGS="`pthread-config --cflags`"
23573                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23574                ;;
23575
23576                *)
23577                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
23578$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
23579                PTHREAD_LIBS="-l$ax_pthread_try_flag"
23580                ;;
23581        esac
23582
23583        ax_pthread_save_CFLAGS="$CFLAGS"
23584        ax_pthread_save_LIBS="$LIBS"
23585        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23586        LIBS="$PTHREAD_LIBS $LIBS"
23587
23588        # Check for various functions.  We must include pthread.h,
23589        # since some functions may be macros.  (On the Sequent, we
23590        # need a special flag -Kthread to make this header compile.)
23591        # We check for pthread_join because it is in -lpthread on IRIX
23592        # while pthread_create is in libc.  We check for pthread_attr_init
23593        # due to DEC craziness with -lpthreads.  We check for
23594        # pthread_cleanup_push because it is one of the few pthread
23595        # functions on Solaris that doesn't have a non-functional libc stub.
23596        # We try pthread_create on general principles.
23597
23598        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23599/* end confdefs.h.  */
23600#include <pthread.h>
23601#                       if $ax_pthread_check_cond
23602#                        error "$ax_pthread_check_macro must be defined"
23603#                       endif
23604                        static void routine(void *a) { a = 0; }
23605                        static void *start_routine(void *a) { return a; }
23606int
23607main ()
23608{
23609pthread_t th; pthread_attr_t attr;
23610                        pthread_create(&th, 0, start_routine, 0);
23611                        pthread_join(th, 0);
23612                        pthread_attr_init(&attr);
23613                        pthread_cleanup_push(routine, 0);
23614                        pthread_cleanup_pop(0) /* ; */
23615  ;
23616  return 0;
23617}
23618_ACEOF
23619if ac_fn_c_try_link "$LINENO"; then :
23620  ax_pthread_ok=yes
23621fi
23622rm -f core conftest.err conftest.$ac_objext \
23623    conftest$ac_exeext conftest.$ac_ext
23624
23625        CFLAGS="$ax_pthread_save_CFLAGS"
23626        LIBS="$ax_pthread_save_LIBS"
23627
23628        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
23629$as_echo "$ax_pthread_ok" >&6; }
23630        if test "x$ax_pthread_ok" = "xyes"; then :
23631  break
23632fi
23633
23634        PTHREAD_LIBS=""
23635        PTHREAD_CFLAGS=""
23636done
23637fi
23638
23639# Various other checks:
23640if test "x$ax_pthread_ok" = "xyes"; then
23641        ax_pthread_save_CFLAGS="$CFLAGS"
23642        ax_pthread_save_LIBS="$LIBS"
23643        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23644        LIBS="$PTHREAD_LIBS $LIBS"
23645
23646        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23647        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
23648$as_echo_n "checking for joinable pthread attribute... " >&6; }
23649if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
23650  $as_echo_n "(cached) " >&6
23651else
23652  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
23653             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23654                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655/* end confdefs.h.  */
23656#include <pthread.h>
23657int
23658main ()
23659{
23660int attr = $ax_pthread_attr; return attr /* ; */
23661  ;
23662  return 0;
23663}
23664_ACEOF
23665if ac_fn_c_try_link "$LINENO"; then :
23666  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
23667fi
23668rm -f core conftest.err conftest.$ac_objext \
23669    conftest$ac_exeext conftest.$ac_ext
23670             done
23671
23672fi
23673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
23674$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
23675        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
23676               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
23677               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
23678
23679cat >>confdefs.h <<_ACEOF
23680#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
23681_ACEOF
23682
23683               ax_pthread_joinable_attr_defined=yes
23684
23685fi
23686
23687        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
23688$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
23689if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
23690  $as_echo_n "(cached) " >&6
23691else
23692  ax_cv_PTHREAD_SPECIAL_FLAGS=no
23693             case $host_os in
23694             solaris*)
23695             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
23696             ;;
23697             esac
23698
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
23701$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
23702        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
23703               test "x$ax_pthread_special_flags_added" != "xyes"; then :
23704  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
23705               ax_pthread_special_flags_added=yes
23706fi
23707
23708        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
23709$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
23710if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
23711  $as_echo_n "(cached) " >&6
23712else
23713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23714/* end confdefs.h.  */
23715#include <pthread.h>
23716int
23717main ()
23718{
23719int i = PTHREAD_PRIO_INHERIT;
23720  ;
23721  return 0;
23722}
23723_ACEOF
23724if ac_fn_c_try_link "$LINENO"; then :
23725  ax_cv_PTHREAD_PRIO_INHERIT=yes
23726else
23727  ax_cv_PTHREAD_PRIO_INHERIT=no
23728fi
23729rm -f core conftest.err conftest.$ac_objext \
23730    conftest$ac_exeext conftest.$ac_ext
23731
23732fi
23733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
23734$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
23735        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
23736               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
23737
23738$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
23739
23740               ax_pthread_prio_inherit_defined=yes
23741
23742fi
23743
23744        CFLAGS="$ax_pthread_save_CFLAGS"
23745        LIBS="$ax_pthread_save_LIBS"
23746
23747        # More AIX lossage: compile with *_r variant
23748        if test "x$GCC" != "xyes"; then
23749            case $host_os in
23750                aix*)
23751                case "x/$CC" in #(
23752  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
23753    #handle absolute path differently from PATH based program lookup
23754                     case "x$CC" in #(
23755  x/*) :
23756    if as_fn_executable_p ${CC}_r; then :
23757  PTHREAD_CC="${CC}_r"
23758fi ;; #(
23759  *) :
23760    for ac_prog in ${CC}_r
23761do
23762  # Extract the first word of "$ac_prog", so it can be a program name with args.
23763set dummy $ac_prog; ac_word=$2
23764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23765$as_echo_n "checking for $ac_word... " >&6; }
23766if ${ac_cv_prog_PTHREAD_CC+:} false; then :
23767  $as_echo_n "(cached) " >&6
23768else
23769  if test -n "$PTHREAD_CC"; then
23770  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23771else
23772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23773for as_dir in $PATH
23774do
23775  IFS=$as_save_IFS
23776  test -z "$as_dir" && as_dir=.
23777    for ac_exec_ext in '' $ac_executable_extensions; do
23778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23779    ac_cv_prog_PTHREAD_CC="$ac_prog"
23780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23781    break 2
23782  fi
23783done
23784  done
23785IFS=$as_save_IFS
23786
23787fi
23788fi
23789PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23790if test -n "$PTHREAD_CC"; then
23791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
23792$as_echo "$PTHREAD_CC" >&6; }
23793else
23794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23795$as_echo "no" >&6; }
23796fi
23797
23798
23799  test -n "$PTHREAD_CC" && break
23800done
23801test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
23802 ;;
23803esac ;; #(
23804  *) :
23805     ;;
23806esac
23807                ;;
23808            esac
23809        fi
23810fi
23811
23812test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
23813
23814
23815
23816
23817
23818# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23819if test "x$ax_pthread_ok" = "xyes"; then
23820
23821$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
23822
23823        :
23824else
23825        ax_pthread_ok=no
23826
23827fi
23828ac_ext=c
23829ac_cpp='$CPP $CPPFLAGS'
23830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832ac_compiler_gnu=$ac_cv_c_compiler_gnu
23833
23834
23835
23836
23837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23838$as_echo_n "checking for ANSI C header files... " >&6; }
23839if ${ac_cv_header_stdc+:} false; then :
23840  $as_echo_n "(cached) " >&6
23841else
23842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23843/* end confdefs.h.  */
23844#include <stdlib.h>
23845#include <stdarg.h>
23846#include <string.h>
23847#include <float.h>
23848
23849int
23850main ()
23851{
23852
23853  ;
23854  return 0;
23855}
23856_ACEOF
23857if ac_fn_c_try_compile "$LINENO"; then :
23858  ac_cv_header_stdc=yes
23859else
23860  ac_cv_header_stdc=no
23861fi
23862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863
23864if test $ac_cv_header_stdc = yes; then
23865  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23867/* end confdefs.h.  */
23868#include <string.h>
23869
23870_ACEOF
23871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23872  $EGREP "memchr" >/dev/null 2>&1; then :
23873
23874else
23875  ac_cv_header_stdc=no
23876fi
23877rm -f conftest*
23878
23879fi
23880
23881if test $ac_cv_header_stdc = yes; then
23882  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23884/* end confdefs.h.  */
23885#include <stdlib.h>
23886
23887_ACEOF
23888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23889  $EGREP "free" >/dev/null 2>&1; then :
23890
23891else
23892  ac_cv_header_stdc=no
23893fi
23894rm -f conftest*
23895
23896fi
23897
23898if test $ac_cv_header_stdc = yes; then
23899  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23900  if test "$cross_compiling" = yes; then :
23901  :
23902else
23903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904/* end confdefs.h.  */
23905#include <ctype.h>
23906#include <stdlib.h>
23907#if ((' ' & 0x0FF) == 0x020)
23908# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23909# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23910#else
23911# define ISLOWER(c) \
23912		   (('a' <= (c) && (c) <= 'i') \
23913		     || ('j' <= (c) && (c) <= 'r') \
23914		     || ('s' <= (c) && (c) <= 'z'))
23915# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23916#endif
23917
23918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23919int
23920main ()
23921{
23922  int i;
23923  for (i = 0; i < 256; i++)
23924    if (XOR (islower (i), ISLOWER (i))
23925	|| toupper (i) != TOUPPER (i))
23926      return 2;
23927  return 0;
23928}
23929_ACEOF
23930if ac_fn_c_try_run "$LINENO"; then :
23931
23932else
23933  ac_cv_header_stdc=no
23934fi
23935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23936  conftest.$ac_objext conftest.beam conftest.$ac_ext
23937fi
23938
23939fi
23940fi
23941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23942$as_echo "$ac_cv_header_stdc" >&6; }
23943if test $ac_cv_header_stdc = yes; then
23944
23945$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23946
23947fi
23948
23949
23950for ac_header in xmmintrin.h emmintrin.h smmintrin.h
23951do :
23952  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23953ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23955  cat >>confdefs.h <<_ACEOF
23956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23957_ACEOF
23958
23959fi
23960
23961done
23962
23963
23964ac_fn_c_check_decl "$LINENO" "__i386__" "ac_cv_have_decl___i386__" "$ac_includes_default"
23965if test "x$ac_cv_have_decl___i386__" = xyes; then :
23966  ac_have_decl=1
23967else
23968  ac_have_decl=0
23969fi
23970
23971cat >>confdefs.h <<_ACEOF
23972#define HAVE_DECL___I386__ $ac_have_decl
23973_ACEOF
23974if test $ac_have_decl = 1; then :
23975  HAVE_X86=1
23976fi
23977
23978ac_fn_c_check_decl "$LINENO" "__x86_64__" "ac_cv_have_decl___x86_64__" "$ac_includes_default"
23979if test "x$ac_cv_have_decl___x86_64__" = xyes; then :
23980  ac_have_decl=1
23981else
23982  ac_have_decl=0
23983fi
23984
23985cat >>confdefs.h <<_ACEOF
23986#define HAVE_DECL___X86_64__ $ac_have_decl
23987_ACEOF
23988if test $ac_have_decl = 1; then :
23989  HAVE_X86=1
23990fi
23991
23992
23993SSE_CFLAGS="-msse"
23994SSE2_CFLAGS="-msse2"
23995SSE41_CFLAGS="-msse4.1"
23996
23997
23998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $SSE_CFLAGS" >&5
23999$as_echo_n "checking to see if compiler understands $SSE_CFLAGS... " >&6; }
24000
24001  save_CFLAGS="$CFLAGS"
24002  CFLAGS="$CFLAGS $SSE_CFLAGS"
24003
24004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24005/* end confdefs.h.  */
24006
24007int
24008main ()
24009{
24010
24011  ;
24012  return 0;
24013}
24014_ACEOF
24015if ac_fn_c_try_compile "$LINENO"; then :
24016  flag_ok=yes
24017else
24018  flag_ok=no
24019fi
24020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24021  CFLAGS="$save_CFLAGS"
24022
24023  if test "X$flag_ok" = Xyes ; then
24024    HAVE_SSE=1
24025    true
24026  else
24027    HAVE_SSE=0
24028    true
24029  fi
24030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24031$as_echo "$flag_ok" >&6; }
24032
24033
24034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $SSE2_CFLAGS" >&5
24035$as_echo_n "checking to see if compiler understands $SSE2_CFLAGS... " >&6; }
24036
24037  save_CFLAGS="$CFLAGS"
24038  CFLAGS="$CFLAGS $SSE2_CFLAGS"
24039
24040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041/* end confdefs.h.  */
24042
24043int
24044main ()
24045{
24046
24047  ;
24048  return 0;
24049}
24050_ACEOF
24051if ac_fn_c_try_compile "$LINENO"; then :
24052  flag_ok=yes
24053else
24054  flag_ok=no
24055fi
24056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057  CFLAGS="$save_CFLAGS"
24058
24059  if test "X$flag_ok" = Xyes ; then
24060    HAVE_SSE2=1
24061    true
24062  else
24063    HAVE_SSE2=0
24064    true
24065  fi
24066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24067$as_echo "$flag_ok" >&6; }
24068
24069
24070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $SSE41_CFLAGS" >&5
24071$as_echo_n "checking to see if compiler understands $SSE41_CFLAGS... " >&6; }
24072
24073  save_CFLAGS="$CFLAGS"
24074  CFLAGS="$CFLAGS $SSE41_CFLAGS"
24075
24076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077/* end confdefs.h.  */
24078
24079int
24080main ()
24081{
24082
24083  ;
24084  return 0;
24085}
24086_ACEOF
24087if ac_fn_c_try_compile "$LINENO"; then :
24088  flag_ok=yes
24089else
24090  flag_ok=no
24091fi
24092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093  CFLAGS="$save_CFLAGS"
24094
24095  if test "X$flag_ok" = Xyes ; then
24096    HAVE_SSE41=1
24097    true
24098  else
24099    HAVE_SSE41=0
24100    true
24101  fi
24102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24103$as_echo "$flag_ok" >&6; }
24104
24105
24106 if test "x${HAVE_X86}" = "x1"; then
24107  HAVE_X86_TRUE=
24108  HAVE_X86_FALSE='#'
24109else
24110  HAVE_X86_TRUE='#'
24111  HAVE_X86_FALSE=
24112fi
24113
24114
24115
24116cat >>confdefs.h <<_ACEOF
24117#define HAVE_SSE $HAVE_SSE
24118_ACEOF
24119
24120
24121cat >>confdefs.h <<_ACEOF
24122#define HAVE_SSE2 $HAVE_SSE2
24123_ACEOF
24124
24125
24126cat >>confdefs.h <<_ACEOF
24127#define HAVE_SSE41 $HAVE_SSE41
24128_ACEOF
24129
24130
24131
24132
24133
24134
24135for ac_header in sys/socket.h
24136do :
24137  ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default
24138"
24139if test "x$ac_cv_header_sys_socket_h" = xyes; then :
24140  cat >>confdefs.h <<_ACEOF
24141#define HAVE_SYS_SOCKET_H 1
24142_ACEOF
24143 HAVE_SYS_SOCKET_H="yes"
24144else
24145  HAVE_SYS_SOCKET_H="no"
24146fi
24147
24148done
24149
24150 if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
24151  HAVE_SYS_SOCKET_H_TRUE=
24152  HAVE_SYS_SOCKET_H_FALSE='#'
24153else
24154  HAVE_SYS_SOCKET_H_TRUE='#'
24155  HAVE_SYS_SOCKET_H_FALSE=
24156fi
24157
24158
24159for ac_header in winsock2.h
24160do :
24161  ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default
24162"
24163if test "x$ac_cv_header_winsock2_h" = xyes; then :
24164  cat >>confdefs.h <<_ACEOF
24165#define HAVE_WINSOCK2_H 1
24166_ACEOF
24167 HAVE_WINSOCK2_H=yes
24168else
24169  HAVE_WINSOCK2_H=no
24170fi
24171
24172done
24173
24174 if test "x$HAVE_WINSOCK2_H" = "xyes"; then
24175  HAVE_WINSOCK2_H_TRUE=
24176  HAVE_WINSOCK2_H_FALSE='#'
24177else
24178  HAVE_WINSOCK2_H_TRUE='#'
24179  HAVE_WINSOCK2_H_FALSE=
24180fi
24181
24182if test "x$HAVE_WINSOCK2_H" = "xyes"; then
24183  WIN32_LIBS="-lws2_32"
24184
24185fi
24186
24187for ac_header in process.h sys/types.h sys/wait.h sys/stat.h
24188do :
24189  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24190ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24191"
24192if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24193  cat >>confdefs.h <<_ACEOF
24194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24195_ACEOF
24196
24197fi
24198
24199done
24200
24201
24202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON support in current arch/CFLAGS" >&5
24203$as_echo_n "checking for ARM NEON support in current arch/CFLAGS... " >&6; }
24204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205/* end confdefs.h.  */
24206
24207
24208  #include <arm_neon.h>
24209  int32x4_t __attribute__((used)) testfunc(int16_t *a, int16_t *b) {
24210      asm volatile ("vmull.s16 q0, d0, d0" : : : "q0");
24211      return vmull_s16(vld1_s16(a), vld1_s16(b));
24212  }
24213
24214int
24215main ()
24216{
24217
24218  ;
24219  return 0;
24220}
24221_ACEOF
24222if ac_fn_c_try_link "$LINENO"; then :
24223
24224
24225$as_echo "#define HAVE_ARM_NEON /**/" >>confdefs.h
24226
24227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24228$as_echo "yes" >&6; }
24229
24230else
24231
24232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24233$as_echo "no" >&6; }
24234
24235fi
24236rm -f core conftest.err conftest.$ac_objext \
24237    conftest$ac_exeext conftest.$ac_ext
24238
24239# ------ AX CREATE STDINT H -------------------------------------
24240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
24241$as_echo_n "checking for stdint types... " >&6; }
24242ac_stdint_h=`echo _stdint.h`
24243# try to shortcircuit - if the default include path of the compiler
24244# can find a "stdint.h" header then we assume that all compilers can.
24245if ${ac_cv_header_stdint_t+:} false; then :
24246  $as_echo_n "(cached) " >&6
24247else
24248
24249old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
24250old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
24251old_CFLAGS="$CFLAGS"     ; CFLAGS=""
24252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24253/* end confdefs.h.  */
24254#include <stdint.h>
24255int
24256main ()
24257{
24258int_least32_t v = 0;
24259  ;
24260  return 0;
24261}
24262_ACEOF
24263if ac_fn_c_try_compile "$LINENO"; then :
24264  ac_cv_stdint_result="(assuming C99 compatible system)"
24265 ac_cv_header_stdint_t="stdint.h";
24266else
24267  ac_cv_header_stdint_t=""
24268fi
24269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24270if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
24271CFLAGS="-std=c99"
24272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273/* end confdefs.h.  */
24274#include <stdint.h>
24275int
24276main ()
24277{
24278int_least32_t v = 0;
24279  ;
24280  return 0;
24281}
24282_ACEOF
24283if ac_fn_c_try_compile "$LINENO"; then :
24284  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
24285$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
24286fi
24287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288fi
24289CXXFLAGS="$old_CXXFLAGS"
24290CPPFLAGS="$old_CPPFLAGS"
24291CFLAGS="$old_CFLAGS"
24292fi
24293
24294
24295v="... $ac_cv_header_stdint_h"
24296if test "$ac_stdint_h" = "stdint.h" ; then
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
24298$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
24299elif test "$ac_stdint_h" = "inttypes.h" ; then
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
24301$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
24302elif test "_$ac_cv_header_stdint_t" = "_" ; then
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
24304$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
24305else
24306 ac_cv_header_stdint="$ac_cv_header_stdint_t"
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
24308$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
24309fi
24310
24311if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
24312
24313
24314inttype_headers=`echo  | sed -e 's/,/ /g'`
24315
24316ac_cv_stdint_result="(no helpful system typedefs seen)"
24317
24318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24319$as_echo_n "checking for stdint uintptr_t... " >&6; }
24320if ${ac_cv_header_stdint_x+:} false; then :
24321  $as_echo_n "(cached) " >&6
24322else
24323
24324 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
24325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24326$as_echo "(..)" >&6; }
24327  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
24328  do
24329   unset ac_cv_type_uintptr_t
24330   unset ac_cv_type_uint64_t
24331   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
24332"
24333if test "x$ac_cv_type_uintptr_t" = xyes; then :
24334  ac_cv_header_stdint_x=$i
24335else
24336  continue
24337fi
24338
24339   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24340"
24341if test "x$ac_cv_type_uint64_t" = xyes; then :
24342  and64="/uint64_t"
24343else
24344  and64=""
24345fi
24346
24347   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
24348 break
24349  done
24350  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24351$as_echo_n "checking for stdint uintptr_t... " >&6; }
24352
24353fi
24354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
24355$as_echo "$ac_cv_header_stdint_x" >&6; }
24356
24357
24358if test "_$ac_cv_header_stdint_x" = "_" ; then
24359
24360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24361$as_echo_n "checking for stdint uint32_t... " >&6; }
24362if ${ac_cv_header_stdint_o+:} false; then :
24363  $as_echo_n "(cached) " >&6
24364else
24365
24366 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
24367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24368$as_echo "(..)" >&6; }
24369  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
24370  do
24371   unset ac_cv_type_uint32_t
24372   unset ac_cv_type_uint64_t
24373   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
24374"
24375if test "x$ac_cv_type_uint32_t" = xyes; then :
24376  ac_cv_header_stdint_o=$i
24377else
24378  continue
24379fi
24380
24381   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24382"
24383if test "x$ac_cv_type_uint64_t" = xyes; then :
24384  and64="/uint64_t"
24385else
24386  and64=""
24387fi
24388
24389   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
24390 break
24391   break;
24392  done
24393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24394$as_echo_n "checking for stdint uint32_t... " >&6; }
24395
24396fi
24397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
24398$as_echo "$ac_cv_header_stdint_o" >&6; }
24399
24400fi
24401
24402if test "_$ac_cv_header_stdint_x" = "_" ; then
24403if test "_$ac_cv_header_stdint_o" = "_" ; then
24404
24405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24406$as_echo_n "checking for stdint u_int32_t... " >&6; }
24407if ${ac_cv_header_stdint_u+:} false; then :
24408  $as_echo_n "(cached) " >&6
24409else
24410
24411 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
24412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24413$as_echo "(..)" >&6; }
24414  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
24415   unset ac_cv_type_u_int32_t
24416   unset ac_cv_type_u_int64_t
24417   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
24418"
24419if test "x$ac_cv_type_u_int32_t" = xyes; then :
24420  ac_cv_header_stdint_u=$i
24421else
24422  continue
24423fi
24424
24425   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
24426"
24427if test "x$ac_cv_type_u_int64_t" = xyes; then :
24428  and64="/u_int64_t"
24429else
24430  and64=""
24431fi
24432
24433   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
24434 break
24435   break;
24436  done
24437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24438$as_echo_n "checking for stdint u_int32_t... " >&6; }
24439
24440fi
24441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
24442$as_echo "$ac_cv_header_stdint_u" >&6; }
24443
24444fi fi
24445
24446if test "_$ac_cv_header_stdint_x" = "_" ; then
24447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
24448$as_echo_n "checking for stdint datatype model... " >&6; }
24449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24450$as_echo "(..)" >&6; }
24451
24452   # The cast to long int works around a bug in the HP C Compiler
24453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24455# This bug is HP SR number 8606223364.
24456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
24457$as_echo_n "checking size of char... " >&6; }
24458if ${ac_cv_sizeof_char+:} false; then :
24459  $as_echo_n "(cached) " >&6
24460else
24461  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
24462
24463else
24464  if test "$ac_cv_type_char" = yes; then
24465     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24467as_fn_error 77 "cannot compute sizeof (char)
24468See \`config.log' for more details" "$LINENO" 5; }
24469   else
24470     ac_cv_sizeof_char=0
24471   fi
24472fi
24473
24474fi
24475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
24476$as_echo "$ac_cv_sizeof_char" >&6; }
24477
24478
24479
24480cat >>confdefs.h <<_ACEOF
24481#define SIZEOF_CHAR $ac_cv_sizeof_char
24482_ACEOF
24483
24484
24485   # The cast to long int works around a bug in the HP C Compiler
24486# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24487# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24488# This bug is HP SR number 8606223364.
24489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24490$as_echo_n "checking size of short... " >&6; }
24491if ${ac_cv_sizeof_short+:} false; then :
24492  $as_echo_n "(cached) " >&6
24493else
24494  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
24495
24496else
24497  if test "$ac_cv_type_short" = yes; then
24498     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24500as_fn_error 77 "cannot compute sizeof (short)
24501See \`config.log' for more details" "$LINENO" 5; }
24502   else
24503     ac_cv_sizeof_short=0
24504   fi
24505fi
24506
24507fi
24508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24509$as_echo "$ac_cv_sizeof_short" >&6; }
24510
24511
24512
24513cat >>confdefs.h <<_ACEOF
24514#define SIZEOF_SHORT $ac_cv_sizeof_short
24515_ACEOF
24516
24517
24518   # The cast to long int works around a bug in the HP C Compiler
24519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24521# This bug is HP SR number 8606223364.
24522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24523$as_echo_n "checking size of int... " >&6; }
24524if ${ac_cv_sizeof_int+:} false; then :
24525  $as_echo_n "(cached) " >&6
24526else
24527  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
24528
24529else
24530  if test "$ac_cv_type_int" = yes; then
24531     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24533as_fn_error 77 "cannot compute sizeof (int)
24534See \`config.log' for more details" "$LINENO" 5; }
24535   else
24536     ac_cv_sizeof_int=0
24537   fi
24538fi
24539
24540fi
24541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24542$as_echo "$ac_cv_sizeof_int" >&6; }
24543
24544
24545
24546cat >>confdefs.h <<_ACEOF
24547#define SIZEOF_INT $ac_cv_sizeof_int
24548_ACEOF
24549
24550
24551   # The cast to long int works around a bug in the HP C Compiler
24552# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24553# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24554# This bug is HP SR number 8606223364.
24555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24556$as_echo_n "checking size of long... " >&6; }
24557if ${ac_cv_sizeof_long+:} false; then :
24558  $as_echo_n "(cached) " >&6
24559else
24560  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
24561
24562else
24563  if test "$ac_cv_type_long" = yes; then
24564     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24566as_fn_error 77 "cannot compute sizeof (long)
24567See \`config.log' for more details" "$LINENO" 5; }
24568   else
24569     ac_cv_sizeof_long=0
24570   fi
24571fi
24572
24573fi
24574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24575$as_echo "$ac_cv_sizeof_long" >&6; }
24576
24577
24578
24579cat >>confdefs.h <<_ACEOF
24580#define SIZEOF_LONG $ac_cv_sizeof_long
24581_ACEOF
24582
24583
24584   # The cast to long int works around a bug in the HP C Compiler
24585# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24586# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24587# This bug is HP SR number 8606223364.
24588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
24589$as_echo_n "checking size of void*... " >&6; }
24590if ${ac_cv_sizeof_voidp+:} false; then :
24591  $as_echo_n "(cached) " >&6
24592else
24593  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
24594
24595else
24596  if test "$ac_cv_type_voidp" = yes; then
24597     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24599as_fn_error 77 "cannot compute sizeof (void*)
24600See \`config.log' for more details" "$LINENO" 5; }
24601   else
24602     ac_cv_sizeof_voidp=0
24603   fi
24604fi
24605
24606fi
24607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
24608$as_echo "$ac_cv_sizeof_voidp" >&6; }
24609
24610
24611
24612cat >>confdefs.h <<_ACEOF
24613#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
24614_ACEOF
24615
24616
24617   ac_cv_char_data_model=""
24618   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
24619   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
24620   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
24621   ac_cv_long_data_model=""
24622   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
24623   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
24624   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
24625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
24626$as_echo_n "checking data model... " >&6; }
24627   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
24628    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
24629    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
24630    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
24631    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
24632    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
24633    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
24634    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
24635    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
24636    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
24637    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
24638    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
24639    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
24640    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
24641    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
24642    222/*|333/*|444/*|666/*|888/*) :
24643                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
24644     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
24645   esac
24646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
24647$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
24648
24649fi
24650
24651if test "_$ac_cv_header_stdint_x" != "_" ; then
24652   ac_cv_header_stdint="$ac_cv_header_stdint_x"
24653elif  test "_$ac_cv_header_stdint_o" != "_" ; then
24654   ac_cv_header_stdint="$ac_cv_header_stdint_o"
24655elif  test "_$ac_cv_header_stdint_u" != "_" ; then
24656   ac_cv_header_stdint="$ac_cv_header_stdint_u"
24657else
24658   ac_cv_header_stdint="stddef.h"
24659fi
24660
24661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
24662$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
24663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
24664$as_echo "($ac_cv_header_stdint)" >&6; }
24665unset ac_cv_type_int_least32_t
24666unset ac_cv_type_int_fast32_t
24667ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
24668"
24669if test "x$ac_cv_type_int_least32_t" = xyes; then :
24670
24671fi
24672
24673ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
24674"
24675if test "x$ac_cv_type_int_fast32_t" = xyes; then :
24676
24677fi
24678
24679ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
24680"
24681if test "x$ac_cv_type_intmax_t" = xyes; then :
24682
24683fi
24684
24685
24686fi # shortcircut to system "stdint.h"
24687# ------------------ PREPARE VARIABLES ------------------------------
24688if test "$GCC" = "yes" ; then
24689ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
24690else
24691ac_cv_stdint_message="using $CC"
24692fi
24693
24694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
24695$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
24696
24697# ----------------- DONE inttypes.h checks START header -------------
24698ac_config_commands="$ac_config_commands $ac_stdint_h"
24699
24700
24701
24702for ac_func in localtime_r gmtime_r
24703do :
24704  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24705ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24706if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24707  cat >>confdefs.h <<_ACEOF
24708#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24709_ACEOF
24710
24711fi
24712done
24713
24714
24715LIBS_SAVE=$LIBS
24716LIBS="$LIBS $LIBM"
24717for ac_func in log2
24718do :
24719  ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2"
24720if test "x$ac_cv_func_log2" = xyes; then :
24721  cat >>confdefs.h <<_ACEOF
24722#define HAVE_LOG2 1
24723_ACEOF
24724
24725fi
24726done
24727
24728LIBS=$LIBS_SAVE
24729
24730
24731
24732
24733
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24735$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
24736if ${ac_cv_sys_largefile_source+:} false; then :
24737  $as_echo_n "(cached) " >&6
24738else
24739  while :; do
24740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24741/* end confdefs.h.  */
24742#include <sys/types.h> /* for off_t */
24743     #include <stdio.h>
24744int
24745main ()
24746{
24747int (*fp) (FILE *, off_t, int) = fseeko;
24748     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24749  ;
24750  return 0;
24751}
24752_ACEOF
24753if ac_fn_c_try_link "$LINENO"; then :
24754  ac_cv_sys_largefile_source=no; break
24755fi
24756rm -f core conftest.err conftest.$ac_objext \
24757    conftest$ac_exeext conftest.$ac_ext
24758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24759/* end confdefs.h.  */
24760#define _LARGEFILE_SOURCE 1
24761#include <sys/types.h> /* for off_t */
24762     #include <stdio.h>
24763int
24764main ()
24765{
24766int (*fp) (FILE *, off_t, int) = fseeko;
24767     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
24768  ;
24769  return 0;
24770}
24771_ACEOF
24772if ac_fn_c_try_link "$LINENO"; then :
24773  ac_cv_sys_largefile_source=1; break
24774fi
24775rm -f core conftest.err conftest.$ac_objext \
24776    conftest$ac_exeext conftest.$ac_ext
24777  ac_cv_sys_largefile_source=unknown
24778  break
24779done
24780fi
24781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24782$as_echo "$ac_cv_sys_largefile_source" >&6; }
24783case $ac_cv_sys_largefile_source in #(
24784  no | unknown) ;;
24785  *)
24786cat >>confdefs.h <<_ACEOF
24787#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24788_ACEOF
24789;;
24790esac
24791rm -rf conftest*
24792
24793# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
24794# in glibc 2.1.3, but that breaks too many other things.
24795# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
24796if test $ac_cv_sys_largefile_source != unknown; then
24797
24798$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
24799
24800fi
24801
24802
24803save_libs=$LIBS
24804LIBS="$LIBS $LIBM"
24805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
24806$as_echo_n "checking for lrint... " >&6; }
24807if ${ac_cv_c99_lrint+:} false; then :
24808  $as_echo_n "(cached) " >&6
24809else
24810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811/* end confdefs.h.  */
24812
24813#define		_ISOC9X_SOURCE	1
24814#define 	_ISOC99_SOURCE	1
24815#define		__USE_ISOC99	1
24816#define 	__USE_ISOC9X	1
24817#include	<math.h>
24818int
24819main ()
24820{
24821	int value = lrint (0.432) ;
24822  ;
24823  return 0;
24824}
24825_ACEOF
24826if ac_fn_c_try_link "$LINENO"; then :
24827  ac_cv_c99_lrint=yes
24828else
24829  ac_cv_c99_lrint=no
24830fi
24831rm -f core conftest.err conftest.$ac_objext \
24832    conftest$ac_exeext conftest.$ac_ext
24833fi
24834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
24835$as_echo "$ac_cv_c99_lrint" >&6; }
24836if test $ac_cv_c99_lrint = yes; then
24837
24838$as_echo "#define HAVE_LRINT 1" >>confdefs.h
24839
24840fi
24841
24842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
24843$as_echo_n "checking for lrintf... " >&6; }
24844if ${ac_cv_c99_lrintf+:} false; then :
24845  $as_echo_n "(cached) " >&6
24846else
24847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24848/* end confdefs.h.  */
24849
24850#define		_ISOC9X_SOURCE	1
24851#define 	_ISOC99_SOURCE	1
24852#define		__USE_ISOC99	1
24853#define 	__USE_ISOC9X	1
24854#include	<math.h>
24855int
24856main ()
24857{
24858	int value = lrintf (0.432) ;
24859  ;
24860  return 0;
24861}
24862_ACEOF
24863if ac_fn_c_try_link "$LINENO"; then :
24864  ac_cv_c99_lrintf=yes
24865else
24866  ac_cv_c99_lrintf=no
24867fi
24868rm -f core conftest.err conftest.$ac_objext \
24869    conftest$ac_exeext conftest.$ac_ext
24870fi
24871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
24872$as_echo "$ac_cv_c99_lrintf" >&6; }
24873if test $ac_cv_c99_lrintf = yes; then
24874
24875$as_echo "#define HAVE_LRINTF 1" >>confdefs.h
24876
24877fi
24878
24879LIBS=$save_libs
24880
24881
24882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __PRETTY_FUNCTION__" >&5
24883$as_echo_n "checking whether $CC implements __PRETTY_FUNCTION__... " >&6; }
24884  if ${gst_cv_have_pretty_function+:} false; then :
24885  $as_echo_n "(cached) " >&6
24886else
24887
24888    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24889/* end confdefs.h.  */
24890#include <stdio.h>
24891int
24892main ()
24893{
24894printf("%s", __PRETTY_FUNCTION__);
24895  ;
24896  return 0;
24897}
24898_ACEOF
24899if ac_fn_c_try_link "$LINENO"; then :
24900  gst_cv_have_pretty_function=yes
24901else
24902  gst_cv_have_pretty_function=no
24903fi
24904rm -f core conftest.err conftest.$ac_objext \
24905    conftest$ac_exeext conftest.$ac_ext
24906
24907fi
24908
24909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_pretty_function" >&5
24910$as_echo "$gst_cv_have_pretty_function" >&6; }
24911  if test "$gst_cv_have_pretty_function" = yes; then
24912
24913$as_echo "#define HAVE_PRETTY_FUNCTION 1" >>confdefs.h
24914
24915  fi
24916
24917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
24918$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
24919  if ${gst_cv_have_function+:} false; then :
24920  $as_echo_n "(cached) " >&6
24921else
24922
24923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924/* end confdefs.h.  */
24925#include <stdio.h>
24926int
24927main ()
24928{
24929printf("%s", __FUNCTION__);
24930  ;
24931  return 0;
24932}
24933_ACEOF
24934if ac_fn_c_try_link "$LINENO"; then :
24935  gst_cv_have_function=yes
24936else
24937  gst_cv_have_function=no
24938fi
24939rm -f core conftest.err conftest.$ac_objext \
24940    conftest$ac_exeext conftest.$ac_ext
24941
24942fi
24943
24944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_function" >&5
24945$as_echo "$gst_cv_have_function" >&6; }
24946  if test "$gst_cv_have_function" = yes; then
24947
24948$as_echo "#define HAVE_FUNCTION 1" >>confdefs.h
24949
24950  fi
24951
24952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
24953$as_echo_n "checking whether $CC implements __func__... " >&6; }
24954  if ${gst_cv_have_func+:} false; then :
24955  $as_echo_n "(cached) " >&6
24956else
24957
24958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24959/* end confdefs.h.  */
24960#include <stdio.h>
24961int
24962main ()
24963{
24964printf("%s", __func__);
24965  ;
24966  return 0;
24967}
24968_ACEOF
24969if ac_fn_c_try_link "$LINENO"; then :
24970  gst_cv_have_func=yes
24971else
24972  gst_cv_have_func=no
24973fi
24974rm -f core conftest.err conftest.$ac_objext \
24975    conftest$ac_exeext conftest.$ac_ext
24976
24977fi
24978
24979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_func" >&5
24980$as_echo "$gst_cv_have_func" >&6; }
24981  if test "$gst_cv_have_func" = yes; then
24982
24983$as_echo "#define HAVE_FUNC 1" >>confdefs.h
24984
24985  fi
24986
24987  if test "$gst_cv_have_pretty_function" = yes; then
24988    function=__PRETTY_FUNCTION__
24989  else
24990    if test "$gst_cv_have_function" = yes; then
24991      function=__FUNCTION__
24992    else
24993      if test "$gst_cv_have_func" = yes; then
24994        function=__func__
24995      else
24996        function=\"\"
24997      fi
24998    fi
24999  fi
25000
25001cat >>confdefs.h <<_ACEOF
25002#define GST_FUNCTION $function
25003_ACEOF
25004
25005
25006
25007
25008GLIB_REQ=2.40.0
25009
25010
25011
25012    GLIB_REQ=$GLIB_REQ
25013  if test "x$GLIB_REQ" = "x"
25014  then
25015    as_fn_error $? "Please specify a required version for GLib 2.0" "$LINENO" 5
25016  fi
25017
25018
25019
25020  which="glib-2.0 >= $GLIB_REQ gobject-2.0 gmodule-no-export-2.0"
25021    required="no"
25022
25023
25024pkg_failed=no
25025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
25026$as_echo_n "checking for GLIB... " >&6; }
25027
25028if test -n "$PKG_CONFIG"; then
25029    if test -n "$GLIB_CFLAGS"; then
25030        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
25031    else
25032        if test -n "$PKG_CONFIG" && \
25033    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
25034  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
25035  ac_status=$?
25036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037  test $ac_status = 0; }; then
25038  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
25039else
25040  pkg_failed=yes
25041fi
25042    fi
25043else
25044	pkg_failed=untried
25045fi
25046if test -n "$PKG_CONFIG"; then
25047    if test -n "$GLIB_LIBS"; then
25048        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
25049    else
25050        if test -n "$PKG_CONFIG" && \
25051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
25052  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
25053  ac_status=$?
25054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25055  test $ac_status = 0; }; then
25056  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
25057else
25058  pkg_failed=yes
25059fi
25060    fi
25061else
25062	pkg_failed=untried
25063fi
25064
25065
25066
25067if test $pkg_failed = yes; then
25068
25069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25070        _pkg_short_errors_supported=yes
25071else
25072        _pkg_short_errors_supported=no
25073fi
25074        if test $_pkg_short_errors_supported = yes; then
25075	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
25076        else
25077	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
25078        fi
25079	# Put the nasty error message in config.log where it belongs
25080	echo "$GLIB_PKG_ERRORS" >&5
25081
25082	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25083$as_echo "no" >&6; }
25084
25085      HAVE_GLIB="no"
25086      if test "x$required" = "xyes"; then
25087        as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
25088      else
25089        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
25090$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
25091      fi
25092
25093elif test $pkg_failed = untried; then
25094
25095      HAVE_GLIB="no"
25096      if test "x$required" = "xyes"; then
25097        as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
25098      else
25099        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
25100$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
25101      fi
25102
25103else
25104	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
25105	GLIB_LIBS=$pkg_cv_GLIB_LIBS
25106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25107$as_echo "yes" >&6; }
25108
25109      HAVE_GLIB="yes"
25110
25111fi
25112
25113
25114
25115  if test "x$HAVE_GLIB" = "xno"; then
25116    as_fn_error $? "This package requires GLib >= $GLIB_REQ to compile." "$LINENO" 5
25117  fi
25118
25119        GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_THREADS_MANDATORY"
25120
25121    if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
25122    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_DEPRECATED"
25123  fi
25124
25125  # Check whether --enable-gobject-cast-checks was given.
25126if test "${enable_gobject_cast_checks+set}" = set; then :
25127  enableval=$enable_gobject_cast_checks; enable_gobject_cast_checks=$enableval
25128else
25129  enable_gobject_cast_checks=auto
25130fi
25131
25132
25133  if test "x$enable_gobject_cast_checks" = "xauto"; then
25134        if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
25135      enable_gobject_cast_checks=yes
25136    else
25137      enable_gobject_cast_checks=no
25138    fi
25139  fi
25140
25141  if test "x$enable_gobject_cast_checks" = "xno"; then
25142    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS"
25143  fi
25144
25145  # Check whether --enable-glib-asserts was given.
25146if test "${enable_glib_asserts+set}" = set; then :
25147  enableval=$enable_glib_asserts; enable_glib_assertions=$enableval
25148else
25149  enable_glib_assertions=yes
25150fi
25151
25152
25153  if test "x$enable_glib_assertions" = "xno"; then
25154    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_ASSERT"
25155  fi
25156
25157                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-genmarshal" >&5
25158$as_echo_n "checking for glib-genmarshal... " >&6; }
25159  if test "x$GLIB_GENMARSHAL" != "x"; then
25160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from environment)" >&5
25161$as_echo "$GLIB_GENMARSHAL (from environment)" >&6; }
25162  else
25163    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
25164    if $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
25165      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from pkg-config path)" >&5
25166$as_echo "$GLIB_GENMARSHAL (from pkg-config path)" >&6; }
25167    else
25168      # Extract the first word of "glib-genmarshal", so it can be a program name with args.
25169set dummy glib-genmarshal; ac_word=$2
25170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171$as_echo_n "checking for $ac_word... " >&6; }
25172if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
25173  $as_echo_n "(cached) " >&6
25174else
25175  case $GLIB_GENMARSHAL in
25176  [\\/]* | ?:[\\/]*)
25177  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
25178  ;;
25179  *)
25180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25181for as_dir in $PATH
25182do
25183  IFS=$as_save_IFS
25184  test -z "$as_dir" && as_dir=.
25185    for ac_exec_ext in '' $ac_executable_extensions; do
25186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25187    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
25188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25189    break 2
25190  fi
25191done
25192  done
25193IFS=$as_save_IFS
25194
25195  test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="glib-genmarshal"
25196  ;;
25197esac
25198fi
25199GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
25200if test -n "$GLIB_GENMARSHAL"; then
25201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
25202$as_echo "$GLIB_GENMARSHAL" >&6; }
25203else
25204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205$as_echo "no" >&6; }
25206fi
25207
25208
25209      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
25210$as_echo "$GLIB_GENMARSHAL" >&6; }
25211    fi
25212  fi
25213  if ! $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
25214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&5
25215$as_echo "$as_me: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&2;}
25216  fi
25217
25218
25219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-mkenums" >&5
25220$as_echo_n "checking for glib-mkenums... " >&6; }
25221  if test "x$GLIB_MKENUMS" != "x"; then
25222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS (from environment)" >&5
25223$as_echo "$GLIB_MKENUMS (from environment)" >&6; }
25224  else
25225        GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
25226    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
25227$as_echo "$GLIB_MKENUMS" >&6; }
25228  fi
25229  if ! $GLIB_MKENUMS --version 2>/dev/null >/dev/null; then
25230    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_MKENUMS does not seem to work!" >&5
25231$as_echo "$as_me: WARNING: $GLIB_MKENUMS does not seem to work!" >&2;}
25232  fi
25233
25234
25235
25236
25237
25238pkg_failed=no
25239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
25240$as_echo_n "checking for GIO... " >&6; }
25241
25242if test -n "$PKG_CONFIG"; then
25243    if test -n "$GIO_CFLAGS"; then
25244        pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
25245    else
25246        if test -n "$PKG_CONFIG" && \
25247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5
25248  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5
25249  ac_status=$?
25250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25251  test $ac_status = 0; }; then
25252  pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB_REQ" 2>/dev/null`
25253else
25254  pkg_failed=yes
25255fi
25256    fi
25257else
25258	pkg_failed=untried
25259fi
25260if test -n "$PKG_CONFIG"; then
25261    if test -n "$GIO_LIBS"; then
25262        pkg_cv_GIO_LIBS="$GIO_LIBS"
25263    else
25264        if test -n "$PKG_CONFIG" && \
25265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5
25266  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5
25267  ac_status=$?
25268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25269  test $ac_status = 0; }; then
25270  pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB_REQ" 2>/dev/null`
25271else
25272  pkg_failed=yes
25273fi
25274    fi
25275else
25276	pkg_failed=untried
25277fi
25278
25279
25280
25281if test $pkg_failed = yes; then
25282
25283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25284        _pkg_short_errors_supported=yes
25285else
25286        _pkg_short_errors_supported=no
25287fi
25288        if test $_pkg_short_errors_supported = yes; then
25289	        GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"`
25290        else
25291	        GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"`
25292        fi
25293	# Put the nasty error message in config.log where it belongs
25294	echo "$GIO_PKG_ERRORS" >&5
25295
25296	as_fn_error $? "Package requirements (gio-2.0 >= $GLIB_REQ) were not met:
25297
25298$GIO_PKG_ERRORS
25299
25300Consider adjusting the PKG_CONFIG_PATH environment variable if you
25301installed software in a non-standard prefix.
25302
25303Alternatively, you may set the environment variables GIO_CFLAGS
25304and GIO_LIBS to avoid the need to call pkg-config.
25305See the pkg-config man page for more details.
25306" "$LINENO" 5
25307elif test $pkg_failed = untried; then
25308	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25310as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
25311is in your PATH or set the PKG_CONFIG environment variable to the full
25312path to pkg-config.
25313
25314Alternatively, you may set the environment variables GIO_CFLAGS
25315and GIO_LIBS to avoid the need to call pkg-config.
25316See the pkg-config man page for more details.
25317
25318To get pkg-config, see <http://pkg-config.freedesktop.org/>.
25319See \`config.log' for more details" "$LINENO" 5; }
25320else
25321	GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
25322	GIO_LIBS=$pkg_cv_GIO_LIBS
25323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25324$as_echo "yes" >&6; }
25325	:
25326fi
25327  if test "x$HAVE_GIO" = "xno"; then
25328    as_fn_error $? "This package requires GIO >= $GLIB_REQ to compile." "$LINENO" 5
25329  fi
25330
25331  GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`"
25332
25333cat >>confdefs.h <<_ACEOF
25334#define GIO_MODULE_DIR "$GIO_MODULE_DIR"
25335_ACEOF
25336
25337  GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`"
25338
25339cat >>confdefs.h <<_ACEOF
25340#define GIO_LIBDIR "$GIO_LIBDIR"
25341_ACEOF
25342
25343  GIO_PREFIX="`$PKG_CONFIG --variable=prefix gio-2.0`"
25344
25345cat >>confdefs.h <<_ACEOF
25346#define GIO_PREFIX "$GIO_PREFIX"
25347_ACEOF
25348
25349
25350
25351
25352
25353
25354
25355
25356  ORC_REQ=0.4.24
25357
25358  # Check whether --enable-orc was given.
25359if test "${enable_orc+set}" = set; then :
25360  enableval=$enable_orc; case "${enableval}" in
25361    auto) enable_orc=auto ;;
25362    yes) enable_orc=yes ;;
25363    no)  enable_orc=no ;;
25364    *) as_fn_error $? "bad value ${enableval} for --enable-orc" "$LINENO" 5 ;;
25365  esac
25366
25367else
25368  enable_orc=auto
25369fi
25370
25371  if test "x$enable_orc" != "xno" ; then
25372
25373pkg_failed=no
25374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORC" >&5
25375$as_echo_n "checking for ORC... " >&6; }
25376
25377if test -n "$PKG_CONFIG"; then
25378    if test -n "$ORC_CFLAGS"; then
25379        pkg_cv_ORC_CFLAGS="$ORC_CFLAGS"
25380    else
25381        if test -n "$PKG_CONFIG" && \
25382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
25383  ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
25384  ac_status=$?
25385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386  test $ac_status = 0; }; then
25387  pkg_cv_ORC_CFLAGS=`$PKG_CONFIG --cflags "orc-0.4 >= $ORC_REQ" 2>/dev/null`
25388else
25389  pkg_failed=yes
25390fi
25391    fi
25392else
25393	pkg_failed=untried
25394fi
25395if test -n "$PKG_CONFIG"; then
25396    if test -n "$ORC_LIBS"; then
25397        pkg_cv_ORC_LIBS="$ORC_LIBS"
25398    else
25399        if test -n "$PKG_CONFIG" && \
25400    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
25401  ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
25402  ac_status=$?
25403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404  test $ac_status = 0; }; then
25405  pkg_cv_ORC_LIBS=`$PKG_CONFIG --libs "orc-0.4 >= $ORC_REQ" 2>/dev/null`
25406else
25407  pkg_failed=yes
25408fi
25409    fi
25410else
25411	pkg_failed=untried
25412fi
25413
25414
25415
25416if test $pkg_failed = yes; then
25417
25418if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25419        _pkg_short_errors_supported=yes
25420else
25421        _pkg_short_errors_supported=no
25422fi
25423        if test $_pkg_short_errors_supported = yes; then
25424	        ORC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
25425        else
25426	        ORC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
25427        fi
25428	# Put the nasty error message in config.log where it belongs
25429	echo "$ORC_PKG_ERRORS" >&5
25430
25431	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25432$as_echo "no" >&6; }
25433
25434      if test "x$enable_orc" = "xyes" ; then
25435        as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
25436      fi
25437
25438$as_echo "#define DISABLE_ORC 1" >>confdefs.h
25439
25440      HAVE_ORC=no
25441      HAVE_ORCC=no
25442
25443elif test $pkg_failed = untried; then
25444
25445      if test "x$enable_orc" = "xyes" ; then
25446        as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
25447      fi
25448
25449$as_echo "#define DISABLE_ORC 1" >>confdefs.h
25450
25451      HAVE_ORC=no
25452      HAVE_ORCC=no
25453
25454else
25455	ORC_CFLAGS=$pkg_cv_ORC_CFLAGS
25456	ORC_LIBS=$pkg_cv_ORC_LIBS
25457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25458$as_echo "yes" >&6; }
25459
25460
25461$as_echo "#define HAVE_ORC 1" >>confdefs.h
25462
25463      HAVE_ORC=yes
25464      if test "x$ORCC" = "x" ; then
25465        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable orcc" >&5
25466$as_echo_n "checking for usable orcc... " >&6; }
25467        ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
25468                        if $ORCC --version 1> /dev/null 2> /dev/null; then :
25469
25470else
25471  ORCC=`which orcc`
25472fi
25473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORCC" >&5
25474$as_echo "$ORCC" >&6; }
25475      fi
25476
25477      ORCC_FLAGS="--compat $ORC_REQ"
25478
25479      if test "x$ORCC" = "x"; then :
25480  HAVE_ORCC=no
25481else
25482  HAVE_ORCC=yes
25483fi
25484
25485fi
25486  else
25487
25488$as_echo "#define DISABLE_ORC 1" >>confdefs.h
25489
25490    HAVE_ORC=no
25491    HAVE_ORCC=no
25492  fi
25493   if test "x$HAVE_ORC" = "xyes"; then
25494  HAVE_ORC_TRUE=
25495  HAVE_ORC_FALSE='#'
25496else
25497  HAVE_ORC_TRUE='#'
25498  HAVE_ORC_FALSE=
25499fi
25500
25501   if test "x$HAVE_ORCC" = "xyes"; then
25502  HAVE_ORCC_TRUE=
25503  HAVE_ORCC_FALSE='#'
25504else
25505  HAVE_ORCC_TRUE='#'
25506  HAVE_ORCC_FALSE=
25507fi
25508
25509
25510
25511
25512ORC_PC=
25513if test x"$HAVE_ORC" = "xyes"; then
25514    ORC_PC="orc-0.4"
25515fi
25516
25517
25518
25519
25520  module=gstreamer-$GST_API_VERSION
25521  minver=$GST_REQ
25522  name="GStreamer"
25523  required=yes
25524
25525pkg_failed=no
25526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
25527$as_echo_n "checking for GST... " >&6; }
25528
25529if test -n "$PKG_CONFIG"; then
25530    if test -n "$GST_CFLAGS"; then
25531        pkg_cv_GST_CFLAGS="$GST_CFLAGS"
25532    else
25533        if test -n "$PKG_CONFIG" && \
25534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25535  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25536  ac_status=$?
25537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25538  test $ac_status = 0; }; then
25539  pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
25540else
25541  pkg_failed=yes
25542fi
25543    fi
25544else
25545	pkg_failed=untried
25546fi
25547if test -n "$PKG_CONFIG"; then
25548    if test -n "$GST_LIBS"; then
25549        pkg_cv_GST_LIBS="$GST_LIBS"
25550    else
25551        if test -n "$PKG_CONFIG" && \
25552    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25553  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25554  ac_status=$?
25555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25556  test $ac_status = 0; }; then
25557  pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
25558else
25559  pkg_failed=yes
25560fi
25561    fi
25562else
25563	pkg_failed=untried
25564fi
25565
25566
25567
25568if test $pkg_failed = yes; then
25569
25570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25571        _pkg_short_errors_supported=yes
25572else
25573        _pkg_short_errors_supported=no
25574fi
25575        if test $_pkg_short_errors_supported = yes; then
25576	        GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
25577        else
25578	        GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
25579        fi
25580	# Put the nasty error message in config.log where it belongs
25581	echo "$GST_PKG_ERRORS" >&5
25582
25583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25584$as_echo "no" >&6; }
25585
25586      HAVE_GST="no"
25587      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
25588$as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
25589      if test "x$required" = "xyes"; then
25590        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25591      else
25592        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25593$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25594      fi
25595
25596elif test $pkg_failed = untried; then
25597
25598      HAVE_GST="no"
25599      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
25600$as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
25601      if test "x$required" = "xyes"; then
25602        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25603      else
25604        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25605$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25606      fi
25607
25608else
25609	GST_CFLAGS=$pkg_cv_GST_CFLAGS
25610	GST_LIBS=$pkg_cv_GST_LIBS
25611        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25612$as_echo "yes" >&6; }
25613
25614      HAVE_GST="yes"
25615
25616fi
25617
25618
25619    if test -z $GST_TOOLS_DIR; then
25620    GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-$GST_API_VERSION`
25621    if test -z $GST_TOOLS_DIR; then
25622      as_fn_error $? "no tools dir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
25623    fi
25624  fi
25625  { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer tools in $GST_TOOLS_DIR" >&5
25626$as_echo "$as_me: using GStreamer tools in $GST_TOOLS_DIR" >&6;}
25627
25628
25629        if test -z $GST_PLUGINS_DIR; then
25630    GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-$GST_API_VERSION`
25631    if test -z $GST_PLUGINS_DIR; then
25632      as_fn_error $? "no pluginsdir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
25633    fi
25634  fi
25635  { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&5
25636$as_echo "$as_me: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&6;}
25637
25638
25639
25640
25641  module=gstreamer-net-$GST_API_VERSION
25642  minver=$GST_REQ
25643  name="GStreamer Network Library"
25644  required=yes
25645
25646pkg_failed=no
25647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_NET" >&5
25648$as_echo_n "checking for GST_NET... " >&6; }
25649
25650if test -n "$PKG_CONFIG"; then
25651    if test -n "$GST_NET_CFLAGS"; then
25652        pkg_cv_GST_NET_CFLAGS="$GST_NET_CFLAGS"
25653    else
25654        if test -n "$PKG_CONFIG" && \
25655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25656  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25657  ac_status=$?
25658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659  test $ac_status = 0; }; then
25660  pkg_cv_GST_NET_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
25661else
25662  pkg_failed=yes
25663fi
25664    fi
25665else
25666	pkg_failed=untried
25667fi
25668if test -n "$PKG_CONFIG"; then
25669    if test -n "$GST_NET_LIBS"; then
25670        pkg_cv_GST_NET_LIBS="$GST_NET_LIBS"
25671    else
25672        if test -n "$PKG_CONFIG" && \
25673    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25674  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25675  ac_status=$?
25676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677  test $ac_status = 0; }; then
25678  pkg_cv_GST_NET_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
25679else
25680  pkg_failed=yes
25681fi
25682    fi
25683else
25684	pkg_failed=untried
25685fi
25686
25687
25688
25689if test $pkg_failed = yes; then
25690
25691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25692        _pkg_short_errors_supported=yes
25693else
25694        _pkg_short_errors_supported=no
25695fi
25696        if test $_pkg_short_errors_supported = yes; then
25697	        GST_NET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
25698        else
25699	        GST_NET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
25700        fi
25701	# Put the nasty error message in config.log where it belongs
25702	echo "$GST_NET_PKG_ERRORS" >&5
25703
25704	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705$as_echo "no" >&6; }
25706
25707      HAVE_GST_NET="no"
25708      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_NET_PKG_ERRORS" >&5
25709$as_echo "$as_me: $GST_NET_PKG_ERRORS" >&6;}
25710      if test "x$required" = "xyes"; then
25711        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25712      else
25713        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25714$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25715      fi
25716
25717elif test $pkg_failed = untried; then
25718
25719      HAVE_GST_NET="no"
25720      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_NET_PKG_ERRORS" >&5
25721$as_echo "$as_me: $GST_NET_PKG_ERRORS" >&6;}
25722      if test "x$required" = "xyes"; then
25723        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25724      else
25725        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25726$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25727      fi
25728
25729else
25730	GST_NET_CFLAGS=$pkg_cv_GST_NET_CFLAGS
25731	GST_NET_LIBS=$pkg_cv_GST_NET_LIBS
25732        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25733$as_echo "yes" >&6; }
25734
25735      HAVE_GST_NET="yes"
25736
25737fi
25738
25739
25740
25741
25742
25743  module=gstreamer-base-$GST_API_VERSION
25744  minver=$GST_REQ
25745  name="GStreamer Base Libraries"
25746  required=yes
25747
25748pkg_failed=no
25749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_BASE" >&5
25750$as_echo_n "checking for GST_BASE... " >&6; }
25751
25752if test -n "$PKG_CONFIG"; then
25753    if test -n "$GST_BASE_CFLAGS"; then
25754        pkg_cv_GST_BASE_CFLAGS="$GST_BASE_CFLAGS"
25755    else
25756        if test -n "$PKG_CONFIG" && \
25757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25758  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25759  ac_status=$?
25760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761  test $ac_status = 0; }; then
25762  pkg_cv_GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
25763else
25764  pkg_failed=yes
25765fi
25766    fi
25767else
25768	pkg_failed=untried
25769fi
25770if test -n "$PKG_CONFIG"; then
25771    if test -n "$GST_BASE_LIBS"; then
25772        pkg_cv_GST_BASE_LIBS="$GST_BASE_LIBS"
25773    else
25774        if test -n "$PKG_CONFIG" && \
25775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25776  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25777  ac_status=$?
25778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779  test $ac_status = 0; }; then
25780  pkg_cv_GST_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
25781else
25782  pkg_failed=yes
25783fi
25784    fi
25785else
25786	pkg_failed=untried
25787fi
25788
25789
25790
25791if test $pkg_failed = yes; then
25792
25793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25794        _pkg_short_errors_supported=yes
25795else
25796        _pkg_short_errors_supported=no
25797fi
25798        if test $_pkg_short_errors_supported = yes; then
25799	        GST_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
25800        else
25801	        GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
25802        fi
25803	# Put the nasty error message in config.log where it belongs
25804	echo "$GST_BASE_PKG_ERRORS" >&5
25805
25806	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25807$as_echo "no" >&6; }
25808
25809      HAVE_GST_BASE="no"
25810      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
25811$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
25812      if test "x$required" = "xyes"; then
25813        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25814      else
25815        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25816$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25817      fi
25818
25819elif test $pkg_failed = untried; then
25820
25821      HAVE_GST_BASE="no"
25822      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
25823$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
25824      if test "x$required" = "xyes"; then
25825        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25826      else
25827        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25828$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25829      fi
25830
25831else
25832	GST_BASE_CFLAGS=$pkg_cv_GST_BASE_CFLAGS
25833	GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS
25834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25835$as_echo "yes" >&6; }
25836
25837      HAVE_GST_BASE="yes"
25838
25839fi
25840
25841
25842
25843
25844
25845  module=gstreamer-controller-$GST_API_VERSION
25846  minver=$GST_REQ
25847  name="GStreamer Controller Library"
25848  required=yes
25849
25850pkg_failed=no
25851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CONTROLLER" >&5
25852$as_echo_n "checking for GST_CONTROLLER... " >&6; }
25853
25854if test -n "$PKG_CONFIG"; then
25855    if test -n "$GST_CONTROLLER_CFLAGS"; then
25856        pkg_cv_GST_CONTROLLER_CFLAGS="$GST_CONTROLLER_CFLAGS"
25857    else
25858        if test -n "$PKG_CONFIG" && \
25859    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25860  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25861  ac_status=$?
25862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863  test $ac_status = 0; }; then
25864  pkg_cv_GST_CONTROLLER_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
25865else
25866  pkg_failed=yes
25867fi
25868    fi
25869else
25870	pkg_failed=untried
25871fi
25872if test -n "$PKG_CONFIG"; then
25873    if test -n "$GST_CONTROLLER_LIBS"; then
25874        pkg_cv_GST_CONTROLLER_LIBS="$GST_CONTROLLER_LIBS"
25875    else
25876        if test -n "$PKG_CONFIG" && \
25877    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25878  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25879  ac_status=$?
25880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881  test $ac_status = 0; }; then
25882  pkg_cv_GST_CONTROLLER_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
25883else
25884  pkg_failed=yes
25885fi
25886    fi
25887else
25888	pkg_failed=untried
25889fi
25890
25891
25892
25893if test $pkg_failed = yes; then
25894
25895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25896        _pkg_short_errors_supported=yes
25897else
25898        _pkg_short_errors_supported=no
25899fi
25900        if test $_pkg_short_errors_supported = yes; then
25901	        GST_CONTROLLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
25902        else
25903	        GST_CONTROLLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
25904        fi
25905	# Put the nasty error message in config.log where it belongs
25906	echo "$GST_CONTROLLER_PKG_ERRORS" >&5
25907
25908	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25909$as_echo "no" >&6; }
25910
25911      HAVE_GST_CONTROLLER="no"
25912      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CONTROLLER_PKG_ERRORS" >&5
25913$as_echo "$as_me: $GST_CONTROLLER_PKG_ERRORS" >&6;}
25914      if test "x$required" = "xyes"; then
25915        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25916      else
25917        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25918$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25919      fi
25920
25921elif test $pkg_failed = untried; then
25922
25923      HAVE_GST_CONTROLLER="no"
25924      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CONTROLLER_PKG_ERRORS" >&5
25925$as_echo "$as_me: $GST_CONTROLLER_PKG_ERRORS" >&6;}
25926      if test "x$required" = "xyes"; then
25927        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
25928      else
25929        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
25930$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
25931      fi
25932
25933else
25934	GST_CONTROLLER_CFLAGS=$pkg_cv_GST_CONTROLLER_CFLAGS
25935	GST_CONTROLLER_LIBS=$pkg_cv_GST_CONTROLLER_LIBS
25936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25937$as_echo "yes" >&6; }
25938
25939      HAVE_GST_CONTROLLER="yes"
25940
25941fi
25942
25943
25944
25945
25946
25947  module=gstreamer-check-$GST_API_VERSION
25948  minver=$GST_REQ
25949  name="GStreamer Check unittest Library"
25950  required=no
25951
25952pkg_failed=no
25953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CHECK" >&5
25954$as_echo_n "checking for GST_CHECK... " >&6; }
25955
25956if test -n "$PKG_CONFIG"; then
25957    if test -n "$GST_CHECK_CFLAGS"; then
25958        pkg_cv_GST_CHECK_CFLAGS="$GST_CHECK_CFLAGS"
25959    else
25960        if test -n "$PKG_CONFIG" && \
25961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25962  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25963  ac_status=$?
25964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25965  test $ac_status = 0; }; then
25966  pkg_cv_GST_CHECK_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
25967else
25968  pkg_failed=yes
25969fi
25970    fi
25971else
25972	pkg_failed=untried
25973fi
25974if test -n "$PKG_CONFIG"; then
25975    if test -n "$GST_CHECK_LIBS"; then
25976        pkg_cv_GST_CHECK_LIBS="$GST_CHECK_LIBS"
25977    else
25978        if test -n "$PKG_CONFIG" && \
25979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
25980  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
25981  ac_status=$?
25982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983  test $ac_status = 0; }; then
25984  pkg_cv_GST_CHECK_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
25985else
25986  pkg_failed=yes
25987fi
25988    fi
25989else
25990	pkg_failed=untried
25991fi
25992
25993
25994
25995if test $pkg_failed = yes; then
25996
25997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25998        _pkg_short_errors_supported=yes
25999else
26000        _pkg_short_errors_supported=no
26001fi
26002        if test $_pkg_short_errors_supported = yes; then
26003	        GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
26004        else
26005	        GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
26006        fi
26007	# Put the nasty error message in config.log where it belongs
26008	echo "$GST_CHECK_PKG_ERRORS" >&5
26009
26010	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26011$as_echo "no" >&6; }
26012
26013      HAVE_GST_CHECK="no"
26014      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
26015$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
26016      if test "x$required" = "xyes"; then
26017        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26018      else
26019        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26020$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26021      fi
26022
26023elif test $pkg_failed = untried; then
26024
26025      HAVE_GST_CHECK="no"
26026      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
26027$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
26028      if test "x$required" = "xyes"; then
26029        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26030      else
26031        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26032$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26033      fi
26034
26035else
26036	GST_CHECK_CFLAGS=$pkg_cv_GST_CHECK_CFLAGS
26037	GST_CHECK_LIBS=$pkg_cv_GST_CHECK_LIBS
26038        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26039$as_echo "yes" >&6; }
26040
26041      HAVE_GST_CHECK="yes"
26042
26043fi
26044
26045
26046
26047 if test "x$HAVE_GST_CHECK" = "xyes"; then
26048  HAVE_GST_CHECK_TRUE=
26049  HAVE_GST_CHECK_FALSE='#'
26050else
26051  HAVE_GST_CHECK_TRUE='#'
26052  HAVE_GST_CHECK_FALSE=
26053fi
26054
26055
26056GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
26057GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`"
26058
26059
26060
26061
26062pkg_failed=no
26063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_UDEV" >&5
26064$as_echo_n "checking for G_UDEV... " >&6; }
26065
26066if test -n "$PKG_CONFIG"; then
26067    if test -n "$G_UDEV_CFLAGS"; then
26068        pkg_cv_G_UDEV_CFLAGS="$G_UDEV_CFLAGS"
26069    else
26070        if test -n "$PKG_CONFIG" && \
26071    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
26072  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
26073  ac_status=$?
26074  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26075  test $ac_status = 0; }; then
26076  pkg_cv_G_UDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 " 2>/dev/null`
26077else
26078  pkg_failed=yes
26079fi
26080    fi
26081else
26082	pkg_failed=untried
26083fi
26084if test -n "$PKG_CONFIG"; then
26085    if test -n "$G_UDEV_LIBS"; then
26086        pkg_cv_G_UDEV_LIBS="$G_UDEV_LIBS"
26087    else
26088        if test -n "$PKG_CONFIG" && \
26089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
26090  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
26091  ac_status=$?
26092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26093  test $ac_status = 0; }; then
26094  pkg_cv_G_UDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 " 2>/dev/null`
26095else
26096  pkg_failed=yes
26097fi
26098    fi
26099else
26100	pkg_failed=untried
26101fi
26102
26103
26104
26105if test $pkg_failed = yes; then
26106
26107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26108        _pkg_short_errors_supported=yes
26109else
26110        _pkg_short_errors_supported=no
26111fi
26112        if test $_pkg_short_errors_supported = yes; then
26113	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gudev-1.0 "`
26114        else
26115	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gudev-1.0 "`
26116        fi
26117	# Put the nasty error message in config.log where it belongs
26118	echo "$G_UDEV_PKG_ERRORS" >&5
26119
26120	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26121$as_echo "no" >&6; }
26122                HAVE_GUDEV="no"
26123elif test $pkg_failed = untried; then
26124	HAVE_GUDEV="no"
26125else
26126	G_UDEV_CFLAGS=$pkg_cv_G_UDEV_CFLAGS
26127	G_UDEV_LIBS=$pkg_cv_G_UDEV_LIBS
26128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26129$as_echo "yes" >&6; }
26130
26131
26132$as_echo "#define HAVE_GUDEV 1" >>confdefs.h
26133
26134        HAVE_GUDEV="yes"
26135fi
26136
26137ac_ext=m
26138ac_cpp='$OBJCPP $CPPFLAGS'
26139ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26140ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26141ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26142if test -n "$ac_tool_prefix"; then
26143  for ac_prog in gcc objcc objc cc CC
26144  do
26145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26148$as_echo_n "checking for $ac_word... " >&6; }
26149if ${ac_cv_prog_OBJC+:} false; then :
26150  $as_echo_n "(cached) " >&6
26151else
26152  if test -n "$OBJC"; then
26153  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
26154else
26155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26156for as_dir in $PATH
26157do
26158  IFS=$as_save_IFS
26159  test -z "$as_dir" && as_dir=.
26160    for ac_exec_ext in '' $ac_executable_extensions; do
26161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26162    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
26163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26164    break 2
26165  fi
26166done
26167  done
26168IFS=$as_save_IFS
26169
26170fi
26171fi
26172OBJC=$ac_cv_prog_OBJC
26173if test -n "$OBJC"; then
26174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
26175$as_echo "$OBJC" >&6; }
26176else
26177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178$as_echo "no" >&6; }
26179fi
26180
26181
26182    test -n "$OBJC" && break
26183  done
26184fi
26185if test -z "$OBJC"; then
26186  ac_ct_OBJC=$OBJC
26187  for ac_prog in gcc objcc objc cc CC
26188do
26189  # Extract the first word of "$ac_prog", so it can be a program name with args.
26190set dummy $ac_prog; ac_word=$2
26191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26192$as_echo_n "checking for $ac_word... " >&6; }
26193if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
26194  $as_echo_n "(cached) " >&6
26195else
26196  if test -n "$ac_ct_OBJC"; then
26197  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
26198else
26199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26200for as_dir in $PATH
26201do
26202  IFS=$as_save_IFS
26203  test -z "$as_dir" && as_dir=.
26204    for ac_exec_ext in '' $ac_executable_extensions; do
26205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26206    ac_cv_prog_ac_ct_OBJC="$ac_prog"
26207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26208    break 2
26209  fi
26210done
26211  done
26212IFS=$as_save_IFS
26213
26214fi
26215fi
26216ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
26217if test -n "$ac_ct_OBJC"; then
26218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
26219$as_echo "$ac_ct_OBJC" >&6; }
26220else
26221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26222$as_echo "no" >&6; }
26223fi
26224
26225
26226  test -n "$ac_ct_OBJC" && break
26227done
26228
26229  if test "x$ac_ct_OBJC" = x; then
26230    OBJC="gcc"
26231  else
26232    case $cross_compiling:$ac_tool_warned in
26233yes:)
26234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26236ac_tool_warned=yes ;;
26237esac
26238    OBJC=$ac_ct_OBJC
26239  fi
26240fi
26241
26242# Provide some information about the compiler.
26243$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
26244set X $ac_compile
26245ac_compiler=$2
26246for ac_option in --version -v -V -qversion; do
26247  { { ac_try="$ac_compiler $ac_option >&5"
26248case "(($ac_try" in
26249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250  *) ac_try_echo=$ac_try;;
26251esac
26252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26253$as_echo "$ac_try_echo"; } >&5
26254  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
26255  ac_status=$?
26256  if test -s conftest.err; then
26257    sed '10a\
26258... rest of stderr output deleted ...
26259         10q' conftest.err >conftest.er1
26260    cat conftest.er1 >&5
26261  fi
26262  rm -f conftest.er1 conftest.err
26263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264  test $ac_status = 0; }
26265done
26266
26267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
26268$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
26269if ${ac_cv_objc_compiler_gnu+:} false; then :
26270  $as_echo_n "(cached) " >&6
26271else
26272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26273/* end confdefs.h.  */
26274
26275int
26276main ()
26277{
26278#ifndef __GNUC__
26279       choke me
26280#endif
26281
26282  ;
26283  return 0;
26284}
26285_ACEOF
26286if ac_fn_objc_try_compile "$LINENO"; then :
26287  ac_compiler_gnu=yes
26288else
26289  ac_compiler_gnu=no
26290fi
26291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26292ac_cv_objc_compiler_gnu=$ac_compiler_gnu
26293
26294fi
26295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
26296$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
26297if test $ac_compiler_gnu = yes; then
26298  GOBJC=yes
26299else
26300  GOBJC=
26301fi
26302ac_test_OBJCFLAGS=${OBJCFLAGS+set}
26303ac_save_OBJCFLAGS=$OBJCFLAGS
26304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
26305$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
26306if ${ac_cv_prog_objc_g+:} false; then :
26307  $as_echo_n "(cached) " >&6
26308else
26309  ac_save_objc_werror_flag=$ac_objc_werror_flag
26310   ac_objc_werror_flag=yes
26311   ac_cv_prog_objc_g=no
26312   OBJCFLAGS="-g"
26313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314/* end confdefs.h.  */
26315
26316int
26317main ()
26318{
26319
26320  ;
26321  return 0;
26322}
26323_ACEOF
26324if ac_fn_objc_try_compile "$LINENO"; then :
26325  ac_cv_prog_objc_g=yes
26326else
26327  OBJCFLAGS=""
26328      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329/* end confdefs.h.  */
26330
26331int
26332main ()
26333{
26334
26335  ;
26336  return 0;
26337}
26338_ACEOF
26339if ac_fn_objc_try_compile "$LINENO"; then :
26340
26341else
26342  ac_objc_werror_flag=$ac_save_objc_werror_flag
26343	 OBJCFLAGS="-g"
26344	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345/* end confdefs.h.  */
26346
26347int
26348main ()
26349{
26350
26351  ;
26352  return 0;
26353}
26354_ACEOF
26355if ac_fn_objc_try_compile "$LINENO"; then :
26356  ac_cv_prog_objc_g=yes
26357fi
26358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359fi
26360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361fi
26362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363   ac_objc_werror_flag=$ac_save_objc_werror_flag
26364fi
26365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
26366$as_echo "$ac_cv_prog_objc_g" >&6; }
26367if test "$ac_test_OBJCFLAGS" = set; then
26368  OBJCFLAGS=$ac_save_OBJCFLAGS
26369elif test $ac_cv_prog_objc_g = yes; then
26370  if test "$GOBJC" = yes; then
26371    OBJCFLAGS="-g -O2"
26372  else
26373    OBJCFLAGS="-g"
26374  fi
26375else
26376  if test "$GOBJC" = yes; then
26377    OBJCFLAGS="-O2"
26378  else
26379    OBJCFLAGS=
26380  fi
26381fi
26382ac_ext=c
26383ac_cpp='$CPP $CPPFLAGS'
26384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386ac_compiler_gnu=$ac_cv_c_compiler_gnu
26387
26388depcc="$OBJC" am_compiler_list='gcc3 gcc'
26389
26390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26391$as_echo_n "checking dependency style of $depcc... " >&6; }
26392if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
26393  $as_echo_n "(cached) " >&6
26394else
26395  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26396  # We make a subdir and do the tests there.  Otherwise we can end up
26397  # making bogus files that we don't know about and never remove.  For
26398  # instance it was reported that on HP-UX the gcc test will end up
26399  # making a dummy file named 'D' -- because '-MD' means "put the output
26400  # in D".
26401  rm -rf conftest.dir
26402  mkdir conftest.dir
26403  # Copy depcomp to subdir because otherwise we won't find it if we're
26404  # using a relative directory.
26405  cp "$am_depcomp" conftest.dir
26406  cd conftest.dir
26407  # We will build objects and dependencies in a subdirectory because
26408  # it helps to detect inapplicable dependency modes.  For instance
26409  # both Tru64's cc and ICC support -MD to output dependencies as a
26410  # side effect of compilation, but ICC will put the dependencies in
26411  # the current directory while Tru64 will put them in the object
26412  # directory.
26413  mkdir sub
26414
26415  am_cv_OBJC_dependencies_compiler_type=none
26416  if test "$am_compiler_list" = ""; then
26417     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26418  fi
26419  am__universal=false
26420
26421
26422  for depmode in $am_compiler_list; do
26423    # Setup a source with many dependencies, because some compilers
26424    # like to wrap large dependency lists on column 80 (with \), and
26425    # we should not choose a depcomp mode which is confused by this.
26426    #
26427    # We need to recreate these files for each test, as the compiler may
26428    # overwrite some of them when testing with obscure command lines.
26429    # This happens at least with the AIX C compiler.
26430    : > sub/conftest.c
26431    for i in 1 2 3 4 5 6; do
26432      echo '#include "conftst'$i'.h"' >> sub/conftest.c
26433      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26434      # Solaris 10 /bin/sh.
26435      echo '/* dummy */' > sub/conftst$i.h
26436    done
26437    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26438
26439    # We check with '-c' and '-o' for the sake of the "dashmstdout"
26440    # mode.  It turns out that the SunPro C++ compiler does not properly
26441    # handle '-M -o', and we need to detect this.  Also, some Intel
26442    # versions had trouble with output in subdirs.
26443    am__obj=sub/conftest.${OBJEXT-o}
26444    am__minus_obj="-o $am__obj"
26445    case $depmode in
26446    gcc)
26447      # This depmode causes a compiler race in universal mode.
26448      test "$am__universal" = false || continue
26449      ;;
26450    nosideeffect)
26451      # After this tag, mechanisms are not by side-effect, so they'll
26452      # only be used when explicitly requested.
26453      if test "x$enable_dependency_tracking" = xyes; then
26454	continue
26455      else
26456	break
26457      fi
26458      ;;
26459    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26460      # This compiler won't grok '-c -o', but also, the minuso test has
26461      # not run yet.  These depmodes are late enough in the game, and
26462      # so weak that their functioning should not be impacted.
26463      am__obj=conftest.${OBJEXT-o}
26464      am__minus_obj=
26465      ;;
26466    none) break ;;
26467    esac
26468    if depmode=$depmode \
26469       source=sub/conftest.c object=$am__obj \
26470       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26471       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26472         >/dev/null 2>conftest.err &&
26473       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26474       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26475       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26476       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26477      # icc doesn't choke on unknown options, it will just issue warnings
26478      # or remarks (even with -Werror).  So we grep stderr for any message
26479      # that says an option was ignored or not supported.
26480      # When given -MP, icc 7.0 and 7.1 complain thusly:
26481      #   icc: Command line warning: ignoring option '-M'; no argument required
26482      # The diagnosis changed in icc 8.0:
26483      #   icc: Command line remark: option '-MP' not supported
26484      if (grep 'ignoring option' conftest.err ||
26485          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26486        am_cv_OBJC_dependencies_compiler_type=$depmode
26487        break
26488      fi
26489    fi
26490  done
26491
26492  cd ..
26493  rm -rf conftest.dir
26494else
26495  am_cv_OBJC_dependencies_compiler_type=none
26496fi
26497
26498fi
26499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
26500$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
26501OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
26502
26503 if
26504  test "x$enable_dependency_tracking" != xno \
26505  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
26506  am__fastdepOBJC_TRUE=
26507  am__fastdepOBJC_FALSE='#'
26508else
26509  am__fastdepOBJC_TRUE='#'
26510  am__fastdepOBJC_FALSE=
26511fi
26512
26513
26514
26515
26516
26517
26518  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands " >&5
26519$as_echo_n "checking to see if Objective C compiler understands ... " >&6; }
26520
26521  save_CPPFLAGS="$CPPFLAGS"
26522  CPPFLAGS="$CPPFLAGS "
26523
26524  ac_ext=m
26525ac_cpp='$OBJCPP $CPPFLAGS'
26526ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26527ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26528ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26529
26530
26531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h.  */
26533
26534int
26535main ()
26536{
26537
26538  ;
26539  return 0;
26540}
26541_ACEOF
26542if ac_fn_objc_try_compile "$LINENO"; then :
26543  flag_ok=yes
26544else
26545  flag_ok=no
26546fi
26547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26548  CPPFLAGS="$save_CPPFLAGS"
26549
26550  if test "X$flag_ok" = Xyes ; then
26551
26552    true
26553  else
26554
26555    true
26556  fi
26557
26558  ac_ext=c
26559ac_cpp='$CPP $CPPFLAGS'
26560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26562ac_compiler_gnu=$ac_cv_c_compiler_gnu
26563
26564
26565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
26566$as_echo "$flag_ok" >&6; }
26567
26568
26569
26570
26571
26572
26573  ERROR_OBJCFLAGS=""
26574  WARNING_OBJCFLAGS=""
26575
26576
26577
26578
26579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -Wall" >&5
26580$as_echo_n "checking to see if Objective C compiler understands -Wall... " >&6; }
26581
26582  save_CPPFLAGS="$CPPFLAGS"
26583  CPPFLAGS="$CPPFLAGS -Wall"
26584
26585  ac_ext=m
26586ac_cpp='$OBJCPP $CPPFLAGS'
26587ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26588ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26589ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26590
26591
26592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593/* end confdefs.h.  */
26594
26595int
26596main ()
26597{
26598
26599  ;
26600  return 0;
26601}
26602_ACEOF
26603if ac_fn_objc_try_compile "$LINENO"; then :
26604  flag_ok=yes
26605else
26606  flag_ok=no
26607fi
26608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609  CPPFLAGS="$save_CPPFLAGS"
26610
26611  if test "X$flag_ok" = Xyes ; then
26612    WARNING_OBJCFLAGS="$WARNING_OBJCFLAGS -Wall"
26613    true
26614  else
26615
26616    true
26617  fi
26618
26619  ac_ext=c
26620ac_cpp='$CPP $CPPFLAGS'
26621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26623ac_compiler_gnu=$ac_cv_c_compiler_gnu
26624
26625
26626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
26627$as_echo "$flag_ok" >&6; }
26628
26629
26630    if test "x$FATAL_WARNINGS" != "xno"
26631  then
26632
26633
26634
26635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -Werror" >&5
26636$as_echo_n "checking to see if Objective C compiler understands -Werror... " >&6; }
26637
26638  save_CPPFLAGS="$CPPFLAGS"
26639  CPPFLAGS="$CPPFLAGS -Werror"
26640
26641  ac_ext=m
26642ac_cpp='$OBJCPP $CPPFLAGS'
26643ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26644ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26645ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26646
26647
26648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649/* end confdefs.h.  */
26650
26651int
26652main ()
26653{
26654
26655  ;
26656  return 0;
26657}
26658_ACEOF
26659if ac_fn_objc_try_compile "$LINENO"; then :
26660  flag_ok=yes
26661else
26662  flag_ok=no
26663fi
26664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665  CPPFLAGS="$save_CPPFLAGS"
26666
26667  if test "X$flag_ok" = Xyes ; then
26668    ERROR_OBJCFLAGS="$ERROR_OBJCFLAGS -Werror"
26669    true
26670  else
26671
26672    true
26673  fi
26674
26675  ac_ext=c
26676ac_cpp='$CPP $CPPFLAGS'
26677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26679ac_compiler_gnu=$ac_cv_c_compiler_gnu
26680
26681
26682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
26683$as_echo "$flag_ok" >&6; }
26684
26685
26686    if test "x$ERROR_OBJCFLAGS" != "x"
26687    then
26688				if test -n "$PKG_CONFIG" && \
26689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
26690  ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
26691  ac_status=$?
26692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693  test $ac_status = 0; }; then
26694
26695
26696
26697
26698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -fno-strict-aliasing" >&5
26699$as_echo_n "checking to see if Objective C compiler understands -fno-strict-aliasing... " >&6; }
26700
26701  save_CPPFLAGS="$CPPFLAGS"
26702  CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
26703
26704  ac_ext=m
26705ac_cpp='$OBJCPP $CPPFLAGS'
26706ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26707ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26708ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26709
26710
26711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26712/* end confdefs.h.  */
26713
26714int
26715main ()
26716{
26717
26718  ;
26719  return 0;
26720}
26721_ACEOF
26722if ac_fn_objc_try_compile "$LINENO"; then :
26723  flag_ok=yes
26724else
26725  flag_ok=no
26726fi
26727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728  CPPFLAGS="$save_CPPFLAGS"
26729
26730  if test "X$flag_ok" = Xyes ; then
26731    ERROR_OBJCFLAGS="$ERROR_OBJCFLAGS -fno-strict-aliasing"
26732    true
26733  else
26734
26735    true
26736  fi
26737
26738  ac_ext=c
26739ac_cpp='$CPP $CPPFLAGS'
26740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26742ac_compiler_gnu=$ac_cv_c_compiler_gnu
26743
26744
26745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
26746$as_echo "$flag_ok" >&6; }
26747
26748
26749fi
26750    fi
26751  fi
26752
26753  if test "x
26754    -Wmissing-declarations -Wredundant-decls
26755    -Wwrite-strings -Wformat-nonliteral -Wformat-security
26756    -Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS" != "x"
26757  then
26758    UNSUPPORTED=""
26759    list="
26760    -Wmissing-declarations -Wredundant-decls
26761    -Wwrite-strings -Wformat-nonliteral -Wformat-security
26762    -Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS"
26763    for each in $list
26764    do
26765
26766
26767
26768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands $each" >&5
26769$as_echo_n "checking to see if Objective C compiler understands $each... " >&6; }
26770
26771  save_CPPFLAGS="$CPPFLAGS"
26772  CPPFLAGS="$CPPFLAGS $each"
26773
26774  ac_ext=m
26775ac_cpp='$OBJCPP $CPPFLAGS'
26776ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26777ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26778ac_compiler_gnu=$ac_cv_objc_compiler_gnu
26779
26780
26781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782/* end confdefs.h.  */
26783
26784int
26785main ()
26786{
26787
26788  ;
26789  return 0;
26790}
26791_ACEOF
26792if ac_fn_objc_try_compile "$LINENO"; then :
26793  flag_ok=yes
26794else
26795  flag_ok=no
26796fi
26797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26798  CPPFLAGS="$save_CPPFLAGS"
26799
26800  if test "X$flag_ok" = Xyes ; then
26801    WARNING_OBJCFLAGS="$WARNING_OBJCFLAGS $each"
26802    true
26803  else
26804    UNSUPPORTED="$UNSUPPORTED $each"
26805    true
26806  fi
26807
26808  ac_ext=c
26809ac_cpp='$CPP $CPPFLAGS'
26810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812ac_compiler_gnu=$ac_cv_c_compiler_gnu
26813
26814
26815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
26816$as_echo "$flag_ok" >&6; }
26817
26818    done
26819    if test "X$UNSUPPORTED" != X ; then
26820      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
26821$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
26822    fi
26823  fi
26824
26825
26826
26827  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_OBJCFLAGS to $WARNING_OBJCFLAGS" >&5
26828$as_echo "$as_me: set WARNING_OBJCFLAGS to $WARNING_OBJCFLAGS" >&6;}
26829  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_OBJCFLAGS to $ERROR_OBJCFLAGS" >&5
26830$as_echo "$as_me: set ERROR_OBJCFLAGS to $ERROR_OBJCFLAGS" >&6;}
26831
26832
26833ac_fn_c_check_header_preproc "$LINENO" "MobileCoreServices/MobileCoreServices.h" "ac_cv_header_MobileCoreServices_MobileCoreServices_h"
26834if test "x$ac_cv_header_MobileCoreServices_MobileCoreServices_h" = xyes; then :
26835  HAVE_IOS="yes"
26836else
26837  HAVE_IOS="no"
26838fi
26839
26840
26841
26842 if test "x$HAVE_IOS" = "xyes"; then
26843  HAVE_IOS_TRUE=
26844  HAVE_IOS_FALSE='#'
26845else
26846  HAVE_IOS_TRUE='#'
26847  HAVE_IOS_FALSE=
26848fi
26849
26850if test "x$HAVE_IOS" = "xyes"; then
26851
26852$as_echo "#define HAVE_IOS 1" >>confdefs.h
26853
26854fi
26855
26856# Check whether --enable-opengl was given.
26857if test "${enable_opengl+set}" = set; then :
26858  enableval=$enable_opengl; case "${enableval}" in
26859       yes)  NEED_GL=yes ;;
26860       no)   NEED_GL=no ;;
26861       auto) NEED_GL=auto ;;
26862       *) as_fn_error $? "bad value ${enableval} for --enable-opengl" "$LINENO" 5 ;;
26863     esac
26864else
26865  NEED_GL=auto
26866fi
26867
26868
26869
26870# Check whether --with-opengl-module-name was given.
26871if test "${with_opengl_module_name+set}" = set; then :
26872  withval=$with_opengl_module_name;
26873fi
26874
26875if test x$with_opengl_module_name != x; then
26876
26877cat >>confdefs.h <<_ACEOF
26878#define GST_GL_LIBGL_MODULE_NAME "$with_opengl_module_name"
26879_ACEOF
26880
26881fi
26882
26883# Check whether --enable-gles2 was given.
26884if test "${enable_gles2+set}" = set; then :
26885  enableval=$enable_gles2; case "${enableval}" in
26886       yes)  NEED_GLES2=yes ;;
26887       no)   NEED_GLES2=no ;;
26888       auto) NEED_GLES2=auto ;;
26889       *) as_fn_error $? "bad value ${enableval} for --enable-gles2" "$LINENO" 5 ;;
26890     esac
26891else
26892  NEED_GLES2=auto
26893fi
26894
26895
26896
26897# Check whether --with-gles2-module-name was given.
26898if test "${with_gles2_module_name+set}" = set; then :
26899  withval=$with_gles2_module_name;
26900fi
26901
26902if test x$with_gles2_module_name != x; then
26903
26904cat >>confdefs.h <<_ACEOF
26905#define GST_GL_LIBGLESV2_MODULE_NAME "$with_gles2_module_name"
26906_ACEOF
26907
26908fi
26909
26910# Check whether --enable-egl was given.
26911if test "${enable_egl+set}" = set; then :
26912  enableval=$enable_egl; case "${enableval}" in
26913       yes)  NEED_EGL=yes ;;
26914       no)   NEED_EGL=no ;;
26915       auto) NEED_EGL=auto ;;
26916       *) as_fn_error $? "bad value ${enableval} for --enable-egl" "$LINENO" 5 ;;
26917     esac
26918else
26919  NEED_EGL=auto
26920fi
26921
26922
26923
26924# Check whether --with-egl-module-name was given.
26925if test "${with_egl_module_name+set}" = set; then :
26926  withval=$with_egl_module_name;
26927fi
26928
26929if test x$with_egl_module_name != x; then
26930
26931cat >>confdefs.h <<_ACEOF
26932#define GST_GL_LIBEGL_MODULE_NAME "$with_egl_module_name"
26933_ACEOF
26934
26935fi
26936
26937# Check whether --enable-wgl was given.
26938if test "${enable_wgl+set}" = set; then :
26939  enableval=$enable_wgl; case "${enableval}" in
26940       yes)  NEED_WGL=yes ;;
26941       no)   NEED_WGL=no ;;
26942       auto) NEED_WGL=auto ;;
26943       *) as_fn_error $? "bad value ${enableval} for --enable-wgl" "$LINENO" 5 ;;
26944     esac
26945else
26946  NEED_WGL=auto
26947fi
26948
26949
26950# Check whether --enable-glx was given.
26951if test "${enable_glx+set}" = set; then :
26952  enableval=$enable_glx; case "${enableval}" in
26953       yes)  NEED_GLX=yes ;;
26954       no)   NEED_GLX=no ;;
26955       auto) NEED_GLX=auto ;;
26956       *) as_fn_error $? "bad value ${enableval} for --enable-glx" "$LINENO" 5 ;;
26957     esac
26958else
26959  NEED_GLX=auto
26960fi
26961
26962
26963# Check whether --enable-cocoa was given.
26964if test "${enable_cocoa+set}" = set; then :
26965  enableval=$enable_cocoa; case "${enableval}" in
26966       yes)  NEED_COCOA=yes ;;
26967       no)   NEED_COCOA=no ;;
26968       auto) NEED_COCOA=auto ;;
26969       *) as_fn_error $? "bad value ${enableval} for --enable-cocoa" "$LINENO" 5 ;;
26970     esac
26971else
26972  NEED_COCOA=auto
26973fi
26974
26975
26976# Check whether --enable-x11 was given.
26977if test "${enable_x11+set}" = set; then :
26978  enableval=$enable_x11; case "${enableval}" in
26979       yes)  NEED_X11=yes ;;
26980       no)   NEED_X11=no ;;
26981       auto) NEED_X11=auto ;;
26982       *) as_fn_error $? "bad value ${enableval} for --enable-x11" "$LINENO" 5 ;;
26983     esac
26984else
26985  NEED_X11=auto
26986fi
26987
26988
26989# Check whether --enable-wayland was given.
26990if test "${enable_wayland+set}" = set; then :
26991  enableval=$enable_wayland; case "${enableval}" in
26992       yes)  NEED_WAYLAND_EGL=yes ;;
26993       no)   NEED_WAYLAND_EGL=no ;;
26994       auto) NEED_WAYLAND_EGL=auto ;;
26995       *) as_fn_error $? "bad value ${enableval} for --enable-wayland" "$LINENO" 5 ;;
26996     esac
26997else
26998  NEED_WAYLAND_EGL=auto
26999fi
27000
27001
27002# Check whether --enable-dispmanx was given.
27003if test "${enable_dispmanx+set}" = set; then :
27004  enableval=$enable_dispmanx; case "${enableval}" in
27005       yes)  NEED_DISPMANX=yes ;;
27006       no)   NEED_DISPMANX=no ;;
27007       auto) NEED_DISPMANX=auto ;;
27008       *) as_fn_error $? "bad value ${enableval} for --enable-dispmanx" "$LINENO" 5 ;;
27009     esac
27010else
27011  NEED_DISPMANX=auto
27012fi
27013
27014
27015# Check whether --enable-gbm was given.
27016if test "${enable_gbm+set}" = set; then :
27017  enableval=$enable_gbm; case "${enableval}" in
27018       yes)  NEED_GBM=yes ;;
27019       no)   NEED_GBM=no ;;
27020       auto) NEED_GBM=auto ;;
27021       *) as_fn_error $? "bad value ${enableval} for --enable-gbm" "$LINENO" 5 ;;
27022     esac
27023else
27024  NEED_GBM=auto
27025fi
27026
27027
27028# Check whether --enable-png was given.
27029if test "${enable_png+set}" = set; then :
27030  enableval=$enable_png; case "${enableval}" in
27031       yes)  NEED_PNG=yes ;;
27032       no)   NEED_PNG=no ;;
27033       auto) NEED_PNG=auto ;;
27034       *) as_fn_error $? "bad value ${enableval} for --enable-png" "$LINENO" 5 ;;
27035     esac
27036else
27037  NEED_PNG=auto
27038fi
27039
27040
27041# Check whether --enable-jpeg was given.
27042if test "${enable_jpeg+set}" = set; then :
27043  enableval=$enable_jpeg; case "${enableval}" in
27044       yes)  NEED_JPEG=yes ;;
27045       no)   NEED_JPEG=no ;;
27046       auto) NEED_JPEG=auto ;;
27047       *) as_fn_error $? "bad value ${enableval} for --enable-jpeg" "$LINENO" 5 ;;
27048     esac
27049else
27050  NEED_JPEG=auto
27051fi
27052
27053
27054
27055  which="x11-xcb"
27056    required="no"
27057
27058
27059pkg_failed=no
27060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_XCB" >&5
27061$as_echo_n "checking for X11_XCB... " >&6; }
27062
27063if test -n "$PKG_CONFIG"; then
27064    if test -n "$X11_XCB_CFLAGS"; then
27065        pkg_cv_X11_XCB_CFLAGS="$X11_XCB_CFLAGS"
27066    else
27067        if test -n "$PKG_CONFIG" && \
27068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27069  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27070  ac_status=$?
27071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27072  test $ac_status = 0; }; then
27073  pkg_cv_X11_XCB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27074else
27075  pkg_failed=yes
27076fi
27077    fi
27078else
27079	pkg_failed=untried
27080fi
27081if test -n "$PKG_CONFIG"; then
27082    if test -n "$X11_XCB_LIBS"; then
27083        pkg_cv_X11_XCB_LIBS="$X11_XCB_LIBS"
27084    else
27085        if test -n "$PKG_CONFIG" && \
27086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27087  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27088  ac_status=$?
27089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27090  test $ac_status = 0; }; then
27091  pkg_cv_X11_XCB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27092else
27093  pkg_failed=yes
27094fi
27095    fi
27096else
27097	pkg_failed=untried
27098fi
27099
27100
27101
27102if test $pkg_failed = yes; then
27103
27104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27105        _pkg_short_errors_supported=yes
27106else
27107        _pkg_short_errors_supported=no
27108fi
27109        if test $_pkg_short_errors_supported = yes; then
27110	        X11_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27111        else
27112	        X11_XCB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27113        fi
27114	# Put the nasty error message in config.log where it belongs
27115	echo "$X11_XCB_PKG_ERRORS" >&5
27116
27117	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27118$as_echo "no" >&6; }
27119
27120      HAVE_X11_XCB="no"
27121      if test "x$required" = "xyes"; then
27122        as_fn_error $? "$X11_XCB_PKG_ERRORS" "$LINENO" 5
27123      else
27124        { $as_echo "$as_me:${as_lineno-$LINENO}: $X11_XCB_PKG_ERRORS" >&5
27125$as_echo "$as_me: $X11_XCB_PKG_ERRORS" >&6;}
27126      fi
27127
27128elif test $pkg_failed = untried; then
27129
27130      HAVE_X11_XCB="no"
27131      if test "x$required" = "xyes"; then
27132        as_fn_error $? "$X11_XCB_PKG_ERRORS" "$LINENO" 5
27133      else
27134        { $as_echo "$as_me:${as_lineno-$LINENO}: $X11_XCB_PKG_ERRORS" >&5
27135$as_echo "$as_me: $X11_XCB_PKG_ERRORS" >&6;}
27136      fi
27137
27138else
27139	X11_XCB_CFLAGS=$pkg_cv_X11_XCB_CFLAGS
27140	X11_XCB_LIBS=$pkg_cv_X11_XCB_LIBS
27141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27142$as_echo "yes" >&6; }
27143
27144      HAVE_X11_XCB="yes"
27145
27146fi
27147
27148
27149save_CPPFLAGS="$CPPFLAGS"
27150save_LIBS="$LIBS"
27151
27152HAVE_GL=no
27153HAVE_GLES2=no
27154HAVE_GLES3_H=no
27155HAVE_WAYLAND_EGL=no
27156HAVE_VIV_FB_EGL=no
27157HAVE_GBM_EGL=no
27158HAVE_EGL_RPI=no
27159
27160case $host in
27161  *-mingw32* )
27162    LIBS="$LIBS -lgdi32"
27163
27164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lopengl32" >&5
27165$as_echo_n "checking for glTexImage2D in -lopengl32... " >&6; }
27166if ${ac_cv_lib_opengl32_glTexImage2D+:} false; then :
27167  $as_echo_n "(cached) " >&6
27168else
27169  ac_check_lib_save_LIBS=$LIBS
27170LIBS="-lopengl32  $LIBS"
27171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27172/* end confdefs.h.  */
27173
27174/* Override any GCC internal prototype to avoid an error.
27175   Use char because int might match the return type of a GCC
27176   builtin and then its argument prototype would still apply.  */
27177#ifdef __cplusplus
27178extern "C"
27179#endif
27180char glTexImage2D ();
27181int
27182main ()
27183{
27184return glTexImage2D ();
27185  ;
27186  return 0;
27187}
27188_ACEOF
27189if ac_fn_c_try_link "$LINENO"; then :
27190  ac_cv_lib_opengl32_glTexImage2D=yes
27191else
27192  ac_cv_lib_opengl32_glTexImage2D=no
27193fi
27194rm -f core conftest.err conftest.$ac_objext \
27195    conftest$ac_exeext conftest.$ac_ext
27196LIBS=$ac_check_lib_save_LIBS
27197fi
27198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opengl32_glTexImage2D" >&5
27199$as_echo "$ac_cv_lib_opengl32_glTexImage2D" >&6; }
27200if test "x$ac_cv_lib_opengl32_glTexImage2D" = xyes; then :
27201  HAVE_GL=yes
27202else
27203  HAVE_GL=no
27204fi
27205
27206  if test "x$HAVE_GL" = "xyes"; then
27207    ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
27208if test "x$ac_cv_header_GL_gl_h" = xyes; then :
27209  :
27210else
27211  HAVE_GL=no
27212fi
27213
27214
27215    if test "x$HAVE_GL" = "xyes"; then
27216            :
27217    else
27218      :
27219    fi
27220  else
27221    :
27222  fi
27223
27224
27225
27226    ac_fn_c_check_header_compile "$LINENO" "GL/wglext.h" "ac_cv_header_GL_wglext_h" "#include <GL/gl.h>
27227"
27228if test "x$ac_cv_header_GL_wglext_h" = xyes; then :
27229  HAVE_WGLEXT="yes"
27230else
27231  HAVE_WGLEXT="no"
27232fi
27233
27234
27235    if test "x$HAVE_WGLEXT" = "xyes"; then
27236      HAVE_WGL=yes
27237      HAVE_GL=yes
27238    fi
27239  ;;
27240  *)
27241    if test "x$NEED_GL" != "xno"; then
27242
27243  which="gl"
27244    required="no"
27245
27246
27247pkg_failed=no
27248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
27249$as_echo_n "checking for GL... " >&6; }
27250
27251if test -n "$PKG_CONFIG"; then
27252    if test -n "$GL_CFLAGS"; then
27253        pkg_cv_GL_CFLAGS="$GL_CFLAGS"
27254    else
27255        if test -n "$PKG_CONFIG" && \
27256    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27257  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27258  ac_status=$?
27259  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27260  test $ac_status = 0; }; then
27261  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27262else
27263  pkg_failed=yes
27264fi
27265    fi
27266else
27267	pkg_failed=untried
27268fi
27269if test -n "$PKG_CONFIG"; then
27270    if test -n "$GL_LIBS"; then
27271        pkg_cv_GL_LIBS="$GL_LIBS"
27272    else
27273        if test -n "$PKG_CONFIG" && \
27274    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27275  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27276  ac_status=$?
27277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27278  test $ac_status = 0; }; then
27279  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27280else
27281  pkg_failed=yes
27282fi
27283    fi
27284else
27285	pkg_failed=untried
27286fi
27287
27288
27289
27290if test $pkg_failed = yes; then
27291
27292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27293        _pkg_short_errors_supported=yes
27294else
27295        _pkg_short_errors_supported=no
27296fi
27297        if test $_pkg_short_errors_supported = yes; then
27298	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27299        else
27300	        GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27301        fi
27302	# Put the nasty error message in config.log where it belongs
27303	echo "$GL_PKG_ERRORS" >&5
27304
27305	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306$as_echo "no" >&6; }
27307
27308      HAVE_GL="no"
27309      if test "x$required" = "xyes"; then
27310        as_fn_error $? "$GL_PKG_ERRORS" "$LINENO" 5
27311      else
27312        { $as_echo "$as_me:${as_lineno-$LINENO}: $GL_PKG_ERRORS" >&5
27313$as_echo "$as_me: $GL_PKG_ERRORS" >&6;}
27314      fi
27315
27316elif test $pkg_failed = untried; then
27317
27318      HAVE_GL="no"
27319      if test "x$required" = "xyes"; then
27320        as_fn_error $? "$GL_PKG_ERRORS" "$LINENO" 5
27321      else
27322        { $as_echo "$as_me:${as_lineno-$LINENO}: $GL_PKG_ERRORS" >&5
27323$as_echo "$as_me: $GL_PKG_ERRORS" >&6;}
27324      fi
27325
27326else
27327	GL_CFLAGS=$pkg_cv_GL_CFLAGS
27328	GL_LIBS=$pkg_cv_GL_LIBS
27329        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27330$as_echo "yes" >&6; }
27331
27332      HAVE_GL="yes"
27333
27334fi
27335
27336
27337      if test "x$HAVE_GL" != "xyes"; then
27338
27339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGL" >&5
27340$as_echo_n "checking for glTexImage2D in -lGL... " >&6; }
27341if ${ac_cv_lib_GL_glTexImage2D+:} false; then :
27342  $as_echo_n "(cached) " >&6
27343else
27344  ac_check_lib_save_LIBS=$LIBS
27345LIBS="-lGL  $LIBS"
27346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27347/* end confdefs.h.  */
27348
27349/* Override any GCC internal prototype to avoid an error.
27350   Use char because int might match the return type of a GCC
27351   builtin and then its argument prototype would still apply.  */
27352#ifdef __cplusplus
27353extern "C"
27354#endif
27355char glTexImage2D ();
27356int
27357main ()
27358{
27359return glTexImage2D ();
27360  ;
27361  return 0;
27362}
27363_ACEOF
27364if ac_fn_c_try_link "$LINENO"; then :
27365  ac_cv_lib_GL_glTexImage2D=yes
27366else
27367  ac_cv_lib_GL_glTexImage2D=no
27368fi
27369rm -f core conftest.err conftest.$ac_objext \
27370    conftest$ac_exeext conftest.$ac_ext
27371LIBS=$ac_check_lib_save_LIBS
27372fi
27373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glTexImage2D" >&5
27374$as_echo "$ac_cv_lib_GL_glTexImage2D" >&6; }
27375if test "x$ac_cv_lib_GL_glTexImage2D" = xyes; then :
27376  HAVE_GL=yes
27377else
27378  HAVE_GL=no
27379fi
27380
27381  if test "x$HAVE_GL" = "xyes"; then
27382    ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
27383if test "x$ac_cv_header_GL_gl_h" = xyes; then :
27384  :
27385else
27386  HAVE_GL=no
27387fi
27388
27389
27390    if test "x$HAVE_GL" = "xyes"; then
27391            :
27392    else
27393      :
27394    fi
27395  else
27396    :
27397  fi
27398
27399
27400
27401      fi
27402    fi
27403    if test "x$NEED_GLES2" != "xno"; then
27404
27405  which="glesv2"
27406    required="no"
27407
27408
27409pkg_failed=no
27410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLES2" >&5
27411$as_echo_n "checking for GLES2... " >&6; }
27412
27413if test -n "$PKG_CONFIG"; then
27414    if test -n "$GLES2_CFLAGS"; then
27415        pkg_cv_GLES2_CFLAGS="$GLES2_CFLAGS"
27416    else
27417        if test -n "$PKG_CONFIG" && \
27418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27419  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27420  ac_status=$?
27421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422  test $ac_status = 0; }; then
27423  pkg_cv_GLES2_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27424else
27425  pkg_failed=yes
27426fi
27427    fi
27428else
27429	pkg_failed=untried
27430fi
27431if test -n "$PKG_CONFIG"; then
27432    if test -n "$GLES2_LIBS"; then
27433        pkg_cv_GLES2_LIBS="$GLES2_LIBS"
27434    else
27435        if test -n "$PKG_CONFIG" && \
27436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27437  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27438  ac_status=$?
27439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27440  test $ac_status = 0; }; then
27441  pkg_cv_GLES2_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27442else
27443  pkg_failed=yes
27444fi
27445    fi
27446else
27447	pkg_failed=untried
27448fi
27449
27450
27451
27452if test $pkg_failed = yes; then
27453
27454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27455        _pkg_short_errors_supported=yes
27456else
27457        _pkg_short_errors_supported=no
27458fi
27459        if test $_pkg_short_errors_supported = yes; then
27460	        GLES2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27461        else
27462	        GLES2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27463        fi
27464	# Put the nasty error message in config.log where it belongs
27465	echo "$GLES2_PKG_ERRORS" >&5
27466
27467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27468$as_echo "no" >&6; }
27469
27470      HAVE_GLES2="no"
27471      if test "x$required" = "xyes"; then
27472        as_fn_error $? "$GLES2_PKG_ERRORS" "$LINENO" 5
27473      else
27474        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLES2_PKG_ERRORS" >&5
27475$as_echo "$as_me: $GLES2_PKG_ERRORS" >&6;}
27476      fi
27477
27478elif test $pkg_failed = untried; then
27479
27480      HAVE_GLES2="no"
27481      if test "x$required" = "xyes"; then
27482        as_fn_error $? "$GLES2_PKG_ERRORS" "$LINENO" 5
27483      else
27484        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLES2_PKG_ERRORS" >&5
27485$as_echo "$as_me: $GLES2_PKG_ERRORS" >&6;}
27486      fi
27487
27488else
27489	GLES2_CFLAGS=$pkg_cv_GLES2_CFLAGS
27490	GLES2_LIBS=$pkg_cv_GLES2_LIBS
27491        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27492$as_echo "yes" >&6; }
27493
27494      HAVE_GLES2="yes"
27495
27496fi
27497
27498
27499      if test "x$HAVE_GLES2" != "xyes"; then
27500
27501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexImage2D in -lGLESv2" >&5
27502$as_echo_n "checking for glTexImage2D in -lGLESv2... " >&6; }
27503if ${ac_cv_lib_GLESv2_glTexImage2D+:} false; then :
27504  $as_echo_n "(cached) " >&6
27505else
27506  ac_check_lib_save_LIBS=$LIBS
27507LIBS="-lGLESv2  $LIBS"
27508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27509/* end confdefs.h.  */
27510
27511/* Override any GCC internal prototype to avoid an error.
27512   Use char because int might match the return type of a GCC
27513   builtin and then its argument prototype would still apply.  */
27514#ifdef __cplusplus
27515extern "C"
27516#endif
27517char glTexImage2D ();
27518int
27519main ()
27520{
27521return glTexImage2D ();
27522  ;
27523  return 0;
27524}
27525_ACEOF
27526if ac_fn_c_try_link "$LINENO"; then :
27527  ac_cv_lib_GLESv2_glTexImage2D=yes
27528else
27529  ac_cv_lib_GLESv2_glTexImage2D=no
27530fi
27531rm -f core conftest.err conftest.$ac_objext \
27532    conftest$ac_exeext conftest.$ac_ext
27533LIBS=$ac_check_lib_save_LIBS
27534fi
27535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexImage2D" >&5
27536$as_echo "$ac_cv_lib_GLESv2_glTexImage2D" >&6; }
27537if test "x$ac_cv_lib_GLESv2_glTexImage2D" = xyes; then :
27538  HAVE_GLES2=yes
27539else
27540  HAVE_GLES2=no
27541fi
27542
27543  if test "x$HAVE_GLES2" = "xyes"; then
27544    ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
27545if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
27546  :
27547else
27548  HAVE_GLES2=no
27549fi
27550
27551
27552    if test "x$HAVE_GLES2" = "xyes"; then
27553            :
27554    else
27555      :
27556    fi
27557  else
27558    :
27559  fi
27560
27561
27562
27563      fi
27564      ac_fn_c_check_header_mongrel "$LINENO" "GLES3/gl3.h" "ac_cv_header_GLES3_gl3_h" "$ac_includes_default"
27565if test "x$ac_cv_header_GLES3_gl3_h" = xyes; then :
27566  HAVE_GLES3_H=yes
27567fi
27568
27569
27570      if test "x$HAVE_GLES3_H" == "xyes"; then :
27571
27572             ac_fn_c_check_header_compile "$LINENO" "GLES3/gl3ext.h" "ac_cv_header_GLES3_gl3ext_h" "#include <GLES3/gl3.h>
27573"
27574if test "x$ac_cv_header_GLES3_gl3ext_h" = xyes; then :
27575  HAVE_GLES3EXT3_H=yes
27576else
27577  HAVE_GLES3EXT3_H=no
27578fi
27579
27580
27581
27582fi
27583    fi
27584    if test "x$NEED_EGL" != "xno"; then
27585
27586  which="egl"
27587    required="no"
27588
27589
27590pkg_failed=no
27591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5
27592$as_echo_n "checking for EGL... " >&6; }
27593
27594if test -n "$PKG_CONFIG"; then
27595    if test -n "$EGL_CFLAGS"; then
27596        pkg_cv_EGL_CFLAGS="$EGL_CFLAGS"
27597    else
27598        if test -n "$PKG_CONFIG" && \
27599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27600  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27601  ac_status=$?
27602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27603  test $ac_status = 0; }; then
27604  pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27605else
27606  pkg_failed=yes
27607fi
27608    fi
27609else
27610	pkg_failed=untried
27611fi
27612if test -n "$PKG_CONFIG"; then
27613    if test -n "$EGL_LIBS"; then
27614        pkg_cv_EGL_LIBS="$EGL_LIBS"
27615    else
27616        if test -n "$PKG_CONFIG" && \
27617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27618  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27619  ac_status=$?
27620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27621  test $ac_status = 0; }; then
27622  pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27623else
27624  pkg_failed=yes
27625fi
27626    fi
27627else
27628	pkg_failed=untried
27629fi
27630
27631
27632
27633if test $pkg_failed = yes; then
27634
27635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27636        _pkg_short_errors_supported=yes
27637else
27638        _pkg_short_errors_supported=no
27639fi
27640        if test $_pkg_short_errors_supported = yes; then
27641	        EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27642        else
27643	        EGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27644        fi
27645	# Put the nasty error message in config.log where it belongs
27646	echo "$EGL_PKG_ERRORS" >&5
27647
27648	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27649$as_echo "no" >&6; }
27650
27651      HAVE_EGL="no"
27652      if test "x$required" = "xyes"; then
27653        as_fn_error $? "$EGL_PKG_ERRORS" "$LINENO" 5
27654      else
27655        { $as_echo "$as_me:${as_lineno-$LINENO}: $EGL_PKG_ERRORS" >&5
27656$as_echo "$as_me: $EGL_PKG_ERRORS" >&6;}
27657      fi
27658
27659elif test $pkg_failed = untried; then
27660
27661      HAVE_EGL="no"
27662      if test "x$required" = "xyes"; then
27663        as_fn_error $? "$EGL_PKG_ERRORS" "$LINENO" 5
27664      else
27665        { $as_echo "$as_me:${as_lineno-$LINENO}: $EGL_PKG_ERRORS" >&5
27666$as_echo "$as_me: $EGL_PKG_ERRORS" >&6;}
27667      fi
27668
27669else
27670	EGL_CFLAGS=$pkg_cv_EGL_CFLAGS
27671	EGL_LIBS=$pkg_cv_EGL_LIBS
27672        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27673$as_echo "yes" >&6; }
27674
27675      HAVE_EGL="yes"
27676
27677fi
27678
27679
27680      if test "x$HAVE_EGL" != "xyes"; then
27681
27682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetError in -lEGL" >&5
27683$as_echo_n "checking for eglGetError in -lEGL... " >&6; }
27684if ${ac_cv_lib_EGL_eglGetError+:} false; then :
27685  $as_echo_n "(cached) " >&6
27686else
27687  ac_check_lib_save_LIBS=$LIBS
27688LIBS="-lEGL  $LIBS"
27689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27690/* end confdefs.h.  */
27691
27692/* Override any GCC internal prototype to avoid an error.
27693   Use char because int might match the return type of a GCC
27694   builtin and then its argument prototype would still apply.  */
27695#ifdef __cplusplus
27696extern "C"
27697#endif
27698char eglGetError ();
27699int
27700main ()
27701{
27702return eglGetError ();
27703  ;
27704  return 0;
27705}
27706_ACEOF
27707if ac_fn_c_try_link "$LINENO"; then :
27708  ac_cv_lib_EGL_eglGetError=yes
27709else
27710  ac_cv_lib_EGL_eglGetError=no
27711fi
27712rm -f core conftest.err conftest.$ac_objext \
27713    conftest$ac_exeext conftest.$ac_ext
27714LIBS=$ac_check_lib_save_LIBS
27715fi
27716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetError" >&5
27717$as_echo "$ac_cv_lib_EGL_eglGetError" >&6; }
27718if test "x$ac_cv_lib_EGL_eglGetError" = xyes; then :
27719  HAVE_EGL=yes
27720else
27721  HAVE_EGL=no
27722fi
27723
27724  if test "x$HAVE_EGL" = "xyes"; then
27725    ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
27726if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
27727  :
27728else
27729  HAVE_EGL=no
27730fi
27731
27732
27733    if test "x$HAVE_EGL" = "xyes"; then
27734            :
27735    else
27736      :
27737    fi
27738  else
27739    :
27740  fi
27741
27742
27743
27744      fi
27745    fi
27746
27747    old_LIBS=$LIBS
27748    old_CFLAGS=$CFLAGS
27749
27750        if test "x$HAVE_EGL" = "xyes"; then
27751        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fbGetDisplay in -lEGL" >&5
27752$as_echo_n "checking for fbGetDisplay in -lEGL... " >&6; }
27753if ${ac_cv_lib_EGL_fbGetDisplay+:} false; then :
27754  $as_echo_n "(cached) " >&6
27755else
27756  ac_check_lib_save_LIBS=$LIBS
27757LIBS="-lEGL  $LIBS"
27758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27759/* end confdefs.h.  */
27760
27761/* Override any GCC internal prototype to avoid an error.
27762   Use char because int might match the return type of a GCC
27763   builtin and then its argument prototype would still apply.  */
27764#ifdef __cplusplus
27765extern "C"
27766#endif
27767char fbGetDisplay ();
27768int
27769main ()
27770{
27771return fbGetDisplay ();
27772  ;
27773  return 0;
27774}
27775_ACEOF
27776if ac_fn_c_try_link "$LINENO"; then :
27777  ac_cv_lib_EGL_fbGetDisplay=yes
27778else
27779  ac_cv_lib_EGL_fbGetDisplay=no
27780fi
27781rm -f core conftest.err conftest.$ac_objext \
27782    conftest$ac_exeext conftest.$ac_ext
27783LIBS=$ac_check_lib_save_LIBS
27784fi
27785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_fbGetDisplay" >&5
27786$as_echo "$ac_cv_lib_EGL_fbGetDisplay" >&6; }
27787if test "x$ac_cv_lib_EGL_fbGetDisplay" = xyes; then :
27788  HAVE_VIV_FB_EGL=yes
27789fi
27790
27791    fi
27792
27793    if test "x$NEED_GBM" != "xno"; then
27794      if test "x$HAVE_EGL" = "xyes"; then
27795
27796pkg_failed=no
27797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
27798$as_echo_n "checking for DRM... " >&6; }
27799
27800if test -n "$PKG_CONFIG"; then
27801    if test -n "$DRM_CFLAGS"; then
27802        pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
27803    else
27804        if test -n "$PKG_CONFIG" && \
27805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.55\""; } >&5
27806  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.55") 2>&5
27807  ac_status=$?
27808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27809  test $ac_status = 0; }; then
27810  pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.55" 2>/dev/null`
27811else
27812  pkg_failed=yes
27813fi
27814    fi
27815else
27816	pkg_failed=untried
27817fi
27818if test -n "$PKG_CONFIG"; then
27819    if test -n "$DRM_LIBS"; then
27820        pkg_cv_DRM_LIBS="$DRM_LIBS"
27821    else
27822        if test -n "$PKG_CONFIG" && \
27823    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.55\""; } >&5
27824  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.55") 2>&5
27825  ac_status=$?
27826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27827  test $ac_status = 0; }; then
27828  pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.55" 2>/dev/null`
27829else
27830  pkg_failed=yes
27831fi
27832    fi
27833else
27834	pkg_failed=untried
27835fi
27836
27837
27838
27839if test $pkg_failed = yes; then
27840
27841if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27842        _pkg_short_errors_supported=yes
27843else
27844        _pkg_short_errors_supported=no
27845fi
27846        if test $_pkg_short_errors_supported = yes; then
27847	        DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.55"`
27848        else
27849	        DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.55"`
27850        fi
27851	# Put the nasty error message in config.log where it belongs
27852	echo "$DRM_PKG_ERRORS" >&5
27853
27854	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27855$as_echo "no" >&6; }
27856                HAVE_DRM=no
27857elif test $pkg_failed = untried; then
27858	HAVE_DRM=no
27859else
27860	DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
27861	DRM_LIBS=$pkg_cv_DRM_LIBS
27862        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27863$as_echo "yes" >&6; }
27864	HAVE_DRM=yes
27865fi
27866
27867
27868        if test "x$NEED_GBM" = "xyes"; then
27869          if test "x$HAVE_DRM" = "xno"; then
27870            as_fn_error $? "GBM support requested but libdrm is not available" "$LINENO" 5
27871          fi
27872          if test "x$HAVE_GUDEV" = "xno"; then
27873            as_fn_error $? "GBM support requested but gudev is not available" "$LINENO" 5
27874          fi
27875        fi
27876        if test "x$HAVE_DRM" = "xyes" -a "x$HAVE_GUDEV" = "xyes"; then
27877
27878pkg_failed=no
27879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
27880$as_echo_n "checking for GBM... " >&6; }
27881
27882if test -n "$PKG_CONFIG"; then
27883    if test -n "$GBM_CFLAGS"; then
27884        pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
27885    else
27886        if test -n "$PKG_CONFIG" && \
27887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
27888  ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
27889  ac_status=$?
27890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27891  test $ac_status = 0; }; then
27892  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null`
27893else
27894  pkg_failed=yes
27895fi
27896    fi
27897else
27898	pkg_failed=untried
27899fi
27900if test -n "$PKG_CONFIG"; then
27901    if test -n "$GBM_LIBS"; then
27902        pkg_cv_GBM_LIBS="$GBM_LIBS"
27903    else
27904        if test -n "$PKG_CONFIG" && \
27905    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
27906  ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
27907  ac_status=$?
27908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27909  test $ac_status = 0; }; then
27910  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null`
27911else
27912  pkg_failed=yes
27913fi
27914    fi
27915else
27916	pkg_failed=untried
27917fi
27918
27919
27920
27921if test $pkg_failed = yes; then
27922
27923if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27924        _pkg_short_errors_supported=yes
27925else
27926        _pkg_short_errors_supported=no
27927fi
27928        if test $_pkg_short_errors_supported = yes; then
27929	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gbm"`
27930        else
27931	        GBM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gbm"`
27932        fi
27933	# Put the nasty error message in config.log where it belongs
27934	echo "$GBM_PKG_ERRORS" >&5
27935
27936	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27937$as_echo "no" >&6; }
27938                HAVE_GBM_EGL=no
27939elif test $pkg_failed = untried; then
27940	HAVE_GBM_EGL=no
27941else
27942	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
27943	GBM_LIBS=$pkg_cv_GBM_LIBS
27944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27945$as_echo "yes" >&6; }
27946	HAVE_GBM_EGL=yes
27947fi
27948          if test "x$HAVE_GBM_EGL" = "xno" -a "x$NEED_GBM" = "xyes"; then
27949            as_fn_error $? "GBM support requested but gbm library is not available" "$LINENO" 5
27950          fi
27951
27952
27953        fi
27954      elif test "x$NEED_GBM" = "xyes"; then
27955        as_fn_error $? "GBM support requested but EGL is not available" "$LINENO" 5
27956      else
27957        { $as_echo "$as_me:${as_lineno-$LINENO}: GBM support requested but EGL is not available; not enabling GBM support" >&5
27958$as_echo "$as_me: GBM support requested but EGL is not available; not enabling GBM support" >&6;}
27959      fi
27960    fi
27961
27962        ac_fn_c_check_header_mongrel "$LINENO" "EGL/fbdev_window.h" "ac_cv_header_EGL_fbdev_window_h" "$ac_includes_default"
27963if test "x$ac_cv_header_EGL_fbdev_window_h" = xyes; then :
27964
27965        LIBS="$LIBS -lUMP"
27966        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mali_image_create in -lMali" >&5
27967$as_echo_n "checking for mali_image_create in -lMali... " >&6; }
27968if ${ac_cv_lib_Mali_mali_image_create+:} false; then :
27969  $as_echo_n "(cached) " >&6
27970else
27971  ac_check_lib_save_LIBS=$LIBS
27972LIBS="-lMali  $LIBS"
27973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27974/* end confdefs.h.  */
27975
27976/* Override any GCC internal prototype to avoid an error.
27977   Use char because int might match the return type of a GCC
27978   builtin and then its argument prototype would still apply.  */
27979#ifdef __cplusplus
27980extern "C"
27981#endif
27982char mali_image_create ();
27983int
27984main ()
27985{
27986return mali_image_create ();
27987  ;
27988  return 0;
27989}
27990_ACEOF
27991if ac_fn_c_try_link "$LINENO"; then :
27992  ac_cv_lib_Mali_mali_image_create=yes
27993else
27994  ac_cv_lib_Mali_mali_image_create=no
27995fi
27996rm -f core conftest.err conftest.$ac_objext \
27997    conftest$ac_exeext conftest.$ac_ext
27998LIBS=$ac_check_lib_save_LIBS
27999fi
28000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Mali_mali_image_create" >&5
28001$as_echo "$ac_cv_lib_Mali_mali_image_create" >&6; }
28002if test "x$ac_cv_lib_Mali_mali_image_create" = xyes; then :
28003
28004            LIBS="$LIBS -lMali"
28005            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGLESv2" >&5
28006$as_echo_n "checking for glEnable in -lGLESv2... " >&6; }
28007if ${ac_cv_lib_GLESv2_glEnable+:} false; then :
28008  $as_echo_n "(cached) " >&6
28009else
28010  ac_check_lib_save_LIBS=$LIBS
28011LIBS="-lGLESv2  $LIBS"
28012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28013/* end confdefs.h.  */
28014
28015/* Override any GCC internal prototype to avoid an error.
28016   Use char because int might match the return type of a GCC
28017   builtin and then its argument prototype would still apply.  */
28018#ifdef __cplusplus
28019extern "C"
28020#endif
28021char glEnable ();
28022int
28023main ()
28024{
28025return glEnable ();
28026  ;
28027  return 0;
28028}
28029_ACEOF
28030if ac_fn_c_try_link "$LINENO"; then :
28031  ac_cv_lib_GLESv2_glEnable=yes
28032else
28033  ac_cv_lib_GLESv2_glEnable=no
28034fi
28035rm -f core conftest.err conftest.$ac_objext \
28036    conftest$ac_exeext conftest.$ac_ext
28037LIBS=$ac_check_lib_save_LIBS
28038fi
28039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glEnable" >&5
28040$as_echo "$ac_cv_lib_GLESv2_glEnable" >&6; }
28041if test "x$ac_cv_lib_GLESv2_glEnable" = xyes; then :
28042
28043                ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
28044if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
28045
28046                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetProcAddress in -lEGL" >&5
28047$as_echo_n "checking for eglGetProcAddress in -lEGL... " >&6; }
28048if ${ac_cv_lib_EGL_eglGetProcAddress+:} false; then :
28049  $as_echo_n "(cached) " >&6
28050else
28051  ac_check_lib_save_LIBS=$LIBS
28052LIBS="-lEGL  $LIBS"
28053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28054/* end confdefs.h.  */
28055
28056/* Override any GCC internal prototype to avoid an error.
28057   Use char because int might match the return type of a GCC
28058   builtin and then its argument prototype would still apply.  */
28059#ifdef __cplusplus
28060extern "C"
28061#endif
28062char eglGetProcAddress ();
28063int
28064main ()
28065{
28066return eglGetProcAddress ();
28067  ;
28068  return 0;
28069}
28070_ACEOF
28071if ac_fn_c_try_link "$LINENO"; then :
28072  ac_cv_lib_EGL_eglGetProcAddress=yes
28073else
28074  ac_cv_lib_EGL_eglGetProcAddress=no
28075fi
28076rm -f core conftest.err conftest.$ac_objext \
28077    conftest$ac_exeext conftest.$ac_ext
28078LIBS=$ac_check_lib_save_LIBS
28079fi
28080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetProcAddress" >&5
28081$as_echo "$ac_cv_lib_EGL_eglGetProcAddress" >&6; }
28082if test "x$ac_cv_lib_EGL_eglGetProcAddress" = xyes; then :
28083
28084                        ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
28085if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
28086
28087                            HAVE_EGL=yes
28088                            HAVE_GLES2=yes
28089                            EGL_LIBS="-lMali -lUMP"
28090                            EGL_CFLAGS=""
28091
28092$as_echo "#define USE_EGL_MALI_FB 1" >>confdefs.h
28093
28094
28095fi
28096
28097
28098
28099fi
28100
28101
28102fi
28103
28104
28105
28106fi
28107
28108
28109fi
28110
28111
28112fi
28113
28114
28115
28116            LIBS="$LIBS -lvcos -lvchiq_arm"
28117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host_init in -lbcm_host" >&5
28118$as_echo_n "checking for bcm_host_init in -lbcm_host... " >&6; }
28119if ${ac_cv_lib_bcm_host_bcm_host_init+:} false; then :
28120  $as_echo_n "(cached) " >&6
28121else
28122  ac_check_lib_save_LIBS=$LIBS
28123LIBS="-lbcm_host  $LIBS"
28124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125/* end confdefs.h.  */
28126
28127/* Override any GCC internal prototype to avoid an error.
28128   Use char because int might match the return type of a GCC
28129   builtin and then its argument prototype would still apply.  */
28130#ifdef __cplusplus
28131extern "C"
28132#endif
28133char bcm_host_init ();
28134int
28135main ()
28136{
28137return bcm_host_init ();
28138  ;
28139  return 0;
28140}
28141_ACEOF
28142if ac_fn_c_try_link "$LINENO"; then :
28143  ac_cv_lib_bcm_host_bcm_host_init=yes
28144else
28145  ac_cv_lib_bcm_host_bcm_host_init=no
28146fi
28147rm -f core conftest.err conftest.$ac_objext \
28148    conftest$ac_exeext conftest.$ac_ext
28149LIBS=$ac_check_lib_save_LIBS
28150fi
28151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcm_host_bcm_host_init" >&5
28152$as_echo "$ac_cv_lib_bcm_host_bcm_host_init" >&6; }
28153if test "x$ac_cv_lib_bcm_host_bcm_host_init" = xyes; then :
28154
28155        LIBS="$LIBS -lbcm_host"
28156        ac_fn_c_check_header_mongrel "$LINENO" "bcm_host.h" "ac_cv_header_bcm_host_h" "$ac_includes_default"
28157if test "x$ac_cv_header_bcm_host_h" = xyes; then :
28158
28159            LIBS="$LIBS -lGLESv2"
28160            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eglGetProcAddress in -lEGL" >&5
28161$as_echo_n "checking for eglGetProcAddress in -lEGL... " >&6; }
28162if ${ac_cv_lib_EGL_eglGetProcAddress+:} false; then :
28163  $as_echo_n "(cached) " >&6
28164else
28165  ac_check_lib_save_LIBS=$LIBS
28166LIBS="-lEGL  $LIBS"
28167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28168/* end confdefs.h.  */
28169
28170/* Override any GCC internal prototype to avoid an error.
28171   Use char because int might match the return type of a GCC
28172   builtin and then its argument prototype would still apply.  */
28173#ifdef __cplusplus
28174extern "C"
28175#endif
28176char eglGetProcAddress ();
28177int
28178main ()
28179{
28180return eglGetProcAddress ();
28181  ;
28182  return 0;
28183}
28184_ACEOF
28185if ac_fn_c_try_link "$LINENO"; then :
28186  ac_cv_lib_EGL_eglGetProcAddress=yes
28187else
28188  ac_cv_lib_EGL_eglGetProcAddress=no
28189fi
28190rm -f core conftest.err conftest.$ac_objext \
28191    conftest$ac_exeext conftest.$ac_ext
28192LIBS=$ac_check_lib_save_LIBS
28193fi
28194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_EGL_eglGetProcAddress" >&5
28195$as_echo "$ac_cv_lib_EGL_eglGetProcAddress" >&6; }
28196if test "x$ac_cv_lib_EGL_eglGetProcAddress" = xyes; then :
28197
28198                LIBS="$LIBS -lEGL"
28199                ac_fn_c_check_header_mongrel "$LINENO" "EGL/egl.h" "ac_cv_header_EGL_egl_h" "$ac_includes_default"
28200if test "x$ac_cv_header_EGL_egl_h" = xyes; then :
28201
28202                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lGLESv2" >&5
28203$as_echo_n "checking for glEnable in -lGLESv2... " >&6; }
28204if ${ac_cv_lib_GLESv2_glEnable+:} false; then :
28205  $as_echo_n "(cached) " >&6
28206else
28207  ac_check_lib_save_LIBS=$LIBS
28208LIBS="-lGLESv2  $LIBS"
28209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28210/* end confdefs.h.  */
28211
28212/* Override any GCC internal prototype to avoid an error.
28213   Use char because int might match the return type of a GCC
28214   builtin and then its argument prototype would still apply.  */
28215#ifdef __cplusplus
28216extern "C"
28217#endif
28218char glEnable ();
28219int
28220main ()
28221{
28222return glEnable ();
28223  ;
28224  return 0;
28225}
28226_ACEOF
28227if ac_fn_c_try_link "$LINENO"; then :
28228  ac_cv_lib_GLESv2_glEnable=yes
28229else
28230  ac_cv_lib_GLESv2_glEnable=no
28231fi
28232rm -f core conftest.err conftest.$ac_objext \
28233    conftest$ac_exeext conftest.$ac_ext
28234LIBS=$ac_check_lib_save_LIBS
28235fi
28236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glEnable" >&5
28237$as_echo "$ac_cv_lib_GLESv2_glEnable" >&6; }
28238if test "x$ac_cv_lib_GLESv2_glEnable" = xyes; then :
28239
28240                        ac_fn_c_check_header_mongrel "$LINENO" "GLES2/gl2.h" "ac_cv_header_GLES2_gl2_h" "$ac_includes_default"
28241if test "x$ac_cv_header_GLES2_gl2_h" = xyes; then :
28242
28243                            HAVE_EGL=yes
28244                            HAVE_GLES2=yes
28245                            HAVE_EGL_RPI=yes
28246                            EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm"
28247                            EGL_CFLAGS=""
28248
28249$as_echo "#define USE_EGL_RPI 1" >>confdefs.h
28250
28251
28252fi
28253
28254
28255
28256fi
28257
28258
28259fi
28260
28261
28262
28263fi
28264
28265
28266fi
28267
28268
28269
28270fi
28271
28272
28273    LIBS=$old_LIBS
28274    CFLAGS=$old_CFLAGS
28275
28276
28277pkg_failed=no
28278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_EGL" >&5
28279$as_echo_n "checking for WAYLAND_EGL... " >&6; }
28280
28281if test -n "$PKG_CONFIG"; then
28282    if test -n "$WAYLAND_EGL_CFLAGS"; then
28283        pkg_cv_WAYLAND_EGL_CFLAGS="$WAYLAND_EGL_CFLAGS"
28284    else
28285        if test -n "$PKG_CONFIG" && \
28286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15\""; } >&5
28287  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15") 2>&5
28288  ac_status=$?
28289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28290  test $ac_status = 0; }; then
28291  pkg_cv_WAYLAND_EGL_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15" 2>/dev/null`
28292else
28293  pkg_failed=yes
28294fi
28295    fi
28296else
28297	pkg_failed=untried
28298fi
28299if test -n "$PKG_CONFIG"; then
28300    if test -n "$WAYLAND_EGL_LIBS"; then
28301        pkg_cv_WAYLAND_EGL_LIBS="$WAYLAND_EGL_LIBS"
28302    else
28303        if test -n "$PKG_CONFIG" && \
28304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15\""; } >&5
28305  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15") 2>&5
28306  ac_status=$?
28307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28308  test $ac_status = 0; }; then
28309  pkg_cv_WAYLAND_EGL_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15" 2>/dev/null`
28310else
28311  pkg_failed=yes
28312fi
28313    fi
28314else
28315	pkg_failed=untried
28316fi
28317
28318
28319
28320if test $pkg_failed = yes; then
28321
28322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28323        _pkg_short_errors_supported=yes
28324else
28325        _pkg_short_errors_supported=no
28326fi
28327        if test $_pkg_short_errors_supported = yes; then
28328	        WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15"`
28329        else
28330	        WAYLAND_EGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0 wayland-protocols >= 1.15"`
28331        fi
28332	# Put the nasty error message in config.log where it belongs
28333	echo "$WAYLAND_EGL_PKG_ERRORS" >&5
28334
28335	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28336$as_echo "no" >&6; }
28337                HAVE_WAYLAND_EGL=no
28338elif test $pkg_failed = untried; then
28339	HAVE_WAYLAND_EGL=no
28340else
28341	WAYLAND_EGL_CFLAGS=$pkg_cv_WAYLAND_EGL_CFLAGS
28342	WAYLAND_EGL_LIBS=$pkg_cv_WAYLAND_EGL_LIBS
28343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28344$as_echo "yes" >&6; }
28345	HAVE_WAYLAND_EGL=yes
28346fi
28347    for ac_prog in wayland-scanner
28348do
28349  # Extract the first word of "$ac_prog", so it can be a program name with args.
28350set dummy $ac_prog; ac_word=$2
28351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28352$as_echo_n "checking for $ac_word... " >&6; }
28353if ${ac_cv_prog_WAYLAND_SCANNER+:} false; then :
28354  $as_echo_n "(cached) " >&6
28355else
28356  if test -n "$WAYLAND_SCANNER"; then
28357  ac_cv_prog_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test.
28358else
28359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28360for as_dir in $PATH
28361do
28362  IFS=$as_save_IFS
28363  test -z "$as_dir" && as_dir=.
28364    for ac_exec_ext in '' $ac_executable_extensions; do
28365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28366    ac_cv_prog_WAYLAND_SCANNER="$ac_prog"
28367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28368    break 2
28369  fi
28370done
28371  done
28372IFS=$as_save_IFS
28373
28374fi
28375fi
28376WAYLAND_SCANNER=$ac_cv_prog_WAYLAND_SCANNER
28377if test -n "$WAYLAND_SCANNER"; then
28378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
28379$as_echo "$WAYLAND_SCANNER" >&6; }
28380else
28381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28382$as_echo "no" >&6; }
28383fi
28384
28385
28386  test -n "$WAYLAND_SCANNER" && break
28387done
28388
28389    if test x"$HAVE_WAYLAND_EGL" == xyes ; then
28390      if test x"$WAYLAND_SCANNER" == x ; then
28391        as_fn_error $? "Found Wayland libraries, but couldn't find wayland-scanner binary." "$LINENO" 5
28392      fi
28393
28394      WAYLAND_PROTOCOLS_DATADIR="`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`"
28395      WAYLAND_PROTOCOLS_DATADIR=$WAYLAND_PROTOCOLS_DATADIR
28396
28397    fi
28398
28399    # OS X and iOS always have GL available
28400    case $host in
28401      *-darwin*)
28402        if test "x$HAVE_IOS" = "xyes"; then
28403          HAVE_GLES2=yes
28404        else
28405          HAVE_GL=yes
28406        fi
28407      ;;
28408    esac
28409  ;;
28410esac
28411
28412CPPFLAGS="$save_CPPFLAGS"
28413LIBS="$save_LIBS"
28414
28415USE_OPENGL=no
28416USE_GLES2=no
28417USE_GLX=no
28418USE_COCOA=no
28419USE_WGL=no
28420USE_X11=no
28421USE_EAGL=no
28422GL_LIBS=
28423GL_CFLAGS=
28424GL_OBJCFLAGS=
28425
28426if test "x$HAVE_EGL" = "xno"; then
28427  if test "x$NEED_EGL" = "xyes"; then
28428    as_fn_error $? "Could not find the required EGL libraries" "$LINENO" 5
28429  fi
28430fi
28431
28432if test "x$HAVE_GL" = "xno"; then
28433  if test "x$NEED_GL" = "xyes"; then
28434    as_fn_error $? "Could not find the required OpenGL libraries" "$LINENO" 5
28435  fi
28436fi
28437
28438if test "x$HAVE_GLES2" = "xno"; then
28439  if test "x$NEED_GLES2" = "xyes"; then
28440    as_fn_error $? "Could not find the required OpenGL|ES 2.0 libraries" "$LINENO" 5
28441  fi
28442fi
28443
28444if test "x$HAVE_X11_XCB" = "xno"; then
28445  if test "x$NEED_GLX" = "xyes"; then
28446    as_fn_error $? "Building the GLX backend without X11 is unsupported" "$LINENO" 5
28447  fi
28448  if test "x$NEED_X11" = "xyes"; then
28449    as_fn_error $? "Could not find X11 development libraries" "$LINENO" 5
28450  fi
28451else
28452  if test "x$NEED_GL" != "xno"; then
28453    if test "x$HAVE_GL" = "xno"; then
28454      if test "x$NEED_GLX" = "xyes"; then
28455        as_fn_error $? "Building the GLX backend without the OpenGL backend is unsupported" "$LINENO" 5
28456      fi
28457    else       USE_OPENGL=yes
28458      if test "x$NEED_GLX" != "xno"; then
28459        USE_GLX=yes
28460      fi
28461    fi
28462  fi
28463fi
28464
28465HAVE_DRM_FOURCC_HEADER=no
28466ac_fn_c_check_header_mongrel "$LINENO" "libdrm/drm_fourcc.h" "ac_cv_header_libdrm_drm_fourcc_h" "$ac_includes_default"
28467if test "x$ac_cv_header_libdrm_drm_fourcc_h" = xyes; then :
28468  HAVE_DRM_FOURCC_HEADER=yes
28469fi
28470
28471
28472
28473GST_GL_HAVE_DMABUF=0
28474if test "x$HAVE_DRM_FOURCC_HEADER" = "xyes" -a \
28475        "x$HAVE_EGL" = "xyes"; then
28476          GST_GL_HAVE_DMABUF=1
28477fi
28478
28479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexDirectVIV in -lGLESv2" >&5
28480$as_echo_n "checking for glTexDirectVIV in -lGLESv2... " >&6; }
28481if ${ac_cv_lib_GLESv2_glTexDirectVIV+:} false; then :
28482  $as_echo_n "(cached) " >&6
28483else
28484  ac_check_lib_save_LIBS=$LIBS
28485LIBS="-lGLESv2  $LIBS"
28486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28487/* end confdefs.h.  */
28488
28489/* Override any GCC internal prototype to avoid an error.
28490   Use char because int might match the return type of a GCC
28491   builtin and then its argument prototype would still apply.  */
28492#ifdef __cplusplus
28493extern "C"
28494#endif
28495char glTexDirectVIV ();
28496int
28497main ()
28498{
28499return glTexDirectVIV ();
28500  ;
28501  return 0;
28502}
28503_ACEOF
28504if ac_fn_c_try_link "$LINENO"; then :
28505  ac_cv_lib_GLESv2_glTexDirectVIV=yes
28506else
28507  ac_cv_lib_GLESv2_glTexDirectVIV=no
28508fi
28509rm -f core conftest.err conftest.$ac_objext \
28510    conftest$ac_exeext conftest.$ac_ext
28511LIBS=$ac_check_lib_save_LIBS
28512fi
28513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLESv2_glTexDirectVIV" >&5
28514$as_echo "$ac_cv_lib_GLESv2_glTexDirectVIV" >&6; }
28515if test "x$ac_cv_lib_GLESv2_glTexDirectVIV" = xyes; then :
28516  HAVE_VIV_DIRECTVIV=yes
28517else
28518  HAVE_VIV_DIRECTVIV=no
28519fi
28520
28521
28522GST_GL_HAVE_VIV_DIRECTVIV=0
28523if test "x$HAVE_VIV_DIRECTVIV" = "xyes"; then
28524          GST_GL_HAVE_VIV_DIRECTVIV=1
28525fi
28526
28527if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then
28528  GLES3_H_DEFINE=0
28529  GLES3EXT3_H_DEFINE=0
28530  if test "x$HAVE_GLES3_H" == "xyes"; then
28531    GLES3_H_DEFINE=1
28532  fi
28533  if test "x$HAVE_GLES3EXT3_H" == "xyes"; then
28534    GLES3EXT3_H_DEFINE=1
28535  fi
28536  GL_INCLUDES="
28537#ifdef __GNUC__
28538#  pragma GCC diagnostic push
28539#  pragma GCC diagnostic ignored \"-Wredundant-decls\"
28540#endif
28541#ifndef GL_GLEXT_PROTOTYPES
28542#define GL_GLEXT_PROTOTYPES 1
28543#endif
28544# ifdef HAVE_IOS
28545#  include <OpenGLES/ES2/gl.h>
28546#  include <OpenGLES/ES2/glext.h>
28547# else
28548#  if $GLES3_H_DEFINE
28549#   include <GLES3/gl3.h>
28550#   if $GLES3EXT3_H_DEFINE
28551#     include <GLES3/gl3ext.h>
28552#   endif
28553#   include <GLES2/gl2ext.h>
28554#  else
28555#   include <GLES2/gl2.h>
28556#   include <GLES2/gl2ext.h>
28557#  endif
28558# endif
28559# ifdef __APPLE__
28560#  include <OpenGL/OpenGL.h>
28561#  include <OpenGL/gl.h>
28562#  if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
28563#   define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
28564#   include <OpenGL/gl3.h>
28565#  endif
28566# else
28567#  include <GL/gl.h>
28568#  if __WIN32__ || _WIN32
28569#   include <GL/glext.h>
28570#  endif
28571# endif
28572int main (int argc, char **argv) { return 0; }
28573"
28574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to include both GL and GLES2 headers" >&5
28575$as_echo_n "checking whether it is possible to include both GL and GLES2 headers... " >&6; }
28576  save_CFLAGS="$CFLAGS"
28577  CFLAGS="$CFLAGS $GL_CFLAGS $GLES2_CFLAGS $WARNING_CFLAGS $ERROR_CFLAGS"
28578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28579/* end confdefs.h.  */
28580$GL_INCLUDES
28581_ACEOF
28582if ac_fn_c_try_compile "$LINENO"; then :
28583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28584$as_echo "yes" >&6; }
28585
28586else
28587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28588$as_echo "no" >&6; }
28589    if test "x$NEED_GLES2" = "xyes"; then
28590      if test "x$NEED_GL" = "xyes"; then
28591        as_fn_error $? "Cannot seem to include both GL and GLES2 headers. Try disabling one API" "$LINENO" 5
28592      fi
28593      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Desktop GL support" >&5
28594$as_echo "$as_me: WARNING: Disabling Desktop GL support" >&2;}
28595      HAVE_GL=no
28596      USE_OPENGL=no
28597    else
28598      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling GL|ES 2.0 support" >&5
28599$as_echo "$as_me: WARNING: Disabling GL|ES 2.0 support" >&2;}
28600      HAVE_GLES2=no
28601      HAVE_GLES3_H=no
28602    fi
28603
28604fi
28605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606  CFLAGS="$save_CFLAGS"
28607fi
28608
28609#dnl Check for OpenGL
28610echo host is $host
28611case $host in
28612  *-android*)
28613    if test "x$NEED_WGL" = "xyes"; then
28614      as_fn_error $? "WGL is not available on Android" "$LINENO" 5
28615    fi
28616    if test "x$NEED_GLX" = "xyes"; then
28617      as_fn_error $? "GLX is not available on Android" "$LINENO" 5
28618    fi
28619    if test "x$NEED_GL" = "xyes"; then
28620      as_fn_error $? "GL is not available on Android" "$LINENO" 5
28621    fi
28622    if test "x$NEED_X11" = "xyes"; then
28623      as_fn_error $? "X11 is not available on Android" "$LINENO" 5
28624    fi
28625    if test "x$NEED_COCOA" = "xyes"; then
28626      as_fn_error $? "Cocoa is not available on Android" "$LINENO" 5
28627    fi
28628
28629        if test "x$HAVE_GLES2" = "xyes"; then
28630      if test "x$NEED_GLES2" != "xno"; then
28631        GL_LIBS="$GL_LIBS -lGLESv2"
28632        USE_GLES2=yes
28633      fi
28634    fi
28635
28636        if test "x$HAVE_EGL" = "xyes"; then
28637      if test "x$NEED_EGL" != "xno"; then
28638        GL_LIBS="$GL_LIBS -lEGL"
28639        USE_EGL=yes
28640      fi
28641    fi
28642
28643    if test "x$USE_EGL" != "xyes"; then
28644      as_fn_error $? "Need EGL on Android" "$LINENO" 5
28645    fi
28646
28647    if test "x$USE_GLES2" != "xyes"; then
28648      as_fn_error $? "Need OpenGL|ES 2.0 on Android" "$LINENO" 5
28649    fi
28650
28651    HAVE_WINDOW_ANDROID=yes
28652    ;;
28653  *-linux* | *-cygwin* | *-solaris* | *-netbsd* | *-freebsd* | *-openbsd* | *-kfreebsd* | *-dragonflybsd* | *-gnu* )
28654    if test "x$NEED_WGL" = "xyes"; then
28655      as_fn_error $? "WGL is not available on unix" "$LINENO" 5
28656    fi
28657
28658    if test "x$HAVE_X11_XCB" = "xno"; then
28659      if test "x$HAVE_WAYLAND_EGL" = "xno"; then
28660        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X or Wayland is required for OpenGL support" >&5
28661$as_echo "$as_me: WARNING: X or Wayland is required for OpenGL support" >&2;}
28662      fi
28663    fi
28664
28665        if test "x$HAVE_GL" = "xyes"; then
28666      if test "x$NEED_GL" != "xno"; then
28667        GL_LIBS="$GL_LIBS -lGL"
28668      fi
28669    fi
28670
28671        if test "x$HAVE_GLES2" = "xyes"; then
28672      if test "x$NEED_GLES2" != "xno"; then
28673        GL_LIBS="$GL_LIBS -lGLESv2"
28674        USE_GLES2=yes
28675      fi
28676    fi
28677
28678    if test "x$HAVE_GBM_EGL" = "xyes"; then
28679      if test "x$NEED_EGL" = "xno" -o "x$HAVE_EGL" = "xno"; then
28680        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EGL is required by the Mesa GBM EGL backend" >&5
28681$as_echo "$as_me: WARNING: EGL is required by the Mesa GBM EGL backend" >&2;}
28682      else
28683        HAVE_WINDOW_GBM=yes
28684        GL_CFLAGS="$GL_CFLAGS $DRM_CFLAGS $GBM_CFLAGS"
28685      fi
28686    fi
28687
28688    if test "x$HAVE_X11_XCB" = "xyes" -a "x$HAVE_EGL_RPI" = "xno"; then
28689      if test "x$NEED_X11" != "xno"; then
28690        GL_LIBS="$GL_LIBS $X11_XCB_LIBS"
28691        GL_CFLAGS="$GL_CFLAGS $X11_XCB_CFLAGS"
28692        HAVE_WINDOW_X11=yes
28693      fi
28694    fi
28695
28696    if test "x$HAVE_WAYLAND_EGL" = "xyes"; then
28697      if test "x$NEED_EGL" = "xno" -o "x$HAVE_EGL" = "xno"; then
28698        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EGL is required by the Wayland backend for OpenGL support" >&5
28699$as_echo "$as_me: WARNING: EGL is required by the Wayland backend for OpenGL support" >&2;}
28700      else
28701        if test "x$NEED_WAYLAND_EGL" != "xno"; then
28702          HAVE_WINDOW_WAYLAND=yes
28703          GL_LIBS="$GL_LIBS $WAYLAND_EGL_LIBS"
28704          GL_CFLAGS="$GL_CFLAGS $WAYLAND_EGL_CFLAGS"
28705        fi
28706      fi
28707    fi
28708
28709    if test "x$HAVE_VIV_FB_EGL" = "xyes"; then
28710      if test "x$NEED_EGL" = "xno" -o "x$HAVE_EGL" = "xno"; then
28711        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: EGL is required by the Vivante EGL FB backend" >&5
28712$as_echo "$as_me: WARNING: EGL is required by the Vivante EGL FB backend" >&2;}
28713      else
28714        HAVE_WINDOW_VIV_FB=yes
28715        GL_LIBS="$GL_LIBS"
28716        GL_CFLAGS="$GL_CFLAGS"
28717      fi
28718    fi
28719
28720    if test "x$HAVE_EGL_RPI" = "xyes"; then
28721      if test "x$NEED_DISPMANX" != "xno"; then
28722        HAVE_WINDOW_DISPMANX=yes
28723        USE_EGL=yes
28724      fi
28725    fi
28726
28727        if test "x$HAVE_EGL" = "xno"; then
28728      if test "x$HAVE_GL" = "xno"; then
28729        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building requires either EGL or GLX for OpenGL support" >&5
28730$as_echo "$as_me: WARNING: Building requires either EGL or GLX for OpenGL support" >&2;}
28731      fi
28732    else
28733      if test "x$NEED_EGL" != "xno"; then
28734        if test "x$HAVE_WINDOW_WAYLAND" = "xyes" -o "x$HAVE_WINDOW_X11" = "xyes" -o "x$HAVE_WINDOW_DISPMANX" = "xyes" -o "x$HAVE_WINDOW_VIV_FB" = "xyes" -o "x$HAVE_WINDOW_GBM" = "xyes"; then
28735          GL_LIBS="$GL_LIBS -lEGL $EGL_LIBS"
28736          GL_CFLAGS="$GL_CFLAGS $EGL_CFLAGS"
28737          USE_EGL=yes
28738        fi
28739      fi
28740    fi
28741    ;;
28742  *-darwin*)
28743    if test "x$HAVE_IOS" = "xyes"; then
28744      if test "x$NEED_WGL" = "xyes"; then
28745        as_fn_error $? "WGL is not available on iOS" "$LINENO" 5
28746      fi
28747      if test "x$NEED_GLX" = "xyes"; then
28748        as_fn_error $? "GLX is not available on iOS" "$LINENO" 5
28749      fi
28750      if test "x$NEED_GL" = "xyes"; then
28751        as_fn_error $? "GL is not available on iOS" "$LINENO" 5
28752      fi
28753      if test "x$NEED_X11" = "xyes"; then
28754        as_fn_error $? "X11 is not available on iOS" "$LINENO" 5
28755      fi
28756      if test "x$NEED_COCOA" = "xyes"; then
28757        as_fn_error $? "Cocoa is not available on iOS" "$LINENO" 5
28758      fi
28759      if test "x$NEED_EGL" = "xyes"; then
28760        as_fn_error $? "EGL is not available on iOS" "$LINENO" 5
28761      fi
28762
28763      GL_LIBS="$LIBS -framework OpenGLES -framework QuartzCore -framework UIKit -framework CoreGraphics -framework CoreFoundation -framework Foundation"
28764      GL_CFLAGS="$GL_CFLAGS"
28765      USE_GLES2=yes
28766      USE_EAGL=yes
28767      HAVE_WINDOW_EAGL=yes
28768
28769      ac_cv_type_GLsizeiptr=yes
28770      ac_cv_type_GLintptr=yes
28771      ac_cv_type_GLchar=yes
28772    else
28773            if test "x$NEED_WGL" = "xyes"; then
28774        as_fn_error $? "WGL is not available on Mac OS X" "$LINENO" 5
28775      fi
28776
28777      if test "x$NEED_COCOA" != "xno"; then
28778        GL_LIBS="$LIBS -framework OpenGL -framework Cocoa -framework QuartzCore -framework CoreFoundation"
28779        GL_CFLAGS="$GL_CFLAGS"
28780        USE_COCOA=yes
28781        HAVE_WINDOW_COCOA=yes
28782        USE_OPENGL=yes
28783      fi
28784
28785      if test "x$USE_GLX" = "xyes"; then
28786        if test "x$HAVE_X11_XCB" = "xyes"; then
28787          if test "x$NEED_X11" != "xno"; then
28788            GL_LIBS="$GL_LIBS $X11_XCB_LIBS"
28789            GL_CFLAGS="$GL_CFLAGS $X11_XCB_CFLAGS"
28790            HAVE_WINDOW_X11=yes
28791          fi
28792        fi
28793
28794        if test "x$HAVE_GL" = "xyes"; then
28795          if test "x$NEED_GL" != "xno"; then
28796            GL_LIBS="$GL_LIBS -lGL"
28797          fi
28798          USE_OPENGL=yes
28799        fi
28800      fi
28801
28802      if test "x$HAVE_EGL" = "xyes"; then
28803        if test "x$NEED_EGL" != "xno"; then
28804          if test "x$HAVE_WINDOW_X11" = "xyes"; then
28805            GL_LIBS="$GL_LIBS -lEGL $EGL_LIBS"
28806            GL_CFLAGS="$GL_CFLAGS $EGL_CFLAGS"
28807            USE_EGL=yes
28808          fi
28809        fi
28810      fi
28811
28812            if test "x$HAVE_GLES2" = "xyes"; then
28813        if test "x$NEED_GLES2" != "xno"; then
28814          GL_LIBS="$GL_LIBS -lGLESv2"
28815          USE_GLES2=yes
28816        fi
28817      fi
28818    fi
28819    ;;
28820  *-mingw32*)
28821    if test "x$NEED_GLX" = "xyes"; then
28822      as_fn_error $? "GLX is not available on Windows" "$LINENO" 5
28823    fi
28824    if test "x$NEED_GLES2" = "xyes"; then
28825      as_fn_error $? "OpenGL|ES 2.0 is not supported on your platform yet" "$LINENO" 5
28826    fi
28827
28828    if test "x$HAVE_GL" = "xyes"; then
28829      if test "x$NEED_GL" != "xno"; then
28830        if test "x$HAVE_WGL" = "xyes"; then
28831          if test "$NEED_WGL" != "xno"; then
28832            GL_LIBS="$GL_LIBS -lgdi32 -lopengl32"
28833            HAVE_WINDOW_WIN32=yes
28834            USE_OPENGL=yes
28835            USE_WGL=yes
28836          fi
28837        fi
28838      fi
28839    fi
28840    ;;
28841  *)
28842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how to check for OpenGL on your platform." >&5
28843$as_echo "$as_me: WARNING: Don't know how to check for OpenGL on your platform." >&2;}
28844    ;;
28845esac
28846
28847GL_PLATFORMS=
28848GL_WINDOWS=
28849GL_APIS=
28850GL_CONFIG_DEFINES=
28851
28852
28853GST_GL_HAVE_OPENGL=0
28854GST_GL_HAVE_GLES2=0
28855GST_GL_HAVE_GLES3=0
28856GST_GL_HAVE_GLES3EXT3_H=0
28857
28858if test "x$USE_OPENGL" = "xyes"; then
28859  GL_APIS="gl $GL_APIS"
28860  GST_GL_HAVE_OPENGL=1
28861fi
28862if test "x$USE_GLES2" = "xyes"; then
28863  GL_APIS="gles2 $GL_APIS"
28864  GST_GL_HAVE_GLES2=1
28865  if test "x$HAVE_GLES3_H" = "xyes"; then
28866    GST_GL_HAVE_GLES3=1
28867    if test "x$HAVE_GLES3EXT3_H" = "xyes"; then
28868      GST_GL_HAVE_GLES3EXT3_H=1
28869    fi
28870  fi
28871fi
28872
28873GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
28874#define GST_GL_HAVE_OPENGL $GST_GL_HAVE_OPENGL
28875#define GST_GL_HAVE_GLES2 $GST_GL_HAVE_GLES2
28876#define GST_GL_HAVE_GLES3 $GST_GL_HAVE_GLES3
28877#define GST_GL_HAVE_GLES3EXT3_H $GST_GL_HAVE_GLES3EXT3_H
28878"
28879
28880
28881GST_GL_HAVE_WINDOW_X11=0
28882GST_GL_HAVE_WINDOW_COCOA=0
28883GST_GL_HAVE_WINDOW_WIN32=0
28884GST_GL_HAVE_WINDOW_WAYLAND=0
28885GST_GL_HAVE_WINDOW_ANDROID=0
28886GST_GL_HAVE_WINDOW_DISPMANX=0
28887GST_GL_HAVE_WINDOW_EAGL=0
28888GST_GL_HAVE_WINDOW_VIV_FB=0
28889GST_GL_HAVE_WINDOW_GBM=0
28890
28891if test "x$HAVE_WINDOW_X11" = "xyes"; then
28892  GL_WINDOWS="x11 $GL_WINDOWS"
28893  GST_GL_HAVE_WINDOW_X11=1
28894fi
28895if test "x$HAVE_WINDOW_COCOA" = "xyes"; then
28896  GL_WINDOWS="cocoa $GL_WINDOWS"
28897  GST_GL_HAVE_WINDOW_COCOA=1
28898fi
28899if test "x$HAVE_WINDOW_WIN32" = "xyes"; then
28900  GL_WINDOWS="win32 $GL_WINDOWS"
28901  GST_GL_HAVE_WINDOW_WIN32=1
28902fi
28903if test "x$HAVE_WINDOW_WAYLAND" = "xyes"; then
28904  GL_WINDOWS="wayland $GL_WINDOWS"
28905  GST_GL_HAVE_WINDOW_WAYLAND=1
28906fi
28907if test "x$HAVE_WINDOW_ANDROID" = "xyes"; then
28908  GL_WINDOWS="android $GL_WINDOWS"
28909  GST_GL_HAVE_WINDOW_ANDROID=1
28910fi
28911if test "x$HAVE_WINDOW_DISPMANX" = "xyes"; then
28912  GL_WINDOWS="dispmanx $GL_WINDOWS"
28913  GST_GL_HAVE_WINDOW_DISPMANX=1
28914fi
28915if test "x$HAVE_WINDOW_EAGL" = "xyes"; then
28916  GL_WINDOWS="eagl $GL_WINDOWS"
28917  GST_GL_HAVE_WINDOW_EAGL=1
28918fi
28919if test "x$HAVE_WINDOW_VIV_FB" = "xyes"; then
28920  GL_WINDOWS="viv-fb $GL_WINDOWS"
28921  GST_GL_HAVE_WINDOW_VIV_FB=1
28922fi
28923if test "x$HAVE_WINDOW_GBM" = "xyes"; then
28924  GL_WINDOWS="gbm $GL_WINDOWS"
28925  GST_GL_HAVE_WINDOW_GBM=1
28926fi
28927
28928GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
28929#define GST_GL_HAVE_WINDOW_X11 $GST_GL_HAVE_WINDOW_X11
28930#define GST_GL_HAVE_WINDOW_COCOA $GST_GL_HAVE_WINDOW_COCOA
28931#define GST_GL_HAVE_WINDOW_WIN32 $GST_GL_HAVE_WINDOW_WIN32
28932#define GST_GL_HAVE_WINDOW_WAYLAND $GST_GL_HAVE_WINDOW_WAYLAND
28933#define GST_GL_HAVE_WINDOW_ANDROID $GST_GL_HAVE_WINDOW_ANDROID
28934#define GST_GL_HAVE_WINDOW_DISPMANX $GST_GL_HAVE_WINDOW_DISPMANX
28935#define GST_GL_HAVE_WINDOW_EAGL $GST_GL_HAVE_WINDOW_EAGL
28936#define GST_GL_HAVE_WINDOW_VIV_FB $GST_GL_HAVE_WINDOW_VIV_FB
28937#define GST_GL_HAVE_WINDOW_GBM $GST_GL_HAVE_WINDOW_GBM
28938"
28939
28940
28941GST_GL_HAVE_PLATFORM_EGL=0
28942GST_GL_HAVE_PLATFORM_GLX=0
28943GST_GL_HAVE_PLATFORM_WGL=0
28944GST_GL_HAVE_PLATFORM_CGL=0
28945GST_GL_HAVE_PLATFORM_EAGL=0
28946
28947if test "x$USE_EGL" = "xyes"; then
28948  GL_PLATFORMS="egl $GL_PLATFORMS"
28949  GST_GL_HAVE_PLATFORM_EGL=1
28950fi
28951if test "x$USE_GLX" = "xyes"; then
28952  GL_PLATFORMS="glx $GL_PLATFORMS"
28953  GST_GL_HAVE_PLATFORM_GLX=1
28954fi
28955if test "x$USE_WGL" = "xyes"; then
28956  GL_PLATFORMS="wgl $GL_PLATFORMS"
28957  GST_GL_HAVE_PLATFORM_WGL=1
28958fi
28959if test "x$USE_COCOA" = "xyes"; then
28960  GL_PLATFORMS="cgl $GL_PLATFORMS"
28961  GST_GL_HAVE_PLATFORM_CGL=1
28962fi
28963if test "x$USE_EAGL" = "xyes"; then
28964  GL_PLATFORMS="eagl $GL_PLATFORMS"
28965  GST_GL_HAVE_PLATFORM_EAGL=1
28966fi
28967
28968GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
28969#define GST_GL_HAVE_PLATFORM_EGL $GST_GL_HAVE_PLATFORM_EGL
28970#define GST_GL_HAVE_PLATFORM_GLX $GST_GL_HAVE_PLATFORM_GLX
28971#define GST_GL_HAVE_PLATFORM_WGL $GST_GL_HAVE_PLATFORM_WGL
28972#define GST_GL_HAVE_PLATFORM_CGL $GST_GL_HAVE_PLATFORM_CGL
28973#define GST_GL_HAVE_PLATFORM_EAGL $GST_GL_HAVE_PLATFORM_EAGL
28974"
28975
28976GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
28977#define GST_GL_HAVE_DMABUF $GST_GL_HAVE_DMABUF
28978#define GST_GL_HAVE_VIV_DIRECTVIV $GST_GL_HAVE_VIV_DIRECTVIV
28979"
28980
28981if test "x$GL_APIS" = "x"; then
28982  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Either OpenGL or OpenGL|ES is required for OpenGL support" >&5
28983$as_echo "$as_me: WARNING: Either OpenGL or OpenGL|ES is required for OpenGL support" >&2;}
28984fi
28985if test "x$GL_PLATFORMS" = "x"; then
28986  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find any OpenGL platforms to use such as CGL, WGL or GLX" >&5
28987$as_echo "$as_me: WARNING: Could not find any OpenGL platforms to use such as CGL, WGL or GLX" >&2;}
28988fi
28989if test "x$GL_WINDOWS" = "x"; then
28990  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find any window systems to use such as Cocoa, Win32API or X11" >&5
28991$as_echo "$as_me: WARNING: Could not find any window systems to use such as Cocoa, Win32API or X11" >&2;}
28992fi
28993
28994if test "x$GL_APIS" = "x" -o "x$GL_PLATFORMS" = "x" -o "x$GL_WINDOWS" = "x"; then
28995  GL_LIBS=
28996  GL_CFLAGS=
28997  GL_OBJCFLAGS=
28998  USE_OPENGL=no
28999  USE_GLES2=no
29000  USE_GLX=no
29001  USE_EGL=no
29002  USE_WGL=no
29003  USE_COCOA=no
29004  USE_EGL_MALI=no
29005  USE_EGL_RPI=no
29006  USE_EAGL=no
29007
29008  HAVE_WINDOW_X11=no
29009  HAVE_WINDOW_WIN32=no
29010  HAVE_WINDOW_DISPMANX=no
29011  HAVE_WINDOW_WAYLAND=no
29012  HAVE_WINDOW_ANDROID=no
29013  HAVE_WINDOW_COCOA=no
29014  HAVE_WINDOW_EAGL=no
29015  HAVE_WINDOW_VIV_FB=no
29016  HAVE_WINDOW_GBM=no
29017fi
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028 if test "x$HAVE_WINDOW_X11" = "xyes"; then
29029  HAVE_WINDOW_X11_TRUE=
29030  HAVE_WINDOW_X11_FALSE='#'
29031else
29032  HAVE_WINDOW_X11_TRUE='#'
29033  HAVE_WINDOW_X11_FALSE=
29034fi
29035
29036 if test "x$HAVE_WINDOW_COCOA" = "xyes"; then
29037  HAVE_WINDOW_COCOA_TRUE=
29038  HAVE_WINDOW_COCOA_FALSE='#'
29039else
29040  HAVE_WINDOW_COCOA_TRUE='#'
29041  HAVE_WINDOW_COCOA_FALSE=
29042fi
29043
29044 if test "x$HAVE_WINDOW_WIN32" = "xyes"; then
29045  HAVE_WINDOW_WIN32_TRUE=
29046  HAVE_WINDOW_WIN32_FALSE='#'
29047else
29048  HAVE_WINDOW_WIN32_TRUE='#'
29049  HAVE_WINDOW_WIN32_FALSE=
29050fi
29051
29052 if test "x$HAVE_WINDOW_DISPMANX" = "xyes"; then
29053  HAVE_WINDOW_DISPMANX_TRUE=
29054  HAVE_WINDOW_DISPMANX_FALSE='#'
29055else
29056  HAVE_WINDOW_DISPMANX_TRUE='#'
29057  HAVE_WINDOW_DISPMANX_FALSE=
29058fi
29059
29060 if test "x$HAVE_WINDOW_WAYLAND" = "xyes"; then
29061  HAVE_WINDOW_WAYLAND_TRUE=
29062  HAVE_WINDOW_WAYLAND_FALSE='#'
29063else
29064  HAVE_WINDOW_WAYLAND_TRUE='#'
29065  HAVE_WINDOW_WAYLAND_FALSE=
29066fi
29067
29068 if test "x$HAVE_WINDOW_ANDROID" = "xyes"; then
29069  HAVE_WINDOW_ANDROID_TRUE=
29070  HAVE_WINDOW_ANDROID_FALSE='#'
29071else
29072  HAVE_WINDOW_ANDROID_TRUE='#'
29073  HAVE_WINDOW_ANDROID_FALSE=
29074fi
29075
29076 if test "x$HAVE_WINDOW_EAGL" = "xyes"; then
29077  HAVE_WINDOW_EAGL_TRUE=
29078  HAVE_WINDOW_EAGL_FALSE='#'
29079else
29080  HAVE_WINDOW_EAGL_TRUE='#'
29081  HAVE_WINDOW_EAGL_FALSE=
29082fi
29083
29084 if test "x$HAVE_WINDOW_VIV_FB" = "xyes"; then
29085  HAVE_WINDOW_VIV_FB_TRUE=
29086  HAVE_WINDOW_VIV_FB_FALSE='#'
29087else
29088  HAVE_WINDOW_VIV_FB_TRUE='#'
29089  HAVE_WINDOW_VIV_FB_FALSE=
29090fi
29091
29092 if test "x$HAVE_WINDOW_GBM" = "xyes"; then
29093  HAVE_WINDOW_GBM_TRUE=
29094  HAVE_WINDOW_GBM_FALSE='#'
29095else
29096  HAVE_WINDOW_GBM_TRUE='#'
29097  HAVE_WINDOW_GBM_FALSE=
29098fi
29099
29100
29101 if test "x$USE_OPENGL" = "xyes"; then
29102  USE_OPENGL_TRUE=
29103  USE_OPENGL_FALSE='#'
29104else
29105  USE_OPENGL_TRUE='#'
29106  USE_OPENGL_FALSE=
29107fi
29108
29109 if test "x$USE_GLES2" = "xyes"; then
29110  USE_GLES2_TRUE=
29111  USE_GLES2_FALSE='#'
29112else
29113  USE_GLES2_TRUE='#'
29114  USE_GLES2_FALSE=
29115fi
29116
29117 if test "x$USE_GLX" = "xyes"; then
29118  USE_GLX_TRUE=
29119  USE_GLX_FALSE='#'
29120else
29121  USE_GLX_TRUE='#'
29122  USE_GLX_FALSE=
29123fi
29124
29125 if test "x$USE_EGL" = "xyes"; then
29126  USE_EGL_TRUE=
29127  USE_EGL_FALSE='#'
29128else
29129  USE_EGL_TRUE='#'
29130  USE_EGL_FALSE=
29131fi
29132
29133 if test "x$USE_WGL" = "xyes"; then
29134  USE_WGL_TRUE=
29135  USE_WGL_FALSE='#'
29136else
29137  USE_WGL_TRUE='#'
29138  USE_WGL_FALSE=
29139fi
29140
29141 if test "x$USE_COCOA" = "xyes"; then
29142  USE_COCOA_TRUE=
29143  USE_COCOA_FALSE='#'
29144else
29145  USE_COCOA_TRUE='#'
29146  USE_COCOA_FALSE=
29147fi
29148
29149 if test "x$USE_EGL_MALI" = "xyes"; then
29150  USE_EGL_MALI_TRUE=
29151  USE_EGL_MALI_FALSE='#'
29152else
29153  USE_EGL_MALI_TRUE='#'
29154  USE_EGL_MALI_FALSE=
29155fi
29156
29157 if test "x$USE_EGL_RPI" = "xyes"; then
29158  USE_EGL_RPI_TRUE=
29159  USE_EGL_RPI_FALSE='#'
29160else
29161  USE_EGL_RPI_TRUE='#'
29162  USE_EGL_RPI_FALSE=
29163fi
29164
29165 if test "x$USE_EAGL" = "xyes"; then
29166  USE_EAGL_TRUE=
29167  USE_EAGL_FALSE='#'
29168else
29169  USE_EAGL_TRUE='#'
29170  USE_EAGL_FALSE=
29171fi
29172
29173
29174 if test "x$USE_OPENGL" = "xyes" -o "x$USE_GLES2" = "xyes"; then
29175  HAVE_GST_GL_TRUE=
29176  HAVE_GST_GL_FALSE='#'
29177else
29178  HAVE_GST_GL_TRUE='#'
29179  HAVE_GST_GL_FALSE=
29180fi
29181
29182
29183GL_INCLUDES=""
29184if test "x$USE_GLES2" = "xyes"; then
29185  GL_INCLUDES="$GL_INCLUDES
29186#ifndef GL_GLEXT_PROTOTYPES
29187#define GL_GLEXT_PROTOTYPES 1
29188#endif
29189# ifdef HAVE_IOS
29190#  include <OpenGLES/ES2/gl.h>
29191#  include <OpenGLES/ES2/glext.h>
29192# else
29193#  if $GST_GL_HAVE_GLES3
29194#   include <GLES3/gl3.h>
29195#   if $GST_GL_HAVE_GLES3EXT3_H
29196#    include <GLES3/gl3ext.h>
29197#   endif
29198#   include <GLES2/gl2ext.h>
29199#  else
29200#   include <GLES2/gl2.h>
29201#   include <GLES2/gl2ext.h>
29202#  endif
29203# endif
29204"
29205fi
29206
29207if test "x$USE_OPENGL" = "xyes"; then
29208  GL_INCLUDES="$GL_INCLUDES
29209# ifdef __APPLE__
29210#  include <OpenGL/OpenGL.h>
29211#  include <OpenGL/gl.h>
29212# else
29213#  include <GL/gl.h>
29214#  if __WIN32__ || _WIN32
29215#   include <GL/glext.h>
29216#  endif
29217# endif
29218"
29219fi
29220
29221GST_GL_HAVE_GLEGLIMAGEOES=0
29222GST_GL_HAVE_GLCHAR=0
29223GST_GL_HAVE_GLSIZEIPTR=0
29224GST_GL_HAVE_GLINTPTR=0
29225GST_GL_HAVE_GLSYNC=0
29226GST_GL_HAVE_GLUINT64=0
29227GST_GL_HAVE_GLINT64=0
29228GST_GL_HAVE_EGLATTRIB=0
29229GST_GL_HAVE_EGLUINT64KHR=0
29230
29231old_CFLAGS=$CFLAGS
29232CFLAGS="$GL_CFLAGS $CFLAGS"
29233
29234ac_fn_c_check_type "$LINENO" "GLeglImageOES" "ac_cv_type_GLeglImageOES" "$GL_INCLUDES
29235"
29236if test "x$ac_cv_type_GLeglImageOES" = xyes; then :
29237
29238cat >>confdefs.h <<_ACEOF
29239#define HAVE_GLEGLIMAGEOES 1
29240_ACEOF
29241
29242
29243fi
29244
29245if test "x$ac_cv_type_GLeglImageOES" = "xyes"; then
29246  GST_GL_HAVE_GLEGLIMAGEOES=1
29247fi
29248
29249ac_fn_c_check_type "$LINENO" "GLchar" "ac_cv_type_GLchar" "$GL_INCLUDES
29250"
29251if test "x$ac_cv_type_GLchar" = xyes; then :
29252
29253cat >>confdefs.h <<_ACEOF
29254#define HAVE_GLCHAR 1
29255_ACEOF
29256
29257
29258fi
29259
29260if test "x$ac_cv_type_GLchar" = "xyes"; then
29261  GST_GL_HAVE_GLCHAR=1
29262fi
29263
29264ac_fn_c_check_type "$LINENO" "GLsizeiptr" "ac_cv_type_GLsizeiptr" "$GL_INCLUDES
29265"
29266if test "x$ac_cv_type_GLsizeiptr" = xyes; then :
29267
29268cat >>confdefs.h <<_ACEOF
29269#define HAVE_GLSIZEIPTR 1
29270_ACEOF
29271
29272
29273fi
29274
29275if test "x$ac_cv_type_GLsizeiptr" = "xyes"; then
29276  GST_GL_HAVE_GLSIZEIPTR=1
29277fi
29278
29279ac_fn_c_check_type "$LINENO" "GLintptr" "ac_cv_type_GLintptr" "$GL_INCLUDES
29280"
29281if test "x$ac_cv_type_GLintptr" = xyes; then :
29282
29283cat >>confdefs.h <<_ACEOF
29284#define HAVE_GLINTPTR 1
29285_ACEOF
29286
29287
29288fi
29289
29290if test "x$ac_cv_type_GLintptr" = "xyes"; then
29291  GST_GL_HAVE_GLINTPTR=1
29292fi
29293
29294ac_fn_c_check_type "$LINENO" "GLsync" "ac_cv_type_GLsync" "$GL_INCLUDES
29295"
29296if test "x$ac_cv_type_GLsync" = xyes; then :
29297
29298cat >>confdefs.h <<_ACEOF
29299#define HAVE_GLSYNC 1
29300_ACEOF
29301
29302
29303fi
29304
29305if test "x$ac_cv_type_GLsync" = "xyes"; then
29306  GST_GL_HAVE_GLSYNC=1
29307fi
29308
29309ac_fn_c_check_type "$LINENO" "GLuint64" "ac_cv_type_GLuint64" "$GL_INCLUDES
29310"
29311if test "x$ac_cv_type_GLuint64" = xyes; then :
29312
29313cat >>confdefs.h <<_ACEOF
29314#define HAVE_GLUINT64 1
29315_ACEOF
29316
29317
29318fi
29319
29320if test "x$ac_cv_type_GLuint64" = "xyes"; then
29321  GST_GL_HAVE_GLUINT64=1
29322fi
29323
29324ac_fn_c_check_type "$LINENO" "GLint64" "ac_cv_type_GLint64" "$GL_INCLUDES
29325"
29326if test "x$ac_cv_type_GLint64" = xyes; then :
29327
29328cat >>confdefs.h <<_ACEOF
29329#define HAVE_GLINT64 1
29330_ACEOF
29331
29332
29333fi
29334
29335if test "x$ac_cv_type_GLint64" = "xyes"; then
29336  GST_GL_HAVE_GLINT64=1
29337fi
29338
29339if test "x$USE_EGL" = "xyes"; then
29340  EGL_INCLUDES="$GL_INCLUDES
29341  #include <EGL/egl.h>
29342  #include <EGL/eglext.h>
29343  "
29344  ac_fn_c_check_type "$LINENO" "EGLAttrib" "ac_cv_type_EGLAttrib" "$EGL_INCLUDES
29345"
29346if test "x$ac_cv_type_EGLAttrib" = xyes; then :
29347
29348cat >>confdefs.h <<_ACEOF
29349#define HAVE_EGLATTRIB 1
29350_ACEOF
29351
29352
29353fi
29354
29355  if test "x$ac_cv_type_EGLAttrib" = "xyes"; then
29356    GST_GL_HAVE_EGLATTRIB=1
29357  fi
29358
29359  ac_fn_c_check_type "$LINENO" "EGLuint64KHR" "ac_cv_type_EGLuint64KHR" "$EGL_INCLUDES
29360"
29361if test "x$ac_cv_type_EGLuint64KHR" = xyes; then :
29362
29363cat >>confdefs.h <<_ACEOF
29364#define HAVE_EGLUINT64KHR 1
29365_ACEOF
29366
29367
29368fi
29369
29370  if test "x$ac_cv_type_EGLuint64KHR" = "xyes"; then
29371    GST_GL_HAVE_EGLUINT64KHR=1
29372  fi
29373fi
29374
29375CFLAGS=$old_CFLAGS
29376
29377GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
29378#define GST_GL_HAVE_GLEGLIMAGEOES $GST_GL_HAVE_GLEGLIMAGEOES
29379#define GST_GL_HAVE_GLCHAR $GST_GL_HAVE_GLCHAR
29380#define GST_GL_HAVE_GLSIZEIPTR $GST_GL_HAVE_GLSIZEIPTR
29381#define GST_GL_HAVE_GLINTPTR $GST_GL_HAVE_GLINTPTR
29382#define GST_GL_HAVE_GLSYNC $GST_GL_HAVE_GLSYNC
29383#define GST_GL_HAVE_GLUINT64 $GST_GL_HAVE_GLUINT64
29384#define GST_GL_HAVE_GLINT64 $GST_GL_HAVE_GLINT64
29385#define GST_GL_HAVE_EGLATTRIB $GST_GL_HAVE_EGLATTRIB
29386#define GST_GL_HAVE_EGLUINT64KHR $GST_GL_HAVE_EGLUINT64KHR
29387"
29388
29389ac_config_commands="$ac_config_commands gst-libs/gst/gl/gstglconfig.h"
29390
29391
29392
29393
29394HAVE_GTK=no
29395HAVE_GTK_X11=no
29396HAVE_GDK_PIXBUF=no
29397GTK_REQ=3.10
29398if test "x$BUILD_EXAMPLES" = "xyes"; then
29399
29400pkg_failed=no
29401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
29402$as_echo_n "checking for GTK... " >&6; }
29403
29404if test -n "$PKG_CONFIG"; then
29405    if test -n "$GTK_CFLAGS"; then
29406        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
29407    else
29408        if test -n "$PKG_CONFIG" && \
29409    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQ\""; } >&5
29410  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQ") 2>&5
29411  ac_status=$?
29412  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29413  test $ac_status = 0; }; then
29414  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_REQ" 2>/dev/null`
29415else
29416  pkg_failed=yes
29417fi
29418    fi
29419else
29420	pkg_failed=untried
29421fi
29422if test -n "$PKG_CONFIG"; then
29423    if test -n "$GTK_LIBS"; then
29424        pkg_cv_GTK_LIBS="$GTK_LIBS"
29425    else
29426        if test -n "$PKG_CONFIG" && \
29427    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQ\""; } >&5
29428  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQ") 2>&5
29429  ac_status=$?
29430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29431  test $ac_status = 0; }; then
29432  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_REQ" 2>/dev/null`
29433else
29434  pkg_failed=yes
29435fi
29436    fi
29437else
29438	pkg_failed=untried
29439fi
29440
29441
29442
29443if test $pkg_failed = yes; then
29444
29445if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29446        _pkg_short_errors_supported=yes
29447else
29448        _pkg_short_errors_supported=no
29449fi
29450        if test $_pkg_short_errors_supported = yes; then
29451	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_REQ"`
29452        else
29453	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK_REQ"`
29454        fi
29455	# Put the nasty error message in config.log where it belongs
29456	echo "$GTK_PKG_ERRORS" >&5
29457
29458	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29459$as_echo "no" >&6; }
29460                HAVE_GTK=no
29461elif test $pkg_failed = untried; then
29462	HAVE_GTK=no
29463else
29464	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
29465	GTK_LIBS=$pkg_cv_GTK_LIBS
29466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467$as_echo "yes" >&6; }
29468	HAVE_GTK=yes
29469fi
29470
29471pkg_failed=no
29472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_X11" >&5
29473$as_echo_n "checking for GTK_X11... " >&6; }
29474
29475if test -n "$PKG_CONFIG"; then
29476    if test -n "$GTK_X11_CFLAGS"; then
29477        pkg_cv_GTK_X11_CFLAGS="$GTK_X11_CFLAGS"
29478    else
29479        if test -n "$PKG_CONFIG" && \
29480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-x11-3.0 >= \$GTK_REQ\""; } >&5
29481  ($PKG_CONFIG --exists --print-errors "gtk+-x11-3.0 >= $GTK_REQ") 2>&5
29482  ac_status=$?
29483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29484  test $ac_status = 0; }; then
29485  pkg_cv_GTK_X11_CFLAGS=`$PKG_CONFIG --cflags "gtk+-x11-3.0 >= $GTK_REQ" 2>/dev/null`
29486else
29487  pkg_failed=yes
29488fi
29489    fi
29490else
29491	pkg_failed=untried
29492fi
29493if test -n "$PKG_CONFIG"; then
29494    if test -n "$GTK_X11_LIBS"; then
29495        pkg_cv_GTK_X11_LIBS="$GTK_X11_LIBS"
29496    else
29497        if test -n "$PKG_CONFIG" && \
29498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-x11-3.0 >= \$GTK_REQ\""; } >&5
29499  ($PKG_CONFIG --exists --print-errors "gtk+-x11-3.0 >= $GTK_REQ") 2>&5
29500  ac_status=$?
29501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29502  test $ac_status = 0; }; then
29503  pkg_cv_GTK_X11_LIBS=`$PKG_CONFIG --libs "gtk+-x11-3.0 >= $GTK_REQ" 2>/dev/null`
29504else
29505  pkg_failed=yes
29506fi
29507    fi
29508else
29509	pkg_failed=untried
29510fi
29511
29512
29513
29514if test $pkg_failed = yes; then
29515
29516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29517        _pkg_short_errors_supported=yes
29518else
29519        _pkg_short_errors_supported=no
29520fi
29521        if test $_pkg_short_errors_supported = yes; then
29522	        GTK_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-x11-3.0 >= $GTK_REQ"`
29523        else
29524	        GTK_X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-x11-3.0 >= $GTK_REQ"`
29525        fi
29526	# Put the nasty error message in config.log where it belongs
29527	echo "$GTK_X11_PKG_ERRORS" >&5
29528
29529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29530$as_echo "no" >&6; }
29531                HAVE_GTK_X11=no
29532elif test $pkg_failed = untried; then
29533	HAVE_GTK_X11=no
29534else
29535	GTK_X11_CFLAGS=$pkg_cv_GTK_X11_CFLAGS
29536	GTK_X11_LIBS=$pkg_cv_GTK_X11_LIBS
29537        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29538$as_echo "yes" >&6; }
29539	HAVE_GTK_X11=yes
29540fi
29541
29542pkg_failed=no
29543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_QUARTZ" >&5
29544$as_echo_n "checking for GTK_QUARTZ... " >&6; }
29545
29546if test -n "$PKG_CONFIG"; then
29547    if test -n "$GTK_QUARTZ_CFLAGS"; then
29548        pkg_cv_GTK_QUARTZ_CFLAGS="$GTK_QUARTZ_CFLAGS"
29549    else
29550        if test -n "$PKG_CONFIG" && \
29551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-quartz-3.0 >= \$GTK_REQ\""; } >&5
29552  ($PKG_CONFIG --exists --print-errors "gtk+-quartz-3.0 >= $GTK_REQ") 2>&5
29553  ac_status=$?
29554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29555  test $ac_status = 0; }; then
29556  pkg_cv_GTK_QUARTZ_CFLAGS=`$PKG_CONFIG --cflags "gtk+-quartz-3.0 >= $GTK_REQ" 2>/dev/null`
29557else
29558  pkg_failed=yes
29559fi
29560    fi
29561else
29562	pkg_failed=untried
29563fi
29564if test -n "$PKG_CONFIG"; then
29565    if test -n "$GTK_QUARTZ_LIBS"; then
29566        pkg_cv_GTK_QUARTZ_LIBS="$GTK_QUARTZ_LIBS"
29567    else
29568        if test -n "$PKG_CONFIG" && \
29569    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-quartz-3.0 >= \$GTK_REQ\""; } >&5
29570  ($PKG_CONFIG --exists --print-errors "gtk+-quartz-3.0 >= $GTK_REQ") 2>&5
29571  ac_status=$?
29572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29573  test $ac_status = 0; }; then
29574  pkg_cv_GTK_QUARTZ_LIBS=`$PKG_CONFIG --libs "gtk+-quartz-3.0 >= $GTK_REQ" 2>/dev/null`
29575else
29576  pkg_failed=yes
29577fi
29578    fi
29579else
29580	pkg_failed=untried
29581fi
29582
29583
29584
29585if test $pkg_failed = yes; then
29586
29587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29588        _pkg_short_errors_supported=yes
29589else
29590        _pkg_short_errors_supported=no
29591fi
29592        if test $_pkg_short_errors_supported = yes; then
29593	        GTK_QUARTZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-quartz-3.0 >= $GTK_REQ"`
29594        else
29595	        GTK_QUARTZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-quartz-3.0 >= $GTK_REQ"`
29596        fi
29597	# Put the nasty error message in config.log where it belongs
29598	echo "$GTK_QUARTZ_PKG_ERRORS" >&5
29599
29600	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29601$as_echo "no" >&6; }
29602                HAVE_GTK_QUARTZ=no
29603elif test $pkg_failed = untried; then
29604	HAVE_GTK_QUARTZ=no
29605else
29606	GTK_QUARTZ_CFLAGS=$pkg_cv_GTK_QUARTZ_CFLAGS
29607	GTK_QUARTZ_LIBS=$pkg_cv_GTK_QUARTZ_LIBS
29608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29609$as_echo "yes" >&6; }
29610	HAVE_GTK_QUARTZ=yes
29611fi
29612
29613
29614
29615
29616pkg_failed=no
29617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK_PIXBUF" >&5
29618$as_echo_n "checking for GDK_PIXBUF... " >&6; }
29619
29620if test -n "$PKG_CONFIG"; then
29621    if test -n "$GDK_PIXBUF_CFLAGS"; then
29622        pkg_cv_GDK_PIXBUF_CFLAGS="$GDK_PIXBUF_CFLAGS"
29623    else
29624        if test -n "$PKG_CONFIG" && \
29625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
29626  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
29627  ac_status=$?
29628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29629  test $ac_status = 0; }; then
29630  pkg_cv_GDK_PIXBUF_CFLAGS=`$PKG_CONFIG --cflags "gdk-pixbuf-2.0" 2>/dev/null`
29631else
29632  pkg_failed=yes
29633fi
29634    fi
29635else
29636	pkg_failed=untried
29637fi
29638if test -n "$PKG_CONFIG"; then
29639    if test -n "$GDK_PIXBUF_LIBS"; then
29640        pkg_cv_GDK_PIXBUF_LIBS="$GDK_PIXBUF_LIBS"
29641    else
29642        if test -n "$PKG_CONFIG" && \
29643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-pixbuf-2.0\""; } >&5
29644  ($PKG_CONFIG --exists --print-errors "gdk-pixbuf-2.0") 2>&5
29645  ac_status=$?
29646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29647  test $ac_status = 0; }; then
29648  pkg_cv_GDK_PIXBUF_LIBS=`$PKG_CONFIG --libs "gdk-pixbuf-2.0" 2>/dev/null`
29649else
29650  pkg_failed=yes
29651fi
29652    fi
29653else
29654	pkg_failed=untried
29655fi
29656
29657
29658
29659if test $pkg_failed = yes; then
29660
29661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29662        _pkg_short_errors_supported=yes
29663else
29664        _pkg_short_errors_supported=no
29665fi
29666        if test $_pkg_short_errors_supported = yes; then
29667	        GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdk-pixbuf-2.0"`
29668        else
29669	        GDK_PIXBUF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-pixbuf-2.0"`
29670        fi
29671	# Put the nasty error message in config.log where it belongs
29672	echo "$GDK_PIXBUF_PKG_ERRORS" >&5
29673
29674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29675$as_echo "no" >&6; }
29676                HAVE_GDK_PIXBUF=no
29677elif test $pkg_failed = untried; then
29678	HAVE_GDK_PIXBUF=no
29679else
29680	GDK_PIXBUF_CFLAGS=$pkg_cv_GDK_PIXBUF_CFLAGS
29681	GDK_PIXBUF_LIBS=$pkg_cv_GDK_PIXBUF_LIBS
29682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29683$as_echo "yes" >&6; }
29684	HAVE_GDK_PIXBUF=yes
29685fi
29686
29687
29688fi
29689 if test "x$HAVE_GTK" = "xyes"; then
29690  HAVE_GTK_TRUE=
29691  HAVE_GTK_FALSE='#'
29692else
29693  HAVE_GTK_TRUE='#'
29694  HAVE_GTK_FALSE=
29695fi
29696
29697 if test "x$HAVE_GTK_X11" = "xyes"; then
29698  HAVE_GTK_X11_TRUE=
29699  HAVE_GTK_X11_FALSE='#'
29700else
29701  HAVE_GTK_X11_TRUE='#'
29702  HAVE_GTK_X11_FALSE=
29703fi
29704
29705 if test "x$HAVE_GTK_QUARTZ" = "xyes"; then
29706  HAVE_GTK_QUARTZ_TRUE=
29707  HAVE_GTK_QUARTZ_FALSE='#'
29708else
29709  HAVE_GTK_QUARTZ_TRUE='#'
29710  HAVE_GTK_QUARTZ_FALSE=
29711fi
29712
29713 if test "x$HAVE_GDK_PIXBUF" = "xyes"; then
29714  HAVE_GDK_PIXBUF_TRUE=
29715  HAVE_GDK_PIXBUF_FALSE='#'
29716else
29717  HAVE_GDK_PIXBUF_TRUE='#'
29718  HAVE_GDK_PIXBUF_FALSE=
29719fi
29720
29721
29722HAVE_QT=no
29723HAVE_QT_MOC=no
29724
29725pkg_failed=no
29726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
29727$as_echo_n "checking for QT... " >&6; }
29728
29729if test -n "$PKG_CONFIG"; then
29730    if test -n "$QT_CFLAGS"; then
29731        pkg_cv_QT_CFLAGS="$QT_CFLAGS"
29732    else
29733        if test -n "$PKG_CONFIG" && \
29734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Gui Qt5Widgets\""; } >&5
29735  ($PKG_CONFIG --exists --print-errors "Qt5Gui Qt5Widgets") 2>&5
29736  ac_status=$?
29737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29738  test $ac_status = 0; }; then
29739  pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Gui Qt5Widgets" 2>/dev/null`
29740else
29741  pkg_failed=yes
29742fi
29743    fi
29744else
29745	pkg_failed=untried
29746fi
29747if test -n "$PKG_CONFIG"; then
29748    if test -n "$QT_LIBS"; then
29749        pkg_cv_QT_LIBS="$QT_LIBS"
29750    else
29751        if test -n "$PKG_CONFIG" && \
29752    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Gui Qt5Widgets\""; } >&5
29753  ($PKG_CONFIG --exists --print-errors "Qt5Gui Qt5Widgets") 2>&5
29754  ac_status=$?
29755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29756  test $ac_status = 0; }; then
29757  pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Gui Qt5Widgets" 2>/dev/null`
29758else
29759  pkg_failed=yes
29760fi
29761    fi
29762else
29763	pkg_failed=untried
29764fi
29765
29766
29767
29768if test $pkg_failed = yes; then
29769
29770if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29771        _pkg_short_errors_supported=yes
29772else
29773        _pkg_short_errors_supported=no
29774fi
29775        if test $_pkg_short_errors_supported = yes; then
29776	        QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Gui Qt5Widgets"`
29777        else
29778	        QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Gui Qt5Widgets"`
29779        fi
29780	# Put the nasty error message in config.log where it belongs
29781	echo "$QT_PKG_ERRORS" >&5
29782
29783	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784$as_echo "no" >&6; }
29785
29786  HAVE_QT=no
29787
29788elif test $pkg_failed = untried; then
29789
29790  HAVE_QT=no
29791
29792else
29793	QT_CFLAGS=$pkg_cv_QT_CFLAGS
29794	QT_LIBS=$pkg_cv_QT_LIBS
29795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29796$as_echo "yes" >&6; }
29797
29798  HAVE_QT=yes
29799
29800fi
29801if test "x$HAVE_QT" = "xyes"; then
29802  if test -n "$ac_tool_prefix"; then
29803  # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
29804set dummy ${ac_tool_prefix}moc; ac_word=$2
29805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29806$as_echo_n "checking for $ac_word... " >&6; }
29807if ${ac_cv_prog_QT_MOC+:} false; then :
29808  $as_echo_n "(cached) " >&6
29809else
29810  if test -n "$QT_MOC"; then
29811  ac_cv_prog_QT_MOC="$QT_MOC" # Let the user override the test.
29812else
29813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29814for as_dir in $PATH
29815do
29816  IFS=$as_save_IFS
29817  test -z "$as_dir" && as_dir=.
29818    for ac_exec_ext in '' $ac_executable_extensions; do
29819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29820    ac_cv_prog_QT_MOC="${ac_tool_prefix}moc"
29821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29822    break 2
29823  fi
29824done
29825  done
29826IFS=$as_save_IFS
29827
29828fi
29829fi
29830QT_MOC=$ac_cv_prog_QT_MOC
29831if test -n "$QT_MOC"; then
29832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
29833$as_echo "$QT_MOC" >&6; }
29834else
29835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29836$as_echo "no" >&6; }
29837fi
29838
29839
29840fi
29841if test -z "$ac_cv_prog_QT_MOC"; then
29842  ac_ct_QT_MOC=$QT_MOC
29843  # Extract the first word of "moc", so it can be a program name with args.
29844set dummy moc; ac_word=$2
29845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29846$as_echo_n "checking for $ac_word... " >&6; }
29847if ${ac_cv_prog_ac_ct_QT_MOC+:} false; then :
29848  $as_echo_n "(cached) " >&6
29849else
29850  if test -n "$ac_ct_QT_MOC"; then
29851  ac_cv_prog_ac_ct_QT_MOC="$ac_ct_QT_MOC" # Let the user override the test.
29852else
29853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29854for as_dir in $PATH
29855do
29856  IFS=$as_save_IFS
29857  test -z "$as_dir" && as_dir=.
29858    for ac_exec_ext in '' $ac_executable_extensions; do
29859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29860    ac_cv_prog_ac_ct_QT_MOC="moc"
29861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29862    break 2
29863  fi
29864done
29865  done
29866IFS=$as_save_IFS
29867
29868fi
29869fi
29870ac_ct_QT_MOC=$ac_cv_prog_ac_ct_QT_MOC
29871if test -n "$ac_ct_QT_MOC"; then
29872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QT_MOC" >&5
29873$as_echo "$ac_ct_QT_MOC" >&6; }
29874else
29875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29876$as_echo "no" >&6; }
29877fi
29878
29879  if test "x$ac_ct_QT_MOC" = x; then
29880    QT_MOC=""
29881  else
29882    case $cross_compiling:$ac_tool_warned in
29883yes:)
29884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29886ac_tool_warned=yes ;;
29887esac
29888    QT_MOC=$ac_ct_QT_MOC
29889  fi
29890else
29891  QT_MOC="$ac_cv_prog_QT_MOC"
29892fi
29893
29894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 moc" >&5
29895$as_echo_n "checking for Qt5 moc... " >&6; }
29896  mocversion=`$QT_MOC -v 2>&1`
29897  mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
29898  if test x"$mocversiongrep" != x"$mocversion"; then
29899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29900$as_echo "no" >&6; }
29901    # moc was not the qt5 one, try with moc-qt5
29902    if test -n "$ac_tool_prefix"; then
29903  # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
29904set dummy ${ac_tool_prefix}moc-qt5; ac_word=$2
29905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29906$as_echo_n "checking for $ac_word... " >&6; }
29907if ${ac_cv_prog_QT_MOC+:} false; then :
29908  $as_echo_n "(cached) " >&6
29909else
29910  if test -n "$QT_MOC"; then
29911  ac_cv_prog_QT_MOC="$QT_MOC" # Let the user override the test.
29912else
29913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914for as_dir in $PATH
29915do
29916  IFS=$as_save_IFS
29917  test -z "$as_dir" && as_dir=.
29918    for ac_exec_ext in '' $ac_executable_extensions; do
29919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29920    ac_cv_prog_QT_MOC="${ac_tool_prefix}moc-qt5"
29921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29922    break 2
29923  fi
29924done
29925  done
29926IFS=$as_save_IFS
29927
29928fi
29929fi
29930QT_MOC=$ac_cv_prog_QT_MOC
29931if test -n "$QT_MOC"; then
29932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
29933$as_echo "$QT_MOC" >&6; }
29934else
29935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29936$as_echo "no" >&6; }
29937fi
29938
29939
29940fi
29941if test -z "$ac_cv_prog_QT_MOC"; then
29942  ac_ct_QT_MOC=$QT_MOC
29943  # Extract the first word of "moc-qt5", so it can be a program name with args.
29944set dummy moc-qt5; ac_word=$2
29945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29946$as_echo_n "checking for $ac_word... " >&6; }
29947if ${ac_cv_prog_ac_ct_QT_MOC+:} false; then :
29948  $as_echo_n "(cached) " >&6
29949else
29950  if test -n "$ac_ct_QT_MOC"; then
29951  ac_cv_prog_ac_ct_QT_MOC="$ac_ct_QT_MOC" # Let the user override the test.
29952else
29953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29954for as_dir in $PATH
29955do
29956  IFS=$as_save_IFS
29957  test -z "$as_dir" && as_dir=.
29958    for ac_exec_ext in '' $ac_executable_extensions; do
29959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29960    ac_cv_prog_ac_ct_QT_MOC="moc-qt5"
29961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29962    break 2
29963  fi
29964done
29965  done
29966IFS=$as_save_IFS
29967
29968fi
29969fi
29970ac_ct_QT_MOC=$ac_cv_prog_ac_ct_QT_MOC
29971if test -n "$ac_ct_QT_MOC"; then
29972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QT_MOC" >&5
29973$as_echo "$ac_ct_QT_MOC" >&6; }
29974else
29975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29976$as_echo "no" >&6; }
29977fi
29978
29979  if test "x$ac_ct_QT_MOC" = x; then
29980    QT_MOC=""
29981  else
29982    case $cross_compiling:$ac_tool_warned in
29983yes:)
29984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29986ac_tool_warned=yes ;;
29987esac
29988    QT_MOC=$ac_ct_QT_MOC
29989  fi
29990else
29991  QT_MOC="$ac_cv_prog_QT_MOC"
29992fi
29993
29994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 moc-qt5" >&5
29995$as_echo_n "checking for Qt5 moc-qt5... " >&6; }
29996    mocversion=`$QT_MOC -v 2>&1`
29997    mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
29998    if test x"$mocversiongrep" != x"$mocversion"; then
29999      if test -n "$ac_tool_prefix"; then
30000  # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
30001set dummy ${ac_tool_prefix}qtchooser; ac_word=$2
30002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30003$as_echo_n "checking for $ac_word... " >&6; }
30004if ${ac_cv_prog_QTCHOOSER+:} false; then :
30005  $as_echo_n "(cached) " >&6
30006else
30007  if test -n "$QTCHOOSER"; then
30008  ac_cv_prog_QTCHOOSER="$QTCHOOSER" # Let the user override the test.
30009else
30010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30011for as_dir in $PATH
30012do
30013  IFS=$as_save_IFS
30014  test -z "$as_dir" && as_dir=.
30015    for ac_exec_ext in '' $ac_executable_extensions; do
30016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30017    ac_cv_prog_QTCHOOSER="${ac_tool_prefix}qtchooser"
30018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30019    break 2
30020  fi
30021done
30022  done
30023IFS=$as_save_IFS
30024
30025fi
30026fi
30027QTCHOOSER=$ac_cv_prog_QTCHOOSER
30028if test -n "$QTCHOOSER"; then
30029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
30030$as_echo "$QTCHOOSER" >&6; }
30031else
30032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30033$as_echo "no" >&6; }
30034fi
30035
30036
30037fi
30038if test -z "$ac_cv_prog_QTCHOOSER"; then
30039  ac_ct_QTCHOOSER=$QTCHOOSER
30040  # Extract the first word of "qtchooser", so it can be a program name with args.
30041set dummy qtchooser; ac_word=$2
30042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30043$as_echo_n "checking for $ac_word... " >&6; }
30044if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
30045  $as_echo_n "(cached) " >&6
30046else
30047  if test -n "$ac_ct_QTCHOOSER"; then
30048  ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
30049else
30050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30051for as_dir in $PATH
30052do
30053  IFS=$as_save_IFS
30054  test -z "$as_dir" && as_dir=.
30055    for ac_exec_ext in '' $ac_executable_extensions; do
30056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30057    ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
30058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30059    break 2
30060  fi
30061done
30062  done
30063IFS=$as_save_IFS
30064
30065fi
30066fi
30067ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
30068if test -n "$ac_ct_QTCHOOSER"; then
30069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
30070$as_echo "$ac_ct_QTCHOOSER" >&6; }
30071else
30072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30073$as_echo "no" >&6; }
30074fi
30075
30076  if test "x$ac_ct_QTCHOOSER" = x; then
30077    QTCHOOSER=""
30078  else
30079    case $cross_compiling:$ac_tool_warned in
30080yes:)
30081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30083ac_tool_warned=yes ;;
30084esac
30085    QTCHOOSER=$ac_ct_QTCHOOSER
30086  fi
30087else
30088  QTCHOOSER="$ac_cv_prog_QTCHOOSER"
30089fi
30090
30091      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qtchooser" >&5
30092$as_echo_n "checking for qtchooser... " >&6; }
30093      qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
30094      mocversion=`$qt5tooldir/moc -v 2>&1`
30095      mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
30096      if test x"$mocversiongrep" != x"$mocversion"; then
30097        # no valid moc found
30098        QT_MOC="no"
30099      else
30100        QT_MOC=$qt5tooldir/moc
30101      fi
30102    else
30103      QT_MOC=$QT_MOC
30104    fi
30105  fi
30106
30107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
30108$as_echo "$QT_MOC" >&6; }
30109fi
30110 if test "x$HAVE_QT" = "xyes"; then
30111  HAVE_QT_TRUE=
30112  HAVE_QT_FALSE='#'
30113else
30114  HAVE_QT_TRUE='#'
30115  HAVE_QT_FALSE=
30116fi
30117
30118 if test "x$HAVE_QT_MOC" != "xno"; then
30119  HAVE_QT_MOC_TRUE=
30120  HAVE_QT_MOC_FALSE='#'
30121else
30122  HAVE_QT_MOC_TRUE='#'
30123  HAVE_QT_MOC_FALSE=
30124fi
30125
30126
30127
30128
30129HAVE_SDL=NO
30130if test "x$BUILD_EXAMPLES" = "xyes"; then
30131
30132pkg_failed=no
30133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
30134$as_echo_n "checking for SDL... " >&6; }
30135
30136if test -n "$PKG_CONFIG"; then
30137    if test -n "$SDL_CFLAGS"; then
30138        pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
30139    else
30140        if test -n "$PKG_CONFIG" && \
30141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
30142  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
30143  ac_status=$?
30144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145  test $ac_status = 0; }; then
30146  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
30147else
30148  pkg_failed=yes
30149fi
30150    fi
30151else
30152	pkg_failed=untried
30153fi
30154if test -n "$PKG_CONFIG"; then
30155    if test -n "$SDL_LIBS"; then
30156        pkg_cv_SDL_LIBS="$SDL_LIBS"
30157    else
30158        if test -n "$PKG_CONFIG" && \
30159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
30160  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
30161  ac_status=$?
30162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30163  test $ac_status = 0; }; then
30164  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
30165else
30166  pkg_failed=yes
30167fi
30168    fi
30169else
30170	pkg_failed=untried
30171fi
30172
30173
30174
30175if test $pkg_failed = yes; then
30176
30177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30178        _pkg_short_errors_supported=yes
30179else
30180        _pkg_short_errors_supported=no
30181fi
30182        if test $_pkg_short_errors_supported = yes; then
30183	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= 1.2.0"`
30184        else
30185	        SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= 1.2.0"`
30186        fi
30187	# Put the nasty error message in config.log where it belongs
30188	echo "$SDL_PKG_ERRORS" >&5
30189
30190	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30191$as_echo "no" >&6; }
30192                HAVE_SDL=no
30193elif test $pkg_failed = untried; then
30194	HAVE_SDL=no
30195else
30196	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
30197	SDL_LIBS=$pkg_cv_SDL_LIBS
30198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30199$as_echo "yes" >&6; }
30200	HAVE_SDL=yes
30201fi
30202
30203
30204fi
30205 if test "x$HAVE_SDL" = "xyes"; then
30206  HAVE_SDL_TRUE=
30207  HAVE_SDL_FALSE='#'
30208else
30209  HAVE_SDL_TRUE='#'
30210  HAVE_SDL_FALSE=
30211fi
30212
30213
30214
30215
30216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30217/* end confdefs.h.  */
30218
30219
30220    #include <linux/input.h>
30221    #include <linux/joystick.h>
30222
30223int
30224main ()
30225{
30226
30227    struct js_event js;
30228    js.type = JS_EVENT_AXIS;
30229
30230  ;
30231  return 0;
30232}
30233
30234_ACEOF
30235if ac_fn_c_try_compile "$LINENO"; then :
30236
30237  HAVE_LINUX_JOYSTICK_HEADERS="yes"
30238
30239else
30240
30241  HAVE_LINUX_JOYSTICK_HEADERS="no"
30242
30243fi
30244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30245 if test "x$HAVE_LINUX_JOYSTICK_HEADERS" = "xyes"; then
30246  HAVE_LINUX_JOYSTICK_HEADERS_TRUE=
30247  HAVE_LINUX_JOYSTICK_HEADERS_FALSE='#'
30248else
30249  HAVE_LINUX_JOYSTICK_HEADERS_TRUE='#'
30250  HAVE_LINUX_JOYSTICK_HEADERS_FALSE=
30251fi
30252
30253
30254# Check whether --enable-Bsymbolic was given.
30255if test "${enable_Bsymbolic+set}" = set; then :
30256  enableval=$enable_Bsymbolic;
30257else
30258  SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
30259               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
30260$as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
30261               LDFLAGS=-Wl,-Bsymbolic-functions
30262               LIBS=
30263               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30264/* end confdefs.h.  */
30265
30266int
30267main ()
30268{
30269return 0
30270  ;
30271  return 0;
30272}
30273_ACEOF
30274if ac_fn_c_try_link "$LINENO"; then :
30275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30276$as_echo "yes" >&6; }
30277                           enable_Bsymbolic=yes
30278else
30279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30280$as_echo "no" >&6; }
30281                           enable_Bsymbolic=no
30282fi
30283rm -f core conftest.err conftest.$ac_objext \
30284    conftest$ac_exeext conftest.$ac_ext
30285               LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"
30286fi
30287
30288
30289
30290
30291GST_LICENSE="LGPL"
30292
30293cat >>confdefs.h <<_ACEOF
30294#define GST_LICENSE "$GST_LICENSE"
30295_ACEOF
30296
30297
30298
30299
30300
30301  EXP_VAR=PLUGINDIR
30302  FROM_VAR=${libdir}/gstreamer-$GST_API_VERSION
30303
30304    prefix_save=$prefix
30305  exec_prefix_save=$exec_prefix
30306
30307    if test "x$prefix" = "xNONE"; then
30308    prefix="$ac_default_prefix"
30309  fi
30310    if test "x$exec_prefix" = "xNONE"; then
30311    exec_prefix=$prefix
30312  fi
30313
30314  full_var="$FROM_VAR"
30315    while true; do
30316    new_full_var="`eval echo $full_var`"
30317    if test "x$new_full_var" = "x$full_var"; then break; fi
30318    full_var=$new_full_var
30319  done
30320
30321    full_var=$new_full_var
30322  PLUGINDIR="$full_var"
30323
30324
30325    prefix=$prefix_save
30326  exec_prefix=$exec_prefix_save
30327
30328
30329cat >>confdefs.h <<_ACEOF
30330#define PLUGINDIR "$PLUGINDIR"
30331_ACEOF
30332
30333  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $PLUGINDIR as the plugin install location" >&5
30334$as_echo "$as_me: Using $PLUGINDIR as the plugin install location" >&6;}
30335
30336    plugindir="\$(libdir)/gstreamer-$GST_API_VERSION"
30337
30338
30339
30340
30341  if test "x$PACKAGE_VERSION_NANO" = "x0"; then
30342
30343      if test "xyes" = "xno" -o "xyes" = "x"; then
30344    GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
30345  elif test "xyes" = "xyes"; then
30346            if ( echo  "${srcdir}/gst-plugins-base.doap"  | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
30347      GST_PACKAGE_RELEASE_DATETIME= "${srcdir}/gst-plugins-base.doap"
30348    else
30349            YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO   "${srcdir}/gst-plugins-base.doap" `;
30350      if test "x$YYYY_MM_DD" != "x"; then
30351        GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
30352      else
30353        as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
30354            release date for release version  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO  from  \"${srcdir}/gst-plugins-base.doap\" " "$LINENO" 5
30355        GST_PACKAGE_RELEASE_DATETIME=""
30356      fi
30357    fi
30358    elif ( echo yes | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
30359    GST_PACKAGE_RELEASE_DATETIME=yes
30360  else
30361    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
30362$as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
30363    GST_PACKAGE_RELEASE_DATETIME=""
30364  fi
30365
30366  if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
30367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
30368$as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
30369  else
30370    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
30371$as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
30372
30373
30374cat >>confdefs.h <<_ACEOF
30375#define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
30376_ACEOF
30377
30378  fi
30379
30380  else
30381
30382      if test "xno" = "xno" -o "xno" = "x"; then
30383    GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
30384  elif test "xno" = "xyes"; then
30385            if ( echo  | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
30386      GST_PACKAGE_RELEASE_DATETIME=
30387    else
30388            YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  `;
30389      if test "x$YYYY_MM_DD" != "x"; then
30390        GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
30391      else
30392        as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
30393            release date for release version  from " "$LINENO" 5
30394        GST_PACKAGE_RELEASE_DATETIME=""
30395      fi
30396    fi
30397    elif ( echo no | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
30398    GST_PACKAGE_RELEASE_DATETIME=no
30399  else
30400    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
30401$as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
30402    GST_PACKAGE_RELEASE_DATETIME=""
30403  fi
30404
30405  if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
30406    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
30407$as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
30408  else
30409    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
30410$as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
30411
30412
30413cat >>confdefs.h <<_ACEOF
30414#define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
30415_ACEOF
30416
30417  fi
30418
30419  fi
30420
30421
30422if test x$enable_static = xyes -a x$enable_shared = xno; then
30423  GST_STATIC_CFLAGS="-DGST_STATIC_COMPILATION"
30424fi
30425
30426# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
30427NO_WARNINGS=""
30428
30429
30430
30431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GStreamer debugging system is enabled" >&5
30432$as_echo_n "checking whether the GStreamer debugging system is enabled... " >&6; }
30433  ac_ext=c
30434ac_cpp='$CPP $CPPFLAGS'
30435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30437ac_compiler_gnu=$ac_cv_c_compiler_gnu
30438
30439  save_CFLAGS="$CFLAGS"
30440  CFLAGS="$GST_CFLAGS $CFLAGS"
30441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30442/* end confdefs.h.  */
30443
30444
30445      #include <gst/gstconfig.h>
30446      #ifdef GST_DISABLE_GST_DEBUG
30447      #error "debugging disabled, make compiler fail"
30448      #endif
30449_ACEOF
30450if ac_fn_c_try_compile "$LINENO"; then :
30451   debug_system_enabled=yes
30452else
30453  debug_system_enabled=no
30454fi
30455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456  CFLAGS="$save_CFLAGS"
30457  ac_ext=c
30458ac_cpp='$CPP $CPPFLAGS'
30459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30461ac_compiler_gnu=$ac_cv_c_compiler_gnu
30462
30463
30464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_system_enabled" >&5
30465$as_echo "$debug_system_enabled" >&6; }
30466
30467  if test "x$debug_system_enabled" = "xyes" ; then
30468    NO_WARNINGS=""
30469    true
30470  else
30471    NO_WARNINGS="-Wno-unused"
30472    true
30473  fi
30474
30475
30476
30477
30478
30479
30480  WARNING_CFLAGS=""
30481  ERROR_CFLAGS=""
30482
30483
30484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
30485$as_echo_n "checking to see if compiler understands -Wall... " >&6; }
30486
30487  save_CFLAGS="$CFLAGS"
30488  CFLAGS="$CFLAGS -Wall"
30489
30490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30491/* end confdefs.h.  */
30492
30493int
30494main ()
30495{
30496
30497  ;
30498  return 0;
30499}
30500_ACEOF
30501if ac_fn_c_try_compile "$LINENO"; then :
30502  flag_ok=yes
30503else
30504  flag_ok=no
30505fi
30506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30507  CFLAGS="$save_CFLAGS"
30508
30509  if test "X$flag_ok" = Xyes ; then
30510    WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
30511    true
30512  else
30513
30514    true
30515  fi
30516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30517$as_echo "$flag_ok" >&6; }
30518
30519
30520
30521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5
30522$as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; }
30523
30524  save_CFLAGS="$CFLAGS"
30525  CFLAGS="$CFLAGS -Wdeclaration-after-statement"
30526
30527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30528/* end confdefs.h.  */
30529
30530int
30531main ()
30532{
30533
30534  ;
30535  return 0;
30536}
30537_ACEOF
30538if ac_fn_c_try_compile "$LINENO"; then :
30539  flag_ok=yes
30540else
30541  flag_ok=no
30542fi
30543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30544  CFLAGS="$save_CFLAGS"
30545
30546  if test "X$flag_ok" = Xyes ; then
30547    WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement"
30548    true
30549  else
30550
30551    true
30552  fi
30553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30554$as_echo "$flag_ok" >&6; }
30555
30556
30557
30558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wvla" >&5
30559$as_echo_n "checking to see if compiler understands -Wvla... " >&6; }
30560
30561  save_CFLAGS="$CFLAGS"
30562  CFLAGS="$CFLAGS -Wvla"
30563
30564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30565/* end confdefs.h.  */
30566
30567int
30568main ()
30569{
30570
30571  ;
30572  return 0;
30573}
30574_ACEOF
30575if ac_fn_c_try_compile "$LINENO"; then :
30576  flag_ok=yes
30577else
30578  flag_ok=no
30579fi
30580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30581  CFLAGS="$save_CFLAGS"
30582
30583  if test "X$flag_ok" = Xyes ; then
30584    WARNING_CFLAGS="$WARNING_CFLAGS -Wvla"
30585    true
30586  else
30587
30588    true
30589  fi
30590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30591$as_echo "$flag_ok" >&6; }
30592
30593
30594
30595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wpointer-arith" >&5
30596$as_echo_n "checking to see if compiler understands -Wpointer-arith... " >&6; }
30597
30598  save_CFLAGS="$CFLAGS"
30599  CFLAGS="$CFLAGS -Wpointer-arith"
30600
30601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30602/* end confdefs.h.  */
30603
30604int
30605main ()
30606{
30607
30608  ;
30609  return 0;
30610}
30611_ACEOF
30612if ac_fn_c_try_compile "$LINENO"; then :
30613  flag_ok=yes
30614else
30615  flag_ok=no
30616fi
30617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30618  CFLAGS="$save_CFLAGS"
30619
30620  if test "X$flag_ok" = Xyes ; then
30621    WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith"
30622    true
30623  else
30624
30625    true
30626  fi
30627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30628$as_echo "$flag_ok" >&6; }
30629
30630
30631    if test "x$FATAL_WARNINGS" != "xno"
30632  then
30633
30634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
30635$as_echo_n "checking to see if compiler understands -Werror... " >&6; }
30636
30637  save_CFLAGS="$CFLAGS"
30638  CFLAGS="$CFLAGS -Werror"
30639
30640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30641/* end confdefs.h.  */
30642
30643int
30644main ()
30645{
30646
30647  ;
30648  return 0;
30649}
30650_ACEOF
30651if ac_fn_c_try_compile "$LINENO"; then :
30652  flag_ok=yes
30653else
30654  flag_ok=no
30655fi
30656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30657  CFLAGS="$save_CFLAGS"
30658
30659  if test "X$flag_ok" = Xyes ; then
30660    ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
30661    true
30662  else
30663
30664    true
30665  fi
30666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30667$as_echo "$flag_ok" >&6; }
30668
30669  fi
30670
30671  if test "x
30672    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
30673    -Wwrite-strings  -Wformat-nonliteral -Wformat-security
30674    -Winit-self -Wmissing-include-dirs -Waddress
30675    -Wno-multichar -Wnested-externs $NO_WARNINGS" != "x"
30676  then
30677    UNSUPPORTED=""
30678    list="
30679    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
30680    -Wwrite-strings  -Wformat-nonliteral -Wformat-security
30681    -Winit-self -Wmissing-include-dirs -Waddress
30682    -Wno-multichar -Wnested-externs $NO_WARNINGS"
30683    for each in $list
30684    do
30685
30686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $each" >&5
30687$as_echo_n "checking to see if compiler understands $each... " >&6; }
30688
30689  save_CFLAGS="$CFLAGS"
30690  CFLAGS="$CFLAGS $each"
30691
30692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30693/* end confdefs.h.  */
30694
30695int
30696main ()
30697{
30698
30699  ;
30700  return 0;
30701}
30702_ACEOF
30703if ac_fn_c_try_compile "$LINENO"; then :
30704  flag_ok=yes
30705else
30706  flag_ok=no
30707fi
30708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30709  CFLAGS="$save_CFLAGS"
30710
30711  if test "X$flag_ok" = Xyes ; then
30712    WARNING_CFLAGS="$WARNING_CFLAGS $each"
30713    true
30714  else
30715    UNSUPPORTED="$UNSUPPORTED $each"
30716    true
30717  fi
30718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30719$as_echo "$flag_ok" >&6; }
30720
30721    done
30722    if test "X$UNSUPPORTED" != X ; then
30723      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
30724$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
30725    fi
30726  fi
30727
30728
30729
30730  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CFLAGS to $WARNING_CFLAGS" >&5
30731$as_echo "$as_me: set WARNING_CFLAGS to $WARNING_CFLAGS" >&6;}
30732  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CFLAGS to $ERROR_CFLAGS" >&5
30733$as_echo "$as_me: set ERROR_CFLAGS to $ERROR_CFLAGS" >&6;}
30734
30735
30736
30737
30738
30739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands " >&5
30740$as_echo_n "checking to see if c++ compiler understands ... " >&6; }
30741
30742  save_CPPFLAGS="$CPPFLAGS"
30743  CPPFLAGS="$CPPFLAGS "
30744
30745  ac_ext=cpp
30746ac_cpp='$CXXCPP $CPPFLAGS'
30747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30750
30751
30752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30753/* end confdefs.h.  */
30754
30755int
30756main ()
30757{
30758
30759  ;
30760  return 0;
30761}
30762_ACEOF
30763if ac_fn_cxx_try_compile "$LINENO"; then :
30764  flag_ok=yes
30765else
30766  flag_ok=no
30767fi
30768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30769  CPPFLAGS="$save_CPPFLAGS"
30770
30771  if test "X$flag_ok" = Xyes ; then
30772
30773    true
30774  else
30775
30776    true
30777  fi
30778
30779  ac_ext=c
30780ac_cpp='$CPP $CPPFLAGS'
30781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30783ac_compiler_gnu=$ac_cv_c_compiler_gnu
30784
30785
30786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30787$as_echo "$flag_ok" >&6; }
30788
30789
30790
30791
30792
30793  ERROR_CXXFLAGS=""
30794  WARNING_CXXFLAGS=""
30795
30796
30797
30798
30799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Wall" >&5
30800$as_echo_n "checking to see if c++ compiler understands -Wall... " >&6; }
30801
30802  save_CPPFLAGS="$CPPFLAGS"
30803  CPPFLAGS="$CPPFLAGS -Wall"
30804
30805  ac_ext=cpp
30806ac_cpp='$CXXCPP $CPPFLAGS'
30807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30810
30811
30812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30813/* end confdefs.h.  */
30814
30815int
30816main ()
30817{
30818
30819  ;
30820  return 0;
30821}
30822_ACEOF
30823if ac_fn_cxx_try_compile "$LINENO"; then :
30824  flag_ok=yes
30825else
30826  flag_ok=no
30827fi
30828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30829  CPPFLAGS="$save_CPPFLAGS"
30830
30831  if test "X$flag_ok" = Xyes ; then
30832    WARNING_CXXFLAGS="$WARNING_CXXFLAGS -Wall"
30833    true
30834  else
30835
30836    true
30837  fi
30838
30839  ac_ext=c
30840ac_cpp='$CPP $CPPFLAGS'
30841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30843ac_compiler_gnu=$ac_cv_c_compiler_gnu
30844
30845
30846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30847$as_echo "$flag_ok" >&6; }
30848
30849
30850    if test "x$FATAL_WARNINGS" != "xno"
30851  then
30852
30853
30854
30855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Werror" >&5
30856$as_echo_n "checking to see if c++ compiler understands -Werror... " >&6; }
30857
30858  save_CPPFLAGS="$CPPFLAGS"
30859  CPPFLAGS="$CPPFLAGS -Werror"
30860
30861  ac_ext=cpp
30862ac_cpp='$CXXCPP $CPPFLAGS'
30863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30866
30867
30868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30869/* end confdefs.h.  */
30870
30871int
30872main ()
30873{
30874
30875  ;
30876  return 0;
30877}
30878_ACEOF
30879if ac_fn_cxx_try_compile "$LINENO"; then :
30880  flag_ok=yes
30881else
30882  flag_ok=no
30883fi
30884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30885  CPPFLAGS="$save_CPPFLAGS"
30886
30887  if test "X$flag_ok" = Xyes ; then
30888    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror"
30889    true
30890  else
30891
30892    true
30893  fi
30894
30895  ac_ext=c
30896ac_cpp='$CPP $CPPFLAGS'
30897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30899ac_compiler_gnu=$ac_cv_c_compiler_gnu
30900
30901
30902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30903$as_echo "$flag_ok" >&6; }
30904
30905
30906    if test "x$ERROR_CXXFLAGS" != "x"
30907    then
30908
30909
30910
30911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Wno-non-virtual-dtor" >&5
30912$as_echo_n "checking to see if c++ compiler understands -Wno-non-virtual-dtor... " >&6; }
30913
30914  save_CPPFLAGS="$CPPFLAGS"
30915  CPPFLAGS="$CPPFLAGS -Wno-non-virtual-dtor"
30916
30917  ac_ext=cpp
30918ac_cpp='$CXXCPP $CPPFLAGS'
30919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30922
30923
30924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30925/* end confdefs.h.  */
30926
30927int
30928main ()
30929{
30930
30931  ;
30932  return 0;
30933}
30934_ACEOF
30935if ac_fn_cxx_try_compile "$LINENO"; then :
30936  flag_ok=yes
30937else
30938  flag_ok=no
30939fi
30940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30941  CPPFLAGS="$save_CPPFLAGS"
30942
30943  if test "X$flag_ok" = Xyes ; then
30944    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Wno-non-virtual-dtor"
30945    true
30946  else
30947
30948    true
30949  fi
30950
30951  ac_ext=c
30952ac_cpp='$CPP $CPPFLAGS'
30953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30955ac_compiler_gnu=$ac_cv_c_compiler_gnu
30956
30957
30958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30959$as_echo "$flag_ok" >&6; }
30960
30961
30962				if test -n "$PKG_CONFIG" && \
30963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
30964  ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
30965  ac_status=$?
30966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967  test $ac_status = 0; }; then
30968
30969
30970
30971
30972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -fno-strict-aliasing" >&5
30973$as_echo_n "checking to see if c++ compiler understands -fno-strict-aliasing... " >&6; }
30974
30975  save_CPPFLAGS="$CPPFLAGS"
30976  CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
30977
30978  ac_ext=cpp
30979ac_cpp='$CXXCPP $CPPFLAGS'
30980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30983
30984
30985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30986/* end confdefs.h.  */
30987
30988int
30989main ()
30990{
30991
30992  ;
30993  return 0;
30994}
30995_ACEOF
30996if ac_fn_cxx_try_compile "$LINENO"; then :
30997  flag_ok=yes
30998else
30999  flag_ok=no
31000fi
31001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31002  CPPFLAGS="$save_CPPFLAGS"
31003
31004  if test "X$flag_ok" = Xyes ; then
31005    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -fno-strict-aliasing"
31006    true
31007  else
31008
31009    true
31010  fi
31011
31012  ac_ext=c
31013ac_cpp='$CPP $CPPFLAGS'
31014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31016ac_compiler_gnu=$ac_cv_c_compiler_gnu
31017
31018
31019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
31020$as_echo "$flag_ok" >&6; }
31021
31022
31023fi
31024    fi
31025  fi
31026
31027  if test "x
31028    -Wmissing-declarations -Wredundant-decls -Wundef
31029    -Wwrite-strings -Wformat-nonliteral -Wformat-security
31030    -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
31031    -Wno-multichar $NO_WARNINGS" != "x"
31032  then
31033    UNSUPPORTED=""
31034    list="
31035    -Wmissing-declarations -Wredundant-decls -Wundef
31036    -Wwrite-strings -Wformat-nonliteral -Wformat-security
31037    -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
31038    -Wno-multichar $NO_WARNINGS"
31039    for each in $list
31040    do
31041
31042
31043
31044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands $each" >&5
31045$as_echo_n "checking to see if c++ compiler understands $each... " >&6; }
31046
31047  save_CPPFLAGS="$CPPFLAGS"
31048  CPPFLAGS="$CPPFLAGS $each"
31049
31050  ac_ext=cpp
31051ac_cpp='$CXXCPP $CPPFLAGS'
31052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31055
31056
31057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31058/* end confdefs.h.  */
31059
31060int
31061main ()
31062{
31063
31064  ;
31065  return 0;
31066}
31067_ACEOF
31068if ac_fn_cxx_try_compile "$LINENO"; then :
31069  flag_ok=yes
31070else
31071  flag_ok=no
31072fi
31073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31074  CPPFLAGS="$save_CPPFLAGS"
31075
31076  if test "X$flag_ok" = Xyes ; then
31077    WARNING_CXXFLAGS="$WARNING_CXXFLAGS $each"
31078    true
31079  else
31080    UNSUPPORTED="$UNSUPPORTED $each"
31081    true
31082  fi
31083
31084  ac_ext=c
31085ac_cpp='$CPP $CPPFLAGS'
31086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31088ac_compiler_gnu=$ac_cv_c_compiler_gnu
31089
31090
31091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
31092$as_echo "$flag_ok" >&6; }
31093
31094    done
31095    if test "X$UNSUPPORTED" != X ; then
31096      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
31097$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
31098    fi
31099  fi
31100
31101
31102
31103  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CXXFLAGS to $WARNING_CXXFLAGS" >&5
31104$as_echo "$as_me: set WARNING_CXXFLAGS to $WARNING_CXXFLAGS" >&6;}
31105  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CXXFLAGS to $ERROR_CXXFLAGS" >&5
31106$as_echo "$as_me: set ERROR_CXXFLAGS to $ERROR_CXXFLAGS" >&6;}
31107
31108
31109
31110      if test "x$GST_GIT" = "xyes"; then
31111    GST_LEVEL_DEFAULT=GST_LEVEL_ERROR
31112  else
31113    GST_LEVEL_DEFAULT=GST_LEVEL_NONE
31114  fi
31115
31116cat >>confdefs.h <<_ACEOF
31117#define GST_LEVEL_DEFAULT $GST_LEVEL_DEFAULT
31118_ACEOF
31119
31120
31121
31122
31123
31124            DEFAULT_AUDIOSINK="autoaudiosink"
31125  DEFAULT_VIDEOSINK="autovideosink"
31126  DEFAULT_AUDIOSRC="alsasrc"
31127  DEFAULT_VIDEOSRC="v4l2src"
31128  DEFAULT_VISUALIZER="goom"
31129  case "$host" in
31130    *-sun-* | *pc-solaris* )
31131      DEFAULT_AUDIOSRC="sunaudiosrc"
31132      ;;
31133    *-darwin* )
31134      DEFAULT_AUDIOSRC="osxaudiosrc"
31135      ;;
31136  esac
31137
31138
31139# Check whether --with-default-audiosink was given.
31140if test "${with_default_audiosink+set}" = set; then :
31141  withval=$with_default_audiosink;
31142      case "${withval}" in
31143        yes) as_fn_error $? "bad value ${withval} for --with-default-audiosink" "$LINENO" 5 ;;
31144        no)  as_fn_error $? "bad value ${withval} for --with-default-audiosink" "$LINENO" 5 ;;
31145        *)   DEFAULT_AUDIOSINK="${withval}" ;;
31146      esac
31147
31148else
31149
31150      DEFAULT_AUDIOSINK="$DEFAULT_AUDIOSINK"
31151
31152fi
31153
31154  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_AUDIOSINK as default audio sink" >&5
31155$as_echo "$as_me: Using $DEFAULT_AUDIOSINK as default audio sink" >&6;}
31156
31157
31158cat >>confdefs.h <<_ACEOF
31159#define DEFAULT_AUDIOSINK "$DEFAULT_AUDIOSINK"
31160_ACEOF
31161
31162
31163
31164# Check whether --with-default-audiosrc was given.
31165if test "${with_default_audiosrc+set}" = set; then :
31166  withval=$with_default_audiosrc;
31167      case "${withval}" in
31168        yes) as_fn_error $? "bad value ${withval} for --with-default-audiosrc" "$LINENO" 5 ;;
31169        no)  as_fn_error $? "bad value ${withval} for --with-default-audiosrc" "$LINENO" 5 ;;
31170        *)   DEFAULT_AUDIOSRC="${withval}" ;;
31171      esac
31172
31173else
31174
31175      DEFAULT_AUDIOSRC="$DEFAULT_AUDIOSRC"
31176
31177fi
31178
31179  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_AUDIOSRC as default audio source" >&5
31180$as_echo "$as_me: Using $DEFAULT_AUDIOSRC as default audio source" >&6;}
31181
31182
31183cat >>confdefs.h <<_ACEOF
31184#define DEFAULT_AUDIOSRC "$DEFAULT_AUDIOSRC"
31185_ACEOF
31186
31187
31188
31189# Check whether --with-default-videosink was given.
31190if test "${with_default_videosink+set}" = set; then :
31191  withval=$with_default_videosink;
31192      case "${withval}" in
31193        yes) as_fn_error $? "bad value ${withval} for --with-default-videosink" "$LINENO" 5 ;;
31194        no)  as_fn_error $? "bad value ${withval} for --with-default-videosink" "$LINENO" 5 ;;
31195        *)   DEFAULT_VIDEOSINK="${withval}" ;;
31196      esac
31197
31198else
31199
31200      DEFAULT_VIDEOSINK="$DEFAULT_VIDEOSINK"
31201
31202fi
31203
31204  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VIDEOSINK as default video sink" >&5
31205$as_echo "$as_me: Using $DEFAULT_VIDEOSINK as default video sink" >&6;}
31206
31207
31208cat >>confdefs.h <<_ACEOF
31209#define DEFAULT_VIDEOSINK "$DEFAULT_VIDEOSINK"
31210_ACEOF
31211
31212
31213
31214# Check whether --with-default-videosrc was given.
31215if test "${with_default_videosrc+set}" = set; then :
31216  withval=$with_default_videosrc;
31217      case "${withval}" in
31218        yes) as_fn_error $? "bad value ${withval} for --with-default-videosrc" "$LINENO" 5 ;;
31219        no)  as_fn_error $? "bad value ${withval} for --with-default-videosrc" "$LINENO" 5 ;;
31220        *)   DEFAULT_VIDEOSRC="${withval}" ;;
31221      esac
31222
31223else
31224
31225      DEFAULT_VIDEOSRC="$DEFAULT_VIDEOSRC"
31226
31227fi
31228
31229  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VIDEOSRC as default video source" >&5
31230$as_echo "$as_me: Using $DEFAULT_VIDEOSRC as default video source" >&6;}
31231
31232
31233cat >>confdefs.h <<_ACEOF
31234#define DEFAULT_VIDEOSRC "$DEFAULT_VIDEOSRC"
31235_ACEOF
31236
31237
31238
31239# Check whether --with-default-visualizer was given.
31240if test "${with_default_visualizer+set}" = set; then :
31241  withval=$with_default_visualizer;
31242      case "${withval}" in
31243        yes) as_fn_error $? "bad value ${withval} for --with-default-visualizer" "$LINENO" 5 ;;
31244        no)  as_fn_error $? "bad value ${withval} for --with-default-visualizer" "$LINENO" 5 ;;
31245        *)   DEFAULT_VISUALIZER="${withval}" ;;
31246      esac
31247
31248else
31249
31250      DEFAULT_VISUALIZER="$DEFAULT_VISUALIZER"
31251
31252fi
31253
31254  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VISUALIZER as default visualizer" >&5
31255$as_echo "$as_me: Using $DEFAULT_VISUALIZER as default visualizer" >&6;}
31256
31257
31258cat >>confdefs.h <<_ACEOF
31259#define DEFAULT_VISUALIZER "$DEFAULT_VISUALIZER"
31260_ACEOF
31261
31262
31263
31264GST_DATADIR="$GST_PREFIX/share"
31265
31266cat >>confdefs.h <<_ACEOF
31267#define GST_DATADIR "$GST_DATADIR"
31268_ACEOF
31269
31270
31271cat >>confdefs.h <<_ACEOF
31272#define GST_API_VERSION "$GST_API_VERSION"
31273_ACEOF
31274
31275
31276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which audio resample format to use for integer" >&5
31277$as_echo_n "checking which audio resample format to use for integer... " >&6; }
31278
31279# Check whether --with-audioresample_format was given.
31280if test "${with_audioresample_format+set}" = set; then :
31281  withval=$with_audioresample_format; ac_cv_audioresample_format=$withval
31282else
31283  ac_cv_audioresample_format=auto
31284fi
31285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_audioresample_format" >&5
31286$as_echo "$ac_cv_audioresample_format" >&6; }
31287case $ac_cv_audioresample_format in
31288  int)
31289
31290$as_echo "#define AUDIORESAMPLE_FORMAT_INT 1" >>confdefs.h
31291
31292
31293  ;;
31294  float)
31295
31296$as_echo "#define AUDIORESAMPLE_FORMAT_FLOAT 1" >>confdefs.h
31297
31298
31299  ;;
31300  auto)
31301
31302$as_echo "#define AUDIORESAMPLE_FORMAT_AUTO 1" >>confdefs.h
31303
31304
31305esac
31306
31307ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
31308if test "x$ac_cv_func_mmap" = xyes; then :
31309
31310$as_echo "#define HAVE_MMAP 1" >>confdefs.h
31311
31312fi
31313
31314
31315for ac_header in linux/dma-buf.h
31316do :
31317  ac_fn_c_check_header_mongrel "$LINENO" "linux/dma-buf.h" "ac_cv_header_linux_dma_buf_h" "$ac_includes_default"
31318if test "x$ac_cv_header_linux_dma_buf_h" = xyes; then :
31319  cat >>confdefs.h <<_ACEOF
31320#define HAVE_LINUX_DMA_BUF_H 1
31321_ACEOF
31322
31323fi
31324
31325done
31326
31327
31328
31329
31330  GST_PLUGINS_ALL="$GST_PLUGINS_ALL adder"
31331
31332
31333
31334  # Check whether --enable-adder was given.
31335if test "${enable_adder+set}" = set; then :
31336  enableval=$enable_adder;
31337      case "${enableval}" in
31338        yes) gst_use_adder=yes ;;
31339        no) gst_use_adder=no ;;
31340        *) as_fn_error $? "bad value ${enableval} for --enable-adder" "$LINENO" 5 ;;
31341       esac
31342
31343else
31344  gst_use_adder=yes
31345fi
31346
31347  if test x$gst_use_adder = xno; then
31348    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin adder" >&5
31349$as_echo "$as_me: disabling dependency-less plugin adder" >&6;}
31350    WITHOUT_PLUGINS="$WITHOUT_PLUGINS adder"
31351  fi
31352
31353
31354    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " adder " > /dev/null; then
31355    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED adder"
31356  fi
31357    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " adder " > /dev/null; then
31358    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adder / /'`
31359  fi
31360    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " adder " > /dev/null; then
31361    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adder / /'`
31362  fi
31363   if echo " $GST_PLUGINS_SELECTED " | grep -i " adder " > /dev/null; then
31364  USE_PLUGIN_ADDER_TRUE=
31365  USE_PLUGIN_ADDER_FALSE='#'
31366else
31367  USE_PLUGIN_ADDER_TRUE='#'
31368  USE_PLUGIN_ADDER_FALSE=
31369fi
31370
31371
31372
31373  GST_PLUGINS_ALL="$GST_PLUGINS_ALL app"
31374
31375
31376
31377  # Check whether --enable-app was given.
31378if test "${enable_app+set}" = set; then :
31379  enableval=$enable_app;
31380      case "${enableval}" in
31381        yes) gst_use_app=yes ;;
31382        no) gst_use_app=no ;;
31383        *) as_fn_error $? "bad value ${enableval} for --enable-app" "$LINENO" 5 ;;
31384       esac
31385
31386else
31387  gst_use_app=yes
31388fi
31389
31390  if test x$gst_use_app = xno; then
31391    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin app" >&5
31392$as_echo "$as_me: disabling dependency-less plugin app" >&6;}
31393    WITHOUT_PLUGINS="$WITHOUT_PLUGINS app"
31394  fi
31395
31396
31397    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " app " > /dev/null; then
31398    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED app"
31399  fi
31400    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " app " > /dev/null; then
31401    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ app / /'`
31402  fi
31403    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " app " > /dev/null; then
31404    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ app / /'`
31405  fi
31406   if echo " $GST_PLUGINS_SELECTED " | grep -i " app " > /dev/null; then
31407  USE_PLUGIN_APP_TRUE=
31408  USE_PLUGIN_APP_FALSE='#'
31409else
31410  USE_PLUGIN_APP_TRUE='#'
31411  USE_PLUGIN_APP_FALSE=
31412fi
31413
31414
31415
31416  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audioconvert"
31417
31418
31419
31420  # Check whether --enable-audioconvert was given.
31421if test "${enable_audioconvert+set}" = set; then :
31422  enableval=$enable_audioconvert;
31423      case "${enableval}" in
31424        yes) gst_use_audioconvert=yes ;;
31425        no) gst_use_audioconvert=no ;;
31426        *) as_fn_error $? "bad value ${enableval} for --enable-audioconvert" "$LINENO" 5 ;;
31427       esac
31428
31429else
31430  gst_use_audioconvert=yes
31431fi
31432
31433  if test x$gst_use_audioconvert = xno; then
31434    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audioconvert" >&5
31435$as_echo "$as_me: disabling dependency-less plugin audioconvert" >&6;}
31436    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audioconvert"
31437  fi
31438
31439
31440    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audioconvert " > /dev/null; then
31441    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audioconvert"
31442  fi
31443    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audioconvert " > /dev/null; then
31444    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audioconvert / /'`
31445  fi
31446    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audioconvert " > /dev/null; then
31447    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audioconvert / /'`
31448  fi
31449   if echo " $GST_PLUGINS_SELECTED " | grep -i " audioconvert " > /dev/null; then
31450  USE_PLUGIN_AUDIOCONVERT_TRUE=
31451  USE_PLUGIN_AUDIOCONVERT_FALSE='#'
31452else
31453  USE_PLUGIN_AUDIOCONVERT_TRUE='#'
31454  USE_PLUGIN_AUDIOCONVERT_FALSE=
31455fi
31456
31457
31458
31459  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiomixer"
31460
31461
31462
31463  # Check whether --enable-audiomixer was given.
31464if test "${enable_audiomixer+set}" = set; then :
31465  enableval=$enable_audiomixer;
31466      case "${enableval}" in
31467        yes) gst_use_audiomixer=yes ;;
31468        no) gst_use_audiomixer=no ;;
31469        *) as_fn_error $? "bad value ${enableval} for --enable-audiomixer" "$LINENO" 5 ;;
31470       esac
31471
31472else
31473  gst_use_audiomixer=yes
31474fi
31475
31476  if test x$gst_use_audiomixer = xno; then
31477    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiomixer" >&5
31478$as_echo "$as_me: disabling dependency-less plugin audiomixer" >&6;}
31479    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiomixer"
31480  fi
31481
31482
31483    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiomixer " > /dev/null; then
31484    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiomixer"
31485  fi
31486    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiomixer " > /dev/null; then
31487    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiomixer / /'`
31488  fi
31489    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiomixer " > /dev/null; then
31490    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiomixer / /'`
31491  fi
31492   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiomixer " > /dev/null; then
31493  USE_PLUGIN_AUDIOMIXER_TRUE=
31494  USE_PLUGIN_AUDIOMIXER_FALSE='#'
31495else
31496  USE_PLUGIN_AUDIOMIXER_TRUE='#'
31497  USE_PLUGIN_AUDIOMIXER_FALSE=
31498fi
31499
31500
31501
31502  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiorate"
31503
31504
31505
31506  # Check whether --enable-audiorate was given.
31507if test "${enable_audiorate+set}" = set; then :
31508  enableval=$enable_audiorate;
31509      case "${enableval}" in
31510        yes) gst_use_audiorate=yes ;;
31511        no) gst_use_audiorate=no ;;
31512        *) as_fn_error $? "bad value ${enableval} for --enable-audiorate" "$LINENO" 5 ;;
31513       esac
31514
31515else
31516  gst_use_audiorate=yes
31517fi
31518
31519  if test x$gst_use_audiorate = xno; then
31520    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiorate" >&5
31521$as_echo "$as_me: disabling dependency-less plugin audiorate" >&6;}
31522    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiorate"
31523  fi
31524
31525
31526    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiorate " > /dev/null; then
31527    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiorate"
31528  fi
31529    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiorate " > /dev/null; then
31530    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiorate / /'`
31531  fi
31532    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiorate " > /dev/null; then
31533    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiorate / /'`
31534  fi
31535   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiorate " > /dev/null; then
31536  USE_PLUGIN_AUDIORATE_TRUE=
31537  USE_PLUGIN_AUDIORATE_FALSE='#'
31538else
31539  USE_PLUGIN_AUDIORATE_TRUE='#'
31540  USE_PLUGIN_AUDIORATE_FALSE=
31541fi
31542
31543
31544
31545  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiotestsrc"
31546
31547
31548
31549  # Check whether --enable-audiotestsrc was given.
31550if test "${enable_audiotestsrc+set}" = set; then :
31551  enableval=$enable_audiotestsrc;
31552      case "${enableval}" in
31553        yes) gst_use_audiotestsrc=yes ;;
31554        no) gst_use_audiotestsrc=no ;;
31555        *) as_fn_error $? "bad value ${enableval} for --enable-audiotestsrc" "$LINENO" 5 ;;
31556       esac
31557
31558else
31559  gst_use_audiotestsrc=yes
31560fi
31561
31562  if test x$gst_use_audiotestsrc = xno; then
31563    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiotestsrc" >&5
31564$as_echo "$as_me: disabling dependency-less plugin audiotestsrc" >&6;}
31565    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiotestsrc"
31566  fi
31567
31568
31569    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiotestsrc " > /dev/null; then
31570    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiotestsrc"
31571  fi
31572    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiotestsrc " > /dev/null; then
31573    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiotestsrc / /'`
31574  fi
31575    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiotestsrc " > /dev/null; then
31576    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiotestsrc / /'`
31577  fi
31578   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiotestsrc " > /dev/null; then
31579  USE_PLUGIN_AUDIOTESTSRC_TRUE=
31580  USE_PLUGIN_AUDIOTESTSRC_FALSE='#'
31581else
31582  USE_PLUGIN_AUDIOTESTSRC_TRUE='#'
31583  USE_PLUGIN_AUDIOTESTSRC_FALSE=
31584fi
31585
31586
31587
31588  GST_PLUGINS_ALL="$GST_PLUGINS_ALL compositor"
31589
31590
31591
31592  # Check whether --enable-compositor was given.
31593if test "${enable_compositor+set}" = set; then :
31594  enableval=$enable_compositor;
31595      case "${enableval}" in
31596        yes) gst_use_compositor=yes ;;
31597        no) gst_use_compositor=no ;;
31598        *) as_fn_error $? "bad value ${enableval} for --enable-compositor" "$LINENO" 5 ;;
31599       esac
31600
31601else
31602  gst_use_compositor=yes
31603fi
31604
31605  if test x$gst_use_compositor = xno; then
31606    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin compositor" >&5
31607$as_echo "$as_me: disabling dependency-less plugin compositor" >&6;}
31608    WITHOUT_PLUGINS="$WITHOUT_PLUGINS compositor"
31609  fi
31610
31611
31612    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " compositor " > /dev/null; then
31613    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED compositor"
31614  fi
31615    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " compositor " > /dev/null; then
31616    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ compositor / /'`
31617  fi
31618    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " compositor " > /dev/null; then
31619    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ compositor / /'`
31620  fi
31621   if echo " $GST_PLUGINS_SELECTED " | grep -i " compositor " > /dev/null; then
31622  USE_PLUGIN_COMPOSITOR_TRUE=
31623  USE_PLUGIN_COMPOSITOR_FALSE='#'
31624else
31625  USE_PLUGIN_COMPOSITOR_TRUE='#'
31626  USE_PLUGIN_COMPOSITOR_FALSE=
31627fi
31628
31629
31630
31631  GST_PLUGINS_ALL="$GST_PLUGINS_ALL encoding"
31632
31633
31634
31635  # Check whether --enable-encoding was given.
31636if test "${enable_encoding+set}" = set; then :
31637  enableval=$enable_encoding;
31638      case "${enableval}" in
31639        yes) gst_use_encoding=yes ;;
31640        no) gst_use_encoding=no ;;
31641        *) as_fn_error $? "bad value ${enableval} for --enable-encoding" "$LINENO" 5 ;;
31642       esac
31643
31644else
31645  gst_use_encoding=yes
31646fi
31647
31648  if test x$gst_use_encoding = xno; then
31649    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin encoding" >&5
31650$as_echo "$as_me: disabling dependency-less plugin encoding" >&6;}
31651    WITHOUT_PLUGINS="$WITHOUT_PLUGINS encoding"
31652  fi
31653
31654
31655    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " encoding " > /dev/null; then
31656    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED encoding"
31657  fi
31658    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " encoding " > /dev/null; then
31659    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ encoding / /'`
31660  fi
31661    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " encoding " > /dev/null; then
31662    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ encoding / /'`
31663  fi
31664   if echo " $GST_PLUGINS_SELECTED " | grep -i " encoding " > /dev/null; then
31665  USE_PLUGIN_ENCODING_TRUE=
31666  USE_PLUGIN_ENCODING_FALSE='#'
31667else
31668  USE_PLUGIN_ENCODING_TRUE='#'
31669  USE_PLUGIN_ENCODING_FALSE=
31670fi
31671
31672
31673
31674  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videoconvert"
31675
31676
31677
31678  # Check whether --enable-videoconvert was given.
31679if test "${enable_videoconvert+set}" = set; then :
31680  enableval=$enable_videoconvert;
31681      case "${enableval}" in
31682        yes) gst_use_videoconvert=yes ;;
31683        no) gst_use_videoconvert=no ;;
31684        *) as_fn_error $? "bad value ${enableval} for --enable-videoconvert" "$LINENO" 5 ;;
31685       esac
31686
31687else
31688  gst_use_videoconvert=yes
31689fi
31690
31691  if test x$gst_use_videoconvert = xno; then
31692    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videoconvert" >&5
31693$as_echo "$as_me: disabling dependency-less plugin videoconvert" >&6;}
31694    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videoconvert"
31695  fi
31696
31697
31698    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videoconvert " > /dev/null; then
31699    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videoconvert"
31700  fi
31701    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videoconvert " > /dev/null; then
31702    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoconvert / /'`
31703  fi
31704    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videoconvert " > /dev/null; then
31705    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoconvert / /'`
31706  fi
31707   if echo " $GST_PLUGINS_SELECTED " | grep -i " videoconvert " > /dev/null; then
31708  USE_PLUGIN_VIDEOCONVERT_TRUE=
31709  USE_PLUGIN_VIDEOCONVERT_FALSE='#'
31710else
31711  USE_PLUGIN_VIDEOCONVERT_TRUE='#'
31712  USE_PLUGIN_VIDEOCONVERT_FALSE=
31713fi
31714
31715
31716
31717  GST_PLUGINS_ALL="$GST_PLUGINS_ALL gio"
31718
31719
31720
31721  # Check whether --enable-gio was given.
31722if test "${enable_gio+set}" = set; then :
31723  enableval=$enable_gio;
31724      case "${enableval}" in
31725        yes) gst_use_gio=yes ;;
31726        no) gst_use_gio=no ;;
31727        *) as_fn_error $? "bad value ${enableval} for --enable-gio" "$LINENO" 5 ;;
31728       esac
31729
31730else
31731  gst_use_gio=yes
31732fi
31733
31734  if test x$gst_use_gio = xno; then
31735    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin gio" >&5
31736$as_echo "$as_me: disabling dependency-less plugin gio" >&6;}
31737    WITHOUT_PLUGINS="$WITHOUT_PLUGINS gio"
31738  fi
31739
31740
31741    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " gio " > /dev/null; then
31742    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED gio"
31743  fi
31744    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " gio " > /dev/null; then
31745    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gio / /'`
31746  fi
31747    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " gio " > /dev/null; then
31748    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gio / /'`
31749  fi
31750   if echo " $GST_PLUGINS_SELECTED " | grep -i " gio " > /dev/null; then
31751  USE_PLUGIN_GIO_TRUE=
31752  USE_PLUGIN_GIO_FALSE='#'
31753else
31754  USE_PLUGIN_GIO_TRUE='#'
31755  USE_PLUGIN_GIO_FALSE=
31756fi
31757
31758
31759
31760  GST_PLUGINS_ALL="$GST_PLUGINS_ALL overlaycomposition"
31761
31762
31763
31764  # Check whether --enable-overlaycomposition was given.
31765if test "${enable_overlaycomposition+set}" = set; then :
31766  enableval=$enable_overlaycomposition;
31767      case "${enableval}" in
31768        yes) gst_use_overlaycomposition=yes ;;
31769        no) gst_use_overlaycomposition=no ;;
31770        *) as_fn_error $? "bad value ${enableval} for --enable-overlaycomposition" "$LINENO" 5 ;;
31771       esac
31772
31773else
31774  gst_use_overlaycomposition=yes
31775fi
31776
31777  if test x$gst_use_overlaycomposition = xno; then
31778    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin overlaycomposition" >&5
31779$as_echo "$as_me: disabling dependency-less plugin overlaycomposition" >&6;}
31780    WITHOUT_PLUGINS="$WITHOUT_PLUGINS overlaycomposition"
31781  fi
31782
31783
31784    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " overlaycomposition " > /dev/null; then
31785    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED overlaycomposition"
31786  fi
31787    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " overlaycomposition " > /dev/null; then
31788    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ overlaycomposition / /'`
31789  fi
31790    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " overlaycomposition " > /dev/null; then
31791    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ overlaycomposition / /'`
31792  fi
31793   if echo " $GST_PLUGINS_SELECTED " | grep -i " overlaycomposition " > /dev/null; then
31794  USE_PLUGIN_OVERLAYCOMPOSITION_TRUE=
31795  USE_PLUGIN_OVERLAYCOMPOSITION_FALSE='#'
31796else
31797  USE_PLUGIN_OVERLAYCOMPOSITION_TRUE='#'
31798  USE_PLUGIN_OVERLAYCOMPOSITION_FALSE=
31799fi
31800
31801
31802
31803  GST_PLUGINS_ALL="$GST_PLUGINS_ALL playback"
31804
31805
31806
31807  # Check whether --enable-playback was given.
31808if test "${enable_playback+set}" = set; then :
31809  enableval=$enable_playback;
31810      case "${enableval}" in
31811        yes) gst_use_playback=yes ;;
31812        no) gst_use_playback=no ;;
31813        *) as_fn_error $? "bad value ${enableval} for --enable-playback" "$LINENO" 5 ;;
31814       esac
31815
31816else
31817  gst_use_playback=yes
31818fi
31819
31820  if test x$gst_use_playback = xno; then
31821    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin playback" >&5
31822$as_echo "$as_me: disabling dependency-less plugin playback" >&6;}
31823    WITHOUT_PLUGINS="$WITHOUT_PLUGINS playback"
31824  fi
31825
31826
31827    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " playback " > /dev/null; then
31828    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED playback"
31829  fi
31830    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " playback " > /dev/null; then
31831    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ playback / /'`
31832  fi
31833    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " playback " > /dev/null; then
31834    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ playback / /'`
31835  fi
31836   if echo " $GST_PLUGINS_SELECTED " | grep -i " playback " > /dev/null; then
31837  USE_PLUGIN_PLAYBACK_TRUE=
31838  USE_PLUGIN_PLAYBACK_FALSE='#'
31839else
31840  USE_PLUGIN_PLAYBACK_TRUE='#'
31841  USE_PLUGIN_PLAYBACK_FALSE=
31842fi
31843
31844
31845
31846  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audioresample"
31847
31848
31849
31850  # Check whether --enable-audioresample was given.
31851if test "${enable_audioresample+set}" = set; then :
31852  enableval=$enable_audioresample;
31853      case "${enableval}" in
31854        yes) gst_use_audioresample=yes ;;
31855        no) gst_use_audioresample=no ;;
31856        *) as_fn_error $? "bad value ${enableval} for --enable-audioresample" "$LINENO" 5 ;;
31857       esac
31858
31859else
31860  gst_use_audioresample=yes
31861fi
31862
31863  if test x$gst_use_audioresample = xno; then
31864    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audioresample" >&5
31865$as_echo "$as_me: disabling dependency-less plugin audioresample" >&6;}
31866    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audioresample"
31867  fi
31868
31869
31870    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audioresample " > /dev/null; then
31871    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audioresample"
31872  fi
31873    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audioresample " > /dev/null; then
31874    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audioresample / /'`
31875  fi
31876    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audioresample " > /dev/null; then
31877    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audioresample / /'`
31878  fi
31879   if echo " $GST_PLUGINS_SELECTED " | grep -i " audioresample " > /dev/null; then
31880  USE_PLUGIN_AUDIORESAMPLE_TRUE=
31881  USE_PLUGIN_AUDIORESAMPLE_FALSE='#'
31882else
31883  USE_PLUGIN_AUDIORESAMPLE_TRUE='#'
31884  USE_PLUGIN_AUDIORESAMPLE_FALSE=
31885fi
31886
31887
31888
31889  GST_PLUGINS_ALL="$GST_PLUGINS_ALL rawparse"
31890
31891
31892
31893  # Check whether --enable-rawparse was given.
31894if test "${enable_rawparse+set}" = set; then :
31895  enableval=$enable_rawparse;
31896      case "${enableval}" in
31897        yes) gst_use_rawparse=yes ;;
31898        no) gst_use_rawparse=no ;;
31899        *) as_fn_error $? "bad value ${enableval} for --enable-rawparse" "$LINENO" 5 ;;
31900       esac
31901
31902else
31903  gst_use_rawparse=yes
31904fi
31905
31906  if test x$gst_use_rawparse = xno; then
31907    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin rawparse" >&5
31908$as_echo "$as_me: disabling dependency-less plugin rawparse" >&6;}
31909    WITHOUT_PLUGINS="$WITHOUT_PLUGINS rawparse"
31910  fi
31911
31912
31913    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " rawparse " > /dev/null; then
31914    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED rawparse"
31915  fi
31916    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " rawparse " > /dev/null; then
31917    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ rawparse / /'`
31918  fi
31919    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " rawparse " > /dev/null; then
31920    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ rawparse / /'`
31921  fi
31922   if echo " $GST_PLUGINS_SELECTED " | grep -i " rawparse " > /dev/null; then
31923  USE_PLUGIN_RAWPARSE_TRUE=
31924  USE_PLUGIN_RAWPARSE_FALSE='#'
31925else
31926  USE_PLUGIN_RAWPARSE_TRUE='#'
31927  USE_PLUGIN_RAWPARSE_FALSE=
31928fi
31929
31930
31931
31932  GST_PLUGINS_ALL="$GST_PLUGINS_ALL subparse"
31933
31934
31935
31936  # Check whether --enable-subparse was given.
31937if test "${enable_subparse+set}" = set; then :
31938  enableval=$enable_subparse;
31939      case "${enableval}" in
31940        yes) gst_use_subparse=yes ;;
31941        no) gst_use_subparse=no ;;
31942        *) as_fn_error $? "bad value ${enableval} for --enable-subparse" "$LINENO" 5 ;;
31943       esac
31944
31945else
31946  gst_use_subparse=yes
31947fi
31948
31949  if test x$gst_use_subparse = xno; then
31950    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin subparse" >&5
31951$as_echo "$as_me: disabling dependency-less plugin subparse" >&6;}
31952    WITHOUT_PLUGINS="$WITHOUT_PLUGINS subparse"
31953  fi
31954
31955
31956    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " subparse " > /dev/null; then
31957    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED subparse"
31958  fi
31959    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " subparse " > /dev/null; then
31960    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ subparse / /'`
31961  fi
31962    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " subparse " > /dev/null; then
31963    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ subparse / /'`
31964  fi
31965   if echo " $GST_PLUGINS_SELECTED " | grep -i " subparse " > /dev/null; then
31966  USE_PLUGIN_SUBPARSE_TRUE=
31967  USE_PLUGIN_SUBPARSE_FALSE='#'
31968else
31969  USE_PLUGIN_SUBPARSE_TRUE='#'
31970  USE_PLUGIN_SUBPARSE_FALSE=
31971fi
31972
31973
31974
31975  GST_PLUGINS_ALL="$GST_PLUGINS_ALL tcp"
31976
31977
31978
31979  # Check whether --enable-tcp was given.
31980if test "${enable_tcp+set}" = set; then :
31981  enableval=$enable_tcp;
31982      case "${enableval}" in
31983        yes) gst_use_tcp=yes ;;
31984        no) gst_use_tcp=no ;;
31985        *) as_fn_error $? "bad value ${enableval} for --enable-tcp" "$LINENO" 5 ;;
31986       esac
31987
31988else
31989  gst_use_tcp=yes
31990fi
31991
31992  if test x$gst_use_tcp = xno; then
31993    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin tcp" >&5
31994$as_echo "$as_me: disabling dependency-less plugin tcp" >&6;}
31995    WITHOUT_PLUGINS="$WITHOUT_PLUGINS tcp"
31996  fi
31997
31998
31999    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " tcp " > /dev/null; then
32000    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED tcp"
32001  fi
32002    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " tcp " > /dev/null; then
32003    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ tcp / /'`
32004  fi
32005    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " tcp " > /dev/null; then
32006    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ tcp / /'`
32007  fi
32008   if echo " $GST_PLUGINS_SELECTED " | grep -i " tcp " > /dev/null; then
32009  USE_PLUGIN_TCP_TRUE=
32010  USE_PLUGIN_TCP_FALSE='#'
32011else
32012  USE_PLUGIN_TCP_TRUE='#'
32013  USE_PLUGIN_TCP_FALSE=
32014fi
32015
32016
32017
32018  GST_PLUGINS_ALL="$GST_PLUGINS_ALL typefind"
32019
32020
32021
32022  # Check whether --enable-typefind was given.
32023if test "${enable_typefind+set}" = set; then :
32024  enableval=$enable_typefind;
32025      case "${enableval}" in
32026        yes) gst_use_typefind=yes ;;
32027        no) gst_use_typefind=no ;;
32028        *) as_fn_error $? "bad value ${enableval} for --enable-typefind" "$LINENO" 5 ;;
32029       esac
32030
32031else
32032  gst_use_typefind=yes
32033fi
32034
32035  if test x$gst_use_typefind = xno; then
32036    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin typefind" >&5
32037$as_echo "$as_me: disabling dependency-less plugin typefind" >&6;}
32038    WITHOUT_PLUGINS="$WITHOUT_PLUGINS typefind"
32039  fi
32040
32041
32042    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " typefind " > /dev/null; then
32043    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED typefind"
32044  fi
32045    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " typefind " > /dev/null; then
32046    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ typefind / /'`
32047  fi
32048    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " typefind " > /dev/null; then
32049    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ typefind / /'`
32050  fi
32051   if echo " $GST_PLUGINS_SELECTED " | grep -i " typefind " > /dev/null; then
32052  USE_PLUGIN_TYPEFIND_TRUE=
32053  USE_PLUGIN_TYPEFIND_FALSE='#'
32054else
32055  USE_PLUGIN_TYPEFIND_TRUE='#'
32056  USE_PLUGIN_TYPEFIND_FALSE=
32057fi
32058
32059
32060
32061  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videotestsrc"
32062
32063
32064
32065  # Check whether --enable-videotestsrc was given.
32066if test "${enable_videotestsrc+set}" = set; then :
32067  enableval=$enable_videotestsrc;
32068      case "${enableval}" in
32069        yes) gst_use_videotestsrc=yes ;;
32070        no) gst_use_videotestsrc=no ;;
32071        *) as_fn_error $? "bad value ${enableval} for --enable-videotestsrc" "$LINENO" 5 ;;
32072       esac
32073
32074else
32075  gst_use_videotestsrc=yes
32076fi
32077
32078  if test x$gst_use_videotestsrc = xno; then
32079    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videotestsrc" >&5
32080$as_echo "$as_me: disabling dependency-less plugin videotestsrc" >&6;}
32081    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videotestsrc"
32082  fi
32083
32084
32085    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videotestsrc " > /dev/null; then
32086    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videotestsrc"
32087  fi
32088    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videotestsrc " > /dev/null; then
32089    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videotestsrc / /'`
32090  fi
32091    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videotestsrc " > /dev/null; then
32092    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videotestsrc / /'`
32093  fi
32094   if echo " $GST_PLUGINS_SELECTED " | grep -i " videotestsrc " > /dev/null; then
32095  USE_PLUGIN_VIDEOTESTSRC_TRUE=
32096  USE_PLUGIN_VIDEOTESTSRC_FALSE='#'
32097else
32098  USE_PLUGIN_VIDEOTESTSRC_TRUE='#'
32099  USE_PLUGIN_VIDEOTESTSRC_FALSE=
32100fi
32101
32102
32103
32104  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videorate"
32105
32106
32107
32108  # Check whether --enable-videorate was given.
32109if test "${enable_videorate+set}" = set; then :
32110  enableval=$enable_videorate;
32111      case "${enableval}" in
32112        yes) gst_use_videorate=yes ;;
32113        no) gst_use_videorate=no ;;
32114        *) as_fn_error $? "bad value ${enableval} for --enable-videorate" "$LINENO" 5 ;;
32115       esac
32116
32117else
32118  gst_use_videorate=yes
32119fi
32120
32121  if test x$gst_use_videorate = xno; then
32122    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videorate" >&5
32123$as_echo "$as_me: disabling dependency-less plugin videorate" >&6;}
32124    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videorate"
32125  fi
32126
32127
32128    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videorate " > /dev/null; then
32129    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videorate"
32130  fi
32131    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videorate " > /dev/null; then
32132    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videorate / /'`
32133  fi
32134    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videorate " > /dev/null; then
32135    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videorate / /'`
32136  fi
32137   if echo " $GST_PLUGINS_SELECTED " | grep -i " videorate " > /dev/null; then
32138  USE_PLUGIN_VIDEORATE_TRUE=
32139  USE_PLUGIN_VIDEORATE_FALSE='#'
32140else
32141  USE_PLUGIN_VIDEORATE_TRUE='#'
32142  USE_PLUGIN_VIDEORATE_FALSE=
32143fi
32144
32145
32146
32147  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videoscale"
32148
32149
32150
32151  # Check whether --enable-videoscale was given.
32152if test "${enable_videoscale+set}" = set; then :
32153  enableval=$enable_videoscale;
32154      case "${enableval}" in
32155        yes) gst_use_videoscale=yes ;;
32156        no) gst_use_videoscale=no ;;
32157        *) as_fn_error $? "bad value ${enableval} for --enable-videoscale" "$LINENO" 5 ;;
32158       esac
32159
32160else
32161  gst_use_videoscale=yes
32162fi
32163
32164  if test x$gst_use_videoscale = xno; then
32165    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videoscale" >&5
32166$as_echo "$as_me: disabling dependency-less plugin videoscale" >&6;}
32167    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videoscale"
32168  fi
32169
32170
32171    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videoscale " > /dev/null; then
32172    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videoscale"
32173  fi
32174    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videoscale " > /dev/null; then
32175    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoscale / /'`
32176  fi
32177    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videoscale " > /dev/null; then
32178    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoscale / /'`
32179  fi
32180   if echo " $GST_PLUGINS_SELECTED " | grep -i " videoscale " > /dev/null; then
32181  USE_PLUGIN_VIDEOSCALE_TRUE=
32182  USE_PLUGIN_VIDEOSCALE_FALSE='#'
32183else
32184  USE_PLUGIN_VIDEOSCALE_TRUE='#'
32185  USE_PLUGIN_VIDEOSCALE_FALSE=
32186fi
32187
32188
32189
32190  GST_PLUGINS_ALL="$GST_PLUGINS_ALL volume"
32191
32192
32193
32194  # Check whether --enable-volume was given.
32195if test "${enable_volume+set}" = set; then :
32196  enableval=$enable_volume;
32197      case "${enableval}" in
32198        yes) gst_use_volume=yes ;;
32199        no) gst_use_volume=no ;;
32200        *) as_fn_error $? "bad value ${enableval} for --enable-volume" "$LINENO" 5 ;;
32201       esac
32202
32203else
32204  gst_use_volume=yes
32205fi
32206
32207  if test x$gst_use_volume = xno; then
32208    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin volume" >&5
32209$as_echo "$as_me: disabling dependency-less plugin volume" >&6;}
32210    WITHOUT_PLUGINS="$WITHOUT_PLUGINS volume"
32211  fi
32212
32213
32214    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " volume " > /dev/null; then
32215    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED volume"
32216  fi
32217    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " volume " > /dev/null; then
32218    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ volume / /'`
32219  fi
32220    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " volume " > /dev/null; then
32221    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ volume / /'`
32222  fi
32223   if echo " $GST_PLUGINS_SELECTED " | grep -i " volume " > /dev/null; then
32224  USE_PLUGIN_VOLUME_TRUE=
32225  USE_PLUGIN_VOLUME_FALSE='#'
32226else
32227  USE_PLUGIN_VOLUME_TRUE='#'
32228  USE_PLUGIN_VOLUME_FALSE=
32229fi
32230
32231
32232
32233# Check whether --enable-iso-codes was given.
32234if test "${enable_iso_codes+set}" = set; then :
32235  enableval=$enable_iso_codes; case "${enableval}" in
32236  yes) enable_iso_codes=yes ;;
32237  no)  enable_iso_codes=no ;;
32238  *) as_fn_error $? "bad value ${enableval} for --enable-iso-codes" "$LINENO" 5 ;;
32239esac
32240
32241else
32242  enable_iso_codes=yes
32243fi
32244
32245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use iso-codes if they are available" >&5
32246$as_echo_n "checking whether to use iso-codes if they are available... " >&6; }
32247if test "x$enable_iso_codes" = "xyes"; then
32248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32249$as_echo "yes" >&6; }
32250  have_iso_codes=no
32251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iso-codes are available on this system" >&5
32252$as_echo_n "checking whether iso-codes are available on this system... " >&6; }
32253  if $PKG_CONFIG iso-codes; then
32254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32255$as_echo "yes" >&6; }
32256    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iso-codes has iso-639 domain" >&5
32257$as_echo_n "checking whether iso-codes has iso-639 domain... " >&6; }
32258    if $PKG_CONFIG --variable=domains iso-codes | $GREP -q 639 ; then
32259      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32260$as_echo "yes" >&6; }
32261      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iso-codes prefix" >&5
32262$as_echo_n "checking for iso-codes prefix... " >&6; }
32263      ISO_CODES_PREFIX=`$PKG_CONFIG --variable=prefix iso-codes`
32264      if test -d "$ISO_CODES_PREFIX"; then
32265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266$as_echo "yes" >&6; }
32267        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ISO_CODES_PREFIX" >&5
32268$as_echo_n "checking ISO_CODES_PREFIX... " >&6; }
32269        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISO_CODES_PREFIX" >&5
32270$as_echo "$ISO_CODES_PREFIX" >&6; }
32271        ISO_639_DOMAIN="iso_639"
32272        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ISO_639_DOMAIN" >&5
32273$as_echo_n "checking ISO_639_DOMAIN... " >&6; }
32274        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISO_639_DOMAIN" >&5
32275$as_echo "$ISO_639_DOMAIN" >&6; }
32276        have_iso_codes=yes
32277
32278$as_echo "#define HAVE_ISO_CODES 1" >>confdefs.h
32279
32280
32281cat >>confdefs.h <<_ACEOF
32282#define ISO_CODES_PREFIX "$ISO_CODES_PREFIX"
32283_ACEOF
32284
32285        ISO_CODES_VERSION=`$PKG_CONFIG --modversion iso-codes`
32286
32287cat >>confdefs.h <<_ACEOF
32288#define ISO_CODES_VERSION "$ISO_CODES_VERSION"
32289_ACEOF
32290
32291      else
32292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293$as_echo "no" >&6; }
32294      fi
32295    else
32296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32297$as_echo "no" >&6; }
32298    fi
32299  else
32300    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32301$as_echo "no" >&6; }
32302  fi
32303   if test "x$have_iso_codes" = "xyes"; then
32304  USE_ISO_CODES_TRUE=
32305  USE_ISO_CODES_FALSE='#'
32306else
32307  USE_ISO_CODES_TRUE='#'
32308  USE_ISO_CODES_FALSE=
32309fi
32310
32311else
32312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled via --disable-iso-codes)" >&5
32313$as_echo "no (disabled via --disable-iso-codes)" >&6; }
32314   if false; then
32315  USE_ISO_CODES_TRUE=
32316  USE_ISO_CODES_FALSE='#'
32317else
32318  USE_ISO_CODES_TRUE='#'
32319  USE_ISO_CODES_FALSE=
32320fi
32321
32322fi
32323
32324echo
32325{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: zlib support for ID3 parsing in libgsttag ***" >&5
32326$as_echo "$as_me: *** checking feature: zlib support for ID3 parsing in libgsttag ***" >&6;}
32327if test "x" != "x"
32328then
32329  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
32330$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
32331fi
32332NOUSE=
32333if test "x$USE_ZLIB" = "xno"; then
32334  NOUSE="yes"
32335fi
32336# Check whether --enable-zlib was given.
32337if test "${enable_zlib+set}" = set; then :
32338  enableval=$enable_zlib;  case "${enableval}" in
32339      yes) USE_ZLIB=yes;;
32340      no) USE_ZLIB=no;;
32341      *) as_fn_error $? "bad value ${enableval} for --enable-zlib" "$LINENO" 5 ;;
32342    esac
32343else
32344   USE_ZLIB=yes
32345fi
32346
32347if test "x$NOUSE" = "xyes"; then
32348  USE_ZLIB="no"
32349  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
32350$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
32351fi
32352NOUSE=
32353
32354if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ZLIB " > /dev/null; then
32355  USE_ZLIB="no"
32356  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
32357$as_echo "$as_me: WARNING: ***  not ported" >&2;}
32358fi
32359
32360
32361if test x$USE_ZLIB = xyes; then
32362
32363  gst_check_save_LIBS=$LIBS
32364  gst_check_save_LDFLAGS=$LDFLAGS
32365  gst_check_save_CFLAGS=$CFLAGS
32366  gst_check_save_CPPFLAGS=$CPPFLAGS
32367  gst_check_save_CXXFLAGS=$CXXFLAGS
32368
32369  HAVE_ZLIB=no
32370
32371
32372pkg_failed=no
32373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
32374$as_echo_n "checking for ZLIB... " >&6; }
32375
32376if test -n "$PKG_CONFIG"; then
32377    if test -n "$ZLIB_CFLAGS"; then
32378        pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
32379    else
32380        if test -n "$PKG_CONFIG" && \
32381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" zlib \""; } >&5
32382  ($PKG_CONFIG --exists --print-errors " zlib ") 2>&5
32383  ac_status=$?
32384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32385  test $ac_status = 0; }; then
32386  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags " zlib " 2>/dev/null`
32387else
32388  pkg_failed=yes
32389fi
32390    fi
32391else
32392	pkg_failed=untried
32393fi
32394if test -n "$PKG_CONFIG"; then
32395    if test -n "$ZLIB_LIBS"; then
32396        pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
32397    else
32398        if test -n "$PKG_CONFIG" && \
32399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" zlib \""; } >&5
32400  ($PKG_CONFIG --exists --print-errors " zlib ") 2>&5
32401  ac_status=$?
32402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32403  test $ac_status = 0; }; then
32404  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs " zlib " 2>/dev/null`
32405else
32406  pkg_failed=yes
32407fi
32408    fi
32409else
32410	pkg_failed=untried
32411fi
32412
32413
32414
32415if test $pkg_failed = yes; then
32416
32417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32418        _pkg_short_errors_supported=yes
32419else
32420        _pkg_short_errors_supported=no
32421fi
32422        if test $_pkg_short_errors_supported = yes; then
32423	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " zlib "`
32424        else
32425	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " zlib "`
32426        fi
32427	# Put the nasty error message in config.log where it belongs
32428	echo "$ZLIB_PKG_ERRORS" >&5
32429
32430	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32431$as_echo "no" >&6; }
32432
32433
32434  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
32435$as_echo_n "checking for uncompress in -lz... " >&6; }
32436if ${ac_cv_lib_z_uncompress+:} false; then :
32437  $as_echo_n "(cached) " >&6
32438else
32439  ac_check_lib_save_LIBS=$LIBS
32440LIBS="-lz  $LIBS"
32441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32442/* end confdefs.h.  */
32443
32444/* Override any GCC internal prototype to avoid an error.
32445   Use char because int might match the return type of a GCC
32446   builtin and then its argument prototype would still apply.  */
32447#ifdef __cplusplus
32448extern "C"
32449#endif
32450char uncompress ();
32451int
32452main ()
32453{
32454return uncompress ();
32455  ;
32456  return 0;
32457}
32458_ACEOF
32459if ac_fn_c_try_link "$LINENO"; then :
32460  ac_cv_lib_z_uncompress=yes
32461else
32462  ac_cv_lib_z_uncompress=no
32463fi
32464rm -f core conftest.err conftest.$ac_objext \
32465    conftest$ac_exeext conftest.$ac_ext
32466LIBS=$ac_check_lib_save_LIBS
32467fi
32468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
32469$as_echo "$ac_cv_lib_z_uncompress" >&6; }
32470if test "x$ac_cv_lib_z_uncompress" = xyes; then :
32471  HAVE_ZLIB=yes
32472else
32473  HAVE_ZLIB=no
32474fi
32475
32476  if test "x$HAVE_ZLIB" = "xyes"; then
32477    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
32478if test "x$ac_cv_header_zlib_h" = xyes; then :
32479  :
32480else
32481  HAVE_ZLIB=no
32482fi
32483
32484
32485    if test "x$HAVE_ZLIB" = "xyes"; then
32486
32487        HAVE_ZLIB="yes"
32488        ZLIB_LIBS="-lz"
32489
32490
32491    else
32492      :
32493    fi
32494  else
32495    :
32496  fi
32497
32498
32499
32500
32501elif test $pkg_failed = untried; then
32502
32503
32504  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
32505$as_echo_n "checking for uncompress in -lz... " >&6; }
32506if ${ac_cv_lib_z_uncompress+:} false; then :
32507  $as_echo_n "(cached) " >&6
32508else
32509  ac_check_lib_save_LIBS=$LIBS
32510LIBS="-lz  $LIBS"
32511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32512/* end confdefs.h.  */
32513
32514/* Override any GCC internal prototype to avoid an error.
32515   Use char because int might match the return type of a GCC
32516   builtin and then its argument prototype would still apply.  */
32517#ifdef __cplusplus
32518extern "C"
32519#endif
32520char uncompress ();
32521int
32522main ()
32523{
32524return uncompress ();
32525  ;
32526  return 0;
32527}
32528_ACEOF
32529if ac_fn_c_try_link "$LINENO"; then :
32530  ac_cv_lib_z_uncompress=yes
32531else
32532  ac_cv_lib_z_uncompress=no
32533fi
32534rm -f core conftest.err conftest.$ac_objext \
32535    conftest$ac_exeext conftest.$ac_ext
32536LIBS=$ac_check_lib_save_LIBS
32537fi
32538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
32539$as_echo "$ac_cv_lib_z_uncompress" >&6; }
32540if test "x$ac_cv_lib_z_uncompress" = xyes; then :
32541  HAVE_ZLIB=yes
32542else
32543  HAVE_ZLIB=no
32544fi
32545
32546  if test "x$HAVE_ZLIB" = "xyes"; then
32547    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
32548if test "x$ac_cv_header_zlib_h" = xyes; then :
32549  :
32550else
32551  HAVE_ZLIB=no
32552fi
32553
32554
32555    if test "x$HAVE_ZLIB" = "xyes"; then
32556
32557        HAVE_ZLIB="yes"
32558        ZLIB_LIBS="-lz"
32559
32560
32561    else
32562      :
32563    fi
32564  else
32565    :
32566  fi
32567
32568
32569
32570
32571else
32572	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
32573	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
32574        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32575$as_echo "yes" >&6; }
32576
32577      HAVE_ZLIB="yes"
32578
32579fi
32580
32581
32582  LIBS=$gst_check_save_LIBS
32583  LDFLAGS=$gst_check_save_LDFLAGS
32584  CFLAGS=$gst_check_save_CFLAGS
32585  CPPFLAGS=$gst_check_save_CPPFLAGS
32586  CXXFLAGS=$gst_check_save_CXXFLAGS
32587
32588    if test x$HAVE_ZLIB = xno; then
32589    USE_ZLIB=no
32590  else
32591    :
32592  fi
32593fi
32594if test x$USE_ZLIB = xyes; then
32595  :
32596  if test "x" != "x"; then
32597    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
32598  fi
32599
32600$as_echo "#define HAVE_ZLIB /**/" >>confdefs.h
32601
32602else
32603  :
32604  if test "x" != "x"; then
32605    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
32606  fi
32607  :
32608fi
32609 if test x$USE_ZLIB = xyes; then
32610  USE_ZLIB_TRUE=
32611  USE_ZLIB_FALSE='#'
32612else
32613  USE_ZLIB_TRUE='#'
32614  USE_ZLIB_FALSE=
32615fi
32616
32617
32618
32619
32620echo
32621{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking libraries for plugins in sys/" >&5
32622$as_echo "$as_me: Checking libraries for plugins in sys/" >&6;}
32623echo
32624
32625echo
32626{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: X libraries and plugins ***" >&5
32627$as_echo "$as_me: *** checking feature: X libraries and plugins ***" >&6;}
32628if test "xximagesink" != "x"
32629then
32630  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ximagesink ***" >&5
32631$as_echo "$as_me: *** for plug-ins: ximagesink ***" >&6;}
32632fi
32633NOUSE=
32634if test "x$USE_X" = "xno"; then
32635  NOUSE="yes"
32636fi
32637# Check whether --enable-x was given.
32638if test "${enable_x+set}" = set; then :
32639  enableval=$enable_x;  case "${enableval}" in
32640      yes) USE_X=yes;;
32641      no) USE_X=no;;
32642      *) as_fn_error $? "bad value ${enableval} for --enable-x" "$LINENO" 5 ;;
32643    esac
32644else
32645   USE_X=yes
32646fi
32647
32648if test "x$NOUSE" = "xyes"; then
32649  USE_X="no"
32650  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ximagesink pre-configured not to be built" >&5
32651$as_echo "$as_me: WARNING: *** ximagesink pre-configured not to be built" >&2;}
32652fi
32653NOUSE=
32654
32655if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " X " > /dev/null; then
32656  USE_X="no"
32657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ximagesink not ported" >&5
32658$as_echo "$as_me: WARNING: *** ximagesink not ported" >&2;}
32659fi
32660
32661
32662if test x$USE_X = xyes; then
32663
32664  gst_check_save_LIBS=$LIBS
32665  gst_check_save_LDFLAGS=$LDFLAGS
32666  gst_check_save_CFLAGS=$CFLAGS
32667  gst_check_save_CPPFLAGS=$CPPFLAGS
32668  gst_check_save_CXXFLAGS=$CXXFLAGS
32669
32670  HAVE_X=no
32671
32672
32673  which="x11"
32674    required="no"
32675
32676
32677pkg_failed=no
32678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
32679$as_echo_n "checking for X... " >&6; }
32680
32681if test -n "$PKG_CONFIG"; then
32682    if test -n "$X_CFLAGS"; then
32683        pkg_cv_X_CFLAGS="$X_CFLAGS"
32684    else
32685        if test -n "$PKG_CONFIG" && \
32686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
32687  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
32688  ac_status=$?
32689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32690  test $ac_status = 0; }; then
32691  pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
32692else
32693  pkg_failed=yes
32694fi
32695    fi
32696else
32697	pkg_failed=untried
32698fi
32699if test -n "$PKG_CONFIG"; then
32700    if test -n "$X_LIBS"; then
32701        pkg_cv_X_LIBS="$X_LIBS"
32702    else
32703        if test -n "$PKG_CONFIG" && \
32704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
32705  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
32706  ac_status=$?
32707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32708  test $ac_status = 0; }; then
32709  pkg_cv_X_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
32710else
32711  pkg_failed=yes
32712fi
32713    fi
32714else
32715	pkg_failed=untried
32716fi
32717
32718
32719
32720if test $pkg_failed = yes; then
32721
32722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32723        _pkg_short_errors_supported=yes
32724else
32725        _pkg_short_errors_supported=no
32726fi
32727        if test $_pkg_short_errors_supported = yes; then
32728	        X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
32729        else
32730	        X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
32731        fi
32732	# Put the nasty error message in config.log where it belongs
32733	echo "$X_PKG_ERRORS" >&5
32734
32735	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32736$as_echo "no" >&6; }
32737
32738      HAVE_X="no"
32739      if test "x$required" = "xyes"; then
32740        as_fn_error $? "$X_PKG_ERRORS" "$LINENO" 5
32741      else
32742        { $as_echo "$as_me:${as_lineno-$LINENO}: $X_PKG_ERRORS" >&5
32743$as_echo "$as_me: $X_PKG_ERRORS" >&6;}
32744      fi
32745
32746elif test $pkg_failed = untried; then
32747
32748      HAVE_X="no"
32749      if test "x$required" = "xyes"; then
32750        as_fn_error $? "$X_PKG_ERRORS" "$LINENO" 5
32751      else
32752        { $as_echo "$as_me:${as_lineno-$LINENO}: $X_PKG_ERRORS" >&5
32753$as_echo "$as_me: $X_PKG_ERRORS" >&6;}
32754      fi
32755
32756else
32757	X_CFLAGS=$pkg_cv_X_CFLAGS
32758	X_LIBS=$pkg_cv_X_LIBS
32759        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32760$as_echo "yes" >&6; }
32761
32762      HAVE_X="yes"
32763
32764fi
32765
32766
32767
32768
32769  LIBS=$gst_check_save_LIBS
32770  LDFLAGS=$gst_check_save_LDFLAGS
32771  CFLAGS=$gst_check_save_CFLAGS
32772  CPPFLAGS=$gst_check_save_CPPFLAGS
32773  CXXFLAGS=$gst_check_save_CXXFLAGS
32774
32775    if test x$HAVE_X = xno; then
32776    USE_X=no
32777  else
32778    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ximagesink" >&5
32779$as_echo "$as_me: *** These plugins will be built: ximagesink" >&6;}
32780  fi
32781fi
32782if test x$USE_X = xyes; then
32783  :
32784  if test "xximagesink" != "x"; then
32785    GST_PLUGINS_YES="\tximagesink\n$GST_PLUGINS_YES"
32786  fi
32787
32788$as_echo "#define HAVE_X /**/" >>confdefs.h
32789
32790else
32791  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ximagesink" >&5
32792$as_echo "$as_me: *** These plugins will not be built: ximagesink" >&6;}
32793  if test "xximagesink" != "x"; then
32794    GST_PLUGINS_NO="\tximagesink\n$GST_PLUGINS_NO"
32795  fi
32796  :
32797fi
32798 if test x$USE_X = xyes; then
32799  USE_X_TRUE=
32800  USE_X_FALSE='#'
32801else
32802  USE_X_TRUE='#'
32803  USE_X_FALSE=
32804fi
32805
32806
32807
32808echo
32809{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: X11 XVideo extensions ***" >&5
32810$as_echo "$as_me: *** checking feature: X11 XVideo extensions ***" >&6;}
32811if test "xxvimagesink" != "x"
32812then
32813  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: xvimagesink ***" >&5
32814$as_echo "$as_me: *** for plug-ins: xvimagesink ***" >&6;}
32815fi
32816NOUSE=
32817if test "x$USE_XVIDEO" = "xno"; then
32818  NOUSE="yes"
32819fi
32820# Check whether --enable-xvideo was given.
32821if test "${enable_xvideo+set}" = set; then :
32822  enableval=$enable_xvideo;  case "${enableval}" in
32823      yes) USE_XVIDEO=yes;;
32824      no) USE_XVIDEO=no;;
32825      *) as_fn_error $? "bad value ${enableval} for --enable-xvideo" "$LINENO" 5 ;;
32826    esac
32827else
32828   USE_XVIDEO=yes
32829fi
32830
32831if test "x$NOUSE" = "xyes"; then
32832  USE_XVIDEO="no"
32833  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** xvimagesink pre-configured not to be built" >&5
32834$as_echo "$as_me: WARNING: *** xvimagesink pre-configured not to be built" >&2;}
32835fi
32836NOUSE=
32837
32838if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " XVIDEO " > /dev/null; then
32839  USE_XVIDEO="no"
32840  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** xvimagesink not ported" >&5
32841$as_echo "$as_me: WARNING: *** xvimagesink not ported" >&2;}
32842fi
32843
32844
32845if test x$USE_XVIDEO = xyes; then
32846
32847  gst_check_save_LIBS=$LIBS
32848  gst_check_save_LDFLAGS=$LDFLAGS
32849  gst_check_save_CFLAGS=$CFLAGS
32850  gst_check_save_CPPFLAGS=$CPPFLAGS
32851  gst_check_save_CXXFLAGS=$CXXFLAGS
32852
32853  HAVE_XVIDEO=no
32854
32855
32856  which="x11 xv"
32857    required="no"
32858
32859
32860pkg_failed=no
32861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVIDEO" >&5
32862$as_echo_n "checking for XVIDEO... " >&6; }
32863
32864if test -n "$PKG_CONFIG"; then
32865    if test -n "$XVIDEO_CFLAGS"; then
32866        pkg_cv_XVIDEO_CFLAGS="$XVIDEO_CFLAGS"
32867    else
32868        if test -n "$PKG_CONFIG" && \
32869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
32870  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
32871  ac_status=$?
32872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32873  test $ac_status = 0; }; then
32874  pkg_cv_XVIDEO_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
32875else
32876  pkg_failed=yes
32877fi
32878    fi
32879else
32880	pkg_failed=untried
32881fi
32882if test -n "$PKG_CONFIG"; then
32883    if test -n "$XVIDEO_LIBS"; then
32884        pkg_cv_XVIDEO_LIBS="$XVIDEO_LIBS"
32885    else
32886        if test -n "$PKG_CONFIG" && \
32887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
32888  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
32889  ac_status=$?
32890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32891  test $ac_status = 0; }; then
32892  pkg_cv_XVIDEO_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
32893else
32894  pkg_failed=yes
32895fi
32896    fi
32897else
32898	pkg_failed=untried
32899fi
32900
32901
32902
32903if test $pkg_failed = yes; then
32904
32905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32906        _pkg_short_errors_supported=yes
32907else
32908        _pkg_short_errors_supported=no
32909fi
32910        if test $_pkg_short_errors_supported = yes; then
32911	        XVIDEO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
32912        else
32913	        XVIDEO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
32914        fi
32915	# Put the nasty error message in config.log where it belongs
32916	echo "$XVIDEO_PKG_ERRORS" >&5
32917
32918	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32919$as_echo "no" >&6; }
32920
32921      HAVE_XVIDEO="no"
32922      if test "x$required" = "xyes"; then
32923        as_fn_error $? "$XVIDEO_PKG_ERRORS" "$LINENO" 5
32924      else
32925        { $as_echo "$as_me:${as_lineno-$LINENO}: $XVIDEO_PKG_ERRORS" >&5
32926$as_echo "$as_me: $XVIDEO_PKG_ERRORS" >&6;}
32927      fi
32928
32929elif test $pkg_failed = untried; then
32930
32931      HAVE_XVIDEO="no"
32932      if test "x$required" = "xyes"; then
32933        as_fn_error $? "$XVIDEO_PKG_ERRORS" "$LINENO" 5
32934      else
32935        { $as_echo "$as_me:${as_lineno-$LINENO}: $XVIDEO_PKG_ERRORS" >&5
32936$as_echo "$as_me: $XVIDEO_PKG_ERRORS" >&6;}
32937      fi
32938
32939else
32940	XVIDEO_CFLAGS=$pkg_cv_XVIDEO_CFLAGS
32941	XVIDEO_LIBS=$pkg_cv_XVIDEO_LIBS
32942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32943$as_echo "yes" >&6; }
32944
32945      HAVE_XVIDEO="yes"
32946
32947fi
32948
32949
32950
32951
32952  LIBS=$gst_check_save_LIBS
32953  LDFLAGS=$gst_check_save_LDFLAGS
32954  CFLAGS=$gst_check_save_CFLAGS
32955  CPPFLAGS=$gst_check_save_CPPFLAGS
32956  CXXFLAGS=$gst_check_save_CXXFLAGS
32957
32958    if test x$HAVE_XVIDEO = xno; then
32959    USE_XVIDEO=no
32960  else
32961    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: xvimagesink" >&5
32962$as_echo "$as_me: *** These plugins will be built: xvimagesink" >&6;}
32963  fi
32964fi
32965if test x$USE_XVIDEO = xyes; then
32966  :
32967  if test "xxvimagesink" != "x"; then
32968    GST_PLUGINS_YES="\txvimagesink\n$GST_PLUGINS_YES"
32969  fi
32970
32971$as_echo "#define HAVE_XVIDEO /**/" >>confdefs.h
32972
32973else
32974  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: xvimagesink" >&5
32975$as_echo "$as_me: *** These plugins will not be built: xvimagesink" >&6;}
32976  if test "xxvimagesink" != "x"; then
32977    GST_PLUGINS_NO="\txvimagesink\n$GST_PLUGINS_NO"
32978  fi
32979  :
32980fi
32981 if test x$USE_XVIDEO = xyes; then
32982  USE_XVIDEO_TRUE=
32983  USE_XVIDEO_FALSE='#'
32984else
32985  USE_XVIDEO_TRUE='#'
32986  USE_XVIDEO_FALSE=
32987fi
32988
32989
32990
32991echo
32992{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: X Shared Memory extension ***" >&5
32993$as_echo "$as_me: *** checking feature: X Shared Memory extension ***" >&6;}
32994if test "x " != "x"
32995then
32996  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:   ***" >&5
32997$as_echo "$as_me: *** for plug-ins:   ***" >&6;}
32998fi
32999NOUSE=
33000if test "x$USE_XSHM" = "xno"; then
33001  NOUSE="yes"
33002fi
33003# Check whether --enable-xshm was given.
33004if test "${enable_xshm+set}" = set; then :
33005  enableval=$enable_xshm;  case "${enableval}" in
33006      yes) USE_XSHM=yes;;
33007      no) USE_XSHM=no;;
33008      *) as_fn_error $? "bad value ${enableval} for --enable-xshm" "$LINENO" 5 ;;
33009    esac
33010else
33011   USE_XSHM=yes
33012fi
33013
33014if test "x$NOUSE" = "xyes"; then
33015  USE_XSHM="no"
33016  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***   pre-configured not to be built" >&5
33017$as_echo "$as_me: WARNING: ***   pre-configured not to be built" >&2;}
33018fi
33019NOUSE=
33020
33021if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " XSHM " > /dev/null; then
33022  USE_XSHM="no"
33023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***   not ported" >&5
33024$as_echo "$as_me: WARNING: ***   not ported" >&2;}
33025fi
33026
33027
33028if test x$USE_XSHM = xyes; then
33029
33030  gst_check_save_LIBS=$LIBS
33031  gst_check_save_LDFLAGS=$LDFLAGS
33032  gst_check_save_CFLAGS=$CFLAGS
33033  gst_check_save_CPPFLAGS=$CPPFLAGS
33034  gst_check_save_CXXFLAGS=$CXXFLAGS
33035
33036  HAVE_XSHM=no
33037
33038  if test x$HAVE_X = xyes; then
33039
33040pkg_failed=no
33041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHM" >&5
33042$as_echo_n "checking for XSHM... " >&6; }
33043
33044if test -n "$PKG_CONFIG"; then
33045    if test -n "$XSHM_CFLAGS"; then
33046        pkg_cv_XSHM_CFLAGS="$XSHM_CFLAGS"
33047    else
33048        if test -n "$PKG_CONFIG" && \
33049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
33050  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
33051  ac_status=$?
33052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33053  test $ac_status = 0; }; then
33054  pkg_cv_XSHM_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
33055else
33056  pkg_failed=yes
33057fi
33058    fi
33059else
33060	pkg_failed=untried
33061fi
33062if test -n "$PKG_CONFIG"; then
33063    if test -n "$XSHM_LIBS"; then
33064        pkg_cv_XSHM_LIBS="$XSHM_LIBS"
33065    else
33066        if test -n "$PKG_CONFIG" && \
33067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
33068  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
33069  ac_status=$?
33070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33071  test $ac_status = 0; }; then
33072  pkg_cv_XSHM_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
33073else
33074  pkg_failed=yes
33075fi
33076    fi
33077else
33078	pkg_failed=untried
33079fi
33080
33081
33082
33083if test $pkg_failed = yes; then
33084
33085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33086        _pkg_short_errors_supported=yes
33087else
33088        _pkg_short_errors_supported=no
33089fi
33090        if test $_pkg_short_errors_supported = yes; then
33091	        XSHM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
33092        else
33093	        XSHM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
33094        fi
33095	# Put the nasty error message in config.log where it belongs
33096	echo "$XSHM_PKG_ERRORS" >&5
33097
33098	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33099$as_echo "no" >&6; }
33100
33101      HAVE_XSHM="no"
33102
33103elif test $pkg_failed = untried; then
33104
33105      HAVE_XSHM="no"
33106
33107else
33108	XSHM_CFLAGS=$pkg_cv_XSHM_CFLAGS
33109	XSHM_LIBS=$pkg_cv_XSHM_LIBS
33110        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33111$as_echo "yes" >&6; }
33112
33113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
33114$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
33115if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
33116  $as_echo_n "(cached) " >&6
33117else
33118  ac_check_lib_save_LIBS=$LIBS
33119LIBS="-lXext  $X_LIBS  $LIBS"
33120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33121/* end confdefs.h.  */
33122
33123/* Override any GCC internal prototype to avoid an error.
33124   Use char because int might match the return type of a GCC
33125   builtin and then its argument prototype would still apply.  */
33126#ifdef __cplusplus
33127extern "C"
33128#endif
33129char XShmAttach ();
33130int
33131main ()
33132{
33133return XShmAttach ();
33134  ;
33135  return 0;
33136}
33137_ACEOF
33138if ac_fn_c_try_link "$LINENO"; then :
33139  ac_cv_lib_Xext_XShmAttach=yes
33140else
33141  ac_cv_lib_Xext_XShmAttach=no
33142fi
33143rm -f core conftest.err conftest.$ac_objext \
33144    conftest$ac_exeext conftest.$ac_ext
33145LIBS=$ac_check_lib_save_LIBS
33146fi
33147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
33148$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
33149if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
33150
33151        HAVE_XSHM="yes"
33152
33153else
33154
33155        HAVE_XSHM="no"
33156        XSHM_LIBS=""
33157
33158fi
33159
33160
33161fi
33162  fi
33163
33164
33165  LIBS=$gst_check_save_LIBS
33166  LDFLAGS=$gst_check_save_LDFLAGS
33167  CFLAGS=$gst_check_save_CFLAGS
33168  CPPFLAGS=$gst_check_save_CPPFLAGS
33169  CXXFLAGS=$gst_check_save_CXXFLAGS
33170
33171    if test x$HAVE_XSHM = xno; then
33172    USE_XSHM=no
33173  else
33174    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built:  " >&5
33175$as_echo "$as_me: *** These plugins will be built:  " >&6;}
33176  fi
33177fi
33178if test x$USE_XSHM = xyes; then
33179
33180
33181
33182
33183  if test "x " != "x"; then
33184    GST_PLUGINS_YES="\t \n$GST_PLUGINS_YES"
33185  fi
33186
33187$as_echo "#define HAVE_XSHM /**/" >>confdefs.h
33188
33189else
33190  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built:  " >&5
33191$as_echo "$as_me: *** These plugins will not be built:  " >&6;}
33192  if test "x " != "x"; then
33193    GST_PLUGINS_NO="\t \n$GST_PLUGINS_NO"
33194  fi
33195  :
33196fi
33197 if test x$USE_XSHM = xyes; then
33198  USE_XSHM_TRUE=
33199  USE_XSHM_FALSE='#'
33200else
33201  USE_XSHM_TRUE='#'
33202  USE_XSHM_FALSE=
33203fi
33204
33205
33206
33207
33208if test "x$BUILD_EXTERNAL" = "xyes"; then
33209
33210echo
33211{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking libraries for plugins in ext/" >&5
33212$as_echo "$as_me: Checking libraries for plugins in ext/" >&6;}
33213echo
33214
33215echo
33216{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: ALSA ***" >&5
33217$as_echo "$as_me: *** checking feature: ALSA ***" >&6;}
33218if test "xalsa" != "x"
33219then
33220  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: alsa ***" >&5
33221$as_echo "$as_me: *** for plug-ins: alsa ***" >&6;}
33222fi
33223NOUSE=
33224if test "x$USE_ALSA" = "xno"; then
33225  NOUSE="yes"
33226fi
33227# Check whether --enable-alsa was given.
33228if test "${enable_alsa+set}" = set; then :
33229  enableval=$enable_alsa;  case "${enableval}" in
33230      yes) USE_ALSA=yes;;
33231      no) USE_ALSA=no;;
33232      *) as_fn_error $? "bad value ${enableval} for --enable-alsa" "$LINENO" 5 ;;
33233    esac
33234else
33235   USE_ALSA=yes
33236fi
33237
33238if test "x$NOUSE" = "xyes"; then
33239  USE_ALSA="no"
33240  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** alsa pre-configured not to be built" >&5
33241$as_echo "$as_me: WARNING: *** alsa pre-configured not to be built" >&2;}
33242fi
33243NOUSE=
33244
33245if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ALSA " > /dev/null; then
33246  USE_ALSA="no"
33247  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** alsa not ported" >&5
33248$as_echo "$as_me: WARNING: *** alsa not ported" >&2;}
33249fi
33250
33251
33252if test x$USE_ALSA = xyes; then
33253
33254  gst_check_save_LIBS=$LIBS
33255  gst_check_save_LDFLAGS=$LDFLAGS
33256  gst_check_save_CFLAGS=$CFLAGS
33257  gst_check_save_CPPFLAGS=$CPPFLAGS
33258  gst_check_save_CXXFLAGS=$CXXFLAGS
33259
33260  HAVE_ALSA=no
33261
33262
33263pkg_failed=no
33264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
33265$as_echo_n "checking for ALSA... " >&6; }
33266
33267if test -n "$PKG_CONFIG"; then
33268    if test -n "$ALSA_CFLAGS"; then
33269        pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
33270    else
33271        if test -n "$PKG_CONFIG" && \
33272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9.1\""; } >&5
33273  ($PKG_CONFIG --exists --print-errors "alsa >= 0.9.1") 2>&5
33274  ac_status=$?
33275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33276  test $ac_status = 0; }; then
33277  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9.1" 2>/dev/null`
33278else
33279  pkg_failed=yes
33280fi
33281    fi
33282else
33283	pkg_failed=untried
33284fi
33285if test -n "$PKG_CONFIG"; then
33286    if test -n "$ALSA_LIBS"; then
33287        pkg_cv_ALSA_LIBS="$ALSA_LIBS"
33288    else
33289        if test -n "$PKG_CONFIG" && \
33290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 0.9.1\""; } >&5
33291  ($PKG_CONFIG --exists --print-errors "alsa >= 0.9.1") 2>&5
33292  ac_status=$?
33293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33294  test $ac_status = 0; }; then
33295  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9.1" 2>/dev/null`
33296else
33297  pkg_failed=yes
33298fi
33299    fi
33300else
33301	pkg_failed=untried
33302fi
33303
33304
33305
33306if test $pkg_failed = yes; then
33307
33308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33309        _pkg_short_errors_supported=yes
33310else
33311        _pkg_short_errors_supported=no
33312fi
33313        if test $_pkg_short_errors_supported = yes; then
33314	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 0.9.1"`
33315        else
33316	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9.1"`
33317        fi
33318	# Put the nasty error message in config.log where it belongs
33319	echo "$ALSA_PKG_ERRORS" >&5
33320
33321	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33322$as_echo "no" >&6; }
33323
33324    alsa_save_CFLAGS="$CFLAGS"
33325alsa_save_LDFLAGS="$LDFLAGS"
33326alsa_save_LIBS="$LIBS"
33327alsa_found=yes
33328
33329
33330# Check whether --with-alsa-prefix was given.
33331if test "${with_alsa_prefix+set}" = set; then :
33332  withval=$with_alsa_prefix; alsa_prefix="$withval"
33333else
33334  alsa_prefix=""
33335fi
33336
33337
33338
33339# Check whether --with-alsa-inc-prefix was given.
33340if test "${with_alsa_inc_prefix+set}" = set; then :
33341  withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
33342else
33343  alsa_inc_prefix=""
33344fi
33345
33346
33347
33348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
33349$as_echo_n "checking for ALSA CFLAGS... " >&6; }
33350if test "$alsa_inc_prefix" != "" ; then
33351	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
33352	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
33353fi
33354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
33355$as_echo "$ALSA_CFLAGS" >&6; }
33356
33357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
33358$as_echo_n "checking for ALSA LDFLAGS... " >&6; }
33359if test "$alsa_prefix" != "" ; then
33360	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
33361	LDFLAGS="$LDFLAGS $ALSA_LIBS"
33362fi
33363
33364ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
33365LIBS=`echo $LIBS | sed 's/-lm//'`
33366LIBS=`echo $LIBS | sed 's/-ldl//'`
33367LIBS=`echo $LIBS | sed 's/-lpthread//'`
33368LIBS=`echo $LIBS | sed 's/  //'`
33369LIBS="$ALSA_LIBS $LIBS"
33370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
33371$as_echo "$ALSA_LIBS" >&6; }
33372
33373min_alsa_version=0.9.1
33374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
33375$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
33376no_alsa=""
33377    alsa_min_major_version=`echo $min_alsa_version | \
33378           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33379    alsa_min_minor_version=`echo $min_alsa_version | \
33380           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33381    alsa_min_micro_version=`echo $min_alsa_version | \
33382           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33383
33384
33385ac_ext=c
33386ac_cpp='$CPP $CPPFLAGS'
33387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33389ac_compiler_gnu=$ac_cv_c_compiler_gnu
33390
33391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33392/* end confdefs.h.  */
33393
33394#include <alsa/asoundlib.h>
33395
33396int
33397main ()
33398{
33399
33400void main(void)
33401{
33402/* ensure backward compatibility */
33403#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
33404#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
33405#endif
33406#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
33407#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
33408#endif
33409#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
33410#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
33411#endif
33412
33413#  if(SND_LIB_MAJOR > $alsa_min_major_version)
33414  exit(0);
33415#  else
33416#    if(SND_LIB_MAJOR < $alsa_min_major_version)
33417#       error not present
33418#    endif
33419
33420#   if(SND_LIB_MINOR > $alsa_min_minor_version)
33421  exit(0);
33422#   else
33423#     if(SND_LIB_MINOR < $alsa_min_minor_version)
33424#          error not present
33425#      endif
33426
33427#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
33428#        error not present
33429#      endif
33430#    endif
33431#  endif
33432exit(0);
33433}
33434
33435  ;
33436  return 0;
33437}
33438_ACEOF
33439if ac_fn_c_try_compile "$LINENO"; then :
33440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
33441$as_echo "found." >&6; }
33442else
33443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
33444$as_echo "not present." >&6; }
33445
33446   alsa_found=no
33447
33448fi
33449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33450ac_ext=c
33451ac_cpp='$CPP $CPPFLAGS'
33452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33454ac_compiler_gnu=$ac_cv_c_compiler_gnu
33455
33456
33457if test "x$enable_alsatest" = "xyes"; then
33458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
33459$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
33460if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
33461  $as_echo_n "(cached) " >&6
33462else
33463  ac_check_lib_save_LIBS=$LIBS
33464LIBS="-lasound  $LIBS"
33465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33466/* end confdefs.h.  */
33467
33468/* Override any GCC internal prototype to avoid an error.
33469   Use char because int might match the return type of a GCC
33470   builtin and then its argument prototype would still apply.  */
33471#ifdef __cplusplus
33472extern "C"
33473#endif
33474char snd_ctl_open ();
33475int
33476main ()
33477{
33478return snd_ctl_open ();
33479  ;
33480  return 0;
33481}
33482_ACEOF
33483if ac_fn_c_try_link "$LINENO"; then :
33484  ac_cv_lib_asound_snd_ctl_open=yes
33485else
33486  ac_cv_lib_asound_snd_ctl_open=no
33487fi
33488rm -f core conftest.err conftest.$ac_objext \
33489    conftest$ac_exeext conftest.$ac_ext
33490LIBS=$ac_check_lib_save_LIBS
33491fi
33492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
33493$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
33494if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
33495  cat >>confdefs.h <<_ACEOF
33496#define HAVE_LIBASOUND 1
33497_ACEOF
33498
33499  LIBS="-lasound $LIBS"
33500
33501else
33502
33503	 alsa_found=no
33504
33505fi
33506
33507fi
33508
33509if test "x$alsa_found" = "xyes" ; then
33510   HAVE_ALSA="yes"
33511   LIBS=`echo $LIBS | sed 's/-lasound//g'`
33512   LIBS=`echo $LIBS | sed 's/  //'`
33513   LIBS="-lasound $LIBS"
33514fi
33515if test "x$alsa_found" = "xno" ; then
33516   HAVE_ALSA="no"
33517   CFLAGS="$alsa_save_CFLAGS"
33518   LDFLAGS="$alsa_save_LDFLAGS"
33519   LIBS="$alsa_save_LIBS"
33520   ALSA_CFLAGS=""
33521   ALSA_LIBS=""
33522fi
33523
33524
33525
33526
33527
33528elif test $pkg_failed = untried; then
33529
33530    alsa_save_CFLAGS="$CFLAGS"
33531alsa_save_LDFLAGS="$LDFLAGS"
33532alsa_save_LIBS="$LIBS"
33533alsa_found=yes
33534
33535
33536# Check whether --with-alsa-prefix was given.
33537if test "${with_alsa_prefix+set}" = set; then :
33538  withval=$with_alsa_prefix; alsa_prefix="$withval"
33539else
33540  alsa_prefix=""
33541fi
33542
33543
33544
33545# Check whether --with-alsa-inc-prefix was given.
33546if test "${with_alsa_inc_prefix+set}" = set; then :
33547  withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
33548else
33549  alsa_inc_prefix=""
33550fi
33551
33552
33553
33554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
33555$as_echo_n "checking for ALSA CFLAGS... " >&6; }
33556if test "$alsa_inc_prefix" != "" ; then
33557	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
33558	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
33559fi
33560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
33561$as_echo "$ALSA_CFLAGS" >&6; }
33562
33563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
33564$as_echo_n "checking for ALSA LDFLAGS... " >&6; }
33565if test "$alsa_prefix" != "" ; then
33566	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
33567	LDFLAGS="$LDFLAGS $ALSA_LIBS"
33568fi
33569
33570ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
33571LIBS=`echo $LIBS | sed 's/-lm//'`
33572LIBS=`echo $LIBS | sed 's/-ldl//'`
33573LIBS=`echo $LIBS | sed 's/-lpthread//'`
33574LIBS=`echo $LIBS | sed 's/  //'`
33575LIBS="$ALSA_LIBS $LIBS"
33576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
33577$as_echo "$ALSA_LIBS" >&6; }
33578
33579min_alsa_version=0.9.1
33580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
33581$as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
33582no_alsa=""
33583    alsa_min_major_version=`echo $min_alsa_version | \
33584           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33585    alsa_min_minor_version=`echo $min_alsa_version | \
33586           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33587    alsa_min_micro_version=`echo $min_alsa_version | \
33588           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33589
33590
33591ac_ext=c
33592ac_cpp='$CPP $CPPFLAGS'
33593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33595ac_compiler_gnu=$ac_cv_c_compiler_gnu
33596
33597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33598/* end confdefs.h.  */
33599
33600#include <alsa/asoundlib.h>
33601
33602int
33603main ()
33604{
33605
33606void main(void)
33607{
33608/* ensure backward compatibility */
33609#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
33610#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
33611#endif
33612#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
33613#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
33614#endif
33615#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
33616#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
33617#endif
33618
33619#  if(SND_LIB_MAJOR > $alsa_min_major_version)
33620  exit(0);
33621#  else
33622#    if(SND_LIB_MAJOR < $alsa_min_major_version)
33623#       error not present
33624#    endif
33625
33626#   if(SND_LIB_MINOR > $alsa_min_minor_version)
33627  exit(0);
33628#   else
33629#     if(SND_LIB_MINOR < $alsa_min_minor_version)
33630#          error not present
33631#      endif
33632
33633#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
33634#        error not present
33635#      endif
33636#    endif
33637#  endif
33638exit(0);
33639}
33640
33641  ;
33642  return 0;
33643}
33644_ACEOF
33645if ac_fn_c_try_compile "$LINENO"; then :
33646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
33647$as_echo "found." >&6; }
33648else
33649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
33650$as_echo "not present." >&6; }
33651
33652   alsa_found=no
33653
33654fi
33655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656ac_ext=c
33657ac_cpp='$CPP $CPPFLAGS'
33658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33660ac_compiler_gnu=$ac_cv_c_compiler_gnu
33661
33662
33663if test "x$enable_alsatest" = "xyes"; then
33664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
33665$as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
33666if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
33667  $as_echo_n "(cached) " >&6
33668else
33669  ac_check_lib_save_LIBS=$LIBS
33670LIBS="-lasound  $LIBS"
33671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33672/* end confdefs.h.  */
33673
33674/* Override any GCC internal prototype to avoid an error.
33675   Use char because int might match the return type of a GCC
33676   builtin and then its argument prototype would still apply.  */
33677#ifdef __cplusplus
33678extern "C"
33679#endif
33680char snd_ctl_open ();
33681int
33682main ()
33683{
33684return snd_ctl_open ();
33685  ;
33686  return 0;
33687}
33688_ACEOF
33689if ac_fn_c_try_link "$LINENO"; then :
33690  ac_cv_lib_asound_snd_ctl_open=yes
33691else
33692  ac_cv_lib_asound_snd_ctl_open=no
33693fi
33694rm -f core conftest.err conftest.$ac_objext \
33695    conftest$ac_exeext conftest.$ac_ext
33696LIBS=$ac_check_lib_save_LIBS
33697fi
33698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
33699$as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
33700if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
33701  cat >>confdefs.h <<_ACEOF
33702#define HAVE_LIBASOUND 1
33703_ACEOF
33704
33705  LIBS="-lasound $LIBS"
33706
33707else
33708
33709	 alsa_found=no
33710
33711fi
33712
33713fi
33714
33715if test "x$alsa_found" = "xyes" ; then
33716   HAVE_ALSA="yes"
33717   LIBS=`echo $LIBS | sed 's/-lasound//g'`
33718   LIBS=`echo $LIBS | sed 's/  //'`
33719   LIBS="-lasound $LIBS"
33720fi
33721if test "x$alsa_found" = "xno" ; then
33722   HAVE_ALSA="no"
33723   CFLAGS="$alsa_save_CFLAGS"
33724   LDFLAGS="$alsa_save_LDFLAGS"
33725   LIBS="$alsa_save_LIBS"
33726   ALSA_CFLAGS=""
33727   ALSA_LIBS=""
33728fi
33729
33730
33731
33732
33733
33734else
33735	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
33736	ALSA_LIBS=$pkg_cv_ALSA_LIBS
33737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33738$as_echo "yes" >&6; }
33739
33740    HAVE_ALSA="yes"
33741
33742
33743
33744fi
33745
33746
33747  LIBS=$gst_check_save_LIBS
33748  LDFLAGS=$gst_check_save_LDFLAGS
33749  CFLAGS=$gst_check_save_CFLAGS
33750  CPPFLAGS=$gst_check_save_CPPFLAGS
33751  CXXFLAGS=$gst_check_save_CXXFLAGS
33752
33753    if test x$HAVE_ALSA = xno; then
33754    USE_ALSA=no
33755  else
33756    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: alsa" >&5
33757$as_echo "$as_me: *** These plugins will be built: alsa" >&6;}
33758  fi
33759fi
33760if test x$USE_ALSA = xyes; then
33761  :
33762  if test "xalsa" != "x"; then
33763    GST_PLUGINS_YES="\talsa\n$GST_PLUGINS_YES"
33764  fi
33765
33766$as_echo "#define HAVE_ALSA /**/" >>confdefs.h
33767
33768else
33769  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: alsa" >&5
33770$as_echo "$as_me: *** These plugins will not be built: alsa" >&6;}
33771  if test "xalsa" != "x"; then
33772    GST_PLUGINS_NO="\talsa\n$GST_PLUGINS_NO"
33773  fi
33774  :
33775fi
33776 if test x$USE_ALSA = xyes; then
33777  USE_ALSA_TRUE=
33778  USE_ALSA_FALSE='#'
33779else
33780  USE_ALSA_TRUE='#'
33781  USE_ALSA_FALSE=
33782fi
33783
33784
33785
33786echo
33787{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: CDParanoia ***" >&5
33788$as_echo "$as_me: *** checking feature: CDParanoia ***" >&6;}
33789if test "xcdparanoia" != "x"
33790then
33791  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: cdparanoia ***" >&5
33792$as_echo "$as_me: *** for plug-ins: cdparanoia ***" >&6;}
33793fi
33794NOUSE=
33795if test "x$USE_CDPARANOIA" = "xno"; then
33796  NOUSE="yes"
33797fi
33798# Check whether --enable-cdparanoia was given.
33799if test "${enable_cdparanoia+set}" = set; then :
33800  enableval=$enable_cdparanoia;  case "${enableval}" in
33801      yes) USE_CDPARANOIA=yes;;
33802      no) USE_CDPARANOIA=no;;
33803      *) as_fn_error $? "bad value ${enableval} for --enable-cdparanoia" "$LINENO" 5 ;;
33804    esac
33805else
33806   USE_CDPARANOIA=yes
33807fi
33808
33809if test "x$NOUSE" = "xyes"; then
33810  USE_CDPARANOIA="no"
33811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** cdparanoia pre-configured not to be built" >&5
33812$as_echo "$as_me: WARNING: *** cdparanoia pre-configured not to be built" >&2;}
33813fi
33814NOUSE=
33815
33816if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " CDPARANOIA " > /dev/null; then
33817  USE_CDPARANOIA="no"
33818  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** cdparanoia not ported" >&5
33819$as_echo "$as_me: WARNING: *** cdparanoia not ported" >&2;}
33820fi
33821
33822
33823if test x$USE_CDPARANOIA = xyes; then
33824
33825  gst_check_save_LIBS=$LIBS
33826  gst_check_save_LDFLAGS=$LDFLAGS
33827  gst_check_save_CFLAGS=$CFLAGS
33828  gst_check_save_CPPFLAGS=$CPPFLAGS
33829  gst_check_save_CXXFLAGS=$CXXFLAGS
33830
33831  HAVE_CDPARANOIA=no
33832
33833
33834pkg_failed=no
33835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CDPARANOIA" >&5
33836$as_echo_n "checking for CDPARANOIA... " >&6; }
33837
33838if test -n "$PKG_CONFIG"; then
33839    if test -n "$CDPARANOIA_CFLAGS"; then
33840        pkg_cv_CDPARANOIA_CFLAGS="$CDPARANOIA_CFLAGS"
33841    else
33842        if test -n "$PKG_CONFIG" && \
33843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cdparanoia-3 >= 10.2\""; } >&5
33844  ($PKG_CONFIG --exists --print-errors "cdparanoia-3 >= 10.2") 2>&5
33845  ac_status=$?
33846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33847  test $ac_status = 0; }; then
33848  pkg_cv_CDPARANOIA_CFLAGS=`$PKG_CONFIG --cflags "cdparanoia-3 >= 10.2" 2>/dev/null`
33849else
33850  pkg_failed=yes
33851fi
33852    fi
33853else
33854	pkg_failed=untried
33855fi
33856if test -n "$PKG_CONFIG"; then
33857    if test -n "$CDPARANOIA_LIBS"; then
33858        pkg_cv_CDPARANOIA_LIBS="$CDPARANOIA_LIBS"
33859    else
33860        if test -n "$PKG_CONFIG" && \
33861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cdparanoia-3 >= 10.2\""; } >&5
33862  ($PKG_CONFIG --exists --print-errors "cdparanoia-3 >= 10.2") 2>&5
33863  ac_status=$?
33864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33865  test $ac_status = 0; }; then
33866  pkg_cv_CDPARANOIA_LIBS=`$PKG_CONFIG --libs "cdparanoia-3 >= 10.2" 2>/dev/null`
33867else
33868  pkg_failed=yes
33869fi
33870    fi
33871else
33872	pkg_failed=untried
33873fi
33874
33875
33876
33877if test $pkg_failed = yes; then
33878
33879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33880        _pkg_short_errors_supported=yes
33881else
33882        _pkg_short_errors_supported=no
33883fi
33884        if test $_pkg_short_errors_supported = yes; then
33885	        CDPARANOIA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cdparanoia-3 >= 10.2"`
33886        else
33887	        CDPARANOIA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cdparanoia-3 >= 10.2"`
33888        fi
33889	# Put the nasty error message in config.log where it belongs
33890	echo "$CDPARANOIA_PKG_ERRORS" >&5
33891
33892	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33893$as_echo "no" >&6; }
33894
33895
33896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdda_open in -lcdda_interface" >&5
33897$as_echo_n "checking for cdda_open in -lcdda_interface... " >&6; }
33898if ${ac_cv_lib_cdda_interface_cdda_open+:} false; then :
33899  $as_echo_n "(cached) " >&6
33900else
33901  ac_check_lib_save_LIBS=$LIBS
33902LIBS="-lcdda_interface -lm $LIBS"
33903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33904/* end confdefs.h.  */
33905
33906/* Override any GCC internal prototype to avoid an error.
33907   Use char because int might match the return type of a GCC
33908   builtin and then its argument prototype would still apply.  */
33909#ifdef __cplusplus
33910extern "C"
33911#endif
33912char cdda_open ();
33913int
33914main ()
33915{
33916return cdda_open ();
33917  ;
33918  return 0;
33919}
33920_ACEOF
33921if ac_fn_c_try_link "$LINENO"; then :
33922  ac_cv_lib_cdda_interface_cdda_open=yes
33923else
33924  ac_cv_lib_cdda_interface_cdda_open=no
33925fi
33926rm -f core conftest.err conftest.$ac_objext \
33927    conftest$ac_exeext conftest.$ac_ext
33928LIBS=$ac_check_lib_save_LIBS
33929fi
33930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_interface_cdda_open" >&5
33931$as_echo "$ac_cv_lib_cdda_interface_cdda_open" >&6; }
33932if test "x$ac_cv_lib_cdda_interface_cdda_open" = xyes; then :
33933  HAVE_CDPARANOIA=yes
33934else
33935  HAVE_CDPARANOIA=no
33936fi
33937
33938  if test "x$HAVE_CDPARANOIA" = "xyes"; then
33939    ac_fn_c_check_header_mongrel "$LINENO" "cdda_interface.h" "ac_cv_header_cdda_interface_h" "$ac_includes_default"
33940if test "x$ac_cv_header_cdda_interface_h" = xyes; then :
33941  :
33942else
33943  HAVE_CDPARANOIA=no
33944fi
33945
33946
33947    if test "x$HAVE_CDPARANOIA" = "xyes"; then
33948            CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
33949                        HEADER_DIR="no"
33950                        FOUND_CDPARANOIA="yes"
33951    else
33952      :
33953    fi
33954  else
33955    :
33956  fi
33957
33958
33959
33960    if test "x$FOUND_CDPARANOIA" != "xyes";
33961    then
33962
33963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdda_open in -lcdda_interface" >&5
33964$as_echo_n "checking for cdda_open in -lcdda_interface... " >&6; }
33965if ${ac_cv_lib_cdda_interface_cdda_open+:} false; then :
33966  $as_echo_n "(cached) " >&6
33967else
33968  ac_check_lib_save_LIBS=$LIBS
33969LIBS="-lcdda_interface -lm $LIBS"
33970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33971/* end confdefs.h.  */
33972
33973/* Override any GCC internal prototype to avoid an error.
33974   Use char because int might match the return type of a GCC
33975   builtin and then its argument prototype would still apply.  */
33976#ifdef __cplusplus
33977extern "C"
33978#endif
33979char cdda_open ();
33980int
33981main ()
33982{
33983return cdda_open ();
33984  ;
33985  return 0;
33986}
33987_ACEOF
33988if ac_fn_c_try_link "$LINENO"; then :
33989  ac_cv_lib_cdda_interface_cdda_open=yes
33990else
33991  ac_cv_lib_cdda_interface_cdda_open=no
33992fi
33993rm -f core conftest.err conftest.$ac_objext \
33994    conftest$ac_exeext conftest.$ac_ext
33995LIBS=$ac_check_lib_save_LIBS
33996fi
33997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_interface_cdda_open" >&5
33998$as_echo "$ac_cv_lib_cdda_interface_cdda_open" >&6; }
33999if test "x$ac_cv_lib_cdda_interface_cdda_open" = xyes; then :
34000  HAVE_CDPARANOIA=yes
34001else
34002  HAVE_CDPARANOIA=no
34003fi
34004
34005  if test "x$HAVE_CDPARANOIA" = "xyes"; then
34006    ac_fn_c_check_header_mongrel "$LINENO" "cdda/cdda_interface.h" "ac_cv_header_cdda_cdda_interface_h" "$ac_includes_default"
34007if test "x$ac_cv_header_cdda_cdda_interface_h" = xyes; then :
34008  :
34009else
34010  HAVE_CDPARANOIA=no
34011fi
34012
34013
34014    if test "x$HAVE_CDPARANOIA" = "xyes"; then
34015            CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
34016                          HEADER_DIR="yes"
34017                          FOUND_CDPARANOIA="yes"
34018    else
34019      :
34020    fi
34021  else
34022    :
34023  fi
34024
34025
34026
34027    fi
34028    if test "x$HEADER_DIR" = "xyes";
34029    then
34030
34031cat >>confdefs.h <<_ACEOF
34032#define CDPARANOIA_HEADERS_IN_DIR /**/
34033_ACEOF
34034
34035    fi
34036
34037
34038
34039elif test $pkg_failed = untried; then
34040
34041
34042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdda_open in -lcdda_interface" >&5
34043$as_echo_n "checking for cdda_open in -lcdda_interface... " >&6; }
34044if ${ac_cv_lib_cdda_interface_cdda_open+:} false; then :
34045  $as_echo_n "(cached) " >&6
34046else
34047  ac_check_lib_save_LIBS=$LIBS
34048LIBS="-lcdda_interface -lm $LIBS"
34049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34050/* end confdefs.h.  */
34051
34052/* Override any GCC internal prototype to avoid an error.
34053   Use char because int might match the return type of a GCC
34054   builtin and then its argument prototype would still apply.  */
34055#ifdef __cplusplus
34056extern "C"
34057#endif
34058char cdda_open ();
34059int
34060main ()
34061{
34062return cdda_open ();
34063  ;
34064  return 0;
34065}
34066_ACEOF
34067if ac_fn_c_try_link "$LINENO"; then :
34068  ac_cv_lib_cdda_interface_cdda_open=yes
34069else
34070  ac_cv_lib_cdda_interface_cdda_open=no
34071fi
34072rm -f core conftest.err conftest.$ac_objext \
34073    conftest$ac_exeext conftest.$ac_ext
34074LIBS=$ac_check_lib_save_LIBS
34075fi
34076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_interface_cdda_open" >&5
34077$as_echo "$ac_cv_lib_cdda_interface_cdda_open" >&6; }
34078if test "x$ac_cv_lib_cdda_interface_cdda_open" = xyes; then :
34079  HAVE_CDPARANOIA=yes
34080else
34081  HAVE_CDPARANOIA=no
34082fi
34083
34084  if test "x$HAVE_CDPARANOIA" = "xyes"; then
34085    ac_fn_c_check_header_mongrel "$LINENO" "cdda_interface.h" "ac_cv_header_cdda_interface_h" "$ac_includes_default"
34086if test "x$ac_cv_header_cdda_interface_h" = xyes; then :
34087  :
34088else
34089  HAVE_CDPARANOIA=no
34090fi
34091
34092
34093    if test "x$HAVE_CDPARANOIA" = "xyes"; then
34094            CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
34095                        HEADER_DIR="no"
34096                        FOUND_CDPARANOIA="yes"
34097    else
34098      :
34099    fi
34100  else
34101    :
34102  fi
34103
34104
34105
34106    if test "x$FOUND_CDPARANOIA" != "xyes";
34107    then
34108
34109  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdda_open in -lcdda_interface" >&5
34110$as_echo_n "checking for cdda_open in -lcdda_interface... " >&6; }
34111if ${ac_cv_lib_cdda_interface_cdda_open+:} false; then :
34112  $as_echo_n "(cached) " >&6
34113else
34114  ac_check_lib_save_LIBS=$LIBS
34115LIBS="-lcdda_interface -lm $LIBS"
34116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34117/* end confdefs.h.  */
34118
34119/* Override any GCC internal prototype to avoid an error.
34120   Use char because int might match the return type of a GCC
34121   builtin and then its argument prototype would still apply.  */
34122#ifdef __cplusplus
34123extern "C"
34124#endif
34125char cdda_open ();
34126int
34127main ()
34128{
34129return cdda_open ();
34130  ;
34131  return 0;
34132}
34133_ACEOF
34134if ac_fn_c_try_link "$LINENO"; then :
34135  ac_cv_lib_cdda_interface_cdda_open=yes
34136else
34137  ac_cv_lib_cdda_interface_cdda_open=no
34138fi
34139rm -f core conftest.err conftest.$ac_objext \
34140    conftest$ac_exeext conftest.$ac_ext
34141LIBS=$ac_check_lib_save_LIBS
34142fi
34143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdda_interface_cdda_open" >&5
34144$as_echo "$ac_cv_lib_cdda_interface_cdda_open" >&6; }
34145if test "x$ac_cv_lib_cdda_interface_cdda_open" = xyes; then :
34146  HAVE_CDPARANOIA=yes
34147else
34148  HAVE_CDPARANOIA=no
34149fi
34150
34151  if test "x$HAVE_CDPARANOIA" = "xyes"; then
34152    ac_fn_c_check_header_mongrel "$LINENO" "cdda/cdda_interface.h" "ac_cv_header_cdda_cdda_interface_h" "$ac_includes_default"
34153if test "x$ac_cv_header_cdda_cdda_interface_h" = xyes; then :
34154  :
34155else
34156  HAVE_CDPARANOIA=no
34157fi
34158
34159
34160    if test "x$HAVE_CDPARANOIA" = "xyes"; then
34161            CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
34162                          HEADER_DIR="yes"
34163                          FOUND_CDPARANOIA="yes"
34164    else
34165      :
34166    fi
34167  else
34168    :
34169  fi
34170
34171
34172
34173    fi
34174    if test "x$HEADER_DIR" = "xyes";
34175    then
34176
34177cat >>confdefs.h <<_ACEOF
34178#define CDPARANOIA_HEADERS_IN_DIR /**/
34179_ACEOF
34180
34181    fi
34182
34183
34184
34185else
34186	CDPARANOIA_CFLAGS=$pkg_cv_CDPARANOIA_CFLAGS
34187	CDPARANOIA_LIBS=$pkg_cv_CDPARANOIA_LIBS
34188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34189$as_echo "yes" >&6; }
34190
34191    HAVE_CDPARANOIA="yes"
34192
34193fi
34194
34195
34196  LIBS=$gst_check_save_LIBS
34197  LDFLAGS=$gst_check_save_LDFLAGS
34198  CFLAGS=$gst_check_save_CFLAGS
34199  CPPFLAGS=$gst_check_save_CPPFLAGS
34200  CXXFLAGS=$gst_check_save_CXXFLAGS
34201
34202    if test x$HAVE_CDPARANOIA = xno; then
34203    USE_CDPARANOIA=no
34204  else
34205    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: cdparanoia" >&5
34206$as_echo "$as_me: *** These plugins will be built: cdparanoia" >&6;}
34207  fi
34208fi
34209if test x$USE_CDPARANOIA = xyes; then
34210  :
34211  if test "xcdparanoia" != "x"; then
34212    GST_PLUGINS_YES="\tcdparanoia\n$GST_PLUGINS_YES"
34213  fi
34214
34215$as_echo "#define HAVE_CDPARANOIA /**/" >>confdefs.h
34216
34217else
34218  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: cdparanoia" >&5
34219$as_echo "$as_me: *** These plugins will not be built: cdparanoia" >&6;}
34220  if test "xcdparanoia" != "x"; then
34221    GST_PLUGINS_NO="\tcdparanoia\n$GST_PLUGINS_NO"
34222  fi
34223  :
34224fi
34225 if test x$USE_CDPARANOIA = xyes; then
34226  USE_CDPARANOIA_TRUE=
34227  USE_CDPARANOIA_FALSE='#'
34228else
34229  USE_CDPARANOIA_TRUE='#'
34230  USE_CDPARANOIA_FALSE=
34231fi
34232
34233
34234
34235echo
34236{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: gl elements ***" >&5
34237$as_echo "$as_me: *** checking feature: gl elements ***" >&6;}
34238if test "xgl" != "x"
34239then
34240  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: gl ***" >&5
34241$as_echo "$as_me: *** for plug-ins: gl ***" >&6;}
34242fi
34243NOUSE=
34244if test "x$USE_GL" = "xno"; then
34245  NOUSE="yes"
34246fi
34247# Check whether --enable-gl was given.
34248if test "${enable_gl+set}" = set; then :
34249  enableval=$enable_gl;  case "${enableval}" in
34250      yes) USE_GL=yes;;
34251      no) USE_GL=no;;
34252      *) as_fn_error $? "bad value ${enableval} for --enable-gl" "$LINENO" 5 ;;
34253    esac
34254else
34255   USE_GL=yes
34256fi
34257
34258if test "x$NOUSE" = "xyes"; then
34259  USE_GL="no"
34260  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gl pre-configured not to be built" >&5
34261$as_echo "$as_me: WARNING: *** gl pre-configured not to be built" >&2;}
34262fi
34263NOUSE=
34264
34265if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " GL " > /dev/null; then
34266  USE_GL="no"
34267  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gl not ported" >&5
34268$as_echo "$as_me: WARNING: *** gl not ported" >&2;}
34269fi
34270
34271
34272if test x$USE_GL = xyes; then
34273
34274  gst_check_save_LIBS=$LIBS
34275  gst_check_save_LDFLAGS=$LDFLAGS
34276  gst_check_save_CFLAGS=$CFLAGS
34277  gst_check_save_CPPFLAGS=$CPPFLAGS
34278  gst_check_save_CXXFLAGS=$CXXFLAGS
34279
34280  HAVE_GL=no
34281
34282  HAVE_GL="no"
34283
34284  if test x"$USE_OPENGL" = x"yes" -o x"$USE_GLES2" = x"yes"; then
34285    HAVE_GL="yes"
34286
34287
34288HAVE_GRAPHENE=NO
34289
34290pkg_failed=no
34291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHENE" >&5
34292$as_echo_n "checking for GRAPHENE... " >&6; }
34293
34294if test -n "$PKG_CONFIG"; then
34295    if test -n "$GRAPHENE_CFLAGS"; then
34296        pkg_cv_GRAPHENE_CFLAGS="$GRAPHENE_CFLAGS"
34297    else
34298        if test -n "$PKG_CONFIG" && \
34299    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphene-1.0 >= 1.4.0\""; } >&5
34300  ($PKG_CONFIG --exists --print-errors "graphene-1.0 >= 1.4.0") 2>&5
34301  ac_status=$?
34302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34303  test $ac_status = 0; }; then
34304  pkg_cv_GRAPHENE_CFLAGS=`$PKG_CONFIG --cflags "graphene-1.0 >= 1.4.0" 2>/dev/null`
34305else
34306  pkg_failed=yes
34307fi
34308    fi
34309else
34310	pkg_failed=untried
34311fi
34312if test -n "$PKG_CONFIG"; then
34313    if test -n "$GRAPHENE_LIBS"; then
34314        pkg_cv_GRAPHENE_LIBS="$GRAPHENE_LIBS"
34315    else
34316        if test -n "$PKG_CONFIG" && \
34317    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphene-1.0 >= 1.4.0\""; } >&5
34318  ($PKG_CONFIG --exists --print-errors "graphene-1.0 >= 1.4.0") 2>&5
34319  ac_status=$?
34320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34321  test $ac_status = 0; }; then
34322  pkg_cv_GRAPHENE_LIBS=`$PKG_CONFIG --libs "graphene-1.0 >= 1.4.0" 2>/dev/null`
34323else
34324  pkg_failed=yes
34325fi
34326    fi
34327else
34328	pkg_failed=untried
34329fi
34330
34331
34332
34333if test $pkg_failed = yes; then
34334
34335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34336        _pkg_short_errors_supported=yes
34337else
34338        _pkg_short_errors_supported=no
34339fi
34340        if test $_pkg_short_errors_supported = yes; then
34341	        GRAPHENE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "graphene-1.0 >= 1.4.0"`
34342        else
34343	        GRAPHENE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "graphene-1.0 >= 1.4.0"`
34344        fi
34345	# Put the nasty error message in config.log where it belongs
34346	echo "$GRAPHENE_PKG_ERRORS" >&5
34347
34348	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34349$as_echo "no" >&6; }
34350                HAVE_GRAPHENE=no
34351elif test $pkg_failed = untried; then
34352	HAVE_GRAPHENE=no
34353else
34354	GRAPHENE_CFLAGS=$pkg_cv_GRAPHENE_CFLAGS
34355	GRAPHENE_LIBS=$pkg_cv_GRAPHENE_LIBS
34356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34357$as_echo "yes" >&6; }
34358	HAVE_GRAPHENE=yes
34359fi
34360if test "x$HAVE_GRAPHENE" = "xyes"; then
34361
34362$as_echo "#define HAVE_GRAPHENE 1 " >>confdefs.h
34363
34364fi
34365
34366
34367
34368
34369
34370pkg_failed=no
34371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE_NO_EXPORT" >&5
34372$as_echo_n "checking for GMODULE_NO_EXPORT... " >&6; }
34373
34374if test -n "$PKG_CONFIG"; then
34375    if test -n "$GMODULE_NO_EXPORT_CFLAGS"; then
34376        pkg_cv_GMODULE_NO_EXPORT_CFLAGS="$GMODULE_NO_EXPORT_CFLAGS"
34377    else
34378        if test -n "$PKG_CONFIG" && \
34379    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
34380  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
34381  ac_status=$?
34382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34383  test $ac_status = 0; }; then
34384  pkg_cv_GMODULE_NO_EXPORT_CFLAGS=`$PKG_CONFIG --cflags "gmodule-no-export-2.0" 2>/dev/null`
34385else
34386  pkg_failed=yes
34387fi
34388    fi
34389else
34390	pkg_failed=untried
34391fi
34392if test -n "$PKG_CONFIG"; then
34393    if test -n "$GMODULE_NO_EXPORT_LIBS"; then
34394        pkg_cv_GMODULE_NO_EXPORT_LIBS="$GMODULE_NO_EXPORT_LIBS"
34395    else
34396        if test -n "$PKG_CONFIG" && \
34397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
34398  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
34399  ac_status=$?
34400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34401  test $ac_status = 0; }; then
34402  pkg_cv_GMODULE_NO_EXPORT_LIBS=`$PKG_CONFIG --libs "gmodule-no-export-2.0" 2>/dev/null`
34403else
34404  pkg_failed=yes
34405fi
34406    fi
34407else
34408	pkg_failed=untried
34409fi
34410
34411
34412
34413if test $pkg_failed = yes; then
34414
34415if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34416        _pkg_short_errors_supported=yes
34417else
34418        _pkg_short_errors_supported=no
34419fi
34420        if test $_pkg_short_errors_supported = yes; then
34421	        GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gmodule-no-export-2.0"`
34422        else
34423	        GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-no-export-2.0"`
34424        fi
34425	# Put the nasty error message in config.log where it belongs
34426	echo "$GMODULE_NO_EXPORT_PKG_ERRORS" >&5
34427
34428	as_fn_error $? "Package requirements (gmodule-no-export-2.0) were not met:
34429
34430$GMODULE_NO_EXPORT_PKG_ERRORS
34431
34432Consider adjusting the PKG_CONFIG_PATH environment variable if you
34433installed software in a non-standard prefix.
34434
34435Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
34436and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
34437See the pkg-config man page for more details.
34438" "$LINENO" 5
34439elif test $pkg_failed = untried; then
34440	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34442as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
34443is in your PATH or set the PKG_CONFIG environment variable to the full
34444path to pkg-config.
34445
34446Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
34447and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
34448See the pkg-config man page for more details.
34449
34450To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34451See \`config.log' for more details" "$LINENO" 5; }
34452else
34453	GMODULE_NO_EXPORT_CFLAGS=$pkg_cv_GMODULE_NO_EXPORT_CFLAGS
34454	GMODULE_NO_EXPORT_LIBS=$pkg_cv_GMODULE_NO_EXPORT_LIBS
34455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34456$as_echo "yes" >&6; }
34457	:
34458fi
34459
34460if test "x$NEED_PNG" != "xno"; then
34461
34462pkg_failed=no
34463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
34464$as_echo_n "checking for LIBPNG... " >&6; }
34465
34466if test -n "$PKG_CONFIG"; then
34467    if test -n "$LIBPNG_CFLAGS"; then
34468        pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
34469    else
34470        if test -n "$PKG_CONFIG" && \
34471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0\""; } >&5
34472  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0") 2>&5
34473  ac_status=$?
34474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34475  test $ac_status = 0; }; then
34476  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0" 2>/dev/null`
34477else
34478  pkg_failed=yes
34479fi
34480    fi
34481else
34482	pkg_failed=untried
34483fi
34484if test -n "$PKG_CONFIG"; then
34485    if test -n "$LIBPNG_LIBS"; then
34486        pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
34487    else
34488        if test -n "$PKG_CONFIG" && \
34489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0\""; } >&5
34490  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0") 2>&5
34491  ac_status=$?
34492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34493  test $ac_status = 0; }; then
34494  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0" 2>/dev/null`
34495else
34496  pkg_failed=yes
34497fi
34498    fi
34499else
34500	pkg_failed=untried
34501fi
34502
34503
34504
34505if test $pkg_failed = yes; then
34506
34507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34508        _pkg_short_errors_supported=yes
34509else
34510        _pkg_short_errors_supported=no
34511fi
34512        if test $_pkg_short_errors_supported = yes; then
34513	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng >= 1.0"`
34514        else
34515	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng >= 1.0"`
34516        fi
34517	# Put the nasty error message in config.log where it belongs
34518	echo "$LIBPNG_PKG_ERRORS" >&5
34519
34520	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34521$as_echo "no" >&6; }
34522                HAVE_PNG=no
34523elif test $pkg_failed = untried; then
34524	HAVE_PNG=no
34525else
34526	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
34527	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
34528        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529$as_echo "yes" >&6; }
34530	HAVE_PNG=yes
34531fi
34532  if test "x$HAVE_PNG" = "xyes"; then
34533
34534$as_echo "#define HAVE_PNG 1 " >>confdefs.h
34535
34536  elif test "x$NEED_PNG" = "xyes"; then
34537    as_fn_error $? "libpng support requested but libpng is not available" "$LINENO" 5
34538  fi
34539fi
34540
34541
34542
34543
34544
34545# Check whether --with-jpeg-mmx was given.
34546if test "${with_jpeg_mmx+set}" = set; then :
34547  withval=$with_jpeg_mmx;
34548fi
34549
34550if test "x$NEED_JPEG" != "xno"; then
34551  OLD_LIBS="$LIBS"
34552  if test x$with_jpeg_mmx != x; then
34553    LIBS="$LIBS -L$with_jpeg_mmx"
34554  fi
34555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg-mmx" >&5
34556$as_echo_n "checking for jpeg_set_defaults in -ljpeg-mmx... " >&6; }
34557if ${ac_cv_lib_jpeg_mmx_jpeg_set_defaults+:} false; then :
34558  $as_echo_n "(cached) " >&6
34559else
34560  ac_check_lib_save_LIBS=$LIBS
34561LIBS="-ljpeg-mmx  $LIBS"
34562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34563/* end confdefs.h.  */
34564
34565/* Override any GCC internal prototype to avoid an error.
34566   Use char because int might match the return type of a GCC
34567   builtin and then its argument prototype would still apply.  */
34568#ifdef __cplusplus
34569extern "C"
34570#endif
34571char jpeg_set_defaults ();
34572int
34573main ()
34574{
34575return jpeg_set_defaults ();
34576  ;
34577  return 0;
34578}
34579_ACEOF
34580if ac_fn_c_try_link "$LINENO"; then :
34581  ac_cv_lib_jpeg_mmx_jpeg_set_defaults=yes
34582else
34583  ac_cv_lib_jpeg_mmx_jpeg_set_defaults=no
34584fi
34585rm -f core conftest.err conftest.$ac_objext \
34586    conftest$ac_exeext conftest.$ac_ext
34587LIBS=$ac_check_lib_save_LIBS
34588fi
34589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_mmx_jpeg_set_defaults" >&5
34590$as_echo "$ac_cv_lib_jpeg_mmx_jpeg_set_defaults" >&6; }
34591if test "x$ac_cv_lib_jpeg_mmx_jpeg_set_defaults" = xyes; then :
34592  HAVE_JPEG="yes"
34593else
34594  HAVE_JPEG="no"
34595fi
34596
34597  JPEG_LIBS="$LIBS -ljpeg-mmx"
34598  LIBS="$OLD_LIBS"
34599  if test x$HAVE_JPEG != xyes; then
34600    JPEG_LIBS="-ljpeg"
34601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
34602$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
34603if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
34604  $as_echo_n "(cached) " >&6
34605else
34606  ac_check_lib_save_LIBS=$LIBS
34607LIBS="-ljpeg  $LIBS"
34608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34609/* end confdefs.h.  */
34610
34611/* Override any GCC internal prototype to avoid an error.
34612   Use char because int might match the return type of a GCC
34613   builtin and then its argument prototype would still apply.  */
34614#ifdef __cplusplus
34615extern "C"
34616#endif
34617char jpeg_set_defaults ();
34618int
34619main ()
34620{
34621return jpeg_set_defaults ();
34622  ;
34623  return 0;
34624}
34625_ACEOF
34626if ac_fn_c_try_link "$LINENO"; then :
34627  ac_cv_lib_jpeg_jpeg_set_defaults=yes
34628else
34629  ac_cv_lib_jpeg_jpeg_set_defaults=no
34630fi
34631rm -f core conftest.err conftest.$ac_objext \
34632    conftest$ac_exeext conftest.$ac_ext
34633LIBS=$ac_check_lib_save_LIBS
34634fi
34635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
34636$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
34637if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
34638  HAVE_JPEG="yes"
34639else
34640  HAVE_JPEG="no"
34641fi
34642
34643  fi
34644
34645  if test x$HAVE_JPEG = xyes; then
34646
34647$as_echo "#define HAVE_JPEG 1" >>confdefs.h
34648
34649  elif test "x$NEED_JPEG" = "xyes"; then
34650    as_fn_error $? "libjpeg support requested but libjpeg is not available" "$LINENO" 5
34651  else
34652    JPEG_LIBS=
34653  fi
34654
34655
34656fi
34657
34658  fi
34659
34660
34661  LIBS=$gst_check_save_LIBS
34662  LDFLAGS=$gst_check_save_LDFLAGS
34663  CFLAGS=$gst_check_save_CFLAGS
34664  CPPFLAGS=$gst_check_save_CPPFLAGS
34665  CXXFLAGS=$gst_check_save_CXXFLAGS
34666
34667    if test x$HAVE_GL = xno; then
34668    USE_GL=no
34669  else
34670    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: gl" >&5
34671$as_echo "$as_me: *** These plugins will be built: gl" >&6;}
34672  fi
34673fi
34674if test x$USE_GL = xyes; then
34675  :
34676  if test "xgl" != "x"; then
34677    GST_PLUGINS_YES="\tgl\n$GST_PLUGINS_YES"
34678  fi
34679
34680$as_echo "#define HAVE_GL /**/" >>confdefs.h
34681
34682else
34683  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: gl" >&5
34684$as_echo "$as_me: *** These plugins will not be built: gl" >&6;}
34685  if test "xgl" != "x"; then
34686    GST_PLUGINS_NO="\tgl\n$GST_PLUGINS_NO"
34687  fi
34688  :
34689fi
34690 if test x$USE_GL = xyes; then
34691  USE_GL_TRUE=
34692  USE_GL_FALSE='#'
34693else
34694  USE_GL_TRUE='#'
34695  USE_GL_FALSE=
34696fi
34697
34698
34699
34700echo
34701{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: integer vorbis plug-in ***" >&5
34702$as_echo "$as_me: *** checking feature: integer vorbis plug-in ***" >&6;}
34703if test "xivorbisdec" != "x"
34704then
34705  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ivorbisdec ***" >&5
34706$as_echo "$as_me: *** for plug-ins: ivorbisdec ***" >&6;}
34707fi
34708NOUSE=
34709if test "x$USE_IVORBIS" = "xno"; then
34710  NOUSE="yes"
34711fi
34712# Check whether --enable-ivorbis was given.
34713if test "${enable_ivorbis+set}" = set; then :
34714  enableval=$enable_ivorbis;  case "${enableval}" in
34715      yes) USE_IVORBIS=yes;;
34716      no) USE_IVORBIS=no;;
34717      *) as_fn_error $? "bad value ${enableval} for --enable-ivorbis" "$LINENO" 5 ;;
34718    esac
34719else
34720   USE_IVORBIS=yes
34721fi
34722
34723if test "x$NOUSE" = "xyes"; then
34724  USE_IVORBIS="no"
34725  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ivorbisdec pre-configured not to be built" >&5
34726$as_echo "$as_me: WARNING: *** ivorbisdec pre-configured not to be built" >&2;}
34727fi
34728NOUSE=
34729
34730if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " IVORBIS " > /dev/null; then
34731  USE_IVORBIS="no"
34732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ivorbisdec not ported" >&5
34733$as_echo "$as_me: WARNING: *** ivorbisdec not ported" >&2;}
34734fi
34735
34736
34737if test x$USE_IVORBIS = xyes; then
34738
34739  gst_check_save_LIBS=$LIBS
34740  gst_check_save_LDFLAGS=$LDFLAGS
34741  gst_check_save_CFLAGS=$CFLAGS
34742  gst_check_save_CPPFLAGS=$CPPFLAGS
34743  gst_check_save_CXXFLAGS=$CXXFLAGS
34744
34745  HAVE_IVORBIS=no
34746
34747
34748  which="vorbisidec"
34749    required="no"
34750
34751
34752pkg_failed=no
34753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVORBIS" >&5
34754$as_echo_n "checking for IVORBIS... " >&6; }
34755
34756if test -n "$PKG_CONFIG"; then
34757    if test -n "$IVORBIS_CFLAGS"; then
34758        pkg_cv_IVORBIS_CFLAGS="$IVORBIS_CFLAGS"
34759    else
34760        if test -n "$PKG_CONFIG" && \
34761    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
34762  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
34763  ac_status=$?
34764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34765  test $ac_status = 0; }; then
34766  pkg_cv_IVORBIS_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
34767else
34768  pkg_failed=yes
34769fi
34770    fi
34771else
34772	pkg_failed=untried
34773fi
34774if test -n "$PKG_CONFIG"; then
34775    if test -n "$IVORBIS_LIBS"; then
34776        pkg_cv_IVORBIS_LIBS="$IVORBIS_LIBS"
34777    else
34778        if test -n "$PKG_CONFIG" && \
34779    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
34780  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
34781  ac_status=$?
34782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34783  test $ac_status = 0; }; then
34784  pkg_cv_IVORBIS_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
34785else
34786  pkg_failed=yes
34787fi
34788    fi
34789else
34790	pkg_failed=untried
34791fi
34792
34793
34794
34795if test $pkg_failed = yes; then
34796
34797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34798        _pkg_short_errors_supported=yes
34799else
34800        _pkg_short_errors_supported=no
34801fi
34802        if test $_pkg_short_errors_supported = yes; then
34803	        IVORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
34804        else
34805	        IVORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
34806        fi
34807	# Put the nasty error message in config.log where it belongs
34808	echo "$IVORBIS_PKG_ERRORS" >&5
34809
34810	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34811$as_echo "no" >&6; }
34812
34813      HAVE_IVORBIS="no"
34814      if test "x$required" = "xyes"; then
34815        as_fn_error $? "$IVORBIS_PKG_ERRORS" "$LINENO" 5
34816      else
34817        { $as_echo "$as_me:${as_lineno-$LINENO}: $IVORBIS_PKG_ERRORS" >&5
34818$as_echo "$as_me: $IVORBIS_PKG_ERRORS" >&6;}
34819      fi
34820
34821elif test $pkg_failed = untried; then
34822
34823      HAVE_IVORBIS="no"
34824      if test "x$required" = "xyes"; then
34825        as_fn_error $? "$IVORBIS_PKG_ERRORS" "$LINENO" 5
34826      else
34827        { $as_echo "$as_me:${as_lineno-$LINENO}: $IVORBIS_PKG_ERRORS" >&5
34828$as_echo "$as_me: $IVORBIS_PKG_ERRORS" >&6;}
34829      fi
34830
34831else
34832	IVORBIS_CFLAGS=$pkg_cv_IVORBIS_CFLAGS
34833	IVORBIS_LIBS=$pkg_cv_IVORBIS_LIBS
34834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34835$as_echo "yes" >&6; }
34836
34837      HAVE_IVORBIS="yes"
34838
34839fi
34840
34841
34842  if test $HAVE_IVORBIS = no
34843  then
34844    IVORBIS_LIBS=
34845    IVORBIS_CFLAGS=
34846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_block_init in -lvorbisidec" >&5
34847$as_echo_n "checking for vorbis_block_init in -lvorbisidec... " >&6; }
34848if ${ac_cv_lib_vorbisidec_vorbis_block_init+:} false; then :
34849  $as_echo_n "(cached) " >&6
34850else
34851  ac_check_lib_save_LIBS=$LIBS
34852LIBS="-lvorbisidec  $LIBS"
34853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34854/* end confdefs.h.  */
34855
34856/* Override any GCC internal prototype to avoid an error.
34857   Use char because int might match the return type of a GCC
34858   builtin and then its argument prototype would still apply.  */
34859#ifdef __cplusplus
34860extern "C"
34861#endif
34862char vorbis_block_init ();
34863int
34864main ()
34865{
34866return vorbis_block_init ();
34867  ;
34868  return 0;
34869}
34870_ACEOF
34871if ac_fn_c_try_link "$LINENO"; then :
34872  ac_cv_lib_vorbisidec_vorbis_block_init=yes
34873else
34874  ac_cv_lib_vorbisidec_vorbis_block_init=no
34875fi
34876rm -f core conftest.err conftest.$ac_objext \
34877    conftest$ac_exeext conftest.$ac_ext
34878LIBS=$ac_check_lib_save_LIBS
34879fi
34880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisidec_vorbis_block_init" >&5
34881$as_echo "$ac_cv_lib_vorbisidec_vorbis_block_init" >&6; }
34882if test "x$ac_cv_lib_vorbisidec_vorbis_block_init" = xyes; then :
34883  IVORBIS_LIBS=-lvorbisidec
34884      HAVE_IVORBIS=yes
34885      case $host in
34886      arm-*-*)
34887        IVORBIS_CFLAGS="-D_ARM_ASSEM_ $IVORBIS_CFLAGS"
34888      esac
34889
34890else
34891  HAVE_IVORBIS=no
34892fi
34893
34894
34895
34896  else
34897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_dsp_pcmout in -lvorbisidec" >&5
34898$as_echo_n "checking for vorbis_dsp_pcmout in -lvorbisidec... " >&6; }
34899if ${ac_cv_lib_vorbisidec_vorbis_dsp_pcmout+:} false; then :
34900  $as_echo_n "(cached) " >&6
34901else
34902  ac_check_lib_save_LIBS=$LIBS
34903LIBS="-lvorbisidec  $LIBS"
34904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34905/* end confdefs.h.  */
34906
34907/* Override any GCC internal prototype to avoid an error.
34908   Use char because int might match the return type of a GCC
34909   builtin and then its argument prototype would still apply.  */
34910#ifdef __cplusplus
34911extern "C"
34912#endif
34913char vorbis_dsp_pcmout ();
34914int
34915main ()
34916{
34917return vorbis_dsp_pcmout ();
34918  ;
34919  return 0;
34920}
34921_ACEOF
34922if ac_fn_c_try_link "$LINENO"; then :
34923  ac_cv_lib_vorbisidec_vorbis_dsp_pcmout=yes
34924else
34925  ac_cv_lib_vorbisidec_vorbis_dsp_pcmout=no
34926fi
34927rm -f core conftest.err conftest.$ac_objext \
34928    conftest$ac_exeext conftest.$ac_ext
34929LIBS=$ac_check_lib_save_LIBS
34930fi
34931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisidec_vorbis_dsp_pcmout" >&5
34932$as_echo "$ac_cv_lib_vorbisidec_vorbis_dsp_pcmout" >&6; }
34933if test "x$ac_cv_lib_vorbisidec_vorbis_dsp_pcmout" = xyes; then :
34934
34935$as_echo "#define USE_TREMOLO 1" >>confdefs.h
34936
34937else
34938  USE_TREMOLO=no
34939fi
34940
34941  fi
34942
34943
34944  LIBS=$gst_check_save_LIBS
34945  LDFLAGS=$gst_check_save_LDFLAGS
34946  CFLAGS=$gst_check_save_CFLAGS
34947  CPPFLAGS=$gst_check_save_CPPFLAGS
34948  CXXFLAGS=$gst_check_save_CXXFLAGS
34949
34950    if test x$HAVE_IVORBIS = xno; then
34951    USE_IVORBIS=no
34952  else
34953    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ivorbisdec" >&5
34954$as_echo "$as_me: *** These plugins will be built: ivorbisdec" >&6;}
34955  fi
34956fi
34957if test x$USE_IVORBIS = xyes; then
34958  :
34959  if test "xivorbisdec" != "x"; then
34960    GST_PLUGINS_YES="\tivorbisdec\n$GST_PLUGINS_YES"
34961  fi
34962
34963$as_echo "#define HAVE_IVORBIS /**/" >>confdefs.h
34964
34965else
34966  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ivorbisdec" >&5
34967$as_echo "$as_me: *** These plugins will not be built: ivorbisdec" >&6;}
34968  if test "xivorbisdec" != "x"; then
34969    GST_PLUGINS_NO="\tivorbisdec\n$GST_PLUGINS_NO"
34970  fi
34971  :
34972fi
34973 if test x$USE_IVORBIS = xyes; then
34974  USE_IVORBIS_TRUE=
34975  USE_IVORBIS_FALSE='#'
34976else
34977  USE_IVORBIS_TRUE='#'
34978  USE_IVORBIS_FALSE=
34979fi
34980
34981
34982
34983echo
34984{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: libvisual visualization library ***" >&5
34985$as_echo "$as_me: *** checking feature: libvisual visualization library ***" >&6;}
34986if test "xlibvisual" != "x"
34987then
34988  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: libvisual ***" >&5
34989$as_echo "$as_me: *** for plug-ins: libvisual ***" >&6;}
34990fi
34991NOUSE=
34992if test "x$USE_LIBVISUAL" = "xno"; then
34993  NOUSE="yes"
34994fi
34995# Check whether --enable-libvisual was given.
34996if test "${enable_libvisual+set}" = set; then :
34997  enableval=$enable_libvisual;  case "${enableval}" in
34998      yes) USE_LIBVISUAL=yes;;
34999      no) USE_LIBVISUAL=no;;
35000      *) as_fn_error $? "bad value ${enableval} for --enable-libvisual" "$LINENO" 5 ;;
35001    esac
35002else
35003   USE_LIBVISUAL=yes
35004fi
35005
35006if test "x$NOUSE" = "xyes"; then
35007  USE_LIBVISUAL="no"
35008  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libvisual pre-configured not to be built" >&5
35009$as_echo "$as_me: WARNING: *** libvisual pre-configured not to be built" >&2;}
35010fi
35011NOUSE=
35012
35013if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LIBVISUAL " > /dev/null; then
35014  USE_LIBVISUAL="no"
35015  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libvisual not ported" >&5
35016$as_echo "$as_me: WARNING: *** libvisual not ported" >&2;}
35017fi
35018
35019
35020if test x$USE_LIBVISUAL = xyes; then
35021
35022  gst_check_save_LIBS=$LIBS
35023  gst_check_save_LDFLAGS=$LDFLAGS
35024  gst_check_save_CFLAGS=$CFLAGS
35025  gst_check_save_CPPFLAGS=$CPPFLAGS
35026  gst_check_save_CXXFLAGS=$CXXFLAGS
35027
35028  HAVE_LIBVISUAL=no
35029
35030
35031  which="libvisual-0.4 >= 0.4.0"
35032    required="no"
35033
35034
35035pkg_failed=no
35036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVISUAL" >&5
35037$as_echo_n "checking for LIBVISUAL... " >&6; }
35038
35039if test -n "$PKG_CONFIG"; then
35040    if test -n "$LIBVISUAL_CFLAGS"; then
35041        pkg_cv_LIBVISUAL_CFLAGS="$LIBVISUAL_CFLAGS"
35042    else
35043        if test -n "$PKG_CONFIG" && \
35044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35045  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35046  ac_status=$?
35047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35048  test $ac_status = 0; }; then
35049  pkg_cv_LIBVISUAL_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
35050else
35051  pkg_failed=yes
35052fi
35053    fi
35054else
35055	pkg_failed=untried
35056fi
35057if test -n "$PKG_CONFIG"; then
35058    if test -n "$LIBVISUAL_LIBS"; then
35059        pkg_cv_LIBVISUAL_LIBS="$LIBVISUAL_LIBS"
35060    else
35061        if test -n "$PKG_CONFIG" && \
35062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35063  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35064  ac_status=$?
35065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35066  test $ac_status = 0; }; then
35067  pkg_cv_LIBVISUAL_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
35068else
35069  pkg_failed=yes
35070fi
35071    fi
35072else
35073	pkg_failed=untried
35074fi
35075
35076
35077
35078if test $pkg_failed = yes; then
35079
35080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35081        _pkg_short_errors_supported=yes
35082else
35083        _pkg_short_errors_supported=no
35084fi
35085        if test $_pkg_short_errors_supported = yes; then
35086	        LIBVISUAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
35087        else
35088	        LIBVISUAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
35089        fi
35090	# Put the nasty error message in config.log where it belongs
35091	echo "$LIBVISUAL_PKG_ERRORS" >&5
35092
35093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35094$as_echo "no" >&6; }
35095
35096      HAVE_LIBVISUAL="no"
35097      if test "x$required" = "xyes"; then
35098        as_fn_error $? "$LIBVISUAL_PKG_ERRORS" "$LINENO" 5
35099      else
35100        { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBVISUAL_PKG_ERRORS" >&5
35101$as_echo "$as_me: $LIBVISUAL_PKG_ERRORS" >&6;}
35102      fi
35103
35104elif test $pkg_failed = untried; then
35105
35106      HAVE_LIBVISUAL="no"
35107      if test "x$required" = "xyes"; then
35108        as_fn_error $? "$LIBVISUAL_PKG_ERRORS" "$LINENO" 5
35109      else
35110        { $as_echo "$as_me:${as_lineno-$LINENO}: $LIBVISUAL_PKG_ERRORS" >&5
35111$as_echo "$as_me: $LIBVISUAL_PKG_ERRORS" >&6;}
35112      fi
35113
35114else
35115	LIBVISUAL_CFLAGS=$pkg_cv_LIBVISUAL_CFLAGS
35116	LIBVISUAL_LIBS=$pkg_cv_LIBVISUAL_LIBS
35117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35118$as_echo "yes" >&6; }
35119
35120      HAVE_LIBVISUAL="yes"
35121
35122fi
35123
35124
35125  if test x$HAVE_LIBVISUAL = xyes; then
35126    LIBVIS_PLUGINSDIR="`$PKG_CONFIG --variable=pluginsbasedir libvisual-0.4`"
35127  fi
35128  { $as_echo "$as_me:${as_lineno-$LINENO}: libvisual pluginsdir: $LIBVIS_PLUGINSDIR" >&5
35129$as_echo "$as_me: libvisual pluginsdir: $LIBVIS_PLUGINSDIR" >&6;}
35130  if test x$LIBVIS_PLUGINSDIR != x; then
35131
35132cat >>confdefs.h <<_ACEOF
35133#define LIBVISUAL_PLUGINSBASEDIR "$LIBVIS_PLUGINSDIR"
35134_ACEOF
35135
35136  fi
35137
35138
35139  LIBS=$gst_check_save_LIBS
35140  LDFLAGS=$gst_check_save_LDFLAGS
35141  CFLAGS=$gst_check_save_CFLAGS
35142  CPPFLAGS=$gst_check_save_CPPFLAGS
35143  CXXFLAGS=$gst_check_save_CXXFLAGS
35144
35145    if test x$HAVE_LIBVISUAL = xno; then
35146    USE_LIBVISUAL=no
35147  else
35148    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: libvisual" >&5
35149$as_echo "$as_me: *** These plugins will be built: libvisual" >&6;}
35150  fi
35151fi
35152if test x$USE_LIBVISUAL = xyes; then
35153  :
35154  if test "xlibvisual" != "x"; then
35155    GST_PLUGINS_YES="\tlibvisual\n$GST_PLUGINS_YES"
35156  fi
35157
35158$as_echo "#define HAVE_LIBVISUAL /**/" >>confdefs.h
35159
35160else
35161  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: libvisual" >&5
35162$as_echo "$as_me: *** These plugins will not be built: libvisual" >&6;}
35163  if test "xlibvisual" != "x"; then
35164    GST_PLUGINS_NO="\tlibvisual\n$GST_PLUGINS_NO"
35165  fi
35166  :
35167fi
35168 if test x$USE_LIBVISUAL = xyes; then
35169  USE_LIBVISUAL_TRUE=
35170  USE_LIBVISUAL_FALSE='#'
35171else
35172  USE_LIBVISUAL_TRUE='#'
35173  USE_LIBVISUAL_FALSE=
35174fi
35175
35176
35177
35178echo
35179{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Xiph Ogg library ***" >&5
35180$as_echo "$as_me: *** checking feature: Xiph Ogg library ***" >&6;}
35181if test "xogg" != "x"
35182then
35183  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ogg ***" >&5
35184$as_echo "$as_me: *** for plug-ins: ogg ***" >&6;}
35185fi
35186NOUSE=
35187if test "x$USE_OGG" = "xno"; then
35188  NOUSE="yes"
35189fi
35190# Check whether --enable-ogg was given.
35191if test "${enable_ogg+set}" = set; then :
35192  enableval=$enable_ogg;  case "${enableval}" in
35193      yes) USE_OGG=yes;;
35194      no) USE_OGG=no;;
35195      *) as_fn_error $? "bad value ${enableval} for --enable-ogg" "$LINENO" 5 ;;
35196    esac
35197else
35198   USE_OGG=yes
35199fi
35200
35201if test "x$NOUSE" = "xyes"; then
35202  USE_OGG="no"
35203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ogg pre-configured not to be built" >&5
35204$as_echo "$as_me: WARNING: *** ogg pre-configured not to be built" >&2;}
35205fi
35206NOUSE=
35207
35208if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OGG " > /dev/null; then
35209  USE_OGG="no"
35210  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ogg not ported" >&5
35211$as_echo "$as_me: WARNING: *** ogg not ported" >&2;}
35212fi
35213
35214
35215if test x$USE_OGG = xyes; then
35216
35217  gst_check_save_LIBS=$LIBS
35218  gst_check_save_LDFLAGS=$LDFLAGS
35219  gst_check_save_CFLAGS=$CFLAGS
35220  gst_check_save_CPPFLAGS=$CPPFLAGS
35221  gst_check_save_CXXFLAGS=$CXXFLAGS
35222
35223  HAVE_OGG=no
35224
35225
35226  which="ogg >= 1.0"
35227    required="no"
35228
35229
35230pkg_failed=no
35231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
35232$as_echo_n "checking for OGG... " >&6; }
35233
35234if test -n "$PKG_CONFIG"; then
35235    if test -n "$OGG_CFLAGS"; then
35236        pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
35237    else
35238        if test -n "$PKG_CONFIG" && \
35239    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35240  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35241  ac_status=$?
35242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35243  test $ac_status = 0; }; then
35244  pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
35245else
35246  pkg_failed=yes
35247fi
35248    fi
35249else
35250	pkg_failed=untried
35251fi
35252if test -n "$PKG_CONFIG"; then
35253    if test -n "$OGG_LIBS"; then
35254        pkg_cv_OGG_LIBS="$OGG_LIBS"
35255    else
35256        if test -n "$PKG_CONFIG" && \
35257    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35258  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35259  ac_status=$?
35260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35261  test $ac_status = 0; }; then
35262  pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
35263else
35264  pkg_failed=yes
35265fi
35266    fi
35267else
35268	pkg_failed=untried
35269fi
35270
35271
35272
35273if test $pkg_failed = yes; then
35274
35275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35276        _pkg_short_errors_supported=yes
35277else
35278        _pkg_short_errors_supported=no
35279fi
35280        if test $_pkg_short_errors_supported = yes; then
35281	        OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
35282        else
35283	        OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
35284        fi
35285	# Put the nasty error message in config.log where it belongs
35286	echo "$OGG_PKG_ERRORS" >&5
35287
35288	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35289$as_echo "no" >&6; }
35290
35291      HAVE_OGG="no"
35292      if test "x$required" = "xyes"; then
35293        as_fn_error $? "$OGG_PKG_ERRORS" "$LINENO" 5
35294      else
35295        { $as_echo "$as_me:${as_lineno-$LINENO}: $OGG_PKG_ERRORS" >&5
35296$as_echo "$as_me: $OGG_PKG_ERRORS" >&6;}
35297      fi
35298
35299elif test $pkg_failed = untried; then
35300
35301      HAVE_OGG="no"
35302      if test "x$required" = "xyes"; then
35303        as_fn_error $? "$OGG_PKG_ERRORS" "$LINENO" 5
35304      else
35305        { $as_echo "$as_me:${as_lineno-$LINENO}: $OGG_PKG_ERRORS" >&5
35306$as_echo "$as_me: $OGG_PKG_ERRORS" >&6;}
35307      fi
35308
35309else
35310	OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
35311	OGG_LIBS=$pkg_cv_OGG_LIBS
35312        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35313$as_echo "yes" >&6; }
35314
35315      HAVE_OGG="yes"
35316
35317fi
35318
35319
35320
35321
35322  LIBS=$gst_check_save_LIBS
35323  LDFLAGS=$gst_check_save_LDFLAGS
35324  CFLAGS=$gst_check_save_CFLAGS
35325  CPPFLAGS=$gst_check_save_CPPFLAGS
35326  CXXFLAGS=$gst_check_save_CXXFLAGS
35327
35328    if test x$HAVE_OGG = xno; then
35329    USE_OGG=no
35330  else
35331    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ogg" >&5
35332$as_echo "$as_me: *** These plugins will be built: ogg" >&6;}
35333  fi
35334fi
35335if test x$USE_OGG = xyes; then
35336  :
35337  if test "xogg" != "x"; then
35338    GST_PLUGINS_YES="\togg\n$GST_PLUGINS_YES"
35339  fi
35340
35341$as_echo "#define HAVE_OGG /**/" >>confdefs.h
35342
35343else
35344  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ogg" >&5
35345$as_echo "$as_me: *** These plugins will not be built: ogg" >&6;}
35346  if test "xogg" != "x"; then
35347    GST_PLUGINS_NO="\togg\n$GST_PLUGINS_NO"
35348  fi
35349  :
35350fi
35351 if test x$USE_OGG = xyes; then
35352  USE_OGG_TRUE=
35353  USE_OGG_FALSE='#'
35354else
35355  USE_OGG_TRUE='#'
35356  USE_OGG_FALSE=
35357fi
35358
35359
35360
35361echo
35362{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: opus ***" >&5
35363$as_echo "$as_me: *** checking feature: opus ***" >&6;}
35364if test "xopus" != "x"
35365then
35366  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: opus ***" >&5
35367$as_echo "$as_me: *** for plug-ins: opus ***" >&6;}
35368fi
35369NOUSE=
35370if test "x$USE_OPUS" = "xno"; then
35371  NOUSE="yes"
35372fi
35373# Check whether --enable-opus was given.
35374if test "${enable_opus+set}" = set; then :
35375  enableval=$enable_opus;  case "${enableval}" in
35376      yes) USE_OPUS=yes;;
35377      no) USE_OPUS=no;;
35378      *) as_fn_error $? "bad value ${enableval} for --enable-opus" "$LINENO" 5 ;;
35379    esac
35380else
35381   USE_OPUS=yes
35382fi
35383
35384if test "x$NOUSE" = "xyes"; then
35385  USE_OPUS="no"
35386  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opus pre-configured not to be built" >&5
35387$as_echo "$as_me: WARNING: *** opus pre-configured not to be built" >&2;}
35388fi
35389NOUSE=
35390
35391if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPUS " > /dev/null; then
35392  USE_OPUS="no"
35393  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opus not ported" >&5
35394$as_echo "$as_me: WARNING: *** opus not ported" >&2;}
35395fi
35396
35397
35398if test x$USE_OPUS = xyes; then
35399
35400  gst_check_save_LIBS=$LIBS
35401  gst_check_save_LDFLAGS=$LDFLAGS
35402  gst_check_save_CFLAGS=$CFLAGS
35403  gst_check_save_CPPFLAGS=$CPPFLAGS
35404  gst_check_save_CXXFLAGS=$CXXFLAGS
35405
35406  HAVE_OPUS=no
35407
35408
35409pkg_failed=no
35410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUS" >&5
35411$as_echo_n "checking for OPUS... " >&6; }
35412
35413if test -n "$PKG_CONFIG"; then
35414    if test -n "$OPUS_CFLAGS"; then
35415        pkg_cv_OPUS_CFLAGS="$OPUS_CFLAGS"
35416    else
35417        if test -n "$PKG_CONFIG" && \
35418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 0.9.4\""; } >&5
35419  ($PKG_CONFIG --exists --print-errors "opus >= 0.9.4") 2>&5
35420  ac_status=$?
35421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35422  test $ac_status = 0; }; then
35423  pkg_cv_OPUS_CFLAGS=`$PKG_CONFIG --cflags "opus >= 0.9.4" 2>/dev/null`
35424else
35425  pkg_failed=yes
35426fi
35427    fi
35428else
35429	pkg_failed=untried
35430fi
35431if test -n "$PKG_CONFIG"; then
35432    if test -n "$OPUS_LIBS"; then
35433        pkg_cv_OPUS_LIBS="$OPUS_LIBS"
35434    else
35435        if test -n "$PKG_CONFIG" && \
35436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 0.9.4\""; } >&5
35437  ($PKG_CONFIG --exists --print-errors "opus >= 0.9.4") 2>&5
35438  ac_status=$?
35439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35440  test $ac_status = 0; }; then
35441  pkg_cv_OPUS_LIBS=`$PKG_CONFIG --libs "opus >= 0.9.4" 2>/dev/null`
35442else
35443  pkg_failed=yes
35444fi
35445    fi
35446else
35447	pkg_failed=untried
35448fi
35449
35450
35451
35452if test $pkg_failed = yes; then
35453
35454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35455        _pkg_short_errors_supported=yes
35456else
35457        _pkg_short_errors_supported=no
35458fi
35459        if test $_pkg_short_errors_supported = yes; then
35460	        OPUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opus >= 0.9.4"`
35461        else
35462	        OPUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opus >= 0.9.4"`
35463        fi
35464	# Put the nasty error message in config.log where it belongs
35465	echo "$OPUS_PKG_ERRORS" >&5
35466
35467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35468$as_echo "no" >&6; }
35469
35470          HAVE_OPUS="no"
35471
35472elif test $pkg_failed = untried; then
35473
35474          HAVE_OPUS="no"
35475
35476else
35477	OPUS_CFLAGS=$pkg_cv_OPUS_CFLAGS
35478	OPUS_LIBS=$pkg_cv_OPUS_LIBS
35479        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35480$as_echo "yes" >&6; }
35481
35482
35483$as_echo "#define HAVE_OPUS 1" >>confdefs.h
35484
35485          HAVE_OPUS="yes"
35486
35487fi
35488
35489
35490
35491
35492  LIBS=$gst_check_save_LIBS
35493  LDFLAGS=$gst_check_save_LDFLAGS
35494  CFLAGS=$gst_check_save_CFLAGS
35495  CPPFLAGS=$gst_check_save_CPPFLAGS
35496  CXXFLAGS=$gst_check_save_CXXFLAGS
35497
35498    if test x$HAVE_OPUS = xno; then
35499    USE_OPUS=no
35500  else
35501    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: opus" >&5
35502$as_echo "$as_me: *** These plugins will be built: opus" >&6;}
35503  fi
35504fi
35505if test x$USE_OPUS = xyes; then
35506  :
35507  if test "xopus" != "x"; then
35508    GST_PLUGINS_YES="\topus\n$GST_PLUGINS_YES"
35509  fi
35510
35511$as_echo "#define HAVE_OPUS /**/" >>confdefs.h
35512
35513else
35514  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: opus" >&5
35515$as_echo "$as_me: *** These plugins will not be built: opus" >&6;}
35516  if test "xopus" != "x"; then
35517    GST_PLUGINS_NO="\topus\n$GST_PLUGINS_NO"
35518  fi
35519  :
35520fi
35521 if test x$USE_OPUS = xyes; then
35522  USE_OPUS_TRUE=
35523  USE_OPUS_FALSE='#'
35524else
35525  USE_OPUS_TRUE='#'
35526  USE_OPUS_FALSE=
35527fi
35528
35529
35530
35531echo
35532{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Pango font rendering ***" >&5
35533$as_echo "$as_me: *** checking feature: Pango font rendering ***" >&6;}
35534if test "xpango" != "x"
35535then
35536  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: pango ***" >&5
35537$as_echo "$as_me: *** for plug-ins: pango ***" >&6;}
35538fi
35539NOUSE=
35540if test "x$USE_PANGO" = "xno"; then
35541  NOUSE="yes"
35542fi
35543# Check whether --enable-pango was given.
35544if test "${enable_pango+set}" = set; then :
35545  enableval=$enable_pango;  case "${enableval}" in
35546      yes) USE_PANGO=yes;;
35547      no) USE_PANGO=no;;
35548      *) as_fn_error $? "bad value ${enableval} for --enable-pango" "$LINENO" 5 ;;
35549    esac
35550else
35551   USE_PANGO=yes
35552fi
35553
35554if test "x$NOUSE" = "xyes"; then
35555  USE_PANGO="no"
35556  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pango pre-configured not to be built" >&5
35557$as_echo "$as_me: WARNING: *** pango pre-configured not to be built" >&2;}
35558fi
35559NOUSE=
35560
35561if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " PANGO " > /dev/null; then
35562  USE_PANGO="no"
35563  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pango not ported" >&5
35564$as_echo "$as_me: WARNING: *** pango not ported" >&2;}
35565fi
35566
35567
35568if test x$USE_PANGO = xyes; then
35569
35570  gst_check_save_LIBS=$LIBS
35571  gst_check_save_LDFLAGS=$LDFLAGS
35572  gst_check_save_CFLAGS=$CFLAGS
35573  gst_check_save_CPPFLAGS=$CPPFLAGS
35574  gst_check_save_CXXFLAGS=$CXXFLAGS
35575
35576  HAVE_PANGO=no
35577
35578
35579  which="pango >= 1.22.0  pangocairo >= 1.22.0"
35580    required="no"
35581
35582
35583pkg_failed=no
35584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
35585$as_echo_n "checking for PANGO... " >&6; }
35586
35587if test -n "$PKG_CONFIG"; then
35588    if test -n "$PANGO_CFLAGS"; then
35589        pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
35590    else
35591        if test -n "$PKG_CONFIG" && \
35592    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35593  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35594  ac_status=$?
35595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35596  test $ac_status = 0; }; then
35597  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
35598else
35599  pkg_failed=yes
35600fi
35601    fi
35602else
35603	pkg_failed=untried
35604fi
35605if test -n "$PKG_CONFIG"; then
35606    if test -n "$PANGO_LIBS"; then
35607        pkg_cv_PANGO_LIBS="$PANGO_LIBS"
35608    else
35609        if test -n "$PKG_CONFIG" && \
35610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35611  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35612  ac_status=$?
35613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35614  test $ac_status = 0; }; then
35615  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
35616else
35617  pkg_failed=yes
35618fi
35619    fi
35620else
35621	pkg_failed=untried
35622fi
35623
35624
35625
35626if test $pkg_failed = yes; then
35627
35628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35629        _pkg_short_errors_supported=yes
35630else
35631        _pkg_short_errors_supported=no
35632fi
35633        if test $_pkg_short_errors_supported = yes; then
35634	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
35635        else
35636	        PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
35637        fi
35638	# Put the nasty error message in config.log where it belongs
35639	echo "$PANGO_PKG_ERRORS" >&5
35640
35641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35642$as_echo "no" >&6; }
35643
35644      HAVE_PANGO="no"
35645      if test "x$required" = "xyes"; then
35646        as_fn_error $? "$PANGO_PKG_ERRORS" "$LINENO" 5
35647      else
35648        { $as_echo "$as_me:${as_lineno-$LINENO}: $PANGO_PKG_ERRORS" >&5
35649$as_echo "$as_me: $PANGO_PKG_ERRORS" >&6;}
35650      fi
35651
35652elif test $pkg_failed = untried; then
35653
35654      HAVE_PANGO="no"
35655      if test "x$required" = "xyes"; then
35656        as_fn_error $? "$PANGO_PKG_ERRORS" "$LINENO" 5
35657      else
35658        { $as_echo "$as_me:${as_lineno-$LINENO}: $PANGO_PKG_ERRORS" >&5
35659$as_echo "$as_me: $PANGO_PKG_ERRORS" >&6;}
35660      fi
35661
35662else
35663	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
35664	PANGO_LIBS=$pkg_cv_PANGO_LIBS
35665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35666$as_echo "yes" >&6; }
35667
35668      HAVE_PANGO="yes"
35669
35670fi
35671
35672
35673
35674
35675  LIBS=$gst_check_save_LIBS
35676  LDFLAGS=$gst_check_save_LDFLAGS
35677  CFLAGS=$gst_check_save_CFLAGS
35678  CPPFLAGS=$gst_check_save_CPPFLAGS
35679  CXXFLAGS=$gst_check_save_CXXFLAGS
35680
35681    if test x$HAVE_PANGO = xno; then
35682    USE_PANGO=no
35683  else
35684    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: pango" >&5
35685$as_echo "$as_me: *** These plugins will be built: pango" >&6;}
35686  fi
35687fi
35688if test x$USE_PANGO = xyes; then
35689  :
35690  if test "xpango" != "x"; then
35691    GST_PLUGINS_YES="\tpango\n$GST_PLUGINS_YES"
35692  fi
35693
35694$as_echo "#define HAVE_PANGO /**/" >>confdefs.h
35695
35696else
35697  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: pango" >&5
35698$as_echo "$as_me: *** These plugins will not be built: pango" >&6;}
35699  if test "xpango" != "x"; then
35700    GST_PLUGINS_NO="\tpango\n$GST_PLUGINS_NO"
35701  fi
35702  :
35703fi
35704 if test x$USE_PANGO = xyes; then
35705  USE_PANGO_TRUE=
35706  USE_PANGO_FALSE='#'
35707else
35708  USE_PANGO_TRUE='#'
35709  USE_PANGO_FALSE=
35710fi
35711
35712
35713
35714echo
35715{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Xiph Theora video codec ***" >&5
35716$as_echo "$as_me: *** checking feature: Xiph Theora video codec ***" >&6;}
35717if test "xtheora" != "x"
35718then
35719  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: theora ***" >&5
35720$as_echo "$as_me: *** for plug-ins: theora ***" >&6;}
35721fi
35722NOUSE=
35723if test "x$USE_THEORA" = "xno"; then
35724  NOUSE="yes"
35725fi
35726# Check whether --enable-theora was given.
35727if test "${enable_theora+set}" = set; then :
35728  enableval=$enable_theora;  case "${enableval}" in
35729      yes) USE_THEORA=yes;;
35730      no) USE_THEORA=no;;
35731      *) as_fn_error $? "bad value ${enableval} for --enable-theora" "$LINENO" 5 ;;
35732    esac
35733else
35734   USE_THEORA=yes
35735fi
35736
35737if test "x$NOUSE" = "xyes"; then
35738  USE_THEORA="no"
35739  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** theora pre-configured not to be built" >&5
35740$as_echo "$as_me: WARNING: *** theora pre-configured not to be built" >&2;}
35741fi
35742NOUSE=
35743
35744if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " THEORA " > /dev/null; then
35745  USE_THEORA="no"
35746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** theora not ported" >&5
35747$as_echo "$as_me: WARNING: *** theora not ported" >&2;}
35748fi
35749
35750
35751if test x$USE_THEORA = xyes; then
35752
35753  gst_check_save_LIBS=$LIBS
35754  gst_check_save_LDFLAGS=$LDFLAGS
35755  gst_check_save_CFLAGS=$CFLAGS
35756  gst_check_save_CPPFLAGS=$CPPFLAGS
35757  gst_check_save_CXXFLAGS=$CXXFLAGS
35758
35759  HAVE_THEORA=no
35760
35761
35762  which="theoradec >= 1.1 theoraenc >= 1.1"
35763    required="no"
35764
35765
35766pkg_failed=no
35767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for THEORA" >&5
35768$as_echo_n "checking for THEORA... " >&6; }
35769
35770if test -n "$PKG_CONFIG"; then
35771    if test -n "$THEORA_CFLAGS"; then
35772        pkg_cv_THEORA_CFLAGS="$THEORA_CFLAGS"
35773    else
35774        if test -n "$PKG_CONFIG" && \
35775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35776  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35777  ac_status=$?
35778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35779  test $ac_status = 0; }; then
35780  pkg_cv_THEORA_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
35781else
35782  pkg_failed=yes
35783fi
35784    fi
35785else
35786	pkg_failed=untried
35787fi
35788if test -n "$PKG_CONFIG"; then
35789    if test -n "$THEORA_LIBS"; then
35790        pkg_cv_THEORA_LIBS="$THEORA_LIBS"
35791    else
35792        if test -n "$PKG_CONFIG" && \
35793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35794  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35795  ac_status=$?
35796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35797  test $ac_status = 0; }; then
35798  pkg_cv_THEORA_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
35799else
35800  pkg_failed=yes
35801fi
35802    fi
35803else
35804	pkg_failed=untried
35805fi
35806
35807
35808
35809if test $pkg_failed = yes; then
35810
35811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35812        _pkg_short_errors_supported=yes
35813else
35814        _pkg_short_errors_supported=no
35815fi
35816        if test $_pkg_short_errors_supported = yes; then
35817	        THEORA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
35818        else
35819	        THEORA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
35820        fi
35821	# Put the nasty error message in config.log where it belongs
35822	echo "$THEORA_PKG_ERRORS" >&5
35823
35824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35825$as_echo "no" >&6; }
35826
35827      HAVE_THEORA="no"
35828      if test "x$required" = "xyes"; then
35829        as_fn_error $? "$THEORA_PKG_ERRORS" "$LINENO" 5
35830      else
35831        { $as_echo "$as_me:${as_lineno-$LINENO}: $THEORA_PKG_ERRORS" >&5
35832$as_echo "$as_me: $THEORA_PKG_ERRORS" >&6;}
35833      fi
35834
35835elif test $pkg_failed = untried; then
35836
35837      HAVE_THEORA="no"
35838      if test "x$required" = "xyes"; then
35839        as_fn_error $? "$THEORA_PKG_ERRORS" "$LINENO" 5
35840      else
35841        { $as_echo "$as_me:${as_lineno-$LINENO}: $THEORA_PKG_ERRORS" >&5
35842$as_echo "$as_me: $THEORA_PKG_ERRORS" >&6;}
35843      fi
35844
35845else
35846	THEORA_CFLAGS=$pkg_cv_THEORA_CFLAGS
35847	THEORA_LIBS=$pkg_cv_THEORA_LIBS
35848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35849$as_echo "yes" >&6; }
35850
35851      HAVE_THEORA="yes"
35852
35853fi
35854
35855
35856
35857
35858  LIBS=$gst_check_save_LIBS
35859  LDFLAGS=$gst_check_save_LDFLAGS
35860  CFLAGS=$gst_check_save_CFLAGS
35861  CPPFLAGS=$gst_check_save_CPPFLAGS
35862  CXXFLAGS=$gst_check_save_CXXFLAGS
35863
35864    if test x$HAVE_THEORA = xno; then
35865    USE_THEORA=no
35866  else
35867    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: theora" >&5
35868$as_echo "$as_me: *** These plugins will be built: theora" >&6;}
35869  fi
35870fi
35871if test x$USE_THEORA = xyes; then
35872  :
35873  if test "xtheora" != "x"; then
35874    GST_PLUGINS_YES="\ttheora\n$GST_PLUGINS_YES"
35875  fi
35876
35877$as_echo "#define HAVE_THEORA /**/" >>confdefs.h
35878
35879else
35880  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: theora" >&5
35881$as_echo "$as_me: *** These plugins will not be built: theora" >&6;}
35882  if test "xtheora" != "x"; then
35883    GST_PLUGINS_NO="\ttheora\n$GST_PLUGINS_NO"
35884  fi
35885  :
35886fi
35887 if test x$USE_THEORA = xyes; then
35888  USE_THEORA_TRUE=
35889  USE_THEORA_FALSE='#'
35890else
35891  USE_THEORA_TRUE='#'
35892  USE_THEORA_FALSE=
35893fi
35894
35895
35896
35897echo
35898{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Xiph Vorbis audio codec ***" >&5
35899$as_echo "$as_me: *** checking feature: Xiph Vorbis audio codec ***" >&6;}
35900if test "xvorbis" != "x"
35901then
35902  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vorbis ***" >&5
35903$as_echo "$as_me: *** for plug-ins: vorbis ***" >&6;}
35904fi
35905NOUSE=
35906if test "x$USE_VORBIS" = "xno"; then
35907  NOUSE="yes"
35908fi
35909# Check whether --enable-vorbis was given.
35910if test "${enable_vorbis+set}" = set; then :
35911  enableval=$enable_vorbis;  case "${enableval}" in
35912      yes) USE_VORBIS=yes;;
35913      no) USE_VORBIS=no;;
35914      *) as_fn_error $? "bad value ${enableval} for --enable-vorbis" "$LINENO" 5 ;;
35915    esac
35916else
35917   USE_VORBIS=yes
35918fi
35919
35920if test "x$NOUSE" = "xyes"; then
35921  USE_VORBIS="no"
35922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vorbis pre-configured not to be built" >&5
35923$as_echo "$as_me: WARNING: *** vorbis pre-configured not to be built" >&2;}
35924fi
35925NOUSE=
35926
35927if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VORBIS " > /dev/null; then
35928  USE_VORBIS="no"
35929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vorbis not ported" >&5
35930$as_echo "$as_me: WARNING: *** vorbis not ported" >&2;}
35931fi
35932
35933
35934if test x$USE_VORBIS = xyes; then
35935
35936  gst_check_save_LIBS=$LIBS
35937  gst_check_save_LDFLAGS=$LDFLAGS
35938  gst_check_save_CFLAGS=$CFLAGS
35939  gst_check_save_CPPFLAGS=$CPPFLAGS
35940  gst_check_save_CXXFLAGS=$CXXFLAGS
35941
35942  HAVE_VORBIS=no
35943
35944
35945  which="vorbis >= 1.0 vorbisenc >= 1.0"
35946    required="no"
35947
35948
35949pkg_failed=no
35950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VORBIS" >&5
35951$as_echo_n "checking for VORBIS... " >&6; }
35952
35953if test -n "$PKG_CONFIG"; then
35954    if test -n "$VORBIS_CFLAGS"; then
35955        pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
35956    else
35957        if test -n "$PKG_CONFIG" && \
35958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35959  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35960  ac_status=$?
35961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35962  test $ac_status = 0; }; then
35963  pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
35964else
35965  pkg_failed=yes
35966fi
35967    fi
35968else
35969	pkg_failed=untried
35970fi
35971if test -n "$PKG_CONFIG"; then
35972    if test -n "$VORBIS_LIBS"; then
35973        pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
35974    else
35975        if test -n "$PKG_CONFIG" && \
35976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
35977  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
35978  ac_status=$?
35979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35980  test $ac_status = 0; }; then
35981  pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
35982else
35983  pkg_failed=yes
35984fi
35985    fi
35986else
35987	pkg_failed=untried
35988fi
35989
35990
35991
35992if test $pkg_failed = yes; then
35993
35994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35995        _pkg_short_errors_supported=yes
35996else
35997        _pkg_short_errors_supported=no
35998fi
35999        if test $_pkg_short_errors_supported = yes; then
36000	        VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
36001        else
36002	        VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
36003        fi
36004	# Put the nasty error message in config.log where it belongs
36005	echo "$VORBIS_PKG_ERRORS" >&5
36006
36007	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36008$as_echo "no" >&6; }
36009
36010      HAVE_VORBIS="no"
36011      if test "x$required" = "xyes"; then
36012        as_fn_error $? "$VORBIS_PKG_ERRORS" "$LINENO" 5
36013      else
36014        { $as_echo "$as_me:${as_lineno-$LINENO}: $VORBIS_PKG_ERRORS" >&5
36015$as_echo "$as_me: $VORBIS_PKG_ERRORS" >&6;}
36016      fi
36017
36018elif test $pkg_failed = untried; then
36019
36020      HAVE_VORBIS="no"
36021      if test "x$required" = "xyes"; then
36022        as_fn_error $? "$VORBIS_PKG_ERRORS" "$LINENO" 5
36023      else
36024        { $as_echo "$as_me:${as_lineno-$LINENO}: $VORBIS_PKG_ERRORS" >&5
36025$as_echo "$as_me: $VORBIS_PKG_ERRORS" >&6;}
36026      fi
36027
36028else
36029	VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
36030	VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
36031        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36032$as_echo "yes" >&6; }
36033
36034      HAVE_VORBIS="yes"
36035
36036fi
36037
36038
36039
36040
36041  LIBS=$gst_check_save_LIBS
36042  LDFLAGS=$gst_check_save_LDFLAGS
36043  CFLAGS=$gst_check_save_CFLAGS
36044  CPPFLAGS=$gst_check_save_CPPFLAGS
36045  CXXFLAGS=$gst_check_save_CXXFLAGS
36046
36047    if test x$HAVE_VORBIS = xno; then
36048    USE_VORBIS=no
36049  else
36050    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vorbis" >&5
36051$as_echo "$as_me: *** These plugins will be built: vorbis" >&6;}
36052  fi
36053fi
36054if test x$USE_VORBIS = xyes; then
36055  :
36056  if test "xvorbis" != "x"; then
36057    GST_PLUGINS_YES="\tvorbis\n$GST_PLUGINS_YES"
36058  fi
36059
36060$as_echo "#define HAVE_VORBIS /**/" >>confdefs.h
36061
36062else
36063  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vorbis" >&5
36064$as_echo "$as_me: *** These plugins will not be built: vorbis" >&6;}
36065  if test "xvorbis" != "x"; then
36066    GST_PLUGINS_NO="\tvorbis\n$GST_PLUGINS_NO"
36067  fi
36068  :
36069fi
36070 if test x$USE_VORBIS = xyes; then
36071  USE_VORBIS_TRUE=
36072  USE_VORBIS_FALSE='#'
36073else
36074  USE_VORBIS_TRUE='#'
36075  USE_VORBIS_FALSE=
36076fi
36077
36078
36079
36080if test "x$HAVE_VORBIS" = "xyes"; then
36081  ac_cflags_save="$CFLAGS"
36082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36083/* end confdefs.h.  */
36084
36085
36086#include <vorbis/codec.h>
36087
36088int
36089main ()
36090{
36091
36092vorbis_dsp_state *v;
36093
36094vorbis_synthesis_restart (v);
36095
36096  ;
36097  return 0;
36098}
36099_ACEOF
36100if ac_fn_c_try_compile "$LINENO"; then :
36101  HAVE_VSR=yes
36102else
36103  HAVE_VSR=no
36104fi
36105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36106  if test "x$HAVE_VSR" = "xyes"; then
36107
36108cat >>confdefs.h <<_ACEOF
36109#define HAVE_VORBIS_SYNTHESIS_RESTART 1
36110_ACEOF
36111
36112  fi
36113  CFLAGS="$ac_cflags_save"
36114fi
36115
36116else
36117
36118 if false; then
36119  USE_ALSA_TRUE=
36120  USE_ALSA_FALSE='#'
36121else
36122  USE_ALSA_TRUE='#'
36123  USE_ALSA_FALSE=
36124fi
36125
36126 if false; then
36127  USE_CDPARANOIA_TRUE=
36128  USE_CDPARANOIA_FALSE='#'
36129else
36130  USE_CDPARANOIA_TRUE='#'
36131  USE_CDPARANOIA_FALSE=
36132fi
36133
36134 if false; then
36135  USE_GL_TRUE=
36136  USE_GL_FALSE='#'
36137else
36138  USE_GL_TRUE='#'
36139  USE_GL_FALSE=
36140fi
36141
36142 if false; then
36143  USE_IVORBIS_TRUE=
36144  USE_IVORBIS_FALSE='#'
36145else
36146  USE_IVORBIS_TRUE='#'
36147  USE_IVORBIS_FALSE=
36148fi
36149
36150 if false; then
36151  USE_LIBVISUAL_TRUE=
36152  USE_LIBVISUAL_FALSE='#'
36153else
36154  USE_LIBVISUAL_TRUE='#'
36155  USE_LIBVISUAL_FALSE=
36156fi
36157
36158 if false; then
36159  USE_OGG_TRUE=
36160  USE_OGG_FALSE='#'
36161else
36162  USE_OGG_TRUE='#'
36163  USE_OGG_FALSE=
36164fi
36165
36166 if false; then
36167  USE_OPUS_TRUE=
36168  USE_OPUS_FALSE='#'
36169else
36170  USE_OPUS_TRUE='#'
36171  USE_OPUS_FALSE=
36172fi
36173
36174 if false; then
36175  USE_PANGO_TRUE=
36176  USE_PANGO_FALSE='#'
36177else
36178  USE_PANGO_TRUE='#'
36179  USE_PANGO_FALSE=
36180fi
36181
36182 if false; then
36183  USE_THEORA_TRUE=
36184  USE_THEORA_FALSE='#'
36185else
36186  USE_THEORA_TRUE='#'
36187  USE_THEORA_FALSE=
36188fi
36189
36190 if false; then
36191  USE_VORBIS_TRUE=
36192  USE_VORBIS_FALSE='#'
36193else
36194  USE_VORBIS_TRUE='#'
36195  USE_VORBIS_FALSE=
36196fi
36197
36198
36199fi
36200 if test "x$HAVE_GRAPHENE" = "xyes"; then
36201  HAVE_GRAPHENE_TRUE=
36202  HAVE_GRAPHENE_FALSE='#'
36203else
36204  HAVE_GRAPHENE_TRUE='#'
36205  HAVE_GRAPHENE_FALSE=
36206fi
36207
36208 if test "x$HAVE_PNG" = "xyes"; then
36209  HAVE_PNG_TRUE=
36210  HAVE_PNG_FALSE='#'
36211else
36212  HAVE_PNG_TRUE='#'
36213  HAVE_PNG_FALSE=
36214fi
36215
36216 if test "x$HAVE_JPEG" = "xyes"; then
36217  HAVE_JPEG_TRUE=
36218  HAVE_JPEG_FALSE='#'
36219else
36220  HAVE_JPEG_TRUE='#'
36221  HAVE_JPEG_FALSE=
36222fi
36223
36224
36225
36226pkg_failed=no
36227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX_2_0" >&5
36228$as_echo_n "checking for GIO_UNIX_2_0... " >&6; }
36229
36230if test -n "$PKG_CONFIG"; then
36231    if test -n "$GIO_UNIX_2_0_CFLAGS"; then
36232        pkg_cv_GIO_UNIX_2_0_CFLAGS="$GIO_UNIX_2_0_CFLAGS"
36233    else
36234        if test -n "$PKG_CONFIG" && \
36235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.24\""; } >&5
36236  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.24") 2>&5
36237  ac_status=$?
36238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36239  test $ac_status = 0; }; then
36240  pkg_cv_GIO_UNIX_2_0_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0 >= 2.24" 2>/dev/null`
36241else
36242  pkg_failed=yes
36243fi
36244    fi
36245else
36246	pkg_failed=untried
36247fi
36248if test -n "$PKG_CONFIG"; then
36249    if test -n "$GIO_UNIX_2_0_LIBS"; then
36250        pkg_cv_GIO_UNIX_2_0_LIBS="$GIO_UNIX_2_0_LIBS"
36251    else
36252        if test -n "$PKG_CONFIG" && \
36253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.24\""; } >&5
36254  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.24") 2>&5
36255  ac_status=$?
36256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36257  test $ac_status = 0; }; then
36258  pkg_cv_GIO_UNIX_2_0_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0 >= 2.24" 2>/dev/null`
36259else
36260  pkg_failed=yes
36261fi
36262    fi
36263else
36264	pkg_failed=untried
36265fi
36266
36267
36268
36269if test $pkg_failed = yes; then
36270
36271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36272        _pkg_short_errors_supported=yes
36273else
36274        _pkg_short_errors_supported=no
36275fi
36276        if test $_pkg_short_errors_supported = yes; then
36277	        GIO_UNIX_2_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-unix-2.0 >= 2.24"`
36278        else
36279	        GIO_UNIX_2_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-unix-2.0 >= 2.24"`
36280        fi
36281	# Put the nasty error message in config.log where it belongs
36282	echo "$GIO_UNIX_2_0_PKG_ERRORS" >&5
36283
36284	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36285$as_echo "no" >&6; }
36286                HAVE_GIO_UNIX_2_0="no"
36287elif test $pkg_failed = untried; then
36288	HAVE_GIO_UNIX_2_0="no"
36289else
36290	GIO_UNIX_2_0_CFLAGS=$pkg_cv_GIO_UNIX_2_0_CFLAGS
36291	GIO_UNIX_2_0_LIBS=$pkg_cv_GIO_UNIX_2_0_LIBS
36292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36293$as_echo "yes" >&6; }
36294	HAVE_GIO_UNIX_2_0="yes"
36295fi
36296 if test "x$HAVE_GIO_UNIX_2_0" = "xyes"; then
36297  USE_GIO_UNIX_2_0_TRUE=
36298  USE_GIO_UNIX_2_0_FALSE='#'
36299else
36300  USE_GIO_UNIX_2_0_TRUE='#'
36301  USE_GIO_UNIX_2_0_FALSE=
36302fi
36303
36304
36305
36306
36307if test "x$USE_DEBUG" = xyes; then
36308   PROFILE_CFLAGS="-g"
36309fi
36310
36311
36312if test "x$PACKAGE_VERSION_NANO" = "x1"; then
36313    DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
36314else
36315  DEPRECATED_CFLAGS=""
36316fi
36317
36318
36319VISIBILITY_CFLAGS=""
36320
36321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fvisibility=hidden" >&5
36322$as_echo_n "checking to see if compiler understands -fvisibility=hidden... " >&6; }
36323
36324  save_CFLAGS="$CFLAGS"
36325  CFLAGS="$CFLAGS -fvisibility=hidden"
36326
36327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36328/* end confdefs.h.  */
36329
36330int
36331main ()
36332{
36333
36334  ;
36335  return 0;
36336}
36337_ACEOF
36338if ac_fn_c_try_compile "$LINENO"; then :
36339  flag_ok=yes
36340else
36341  flag_ok=no
36342fi
36343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36344  CFLAGS="$save_CFLAGS"
36345
36346  if test "X$flag_ok" = Xyes ; then
36347
36348  VISIBILITY_CFLAGS="-fvisibility=hidden"
36349
36350$as_echo "#define GST_API_EXPORT extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
36351
36352
36353    true
36354  else
36355
36356  VISIBILITY_CFLAGS=""
36357
36358$as_echo "#define GST_API_EXPORT extern" >>confdefs.h
36359
36360
36361    true
36362  fi
36363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
36364$as_echo "$flag_ok" >&6; }
36365
36366
36367
36368VISIBILITY_CXXFLAGS=""
36369if test "x$HAVE_CXX" = "xyes"; then
36370
36371
36372
36373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -fvisibility=hidden" >&5
36374$as_echo_n "checking to see if c++ compiler understands -fvisibility=hidden... " >&6; }
36375
36376  save_CPPFLAGS="$CPPFLAGS"
36377  CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
36378
36379  ac_ext=cpp
36380ac_cpp='$CXXCPP $CPPFLAGS'
36381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36384
36385
36386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36387/* end confdefs.h.  */
36388
36389int
36390main ()
36391{
36392
36393  ;
36394  return 0;
36395}
36396_ACEOF
36397if ac_fn_cxx_try_compile "$LINENO"; then :
36398  flag_ok=yes
36399else
36400  flag_ok=no
36401fi
36402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36403  CPPFLAGS="$save_CPPFLAGS"
36404
36405  if test "X$flag_ok" = Xyes ; then
36406    VISIBILITY_CXXFLAGS="-fvisibility=hidden"
36407    true
36408  else
36409
36410    true
36411  fi
36412
36413  ac_ext=c
36414ac_cpp='$CPP $CPPFLAGS'
36415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36417ac_compiler_gnu=$ac_cv_c_compiler_gnu
36418
36419
36420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
36421$as_echo "$flag_ok" >&6; }
36422
36423fi
36424
36425
36426
36427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5
36428$as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; }
36429
36430  save_CFLAGS="$CFLAGS"
36431  CFLAGS="$CFLAGS -fno-strict-aliasing"
36432
36433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36434/* end confdefs.h.  */
36435
36436int
36437main ()
36438{
36439
36440  ;
36441  return 0;
36442}
36443_ACEOF
36444if ac_fn_c_try_compile "$LINENO"; then :
36445  flag_ok=yes
36446else
36447  flag_ok=no
36448fi
36449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36450  CFLAGS="$save_CFLAGS"
36451
36452  if test "X$flag_ok" = Xyes ; then
36453    EXTRA_CFLAGS="-fno-strict-aliasing"
36454    true
36455  else
36456
36457    true
36458  fi
36459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
36460$as_echo "$flag_ok" >&6; }
36461
36462
36463
36464GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
36465GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
36466
36467
36468
36469
36470
36471GST_PLUGINS_BASE_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
36472
36473
36474GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS"
36475GST_CXXFLAGS="$GLIB_CFLAGS $GST_CFLAGS $EXTRA_CFLAGS \$(GLIB_EXTRA_CFLAGS) \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
36476GST_CFLAGS="$GLIB_CFLAGS $GST_CFLAGS $EXTRA_CFLAGS \$(GLIB_EXTRA_CFLAGS) \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)"
36477
36478
36479GST_LIBS="$GST_LIBS \$(GCOV_LIBS)"
36480
36481
36482GST_ALL_LDFLAGS="-no-undefined"
36483if test "x${enable_Bsymbolic}" = "xyes"; then
36484  GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
36485fi
36486
36487
36488GST_LIB_LDFLAGS=""
36489
36490
36491GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_ALL_LDFLAGS"
36492
36493
36494
36495$MKDIR_P tests/check/orc
36496
36497ac_config_files="$ac_config_files Makefile gst/Makefile gst/adder/Makefile gst/app/Makefile gst/audioconvert/Makefile gst/audiomixer/Makefile gst/audiorate/Makefile gst/audioresample/Makefile gst/audiotestsrc/Makefile gst/compositor/Makefile gst/encoding/Makefile gst/videoconvert/Makefile gst/gio/Makefile gst/overlaycomposition/Makefile gst/pbtypes/Makefile gst/playback/Makefile gst/rawparse/Makefile gst/subparse/Makefile gst/tcp/Makefile gst/typefind/Makefile gst/videotestsrc/Makefile gst/videorate/Makefile gst/videoscale/Makefile gst/volume/Makefile sys/Makefile sys/ximage/Makefile sys/xvimage/Makefile ext/Makefile ext/alsa/Makefile ext/cdparanoia/Makefile ext/gl/Makefile ext/libvisual/Makefile ext/ogg/Makefile ext/opus/Makefile ext/pango/Makefile ext/theora/Makefile ext/vorbis/Makefile gst-libs/Makefile gst-libs/gst/Makefile gst-libs/gst/allocators/Makefile gst-libs/gst/audio/Makefile gst-libs/gst/app/Makefile gst-libs/gst/fft/Makefile gst-libs/gst/gl/Makefile gst-libs/gst/gl/android/Makefile gst-libs/gst/gl/cocoa/Makefile gst-libs/gst/gl/dispmanx/Makefile gst-libs/gst/gl/glprototypes/Makefile gst-libs/gst/gl/eagl/Makefile gst-libs/gst/gl/egl/Makefile gst-libs/gst/gl/wayland/Makefile gst-libs/gst/gl/win32/Makefile gst-libs/gst/gl/x11/Makefile gst-libs/gst/gl/viv-fb/Makefile gst-libs/gst/gl/gbm/Makefile gst-libs/gst/riff/Makefile gst-libs/gst/rtp/Makefile gst-libs/gst/rtsp/Makefile gst-libs/gst/sdp/Makefile gst-libs/gst/tag/Makefile gst-libs/gst/pbutils/Makefile gst-libs/gst/pbutils/gstpluginsbaseversion.h gst-libs/gst/video/Makefile tools/Makefile pkgconfig/Makefile pkgconfig/gstreamer-allocators.pc pkgconfig/gstreamer-allocators-uninstalled.pc pkgconfig/gstreamer-audio.pc pkgconfig/gstreamer-audio-uninstalled.pc pkgconfig/gstreamer-app.pc pkgconfig/gstreamer-app-uninstalled.pc pkgconfig/gstreamer-fft.pc pkgconfig/gstreamer-fft-uninstalled.pc pkgconfig/gstreamer-pbutils.pc pkgconfig/gstreamer-pbutils-uninstalled.pc pkgconfig/gstreamer-riff.pc pkgconfig/gstreamer-riff-uninstalled.pc pkgconfig/gstreamer-rtp.pc pkgconfig/gstreamer-rtp-uninstalled.pc pkgconfig/gstreamer-rtsp.pc pkgconfig/gstreamer-rtsp-uninstalled.pc pkgconfig/gstreamer-sdp.pc pkgconfig/gstreamer-sdp-uninstalled.pc pkgconfig/gstreamer-tag.pc pkgconfig/gstreamer-tag-uninstalled.pc pkgconfig/gstreamer-video.pc pkgconfig/gstreamer-video-uninstalled.pc pkgconfig/gstreamer-gl.pc pkgconfig/gstreamer-gl-uninstalled.pc pkgconfig/gstreamer-plugins-base.pc pkgconfig/gstreamer-plugins-base-uninstalled.pc tests/Makefile tests/check/Makefile tests/examples/Makefile tests/examples/app/Makefile tests/examples/audio/Makefile tests/examples/compositor/Makefile tests/examples/decodebin_next/Makefile tests/examples/dynamic/Makefile tests/examples/encoding/Makefile tests/examples/fft/Makefile tests/examples/gio/Makefile tests/examples/gl/Makefile tests/examples/gl/generic/Makefile tests/examples/gl/generic/cube/Makefile tests/examples/gl/generic/doublecube/Makefile tests/examples/gl/generic/recordgraphic/Makefile tests/examples/gl/generic/cubeyuv/Makefile tests/examples/gl/qt/Makefile tests/examples/gl/gtk/Makefile tests/examples/gl/gtk/fxtest/Makefile tests/examples/gl/gtk/3dvideo/Makefile tests/examples/gl/gtk/switchvideooverlay/Makefile tests/examples/gl/gtk/filternovideooverlay/Makefile tests/examples/gl/gtk/filtervideooverlay/Makefile tests/examples/gl/cocoa/Makefile tests/examples/gl/sdl/Makefile tests/examples/overlay/Makefile tests/examples/overlaycomposition/Makefile tests/examples/seek/Makefile tests/examples/snapshot/Makefile tests/examples/playback/Makefile tests/examples/playrec/Makefile tests/files/Makefile tests/icles/Makefile tests/icles/playback/Makefile docs/Makefile docs/libs/Makefile docs/plugins/Makefile docs/version.entities po/Makefile.in common/Makefile common/m4/Makefile m4/Makefile"
36498
36499cat >confcache <<\_ACEOF
36500# This file is a shell script that caches the results of configure
36501# tests run on this system so they can be shared between configure
36502# scripts and configure runs, see configure's option --config-cache.
36503# It is not useful on other systems.  If it contains results you don't
36504# want to keep, you may remove or edit it.
36505#
36506# config.status only pays attention to the cache file if you give it
36507# the --recheck option to rerun configure.
36508#
36509# `ac_cv_env_foo' variables (set or unset) will be overridden when
36510# loading this file, other *unset* `ac_cv_foo' will be assigned the
36511# following values.
36512
36513_ACEOF
36514
36515# The following way of writing the cache mishandles newlines in values,
36516# but we know of no workaround that is simple, portable, and efficient.
36517# So, we kill variables containing newlines.
36518# Ultrix sh set writes to stderr and can't be redirected directly,
36519# and sets the high bit in the cache file unless we assign to the vars.
36520(
36521  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36522    eval ac_val=\$$ac_var
36523    case $ac_val in #(
36524    *${as_nl}*)
36525      case $ac_var in #(
36526      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36527$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36528      esac
36529      case $ac_var in #(
36530      _ | IFS | as_nl) ;; #(
36531      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36532      *) { eval $ac_var=; unset $ac_var;} ;;
36533      esac ;;
36534    esac
36535  done
36536
36537  (set) 2>&1 |
36538    case $as_nl`(ac_space=' '; set) 2>&1` in #(
36539    *${as_nl}ac_space=\ *)
36540      # `set' does not quote correctly, so add quotes: double-quote
36541      # substitution turns \\\\ into \\, and sed turns \\ into \.
36542      sed -n \
36543	"s/'/'\\\\''/g;
36544	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36545      ;; #(
36546    *)
36547      # `set' quotes correctly as required by POSIX, so do not add quotes.
36548      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36549      ;;
36550    esac |
36551    sort
36552) |
36553  sed '
36554     /^ac_cv_env_/b end
36555     t clear
36556     :clear
36557     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36558     t end
36559     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36560     :end' >>confcache
36561if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36562  if test -w "$cache_file"; then
36563    if test "x$cache_file" != "x/dev/null"; then
36564      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36565$as_echo "$as_me: updating cache $cache_file" >&6;}
36566      if test ! -f "$cache_file" || test -h "$cache_file"; then
36567	cat confcache >"$cache_file"
36568      else
36569        case $cache_file in #(
36570        */* | ?:*)
36571	  mv -f confcache "$cache_file"$$ &&
36572	  mv -f "$cache_file"$$ "$cache_file" ;; #(
36573        *)
36574	  mv -f confcache "$cache_file" ;;
36575	esac
36576      fi
36577    fi
36578  else
36579    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36580$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36581  fi
36582fi
36583rm -f confcache
36584
36585test "x$prefix" = xNONE && prefix=$ac_default_prefix
36586# Let make expand exec_prefix.
36587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36588
36589DEFS=-DHAVE_CONFIG_H
36590
36591ac_libobjs=
36592ac_ltlibobjs=
36593U=
36594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36595  # 1. Remove the extension, and $U if already installed.
36596  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36597  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36598  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
36599  #    will be set to the directory where LIBOBJS objects are built.
36600  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36601  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36602done
36603LIBOBJS=$ac_libobjs
36604
36605LTLIBOBJS=$ac_ltlibobjs
36606
36607
36608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36609$as_echo_n "checking that generated files are newer than configure... " >&6; }
36610   if test -n "$am_sleep_pid"; then
36611     # Hide warnings about reused PIDs.
36612     wait $am_sleep_pid 2>/dev/null
36613   fi
36614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36615$as_echo "done" >&6; }
36616 if test -n "$EXEEXT"; then
36617  am__EXEEXT_TRUE=
36618  am__EXEEXT_FALSE='#'
36619else
36620  am__EXEEXT_TRUE='#'
36621  am__EXEEXT_FALSE=
36622fi
36623
36624if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36625  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
36626Usually this means the macro was only invoked conditionally." "$LINENO" 5
36627fi
36628if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36629  as_fn_error $? "conditional \"AMDEP\" was never defined.
36630Usually this means the macro was only invoked conditionally." "$LINENO" 5
36631fi
36632if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36633  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36634Usually this means the macro was only invoked conditionally." "$LINENO" 5
36635fi
36636if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then
36637  as_fn_error $? "conditional \"GST_GCOV_ENABLED\" was never defined.
36638Usually this means the macro was only invoked conditionally." "$LINENO" 5
36639fi
36640if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
36641  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
36642Usually this means the macro was only invoked conditionally." "$LINENO" 5
36643fi
36644if test -z "${USE_EXTERNAL_TRUE}" && test -z "${USE_EXTERNAL_FALSE}"; then
36645  as_fn_error $? "conditional \"USE_EXTERNAL\" was never defined.
36646Usually this means the macro was only invoked conditionally." "$LINENO" 5
36647fi
36648if test -z "${BUILD_EXTERNAL_TRUE}" && test -z "${BUILD_EXTERNAL_FALSE}"; then
36649  as_fn_error $? "conditional \"BUILD_EXTERNAL\" was never defined.
36650Usually this means the macro was only invoked conditionally." "$LINENO" 5
36651fi
36652if test -z "${USE_EXPERIMENTAL_TRUE}" && test -z "${USE_EXPERIMENTAL_FALSE}"; then
36653  as_fn_error $? "conditional \"USE_EXPERIMENTAL\" was never defined.
36654Usually this means the macro was only invoked conditionally." "$LINENO" 5
36655fi
36656if test -z "${BUILD_EXPERIMENTAL_TRUE}" && test -z "${BUILD_EXPERIMENTAL_FALSE}"; then
36657  as_fn_error $? "conditional \"BUILD_EXPERIMENTAL\" was never defined.
36658Usually this means the macro was only invoked conditionally." "$LINENO" 5
36659fi
36660
36661if test -z "${HAVE_CPU_I386_TRUE}" && test -z "${HAVE_CPU_I386_FALSE}"; then
36662  as_fn_error $? "conditional \"HAVE_CPU_I386\" was never defined.
36663Usually this means the macro was only invoked conditionally." "$LINENO" 5
36664fi
36665if test -z "${HAVE_CPU_PPC_TRUE}" && test -z "${HAVE_CPU_PPC_FALSE}"; then
36666  as_fn_error $? "conditional \"HAVE_CPU_PPC\" was never defined.
36667Usually this means the macro was only invoked conditionally." "$LINENO" 5
36668fi
36669if test -z "${HAVE_CPU_PPC64_TRUE}" && test -z "${HAVE_CPU_PPC64_FALSE}"; then
36670  as_fn_error $? "conditional \"HAVE_CPU_PPC64\" was never defined.
36671Usually this means the macro was only invoked conditionally." "$LINENO" 5
36672fi
36673if test -z "${HAVE_CPU_ALPHA_TRUE}" && test -z "${HAVE_CPU_ALPHA_FALSE}"; then
36674  as_fn_error $? "conditional \"HAVE_CPU_ALPHA\" was never defined.
36675Usually this means the macro was only invoked conditionally." "$LINENO" 5
36676fi
36677if test -z "${HAVE_CPU_ARC_TRUE}" && test -z "${HAVE_CPU_ARC_FALSE}"; then
36678  as_fn_error $? "conditional \"HAVE_CPU_ARC\" was never defined.
36679Usually this means the macro was only invoked conditionally." "$LINENO" 5
36680fi
36681if test -z "${HAVE_CPU_ARM_TRUE}" && test -z "${HAVE_CPU_ARM_FALSE}"; then
36682  as_fn_error $? "conditional \"HAVE_CPU_ARM\" was never defined.
36683Usually this means the macro was only invoked conditionally." "$LINENO" 5
36684fi
36685if test -z "${HAVE_CPU_SPARC_TRUE}" && test -z "${HAVE_CPU_SPARC_FALSE}"; then
36686  as_fn_error $? "conditional \"HAVE_CPU_SPARC\" was never defined.
36687Usually this means the macro was only invoked conditionally." "$LINENO" 5
36688fi
36689if test -z "${HAVE_CPU_HPPA_TRUE}" && test -z "${HAVE_CPU_HPPA_FALSE}"; then
36690  as_fn_error $? "conditional \"HAVE_CPU_HPPA\" was never defined.
36691Usually this means the macro was only invoked conditionally." "$LINENO" 5
36692fi
36693if test -z "${HAVE_CPU_MIPS_TRUE}" && test -z "${HAVE_CPU_MIPS_FALSE}"; then
36694  as_fn_error $? "conditional \"HAVE_CPU_MIPS\" was never defined.
36695Usually this means the macro was only invoked conditionally." "$LINENO" 5
36696fi
36697if test -z "${HAVE_CPU_S390_TRUE}" && test -z "${HAVE_CPU_S390_FALSE}"; then
36698  as_fn_error $? "conditional \"HAVE_CPU_S390\" was never defined.
36699Usually this means the macro was only invoked conditionally." "$LINENO" 5
36700fi
36701if test -z "${HAVE_CPU_IA64_TRUE}" && test -z "${HAVE_CPU_IA64_FALSE}"; then
36702  as_fn_error $? "conditional \"HAVE_CPU_IA64\" was never defined.
36703Usually this means the macro was only invoked conditionally." "$LINENO" 5
36704fi
36705if test -z "${HAVE_CPU_M68K_TRUE}" && test -z "${HAVE_CPU_M68K_FALSE}"; then
36706  as_fn_error $? "conditional \"HAVE_CPU_M68K\" was never defined.
36707Usually this means the macro was only invoked conditionally." "$LINENO" 5
36708fi
36709if test -z "${HAVE_CPU_X86_64_TRUE}" && test -z "${HAVE_CPU_X86_64_FALSE}"; then
36710  as_fn_error $? "conditional \"HAVE_CPU_X86_64\" was never defined.
36711Usually this means the macro was only invoked conditionally." "$LINENO" 5
36712fi
36713if test -z "${HAVE_CPU_CRIS_TRUE}" && test -z "${HAVE_CPU_CRIS_FALSE}"; then
36714  as_fn_error $? "conditional \"HAVE_CPU_CRIS\" was never defined.
36715Usually this means the macro was only invoked conditionally." "$LINENO" 5
36716fi
36717if test -z "${HAVE_CPU_CRISV32_TRUE}" && test -z "${HAVE_CPU_CRISV32_FALSE}"; then
36718  as_fn_error $? "conditional \"HAVE_CPU_CRISV32\" was never defined.
36719Usually this means the macro was only invoked conditionally." "$LINENO" 5
36720fi
36721if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36722  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36723Usually this means the macro was only invoked conditionally." "$LINENO" 5
36724fi
36725if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36726  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
36727Usually this means the macro was only invoked conditionally." "$LINENO" 5
36728fi
36729if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
36730  as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
36731Usually this means the macro was only invoked conditionally." "$LINENO" 5
36732fi
36733if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
36734  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
36735Usually this means the macro was only invoked conditionally." "$LINENO" 5
36736fi
36737if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
36738  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
36739Usually this means the macro was only invoked conditionally." "$LINENO" 5
36740fi
36741if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
36742  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
36743Usually this means the macro was only invoked conditionally." "$LINENO" 5
36744fi
36745if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
36746  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
36747Usually this means the macro was only invoked conditionally." "$LINENO" 5
36748fi
36749if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
36750  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
36751Usually this means the macro was only invoked conditionally." "$LINENO" 5
36752fi
36753if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
36754  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
36755Usually this means the macro was only invoked conditionally." "$LINENO" 5
36756fi
36757if test -z "${ENABLE_PLUGIN_DOCS_TRUE}" && test -z "${ENABLE_PLUGIN_DOCS_FALSE}"; then
36758  as_fn_error $? "conditional \"ENABLE_PLUGIN_DOCS\" was never defined.
36759Usually this means the macro was only invoked conditionally." "$LINENO" 5
36760fi
36761if test -z "${HAVE_X86_TRUE}" && test -z "${HAVE_X86_FALSE}"; then
36762  as_fn_error $? "conditional \"HAVE_X86\" was never defined.
36763Usually this means the macro was only invoked conditionally." "$LINENO" 5
36764fi
36765if test -z "${HAVE_SYS_SOCKET_H_TRUE}" && test -z "${HAVE_SYS_SOCKET_H_FALSE}"; then
36766  as_fn_error $? "conditional \"HAVE_SYS_SOCKET_H\" was never defined.
36767Usually this means the macro was only invoked conditionally." "$LINENO" 5
36768fi
36769if test -z "${HAVE_WINSOCK2_H_TRUE}" && test -z "${HAVE_WINSOCK2_H_FALSE}"; then
36770  as_fn_error $? "conditional \"HAVE_WINSOCK2_H\" was never defined.
36771Usually this means the macro was only invoked conditionally." "$LINENO" 5
36772fi
36773if test -z "${HAVE_ORC_TRUE}" && test -z "${HAVE_ORC_FALSE}"; then
36774  as_fn_error $? "conditional \"HAVE_ORC\" was never defined.
36775Usually this means the macro was only invoked conditionally." "$LINENO" 5
36776fi
36777if test -z "${HAVE_ORCC_TRUE}" && test -z "${HAVE_ORCC_FALSE}"; then
36778  as_fn_error $? "conditional \"HAVE_ORCC\" was never defined.
36779Usually this means the macro was only invoked conditionally." "$LINENO" 5
36780fi
36781if test -z "${HAVE_GST_CHECK_TRUE}" && test -z "${HAVE_GST_CHECK_FALSE}"; then
36782  as_fn_error $? "conditional \"HAVE_GST_CHECK\" was never defined.
36783Usually this means the macro was only invoked conditionally." "$LINENO" 5
36784fi
36785if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
36786  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
36787Usually this means the macro was only invoked conditionally." "$LINENO" 5
36788fi
36789if test -z "${HAVE_IOS_TRUE}" && test -z "${HAVE_IOS_FALSE}"; then
36790  as_fn_error $? "conditional \"HAVE_IOS\" was never defined.
36791Usually this means the macro was only invoked conditionally." "$LINENO" 5
36792fi
36793if test -z "${HAVE_WINDOW_X11_TRUE}" && test -z "${HAVE_WINDOW_X11_FALSE}"; then
36794  as_fn_error $? "conditional \"HAVE_WINDOW_X11\" was never defined.
36795Usually this means the macro was only invoked conditionally." "$LINENO" 5
36796fi
36797if test -z "${HAVE_WINDOW_COCOA_TRUE}" && test -z "${HAVE_WINDOW_COCOA_FALSE}"; then
36798  as_fn_error $? "conditional \"HAVE_WINDOW_COCOA\" was never defined.
36799Usually this means the macro was only invoked conditionally." "$LINENO" 5
36800fi
36801if test -z "${HAVE_WINDOW_WIN32_TRUE}" && test -z "${HAVE_WINDOW_WIN32_FALSE}"; then
36802  as_fn_error $? "conditional \"HAVE_WINDOW_WIN32\" was never defined.
36803Usually this means the macro was only invoked conditionally." "$LINENO" 5
36804fi
36805if test -z "${HAVE_WINDOW_DISPMANX_TRUE}" && test -z "${HAVE_WINDOW_DISPMANX_FALSE}"; then
36806  as_fn_error $? "conditional \"HAVE_WINDOW_DISPMANX\" was never defined.
36807Usually this means the macro was only invoked conditionally." "$LINENO" 5
36808fi
36809if test -z "${HAVE_WINDOW_WAYLAND_TRUE}" && test -z "${HAVE_WINDOW_WAYLAND_FALSE}"; then
36810  as_fn_error $? "conditional \"HAVE_WINDOW_WAYLAND\" was never defined.
36811Usually this means the macro was only invoked conditionally." "$LINENO" 5
36812fi
36813if test -z "${HAVE_WINDOW_ANDROID_TRUE}" && test -z "${HAVE_WINDOW_ANDROID_FALSE}"; then
36814  as_fn_error $? "conditional \"HAVE_WINDOW_ANDROID\" was never defined.
36815Usually this means the macro was only invoked conditionally." "$LINENO" 5
36816fi
36817if test -z "${HAVE_WINDOW_EAGL_TRUE}" && test -z "${HAVE_WINDOW_EAGL_FALSE}"; then
36818  as_fn_error $? "conditional \"HAVE_WINDOW_EAGL\" was never defined.
36819Usually this means the macro was only invoked conditionally." "$LINENO" 5
36820fi
36821if test -z "${HAVE_WINDOW_VIV_FB_TRUE}" && test -z "${HAVE_WINDOW_VIV_FB_FALSE}"; then
36822  as_fn_error $? "conditional \"HAVE_WINDOW_VIV_FB\" was never defined.
36823Usually this means the macro was only invoked conditionally." "$LINENO" 5
36824fi
36825if test -z "${HAVE_WINDOW_GBM_TRUE}" && test -z "${HAVE_WINDOW_GBM_FALSE}"; then
36826  as_fn_error $? "conditional \"HAVE_WINDOW_GBM\" was never defined.
36827Usually this means the macro was only invoked conditionally." "$LINENO" 5
36828fi
36829if test -z "${USE_OPENGL_TRUE}" && test -z "${USE_OPENGL_FALSE}"; then
36830  as_fn_error $? "conditional \"USE_OPENGL\" was never defined.
36831Usually this means the macro was only invoked conditionally." "$LINENO" 5
36832fi
36833if test -z "${USE_GLES2_TRUE}" && test -z "${USE_GLES2_FALSE}"; then
36834  as_fn_error $? "conditional \"USE_GLES2\" was never defined.
36835Usually this means the macro was only invoked conditionally." "$LINENO" 5
36836fi
36837if test -z "${USE_GLX_TRUE}" && test -z "${USE_GLX_FALSE}"; then
36838  as_fn_error $? "conditional \"USE_GLX\" was never defined.
36839Usually this means the macro was only invoked conditionally." "$LINENO" 5
36840fi
36841if test -z "${USE_EGL_TRUE}" && test -z "${USE_EGL_FALSE}"; then
36842  as_fn_error $? "conditional \"USE_EGL\" was never defined.
36843Usually this means the macro was only invoked conditionally." "$LINENO" 5
36844fi
36845if test -z "${USE_WGL_TRUE}" && test -z "${USE_WGL_FALSE}"; then
36846  as_fn_error $? "conditional \"USE_WGL\" was never defined.
36847Usually this means the macro was only invoked conditionally." "$LINENO" 5
36848fi
36849if test -z "${USE_COCOA_TRUE}" && test -z "${USE_COCOA_FALSE}"; then
36850  as_fn_error $? "conditional \"USE_COCOA\" was never defined.
36851Usually this means the macro was only invoked conditionally." "$LINENO" 5
36852fi
36853if test -z "${USE_EGL_MALI_TRUE}" && test -z "${USE_EGL_MALI_FALSE}"; then
36854  as_fn_error $? "conditional \"USE_EGL_MALI\" was never defined.
36855Usually this means the macro was only invoked conditionally." "$LINENO" 5
36856fi
36857if test -z "${USE_EGL_RPI_TRUE}" && test -z "${USE_EGL_RPI_FALSE}"; then
36858  as_fn_error $? "conditional \"USE_EGL_RPI\" was never defined.
36859Usually this means the macro was only invoked conditionally." "$LINENO" 5
36860fi
36861if test -z "${USE_EAGL_TRUE}" && test -z "${USE_EAGL_FALSE}"; then
36862  as_fn_error $? "conditional \"USE_EAGL\" was never defined.
36863Usually this means the macro was only invoked conditionally." "$LINENO" 5
36864fi
36865if test -z "${HAVE_GST_GL_TRUE}" && test -z "${HAVE_GST_GL_FALSE}"; then
36866  as_fn_error $? "conditional \"HAVE_GST_GL\" was never defined.
36867Usually this means the macro was only invoked conditionally." "$LINENO" 5
36868fi
36869if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
36870  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
36871Usually this means the macro was only invoked conditionally." "$LINENO" 5
36872fi
36873if test -z "${HAVE_GTK_X11_TRUE}" && test -z "${HAVE_GTK_X11_FALSE}"; then
36874  as_fn_error $? "conditional \"HAVE_GTK_X11\" was never defined.
36875Usually this means the macro was only invoked conditionally." "$LINENO" 5
36876fi
36877if test -z "${HAVE_GTK_QUARTZ_TRUE}" && test -z "${HAVE_GTK_QUARTZ_FALSE}"; then
36878  as_fn_error $? "conditional \"HAVE_GTK_QUARTZ\" was never defined.
36879Usually this means the macro was only invoked conditionally." "$LINENO" 5
36880fi
36881if test -z "${HAVE_GDK_PIXBUF_TRUE}" && test -z "${HAVE_GDK_PIXBUF_FALSE}"; then
36882  as_fn_error $? "conditional \"HAVE_GDK_PIXBUF\" was never defined.
36883Usually this means the macro was only invoked conditionally." "$LINENO" 5
36884fi
36885if test -z "${HAVE_QT_TRUE}" && test -z "${HAVE_QT_FALSE}"; then
36886  as_fn_error $? "conditional \"HAVE_QT\" was never defined.
36887Usually this means the macro was only invoked conditionally." "$LINENO" 5
36888fi
36889if test -z "${HAVE_QT_MOC_TRUE}" && test -z "${HAVE_QT_MOC_FALSE}"; then
36890  as_fn_error $? "conditional \"HAVE_QT_MOC\" was never defined.
36891Usually this means the macro was only invoked conditionally." "$LINENO" 5
36892fi
36893if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
36894  as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
36895Usually this means the macro was only invoked conditionally." "$LINENO" 5
36896fi
36897if test -z "${HAVE_LINUX_JOYSTICK_HEADERS_TRUE}" && test -z "${HAVE_LINUX_JOYSTICK_HEADERS_FALSE}"; then
36898  as_fn_error $? "conditional \"HAVE_LINUX_JOYSTICK_HEADERS\" was never defined.
36899Usually this means the macro was only invoked conditionally." "$LINENO" 5
36900fi
36901if test -z "${USE_PLUGIN_ADDER_TRUE}" && test -z "${USE_PLUGIN_ADDER_FALSE}"; then
36902  as_fn_error $? "conditional \"USE_PLUGIN_ADDER\" was never defined.
36903Usually this means the macro was only invoked conditionally." "$LINENO" 5
36904fi
36905if test -z "${USE_PLUGIN_APP_TRUE}" && test -z "${USE_PLUGIN_APP_FALSE}"; then
36906  as_fn_error $? "conditional \"USE_PLUGIN_APP\" was never defined.
36907Usually this means the macro was only invoked conditionally." "$LINENO" 5
36908fi
36909if test -z "${USE_PLUGIN_AUDIOCONVERT_TRUE}" && test -z "${USE_PLUGIN_AUDIOCONVERT_FALSE}"; then
36910  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOCONVERT\" was never defined.
36911Usually this means the macro was only invoked conditionally." "$LINENO" 5
36912fi
36913if test -z "${USE_PLUGIN_AUDIOMIXER_TRUE}" && test -z "${USE_PLUGIN_AUDIOMIXER_FALSE}"; then
36914  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOMIXER\" was never defined.
36915Usually this means the macro was only invoked conditionally." "$LINENO" 5
36916fi
36917if test -z "${USE_PLUGIN_AUDIORATE_TRUE}" && test -z "${USE_PLUGIN_AUDIORATE_FALSE}"; then
36918  as_fn_error $? "conditional \"USE_PLUGIN_AUDIORATE\" was never defined.
36919Usually this means the macro was only invoked conditionally." "$LINENO" 5
36920fi
36921if test -z "${USE_PLUGIN_AUDIOTESTSRC_TRUE}" && test -z "${USE_PLUGIN_AUDIOTESTSRC_FALSE}"; then
36922  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOTESTSRC\" was never defined.
36923Usually this means the macro was only invoked conditionally." "$LINENO" 5
36924fi
36925if test -z "${USE_PLUGIN_COMPOSITOR_TRUE}" && test -z "${USE_PLUGIN_COMPOSITOR_FALSE}"; then
36926  as_fn_error $? "conditional \"USE_PLUGIN_COMPOSITOR\" was never defined.
36927Usually this means the macro was only invoked conditionally." "$LINENO" 5
36928fi
36929if test -z "${USE_PLUGIN_ENCODING_TRUE}" && test -z "${USE_PLUGIN_ENCODING_FALSE}"; then
36930  as_fn_error $? "conditional \"USE_PLUGIN_ENCODING\" was never defined.
36931Usually this means the macro was only invoked conditionally." "$LINENO" 5
36932fi
36933if test -z "${USE_PLUGIN_VIDEOCONVERT_TRUE}" && test -z "${USE_PLUGIN_VIDEOCONVERT_FALSE}"; then
36934  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOCONVERT\" was never defined.
36935Usually this means the macro was only invoked conditionally." "$LINENO" 5
36936fi
36937if test -z "${USE_PLUGIN_GIO_TRUE}" && test -z "${USE_PLUGIN_GIO_FALSE}"; then
36938  as_fn_error $? "conditional \"USE_PLUGIN_GIO\" was never defined.
36939Usually this means the macro was only invoked conditionally." "$LINENO" 5
36940fi
36941if test -z "${USE_PLUGIN_OVERLAYCOMPOSITION_TRUE}" && test -z "${USE_PLUGIN_OVERLAYCOMPOSITION_FALSE}"; then
36942  as_fn_error $? "conditional \"USE_PLUGIN_OVERLAYCOMPOSITION\" was never defined.
36943Usually this means the macro was only invoked conditionally." "$LINENO" 5
36944fi
36945if test -z "${USE_PLUGIN_PLAYBACK_TRUE}" && test -z "${USE_PLUGIN_PLAYBACK_FALSE}"; then
36946  as_fn_error $? "conditional \"USE_PLUGIN_PLAYBACK\" was never defined.
36947Usually this means the macro was only invoked conditionally." "$LINENO" 5
36948fi
36949if test -z "${USE_PLUGIN_AUDIORESAMPLE_TRUE}" && test -z "${USE_PLUGIN_AUDIORESAMPLE_FALSE}"; then
36950  as_fn_error $? "conditional \"USE_PLUGIN_AUDIORESAMPLE\" was never defined.
36951Usually this means the macro was only invoked conditionally." "$LINENO" 5
36952fi
36953if test -z "${USE_PLUGIN_RAWPARSE_TRUE}" && test -z "${USE_PLUGIN_RAWPARSE_FALSE}"; then
36954  as_fn_error $? "conditional \"USE_PLUGIN_RAWPARSE\" was never defined.
36955Usually this means the macro was only invoked conditionally." "$LINENO" 5
36956fi
36957if test -z "${USE_PLUGIN_SUBPARSE_TRUE}" && test -z "${USE_PLUGIN_SUBPARSE_FALSE}"; then
36958  as_fn_error $? "conditional \"USE_PLUGIN_SUBPARSE\" was never defined.
36959Usually this means the macro was only invoked conditionally." "$LINENO" 5
36960fi
36961if test -z "${USE_PLUGIN_TCP_TRUE}" && test -z "${USE_PLUGIN_TCP_FALSE}"; then
36962  as_fn_error $? "conditional \"USE_PLUGIN_TCP\" was never defined.
36963Usually this means the macro was only invoked conditionally." "$LINENO" 5
36964fi
36965if test -z "${USE_PLUGIN_TYPEFIND_TRUE}" && test -z "${USE_PLUGIN_TYPEFIND_FALSE}"; then
36966  as_fn_error $? "conditional \"USE_PLUGIN_TYPEFIND\" was never defined.
36967Usually this means the macro was only invoked conditionally." "$LINENO" 5
36968fi
36969if test -z "${USE_PLUGIN_VIDEOTESTSRC_TRUE}" && test -z "${USE_PLUGIN_VIDEOTESTSRC_FALSE}"; then
36970  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOTESTSRC\" was never defined.
36971Usually this means the macro was only invoked conditionally." "$LINENO" 5
36972fi
36973if test -z "${USE_PLUGIN_VIDEORATE_TRUE}" && test -z "${USE_PLUGIN_VIDEORATE_FALSE}"; then
36974  as_fn_error $? "conditional \"USE_PLUGIN_VIDEORATE\" was never defined.
36975Usually this means the macro was only invoked conditionally." "$LINENO" 5
36976fi
36977if test -z "${USE_PLUGIN_VIDEOSCALE_TRUE}" && test -z "${USE_PLUGIN_VIDEOSCALE_FALSE}"; then
36978  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOSCALE\" was never defined.
36979Usually this means the macro was only invoked conditionally." "$LINENO" 5
36980fi
36981if test -z "${USE_PLUGIN_VOLUME_TRUE}" && test -z "${USE_PLUGIN_VOLUME_FALSE}"; then
36982  as_fn_error $? "conditional \"USE_PLUGIN_VOLUME\" was never defined.
36983Usually this means the macro was only invoked conditionally." "$LINENO" 5
36984fi
36985if test -z "${USE_ISO_CODES_TRUE}" && test -z "${USE_ISO_CODES_FALSE}"; then
36986  as_fn_error $? "conditional \"USE_ISO_CODES\" was never defined.
36987Usually this means the macro was only invoked conditionally." "$LINENO" 5
36988fi
36989if test -z "${USE_ISO_CODES_TRUE}" && test -z "${USE_ISO_CODES_FALSE}"; then
36990  as_fn_error $? "conditional \"USE_ISO_CODES\" was never defined.
36991Usually this means the macro was only invoked conditionally." "$LINENO" 5
36992fi
36993if test -z "${USE_ZLIB_TRUE}" && test -z "${USE_ZLIB_FALSE}"; then
36994  as_fn_error $? "conditional \"USE_ZLIB\" was never defined.
36995Usually this means the macro was only invoked conditionally." "$LINENO" 5
36996fi
36997if test -z "${USE_X_TRUE}" && test -z "${USE_X_FALSE}"; then
36998  as_fn_error $? "conditional \"USE_X\" was never defined.
36999Usually this means the macro was only invoked conditionally." "$LINENO" 5
37000fi
37001if test -z "${USE_XVIDEO_TRUE}" && test -z "${USE_XVIDEO_FALSE}"; then
37002  as_fn_error $? "conditional \"USE_XVIDEO\" was never defined.
37003Usually this means the macro was only invoked conditionally." "$LINENO" 5
37004fi
37005if test -z "${USE_XSHM_TRUE}" && test -z "${USE_XSHM_FALSE}"; then
37006  as_fn_error $? "conditional \"USE_XSHM\" was never defined.
37007Usually this means the macro was only invoked conditionally." "$LINENO" 5
37008fi
37009if test -z "${USE_ALSA_TRUE}" && test -z "${USE_ALSA_FALSE}"; then
37010  as_fn_error $? "conditional \"USE_ALSA\" was never defined.
37011Usually this means the macro was only invoked conditionally." "$LINENO" 5
37012fi
37013if test -z "${USE_CDPARANOIA_TRUE}" && test -z "${USE_CDPARANOIA_FALSE}"; then
37014  as_fn_error $? "conditional \"USE_CDPARANOIA\" was never defined.
37015Usually this means the macro was only invoked conditionally." "$LINENO" 5
37016fi
37017if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
37018  as_fn_error $? "conditional \"USE_GL\" was never defined.
37019Usually this means the macro was only invoked conditionally." "$LINENO" 5
37020fi
37021if test -z "${USE_IVORBIS_TRUE}" && test -z "${USE_IVORBIS_FALSE}"; then
37022  as_fn_error $? "conditional \"USE_IVORBIS\" was never defined.
37023Usually this means the macro was only invoked conditionally." "$LINENO" 5
37024fi
37025if test -z "${USE_LIBVISUAL_TRUE}" && test -z "${USE_LIBVISUAL_FALSE}"; then
37026  as_fn_error $? "conditional \"USE_LIBVISUAL\" was never defined.
37027Usually this means the macro was only invoked conditionally." "$LINENO" 5
37028fi
37029if test -z "${USE_OGG_TRUE}" && test -z "${USE_OGG_FALSE}"; then
37030  as_fn_error $? "conditional \"USE_OGG\" was never defined.
37031Usually this means the macro was only invoked conditionally." "$LINENO" 5
37032fi
37033if test -z "${USE_OPUS_TRUE}" && test -z "${USE_OPUS_FALSE}"; then
37034  as_fn_error $? "conditional \"USE_OPUS\" was never defined.
37035Usually this means the macro was only invoked conditionally." "$LINENO" 5
37036fi
37037if test -z "${USE_PANGO_TRUE}" && test -z "${USE_PANGO_FALSE}"; then
37038  as_fn_error $? "conditional \"USE_PANGO\" was never defined.
37039Usually this means the macro was only invoked conditionally." "$LINENO" 5
37040fi
37041if test -z "${USE_THEORA_TRUE}" && test -z "${USE_THEORA_FALSE}"; then
37042  as_fn_error $? "conditional \"USE_THEORA\" was never defined.
37043Usually this means the macro was only invoked conditionally." "$LINENO" 5
37044fi
37045if test -z "${USE_VORBIS_TRUE}" && test -z "${USE_VORBIS_FALSE}"; then
37046  as_fn_error $? "conditional \"USE_VORBIS\" was never defined.
37047Usually this means the macro was only invoked conditionally." "$LINENO" 5
37048fi
37049if test -z "${USE_ALSA_TRUE}" && test -z "${USE_ALSA_FALSE}"; then
37050  as_fn_error $? "conditional \"USE_ALSA\" was never defined.
37051Usually this means the macro was only invoked conditionally." "$LINENO" 5
37052fi
37053if test -z "${USE_CDPARANOIA_TRUE}" && test -z "${USE_CDPARANOIA_FALSE}"; then
37054  as_fn_error $? "conditional \"USE_CDPARANOIA\" was never defined.
37055Usually this means the macro was only invoked conditionally." "$LINENO" 5
37056fi
37057if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
37058  as_fn_error $? "conditional \"USE_GL\" was never defined.
37059Usually this means the macro was only invoked conditionally." "$LINENO" 5
37060fi
37061if test -z "${USE_IVORBIS_TRUE}" && test -z "${USE_IVORBIS_FALSE}"; then
37062  as_fn_error $? "conditional \"USE_IVORBIS\" was never defined.
37063Usually this means the macro was only invoked conditionally." "$LINENO" 5
37064fi
37065if test -z "${USE_LIBVISUAL_TRUE}" && test -z "${USE_LIBVISUAL_FALSE}"; then
37066  as_fn_error $? "conditional \"USE_LIBVISUAL\" was never defined.
37067Usually this means the macro was only invoked conditionally." "$LINENO" 5
37068fi
37069if test -z "${USE_OGG_TRUE}" && test -z "${USE_OGG_FALSE}"; then
37070  as_fn_error $? "conditional \"USE_OGG\" was never defined.
37071Usually this means the macro was only invoked conditionally." "$LINENO" 5
37072fi
37073if test -z "${USE_OPUS_TRUE}" && test -z "${USE_OPUS_FALSE}"; then
37074  as_fn_error $? "conditional \"USE_OPUS\" was never defined.
37075Usually this means the macro was only invoked conditionally." "$LINENO" 5
37076fi
37077if test -z "${USE_PANGO_TRUE}" && test -z "${USE_PANGO_FALSE}"; then
37078  as_fn_error $? "conditional \"USE_PANGO\" was never defined.
37079Usually this means the macro was only invoked conditionally." "$LINENO" 5
37080fi
37081if test -z "${USE_THEORA_TRUE}" && test -z "${USE_THEORA_FALSE}"; then
37082  as_fn_error $? "conditional \"USE_THEORA\" was never defined.
37083Usually this means the macro was only invoked conditionally." "$LINENO" 5
37084fi
37085if test -z "${USE_VORBIS_TRUE}" && test -z "${USE_VORBIS_FALSE}"; then
37086  as_fn_error $? "conditional \"USE_VORBIS\" was never defined.
37087Usually this means the macro was only invoked conditionally." "$LINENO" 5
37088fi
37089if test -z "${HAVE_GRAPHENE_TRUE}" && test -z "${HAVE_GRAPHENE_FALSE}"; then
37090  as_fn_error $? "conditional \"HAVE_GRAPHENE\" was never defined.
37091Usually this means the macro was only invoked conditionally." "$LINENO" 5
37092fi
37093if test -z "${HAVE_PNG_TRUE}" && test -z "${HAVE_PNG_FALSE}"; then
37094  as_fn_error $? "conditional \"HAVE_PNG\" was never defined.
37095Usually this means the macro was only invoked conditionally." "$LINENO" 5
37096fi
37097if test -z "${HAVE_JPEG_TRUE}" && test -z "${HAVE_JPEG_FALSE}"; then
37098  as_fn_error $? "conditional \"HAVE_JPEG\" was never defined.
37099Usually this means the macro was only invoked conditionally." "$LINENO" 5
37100fi
37101if test -z "${USE_GIO_UNIX_2_0_TRUE}" && test -z "${USE_GIO_UNIX_2_0_FALSE}"; then
37102  as_fn_error $? "conditional \"USE_GIO_UNIX_2_0\" was never defined.
37103Usually this means the macro was only invoked conditionally." "$LINENO" 5
37104fi
37105
37106: "${CONFIG_STATUS=./config.status}"
37107ac_write_fail=0
37108ac_clean_files_save=$ac_clean_files
37109ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37110{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37111$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37112as_write_fail=0
37113cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37114#! $SHELL
37115# Generated by $as_me.
37116# Run this file to recreate the current configuration.
37117# Compiler output produced by configure, useful for debugging
37118# configure, is in config.log if it exists.
37119
37120debug=false
37121ac_cs_recheck=false
37122ac_cs_silent=false
37123
37124SHELL=\${CONFIG_SHELL-$SHELL}
37125export SHELL
37126_ASEOF
37127cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37128## -------------------- ##
37129## M4sh Initialization. ##
37130## -------------------- ##
37131
37132# Be more Bourne compatible
37133DUALCASE=1; export DUALCASE # for MKS sh
37134if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37135  emulate sh
37136  NULLCMD=:
37137  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37138  # is contrary to our usage.  Disable this feature.
37139  alias -g '${1+"$@"}'='"$@"'
37140  setopt NO_GLOB_SUBST
37141else
37142  case `(set -o) 2>/dev/null` in #(
37143  *posix*) :
37144    set -o posix ;; #(
37145  *) :
37146     ;;
37147esac
37148fi
37149
37150
37151as_nl='
37152'
37153export as_nl
37154# Printing a long string crashes Solaris 7 /usr/bin/printf.
37155as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37156as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37157as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37158# Prefer a ksh shell builtin over an external printf program on Solaris,
37159# but without wasting forks for bash or zsh.
37160if test -z "$BASH_VERSION$ZSH_VERSION" \
37161    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37162  as_echo='print -r --'
37163  as_echo_n='print -rn --'
37164elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37165  as_echo='printf %s\n'
37166  as_echo_n='printf %s'
37167else
37168  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37169    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37170    as_echo_n='/usr/ucb/echo -n'
37171  else
37172    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37173    as_echo_n_body='eval
37174      arg=$1;
37175      case $arg in #(
37176      *"$as_nl"*)
37177	expr "X$arg" : "X\\(.*\\)$as_nl";
37178	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37179      esac;
37180      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37181    '
37182    export as_echo_n_body
37183    as_echo_n='sh -c $as_echo_n_body as_echo'
37184  fi
37185  export as_echo_body
37186  as_echo='sh -c $as_echo_body as_echo'
37187fi
37188
37189# The user is always right.
37190if test "${PATH_SEPARATOR+set}" != set; then
37191  PATH_SEPARATOR=:
37192  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37193    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37194      PATH_SEPARATOR=';'
37195  }
37196fi
37197
37198
37199# IFS
37200# We need space, tab and new line, in precisely that order.  Quoting is
37201# there to prevent editors from complaining about space-tab.
37202# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37203# splitting by setting IFS to empty value.)
37204IFS=" ""	$as_nl"
37205
37206# Find who we are.  Look in the path if we contain no directory separator.
37207as_myself=
37208case $0 in #((
37209  *[\\/]* ) as_myself=$0 ;;
37210  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37211for as_dir in $PATH
37212do
37213  IFS=$as_save_IFS
37214  test -z "$as_dir" && as_dir=.
37215    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37216  done
37217IFS=$as_save_IFS
37218
37219     ;;
37220esac
37221# We did not find ourselves, most probably we were run as `sh COMMAND'
37222# in which case we are not to be found in the path.
37223if test "x$as_myself" = x; then
37224  as_myself=$0
37225fi
37226if test ! -f "$as_myself"; then
37227  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37228  exit 1
37229fi
37230
37231# Unset variables that we do not need and which cause bugs (e.g. in
37232# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37233# suppresses any "Segmentation fault" message there.  '((' could
37234# trigger a bug in pdksh 5.2.14.
37235for as_var in BASH_ENV ENV MAIL MAILPATH
37236do eval test x\${$as_var+set} = xset \
37237  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37238done
37239PS1='$ '
37240PS2='> '
37241PS4='+ '
37242
37243# NLS nuisances.
37244LC_ALL=C
37245export LC_ALL
37246LANGUAGE=C
37247export LANGUAGE
37248
37249# CDPATH.
37250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37251
37252
37253# as_fn_error STATUS ERROR [LINENO LOG_FD]
37254# ----------------------------------------
37255# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37256# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37257# script with STATUS, using 1 if that was 0.
37258as_fn_error ()
37259{
37260  as_status=$1; test $as_status -eq 0 && as_status=1
37261  if test "$4"; then
37262    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37263    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37264  fi
37265  $as_echo "$as_me: error: $2" >&2
37266  as_fn_exit $as_status
37267} # as_fn_error
37268
37269
37270# as_fn_set_status STATUS
37271# -----------------------
37272# Set $? to STATUS, without forking.
37273as_fn_set_status ()
37274{
37275  return $1
37276} # as_fn_set_status
37277
37278# as_fn_exit STATUS
37279# -----------------
37280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37281as_fn_exit ()
37282{
37283  set +e
37284  as_fn_set_status $1
37285  exit $1
37286} # as_fn_exit
37287
37288# as_fn_unset VAR
37289# ---------------
37290# Portably unset VAR.
37291as_fn_unset ()
37292{
37293  { eval $1=; unset $1;}
37294}
37295as_unset=as_fn_unset
37296# as_fn_append VAR VALUE
37297# ----------------------
37298# Append the text in VALUE to the end of the definition contained in VAR. Take
37299# advantage of any shell optimizations that allow amortized linear growth over
37300# repeated appends, instead of the typical quadratic growth present in naive
37301# implementations.
37302if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37303  eval 'as_fn_append ()
37304  {
37305    eval $1+=\$2
37306  }'
37307else
37308  as_fn_append ()
37309  {
37310    eval $1=\$$1\$2
37311  }
37312fi # as_fn_append
37313
37314# as_fn_arith ARG...
37315# ------------------
37316# Perform arithmetic evaluation on the ARGs, and store the result in the
37317# global $as_val. Take advantage of shells that can avoid forks. The arguments
37318# must be portable across $(()) and expr.
37319if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37320  eval 'as_fn_arith ()
37321  {
37322    as_val=$(( $* ))
37323  }'
37324else
37325  as_fn_arith ()
37326  {
37327    as_val=`expr "$@" || test $? -eq 1`
37328  }
37329fi # as_fn_arith
37330
37331
37332if expr a : '\(a\)' >/dev/null 2>&1 &&
37333   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37334  as_expr=expr
37335else
37336  as_expr=false
37337fi
37338
37339if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37340  as_basename=basename
37341else
37342  as_basename=false
37343fi
37344
37345if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37346  as_dirname=dirname
37347else
37348  as_dirname=false
37349fi
37350
37351as_me=`$as_basename -- "$0" ||
37352$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37353	 X"$0" : 'X\(//\)$' \| \
37354	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37355$as_echo X/"$0" |
37356    sed '/^.*\/\([^/][^/]*\)\/*$/{
37357	    s//\1/
37358	    q
37359	  }
37360	  /^X\/\(\/\/\)$/{
37361	    s//\1/
37362	    q
37363	  }
37364	  /^X\/\(\/\).*/{
37365	    s//\1/
37366	    q
37367	  }
37368	  s/.*/./; q'`
37369
37370# Avoid depending upon Character Ranges.
37371as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37372as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37373as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37374as_cr_digits='0123456789'
37375as_cr_alnum=$as_cr_Letters$as_cr_digits
37376
37377ECHO_C= ECHO_N= ECHO_T=
37378case `echo -n x` in #(((((
37379-n*)
37380  case `echo 'xy\c'` in
37381  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37382  xy)  ECHO_C='\c';;
37383  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37384       ECHO_T='	';;
37385  esac;;
37386*)
37387  ECHO_N='-n';;
37388esac
37389
37390rm -f conf$$ conf$$.exe conf$$.file
37391if test -d conf$$.dir; then
37392  rm -f conf$$.dir/conf$$.file
37393else
37394  rm -f conf$$.dir
37395  mkdir conf$$.dir 2>/dev/null
37396fi
37397if (echo >conf$$.file) 2>/dev/null; then
37398  if ln -s conf$$.file conf$$ 2>/dev/null; then
37399    as_ln_s='ln -s'
37400    # ... but there are two gotchas:
37401    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37402    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37403    # In both cases, we have to default to `cp -pR'.
37404    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37405      as_ln_s='cp -pR'
37406  elif ln conf$$.file conf$$ 2>/dev/null; then
37407    as_ln_s=ln
37408  else
37409    as_ln_s='cp -pR'
37410  fi
37411else
37412  as_ln_s='cp -pR'
37413fi
37414rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37415rmdir conf$$.dir 2>/dev/null
37416
37417
37418# as_fn_mkdir_p
37419# -------------
37420# Create "$as_dir" as a directory, including parents if necessary.
37421as_fn_mkdir_p ()
37422{
37423
37424  case $as_dir in #(
37425  -*) as_dir=./$as_dir;;
37426  esac
37427  test -d "$as_dir" || eval $as_mkdir_p || {
37428    as_dirs=
37429    while :; do
37430      case $as_dir in #(
37431      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37432      *) as_qdir=$as_dir;;
37433      esac
37434      as_dirs="'$as_qdir' $as_dirs"
37435      as_dir=`$as_dirname -- "$as_dir" ||
37436$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37437	 X"$as_dir" : 'X\(//\)[^/]' \| \
37438	 X"$as_dir" : 'X\(//\)$' \| \
37439	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37440$as_echo X"$as_dir" |
37441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37442	    s//\1/
37443	    q
37444	  }
37445	  /^X\(\/\/\)[^/].*/{
37446	    s//\1/
37447	    q
37448	  }
37449	  /^X\(\/\/\)$/{
37450	    s//\1/
37451	    q
37452	  }
37453	  /^X\(\/\).*/{
37454	    s//\1/
37455	    q
37456	  }
37457	  s/.*/./; q'`
37458      test -d "$as_dir" && break
37459    done
37460    test -z "$as_dirs" || eval "mkdir $as_dirs"
37461  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37462
37463
37464} # as_fn_mkdir_p
37465if mkdir -p . 2>/dev/null; then
37466  as_mkdir_p='mkdir -p "$as_dir"'
37467else
37468  test -d ./-p && rmdir ./-p
37469  as_mkdir_p=false
37470fi
37471
37472
37473# as_fn_executable_p FILE
37474# -----------------------
37475# Test if FILE is an executable regular file.
37476as_fn_executable_p ()
37477{
37478  test -f "$1" && test -x "$1"
37479} # as_fn_executable_p
37480as_test_x='test -x'
37481as_executable_p=as_fn_executable_p
37482
37483# Sed expression to map a string onto a valid CPP name.
37484as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37485
37486# Sed expression to map a string onto a valid variable name.
37487as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37488
37489
37490exec 6>&1
37491## ----------------------------------- ##
37492## Main body of $CONFIG_STATUS script. ##
37493## ----------------------------------- ##
37494_ASEOF
37495test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37496
37497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37498# Save the log message, to keep $0 and so on meaningful, and to
37499# report actual input values of CONFIG_FILES etc. instead of their
37500# values after options handling.
37501ac_log="
37502This file was extended by GStreamer Base Plug-ins $as_me 1.16.2, which was
37503generated by GNU Autoconf 2.69.  Invocation command line was
37504
37505  CONFIG_FILES    = $CONFIG_FILES
37506  CONFIG_HEADERS  = $CONFIG_HEADERS
37507  CONFIG_LINKS    = $CONFIG_LINKS
37508  CONFIG_COMMANDS = $CONFIG_COMMANDS
37509  $ $0 $@
37510
37511on `(hostname || uname -n) 2>/dev/null | sed 1q`
37512"
37513
37514_ACEOF
37515
37516case $ac_config_files in *"
37517"*) set x $ac_config_files; shift; ac_config_files=$*;;
37518esac
37519
37520case $ac_config_headers in *"
37521"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37522esac
37523
37524
37525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37526# Files that config.status was made for.
37527config_files="$ac_config_files"
37528config_headers="$ac_config_headers"
37529config_commands="$ac_config_commands"
37530
37531_ACEOF
37532
37533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37534ac_cs_usage="\
37535\`$as_me' instantiates files and other configuration actions
37536from templates according to the current configuration.  Unless the files
37537and actions are specified as TAGs, all are instantiated by default.
37538
37539Usage: $0 [OPTION]... [TAG]...
37540
37541  -h, --help       print this help, then exit
37542  -V, --version    print version number and configuration settings, then exit
37543      --config     print configuration, then exit
37544  -q, --quiet, --silent
37545                   do not print progress messages
37546  -d, --debug      don't remove temporary files
37547      --recheck    update $as_me by reconfiguring in the same conditions
37548      --file=FILE[:TEMPLATE]
37549                   instantiate the configuration file FILE
37550      --header=FILE[:TEMPLATE]
37551                   instantiate the configuration header FILE
37552
37553Configuration files:
37554$config_files
37555
37556Configuration headers:
37557$config_headers
37558
37559Configuration commands:
37560$config_commands
37561
37562Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>."
37563
37564_ACEOF
37565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37566ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37567ac_cs_version="\\
37568GStreamer Base Plug-ins config.status 1.16.2
37569configured by $0, generated by GNU Autoconf 2.69,
37570  with options \\"\$ac_cs_config\\"
37571
37572Copyright (C) 2012 Free Software Foundation, Inc.
37573This config.status script is free software; the Free Software Foundation
37574gives unlimited permission to copy, distribute and modify it."
37575
37576ac_pwd='$ac_pwd'
37577srcdir='$srcdir'
37578INSTALL='$INSTALL'
37579MKDIR_P='$MKDIR_P'
37580AWK='$AWK'
37581test -n "\$AWK" || AWK=awk
37582_ACEOF
37583
37584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37585# The default lists apply if the user does not specify any file.
37586ac_need_defaults=:
37587while test $# != 0
37588do
37589  case $1 in
37590  --*=?*)
37591    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37592    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37593    ac_shift=:
37594    ;;
37595  --*=)
37596    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37597    ac_optarg=
37598    ac_shift=:
37599    ;;
37600  *)
37601    ac_option=$1
37602    ac_optarg=$2
37603    ac_shift=shift
37604    ;;
37605  esac
37606
37607  case $ac_option in
37608  # Handling of the options.
37609  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37610    ac_cs_recheck=: ;;
37611  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37612    $as_echo "$ac_cs_version"; exit ;;
37613  --config | --confi | --conf | --con | --co | --c )
37614    $as_echo "$ac_cs_config"; exit ;;
37615  --debug | --debu | --deb | --de | --d | -d )
37616    debug=: ;;
37617  --file | --fil | --fi | --f )
37618    $ac_shift
37619    case $ac_optarg in
37620    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37621    '') as_fn_error $? "missing file argument" ;;
37622    esac
37623    as_fn_append CONFIG_FILES " '$ac_optarg'"
37624    ac_need_defaults=false;;
37625  --header | --heade | --head | --hea )
37626    $ac_shift
37627    case $ac_optarg in
37628    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37629    esac
37630    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37631    ac_need_defaults=false;;
37632  --he | --h)
37633    # Conflict between --help and --header
37634    as_fn_error $? "ambiguous option: \`$1'
37635Try \`$0 --help' for more information.";;
37636  --help | --hel | -h )
37637    $as_echo "$ac_cs_usage"; exit ;;
37638  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37639  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37640    ac_cs_silent=: ;;
37641
37642  # This is an error.
37643  -*) as_fn_error $? "unrecognized option: \`$1'
37644Try \`$0 --help' for more information." ;;
37645
37646  *) as_fn_append ac_config_targets " $1"
37647     ac_need_defaults=false ;;
37648
37649  esac
37650  shift
37651done
37652
37653ac_configure_extra_args=
37654
37655if $ac_cs_silent; then
37656  exec 6>/dev/null
37657  ac_configure_extra_args="$ac_configure_extra_args --silent"
37658fi
37659
37660_ACEOF
37661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37662if \$ac_cs_recheck; then
37663  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37664  shift
37665  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37666  CONFIG_SHELL='$SHELL'
37667  export CONFIG_SHELL
37668  exec "\$@"
37669fi
37670
37671_ACEOF
37672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37673exec 5>>config.log
37674{
37675  echo
37676  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37677## Running $as_me. ##
37678_ASBOX
37679  $as_echo "$ac_log"
37680} >&5
37681
37682_ACEOF
37683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37684#
37685# INIT-COMMANDS
37686#
37687AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
37688
37689
37690# The HP-UX ksh and POSIX shell print the target directory to stdout
37691# if CDPATH is set.
37692(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37693
37694sed_quote_subst='$sed_quote_subst'
37695double_quote_subst='$double_quote_subst'
37696delay_variable_subst='$delay_variable_subst'
37697macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37698macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37699AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37700DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37701OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37702enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37703enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37704pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37705enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37706shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37707SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37708ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37709PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37710host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37711host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37712host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37713build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37714build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37715build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37716SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37717Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37718GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37719EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37720FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37721LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37722NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37723LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37724max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37725ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37726exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37727lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37728lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37729lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37730lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37731lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37732reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37733reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37734deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37735file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37736file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37737want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37738sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37739AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37740AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37741archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37742STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37743RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37744old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37745old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37746old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37747lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37748CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37749CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37750compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37751GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37752lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37754lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
37755lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37756lt_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"`'
37757lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
37758nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37759lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37760lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
37761objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37762MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37763lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37764lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37765lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37766lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37767lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37768need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37769MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37770DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37771NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37772LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37773OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37774OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37775libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37776shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37777extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37778archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37779enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37780export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37781whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37782compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37783old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37784old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37785archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37786archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37787module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37788module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37789with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37790allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37791no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37792hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37793hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37794hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37795hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37796hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37797hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37798hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37799inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37800link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37801always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37802export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37803exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37804include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37805prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37806postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37807file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37808variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37809need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37810need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37811version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37812runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37813shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37814shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37815libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37816library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37817soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37818install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37819postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37820postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37821finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37822finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37823hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37824sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37825configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37826configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
37827hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37828enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37829enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37830enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37831old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37832striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37833compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37834predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37835postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37836predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37837postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37838compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37839LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37840reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37841reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37842old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37843compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37844GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37845lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
37846lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
37847lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
37848lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37849lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37850archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37851enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37852export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37853whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37854compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37855old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37856old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37857archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37858archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37859module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37860module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37861with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37862allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37863no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37864hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37865hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37866hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37867hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37868hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37869hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37870hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37871inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37872link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
37873always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37874export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37875exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37876include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37877prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37878postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37879file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37880hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37881compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37882predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37883postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37884predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37885postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37886compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
37887
37888LTCC='$LTCC'
37889LTCFLAGS='$LTCFLAGS'
37890compiler='$compiler_DEFAULT'
37891
37892# A function that is used when there is no print builtin or printf.
37893func_fallback_echo ()
37894{
37895  eval 'cat <<_LTECHO_EOF
37896\$1
37897_LTECHO_EOF'
37898}
37899
37900# Quote evaled strings.
37901for var in AS \
37902DLLTOOL \
37903OBJDUMP \
37904SHELL \
37905ECHO \
37906PATH_SEPARATOR \
37907SED \
37908GREP \
37909EGREP \
37910FGREP \
37911LD \
37912NM \
37913LN_S \
37914lt_SP2NL \
37915lt_NL2SP \
37916reload_flag \
37917deplibs_check_method \
37918file_magic_cmd \
37919file_magic_glob \
37920want_nocaseglob \
37921sharedlib_from_linklib_cmd \
37922AR \
37923AR_FLAGS \
37924archiver_list_spec \
37925STRIP \
37926RANLIB \
37927CC \
37928CFLAGS \
37929compiler \
37930lt_cv_sys_global_symbol_pipe \
37931lt_cv_sys_global_symbol_to_cdecl \
37932lt_cv_sys_global_symbol_to_import \
37933lt_cv_sys_global_symbol_to_c_name_address \
37934lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37935lt_cv_nm_interface \
37936nm_file_list_spec \
37937lt_cv_truncate_bin \
37938lt_prog_compiler_no_builtin_flag \
37939lt_prog_compiler_pic \
37940lt_prog_compiler_wl \
37941lt_prog_compiler_static \
37942lt_cv_prog_compiler_c_o \
37943need_locks \
37944MANIFEST_TOOL \
37945DSYMUTIL \
37946NMEDIT \
37947LIPO \
37948OTOOL \
37949OTOOL64 \
37950shrext_cmds \
37951export_dynamic_flag_spec \
37952whole_archive_flag_spec \
37953compiler_needs_object \
37954with_gnu_ld \
37955allow_undefined_flag \
37956no_undefined_flag \
37957hardcode_libdir_flag_spec \
37958hardcode_libdir_separator \
37959exclude_expsyms \
37960include_expsyms \
37961file_list_spec \
37962variables_saved_for_relink \
37963libname_spec \
37964library_names_spec \
37965soname_spec \
37966install_override_mode \
37967finish_eval \
37968old_striplib \
37969striplib \
37970compiler_lib_search_dirs \
37971predep_objects \
37972postdep_objects \
37973predeps \
37974postdeps \
37975compiler_lib_search_path \
37976LD_CXX \
37977reload_flag_CXX \
37978compiler_CXX \
37979lt_prog_compiler_no_builtin_flag_CXX \
37980lt_prog_compiler_pic_CXX \
37981lt_prog_compiler_wl_CXX \
37982lt_prog_compiler_static_CXX \
37983lt_cv_prog_compiler_c_o_CXX \
37984export_dynamic_flag_spec_CXX \
37985whole_archive_flag_spec_CXX \
37986compiler_needs_object_CXX \
37987with_gnu_ld_CXX \
37988allow_undefined_flag_CXX \
37989no_undefined_flag_CXX \
37990hardcode_libdir_flag_spec_CXX \
37991hardcode_libdir_separator_CXX \
37992exclude_expsyms_CXX \
37993include_expsyms_CXX \
37994file_list_spec_CXX \
37995compiler_lib_search_dirs_CXX \
37996predep_objects_CXX \
37997postdep_objects_CXX \
37998predeps_CXX \
37999postdeps_CXX \
38000compiler_lib_search_path_CXX; do
38001    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38002    *[\\\\\\\`\\"\\\$]*)
38003      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38004      ;;
38005    *)
38006      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38007      ;;
38008    esac
38009done
38010
38011# Double-quote double-evaled strings.
38012for var in reload_cmds \
38013old_postinstall_cmds \
38014old_postuninstall_cmds \
38015old_archive_cmds \
38016extract_expsyms_cmds \
38017old_archive_from_new_cmds \
38018old_archive_from_expsyms_cmds \
38019archive_cmds \
38020archive_expsym_cmds \
38021module_cmds \
38022module_expsym_cmds \
38023export_symbols_cmds \
38024prelink_cmds \
38025postlink_cmds \
38026postinstall_cmds \
38027postuninstall_cmds \
38028finish_cmds \
38029sys_lib_search_path_spec \
38030configure_time_dlsearch_path \
38031configure_time_lt_sys_library_path \
38032reload_cmds_CXX \
38033old_archive_cmds_CXX \
38034old_archive_from_new_cmds_CXX \
38035old_archive_from_expsyms_cmds_CXX \
38036archive_cmds_CXX \
38037archive_expsym_cmds_CXX \
38038module_cmds_CXX \
38039module_expsym_cmds_CXX \
38040export_symbols_cmds_CXX \
38041prelink_cmds_CXX \
38042postlink_cmds_CXX; do
38043    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38044    *[\\\\\\\`\\"\\\$]*)
38045      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38046      ;;
38047    *)
38048      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38049      ;;
38050    esac
38051done
38052
38053ac_aux_dir='$ac_aux_dir'
38054
38055# See if we are running on zsh, and set the options that allow our
38056# commands through without removal of \ escapes INIT.
38057if test -n "\${ZSH_VERSION+set}"; then
38058   setopt NO_GLOB_SUBST
38059fi
38060
38061
38062    PACKAGE='$PACKAGE'
38063    VERSION='$VERSION'
38064    RM='$RM'
38065    ofile='$ofile'
38066
38067
38068
38069
38070
38071# Capture the value of obsolete ALL_LINGUAS because we need it to compute
38072    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
38073    # from automake < 1.5.
38074    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
38075    # Capture the value of LINGUAS because we need it to compute CATALOGS.
38076    LINGUAS="${LINGUAS-%UNSET%}"
38077
38078# variables for create stdint.h replacement
38079PACKAGE="$PACKAGE"
38080VERSION="$VERSION"
38081ac_stdint_h="$ac_stdint_h"
38082_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
38083ac_cv_stdint_message="$ac_cv_stdint_message"
38084ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
38085ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
38086ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
38087ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
38088ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
38089ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
38090ac_cv_char_data_model="$ac_cv_char_data_model"
38091ac_cv_long_data_model="$ac_cv_long_data_model"
38092ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
38093ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
38094ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
38095
38096
38097gl_config_defines='$GL_CONFIG_DEFINES'
38098
38099
38100_ACEOF
38101
38102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38103
38104# Handling of arguments.
38105for ac_config_target in $ac_config_targets
38106do
38107  case $ac_config_target in
38108    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
38109    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38110    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38111    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
38112    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
38113    "gst-libs/gst/gl/gstglconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gst-libs/gst/gl/gstglconfig.h" ;;
38114    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38115    "gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst/Makefile" ;;
38116    "gst/adder/Makefile") CONFIG_FILES="$CONFIG_FILES gst/adder/Makefile" ;;
38117    "gst/app/Makefile") CONFIG_FILES="$CONFIG_FILES gst/app/Makefile" ;;
38118    "gst/audioconvert/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audioconvert/Makefile" ;;
38119    "gst/audiomixer/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiomixer/Makefile" ;;
38120    "gst/audiorate/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiorate/Makefile" ;;
38121    "gst/audioresample/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audioresample/Makefile" ;;
38122    "gst/audiotestsrc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiotestsrc/Makefile" ;;
38123    "gst/compositor/Makefile") CONFIG_FILES="$CONFIG_FILES gst/compositor/Makefile" ;;
38124    "gst/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES gst/encoding/Makefile" ;;
38125    "gst/videoconvert/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videoconvert/Makefile" ;;
38126    "gst/gio/Makefile") CONFIG_FILES="$CONFIG_FILES gst/gio/Makefile" ;;
38127    "gst/overlaycomposition/Makefile") CONFIG_FILES="$CONFIG_FILES gst/overlaycomposition/Makefile" ;;
38128    "gst/pbtypes/Makefile") CONFIG_FILES="$CONFIG_FILES gst/pbtypes/Makefile" ;;
38129    "gst/playback/Makefile") CONFIG_FILES="$CONFIG_FILES gst/playback/Makefile" ;;
38130    "gst/rawparse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/rawparse/Makefile" ;;
38131    "gst/subparse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/subparse/Makefile" ;;
38132    "gst/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES gst/tcp/Makefile" ;;
38133    "gst/typefind/Makefile") CONFIG_FILES="$CONFIG_FILES gst/typefind/Makefile" ;;
38134    "gst/videotestsrc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videotestsrc/Makefile" ;;
38135    "gst/videorate/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videorate/Makefile" ;;
38136    "gst/videoscale/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videoscale/Makefile" ;;
38137    "gst/volume/Makefile") CONFIG_FILES="$CONFIG_FILES gst/volume/Makefile" ;;
38138    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
38139    "sys/ximage/Makefile") CONFIG_FILES="$CONFIG_FILES sys/ximage/Makefile" ;;
38140    "sys/xvimage/Makefile") CONFIG_FILES="$CONFIG_FILES sys/xvimage/Makefile" ;;
38141    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
38142    "ext/alsa/Makefile") CONFIG_FILES="$CONFIG_FILES ext/alsa/Makefile" ;;
38143    "ext/cdparanoia/Makefile") CONFIG_FILES="$CONFIG_FILES ext/cdparanoia/Makefile" ;;
38144    "ext/gl/Makefile") CONFIG_FILES="$CONFIG_FILES ext/gl/Makefile" ;;
38145    "ext/libvisual/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libvisual/Makefile" ;;
38146    "ext/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ogg/Makefile" ;;
38147    "ext/opus/Makefile") CONFIG_FILES="$CONFIG_FILES ext/opus/Makefile" ;;
38148    "ext/pango/Makefile") CONFIG_FILES="$CONFIG_FILES ext/pango/Makefile" ;;
38149    "ext/theora/Makefile") CONFIG_FILES="$CONFIG_FILES ext/theora/Makefile" ;;
38150    "ext/vorbis/Makefile") CONFIG_FILES="$CONFIG_FILES ext/vorbis/Makefile" ;;
38151    "gst-libs/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/Makefile" ;;
38152    "gst-libs/gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/Makefile" ;;
38153    "gst-libs/gst/allocators/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/allocators/Makefile" ;;
38154    "gst-libs/gst/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/audio/Makefile" ;;
38155    "gst-libs/gst/app/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/app/Makefile" ;;
38156    "gst-libs/gst/fft/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/fft/Makefile" ;;
38157    "gst-libs/gst/gl/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/Makefile" ;;
38158    "gst-libs/gst/gl/android/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/android/Makefile" ;;
38159    "gst-libs/gst/gl/cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/cocoa/Makefile" ;;
38160    "gst-libs/gst/gl/dispmanx/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/dispmanx/Makefile" ;;
38161    "gst-libs/gst/gl/glprototypes/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/glprototypes/Makefile" ;;
38162    "gst-libs/gst/gl/eagl/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/eagl/Makefile" ;;
38163    "gst-libs/gst/gl/egl/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/egl/Makefile" ;;
38164    "gst-libs/gst/gl/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/wayland/Makefile" ;;
38165    "gst-libs/gst/gl/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/win32/Makefile" ;;
38166    "gst-libs/gst/gl/x11/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/x11/Makefile" ;;
38167    "gst-libs/gst/gl/viv-fb/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/viv-fb/Makefile" ;;
38168    "gst-libs/gst/gl/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/gl/gbm/Makefile" ;;
38169    "gst-libs/gst/riff/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/riff/Makefile" ;;
38170    "gst-libs/gst/rtp/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/rtp/Makefile" ;;
38171    "gst-libs/gst/rtsp/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/rtsp/Makefile" ;;
38172    "gst-libs/gst/sdp/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/sdp/Makefile" ;;
38173    "gst-libs/gst/tag/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/tag/Makefile" ;;
38174    "gst-libs/gst/pbutils/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/pbutils/Makefile" ;;
38175    "gst-libs/gst/pbutils/gstpluginsbaseversion.h") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/pbutils/gstpluginsbaseversion.h" ;;
38176    "gst-libs/gst/video/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/video/Makefile" ;;
38177    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
38178    "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
38179    "pkgconfig/gstreamer-allocators.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-allocators.pc" ;;
38180    "pkgconfig/gstreamer-allocators-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-allocators-uninstalled.pc" ;;
38181    "pkgconfig/gstreamer-audio.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-audio.pc" ;;
38182    "pkgconfig/gstreamer-audio-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-audio-uninstalled.pc" ;;
38183    "pkgconfig/gstreamer-app.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-app.pc" ;;
38184    "pkgconfig/gstreamer-app-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-app-uninstalled.pc" ;;
38185    "pkgconfig/gstreamer-fft.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-fft.pc" ;;
38186    "pkgconfig/gstreamer-fft-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-fft-uninstalled.pc" ;;
38187    "pkgconfig/gstreamer-pbutils.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-pbutils.pc" ;;
38188    "pkgconfig/gstreamer-pbutils-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-pbutils-uninstalled.pc" ;;
38189    "pkgconfig/gstreamer-riff.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-riff.pc" ;;
38190    "pkgconfig/gstreamer-riff-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-riff-uninstalled.pc" ;;
38191    "pkgconfig/gstreamer-rtp.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-rtp.pc" ;;
38192    "pkgconfig/gstreamer-rtp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-rtp-uninstalled.pc" ;;
38193    "pkgconfig/gstreamer-rtsp.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-rtsp.pc" ;;
38194    "pkgconfig/gstreamer-rtsp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-rtsp-uninstalled.pc" ;;
38195    "pkgconfig/gstreamer-sdp.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-sdp.pc" ;;
38196    "pkgconfig/gstreamer-sdp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-sdp-uninstalled.pc" ;;
38197    "pkgconfig/gstreamer-tag.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-tag.pc" ;;
38198    "pkgconfig/gstreamer-tag-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-tag-uninstalled.pc" ;;
38199    "pkgconfig/gstreamer-video.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-video.pc" ;;
38200    "pkgconfig/gstreamer-video-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-video-uninstalled.pc" ;;
38201    "pkgconfig/gstreamer-gl.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-gl.pc" ;;
38202    "pkgconfig/gstreamer-gl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-gl-uninstalled.pc" ;;
38203    "pkgconfig/gstreamer-plugins-base.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-plugins-base.pc" ;;
38204    "pkgconfig/gstreamer-plugins-base-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-plugins-base-uninstalled.pc" ;;
38205    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
38206    "tests/check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/check/Makefile" ;;
38207    "tests/examples/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/Makefile" ;;
38208    "tests/examples/app/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/app/Makefile" ;;
38209    "tests/examples/audio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/audio/Makefile" ;;
38210    "tests/examples/compositor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/compositor/Makefile" ;;
38211    "tests/examples/decodebin_next/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/decodebin_next/Makefile" ;;
38212    "tests/examples/dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/dynamic/Makefile" ;;
38213    "tests/examples/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/encoding/Makefile" ;;
38214    "tests/examples/fft/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/fft/Makefile" ;;
38215    "tests/examples/gio/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gio/Makefile" ;;
38216    "tests/examples/gl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/Makefile" ;;
38217    "tests/examples/gl/generic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/generic/Makefile" ;;
38218    "tests/examples/gl/generic/cube/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/generic/cube/Makefile" ;;
38219    "tests/examples/gl/generic/doublecube/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/generic/doublecube/Makefile" ;;
38220    "tests/examples/gl/generic/recordgraphic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/generic/recordgraphic/Makefile" ;;
38221    "tests/examples/gl/generic/cubeyuv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/generic/cubeyuv/Makefile" ;;
38222    "tests/examples/gl/qt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/qt/Makefile" ;;
38223    "tests/examples/gl/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/Makefile" ;;
38224    "tests/examples/gl/gtk/fxtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/fxtest/Makefile" ;;
38225    "tests/examples/gl/gtk/3dvideo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/3dvideo/Makefile" ;;
38226    "tests/examples/gl/gtk/switchvideooverlay/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/switchvideooverlay/Makefile" ;;
38227    "tests/examples/gl/gtk/filternovideooverlay/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/filternovideooverlay/Makefile" ;;
38228    "tests/examples/gl/gtk/filtervideooverlay/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/gtk/filtervideooverlay/Makefile" ;;
38229    "tests/examples/gl/cocoa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/cocoa/Makefile" ;;
38230    "tests/examples/gl/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/gl/sdl/Makefile" ;;
38231    "tests/examples/overlay/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/overlay/Makefile" ;;
38232    "tests/examples/overlaycomposition/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/overlaycomposition/Makefile" ;;
38233    "tests/examples/seek/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/seek/Makefile" ;;
38234    "tests/examples/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/snapshot/Makefile" ;;
38235    "tests/examples/playback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/playback/Makefile" ;;
38236    "tests/examples/playrec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/playrec/Makefile" ;;
38237    "tests/files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/files/Makefile" ;;
38238    "tests/icles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/icles/Makefile" ;;
38239    "tests/icles/playback/Makefile") CONFIG_FILES="$CONFIG_FILES tests/icles/playback/Makefile" ;;
38240    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
38241    "docs/libs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libs/Makefile" ;;
38242    "docs/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES docs/plugins/Makefile" ;;
38243    "docs/version.entities") CONFIG_FILES="$CONFIG_FILES docs/version.entities" ;;
38244    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
38245    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
38246    "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
38247    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
38248
38249  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38250  esac
38251done
38252
38253
38254# If the user did not use the arguments to specify the items to instantiate,
38255# then the envvar interface is used.  Set only those that are not.
38256# We use the long form for the default assignment because of an extremely
38257# bizarre bug on SunOS 4.1.3.
38258if $ac_need_defaults; then
38259  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38260  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38261  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38262fi
38263
38264# Have a temporary directory for convenience.  Make it in the build tree
38265# simply because there is no reason against having it here, and in addition,
38266# creating and moving files from /tmp can sometimes cause problems.
38267# Hook for its removal unless debugging.
38268# Note that there is a small window in which the directory will not be cleaned:
38269# after its creation but before its name has been assigned to `$tmp'.
38270$debug ||
38271{
38272  tmp= ac_tmp=
38273  trap 'exit_status=$?
38274  : "${ac_tmp:=$tmp}"
38275  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38276' 0
38277  trap 'as_fn_exit 1' 1 2 13 15
38278}
38279# Create a (secure) tmp directory for tmp files.
38280
38281{
38282  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38283  test -d "$tmp"
38284}  ||
38285{
38286  tmp=./conf$$-$RANDOM
38287  (umask 077 && mkdir "$tmp")
38288} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38289ac_tmp=$tmp
38290
38291# Set up the scripts for CONFIG_FILES section.
38292# No need to generate them if there are no CONFIG_FILES.
38293# This happens for instance with `./config.status config.h'.
38294if test -n "$CONFIG_FILES"; then
38295
38296
38297ac_cr=`echo X | tr X '\015'`
38298# On cygwin, bash can eat \r inside `` if the user requested igncr.
38299# But we know of no other shell where ac_cr would be empty at this
38300# point, so we can use a bashism as a fallback.
38301if test "x$ac_cr" = x; then
38302  eval ac_cr=\$\'\\r\'
38303fi
38304ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38305if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38306  ac_cs_awk_cr='\\r'
38307else
38308  ac_cs_awk_cr=$ac_cr
38309fi
38310
38311echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38312_ACEOF
38313
38314
38315{
38316  echo "cat >conf$$subs.awk <<_ACEOF" &&
38317  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38318  echo "_ACEOF"
38319} >conf$$subs.sh ||
38320  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38321ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38322ac_delim='%!_!# '
38323for ac_last_try in false false false false false :; do
38324  . ./conf$$subs.sh ||
38325    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38326
38327  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38328  if test $ac_delim_n = $ac_delim_num; then
38329    break
38330  elif $ac_last_try; then
38331    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38332  else
38333    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38334  fi
38335done
38336rm -f conf$$subs.sh
38337
38338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38339cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38340_ACEOF
38341sed -n '
38342h
38343s/^/S["/; s/!.*/"]=/
38344p
38345g
38346s/^[^!]*!//
38347:repl
38348t repl
38349s/'"$ac_delim"'$//
38350t delim
38351:nl
38352h
38353s/\(.\{148\}\)..*/\1/
38354t more1
38355s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38356p
38357n
38358b repl
38359:more1
38360s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38361p
38362g
38363s/.\{148\}//
38364t nl
38365:delim
38366h
38367s/\(.\{148\}\)..*/\1/
38368t more2
38369s/["\\]/\\&/g; s/^/"/; s/$/"/
38370p
38371b
38372:more2
38373s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38374p
38375g
38376s/.\{148\}//
38377t delim
38378' <conf$$subs.awk | sed '
38379/^[^""]/{
38380  N
38381  s/\n//
38382}
38383' >>$CONFIG_STATUS || ac_write_fail=1
38384rm -f conf$$subs.awk
38385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38386_ACAWK
38387cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38388  for (key in S) S_is_set[key] = 1
38389  FS = ""
38390
38391}
38392{
38393  line = $ 0
38394  nfields = split(line, field, "@")
38395  substed = 0
38396  len = length(field[1])
38397  for (i = 2; i < nfields; i++) {
38398    key = field[i]
38399    keylen = length(key)
38400    if (S_is_set[key]) {
38401      value = S[key]
38402      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38403      len += length(value) + length(field[++i])
38404      substed = 1
38405    } else
38406      len += 1 + keylen
38407  }
38408
38409  print line
38410}
38411
38412_ACAWK
38413_ACEOF
38414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38415if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38416  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38417else
38418  cat
38419fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38420  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38421_ACEOF
38422
38423# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38424# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38425# trailing colons and then remove the whole line if VPATH becomes empty
38426# (actually we leave an empty line to preserve line numbers).
38427if test "x$srcdir" = x.; then
38428  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38429h
38430s///
38431s/^/:/
38432s/[	 ]*$/:/
38433s/:\$(srcdir):/:/g
38434s/:\${srcdir}:/:/g
38435s/:@srcdir@:/:/g
38436s/^:*//
38437s/:*$//
38438x
38439s/\(=[	 ]*\).*/\1/
38440G
38441s/\n//
38442s/^[^=]*=[	 ]*$//
38443}'
38444fi
38445
38446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38447fi # test -n "$CONFIG_FILES"
38448
38449# Set up the scripts for CONFIG_HEADERS section.
38450# No need to generate them if there are no CONFIG_HEADERS.
38451# This happens for instance with `./config.status Makefile'.
38452if test -n "$CONFIG_HEADERS"; then
38453cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38454BEGIN {
38455_ACEOF
38456
38457# Transform confdefs.h into an awk script `defines.awk', embedded as
38458# here-document in config.status, that substitutes the proper values into
38459# config.h.in to produce config.h.
38460
38461# Create a delimiter string that does not exist in confdefs.h, to ease
38462# handling of long lines.
38463ac_delim='%!_!# '
38464for ac_last_try in false false :; do
38465  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38466  if test -z "$ac_tt"; then
38467    break
38468  elif $ac_last_try; then
38469    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38470  else
38471    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38472  fi
38473done
38474
38475# For the awk script, D is an array of macro values keyed by name,
38476# likewise P contains macro parameters if any.  Preserve backslash
38477# newline sequences.
38478
38479ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38480sed -n '
38481s/.\{148\}/&'"$ac_delim"'/g
38482t rset
38483:rset
38484s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38485t def
38486d
38487:def
38488s/\\$//
38489t bsnl
38490s/["\\]/\\&/g
38491s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38492D["\1"]=" \3"/p
38493s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38494d
38495:bsnl
38496s/["\\]/\\&/g
38497s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38498D["\1"]=" \3\\\\\\n"\\/p
38499t cont
38500s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38501t cont
38502d
38503:cont
38504n
38505s/.\{148\}/&'"$ac_delim"'/g
38506t clear
38507:clear
38508s/\\$//
38509t bsnlc
38510s/["\\]/\\&/g; s/^/"/; s/$/"/p
38511d
38512:bsnlc
38513s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38514b cont
38515' <confdefs.h | sed '
38516s/'"$ac_delim"'/"\\\
38517"/g' >>$CONFIG_STATUS || ac_write_fail=1
38518
38519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38520  for (key in D) D_is_set[key] = 1
38521  FS = ""
38522}
38523/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38524  line = \$ 0
38525  split(line, arg, " ")
38526  if (arg[1] == "#") {
38527    defundef = arg[2]
38528    mac1 = arg[3]
38529  } else {
38530    defundef = substr(arg[1], 2)
38531    mac1 = arg[2]
38532  }
38533  split(mac1, mac2, "(") #)
38534  macro = mac2[1]
38535  prefix = substr(line, 1, index(line, defundef) - 1)
38536  if (D_is_set[macro]) {
38537    # Preserve the white space surrounding the "#".
38538    print prefix "define", macro P[macro] D[macro]
38539    next
38540  } else {
38541    # Replace #undef with comments.  This is necessary, for example,
38542    # in the case of _POSIX_SOURCE, which is predefined and required
38543    # on some systems where configure will not decide to define it.
38544    if (defundef == "undef") {
38545      print "/*", prefix defundef, macro, "*/"
38546      next
38547    }
38548  }
38549}
38550{ print }
38551_ACAWK
38552_ACEOF
38553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38554  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38555fi # test -n "$CONFIG_HEADERS"
38556
38557
38558eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38559shift
38560for ac_tag
38561do
38562  case $ac_tag in
38563  :[FHLC]) ac_mode=$ac_tag; continue;;
38564  esac
38565  case $ac_mode$ac_tag in
38566  :[FHL]*:*);;
38567  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38568  :[FH]-) ac_tag=-:-;;
38569  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38570  esac
38571  ac_save_IFS=$IFS
38572  IFS=:
38573  set x $ac_tag
38574  IFS=$ac_save_IFS
38575  shift
38576  ac_file=$1
38577  shift
38578
38579  case $ac_mode in
38580  :L) ac_source=$1;;
38581  :[FH])
38582    ac_file_inputs=
38583    for ac_f
38584    do
38585      case $ac_f in
38586      -) ac_f="$ac_tmp/stdin";;
38587      *) # Look for the file first in the build tree, then in the source tree
38588	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38589	 # because $ac_f cannot contain `:'.
38590	 test -f "$ac_f" ||
38591	   case $ac_f in
38592	   [\\/$]*) false;;
38593	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38594	   esac ||
38595	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38596      esac
38597      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38598      as_fn_append ac_file_inputs " '$ac_f'"
38599    done
38600
38601    # Let's still pretend it is `configure' which instantiates (i.e., don't
38602    # use $as_me), people would be surprised to read:
38603    #    /* config.h.  Generated by config.status.  */
38604    configure_input='Generated from '`
38605	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38606	`' by configure.'
38607    if test x"$ac_file" != x-; then
38608      configure_input="$ac_file.  $configure_input"
38609      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38610$as_echo "$as_me: creating $ac_file" >&6;}
38611    fi
38612    # Neutralize special characters interpreted by sed in replacement strings.
38613    case $configure_input in #(
38614    *\&* | *\|* | *\\* )
38615       ac_sed_conf_input=`$as_echo "$configure_input" |
38616       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38617    *) ac_sed_conf_input=$configure_input;;
38618    esac
38619
38620    case $ac_tag in
38621    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38622      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38623    esac
38624    ;;
38625  esac
38626
38627  ac_dir=`$as_dirname -- "$ac_file" ||
38628$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38629	 X"$ac_file" : 'X\(//\)[^/]' \| \
38630	 X"$ac_file" : 'X\(//\)$' \| \
38631	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38632$as_echo X"$ac_file" |
38633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38634	    s//\1/
38635	    q
38636	  }
38637	  /^X\(\/\/\)[^/].*/{
38638	    s//\1/
38639	    q
38640	  }
38641	  /^X\(\/\/\)$/{
38642	    s//\1/
38643	    q
38644	  }
38645	  /^X\(\/\).*/{
38646	    s//\1/
38647	    q
38648	  }
38649	  s/.*/./; q'`
38650  as_dir="$ac_dir"; as_fn_mkdir_p
38651  ac_builddir=.
38652
38653case "$ac_dir" in
38654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38655*)
38656  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38657  # A ".." for each directory in $ac_dir_suffix.
38658  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38659  case $ac_top_builddir_sub in
38660  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38661  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38662  esac ;;
38663esac
38664ac_abs_top_builddir=$ac_pwd
38665ac_abs_builddir=$ac_pwd$ac_dir_suffix
38666# for backward compatibility:
38667ac_top_builddir=$ac_top_build_prefix
38668
38669case $srcdir in
38670  .)  # We are building in place.
38671    ac_srcdir=.
38672    ac_top_srcdir=$ac_top_builddir_sub
38673    ac_abs_top_srcdir=$ac_pwd ;;
38674  [\\/]* | ?:[\\/]* )  # Absolute name.
38675    ac_srcdir=$srcdir$ac_dir_suffix;
38676    ac_top_srcdir=$srcdir
38677    ac_abs_top_srcdir=$srcdir ;;
38678  *) # Relative name.
38679    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38680    ac_top_srcdir=$ac_top_build_prefix$srcdir
38681    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38682esac
38683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38684
38685
38686  case $ac_mode in
38687  :F)
38688  #
38689  # CONFIG_FILE
38690  #
38691
38692  case $INSTALL in
38693  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38694  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38695  esac
38696  ac_MKDIR_P=$MKDIR_P
38697  case $MKDIR_P in
38698  [\\/$]* | ?:[\\/]* ) ;;
38699  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38700  esac
38701_ACEOF
38702
38703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38704# If the template does not know about datarootdir, expand it.
38705# FIXME: This hack should be removed a few years after 2.60.
38706ac_datarootdir_hack=; ac_datarootdir_seen=
38707ac_sed_dataroot='
38708/datarootdir/ {
38709  p
38710  q
38711}
38712/@datadir@/p
38713/@docdir@/p
38714/@infodir@/p
38715/@localedir@/p
38716/@mandir@/p'
38717case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38718*datarootdir*) ac_datarootdir_seen=yes;;
38719*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38720  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38721$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38722_ACEOF
38723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38724  ac_datarootdir_hack='
38725  s&@datadir@&$datadir&g
38726  s&@docdir@&$docdir&g
38727  s&@infodir@&$infodir&g
38728  s&@localedir@&$localedir&g
38729  s&@mandir@&$mandir&g
38730  s&\\\${datarootdir}&$datarootdir&g' ;;
38731esac
38732_ACEOF
38733
38734# Neutralize VPATH when `$srcdir' = `.'.
38735# Shell code in configure.ac might set extrasub.
38736# FIXME: do we really want to maintain this feature?
38737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38738ac_sed_extra="$ac_vpsub
38739$extrasub
38740_ACEOF
38741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38742:t
38743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38744s|@configure_input@|$ac_sed_conf_input|;t t
38745s&@top_builddir@&$ac_top_builddir_sub&;t t
38746s&@top_build_prefix@&$ac_top_build_prefix&;t t
38747s&@srcdir@&$ac_srcdir&;t t
38748s&@abs_srcdir@&$ac_abs_srcdir&;t t
38749s&@top_srcdir@&$ac_top_srcdir&;t t
38750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38751s&@builddir@&$ac_builddir&;t t
38752s&@abs_builddir@&$ac_abs_builddir&;t t
38753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38754s&@INSTALL@&$ac_INSTALL&;t t
38755s&@MKDIR_P@&$ac_MKDIR_P&;t t
38756$ac_datarootdir_hack
38757"
38758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38759  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38760
38761test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38762  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38763  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38764      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38765  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38766which seems to be undefined.  Please make sure it is defined" >&5
38767$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38768which seems to be undefined.  Please make sure it is defined" >&2;}
38769
38770  rm -f "$ac_tmp/stdin"
38771  case $ac_file in
38772  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38773  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38774  esac \
38775  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38776 ;;
38777  :H)
38778  #
38779  # CONFIG_HEADER
38780  #
38781  if test x"$ac_file" != x-; then
38782    {
38783      $as_echo "/* $configure_input  */" \
38784      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38785    } >"$ac_tmp/config.h" \
38786      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38787    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38788      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38789$as_echo "$as_me: $ac_file is unchanged" >&6;}
38790    else
38791      rm -f "$ac_file"
38792      mv "$ac_tmp/config.h" "$ac_file" \
38793	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38794    fi
38795  else
38796    $as_echo "/* $configure_input  */" \
38797      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38798      || as_fn_error $? "could not create -" "$LINENO" 5
38799  fi
38800# Compute "$ac_file"'s index in $config_headers.
38801_am_arg="$ac_file"
38802_am_stamp_count=1
38803for _am_header in $config_headers :; do
38804  case $_am_header in
38805    $_am_arg | $_am_arg:* )
38806      break ;;
38807    * )
38808      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38809  esac
38810done
38811echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38812$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38813	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38814	 X"$_am_arg" : 'X\(//\)$' \| \
38815	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38816$as_echo X"$_am_arg" |
38817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38818	    s//\1/
38819	    q
38820	  }
38821	  /^X\(\/\/\)[^/].*/{
38822	    s//\1/
38823	    q
38824	  }
38825	  /^X\(\/\/\)$/{
38826	    s//\1/
38827	    q
38828	  }
38829	  /^X\(\/\).*/{
38830	    s//\1/
38831	    q
38832	  }
38833	  s/.*/./; q'`/stamp-h$_am_stamp_count
38834 ;;
38835
38836  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38837$as_echo "$as_me: executing $ac_file commands" >&6;}
38838 ;;
38839  esac
38840
38841
38842  case $ac_file$ac_mode in
38843    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
38844  # Older Autoconf quotes --file arguments for eval, but not when files
38845  # are listed without --file.  Let's play safe and only enable the eval
38846  # if we detect the quoting.
38847  # TODO: see whether this extra hack can be removed once we start
38848  # requiring Autoconf 2.70 or later.
38849  case $CONFIG_FILES in #(
38850  *\'*) :
38851    eval set x "$CONFIG_FILES" ;; #(
38852  *) :
38853    set x $CONFIG_FILES ;; #(
38854  *) :
38855     ;;
38856esac
38857  shift
38858  # Used to flag and report bootstrapping failures.
38859  am_rc=0
38860  for am_mf
38861  do
38862    # Strip MF so we end up with the name of the file.
38863    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
38864    # Check whether this is an Automake generated Makefile which includes
38865    # dependency-tracking related rules and includes.
38866    # Grep'ing the whole file directly is not great: AIX grep has a line
38867    # limit of 2048, but all sed's we know have understand at least 4000.
38868    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
38869      || continue
38870    am_dirpart=`$as_dirname -- "$am_mf" ||
38871$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38872	 X"$am_mf" : 'X\(//\)[^/]' \| \
38873	 X"$am_mf" : 'X\(//\)$' \| \
38874	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38875$as_echo X"$am_mf" |
38876    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38877	    s//\1/
38878	    q
38879	  }
38880	  /^X\(\/\/\)[^/].*/{
38881	    s//\1/
38882	    q
38883	  }
38884	  /^X\(\/\/\)$/{
38885	    s//\1/
38886	    q
38887	  }
38888	  /^X\(\/\).*/{
38889	    s//\1/
38890	    q
38891	  }
38892	  s/.*/./; q'`
38893    am_filepart=`$as_basename -- "$am_mf" ||
38894$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
38895	 X"$am_mf" : 'X\(//\)$' \| \
38896	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
38897$as_echo X/"$am_mf" |
38898    sed '/^.*\/\([^/][^/]*\)\/*$/{
38899	    s//\1/
38900	    q
38901	  }
38902	  /^X\/\(\/\/\)$/{
38903	    s//\1/
38904	    q
38905	  }
38906	  /^X\/\(\/\).*/{
38907	    s//\1/
38908	    q
38909	  }
38910	  s/.*/./; q'`
38911    { echo "$as_me:$LINENO: cd "$am_dirpart" \
38912      && sed -e '/# am--include-marker/d' "$am_filepart" \
38913        | $MAKE -f - am--depfiles" >&5
38914   (cd "$am_dirpart" \
38915      && sed -e '/# am--include-marker/d' "$am_filepart" \
38916        | $MAKE -f - am--depfiles) >&5 2>&5
38917   ac_status=$?
38918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919   (exit $ac_status); } || am_rc=$?
38920  done
38921  if test $am_rc -ne 0; then
38922    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38924as_fn_error $? "Something went wrong bootstrapping makefile fragments
38925    for automatic dependency tracking.  Try re-running configure with the
38926    '--disable-dependency-tracking' option to at least be able to build
38927    the package (albeit without support for automatic dependency tracking).
38928See \`config.log' for more details" "$LINENO" 5; }
38929  fi
38930  { am_dirpart=; unset am_dirpart;}
38931  { am_filepart=; unset am_filepart;}
38932  { am_mf=; unset am_mf;}
38933  { am_rc=; unset am_rc;}
38934  rm -f conftest-deps.mk
38935}
38936 ;;
38937    "libtool":C)
38938
38939    # See if we are running on zsh, and set the options that allow our
38940    # commands through without removal of \ escapes.
38941    if test -n "${ZSH_VERSION+set}"; then
38942      setopt NO_GLOB_SUBST
38943    fi
38944
38945    cfgfile=${ofile}T
38946    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38947    $RM "$cfgfile"
38948
38949    cat <<_LT_EOF >> "$cfgfile"
38950#! $SHELL
38951# Generated automatically by $as_me ($PACKAGE) $VERSION
38952# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38953
38954# Provide generalized library-building support services.
38955# Written by Gordon Matzigkeit, 1996
38956
38957# Copyright (C) 2014 Free Software Foundation, Inc.
38958# This is free software; see the source for copying conditions.  There is NO
38959# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38960
38961# GNU Libtool is free software; you can redistribute it and/or modify
38962# it under the terms of the GNU General Public License as published by
38963# the Free Software Foundation; either version 2 of of the License, or
38964# (at your option) any later version.
38965#
38966# As a special exception to the GNU General Public License, if you
38967# distribute this file as part of a program or library that is built
38968# using GNU Libtool, you may include this file under the  same
38969# distribution terms that you use for the rest of that program.
38970#
38971# GNU Libtool is distributed in the hope that it will be useful, but
38972# WITHOUT ANY WARRANTY; without even the implied warranty of
38973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38974# GNU General Public License for more details.
38975#
38976# You should have received a copy of the GNU General Public License
38977# along with this program.  If not, see <http://www.gnu.org/licenses/>.
38978
38979
38980# The names of the tagged configurations supported by this script.
38981available_tags='CXX '
38982
38983# Configured defaults for sys_lib_dlsearch_path munging.
38984: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
38985
38986# ### BEGIN LIBTOOL CONFIG
38987
38988# Which release of libtool.m4 was used?
38989macro_version=$macro_version
38990macro_revision=$macro_revision
38991
38992# Assembler program.
38993AS=$lt_AS
38994
38995# DLL creation program.
38996DLLTOOL=$lt_DLLTOOL
38997
38998# Object dumper program.
38999OBJDUMP=$lt_OBJDUMP
39000
39001# Whether or not to build static libraries.
39002build_old_libs=$enable_static
39003
39004# Whether or not to build shared libraries.
39005build_libtool_libs=$enable_shared
39006
39007# What type of objects to build.
39008pic_mode=$pic_mode
39009
39010# Whether or not to optimize for fast installation.
39011fast_install=$enable_fast_install
39012
39013# Shared archive member basename,for filename based shared library versioning on AIX.
39014shared_archive_member_spec=$shared_archive_member_spec
39015
39016# Shell to use when invoking shell scripts.
39017SHELL=$lt_SHELL
39018
39019# An echo program that protects backslashes.
39020ECHO=$lt_ECHO
39021
39022# The PATH separator for the build system.
39023PATH_SEPARATOR=$lt_PATH_SEPARATOR
39024
39025# The host system.
39026host_alias=$host_alias
39027host=$host
39028host_os=$host_os
39029
39030# The build system.
39031build_alias=$build_alias
39032build=$build
39033build_os=$build_os
39034
39035# A sed program that does not truncate output.
39036SED=$lt_SED
39037
39038# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39039Xsed="\$SED -e 1s/^X//"
39040
39041# A grep program that handles long lines.
39042GREP=$lt_GREP
39043
39044# An ERE matcher.
39045EGREP=$lt_EGREP
39046
39047# A literal string matcher.
39048FGREP=$lt_FGREP
39049
39050# A BSD- or MS-compatible name lister.
39051NM=$lt_NM
39052
39053# Whether we need soft or hard links.
39054LN_S=$lt_LN_S
39055
39056# What is the maximum length of a command?
39057max_cmd_len=$max_cmd_len
39058
39059# Object file suffix (normally "o").
39060objext=$ac_objext
39061
39062# Executable file suffix (normally "").
39063exeext=$exeext
39064
39065# whether the shell understands "unset".
39066lt_unset=$lt_unset
39067
39068# turn spaces into newlines.
39069SP2NL=$lt_lt_SP2NL
39070
39071# turn newlines into spaces.
39072NL2SP=$lt_lt_NL2SP
39073
39074# convert \$build file names to \$host format.
39075to_host_file_cmd=$lt_cv_to_host_file_cmd
39076
39077# convert \$build files to toolchain format.
39078to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39079
39080# Method to check whether dependent libraries are shared objects.
39081deplibs_check_method=$lt_deplibs_check_method
39082
39083# Command to use when deplibs_check_method = "file_magic".
39084file_magic_cmd=$lt_file_magic_cmd
39085
39086# How to find potential files when deplibs_check_method = "file_magic".
39087file_magic_glob=$lt_file_magic_glob
39088
39089# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39090want_nocaseglob=$lt_want_nocaseglob
39091
39092# Command to associate shared and link libraries.
39093sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39094
39095# The archiver.
39096AR=$lt_AR
39097
39098# Flags to create an archive.
39099AR_FLAGS=$lt_AR_FLAGS
39100
39101# How to feed a file listing to the archiver.
39102archiver_list_spec=$lt_archiver_list_spec
39103
39104# A symbol stripping program.
39105STRIP=$lt_STRIP
39106
39107# Commands used to install an old-style archive.
39108RANLIB=$lt_RANLIB
39109old_postinstall_cmds=$lt_old_postinstall_cmds
39110old_postuninstall_cmds=$lt_old_postuninstall_cmds
39111
39112# Whether to use a lock for old archive extraction.
39113lock_old_archive_extraction=$lock_old_archive_extraction
39114
39115# A C compiler.
39116LTCC=$lt_CC
39117
39118# LTCC compiler flags.
39119LTCFLAGS=$lt_CFLAGS
39120
39121# Take the output of nm and produce a listing of raw symbols and C names.
39122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39123
39124# Transform the output of nm in a proper C declaration.
39125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39126
39127# Transform the output of nm into a list of symbols to manually relocate.
39128global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39129
39130# Transform the output of nm in a C name address pair.
39131global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39132
39133# Transform the output of nm in a C name address pair when lib prefix is needed.
39134global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39135
39136# The name lister interface.
39137nm_interface=$lt_lt_cv_nm_interface
39138
39139# Specify filename containing input files for \$NM.
39140nm_file_list_spec=$lt_nm_file_list_spec
39141
39142# The root where to search for dependent libraries,and where our libraries should be installed.
39143lt_sysroot=$lt_sysroot
39144
39145# Command to truncate a binary pipe.
39146lt_truncate_bin=$lt_lt_cv_truncate_bin
39147
39148# The name of the directory that contains temporary libtool files.
39149objdir=$objdir
39150
39151# Used to examine libraries when file_magic_cmd begins with "file".
39152MAGIC_CMD=$MAGIC_CMD
39153
39154# Must we lock files when doing compilation?
39155need_locks=$lt_need_locks
39156
39157# Manifest tool.
39158MANIFEST_TOOL=$lt_MANIFEST_TOOL
39159
39160# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39161DSYMUTIL=$lt_DSYMUTIL
39162
39163# Tool to change global to local symbols on Mac OS X.
39164NMEDIT=$lt_NMEDIT
39165
39166# Tool to manipulate fat objects and archives on Mac OS X.
39167LIPO=$lt_LIPO
39168
39169# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39170OTOOL=$lt_OTOOL
39171
39172# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39173OTOOL64=$lt_OTOOL64
39174
39175# Old archive suffix (normally "a").
39176libext=$libext
39177
39178# Shared library suffix (normally ".so").
39179shrext_cmds=$lt_shrext_cmds
39180
39181# The commands to extract the exported symbol list from a shared archive.
39182extract_expsyms_cmds=$lt_extract_expsyms_cmds
39183
39184# Variables whose values should be saved in libtool wrapper scripts and
39185# restored at link time.
39186variables_saved_for_relink=$lt_variables_saved_for_relink
39187
39188# Do we need the "lib" prefix for modules?
39189need_lib_prefix=$need_lib_prefix
39190
39191# Do we need a version for libraries?
39192need_version=$need_version
39193
39194# Library versioning type.
39195version_type=$version_type
39196
39197# Shared library runtime path variable.
39198runpath_var=$runpath_var
39199
39200# Shared library path variable.
39201shlibpath_var=$shlibpath_var
39202
39203# Is shlibpath searched before the hard-coded library search path?
39204shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39205
39206# Format of library name prefix.
39207libname_spec=$lt_libname_spec
39208
39209# List of archive names.  First name is the real one, the rest are links.
39210# The last name is the one that the linker finds with -lNAME
39211library_names_spec=$lt_library_names_spec
39212
39213# The coded name of the library, if different from the real name.
39214soname_spec=$lt_soname_spec
39215
39216# Permission mode override for installation of shared libraries.
39217install_override_mode=$lt_install_override_mode
39218
39219# Command to use after installation of a shared archive.
39220postinstall_cmds=$lt_postinstall_cmds
39221
39222# Command to use after uninstallation of a shared archive.
39223postuninstall_cmds=$lt_postuninstall_cmds
39224
39225# Commands used to finish a libtool library installation in a directory.
39226finish_cmds=$lt_finish_cmds
39227
39228# As "finish_cmds", except a single script fragment to be evaled but
39229# not shown.
39230finish_eval=$lt_finish_eval
39231
39232# Whether we should hardcode library paths into libraries.
39233hardcode_into_libs=$hardcode_into_libs
39234
39235# Compile-time system search path for libraries.
39236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39237
39238# Detected run-time system search path for libraries.
39239sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39240
39241# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39242configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39243
39244# Whether dlopen is supported.
39245dlopen_support=$enable_dlopen
39246
39247# Whether dlopen of programs is supported.
39248dlopen_self=$enable_dlopen_self
39249
39250# Whether dlopen of statically linked programs is supported.
39251dlopen_self_static=$enable_dlopen_self_static
39252
39253# Commands to strip libraries.
39254old_striplib=$lt_old_striplib
39255striplib=$lt_striplib
39256
39257
39258# The linker used to build libraries.
39259LD=$lt_LD
39260
39261# How to create reloadable object files.
39262reload_flag=$lt_reload_flag
39263reload_cmds=$lt_reload_cmds
39264
39265# Commands used to build an old-style archive.
39266old_archive_cmds=$lt_old_archive_cmds
39267
39268# A language specific compiler.
39269CC=$lt_compiler
39270
39271# Is the compiler the GNU compiler?
39272with_gcc=$GCC
39273
39274# Compiler flag to turn off builtin functions.
39275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39276
39277# Additional compiler flags for building library objects.
39278pic_flag=$lt_lt_prog_compiler_pic
39279
39280# How to pass a linker flag through the compiler.
39281wl=$lt_lt_prog_compiler_wl
39282
39283# Compiler flag to prevent dynamic linking.
39284link_static_flag=$lt_lt_prog_compiler_static
39285
39286# Does compiler simultaneously support -c and -o options?
39287compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39288
39289# Whether or not to add -lc for building shared libraries.
39290build_libtool_need_lc=$archive_cmds_need_lc
39291
39292# Whether or not to disallow shared libs when runtime libs are static.
39293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39294
39295# Compiler flag to allow reflexive dlopens.
39296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39297
39298# Compiler flag to generate shared objects directly from archives.
39299whole_archive_flag_spec=$lt_whole_archive_flag_spec
39300
39301# Whether the compiler copes with passing no objects directly.
39302compiler_needs_object=$lt_compiler_needs_object
39303
39304# Create an old-style archive from a shared archive.
39305old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39306
39307# Create a temporary old-style archive to link instead of a shared archive.
39308old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39309
39310# Commands used to build a shared archive.
39311archive_cmds=$lt_archive_cmds
39312archive_expsym_cmds=$lt_archive_expsym_cmds
39313
39314# Commands used to build a loadable module if different from building
39315# a shared archive.
39316module_cmds=$lt_module_cmds
39317module_expsym_cmds=$lt_module_expsym_cmds
39318
39319# Whether we are building with GNU ld or not.
39320with_gnu_ld=$lt_with_gnu_ld
39321
39322# Flag that allows shared libraries with undefined symbols to be built.
39323allow_undefined_flag=$lt_allow_undefined_flag
39324
39325# Flag that enforces no undefined symbols.
39326no_undefined_flag=$lt_no_undefined_flag
39327
39328# Flag to hardcode \$libdir into a binary during linking.
39329# This must work even if \$libdir does not exist
39330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39331
39332# Whether we need a single "-rpath" flag with a separated argument.
39333hardcode_libdir_separator=$lt_hardcode_libdir_separator
39334
39335# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39336# DIR into the resulting binary.
39337hardcode_direct=$hardcode_direct
39338
39339# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39340# DIR into the resulting binary and the resulting library dependency is
39341# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39342# library is relocated.
39343hardcode_direct_absolute=$hardcode_direct_absolute
39344
39345# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39346# into the resulting binary.
39347hardcode_minus_L=$hardcode_minus_L
39348
39349# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39350# into the resulting binary.
39351hardcode_shlibpath_var=$hardcode_shlibpath_var
39352
39353# Set to "yes" if building a shared library automatically hardcodes DIR
39354# into the library and all subsequent libraries and executables linked
39355# against it.
39356hardcode_automatic=$hardcode_automatic
39357
39358# Set to yes if linker adds runtime paths of dependent libraries
39359# to runtime path list.
39360inherit_rpath=$inherit_rpath
39361
39362# Whether libtool must link a program against all its dependency libraries.
39363link_all_deplibs=$link_all_deplibs
39364
39365# Set to "yes" if exported symbols are required.
39366always_export_symbols=$always_export_symbols
39367
39368# The commands to list exported symbols.
39369export_symbols_cmds=$lt_export_symbols_cmds
39370
39371# Symbols that should not be listed in the preloaded symbols.
39372exclude_expsyms=$lt_exclude_expsyms
39373
39374# Symbols that must always be exported.
39375include_expsyms=$lt_include_expsyms
39376
39377# Commands necessary for linking programs (against libraries) with templates.
39378prelink_cmds=$lt_prelink_cmds
39379
39380# Commands necessary for finishing linking programs.
39381postlink_cmds=$lt_postlink_cmds
39382
39383# Specify filename containing input files.
39384file_list_spec=$lt_file_list_spec
39385
39386# How to hardcode a shared library path into an executable.
39387hardcode_action=$hardcode_action
39388
39389# The directories searched by this compiler when creating a shared library.
39390compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39391
39392# Dependencies to place before and after the objects being linked to
39393# create a shared library.
39394predep_objects=$lt_predep_objects
39395postdep_objects=$lt_postdep_objects
39396predeps=$lt_predeps
39397postdeps=$lt_postdeps
39398
39399# The library search path used internally by the compiler when linking
39400# a shared library.
39401compiler_lib_search_path=$lt_compiler_lib_search_path
39402
39403# ### END LIBTOOL CONFIG
39404
39405_LT_EOF
39406
39407    cat <<'_LT_EOF' >> "$cfgfile"
39408
39409# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
39410
39411# func_munge_path_list VARIABLE PATH
39412# -----------------------------------
39413# VARIABLE is name of variable containing _space_ separated list of
39414# directories to be munged by the contents of PATH, which is string
39415# having a format:
39416# "DIR[:DIR]:"
39417#       string "DIR[ DIR]" will be prepended to VARIABLE
39418# ":DIR[:DIR]"
39419#       string "DIR[ DIR]" will be appended to VARIABLE
39420# "DIRP[:DIRP]::[DIRA:]DIRA"
39421#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39422#       "DIRA[ DIRA]" will be appended to VARIABLE
39423# "DIR[:DIR]"
39424#       VARIABLE will be replaced by "DIR[ DIR]"
39425func_munge_path_list ()
39426{
39427    case x$2 in
39428    x)
39429        ;;
39430    *:)
39431        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39432        ;;
39433    x:*)
39434        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39435        ;;
39436    *::*)
39437        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39438        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39439        ;;
39440    *)
39441        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39442        ;;
39443    esac
39444}
39445
39446
39447# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
39448func_cc_basename ()
39449{
39450    for cc_temp in $*""; do
39451      case $cc_temp in
39452        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39453        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39454        \-*) ;;
39455        *) break;;
39456      esac
39457    done
39458    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39459}
39460
39461
39462# ### END FUNCTIONS SHARED WITH CONFIGURE
39463
39464_LT_EOF
39465
39466  case $host_os in
39467  aix3*)
39468    cat <<\_LT_EOF >> "$cfgfile"
39469# AIX sometimes has problems with the GCC collect2 program.  For some
39470# reason, if we set the COLLECT_NAMES environment variable, the problems
39471# vanish in a puff of smoke.
39472if test set != "${COLLECT_NAMES+set}"; then
39473  COLLECT_NAMES=
39474  export COLLECT_NAMES
39475fi
39476_LT_EOF
39477    ;;
39478  esac
39479
39480
39481ltmain=$ac_aux_dir/ltmain.sh
39482
39483
39484  # We use sed instead of cat because bash on DJGPP gets confused if
39485  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39486  # text mode, it properly converts lines to CR/LF.  This bash problem
39487  # is reportedly fixed, but why not run on old versions too?
39488  sed '$q' "$ltmain" >> "$cfgfile" \
39489     || (rm -f "$cfgfile"; exit 1)
39490
39491   mv -f "$cfgfile" "$ofile" ||
39492    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39493  chmod +x "$ofile"
39494
39495
39496    cat <<_LT_EOF >> "$ofile"
39497
39498# ### BEGIN LIBTOOL TAG CONFIG: CXX
39499
39500# The linker used to build libraries.
39501LD=$lt_LD_CXX
39502
39503# How to create reloadable object files.
39504reload_flag=$lt_reload_flag_CXX
39505reload_cmds=$lt_reload_cmds_CXX
39506
39507# Commands used to build an old-style archive.
39508old_archive_cmds=$lt_old_archive_cmds_CXX
39509
39510# A language specific compiler.
39511CC=$lt_compiler_CXX
39512
39513# Is the compiler the GNU compiler?
39514with_gcc=$GCC_CXX
39515
39516# Compiler flag to turn off builtin functions.
39517no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39518
39519# Additional compiler flags for building library objects.
39520pic_flag=$lt_lt_prog_compiler_pic_CXX
39521
39522# How to pass a linker flag through the compiler.
39523wl=$lt_lt_prog_compiler_wl_CXX
39524
39525# Compiler flag to prevent dynamic linking.
39526link_static_flag=$lt_lt_prog_compiler_static_CXX
39527
39528# Does compiler simultaneously support -c and -o options?
39529compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39530
39531# Whether or not to add -lc for building shared libraries.
39532build_libtool_need_lc=$archive_cmds_need_lc_CXX
39533
39534# Whether or not to disallow shared libs when runtime libs are static.
39535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39536
39537# Compiler flag to allow reflexive dlopens.
39538export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39539
39540# Compiler flag to generate shared objects directly from archives.
39541whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39542
39543# Whether the compiler copes with passing no objects directly.
39544compiler_needs_object=$lt_compiler_needs_object_CXX
39545
39546# Create an old-style archive from a shared archive.
39547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39548
39549# Create a temporary old-style archive to link instead of a shared archive.
39550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39551
39552# Commands used to build a shared archive.
39553archive_cmds=$lt_archive_cmds_CXX
39554archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39555
39556# Commands used to build a loadable module if different from building
39557# a shared archive.
39558module_cmds=$lt_module_cmds_CXX
39559module_expsym_cmds=$lt_module_expsym_cmds_CXX
39560
39561# Whether we are building with GNU ld or not.
39562with_gnu_ld=$lt_with_gnu_ld_CXX
39563
39564# Flag that allows shared libraries with undefined symbols to be built.
39565allow_undefined_flag=$lt_allow_undefined_flag_CXX
39566
39567# Flag that enforces no undefined symbols.
39568no_undefined_flag=$lt_no_undefined_flag_CXX
39569
39570# Flag to hardcode \$libdir into a binary during linking.
39571# This must work even if \$libdir does not exist
39572hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39573
39574# Whether we need a single "-rpath" flag with a separated argument.
39575hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39576
39577# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39578# DIR into the resulting binary.
39579hardcode_direct=$hardcode_direct_CXX
39580
39581# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39582# DIR into the resulting binary and the resulting library dependency is
39583# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39584# library is relocated.
39585hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39586
39587# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39588# into the resulting binary.
39589hardcode_minus_L=$hardcode_minus_L_CXX
39590
39591# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39592# into the resulting binary.
39593hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39594
39595# Set to "yes" if building a shared library automatically hardcodes DIR
39596# into the library and all subsequent libraries and executables linked
39597# against it.
39598hardcode_automatic=$hardcode_automatic_CXX
39599
39600# Set to yes if linker adds runtime paths of dependent libraries
39601# to runtime path list.
39602inherit_rpath=$inherit_rpath_CXX
39603
39604# Whether libtool must link a program against all its dependency libraries.
39605link_all_deplibs=$link_all_deplibs_CXX
39606
39607# Set to "yes" if exported symbols are required.
39608always_export_symbols=$always_export_symbols_CXX
39609
39610# The commands to list exported symbols.
39611export_symbols_cmds=$lt_export_symbols_cmds_CXX
39612
39613# Symbols that should not be listed in the preloaded symbols.
39614exclude_expsyms=$lt_exclude_expsyms_CXX
39615
39616# Symbols that must always be exported.
39617include_expsyms=$lt_include_expsyms_CXX
39618
39619# Commands necessary for linking programs (against libraries) with templates.
39620prelink_cmds=$lt_prelink_cmds_CXX
39621
39622# Commands necessary for finishing linking programs.
39623postlink_cmds=$lt_postlink_cmds_CXX
39624
39625# Specify filename containing input files.
39626file_list_spec=$lt_file_list_spec_CXX
39627
39628# How to hardcode a shared library path into an executable.
39629hardcode_action=$hardcode_action_CXX
39630
39631# The directories searched by this compiler when creating a shared library.
39632compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39633
39634# Dependencies to place before and after the objects being linked to
39635# create a shared library.
39636predep_objects=$lt_predep_objects_CXX
39637postdep_objects=$lt_postdep_objects_CXX
39638predeps=$lt_predeps_CXX
39639postdeps=$lt_postdeps_CXX
39640
39641# The library search path used internally by the compiler when linking
39642# a shared library.
39643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39644
39645# ### END LIBTOOL TAG CONFIG: CXX
39646_LT_EOF
39647
39648 ;;
39649    "po-directories":C)
39650    for ac_file in $CONFIG_FILES; do
39651      # Support "outfile[:infile[:infile...]]"
39652      case "$ac_file" in
39653        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39654      esac
39655      # PO directories have a Makefile.in generated from Makefile.in.in.
39656      case "$ac_file" in */Makefile.in)
39657        # Adjust a relative srcdir.
39658        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39659        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
39660        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
39661        # In autoconf-2.13 it is called $ac_given_srcdir.
39662        # In autoconf-2.50 it is called $srcdir.
39663        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
39664        case "$ac_given_srcdir" in
39665          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
39666          /*) top_srcdir="$ac_given_srcdir" ;;
39667          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
39668        esac
39669        # Treat a directory as a PO directory if and only if it has a
39670        # POTFILES.in file. This allows packages to have multiple PO
39671        # directories under different names or in different locations.
39672        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
39673          rm -f "$ac_dir/POTFILES"
39674          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
39675          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
39676          POMAKEFILEDEPS="POTFILES.in"
39677          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
39678          # on $ac_dir but don't depend on user-specified configuration
39679          # parameters.
39680          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
39681            # The LINGUAS file contains the set of available languages.
39682            if test -n "$OBSOLETE_ALL_LINGUAS"; then
39683              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
39684            fi
39685            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
39686            # Hide the ALL_LINGUAS assigment from automake < 1.5.
39687            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
39688            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
39689          else
39690            # The set of available languages was given in configure.in.
39691            # Hide the ALL_LINGUAS assigment from automake < 1.5.
39692            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
39693          fi
39694          # Compute POFILES
39695          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
39696          # Compute UPDATEPOFILES
39697          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
39698          # Compute DUMMYPOFILES
39699          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
39700          # Compute GMOFILES
39701          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
39702          case "$ac_given_srcdir" in
39703            .) srcdirpre= ;;
39704            *) srcdirpre='$(srcdir)/' ;;
39705          esac
39706          POFILES=
39707          UPDATEPOFILES=
39708          DUMMYPOFILES=
39709          GMOFILES=
39710          for lang in $ALL_LINGUAS; do
39711            POFILES="$POFILES $srcdirpre$lang.po"
39712            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
39713            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
39714            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
39715          done
39716          # CATALOGS depends on both $ac_dir and the user's LINGUAS
39717          # environment variable.
39718          INST_LINGUAS=
39719          if test -n "$ALL_LINGUAS"; then
39720            for presentlang in $ALL_LINGUAS; do
39721              useit=no
39722              if test "%UNSET%" != "$LINGUAS"; then
39723                desiredlanguages="$LINGUAS"
39724              else
39725                desiredlanguages="$ALL_LINGUAS"
39726              fi
39727              for desiredlang in $desiredlanguages; do
39728                # Use the presentlang catalog if desiredlang is
39729                #   a. equal to presentlang, or
39730                #   b. a variant of presentlang (because in this case,
39731                #      presentlang can be used as a fallback for messages
39732                #      which are not translated in the desiredlang catalog).
39733                case "$desiredlang" in
39734                  "$presentlang"*) useit=yes;;
39735                esac
39736              done
39737              if test $useit = yes; then
39738                INST_LINGUAS="$INST_LINGUAS $presentlang"
39739              fi
39740            done
39741          fi
39742          CATALOGS=
39743          if test -n "$INST_LINGUAS"; then
39744            for lang in $INST_LINGUAS; do
39745              CATALOGS="$CATALOGS $lang.gmo"
39746            done
39747          fi
39748          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
39749          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
39750          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
39751            if test -f "$f"; then
39752              case "$f" in
39753                *.orig | *.bak | *~) ;;
39754                *) cat "$f" >> "$ac_dir/Makefile" ;;
39755              esac
39756            fi
39757          done
39758        fi
39759        ;;
39760      esac
39761    done ;;
39762    "$ac_stdint_h":C)
39763{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
39764$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
39765ac_stdint=$tmp/_stdint.h
39766
39767echo "#ifndef" $_ac_stdint_h >$ac_stdint
39768echo "#define" $_ac_stdint_h "1" >>$ac_stdint
39769echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
39770echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
39771echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
39772if test "_$ac_cv_header_stdint_t" != "_" ; then
39773echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
39774echo "#include <stdint.h>" >>$ac_stdint
39775echo "#endif" >>$ac_stdint
39776echo "#endif" >>$ac_stdint
39777else
39778
39779cat >>$ac_stdint <<STDINT_EOF
39780
39781/* ................... shortcircuit part ........................... */
39782
39783#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
39784#include <stdint.h>
39785#else
39786#include <stddef.h>
39787
39788/* .................... configured part ............................ */
39789
39790STDINT_EOF
39791
39792echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
39793if test "_$ac_cv_header_stdint_x" != "_" ; then
39794  ac_header="$ac_cv_header_stdint_x"
39795  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
39796else
39797  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
39798fi
39799
39800echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
39801if  test "_$ac_cv_header_stdint_o" != "_" ; then
39802  ac_header="$ac_cv_header_stdint_o"
39803  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
39804else
39805  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
39806fi
39807
39808echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
39809if  test "_$ac_cv_header_stdint_u" != "_" ; then
39810  ac_header="$ac_cv_header_stdint_u"
39811  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
39812else
39813  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
39814fi
39815
39816echo "" >>$ac_stdint
39817
39818if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
39819  echo "#include <$ac_header>" >>$ac_stdint
39820  echo "" >>$ac_stdint
39821fi fi
39822
39823echo "/* which 64bit typedef has been found */" >>$ac_stdint
39824if test "$ac_cv_type_uint64_t" = "yes" ; then
39825echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
39826else
39827echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
39828fi
39829if test "$ac_cv_type_u_int64_t" = "yes" ; then
39830echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
39831else
39832echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
39833fi
39834echo "" >>$ac_stdint
39835
39836echo "/* which type model has been detected */" >>$ac_stdint
39837if test "_$ac_cv_char_data_model" != "_" ; then
39838echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
39839echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
39840else
39841echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
39842echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
39843fi
39844echo "" >>$ac_stdint
39845
39846echo "/* whether int_least types were detected */" >>$ac_stdint
39847if test "$ac_cv_type_int_least32_t" = "yes"; then
39848echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
39849else
39850echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
39851fi
39852echo "/* whether int_fast types were detected */" >>$ac_stdint
39853if test "$ac_cv_type_int_fast32_t" = "yes"; then
39854echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
39855else
39856echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
39857fi
39858echo "/* whether intmax_t type was detected */" >>$ac_stdint
39859if test "$ac_cv_type_intmax_t" = "yes"; then
39860echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
39861else
39862echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
39863fi
39864echo "" >>$ac_stdint
39865
39866  cat >>$ac_stdint <<STDINT_EOF
39867/* .................... detections part ............................ */
39868
39869/* whether we need to define bitspecific types from compiler base types */
39870#ifndef _STDINT_HEADER_INTPTR
39871#ifndef _STDINT_HEADER_UINT32
39872#ifndef _STDINT_HEADER_U_INT32
39873#define _STDINT_NEED_INT_MODEL_T
39874#else
39875#define _STDINT_HAVE_U_INT_TYPES
39876#endif
39877#endif
39878#endif
39879
39880#ifdef _STDINT_HAVE_U_INT_TYPES
39881#undef _STDINT_NEED_INT_MODEL_T
39882#endif
39883
39884#ifdef  _STDINT_CHAR_MODEL
39885#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
39886#ifndef _STDINT_BYTE_MODEL
39887#define _STDINT_BYTE_MODEL 12
39888#endif
39889#endif
39890#endif
39891
39892#ifndef _STDINT_HAVE_INT_LEAST32_T
39893#define _STDINT_NEED_INT_LEAST_T
39894#endif
39895
39896#ifndef _STDINT_HAVE_INT_FAST32_T
39897#define _STDINT_NEED_INT_FAST_T
39898#endif
39899
39900#ifndef _STDINT_HEADER_INTPTR
39901#define _STDINT_NEED_INTPTR_T
39902#ifndef _STDINT_HAVE_INTMAX_T
39903#define _STDINT_NEED_INTMAX_T
39904#endif
39905#endif
39906
39907
39908/* .................... definition part ............................ */
39909
39910/* some system headers have good uint64_t */
39911#ifndef _HAVE_UINT64_T
39912#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
39913#define _HAVE_UINT64_T
39914#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
39915#define _HAVE_UINT64_T
39916typedef u_int64_t uint64_t;
39917#endif
39918#endif
39919
39920#ifndef _HAVE_UINT64_T
39921/* .. here are some common heuristics using compiler runtime specifics */
39922#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
39923#define _HAVE_UINT64_T
39924#define _HAVE_LONGLONG_UINT64_T
39925typedef long long int64_t;
39926typedef unsigned long long uint64_t;
39927
39928#elif !defined __STRICT_ANSI__
39929#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
39930#define _HAVE_UINT64_T
39931typedef __int64 int64_t;
39932typedef unsigned __int64 uint64_t;
39933
39934#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
39935/* note: all ELF-systems seem to have loff-support which needs 64-bit */
39936#if !defined _NO_LONGLONG
39937#define _HAVE_UINT64_T
39938#define _HAVE_LONGLONG_UINT64_T
39939typedef long long int64_t;
39940typedef unsigned long long uint64_t;
39941#endif
39942
39943#elif defined __alpha || (defined __mips && defined _ABIN32)
39944#if !defined _NO_LONGLONG
39945typedef long int64_t;
39946typedef unsigned long uint64_t;
39947#endif
39948  /* compiler/cpu type to define int64_t */
39949#endif
39950#endif
39951#endif
39952
39953#if defined _STDINT_HAVE_U_INT_TYPES
39954/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
39955typedef u_int8_t uint8_t;
39956typedef u_int16_t uint16_t;
39957typedef u_int32_t uint32_t;
39958
39959/* glibc compatibility */
39960#ifndef __int8_t_defined
39961#define __int8_t_defined
39962#endif
39963#endif
39964
39965#ifdef _STDINT_NEED_INT_MODEL_T
39966/* we must guess all the basic types. Apart from byte-adressable system, */
39967/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
39968/* (btw, those nibble-addressable systems are way off, or so we assume) */
39969
39970
39971#if defined _STDINT_BYTE_MODEL
39972#if _STDINT_LONG_MODEL+0 == 242
39973/* 2:4:2 =  IP16 = a normal 16-bit system                */
39974typedef unsigned char   uint8_t;
39975typedef unsigned short  uint16_t;
39976typedef unsigned long   uint32_t;
39977#ifndef __int8_t_defined
39978#define __int8_t_defined
39979typedef          char    int8_t;
39980typedef          short   int16_t;
39981typedef          long    int32_t;
39982#endif
39983#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
39984/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
39985/* 4:4:4 = ILP32 = a normal 32-bit system                */
39986typedef unsigned char   uint8_t;
39987typedef unsigned short  uint16_t;
39988typedef unsigned int    uint32_t;
39989#ifndef __int8_t_defined
39990#define __int8_t_defined
39991typedef          char    int8_t;
39992typedef          short   int16_t;
39993typedef          int     int32_t;
39994#endif
39995#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
39996/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
39997/* 4:8:8 =  LP64 = a normal 64-bit system                 */
39998typedef unsigned char   uint8_t;
39999typedef unsigned short  uint16_t;
40000typedef unsigned int    uint32_t;
40001#ifndef __int8_t_defined
40002#define __int8_t_defined
40003typedef          char    int8_t;
40004typedef          short   int16_t;
40005typedef          int     int32_t;
40006#endif
40007/* this system has a "long" of 64bit */
40008#ifndef _HAVE_UINT64_T
40009#define _HAVE_UINT64_T
40010typedef unsigned long   uint64_t;
40011typedef          long    int64_t;
40012#endif
40013#elif _STDINT_LONG_MODEL+0 == 448
40014/*      LLP64   a 64-bit system derived from a 32-bit system */
40015typedef unsigned char   uint8_t;
40016typedef unsigned short  uint16_t;
40017typedef unsigned int    uint32_t;
40018#ifndef __int8_t_defined
40019#define __int8_t_defined
40020typedef          char    int8_t;
40021typedef          short   int16_t;
40022typedef          int     int32_t;
40023#endif
40024/* assuming the system has a "long long" */
40025#ifndef _HAVE_UINT64_T
40026#define _HAVE_UINT64_T
40027#define _HAVE_LONGLONG_UINT64_T
40028typedef unsigned long long uint64_t;
40029typedef          long long  int64_t;
40030#endif
40031#else
40032#define _STDINT_NO_INT32_T
40033#endif
40034#else
40035#define _STDINT_NO_INT8_T
40036#define _STDINT_NO_INT32_T
40037#endif
40038#endif
40039
40040/*
40041 * quote from SunOS-5.8 sys/inttypes.h:
40042 * Use at your own risk.  As of February 1996, the committee is squarely
40043 * behind the fixed sized types; the "least" and "fast" types are still being
40044 * discussed.  The probability that the "fast" types may be removed before
40045 * the standard is finalized is high enough that they are not currently
40046 * implemented.
40047 */
40048
40049#if defined _STDINT_NEED_INT_LEAST_T
40050typedef  int8_t    int_least8_t;
40051typedef  int16_t   int_least16_t;
40052typedef  int32_t   int_least32_t;
40053#ifdef _HAVE_UINT64_T
40054typedef  int64_t   int_least64_t;
40055#endif
40056
40057typedef uint8_t   uint_least8_t;
40058typedef uint16_t  uint_least16_t;
40059typedef uint32_t  uint_least32_t;
40060#ifdef _HAVE_UINT64_T
40061typedef uint64_t  uint_least64_t;
40062#endif
40063  /* least types */
40064#endif
40065
40066#if defined _STDINT_NEED_INT_FAST_T
40067typedef  int8_t    int_fast8_t;
40068typedef  int       int_fast16_t;
40069typedef  int32_t   int_fast32_t;
40070#ifdef _HAVE_UINT64_T
40071typedef  int64_t   int_fast64_t;
40072#endif
40073
40074typedef uint8_t   uint_fast8_t;
40075typedef unsigned  uint_fast16_t;
40076typedef uint32_t  uint_fast32_t;
40077#ifdef _HAVE_UINT64_T
40078typedef uint64_t  uint_fast64_t;
40079#endif
40080  /* fast types */
40081#endif
40082
40083#ifdef _STDINT_NEED_INTMAX_T
40084#ifdef _HAVE_UINT64_T
40085typedef  int64_t       intmax_t;
40086typedef uint64_t      uintmax_t;
40087#else
40088typedef          long  intmax_t;
40089typedef unsigned long uintmax_t;
40090#endif
40091#endif
40092
40093#ifdef _STDINT_NEED_INTPTR_T
40094#ifndef __intptr_t_defined
40095#define __intptr_t_defined
40096/* we encourage using "long" to store pointer values, never use "int" ! */
40097#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
40098typedef  unsigned int   uintptr_t;
40099typedef           int    intptr_t;
40100#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
40101typedef  unsigned long  uintptr_t;
40102typedef           long   intptr_t;
40103#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
40104typedef        uint64_t uintptr_t;
40105typedef         int64_t  intptr_t;
40106#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
40107typedef  unsigned long  uintptr_t;
40108typedef           long   intptr_t;
40109#endif
40110#endif
40111#endif
40112
40113/* The ISO C99 standard specifies that in C++ implementations these
40114   should only be defined if explicitly requested.  */
40115#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
40116#ifndef UINT32_C
40117
40118/* Signed.  */
40119# define INT8_C(c)      c
40120# define INT16_C(c)     c
40121# define INT32_C(c)     c
40122# ifdef _HAVE_LONGLONG_UINT64_T
40123#  define INT64_C(c)    c ## L
40124# else
40125#  define INT64_C(c)    c ## LL
40126# endif
40127
40128/* Unsigned.  */
40129# define UINT8_C(c)     c ## U
40130# define UINT16_C(c)    c ## U
40131# define UINT32_C(c)    c ## U
40132# ifdef _HAVE_LONGLONG_UINT64_T
40133#  define UINT64_C(c)   c ## UL
40134# else
40135#  define UINT64_C(c)   c ## ULL
40136# endif
40137
40138/* Maximal type.  */
40139# ifdef _HAVE_LONGLONG_UINT64_T
40140#  define INTMAX_C(c)   c ## L
40141#  define UINTMAX_C(c)  c ## UL
40142# else
40143#  define INTMAX_C(c)   c ## LL
40144#  define UINTMAX_C(c)  c ## ULL
40145# endif
40146
40147  /* literalnumbers */
40148#endif
40149#endif
40150
40151/* These limits are merily those of a two complement byte-oriented system */
40152
40153/* Minimum of signed integral types.  */
40154# define INT8_MIN               (-128)
40155# define INT16_MIN              (-32767-1)
40156# define INT32_MIN              (-2147483647-1)
40157# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
40158/* Maximum of signed integral types.  */
40159# define INT8_MAX               (127)
40160# define INT16_MAX              (32767)
40161# define INT32_MAX              (2147483647)
40162# define INT64_MAX              (__INT64_C(9223372036854775807))
40163
40164/* Maximum of unsigned integral types.  */
40165# define UINT8_MAX              (255)
40166# define UINT16_MAX             (65535)
40167# define UINT32_MAX             (4294967295U)
40168# define UINT64_MAX             (__UINT64_C(18446744073709551615))
40169
40170/* Minimum of signed integral types having a minimum size.  */
40171# define INT_LEAST8_MIN         INT8_MIN
40172# define INT_LEAST16_MIN        INT16_MIN
40173# define INT_LEAST32_MIN        INT32_MIN
40174# define INT_LEAST64_MIN        INT64_MIN
40175/* Maximum of signed integral types having a minimum size.  */
40176# define INT_LEAST8_MAX         INT8_MAX
40177# define INT_LEAST16_MAX        INT16_MAX
40178# define INT_LEAST32_MAX        INT32_MAX
40179# define INT_LEAST64_MAX        INT64_MAX
40180
40181/* Maximum of unsigned integral types having a minimum size.  */
40182# define UINT_LEAST8_MAX        UINT8_MAX
40183# define UINT_LEAST16_MAX       UINT16_MAX
40184# define UINT_LEAST32_MAX       UINT32_MAX
40185# define UINT_LEAST64_MAX       UINT64_MAX
40186
40187  /* shortcircuit*/
40188#endif
40189  /* once */
40190#endif
40191#endif
40192STDINT_EOF
40193fi
40194    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
40195      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
40196$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
40197    else
40198      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
40199$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40200	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
40201	 X"$ac_stdint_h" : 'X\(//\)$' \| \
40202	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
40203$as_echo X"$ac_stdint_h" |
40204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40205	    s//\1/
40206	    q
40207	  }
40208	  /^X\(\/\/\)[^/].*/{
40209	    s//\1/
40210	    q
40211	  }
40212	  /^X\(\/\/\)$/{
40213	    s//\1/
40214	    q
40215	  }
40216	  /^X\(\/\).*/{
40217	    s//\1/
40218	    q
40219	  }
40220	  s/.*/./; q'`
40221      as_dir="$ac_dir"; as_fn_mkdir_p
40222      rm -f $ac_stdint_h
40223      mv $ac_stdint $ac_stdint_h
40224    fi
40225 ;;
40226    "gst-libs/gst/gl/gstglconfig.h":C)
40227	outfile=gstglconfig.h-tmp
40228	cat > $outfile <<\_______EOF
40229/* gstglconfig.h
40230 *
40231 * This is a generated file.  Please modify `configure.ac'
40232 */
40233
40234#ifndef __GST_GL_CONFIG_H__
40235#define __GST_GL_CONFIG_H__
40236
40237#include <gst/gst.h>
40238
40239G_BEGIN_DECLS
40240
40241_______EOF
40242
40243	cat >>$outfile <<_______EOF
40244$gl_config_defines
40245_______EOF
40246
40247	cat >>$outfile <<_______EOF
40248
40249G_END_DECLS
40250
40251#endif  /* __GST_GL_CONFIG_H__ */
40252_______EOF
40253
40254
40255	if cmp -s $outfile gst-libs/gst/gl/gstglconfig.h; then
40256          { $as_echo "$as_me:${as_lineno-$LINENO}: gst-libs/gst/gl/gstglconfig.h is unchanged" >&5
40257$as_echo "$as_me: gst-libs/gst/gl/gstglconfig.h is unchanged" >&6;}
40258	  rm -f $outfile
40259	else
40260	  mv $outfile gst-libs/gst/gl/gstglconfig.h
40261	fi
40262 ;;
40263
40264  esac
40265done # for ac_tag
40266
40267
40268as_fn_exit 0
40269_ACEOF
40270ac_clean_files=$ac_clean_files_save
40271
40272test $ac_write_fail = 0 ||
40273  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40274
40275
40276# configure is writing to config.log, and then calls config.status.
40277# config.status does its own redirection, appending to config.log.
40278# Unfortunately, on DOS this fails, as config.log is still kept open
40279# by configure, so config.status won't be able to write to it; its
40280# output is simply discarded.  So we exec the FD to /dev/null,
40281# effectively closing config.log, so it can be properly (re)opened and
40282# appended to by config.status.  When coming back to configure, we
40283# need to make the FD available again.
40284if test "$no_create" != yes; then
40285  ac_cs_success=:
40286  ac_config_status_args=
40287  test "$silent" = yes &&
40288    ac_config_status_args="$ac_config_status_args --quiet"
40289  exec 5>/dev/null
40290  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40291  exec 5>>config.log
40292  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40293  # would make configure fail if this is the last instruction.
40294  $ac_cs_success || as_fn_exit 1
40295fi
40296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40297  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40299fi
40300
40301
40302
40303
40304printf "configure: *** Plug-ins without external dependencies that will be built:\n"
40305( for i in $GST_PLUGINS_SELECTED; do printf '\t'$i'\n'; done ) | sort
40306printf "\n"
40307
40308printf "configure: *** Plug-ins without external dependencies that will NOT be built:\n"
40309( for i in $GST_PLUGINS_ALL; do
40310    case " $GST_PLUGINS_SELECTED " in
40311      *\ $i\ *)
40312	;;
40313      *)
40314	printf '\t'$i'\n'
40315	;;
40316    esac
40317  done ) | sort
40318printf "\n"
40319
40320printf "configure: *** Plug-ins that have NOT been ported:\n"
40321( for i in $GST_PLUGINS_NONPORTED; do
40322	printf '\t'$i'\n'
40323  done ) | sort
40324printf "\n"
40325
40326if test "x$BUILD_EXTERNAL" = "xno"; then
40327  printf "configure: *** No plug-ins with external dependencies will be built\n"
40328else
40329  printf "configure: *** Plug-ins with dependencies that will be built:"
40330  printf "$GST_PLUGINS_YES\n" | sort
40331  printf "\n"
40332  printf "configure: *** Plug-ins with dependencies that will NOT be built:"
40333  printf "$GST_PLUGINS_NO\n" | sort
40334  printf "\n"
40335fi
40336
40337
40338  if test "$HAVE_ORC" = yes ; then
40339    printf "configure: *** Orc acceleration enabled.\n"
40340  else
40341    if test "x$enable_orc" = "xno" ; then
40342      printf "configure: *** Orc acceleration disabled by --disable-orc.  Slower code paths\n"
40343      printf "               will be used.\n"
40344    else
40345      printf "configure: *** Orc acceleration disabled.  Requires Orc >= $ORC_REQ, which was\n"
40346      printf "               not found.  Slower code paths will be used.\n"
40347    fi
40348  fi
40349  printf "\n"
40350
40351
40352