1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GStreamer Bad 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 Bad Plug-ins'
593PACKAGE_TARNAME='gst-plugins-bad'
594PACKAGE_VERSION='1.16.2'
595PACKAGE_STRING='GStreamer Bad Plug-ins 1.16.2'
596PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer'
597PACKAGE_URL=''
598
599ac_unique_file="docs/plugins/gst-plugins-bad-plugins-docs.sgml"
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_header_list=
638ac_subst_vars='am__EXEEXT_FALSE
639am__EXEEXT_TRUE
640LTLIBOBJS
641LIBOBJS
642GST_PLUGIN_LDFLAGS
643GST_LIB_LDFLAGS
644GST_ALL_LDFLAGS
645GST_PLUGINS_BAD_OBJCFLAGS
646GST_PLUGINS_BAD_CXXFLAGS
647GST_PLUGINS_BAD_CFLAGS
648GST_OBJCFLAGS
649GST_CXXFLAGS
650GST_OPTION_OBJCFLAGS
651GST_OPTION_CXXFLAGS
652GST_OPTION_CFLAGS
653EXTRA_CFLAGS
654VISIBILITY_CXXFLAGS
655VISIBILITY_CFLAGS
656DEPRECATED_CFLAGS
657PROFILE_CFLAGS
658USE_SCTP_FALSE
659USE_SCTP_TRUE
660USRSCTP_LIBS
661USE_WPE_FALSE
662USE_WPE_TRUE
663WPE_LIBS
664WPE_CFLAGS
665USE_WEBRTC_FALSE
666USE_WEBRTC_TRUE
667NICE_LIBS
668NICE_CFLAGS
669USE_WEBRTCDSP_FALSE
670USE_WEBRTCDSP_TRUE
671GNUSTL_LIBS
672GNUSTL_CFLAGS
673WEBRTCDSP_LIBS
674WEBRTCDSP_CFLAGS
675USE_X265_FALSE
676USE_X265_TRUE
677X265_LIBS
678X265_CFLAGS
679USE_HLS_FALSE
680USE_HLS_TRUE
681OPENSSL_LIBS
682OPENSSL_CFLAGS
683LIBGCRYPT_LIBS
684LIBGCRYPT_CFLAGS
685LIBGCRYPT_CONFIG
686NETTLE_LIBS
687NETTLE_CFLAGS
688USE_SPANDSP_FALSE
689USE_SPANDSP_TRUE
690SPANDSP_LIBS
691SPANDSP_CFLAGS
692USE_RTMP_FALSE
693USE_RTMP_TRUE
694RTMP_LIBS
695RTMP_CFLAGS
696USE_ZBAR_FALSE
697USE_ZBAR_TRUE
698ZBAR_LIBS
699ZBAR_CFLAGS
700USE_SBC_FALSE
701USE_SBC_TRUE
702SBC_LIBS
703SBC_CFLAGS
704USE_VDPAU_FALSE
705USE_VDPAU_TRUE
706VDPAU_LIBS
707VDPAU_CFLAGS
708USE_DVB_FALSE
709USE_DVB_TRUE
710USE_GME_FALSE
711USE_GME_TRUE
712GME_LIBS
713USE_SOUNDTOUCH_FALSE
714USE_SOUNDTOUCH_TRUE
715SOUNDTOUCH_LIBS
716SOUNDTOUCH_CFLAGS
717USE_SNDFILE_FALSE
718USE_SNDFILE_TRUE
719SNDFILE_LIBS
720SNDFILE_CFLAGS
721USE_SMOOTHSTREAMING_FALSE
722USE_SMOOTHSTREAMING_TRUE
723USE_WILDMIDI_FALSE
724USE_WILDMIDI_TRUE
725WILDMIDI_LIBS
726WILDMIDI_CFLAGS
727HAVE_WILDMIDI
728USE_TELETEXTDEC_FALSE
729USE_TELETEXTDEC_TRUE
730TELETEXTDEC_LIBS
731TELETEXTDEC_CFLAGS
732USE_VULKAN_FALSE
733USE_VULKAN_TRUE
734VULKAN_LIBS
735USE_GL_FALSE
736USE_GL_TRUE
737USE_RSVG_FALSE
738USE_RSVG_TRUE
739RSVG_LIBS
740RSVG_CFLAGS
741USE_PANGO_FALSE
742USE_PANGO_TRUE
743PANGO_LIBS
744PANGO_CFLAGS
745USE_OPUS_FALSE
746USE_OPUS_TRUE
747OPUS_LIBS
748OPUS_CFLAGS
749USE_OPENNI2_FALSE
750USE_OPENNI2_TRUE
751OPENNI2_LIBS
752OPENNI2_CFLAGS
753USE_OPENMPT_FALSE
754USE_OPENMPT_TRUE
755OPENMPT_LIBS
756OPENMPT_CFLAGS
757USE_OPENJPEG_FALSE
758USE_OPENJPEG_TRUE
759HAVE_OPENJPEG
760OPENJPEG_LIBS
761OPENJPEG_CFLAGS
762USE_OPENH264_FALSE
763USE_OPENH264_TRUE
764OPENH264_LIBS
765OPENH264_CFLAGS
766USE_OPENEXR_FALSE
767USE_OPENEXR_TRUE
768OPENEXR_STDCFLAGS
769OPENEXR240_LIBS
770OPENEXR240_CFLAGS
771OPENEXR_LIBS
772OPENEXR_CFLAGS
773USE_OPENCV_FALSE
774USE_OPENCV_TRUE
775OPENCV_PREFIX
776OPENCV_LIBS
777OPENCV_CFLAGS
778USE_OPENAL_FALSE
779USE_OPENAL_TRUE
780OPENAL_LIBS
781OPENAL_CFLAGS
782USE_OFA_FALSE
783USE_OFA_TRUE
784OFA_LIBS
785OFA_CFLAGS
786USE_NEON_FALSE
787USE_NEON_TRUE
788NEON_LIBS
789NEON_CFLAGS
790USE_MUSEPACK_FALSE
791USE_MUSEPACK_TRUE
792MUSEPACK_LIBS
793USE_MPLEX_FALSE
794USE_MPLEX_TRUE
795MPLEX_LDFLAGS
796MPLEX_LIBS
797MPLEX_CFLAGS
798USE_MPEG2ENC_FALSE
799USE_MPEG2ENC_TRUE
800MPEG2ENC_LIBS
801MPEG2ENC_CFLAGS
802MJPEG_LIBS
803MJPEG_CFLAGS
804USE_MODPLUG_FALSE
805USE_MODPLUG_TRUE
806MODPLUG_LIBS
807MODPLUG_CFLAGS
808USE_TTML_FALSE
809USE_TTML_TRUE
810TTML_LIBS
811TTML_CFLAGS
812USE_DTLS_FALSE
813USE_DTLS_TRUE
814DTLS_LIBS
815DTLS_CFLAGS
816USE_SRTP_FALSE
817USE_SRTP_TRUE
818HAVE_SRTP
819SRTP_LIBS
820SRTP_CFLAGS
821USE_SRT_FALSE
822USE_SRT_TRUE
823SRT_LIBS
824SRT_CFLAGS
825USE_LIBMMS_FALSE
826USE_LIBMMS_TRUE
827LIBMMS_LIBS
828LIBMMS_CFLAGS
829USE_LIBDE265_FALSE
830USE_LIBDE265_TRUE
831LIBDE265_LIBS
832LIBDE265_CFLAGS
833USE_LV2_FALSE
834USE_LV2_TRUE
835LILV_LIBS
836LILV_CFLAGS
837USE_LCMS2_FALSE
838USE_LCMS2_TRUE
839LCMS2_LIBS
840LCMS2_CFLAGS
841USE_LADSPA_FALSE
842USE_LADSPA_TRUE
843LRDF_LIBS
844LRDF_CFLAGS
845USE_KMS_FALSE
846USE_KMS_TRUE
847KMS_DRM_LIBS
848KMS_DRM_CFLAGS
849USE_KATE_FALSE
850USE_KATE_TRUE
851USE_TIGER_FALSE
852USE_TIGER_TRUE
853TIGER_LIBS
854TIGER_CFLAGS
855KATE_LIBS
856KATE_CFLAGS
857USE_FLUIDSYNTH_FALSE
858USE_FLUIDSYNTH_TRUE
859FLUIDSYNTH_LIBS
860FLUIDSYNTH_CFLAGS
861USE_GSM_FALSE
862USE_GSM_TRUE
863GSM_LIBS
864HAVE_GSM
865USE_FLITE_FALSE
866USE_FLITE_TRUE
867FLITE_LIBS
868FLITE_CFLAGS
869HAVE_FLITE
870USE_FDK_AAC_FALSE
871USE_FDK_AAC_TRUE
872FDK_AAC_LIBS
873FDK_AAC_CFLAGS
874USE_FBDEV_FALSE
875USE_FBDEV_TRUE
876USE_FAAD_FALSE
877USE_FAAD_TRUE
878FAAD_LIBS
879HAVE_FAAD
880USE_FAAC_FALSE
881USE_FAAC_TRUE
882FAAC_LIBS
883HAVE_FAAC
884USE_RESINDVD_FALSE
885USE_RESINDVD_TRUE
886DVDNAV_LIBS
887DVDNAV_CFLAGS
888USE_DTS_FALSE
889USE_DTS_TRUE
890DTS_LIBS
891HAVE_DTS
892USE_WEBP_FALSE
893USE_WEBP_TRUE
894WEBP_LIBS
895WEBP_CFLAGS
896WAYLAND_PROTOCOLS_DATADIR
897WAYLAND_LIBS
898WAYLAND_CFLAGS
899wayland_scanner
900USE_DIRECTFB_FALSE
901USE_DIRECTFB_TRUE
902DIRECTFB_LIBS
903DIRECTFB_CFLAGS
904DECKLINK_WIN_FALSE
905DECKLINK_WIN_TRUE
906DECKLINK_OSX_FALSE
907DECKLINK_OSX_TRUE
908USE_DECKLINK_FALSE
909USE_DECKLINK_TRUE
910DECKLINK_LIBS
911DECKLINK_CXXFLAGS
912USE_DC1394_FALSE
913USE_DC1394_TRUE
914LIBDC1394_LIBS
915LIBDC1394_CFLAGS
916USE_DASH_FALSE
917USE_DASH_TRUE
918LIBXML2_LIBS
919LIBXML2_CFLAGS
920USE_CURL_FALSE
921USE_CURL_TRUE
922USE_SSH2_FALSE
923USE_SSH2_TRUE
924SSH2_LIBS
925SSH2_CFLAGS
926CURL_LIBS
927CURL_CFLAGS
928USE_CHROMAPRINT_FALSE
929USE_CHROMAPRINT_TRUE
930CHROMAPRINT_LIBS
931CHROMAPRINT_CFLAGS
932USE_BZ2_FALSE
933USE_BZ2_TRUE
934BZ2_LIBS
935USE_BS2B_FALSE
936USE_BS2B_TRUE
937BS2B_LIBS
938BS2B_CFLAGS
939USE_VOAACENC_FALSE
940USE_VOAACENC_TRUE
941VOAACENC_LIBS
942VOAACENC_CFLAGS
943USE_VOAMRWBENC_FALSE
944USE_VOAMRWBENC_TRUE
945VOAMRWBENC_LIBS
946VOAMRWBENC_CFLAGS
947USE_AOM_FALSE
948USE_AOM_TRUE
949AOM_LIBS
950AOM_CFLAGS
951USE_ASSRENDER_FALSE
952USE_ASSRENDER_TRUE
953ASSRENDER_LIBS
954ASSRENDER_CFLAGS
955USE_MSDK_VP9_DEC_FALSE
956USE_MSDK_VP9_DEC_TRUE
957USE_MSDK_LIBVA_FALSE
958USE_MSDK_LIBVA_TRUE
959USE_MSDK_FALSE
960USE_MSDK_TRUE
961LIBVA_DRM_LIBS
962LIBVA_DRM_CFLAGS
963MSDK_LIBS
964MSDK_CFLAGS
965LIBMFX_LIBS
966LIBMFX_CFLAGS
967GST_ALLOCATORS_LIBS
968GST_ALLOCATORS_CFLAGS
969USE_TINYALSA_FALSE
970USE_TINYALSA_TRUE
971USE_NVENC_GST_GL_FALSE
972USE_NVENC_GST_GL_TRUE
973USE_NVENC_FALSE
974USE_NVENC_TRUE
975NVENCODE_LIBS
976USE_NVDEC_FALSE
977USE_NVDEC_TRUE
978USE_CUDA_FALSE
979USE_CUDA_TRUE
980CUDA_LIBS
981CUDA_CFLAGS
982LIBUDEV_LIBS
983LIBUDEV_CFLAGS
984USE_UVCH264_FALSE
985USE_UVCH264_TRUE
986LIBUSB_LIBS
987LIBUSB_CFLAGS
988G_UDEV_LIBS
989G_UDEV_CFLAGS
990USE_OPENSLES_FALSE
991USE_OPENSLES_TRUE
992USE_IPCPIPELINE_FALSE
993USE_IPCPIPELINE_TRUE
994USE_SHM_FALSE
995USE_SHM_TRUE
996SHM_LIBS
997USE_AVC_FALSE
998USE_AVC_TRUE
999USE_BLUEZ_FALSE
1000USE_BLUEZ_TRUE
1001GDBUS_CODEGEN
1002GIO_UNIX_LIBS
1003GIO_UNIX_CFLAGS
1004BLUEZ5_LIBS
1005BLUEZ5_CFLAGS
1006USE_APPLE_MEDIA_FALSE
1007USE_APPLE_MEDIA_TRUE
1008USE_ANDROID_MEDIA_FALSE
1009USE_ANDROID_MEDIA_TRUE
1010USE_WINKS_FALSE
1011USE_WINKS_TRUE
1012HAVE_WINKS
1013WINKS_LIBS
1014USE_WINSCREENCAP_FALSE
1015USE_WINSCREENCAP_TRUE
1016HAVE_WINSCREENCAP
1017WINSCREENCAP_LIBS
1018USE_DIRECT3D_FALSE
1019USE_DIRECT3D_TRUE
1020HAVE_DIRECT3D
1021DIRECT3D_LIBS
1022USE_WASAPI_FALSE
1023USE_WASAPI_TRUE
1024HAVE_WASAPI
1025WASAPI_LIBS
1026USE_DIRECTSOUND_FALSE
1027USE_DIRECTSOUND_TRUE
1028HAVE_DIRECTSOUND
1029DIRECTSOUND_LIBS
1030DIRECTX_LDFLAGS
1031DIRECTX_CFLAGS
1032USE_WAYLAND_FALSE
1033USE_WAYLAND_TRUE
1034VULKAN_WAYLAND_LIBS
1035VULKAN_WAYLAND_CFLAGS
1036USE_XCB_FALSE
1037USE_XCB_TRUE
1038XCB_LIBS
1039XCB_CFLAGS
1040WINSOCK2_LIBS
1041HAVE_VIDEOTOOLBOX_FALSE
1042HAVE_VIDEOTOOLBOX_TRUE
1043HAVE_IOS_FALSE
1044HAVE_IOS_TRUE
1045HAVE_AVFOUNDATION_FALSE
1046HAVE_AVFOUNDATION_TRUE
1047USE_PLUGIN_YADIF_FALSE
1048USE_PLUGIN_YADIF_TRUE
1049USE_PLUGIN_Y4M_FALSE
1050USE_PLUGIN_Y4M_TRUE
1051USE_PLUGIN_VMNC_FALSE
1052USE_PLUGIN_VMNC_TRUE
1053USE_PLUGIN_VIDEOSIGNAL_FALSE
1054USE_PLUGIN_VIDEOSIGNAL_TRUE
1055USE_PLUGIN_VIDEOPARSERS_FALSE
1056USE_PLUGIN_VIDEOPARSERS_TRUE
1057USE_PLUGIN_VIDEOFILTERS_FALSE
1058USE_PLUGIN_VIDEOFILTERS_TRUE
1059USE_PLUGIN_TIMECODE_FALSE
1060USE_PLUGIN_TIMECODE_TRUE
1061USE_PLUGIN_SUBENC_FALSE
1062USE_PLUGIN_SUBENC_TRUE
1063USE_PLUGIN_SPEED_FALSE
1064USE_PLUGIN_SPEED_TRUE
1065USE_PLUGIN_SMOOTH_FALSE
1066USE_PLUGIN_SMOOTH_TRUE
1067USE_PLUGIN_SIREN_FALSE
1068USE_PLUGIN_SIREN_TRUE
1069USE_PLUGIN_SEGMENTCLIP_FALSE
1070USE_PLUGIN_SEGMENTCLIP_TRUE
1071USE_PLUGIN_SDP_FALSE
1072USE_PLUGIN_SDP_TRUE
1073USE_PLUGIN_REMOVESILENCE_FALSE
1074USE_PLUGIN_REMOVESILENCE_TRUE
1075USE_PLUGIN_RAWPARSE_FALSE
1076USE_PLUGIN_RAWPARSE_TRUE
1077USE_PLUGIN_PROXY_FALSE
1078USE_PLUGIN_PROXY_TRUE
1079USE_PLUGIN_PNM_FALSE
1080USE_PLUGIN_PNM_TRUE
1081USE_PLUGIN_PCAPPARSE_FALSE
1082USE_PLUGIN_PCAPPARSE_TRUE
1083USE_PLUGIN_ONVIF_FALSE
1084USE_PLUGIN_ONVIF_TRUE
1085USE_PLUGIN_NETSIM_FALSE
1086USE_PLUGIN_NETSIM_TRUE
1087USE_PLUGIN_MXF_FALSE
1088USE_PLUGIN_MXF_TRUE
1089USE_PLUGIN_MPEGPSMUX_FALSE
1090USE_PLUGIN_MPEGPSMUX_TRUE
1091USE_PLUGIN_MPEGTSMUX_FALSE
1092USE_PLUGIN_MPEGTSMUX_TRUE
1093USE_PLUGIN_MPEGTSDEMUX_FALSE
1094USE_PLUGIN_MPEGTSDEMUX_TRUE
1095USE_PLUGIN_MPEGDEMUX_FALSE
1096USE_PLUGIN_MPEGDEMUX_TRUE
1097USE_PLUGIN_MIDI_FALSE
1098USE_PLUGIN_MIDI_TRUE
1099USE_PLUGIN_LIBRFB_FALSE
1100USE_PLUGIN_LIBRFB_TRUE
1101USE_PLUGIN_JPEGFORMAT_FALSE
1102USE_PLUGIN_JPEGFORMAT_TRUE
1103USE_PLUGIN_JP2KDECIMATOR_FALSE
1104USE_PLUGIN_JP2KDECIMATOR_TRUE
1105USE_PLUGIN_IVTC_FALSE
1106USE_PLUGIN_IVTC_TRUE
1107USE_PLUGIN_IVFPARSE_FALSE
1108USE_PLUGIN_IVFPARSE_TRUE
1109USE_PLUGIN_INTERLACE_FALSE
1110USE_PLUGIN_INTERLACE_TRUE
1111USE_PLUGIN_INTER_FALSE
1112USE_PLUGIN_INTER_TRUE
1113USE_PLUGIN_ID3TAG_FALSE
1114USE_PLUGIN_ID3TAG_TRUE
1115USE_PLUGIN_GDP_FALSE
1116USE_PLUGIN_GDP_TRUE
1117USE_PLUGIN_GEOMETRICTRANSFORM_FALSE
1118USE_PLUGIN_GEOMETRICTRANSFORM_TRUE
1119USE_PLUGIN_GAUDIEFFECTS_FALSE
1120USE_PLUGIN_GAUDIEFFECTS_TRUE
1121USE_PLUGIN_FREI0R_FALSE
1122USE_PLUGIN_FREI0R_TRUE
1123USE_PLUGIN_FREEVERB_FALSE
1124USE_PLUGIN_FREEVERB_TRUE
1125USE_PLUGIN_FIELDANALYSIS_FALSE
1126USE_PLUGIN_FIELDANALYSIS_TRUE
1127USE_PLUGIN_FESTIVAL_FALSE
1128USE_PLUGIN_FESTIVAL_TRUE
1129USE_PLUGIN_FACEOVERLAY_FALSE
1130USE_PLUGIN_FACEOVERLAY_TRUE
1131USE_PLUGIN_DVDSPU_FALSE
1132USE_PLUGIN_DVDSPU_TRUE
1133USE_PLUGIN_DVBSUBOVERLAY_FALSE
1134USE_PLUGIN_DVBSUBOVERLAY_TRUE
1135USE_PLUGIN_DEBUGUTILS_FALSE
1136USE_PLUGIN_DEBUGUTILS_TRUE
1137USE_PLUGIN_COLOREFFECTS_FALSE
1138USE_PLUGIN_COLOREFFECTS_TRUE
1139USE_PLUGIN_CAMERABIN2_FALSE
1140USE_PLUGIN_CAMERABIN2_TRUE
1141USE_PLUGIN_BAYER_FALSE
1142USE_PLUGIN_BAYER_TRUE
1143USE_PLUGIN_AUTOCONVERT_FALSE
1144USE_PLUGIN_AUTOCONVERT_TRUE
1145USE_PLUGIN_AUDIOVISUALIZERS_FALSE
1146USE_PLUGIN_AUDIOVISUALIZERS_TRUE
1147USE_PLUGIN_AUDIOMIXMATRIX_FALSE
1148USE_PLUGIN_AUDIOMIXMATRIX_TRUE
1149USE_PLUGIN_AUDIOLATENCY_FALSE
1150USE_PLUGIN_AUDIOLATENCY_TRUE
1151USE_PLUGIN_AUDIOFXBAD_FALSE
1152USE_PLUGIN_AUDIOFXBAD_TRUE
1153USE_PLUGIN_AUDIOBUFFERSPLIT_FALSE
1154USE_PLUGIN_AUDIOBUFFERSPLIT_TRUE
1155USE_PLUGIN_ASFMUX_FALSE
1156USE_PLUGIN_ASFMUX_TRUE
1157USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_FALSE
1158USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_TRUE
1159USE_PLUGIN_AIFF_FALSE
1160USE_PLUGIN_AIFF_TRUE
1161USE_PLUGIN_ADPCMENC_FALSE
1162USE_PLUGIN_ADPCMENC_TRUE
1163USE_PLUGIN_ADPCMDEC_FALSE
1164USE_PLUGIN_ADPCMDEC_TRUE
1165USE_PLUGIN_ACCURIP_FALSE
1166USE_PLUGIN_ACCURIP_TRUE
1167DEFAULT_VISUALIZER
1168DEFAULT_VIDEOSRC
1169DEFAULT_VIDEOSINK
1170DEFAULT_AUDIOSRC
1171DEFAULT_AUDIOSINK
1172GST_LEVEL_DEFAULT
1173ERROR_OBJCFLAGS
1174WARNING_OBJCFLAGS
1175ERROR_CXXFLAGS
1176WARNING_CXXFLAGS
1177ERROR_CFLAGS
1178WARNING_CFLAGS
1179WITH_GST_PLAYER_TESTS_FALSE
1180WITH_GST_PLAYER_TESTS_TRUE
1181WGET
1182plugindir
1183PLUGINDIR
1184LIBDIR
1185GST_LICENSE
1186HAVE_ORCC_FALSE
1187HAVE_ORCC_TRUE
1188HAVE_ORC_FALSE
1189HAVE_ORC_TRUE
1190ORCC_FLAGS
1191ORCC
1192ORC_LIBS
1193ORC_CFLAGS
1194HAVE_DSSIM_FALSE
1195HAVE_DSSIM_TRUE
1196USE_IQA_FALSE
1197USE_IQA_TRUE
1198DSSIM_LIBS
1199DSSIM_CFLAGS
1200USE_EXIF_FALSE
1201USE_EXIF_TRUE
1202EXIF_LIBS
1203EXIF_CFLAGS
1204HAVE_X11_FALSE
1205HAVE_X11_TRUE
1206HAVE_X11
1207X11_LIBS
1208X11_CFLAGS
1209HAVE_GTK3_WAYLAND_FALSE
1210HAVE_GTK3_WAYLAND_TRUE
1211HAVE_GTK3_FALSE
1212HAVE_GTK3_TRUE
1213HAVE_GTK3
1214GTK_BASE_DIR
1215GTK_VERSION
1216GTK3_LIBS
1217GTK3_CFLAGS
1218HAVE_GTK_FALSE
1219HAVE_GTK_TRUE
1220GTK_LIBS
1221GTK_CFLAGS
1222GSTPB_PREFIX
1223GST_PREFIX
1224GLIB_PREFIX
1225GST_PLUGINS_LIBAV_DIR
1226GST_PLUGINS_LIBAV_LIBS
1227GST_PLUGINS_LIBAV_CFLAGS
1228GST_PLUGINS_UGLY_DIR
1229GST_PLUGINS_UGLY_LIBS
1230GST_PLUGINS_UGLY_CFLAGS
1231GST_PLUGINS_GOOD_DIR
1232GST_PLUGINS_GOOD_LIBS
1233GST_PLUGINS_GOOD_CFLAGS
1234GSTPB_PLUGINS_DIR
1235GST_PLUGINS_BASE_DIR
1236GST_PLUGINS_BASE_LIBS
1237GST_PLUGINS_BASE_CFLAGS
1238HAVE_GST_CHECK_FALSE
1239HAVE_GST_CHECK_TRUE
1240USE_OPENGL_FALSE
1241USE_OPENGL_TRUE
1242GST_SDP_LIBS
1243GST_SDP_CFLAGS
1244GST_GL_LIBS
1245GST_GL_CFLAGS
1246GST_PBUTILS_LIBS
1247GST_PBUTILS_CFLAGS
1248GST_AUDIO_LIBS
1249GST_AUDIO_CFLAGS
1250GST_VIDEO_LIBS
1251GST_VIDEO_CFLAGS
1252GST_NET_LIBS
1253GST_NET_CFLAGS
1254GST_CONTROLLER_LIBS
1255GST_CONTROLLER_CFLAGS
1256GST_CHECK_LIBS
1257GST_CHECK_CFLAGS
1258GST_BASE_LIBS
1259GST_BASE_CFLAGS
1260GST_PLUGINS_DIR
1261GST_TOOLS_DIR
1262GST_LIBS
1263GST_CFLAGS
1264GMODULE_NO_EXPORT_LIBS
1265GMODULE_NO_EXPORT_CFLAGS
1266GIO_LDFLAGS
1267GIO_LIBS
1268GIO_CFLAGS
1269GLIB_EXTRA_CFLAGS
1270GLIB_MKENUMS
1271GLIB_GENMARSHAL
1272GLIB_LIBS
1273GLIB_CFLAGS
1274GLIB_REQ
1275HAVE_PTHREAD_H_FALSE
1276HAVE_PTHREAD_H_TRUE
1277HAVE_UNISTD_H_FALSE
1278HAVE_UNISTD_H_TRUE
1279PTHREAD_CFLAGS
1280PTHREAD_LIBS
1281PTHREAD_CC
1282ax_pthread_config
1283LIBM
1284ENABLE_PLUGIN_DOCS_FALSE
1285ENABLE_PLUGIN_DOCS_TRUE
1286pkgpyexecdir
1287pyexecdir
1288pkgpythondir
1289pythondir
1290PYTHON_PLATFORM
1291PYTHON_EXEC_PREFIX
1292PYTHON_PREFIX
1293PYTHON_VERSION
1294PYTHON
1295GTK_DOC_USE_LIBTOOL_FALSE
1296GTK_DOC_USE_LIBTOOL_TRUE
1297GTK_DOC_BUILD_PDF_FALSE
1298GTK_DOC_BUILD_PDF_TRUE
1299GTK_DOC_BUILD_HTML_FALSE
1300GTK_DOC_BUILD_HTML_TRUE
1301ENABLE_GTK_DOC_FALSE
1302ENABLE_GTK_DOC_TRUE
1303GTKDOC_DEPS_LIBS
1304GTKDOC_DEPS_CFLAGS
1305HTML_DIR
1306GTKDOC_MKPDF
1307GTKDOC_REBASE
1308GTKDOC_CHECK
1309HAVE_INTROSPECTION_FALSE
1310HAVE_INTROSPECTION_TRUE
1311INTROSPECTION_INIT
1312INTROSPECTION_MAKEFILE
1313INTROSPECTION_LIBS
1314INTROSPECTION_CFLAGS
1315INTROSPECTION_TYPELIBDIR
1316INTROSPECTION_GIRDIR
1317INTROSPECTION_GENERATE
1318INTROSPECTION_COMPILER
1319INTROSPECTION_SCANNER
1320HAVE_VALGRIND_FALSE
1321HAVE_VALGRIND_TRUE
1322VALGRIND_PATH
1323am__fastdepOBJC_FALSE
1324am__fastdepOBJC_TRUE
1325OBJCDEPMODE
1326ac_ct_OBJC
1327OBJCFLAGS
1328OBJC
1329HAVE_CXX
1330CXXCPP
1331am__fastdepCXX_FALSE
1332am__fastdepCXX_TRUE
1333CXXDEPMODE
1334ac_ct_CXX
1335CXX
1336HAVE_CPU_CRISV32_FALSE
1337HAVE_CPU_CRISV32_TRUE
1338HAVE_CPU_CRIS_FALSE
1339HAVE_CPU_CRIS_TRUE
1340HAVE_CPU_X86_64_FALSE
1341HAVE_CPU_X86_64_TRUE
1342HAVE_CPU_M68K_FALSE
1343HAVE_CPU_M68K_TRUE
1344HAVE_CPU_IA64_FALSE
1345HAVE_CPU_IA64_TRUE
1346HAVE_CPU_S390_FALSE
1347HAVE_CPU_S390_TRUE
1348HAVE_CPU_MIPS_FALSE
1349HAVE_CPU_MIPS_TRUE
1350HAVE_CPU_HPPA_FALSE
1351HAVE_CPU_HPPA_TRUE
1352HAVE_CPU_SPARC_FALSE
1353HAVE_CPU_SPARC_TRUE
1354HAVE_CPU_ARM_FALSE
1355HAVE_CPU_ARM_TRUE
1356HAVE_CPU_ARC_FALSE
1357HAVE_CPU_ARC_TRUE
1358HAVE_CPU_ALPHA_FALSE
1359HAVE_CPU_ALPHA_TRUE
1360HAVE_CPU_PPC64_FALSE
1361HAVE_CPU_PPC64_TRUE
1362HAVE_CPU_PPC_FALSE
1363HAVE_CPU_PPC_TRUE
1364HAVE_CPU_I386_FALSE
1365HAVE_CPU_I386_TRUE
1366GST_PKG_CONFIG_PATH
1367BUILD_EXPERIMENTAL_FALSE
1368BUILD_EXPERIMENTAL_TRUE
1369USE_EXPERIMENTAL_FALSE
1370USE_EXPERIMENTAL_TRUE
1371BUILD_EXTERNAL_FALSE
1372BUILD_EXTERNAL_TRUE
1373USE_EXTERNAL_FALSE
1374USE_EXTERNAL_TRUE
1375GST_PLUGINS_NONPORTED
1376GST_PLUGINS_SELECTED
1377GST_PLUGINS_ALL
1378GST_PACKAGE_ORIGIN
1379GST_PACKAGE_NAME
1380BUILD_EXAMPLES_FALSE
1381BUILD_EXAMPLES_TRUE
1382GST_GCOV_ENABLED_FALSE
1383GST_GCOV_ENABLED_TRUE
1384CCASFLAGS
1385FFLAGS
1386CXXFLAGS
1387GCOV
1388GCOV_LIBS
1389GCOV_CFLAGS
1390VALGRIND_LIBS
1391VALGRIND_CFLAGS
1392PKG_CONFIG
1393LOCALEDIR
1394GETTEXT_PACKAGE
1395POSUB
1396LTLIBINTL
1397LIBINTL
1398INTLLIBS
1399LTLIBICONV
1400LIBICONV
1401INTL_MACOSX_LIBS
1402XGETTEXT_EXTRA_OPTIONS
1403MSGMERGE
1404XGETTEXT_015
1405XGETTEXT
1406GMSGFMT_015
1407MSGFMT_015
1408GMSGFMT
1409MSGFMT
1410GETTEXT_MACRO_VERSION
1411USE_NLS
1412ACLOCAL_AMFLAGS
1413CPP
1414LT_SYS_LIBRARY_PATH
1415OTOOL64
1416OTOOL
1417LIPO
1418NMEDIT
1419DSYMUTIL
1420MANIFEST_TOOL
1421RANLIB
1422ac_ct_AR
1423AR
1424LN_S
1425NM
1426ac_ct_DUMPBIN
1427DUMPBIN
1428LD
1429FGREP
1430EGREP
1431GREP
1432SED
1433am__fastdepCC_FALSE
1434am__fastdepCC_TRUE
1435CCDEPMODE
1436am__nodep
1437AMDEPBACKSLASH
1438AMDEP_FALSE
1439AMDEP_TRUE
1440am__include
1441DEPDIR
1442OBJEXT
1443EXEEXT
1444ac_ct_CC
1445CPPFLAGS
1446LDFLAGS
1447CFLAGS
1448CC
1449LIBTOOL
1450OBJDUMP
1451DLLTOOL
1452AS
1453GST_LT_LDFLAGS
1454GST_LIBVERSION
1455GST_AGE
1456GST_REVISION
1457GST_CURRENT
1458GST_API_VERSION
1459MAINT
1460MAINTAINER_MODE_FALSE
1461MAINTAINER_MODE_TRUE
1462PACKAGE_VERSION_RELEASE
1463PACKAGE_VERSION_NANO
1464PACKAGE_VERSION_MICRO
1465PACKAGE_VERSION_MINOR
1466PACKAGE_VERSION_MAJOR
1467AM_BACKSLASH
1468AM_DEFAULT_VERBOSITY
1469AM_DEFAULT_V
1470AM_V
1471am__untar
1472am__tar
1473AMTAR
1474am__leading_dot
1475SET_MAKE
1476AWK
1477mkdir_p
1478MKDIR_P
1479INSTALL_STRIP_PROGRAM
1480STRIP
1481install_sh
1482MAKEINFO
1483AUTOHEADER
1484AUTOMAKE
1485AUTOCONF
1486ACLOCAL
1487VERSION
1488PACKAGE
1489CYGPATH_W
1490am__isrc
1491INSTALL_DATA
1492INSTALL_SCRIPT
1493INSTALL_PROGRAM
1494target_os
1495target_vendor
1496target_cpu
1497target
1498host_os
1499host_vendor
1500host_cpu
1501host
1502build_os
1503build_vendor
1504build_cpu
1505build
1506target_alias
1507host_alias
1508build_alias
1509LIBS
1510ECHO_T
1511ECHO_N
1512ECHO_C
1513DEFS
1514mandir
1515localedir
1516libdir
1517psdir
1518pdfdir
1519dvidir
1520htmldir
1521infodir
1522docdir
1523oldincludedir
1524includedir
1525runstatedir
1526localstatedir
1527sharedstatedir
1528sysconfdir
1529datadir
1530datarootdir
1531libexecdir
1532sbindir
1533bindir
1534program_transform_name
1535prefix
1536exec_prefix
1537PACKAGE_URL
1538PACKAGE_BUGREPORT
1539PACKAGE_STRING
1540PACKAGE_VERSION
1541PACKAGE_TARNAME
1542PACKAGE_NAME
1543PATH_SEPARATOR
1544SHELL
1545am__quote'
1546ac_subst_files=''
1547ac_user_opts='
1548enable_option_checking
1549enable_silent_rules
1550enable_maintainer_mode
1551enable_static
1552enable_shared
1553with_pic
1554enable_fast_install
1555with_aix_soname
1556enable_dependency_tracking
1557with_gnu_ld
1558with_sysroot
1559enable_libtool_lock
1560with_autoconf
1561with_autoheader
1562with_automake
1563with_aclocal
1564enable_nls
1565enable_rpath
1566with_libiconv_prefix
1567with_libintl_prefix
1568enable_fatal_warnings
1569enable_extra_check
1570enable_debug
1571enable_profiling
1572enable_valgrind
1573enable_gcov
1574enable_examples
1575with_pkg_config_path
1576with_package_name
1577with_package_origin
1578with_plugins
1579enable_external
1580enable_experimental
1581enable_largefile
1582enable_introspection
1583with_html_dir
1584enable_gtk_doc
1585enable_gtk_doc_html
1586enable_gtk_doc_pdf
1587enable_gobject_cast_checks
1588enable_glib_asserts
1589with_gtk
1590enable_Bsymbolic
1591enable_iqa
1592enable_orc
1593with_player_tests
1594with_default_audiosink
1595with_default_audiosrc
1596with_default_videosink
1597with_default_videosrc
1598with_default_visualizer
1599enable_accurip
1600enable_adpcmdec
1601enable_adpcmenc
1602enable_aiff
1603enable_videoframe_audiolevel
1604enable_asfmux
1605enable_audiobuffersplit
1606enable_audiofxbad
1607enable_audiolatency
1608enable_audiomixmatrix
1609enable_audiovisualizers
1610enable_autoconvert
1611enable_bayer
1612enable_camerabin2
1613enable_coloreffects
1614enable_debugutils
1615enable_dvbsuboverlay
1616enable_dvdspu
1617enable_faceoverlay
1618enable_festival
1619enable_fieldanalysis
1620enable_freeverb
1621enable_frei0r
1622enable_gaudieffects
1623enable_geometrictransform
1624enable_gdp
1625enable_id3tag
1626enable_inter
1627enable_interlace
1628enable_ivfparse
1629enable_ivtc
1630enable_jp2kdecimator
1631enable_jpegformat
1632enable_librfb
1633enable_midi
1634enable_mpegdemux
1635enable_mpegtsdemux
1636enable_mpegtsmux
1637enable_mpegpsmux
1638enable_mxf
1639enable_netsim
1640enable_onvif
1641enable_pcapparse
1642enable_pnm
1643enable_proxy
1644enable_rawparse
1645enable_removesilence
1646enable_sdp
1647enable_segmentclip
1648enable_siren
1649enable_smooth
1650enable_speed
1651enable_subenc
1652enable_timecode
1653enable_videofilters
1654enable_videoparsers
1655enable_videosignal
1656enable_vmnc
1657enable_y4m
1658enable_yadif
1659enable_directsound
1660enable_wasapi
1661enable_direct3d
1662enable_winscreencap
1663enable_winks
1664enable_android_media
1665enable_apple_media
1666enable_bluez
1667enable_avc
1668enable_shm
1669enable_ipcpipeline
1670enable_opensles
1671enable_uvch264
1672enable_cuda
1673with_cuda_prefix
1674enable_nvdec
1675enable_nvenc
1676enable_tinyalsa
1677enable_msdk
1678with_msdk_prefix
1679enable_assrender
1680enable_aom
1681enable_voamrwbenc
1682enable_voaacenc
1683enable_bs2b
1684enable_bz2
1685enable_chromaprint
1686enable_curl
1687enable_dash
1688enable_dc1394
1689enable_decklink
1690enable_directfb
1691enable_wayland
1692enable_webp
1693enable_dts
1694enable_resindvd
1695enable_faac
1696enable_faad
1697enable_fbdev
1698enable_fdk_aac
1699enable_flite
1700enable_gsm
1701enable_fluidsynth
1702enable_kate
1703enable_kms
1704enable_ladspa
1705enable_lcms2
1706enable_lv2
1707enable_libde265
1708enable_libmms
1709enable_srt
1710enable_srtp
1711enable_dtls
1712enable_ttml
1713enable_modplug
1714enable_mpeg2enc
1715enable_mplex
1716enable_musepack
1717enable_neon
1718enable_ofa
1719enable_openal
1720enable_opencv
1721enable_openexr
1722enable_openh264
1723enable_openjpeg
1724enable_openmpt
1725enable_openni2
1726enable_opus
1727enable_pango
1728enable_rsvg
1729enable_gl
1730enable_vulkan
1731enable_teletextdec
1732enable_wildmidi
1733enable_smoothstreaming
1734enable_sndfile
1735enable_soundtouch
1736enable_gme
1737enable_dvb
1738enable_vdpau
1739enable_sbc
1740enable_zbar
1741enable_rtmp
1742enable_spandsp
1743with_hls_crypto
1744enable_hls
1745with_libgcrypt_prefix
1746enable_x265
1747enable_webrtcdsp
1748enable_webrtc
1749enable_wpe
1750enable_sctp
1751'
1752      ac_precious_vars='build_alias
1753host_alias
1754target_alias
1755CC
1756CFLAGS
1757LDFLAGS
1758LIBS
1759CPPFLAGS
1760LT_SYS_LIBRARY_PATH
1761CPP
1762PKG_CONFIG
1763VALGRIND_CFLAGS
1764VALGRIND_LIBS
1765CXX
1766CXXFLAGS
1767CCC
1768CXXCPP
1769OBJC
1770OBJCFLAGS
1771GTKDOC_DEPS_CFLAGS
1772GTKDOC_DEPS_LIBS
1773PYTHON
1774GLIB_CFLAGS
1775GLIB_LIBS
1776GIO_CFLAGS
1777GIO_LIBS
1778GMODULE_NO_EXPORT_CFLAGS
1779GMODULE_NO_EXPORT_LIBS
1780GST_CFLAGS
1781GST_LIBS
1782GST_BASE_CFLAGS
1783GST_BASE_LIBS
1784GST_CHECK_CFLAGS
1785GST_CHECK_LIBS
1786GST_CONTROLLER_CFLAGS
1787GST_CONTROLLER_LIBS
1788GST_NET_CFLAGS
1789GST_NET_LIBS
1790GST_VIDEO_CFLAGS
1791GST_VIDEO_LIBS
1792GST_AUDIO_CFLAGS
1793GST_AUDIO_LIBS
1794GST_PBUTILS_CFLAGS
1795GST_PBUTILS_LIBS
1796GST_GL_CFLAGS
1797GST_GL_LIBS
1798GST_SDP_CFLAGS
1799GST_SDP_LIBS
1800GST_PLUGINS_BASE_CFLAGS
1801GST_PLUGINS_BASE_LIBS
1802GST_PLUGINS_GOOD_CFLAGS
1803GST_PLUGINS_GOOD_LIBS
1804GST_PLUGINS_UGLY_CFLAGS
1805GST_PLUGINS_UGLY_LIBS
1806GST_PLUGINS_LIBAV_CFLAGS
1807GST_PLUGINS_LIBAV_LIBS
1808GTK_CFLAGS
1809GTK_LIBS
1810GTK3_CFLAGS
1811GTK3_LIBS
1812X11_CFLAGS
1813X11_LIBS
1814EXIF_CFLAGS
1815EXIF_LIBS
1816DSSIM_CFLAGS
1817DSSIM_LIBS
1818ORC_CFLAGS
1819ORC_LIBS
1820XCB_CFLAGS
1821XCB_LIBS
1822VULKAN_WAYLAND_CFLAGS
1823VULKAN_WAYLAND_LIBS
1824BLUEZ5_CFLAGS
1825BLUEZ5_LIBS
1826GIO_UNIX_CFLAGS
1827GIO_UNIX_LIBS
1828G_UDEV_CFLAGS
1829G_UDEV_LIBS
1830LIBUSB_CFLAGS
1831LIBUSB_LIBS
1832CUDA_CFLAGS
1833CUDA_LIBS
1834NVENCODE_LIBS
1835GST_ALLOCATORS_CFLAGS
1836GST_ALLOCATORS_LIBS
1837LIBMFX_CFLAGS
1838LIBMFX_LIBS
1839LIBVA_DRM_CFLAGS
1840LIBVA_DRM_LIBS
1841ASSRENDER_CFLAGS
1842ASSRENDER_LIBS
1843AOM_CFLAGS
1844AOM_LIBS
1845VOAMRWBENC_CFLAGS
1846VOAMRWBENC_LIBS
1847VOAACENC_CFLAGS
1848VOAACENC_LIBS
1849BS2B_CFLAGS
1850BS2B_LIBS
1851CHROMAPRINT_CFLAGS
1852CHROMAPRINT_LIBS
1853CURL_CFLAGS
1854CURL_LIBS
1855SSH2_CFLAGS
1856SSH2_LIBS
1857LIBXML2_CFLAGS
1858LIBXML2_LIBS
1859LIBDC1394_CFLAGS
1860LIBDC1394_LIBS
1861DIRECTFB_CFLAGS
1862DIRECTFB_LIBS
1863WAYLAND_CFLAGS
1864WAYLAND_LIBS
1865WEBP_CFLAGS
1866WEBP_LIBS
1867DVDNAV_CFLAGS
1868DVDNAV_LIBS
1869FDK_AAC_CFLAGS
1870FDK_AAC_LIBS
1871FLUIDSYNTH_CFLAGS
1872FLUIDSYNTH_LIBS
1873KATE_CFLAGS
1874KATE_LIBS
1875TIGER_CFLAGS
1876TIGER_LIBS
1877KMS_DRM_CFLAGS
1878KMS_DRM_LIBS
1879LRDF_CFLAGS
1880LRDF_LIBS
1881LCMS2_CFLAGS
1882LCMS2_LIBS
1883LILV_CFLAGS
1884LILV_LIBS
1885LIBDE265_CFLAGS
1886LIBDE265_LIBS
1887LIBMMS_CFLAGS
1888LIBMMS_LIBS
1889SRT_CFLAGS
1890SRT_LIBS
1891SRTP_CFLAGS
1892SRTP_LIBS
1893DTLS_CFLAGS
1894DTLS_LIBS
1895TTML_CFLAGS
1896TTML_LIBS
1897MODPLUG_CFLAGS
1898MODPLUG_LIBS
1899MJPEG_CFLAGS
1900MJPEG_LIBS
1901MPEG2ENC_CFLAGS
1902MPEG2ENC_LIBS
1903MPLEX_CFLAGS
1904MPLEX_LIBS
1905NEON_CFLAGS
1906NEON_LIBS
1907OFA_CFLAGS
1908OFA_LIBS
1909OPENAL_CFLAGS
1910OPENAL_LIBS
1911OPENCV_CFLAGS
1912OPENCV_LIBS
1913OPENEXR_CFLAGS
1914OPENEXR_LIBS
1915OPENEXR240_CFLAGS
1916OPENEXR240_LIBS
1917OPENH264_CFLAGS
1918OPENH264_LIBS
1919OPENJPEG_CFLAGS
1920OPENJPEG_LIBS
1921OPENMPT_CFLAGS
1922OPENMPT_LIBS
1923OPENNI2_CFLAGS
1924OPENNI2_LIBS
1925OPUS_CFLAGS
1926OPUS_LIBS
1927PANGO_CFLAGS
1928PANGO_LIBS
1929RSVG_CFLAGS
1930RSVG_LIBS
1931TELETEXTDEC_CFLAGS
1932TELETEXTDEC_LIBS
1933SNDFILE_CFLAGS
1934SNDFILE_LIBS
1935SOUNDTOUCH_CFLAGS
1936SOUNDTOUCH_LIBS
1937VDPAU_CFLAGS
1938VDPAU_LIBS
1939SBC_CFLAGS
1940SBC_LIBS
1941ZBAR_CFLAGS
1942ZBAR_LIBS
1943RTMP_CFLAGS
1944RTMP_LIBS
1945SPANDSP_CFLAGS
1946SPANDSP_LIBS
1947NETTLE_CFLAGS
1948NETTLE_LIBS
1949OPENSSL_CFLAGS
1950OPENSSL_LIBS
1951X265_CFLAGS
1952X265_LIBS
1953WEBRTCDSP_CFLAGS
1954WEBRTCDSP_LIBS
1955GNUSTL_CFLAGS
1956GNUSTL_LIBS
1957NICE_CFLAGS
1958NICE_LIBS
1959WPE_CFLAGS
1960WPE_LIBS'
1961
1962
1963# Initialize some variables set by options.
1964ac_init_help=
1965ac_init_version=false
1966ac_unrecognized_opts=
1967ac_unrecognized_sep=
1968# The variables have the same names as the options, with
1969# dashes changed to underlines.
1970cache_file=/dev/null
1971exec_prefix=NONE
1972no_create=
1973no_recursion=
1974prefix=NONE
1975program_prefix=NONE
1976program_suffix=NONE
1977program_transform_name=s,x,x,
1978silent=
1979site=
1980srcdir=
1981verbose=
1982x_includes=NONE
1983x_libraries=NONE
1984
1985# Installation directory options.
1986# These are left unexpanded so users can "make install exec_prefix=/foo"
1987# and all the variables that are supposed to be based on exec_prefix
1988# by default will actually change.
1989# Use braces instead of parens because sh, perl, etc. also accept them.
1990# (The list follows the same order as the GNU Coding Standards.)
1991bindir='${exec_prefix}/bin'
1992sbindir='${exec_prefix}/sbin'
1993libexecdir='${exec_prefix}/libexec'
1994datarootdir='${prefix}/share'
1995datadir='${datarootdir}'
1996sysconfdir='${prefix}/etc'
1997sharedstatedir='${prefix}/com'
1998localstatedir='${prefix}/var'
1999runstatedir='${localstatedir}/run'
2000includedir='${prefix}/include'
2001oldincludedir='/usr/include'
2002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2003infodir='${datarootdir}/info'
2004htmldir='${docdir}'
2005dvidir='${docdir}'
2006pdfdir='${docdir}'
2007psdir='${docdir}'
2008libdir='${exec_prefix}/lib'
2009localedir='${datarootdir}/locale'
2010mandir='${datarootdir}/man'
2011
2012ac_prev=
2013ac_dashdash=
2014for ac_option
2015do
2016  # If the previous option needs an argument, assign it.
2017  if test -n "$ac_prev"; then
2018    eval $ac_prev=\$ac_option
2019    ac_prev=
2020    continue
2021  fi
2022
2023  case $ac_option in
2024  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2025  *=)   ac_optarg= ;;
2026  *)    ac_optarg=yes ;;
2027  esac
2028
2029  # Accept the important Cygnus configure options, so we can diagnose typos.
2030
2031  case $ac_dashdash$ac_option in
2032  --)
2033    ac_dashdash=yes ;;
2034
2035  -bindir | --bindir | --bindi | --bind | --bin | --bi)
2036    ac_prev=bindir ;;
2037  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2038    bindir=$ac_optarg ;;
2039
2040  -build | --build | --buil | --bui | --bu)
2041    ac_prev=build_alias ;;
2042  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2043    build_alias=$ac_optarg ;;
2044
2045  -cache-file | --cache-file | --cache-fil | --cache-fi \
2046  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2047    ac_prev=cache_file ;;
2048  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2049  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2050    cache_file=$ac_optarg ;;
2051
2052  --config-cache | -C)
2053    cache_file=config.cache ;;
2054
2055  -datadir | --datadir | --datadi | --datad)
2056    ac_prev=datadir ;;
2057  -datadir=* | --datadir=* | --datadi=* | --datad=*)
2058    datadir=$ac_optarg ;;
2059
2060  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2061  | --dataroo | --dataro | --datar)
2062    ac_prev=datarootdir ;;
2063  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2064  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2065    datarootdir=$ac_optarg ;;
2066
2067  -disable-* | --disable-*)
2068    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2069    # Reject names that are not valid shell variable names.
2070    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2071      as_fn_error $? "invalid feature name: $ac_useropt"
2072    ac_useropt_orig=$ac_useropt
2073    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2074    case $ac_user_opts in
2075      *"
2076"enable_$ac_useropt"
2077"*) ;;
2078      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2079	 ac_unrecognized_sep=', ';;
2080    esac
2081    eval enable_$ac_useropt=no ;;
2082
2083  -docdir | --docdir | --docdi | --doc | --do)
2084    ac_prev=docdir ;;
2085  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2086    docdir=$ac_optarg ;;
2087
2088  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2089    ac_prev=dvidir ;;
2090  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2091    dvidir=$ac_optarg ;;
2092
2093  -enable-* | --enable-*)
2094    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2095    # Reject names that are not valid shell variable names.
2096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2097      as_fn_error $? "invalid feature name: $ac_useropt"
2098    ac_useropt_orig=$ac_useropt
2099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2100    case $ac_user_opts in
2101      *"
2102"enable_$ac_useropt"
2103"*) ;;
2104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2105	 ac_unrecognized_sep=', ';;
2106    esac
2107    eval enable_$ac_useropt=\$ac_optarg ;;
2108
2109  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2110  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2111  | --exec | --exe | --ex)
2112    ac_prev=exec_prefix ;;
2113  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2114  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2115  | --exec=* | --exe=* | --ex=*)
2116    exec_prefix=$ac_optarg ;;
2117
2118  -gas | --gas | --ga | --g)
2119    # Obsolete; use --with-gas.
2120    with_gas=yes ;;
2121
2122  -help | --help | --hel | --he | -h)
2123    ac_init_help=long ;;
2124  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2125    ac_init_help=recursive ;;
2126  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2127    ac_init_help=short ;;
2128
2129  -host | --host | --hos | --ho)
2130    ac_prev=host_alias ;;
2131  -host=* | --host=* | --hos=* | --ho=*)
2132    host_alias=$ac_optarg ;;
2133
2134  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2135    ac_prev=htmldir ;;
2136  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2137  | --ht=*)
2138    htmldir=$ac_optarg ;;
2139
2140  -includedir | --includedir | --includedi | --included | --include \
2141  | --includ | --inclu | --incl | --inc)
2142    ac_prev=includedir ;;
2143  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2144  | --includ=* | --inclu=* | --incl=* | --inc=*)
2145    includedir=$ac_optarg ;;
2146
2147  -infodir | --infodir | --infodi | --infod | --info | --inf)
2148    ac_prev=infodir ;;
2149  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2150    infodir=$ac_optarg ;;
2151
2152  -libdir | --libdir | --libdi | --libd)
2153    ac_prev=libdir ;;
2154  -libdir=* | --libdir=* | --libdi=* | --libd=*)
2155    libdir=$ac_optarg ;;
2156
2157  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2158  | --libexe | --libex | --libe)
2159    ac_prev=libexecdir ;;
2160  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2161  | --libexe=* | --libex=* | --libe=*)
2162    libexecdir=$ac_optarg ;;
2163
2164  -localedir | --localedir | --localedi | --localed | --locale)
2165    ac_prev=localedir ;;
2166  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2167    localedir=$ac_optarg ;;
2168
2169  -localstatedir | --localstatedir | --localstatedi | --localstated \
2170  | --localstate | --localstat | --localsta | --localst | --locals)
2171    ac_prev=localstatedir ;;
2172  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2173  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2174    localstatedir=$ac_optarg ;;
2175
2176  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2177    ac_prev=mandir ;;
2178  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2179    mandir=$ac_optarg ;;
2180
2181  -nfp | --nfp | --nf)
2182    # Obsolete; use --without-fp.
2183    with_fp=no ;;
2184
2185  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2186  | --no-cr | --no-c | -n)
2187    no_create=yes ;;
2188
2189  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2190  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2191    no_recursion=yes ;;
2192
2193  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2194  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2195  | --oldin | --oldi | --old | --ol | --o)
2196    ac_prev=oldincludedir ;;
2197  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2198  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2199  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2200    oldincludedir=$ac_optarg ;;
2201
2202  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2203    ac_prev=prefix ;;
2204  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2205    prefix=$ac_optarg ;;
2206
2207  -program-prefix | --program-prefix | --program-prefi | --program-pref \
2208  | --program-pre | --program-pr | --program-p)
2209    ac_prev=program_prefix ;;
2210  -program-prefix=* | --program-prefix=* | --program-prefi=* \
2211  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2212    program_prefix=$ac_optarg ;;
2213
2214  -program-suffix | --program-suffix | --program-suffi | --program-suff \
2215  | --program-suf | --program-su | --program-s)
2216    ac_prev=program_suffix ;;
2217  -program-suffix=* | --program-suffix=* | --program-suffi=* \
2218  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2219    program_suffix=$ac_optarg ;;
2220
2221  -program-transform-name | --program-transform-name \
2222  | --program-transform-nam | --program-transform-na \
2223  | --program-transform-n | --program-transform- \
2224  | --program-transform | --program-transfor \
2225  | --program-transfo | --program-transf \
2226  | --program-trans | --program-tran \
2227  | --progr-tra | --program-tr | --program-t)
2228    ac_prev=program_transform_name ;;
2229  -program-transform-name=* | --program-transform-name=* \
2230  | --program-transform-nam=* | --program-transform-na=* \
2231  | --program-transform-n=* | --program-transform-=* \
2232  | --program-transform=* | --program-transfor=* \
2233  | --program-transfo=* | --program-transf=* \
2234  | --program-trans=* | --program-tran=* \
2235  | --progr-tra=* | --program-tr=* | --program-t=*)
2236    program_transform_name=$ac_optarg ;;
2237
2238  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2239    ac_prev=pdfdir ;;
2240  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2241    pdfdir=$ac_optarg ;;
2242
2243  -psdir | --psdir | --psdi | --psd | --ps)
2244    ac_prev=psdir ;;
2245  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2246    psdir=$ac_optarg ;;
2247
2248  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249  | -silent | --silent | --silen | --sile | --sil)
2250    silent=yes ;;
2251
2252  -runstatedir | --runstatedir | --runstatedi | --runstated \
2253  | --runstate | --runstat | --runsta | --runst | --runs \
2254  | --run | --ru | --r)
2255    ac_prev=runstatedir ;;
2256  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2257  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2258  | --run=* | --ru=* | --r=*)
2259    runstatedir=$ac_optarg ;;
2260
2261  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2262    ac_prev=sbindir ;;
2263  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2264  | --sbi=* | --sb=*)
2265    sbindir=$ac_optarg ;;
2266
2267  -sharedstatedir | --sharedstatedir | --sharedstatedi \
2268  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2269  | --sharedst | --shareds | --shared | --share | --shar \
2270  | --sha | --sh)
2271    ac_prev=sharedstatedir ;;
2272  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2273  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2274  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2275  | --sha=* | --sh=*)
2276    sharedstatedir=$ac_optarg ;;
2277
2278  -site | --site | --sit)
2279    ac_prev=site ;;
2280  -site=* | --site=* | --sit=*)
2281    site=$ac_optarg ;;
2282
2283  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2284    ac_prev=srcdir ;;
2285  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2286    srcdir=$ac_optarg ;;
2287
2288  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2289  | --syscon | --sysco | --sysc | --sys | --sy)
2290    ac_prev=sysconfdir ;;
2291  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2292  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2293    sysconfdir=$ac_optarg ;;
2294
2295  -target | --target | --targe | --targ | --tar | --ta | --t)
2296    ac_prev=target_alias ;;
2297  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2298    target_alias=$ac_optarg ;;
2299
2300  -v | -verbose | --verbose | --verbos | --verbo | --verb)
2301    verbose=yes ;;
2302
2303  -version | --version | --versio | --versi | --vers | -V)
2304    ac_init_version=: ;;
2305
2306  -with-* | --with-*)
2307    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2308    # Reject names that are not valid shell variable names.
2309    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2310      as_fn_error $? "invalid package name: $ac_useropt"
2311    ac_useropt_orig=$ac_useropt
2312    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2313    case $ac_user_opts in
2314      *"
2315"with_$ac_useropt"
2316"*) ;;
2317      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2318	 ac_unrecognized_sep=', ';;
2319    esac
2320    eval with_$ac_useropt=\$ac_optarg ;;
2321
2322  -without-* | --without-*)
2323    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2324    # Reject names that are not valid shell variable names.
2325    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2326      as_fn_error $? "invalid package name: $ac_useropt"
2327    ac_useropt_orig=$ac_useropt
2328    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2329    case $ac_user_opts in
2330      *"
2331"with_$ac_useropt"
2332"*) ;;
2333      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2334	 ac_unrecognized_sep=', ';;
2335    esac
2336    eval with_$ac_useropt=no ;;
2337
2338  --x)
2339    # Obsolete; use --with-x.
2340    with_x=yes ;;
2341
2342  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2343  | --x-incl | --x-inc | --x-in | --x-i)
2344    ac_prev=x_includes ;;
2345  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2346  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2347    x_includes=$ac_optarg ;;
2348
2349  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2350  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2351    ac_prev=x_libraries ;;
2352  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2353  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2354    x_libraries=$ac_optarg ;;
2355
2356  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2357Try \`$0 --help' for more information"
2358    ;;
2359
2360  *=*)
2361    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2362    # Reject names that are not valid shell variable names.
2363    case $ac_envvar in #(
2364      '' | [0-9]* | *[!_$as_cr_alnum]* )
2365      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2366    esac
2367    eval $ac_envvar=\$ac_optarg
2368    export $ac_envvar ;;
2369
2370  *)
2371    # FIXME: should be removed in autoconf 3.0.
2372    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2373    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2374      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2375    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2376    ;;
2377
2378  esac
2379done
2380
2381if test -n "$ac_prev"; then
2382  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2383  as_fn_error $? "missing argument to $ac_option"
2384fi
2385
2386if test -n "$ac_unrecognized_opts"; then
2387  case $enable_option_checking in
2388    no) ;;
2389    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2390    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2391  esac
2392fi
2393
2394# Check all directory arguments for consistency.
2395for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2396		datadir sysconfdir sharedstatedir localstatedir includedir \
2397		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2398		libdir localedir mandir runstatedir
2399do
2400  eval ac_val=\$$ac_var
2401  # Remove trailing slashes.
2402  case $ac_val in
2403    */ )
2404      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2405      eval $ac_var=\$ac_val;;
2406  esac
2407  # Be sure to have absolute directory names.
2408  case $ac_val in
2409    [\\/$]* | ?:[\\/]* )  continue;;
2410    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2411  esac
2412  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2413done
2414
2415# There might be people who depend on the old broken behavior: `$host'
2416# used to hold the argument of --host etc.
2417# FIXME: To remove some day.
2418build=$build_alias
2419host=$host_alias
2420target=$target_alias
2421
2422# FIXME: To remove some day.
2423if test "x$host_alias" != x; then
2424  if test "x$build_alias" = x; then
2425    cross_compiling=maybe
2426  elif test "x$build_alias" != "x$host_alias"; then
2427    cross_compiling=yes
2428  fi
2429fi
2430
2431ac_tool_prefix=
2432test -n "$host_alias" && ac_tool_prefix=$host_alias-
2433
2434test "$silent" = yes && exec 6>/dev/null
2435
2436
2437ac_pwd=`pwd` && test -n "$ac_pwd" &&
2438ac_ls_di=`ls -di .` &&
2439ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2440  as_fn_error $? "working directory cannot be determined"
2441test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2442  as_fn_error $? "pwd does not report name of working directory"
2443
2444
2445# Find the source files, if location was not specified.
2446if test -z "$srcdir"; then
2447  ac_srcdir_defaulted=yes
2448  # Try the directory containing this script, then the parent directory.
2449  ac_confdir=`$as_dirname -- "$as_myself" ||
2450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2451	 X"$as_myself" : 'X\(//\)[^/]' \| \
2452	 X"$as_myself" : 'X\(//\)$' \| \
2453	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2454$as_echo X"$as_myself" |
2455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2456	    s//\1/
2457	    q
2458	  }
2459	  /^X\(\/\/\)[^/].*/{
2460	    s//\1/
2461	    q
2462	  }
2463	  /^X\(\/\/\)$/{
2464	    s//\1/
2465	    q
2466	  }
2467	  /^X\(\/\).*/{
2468	    s//\1/
2469	    q
2470	  }
2471	  s/.*/./; q'`
2472  srcdir=$ac_confdir
2473  if test ! -r "$srcdir/$ac_unique_file"; then
2474    srcdir=..
2475  fi
2476else
2477  ac_srcdir_defaulted=no
2478fi
2479if test ! -r "$srcdir/$ac_unique_file"; then
2480  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2481  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2482fi
2483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2484ac_abs_confdir=`(
2485	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2486	pwd)`
2487# When building in place, set srcdir=.
2488if test "$ac_abs_confdir" = "$ac_pwd"; then
2489  srcdir=.
2490fi
2491# Remove unnecessary trailing slashes from srcdir.
2492# Double slashes in file names in object file debugging info
2493# mess up M-x gdb in Emacs.
2494case $srcdir in
2495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2496esac
2497for ac_var in $ac_precious_vars; do
2498  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2499  eval ac_env_${ac_var}_value=\$${ac_var}
2500  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2501  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2502done
2503
2504#
2505# Report the --help message.
2506#
2507if test "$ac_init_help" = "long"; then
2508  # Omit some internal or obsolete options to make the list less imposing.
2509  # This message is too long to be a string in the A/UX 3.1 sh.
2510  cat <<_ACEOF
2511\`configure' configures GStreamer Bad Plug-ins 1.16.2 to adapt to many kinds of systems.
2512
2513Usage: $0 [OPTION]... [VAR=VALUE]...
2514
2515To assign environment variables (e.g., CC, CFLAGS...), specify them as
2516VAR=VALUE.  See below for descriptions of some of the useful variables.
2517
2518Defaults for the options are specified in brackets.
2519
2520Configuration:
2521  -h, --help              display this help and exit
2522      --help=short        display options specific to this package
2523      --help=recursive    display the short help of all the included packages
2524  -V, --version           display version information and exit
2525  -q, --quiet, --silent   do not print \`checking ...' messages
2526      --cache-file=FILE   cache test results in FILE [disabled]
2527  -C, --config-cache      alias for \`--cache-file=config.cache'
2528  -n, --no-create         do not create output files
2529      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2530
2531Installation directories:
2532  --prefix=PREFIX         install architecture-independent files in PREFIX
2533                          [$ac_default_prefix]
2534  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2535                          [PREFIX]
2536
2537By default, \`make install' will install all the files in
2538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2540for instance \`--prefix=\$HOME'.
2541
2542For better control, use the options below.
2543
2544Fine tuning of the installation directories:
2545  --bindir=DIR            user executables [EPREFIX/bin]
2546  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2547  --libexecdir=DIR        program executables [EPREFIX/libexec]
2548  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2549  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2550  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2551  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2552  --libdir=DIR            object code libraries [EPREFIX/lib]
2553  --includedir=DIR        C header files [PREFIX/include]
2554  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2555  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2556  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2557  --infodir=DIR           info documentation [DATAROOTDIR/info]
2558  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2559  --mandir=DIR            man documentation [DATAROOTDIR/man]
2560  --docdir=DIR            documentation root [DATAROOTDIR/doc/gst-plugins-bad]
2561  --htmldir=DIR           html documentation [DOCDIR]
2562  --dvidir=DIR            dvi documentation [DOCDIR]
2563  --pdfdir=DIR            pdf documentation [DOCDIR]
2564  --psdir=DIR             ps documentation [DOCDIR]
2565_ACEOF
2566
2567  cat <<\_ACEOF
2568
2569Program names:
2570  --program-prefix=PREFIX            prepend PREFIX to installed program names
2571  --program-suffix=SUFFIX            append SUFFIX to installed program names
2572  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2573
2574System types:
2575  --build=BUILD     configure for building on BUILD [guessed]
2576  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2577  --target=TARGET   configure for building compilers for TARGET [HOST]
2578_ACEOF
2579fi
2580
2581if test -n "$ac_init_help"; then
2582  case $ac_init_help in
2583     short | recursive ) echo "Configuration of GStreamer Bad Plug-ins 1.16.2:";;
2584   esac
2585  cat <<\_ACEOF
2586
2587Optional Features:
2588  --disable-option-checking  ignore unrecognized --enable/--with options
2589  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2590  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2591  --enable-silent-rules   less verbose build output (undo: "make V=1")
2592  --disable-silent-rules  verbose build output (undo: "make V=0")
2593  --disable-maintainer-mode
2594                          disable make rules and dependencies not useful (and
2595                          sometimes confusing) to the casual installer
2596  --enable-static[=PKGS]  build static libraries [default=no]
2597  --enable-shared[=PKGS]  build shared libraries [default=yes]
2598  --enable-fast-install[=PKGS]
2599                          optimize for fast installation [default=yes]
2600  --enable-dependency-tracking
2601                          do not reject slow dependency extractors
2602  --disable-dependency-tracking
2603                          speeds up one-time build
2604  --disable-libtool-lock  avoid locking (might break parallel builds)
2605  --disable-nls           do not use Native Language Support
2606  --disable-rpath         do not hardcode runtime library paths
2607  --disable-fatal-warnings
2608                          Don't turn compiler warnings into fatal errors
2609  --enable-extra-checks   Enable extra runtime checks
2610  --disable-debug         disable addition of -g debugging info
2611  --enable-profiling      adds -pg to compiler commandline, for profiling
2612  --disable-valgrind      disable run-time valgrind detection
2613  --enable-gcov           compile with coverage profiling instrumentation (gcc
2614                          only)
2615  --disable-examples      disable building examples
2616  --disable-external           disable building of plug-ins with external deps
2617  --enable-experimental        enable building of experimental plug-ins
2618  --disable-largefile     omit support for large files
2619  --enable-introspection=[no/auto/yes]
2620                          Enable introspection for this build
2621  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
2622  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
2623  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
2624  --enable-gobject-cast-checks=[no/auto/yes]
2625                          Enable GObject cast checks
2626  --enable-glib-asserts=[no/yes]
2627                          Enable GLib assertion
2628  --disable-Bsymbolic     avoid linking with -Bsymbolic
2629  --disable-iqa                disable iqa: iqa
2630  --enable-orc            use Orc if installed
2631  --disable-accurip       disable dependency-less accurip plugin
2632  --disable-adpcmdec      disable dependency-less adpcmdec plugin
2633  --disable-adpcmenc      disable dependency-less adpcmenc plugin
2634  --disable-aiff          disable dependency-less aiff plugin
2635  --disable-videoframe_audiolevel
2636                          disable dependency-less videoframe_audiolevel plugin
2637  --disable-asfmux        disable dependency-less asfmux plugin
2638  --disable-audiobuffersplit
2639                          disable dependency-less audiobuffersplit plugin
2640  --disable-audiofxbad    disable dependency-less audiofxbad plugin
2641  --disable-audiolatency  disable dependency-less audiolatency plugin
2642  --disable-audiomixmatrix
2643                          disable dependency-less audiomixmatrix plugin
2644  --disable-audiovisualizers
2645                          disable dependency-less audiovisualizers plugin
2646  --disable-autoconvert   disable dependency-less autoconvert plugin
2647  --disable-bayer         disable dependency-less bayer plugin
2648  --disable-camerabin2    disable dependency-less camerabin2 plugin
2649  --disable-coloreffects  disable dependency-less coloreffects plugin
2650  --disable-debugutils    disable dependency-less debugutils plugin
2651  --disable-dvbsuboverlay disable dependency-less dvbsuboverlay plugin
2652  --disable-dvdspu        disable dependency-less dvdspu plugin
2653  --disable-faceoverlay   disable dependency-less faceoverlay plugin
2654  --disable-festival      disable dependency-less festival plugin
2655  --disable-fieldanalysis disable dependency-less fieldanalysis plugin
2656  --disable-freeverb      disable dependency-less freeverb plugin
2657  --disable-frei0r        disable dependency-less frei0r plugin
2658  --disable-gaudieffects  disable dependency-less gaudieffects plugin
2659  --disable-geometrictransform
2660                          disable dependency-less geometrictransform plugin
2661  --disable-gdp           disable dependency-less gdp plugin
2662  --disable-id3tag        disable dependency-less id3tag plugin
2663  --disable-inter         disable dependency-less inter plugin
2664  --disable-interlace     disable dependency-less interlace plugin
2665  --disable-ivfparse      disable dependency-less ivfparse plugin
2666  --disable-ivtc          disable dependency-less ivtc plugin
2667  --disable-jp2kdecimator disable dependency-less jp2kdecimator plugin
2668  --disable-jpegformat    disable dependency-less jpegformat plugin
2669  --disable-librfb        disable dependency-less librfb plugin
2670  --disable-midi          disable dependency-less midi plugin
2671  --disable-mpegdemux     disable dependency-less mpegdemux plugin
2672  --disable-mpegtsdemux   disable dependency-less mpegtsdemux plugin
2673  --disable-mpegtsmux     disable dependency-less mpegtsmux plugin
2674  --disable-mpegpsmux     disable dependency-less mpegpsmux plugin
2675  --disable-mxf           disable dependency-less mxf plugin
2676  --disable-netsim        disable dependency-less netsim plugin
2677  --disable-onvif         disable dependency-less onvif plugin
2678  --disable-pcapparse     disable dependency-less pcapparse plugin
2679  --disable-pnm           disable dependency-less pnm plugin
2680  --disable-proxy         disable dependency-less proxy plugin
2681  --disable-rawparse      disable dependency-less rawparse plugin
2682  --disable-removesilence disable dependency-less removesilence plugin
2683  --disable-sdp           disable dependency-less sdp plugin
2684  --disable-segmentclip   disable dependency-less segmentclip plugin
2685  --disable-siren         disable dependency-less siren plugin
2686  --disable-smooth        disable dependency-less smooth plugin
2687  --disable-speed         disable dependency-less speed plugin
2688  --disable-subenc        disable dependency-less subenc plugin
2689  --disable-timecode      disable dependency-less timecode plugin
2690  --disable-videofilters  disable dependency-less videofilters plugin
2691  --disable-videoparsers  disable dependency-less videoparsers plugin
2692  --disable-videosignal   disable dependency-less videosignal plugin
2693  --disable-vmnc          disable dependency-less vmnc plugin
2694  --disable-y4m           disable dependency-less y4m plugin
2695  --disable-yadif         disable dependency-less yadif plugin
2696  --disable-directsound        disable DirectSound: directsoundsrc
2697  --disable-wasapi             disable WASAPI plug-in: wasapi
2698  --disable-direct3d           disable Direct3D plug-in: direct3dsink
2699  --disable-winscreencap       disable winscreencap plug-in: winscreencap
2700  --disable-winks              disable Winks plug-in: winks
2701  --disable-android_media      disable Android Media: androidmedia
2702  --disable-apple_media        disable Apple video: applemedia
2703  --disable-bluez              disable Bluez: bluez
2704  --disable-avc                disable AVC Video Services: avcsrc
2705  --disable-shm                disable POSIX shared memory source and sink: shm
2706  --disable-ipcpipeline        disable Unix sockets: ipcpipeline
2707  --disable-opensles           disable OpenSL ES: opensl
2708  --disable-uvch264            disable UVC H264: uvch264
2709  --disable-cuda               disable NVIDIA CUDA API
2710  --disable-nvdec              disable nvdec: nvdec
2711  --disable-nvenc              disable NVIDIA Encode API: nvenc
2712  --disable-tinyalsa           disable tinyalsa: tinyalsa
2713  --disable-msdk               disable Intel MediaSDK: msdk
2714  --disable-assrender          disable ASS/SSA renderer: assrender
2715  --disable-aom                disable AV1 encoder/decoder: aom
2716  --disable-voamrwbenc         disable vo-amrwbenc library: vo-amrwbenc
2717  --disable-voaacenc           disable vo-aacenc library: vo-aacenc
2718  --disable-bs2b               disable bs2b: bs2b
2719  --disable-bz2                disable bz2 library: bz2
2720  --disable-chromaprint        disable chromaprint: chromaprint
2721  --disable-curl               disable Curl plugin: curl
2722  --disable-dash               disable DASH plug-in: dash
2723  --disable-dc1394             disable libdc1394: dc1394
2724  --disable-decklink           disable decklink: decklink
2725  --disable-directfb           disable directfb: dfbvideosink
2726  --disable-wayland            disable wayland sink: wayland
2727  --disable-webp               disable WebP: webp
2728  --disable-dts                disable dts library: dtsdec
2729  --disable-resindvd           disable resindvd plugin: resindvd
2730  --disable-faac               disable AAC encoder plug-in: faac
2731  --disable-faad               disable FAAD2 AAC decoder plug-in: faad
2732  --disable-fbdev              disable linux framebuffer: fbdevsink
2733  --disable-fdk_aac            disable fdkaac plugin: fdkaac
2734  --disable-flite              disable Flite plugin: flite
2735  --disable-gsm                disable GSM library: gsmenc gsmdec
2736  --disable-fluidsynth         disable fluidsynth: fluidsynth
2737  --disable-kate               disable Kate: kate
2738  --disable-kms                disable drm/kms libraries: kms
2739  --disable-ladspa             disable ladspa: ladspa
2740  --disable-lcms2              disable LCMS colormanagement plugin: lcms2
2741  --disable-lv2                disable lv2: lv2
2742  --disable-libde265           disable libde265 HEVC/H.265 decoder: libde265
2743  --disable-libmms             disable mms protocol library: libmms
2744  --disable-srt                disable srt library: srt
2745  --disable-srtp               disable srtp library: srtp
2746  --disable-dtls               disable DTLS plugin: dtls
2747  --disable-ttml               disable TTML plugin: ttml
2748  --disable-modplug            disable modplug: modplug
2749  --disable-mpeg2enc           disable mpeg2enc: mpeg2enc
2750  --disable-mplex              disable mplex: mplex
2751  --disable-musepack           disable musepackdec: musepack
2752  --disable-neon               disable neon http client plugins: neonhttpsrc
2753  --disable-ofa                disable ofa plugins: ofa
2754  --disable-openal             disable OpenAL plugin: openal
2755  --disable-opencv             disable opencv plugins: opencv
2756  --disable-openexr            disable openexr library: openexr
2757  --disable-openh264           disable openh264 library: openh264
2758  --disable-openjpeg           disable openjpeg library: openjpeg
2759  --disable-openmpt            disable openmpt: openmpt
2760  --disable-openni2            disable openni2 library: openni2
2761  --disable-opus               disable opus: opus
2762  --disable-pango              disable Pango font rendering: pango
2763  --disable-rsvg               disable rsvg decoder: rsvg
2764  --disable-gl                 disable gl elements: gl
2765  --disable-vulkan             disable Vulkan elements: vulkan
2766  --disable-teletextdec        disable Teletext decoder: teletextdec
2767  --disable-wildmidi           disable wildmidi midi soft synth plugin: wildmidi
2768  --disable-smoothstreaming    disable Smooth Streaming plug-in: smoothstreaming
2769  --disable-sndfile            disable sndfile plug-in: sfdec sfenc
2770  --disable-soundtouch         disable soundtouch plug-in: soundtouch
2771  --disable-gme                disable gme decoder: gme
2772  --disable-dvb                disable DVB Source: dvb
2773  --disable-vdpau              disable VDPAU: vdpau
2774  --disable-sbc                disable SBC bluetooth audio codec: sbc
2775  --disable-zbar               disable ZBar barcode detector: zbar
2776  --disable-rtmp               disable rtmp library: rtmp
2777  --disable-spandsp            disable Spandsp: spandsp
2778  --disable-hls                disable http live streaming plugin: hls
2779  --disable-x265               disable x265 plug-in: x265
2780  --disable-webrtcdsp          disable WebRTC Audio Processing: webrtcdsp
2781  --disable-webrtc             disable WebRTC: webrtc
2782  --disable-wpe                disable WPE plug-in: wpe
2783  --disable-sctp               disable sctp plug-in: sctp
2784
2785Optional Packages:
2786  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2787  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2788  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2789                          both]
2790  --with-aix-soname=aix|svr4|both
2791                          shared library versioning (aka "SONAME") variant to
2792                          provide on AIX, [default=aix].
2793  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2794  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2795                          compiler's sysroot if not specified).
2796  --with-autoconf         use a different autoconf for regeneration of
2797                          Makefiles
2798  --with-autoheader       use a different autoheader for regeneration of
2799                          Makefiles
2800  --with-automake         use a different automake for regeneration of
2801                          Makefiles
2802  --with-aclocal          use a different aclocal for regeneration of
2803                          Makefiles
2804  --with-gnu-ld           assume the C compiler uses GNU ld default=no
2805  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2806  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2807  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2808  --without-libintl-prefix     don't search for libintl in includedir and libdir
2809  --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
2810  --with-package-name     specify package name to use in plugins
2811  --with-package-origin   specify package origin URL to use in plugins
2812  --with-plugins          comma-separated list of dependencyless plug-ins to
2813                          compile
2814  --with-html-dir=PATH    path to installed docs
2815  --with-gtk=3.0|2.0      which gtk+ version to compile against (default: 2.0)
2816  --with-player-tests     Enable GstPlayer tests that need network access
2817                          (default: no)
2818  --with-default-audiosink
2819                          specify default audio sink
2820  --with-default-audiosrc specify default audio source
2821  --with-default-videosink
2822                          specify default video sink
2823  --with-default-videosrc specify default video source
2824  --with-default-visualizer
2825                          specify default visualizer
2826  --with-cuda-prefix      Use the provided prefix for detecting the cuda
2827                          installation
2828  --with-msdk-prefix      Use the provided prefix for detecting the Intel
2829                          MediaSDK
2830  --with-hls-crypto=auto|nettle|libgcrypt|openssl
2831                          which cryptographic library version to compile
2832                          against for hls (default: auto)
2833  --with-libgcrypt-prefix=PFX
2834                          prefix where LIBGCRYPT is installed (optional)
2835
2836Some influential environment variables:
2837  CC          C compiler command
2838  CFLAGS      C compiler flags
2839  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2840              nonstandard directory <lib dir>
2841  LIBS        libraries to pass to the linker, e.g. -l<library>
2842  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2843              you have headers in a nonstandard directory <include dir>
2844  LT_SYS_LIBRARY_PATH
2845              User-defined run-time library search path.
2846  CPP         C preprocessor
2847  PKG_CONFIG  path to pkg-config utility
2848  VALGRIND_CFLAGS
2849              C compiler flags for VALGRIND, overriding pkg-config
2850  VALGRIND_LIBS
2851              linker flags for VALGRIND, overriding pkg-config
2852  CXX         C++ compiler command
2853  CXXFLAGS    C++ compiler flags
2854  CXXCPP      C++ preprocessor
2855  OBJC        Objective C compiler command
2856  OBJCFLAGS   Objective C compiler flags
2857  GTKDOC_DEPS_CFLAGS
2858              C compiler flags for GTKDOC_DEPS, overriding pkg-config
2859  GTKDOC_DEPS_LIBS
2860              linker flags for GTKDOC_DEPS, overriding pkg-config
2861  PYTHON      the Python interpreter
2862  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
2863  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
2864  GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
2865  GIO_LIBS    linker flags for GIO, overriding pkg-config
2866  GMODULE_NO_EXPORT_CFLAGS
2867              C compiler flags for GMODULE_NO_EXPORT, overriding pkg-config
2868  GMODULE_NO_EXPORT_LIBS
2869              linker flags for GMODULE_NO_EXPORT, overriding pkg-config
2870  GST_CFLAGS  C compiler flags for GST, overriding pkg-config
2871  GST_LIBS    linker flags for GST, overriding pkg-config
2872  GST_BASE_CFLAGS
2873              C compiler flags for GST_BASE, overriding pkg-config
2874  GST_BASE_LIBS
2875              linker flags for GST_BASE, overriding pkg-config
2876  GST_CHECK_CFLAGS
2877              C compiler flags for GST_CHECK, overriding pkg-config
2878  GST_CHECK_LIBS
2879              linker flags for GST_CHECK, overriding pkg-config
2880  GST_CONTROLLER_CFLAGS
2881              C compiler flags for GST_CONTROLLER, overriding pkg-config
2882  GST_CONTROLLER_LIBS
2883              linker flags for GST_CONTROLLER, overriding pkg-config
2884  GST_NET_CFLAGS
2885              C compiler flags for GST_NET, overriding pkg-config
2886  GST_NET_LIBS
2887              linker flags for GST_NET, overriding pkg-config
2888  GST_VIDEO_CFLAGS
2889              C compiler flags for GST_VIDEO, overriding pkg-config
2890  GST_VIDEO_LIBS
2891              linker flags for GST_VIDEO, overriding pkg-config
2892  GST_AUDIO_CFLAGS
2893              C compiler flags for GST_AUDIO, overriding pkg-config
2894  GST_AUDIO_LIBS
2895              linker flags for GST_AUDIO, overriding pkg-config
2896  GST_PBUTILS_CFLAGS
2897              C compiler flags for GST_PBUTILS, overriding pkg-config
2898  GST_PBUTILS_LIBS
2899              linker flags for GST_PBUTILS, overriding pkg-config
2900  GST_GL_CFLAGS
2901              C compiler flags for GST_GL, overriding pkg-config
2902  GST_GL_LIBS linker flags for GST_GL, overriding pkg-config
2903  GST_SDP_CFLAGS
2904              C compiler flags for GST_SDP, overriding pkg-config
2905  GST_SDP_LIBS
2906              linker flags for GST_SDP, overriding pkg-config
2907  GST_PLUGINS_BASE_CFLAGS
2908              C compiler flags for GST_PLUGINS_BASE, overriding pkg-config
2909  GST_PLUGINS_BASE_LIBS
2910              linker flags for GST_PLUGINS_BASE, overriding pkg-config
2911  GST_PLUGINS_GOOD_CFLAGS
2912              C compiler flags for GST_PLUGINS_GOOD, overriding pkg-config
2913  GST_PLUGINS_GOOD_LIBS
2914              linker flags for GST_PLUGINS_GOOD, overriding pkg-config
2915  GST_PLUGINS_UGLY_CFLAGS
2916              C compiler flags for GST_PLUGINS_UGLY, overriding pkg-config
2917  GST_PLUGINS_UGLY_LIBS
2918              linker flags for GST_PLUGINS_UGLY, overriding pkg-config
2919  GST_PLUGINS_LIBAV_CFLAGS
2920              C compiler flags for GST_PLUGINS_LIBAV, overriding pkg-config
2921  GST_PLUGINS_LIBAV_LIBS
2922              linker flags for GST_PLUGINS_LIBAV, overriding pkg-config
2923  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
2924  GTK_LIBS    linker flags for GTK, overriding pkg-config
2925  GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config
2926  GTK3_LIBS   linker flags for GTK3, overriding pkg-config
2927  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
2928  X11_LIBS    linker flags for X11, overriding pkg-config
2929  EXIF_CFLAGS C compiler flags for EXIF, overriding pkg-config
2930  EXIF_LIBS   linker flags for EXIF, overriding pkg-config
2931  DSSIM_CFLAGS
2932              C compiler flags for DSSIM, overriding pkg-config
2933  DSSIM_LIBS  linker flags for DSSIM, overriding pkg-config
2934  ORC_CFLAGS  C compiler flags for ORC, overriding pkg-config
2935  ORC_LIBS    linker flags for ORC, overriding pkg-config
2936  XCB_CFLAGS  C compiler flags for XCB, overriding pkg-config
2937  XCB_LIBS    linker flags for XCB, overriding pkg-config
2938  VULKAN_WAYLAND_CFLAGS
2939              C compiler flags for VULKAN_WAYLAND, overriding pkg-config
2940  VULKAN_WAYLAND_LIBS
2941              linker flags for VULKAN_WAYLAND, overriding pkg-config
2942  BLUEZ5_CFLAGS
2943              C compiler flags for BLUEZ5, overriding pkg-config
2944  BLUEZ5_LIBS linker flags for BLUEZ5, overriding pkg-config
2945  GIO_UNIX_CFLAGS
2946              C compiler flags for GIO_UNIX, overriding pkg-config
2947  GIO_UNIX_LIBS
2948              linker flags for GIO_UNIX, overriding pkg-config
2949  G_UDEV_CFLAGS
2950              C compiler flags for G_UDEV, overriding pkg-config
2951  G_UDEV_LIBS linker flags for G_UDEV, overriding pkg-config
2952  LIBUSB_CFLAGS
2953              C compiler flags for LIBUSB, overriding pkg-config
2954  LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
2955  CUDA_CFLAGS C compiler flags for CUDA, overriding pkg-config
2956  CUDA_LIBS   linker flags for CUDA, overriding pkg-config
2957  NVENCODE_LIBS
2958              linker flags for nvidia-encode
2959  GST_ALLOCATORS_CFLAGS
2960              C compiler flags for GST_ALLOCATORS, overriding pkg-config
2961  GST_ALLOCATORS_LIBS
2962              linker flags for GST_ALLOCATORS, overriding pkg-config
2963  LIBMFX_CFLAGS
2964              C compiler flags for LIBMFX, overriding pkg-config
2965  LIBMFX_LIBS linker flags for LIBMFX, overriding pkg-config
2966  LIBVA_DRM_CFLAGS
2967              C compiler flags for LIBVA_DRM, overriding pkg-config
2968  LIBVA_DRM_LIBS
2969              linker flags for LIBVA_DRM, overriding pkg-config
2970  ASSRENDER_CFLAGS
2971              C compiler flags for ASSRENDER, overriding pkg-config
2972  ASSRENDER_LIBS
2973              linker flags for ASSRENDER, overriding pkg-config
2974  AOM_CFLAGS  C compiler flags for AOM, overriding pkg-config
2975  AOM_LIBS    linker flags for AOM, overriding pkg-config
2976  VOAMRWBENC_CFLAGS
2977              C compiler flags for VOAMRWBENC, overriding pkg-config
2978  VOAMRWBENC_LIBS
2979              linker flags for VOAMRWBENC, overriding pkg-config
2980  VOAACENC_CFLAGS
2981              C compiler flags for VOAACENC, overriding pkg-config
2982  VOAACENC_LIBS
2983              linker flags for VOAACENC, overriding pkg-config
2984  BS2B_CFLAGS C compiler flags for BS2B, overriding pkg-config
2985  BS2B_LIBS   linker flags for BS2B, overriding pkg-config
2986  CHROMAPRINT_CFLAGS
2987              C compiler flags for CHROMAPRINT, overriding pkg-config
2988  CHROMAPRINT_LIBS
2989              linker flags for CHROMAPRINT, overriding pkg-config
2990  CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
2991  CURL_LIBS   linker flags for CURL, overriding pkg-config
2992  SSH2_CFLAGS C compiler flags for SSH2, overriding pkg-config
2993  SSH2_LIBS   linker flags for SSH2, overriding pkg-config
2994  LIBXML2_CFLAGS
2995              C compiler flags for LIBXML2, overriding pkg-config
2996  LIBXML2_LIBS
2997              linker flags for LIBXML2, overriding pkg-config
2998  LIBDC1394_CFLAGS
2999              C compiler flags for LIBDC1394, overriding pkg-config
3000  LIBDC1394_LIBS
3001              linker flags for LIBDC1394, overriding pkg-config
3002  DIRECTFB_CFLAGS
3003              C compiler flags for DIRECTFB, overriding pkg-config
3004  DIRECTFB_LIBS
3005              linker flags for DIRECTFB, overriding pkg-config
3006  WAYLAND_CFLAGS
3007              C compiler flags for WAYLAND, overriding pkg-config
3008  WAYLAND_LIBS
3009              linker flags for WAYLAND, overriding pkg-config
3010  WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
3011  WEBP_LIBS   linker flags for WEBP, overriding pkg-config
3012  DVDNAV_CFLAGS
3013              C compiler flags for DVDNAV, overriding pkg-config
3014  DVDNAV_LIBS linker flags for DVDNAV, overriding pkg-config
3015  FDK_AAC_CFLAGS
3016              C compiler flags for FDK_AAC, overriding pkg-config
3017  FDK_AAC_LIBS
3018              linker flags for FDK_AAC, overriding pkg-config
3019  FLUIDSYNTH_CFLAGS
3020              C compiler flags for FLUIDSYNTH, overriding pkg-config
3021  FLUIDSYNTH_LIBS
3022              linker flags for FLUIDSYNTH, overriding pkg-config
3023  KATE_CFLAGS C compiler flags for KATE, overriding pkg-config
3024  KATE_LIBS   linker flags for KATE, overriding pkg-config
3025  TIGER_CFLAGS
3026              C compiler flags for TIGER, overriding pkg-config
3027  TIGER_LIBS  linker flags for TIGER, overriding pkg-config
3028  KMS_DRM_CFLAGS
3029              C compiler flags for KMS_DRM, overriding pkg-config
3030  KMS_DRM_LIBS
3031              linker flags for KMS_DRM, overriding pkg-config
3032  LRDF_CFLAGS C compiler flags for LRDF, overriding pkg-config
3033  LRDF_LIBS   linker flags for LRDF, overriding pkg-config
3034  LCMS2_CFLAGS
3035              C compiler flags for LCMS2, overriding pkg-config
3036  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
3037  LILV_CFLAGS C compiler flags for LILV, overriding pkg-config
3038  LILV_LIBS   linker flags for LILV, overriding pkg-config
3039  LIBDE265_CFLAGS
3040              C compiler flags for LIBDE265, overriding pkg-config
3041  LIBDE265_LIBS
3042              linker flags for LIBDE265, overriding pkg-config
3043  LIBMMS_CFLAGS
3044              C compiler flags for LIBMMS, overriding pkg-config
3045  LIBMMS_LIBS linker flags for LIBMMS, overriding pkg-config
3046  SRT_CFLAGS  C compiler flags for SRT, overriding pkg-config
3047  SRT_LIBS    linker flags for SRT, overriding pkg-config
3048  SRTP_CFLAGS C compiler flags for SRTP, overriding pkg-config
3049  SRTP_LIBS   linker flags for SRTP, overriding pkg-config
3050  DTLS_CFLAGS C compiler flags for DTLS, overriding pkg-config
3051  DTLS_LIBS   linker flags for DTLS, overriding pkg-config
3052  TTML_CFLAGS C compiler flags for TTML, overriding pkg-config
3053  TTML_LIBS   linker flags for TTML, overriding pkg-config
3054  MODPLUG_CFLAGS
3055              C compiler flags for MODPLUG, overriding pkg-config
3056  MODPLUG_LIBS
3057              linker flags for MODPLUG, overriding pkg-config
3058  MJPEG_CFLAGS
3059              C compiler flags for MJPEG, overriding pkg-config
3060  MJPEG_LIBS  linker flags for MJPEG, overriding pkg-config
3061  MPEG2ENC_CFLAGS
3062              C compiler flags for MPEG2ENC, overriding pkg-config
3063  MPEG2ENC_LIBS
3064              linker flags for MPEG2ENC, overriding pkg-config
3065  MPLEX_CFLAGS
3066              C compiler flags for MPLEX, overriding pkg-config
3067  MPLEX_LIBS  linker flags for MPLEX, overriding pkg-config
3068  NEON_CFLAGS C compiler flags for NEON, overriding pkg-config
3069  NEON_LIBS   linker flags for NEON, overriding pkg-config
3070  OFA_CFLAGS  C compiler flags for OFA, overriding pkg-config
3071  OFA_LIBS    linker flags for OFA, overriding pkg-config
3072  OPENAL_CFLAGS
3073              C compiler flags for OPENAL, overriding pkg-config
3074  OPENAL_LIBS linker flags for OPENAL, overriding pkg-config
3075  OPENCV_CFLAGS
3076              C compiler flags for OPENCV, overriding pkg-config
3077  OPENCV_LIBS linker flags for OPENCV, overriding pkg-config
3078  OPENEXR_CFLAGS
3079              C compiler flags for OPENEXR, overriding pkg-config
3080  OPENEXR_LIBS
3081              linker flags for OPENEXR, overriding pkg-config
3082  OPENEXR240_CFLAGS
3083              C compiler flags for OPENEXR240, overriding pkg-config
3084  OPENEXR240_LIBS
3085              linker flags for OPENEXR240, overriding pkg-config
3086  OPENH264_CFLAGS
3087              C compiler flags for OPENH264, overriding pkg-config
3088  OPENH264_LIBS
3089              linker flags for OPENH264, overriding pkg-config
3090  OPENJPEG_CFLAGS
3091              C compiler flags for OPENJPEG, overriding pkg-config
3092  OPENJPEG_LIBS
3093              linker flags for OPENJPEG, overriding pkg-config
3094  OPENMPT_CFLAGS
3095              C compiler flags for OPENMPT, overriding pkg-config
3096  OPENMPT_LIBS
3097              linker flags for OPENMPT, overriding pkg-config
3098  OPENNI2_CFLAGS
3099              C compiler flags for OPENNI2, overriding pkg-config
3100  OPENNI2_LIBS
3101              linker flags for OPENNI2, overriding pkg-config
3102  OPUS_CFLAGS C compiler flags for OPUS, overriding pkg-config
3103  OPUS_LIBS   linker flags for OPUS, overriding pkg-config
3104  PANGO_CFLAGS
3105              C compiler flags for PANGO, overriding pkg-config
3106  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
3107  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
3108  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
3109  TELETEXTDEC_CFLAGS
3110              C compiler flags for TELETEXTDEC, overriding pkg-config
3111  TELETEXTDEC_LIBS
3112              linker flags for TELETEXTDEC, overriding pkg-config
3113  SNDFILE_CFLAGS
3114              C compiler flags for SNDFILE, overriding pkg-config
3115  SNDFILE_LIBS
3116              linker flags for SNDFILE, overriding pkg-config
3117  SOUNDTOUCH_CFLAGS
3118              C compiler flags for SOUNDTOUCH, overriding pkg-config
3119  SOUNDTOUCH_LIBS
3120              linker flags for SOUNDTOUCH, overriding pkg-config
3121  VDPAU_CFLAGS
3122              C compiler flags for VDPAU, overriding pkg-config
3123  VDPAU_LIBS  linker flags for VDPAU, overriding pkg-config
3124  SBC_CFLAGS  C compiler flags for SBC, overriding pkg-config
3125  SBC_LIBS    linker flags for SBC, overriding pkg-config
3126  ZBAR_CFLAGS C compiler flags for ZBAR, overriding pkg-config
3127  ZBAR_LIBS   linker flags for ZBAR, overriding pkg-config
3128  RTMP_CFLAGS C compiler flags for RTMP, overriding pkg-config
3129  RTMP_LIBS   linker flags for RTMP, overriding pkg-config
3130  SPANDSP_CFLAGS
3131              C compiler flags for SPANDSP, overriding pkg-config
3132  SPANDSP_LIBS
3133              linker flags for SPANDSP, overriding pkg-config
3134  NETTLE_CFLAGS
3135              C compiler flags for NETTLE, overriding pkg-config
3136  NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
3137  OPENSSL_CFLAGS
3138              C compiler flags for OPENSSL, overriding pkg-config
3139  OPENSSL_LIBS
3140              linker flags for OPENSSL, overriding pkg-config
3141  X265_CFLAGS C compiler flags for X265, overriding pkg-config
3142  X265_LIBS   linker flags for X265, overriding pkg-config
3143  WEBRTCDSP_CFLAGS
3144              C compiler flags for WEBRTCDSP, overriding pkg-config
3145  WEBRTCDSP_LIBS
3146              linker flags for WEBRTCDSP, overriding pkg-config
3147  GNUSTL_CFLAGS
3148              C compiler flags for GNUSTL, overriding pkg-config
3149  GNUSTL_LIBS linker flags for GNUSTL, overriding pkg-config
3150  NICE_CFLAGS C compiler flags for NICE, overriding pkg-config
3151  NICE_LIBS   linker flags for NICE, overriding pkg-config
3152  WPE_CFLAGS  C compiler flags for WPE, overriding pkg-config
3153  WPE_LIBS    linker flags for WPE, overriding pkg-config
3154
3155Use these variables to override the choices made by `configure' or to help
3156it to find libraries and programs with nonstandard names/locations.
3157
3158Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
3159_ACEOF
3160ac_status=$?
3161fi
3162
3163if test "$ac_init_help" = "recursive"; then
3164  # If there are subdirs, report their specific --help.
3165  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
3166    test -d "$ac_dir" ||
3167      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
3168      continue
3169    ac_builddir=.
3170
3171case "$ac_dir" in
3172.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3173*)
3174  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3175  # A ".." for each directory in $ac_dir_suffix.
3176  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3177  case $ac_top_builddir_sub in
3178  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3179  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3180  esac ;;
3181esac
3182ac_abs_top_builddir=$ac_pwd
3183ac_abs_builddir=$ac_pwd$ac_dir_suffix
3184# for backward compatibility:
3185ac_top_builddir=$ac_top_build_prefix
3186
3187case $srcdir in
3188  .)  # We are building in place.
3189    ac_srcdir=.
3190    ac_top_srcdir=$ac_top_builddir_sub
3191    ac_abs_top_srcdir=$ac_pwd ;;
3192  [\\/]* | ?:[\\/]* )  # Absolute name.
3193    ac_srcdir=$srcdir$ac_dir_suffix;
3194    ac_top_srcdir=$srcdir
3195    ac_abs_top_srcdir=$srcdir ;;
3196  *) # Relative name.
3197    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3198    ac_top_srcdir=$ac_top_build_prefix$srcdir
3199    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3200esac
3201ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3202
3203    cd "$ac_dir" || { ac_status=$?; continue; }
3204    # Check for guested configure.
3205    if test -f "$ac_srcdir/configure.gnu"; then
3206      echo &&
3207      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
3208    elif test -f "$ac_srcdir/configure"; then
3209      echo &&
3210      $SHELL "$ac_srcdir/configure" --help=recursive
3211    else
3212      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
3213    fi || ac_status=$?
3214    cd "$ac_pwd" || { ac_status=$?; break; }
3215  done
3216fi
3217
3218test -n "$ac_init_help" && exit $ac_status
3219if $ac_init_version; then
3220  cat <<\_ACEOF
3221GStreamer Bad Plug-ins configure 1.16.2
3222generated by GNU Autoconf 2.69
3223
3224Copyright (C) 2012 Free Software Foundation, Inc.
3225This configure script is free software; the Free Software Foundation
3226gives unlimited permission to copy, distribute and modify it.
3227_ACEOF
3228  exit
3229fi
3230
3231## ------------------------ ##
3232## Autoconf initialization. ##
3233## ------------------------ ##
3234
3235# ac_fn_c_try_compile LINENO
3236# --------------------------
3237# Try to compile conftest.$ac_ext, and return whether this succeeded.
3238ac_fn_c_try_compile ()
3239{
3240  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3241  rm -f conftest.$ac_objext
3242  if { { ac_try="$ac_compile"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
3249  (eval "$ac_compile") 2>conftest.err
3250  ac_status=$?
3251  if test -s conftest.err; then
3252    grep -v '^ *+' conftest.err >conftest.er1
3253    cat conftest.er1 >&5
3254    mv -f conftest.er1 conftest.err
3255  fi
3256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257  test $ac_status = 0; } && {
3258	 test -z "$ac_c_werror_flag" ||
3259	 test ! -s conftest.err
3260       } && test -s conftest.$ac_objext; then :
3261  ac_retval=0
3262else
3263  $as_echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266	ac_retval=1
3267fi
3268  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3269  as_fn_set_status $ac_retval
3270
3271} # ac_fn_c_try_compile
3272
3273# ac_fn_c_try_link LINENO
3274# -----------------------
3275# Try to link conftest.$ac_ext, and return whether this succeeded.
3276ac_fn_c_try_link ()
3277{
3278  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3279  rm -f conftest.$ac_objext conftest$ac_exeext
3280  if { { ac_try="$ac_link"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link") 2>conftest.err
3288  ac_status=$?
3289  if test -s conftest.err; then
3290    grep -v '^ *+' conftest.err >conftest.er1
3291    cat conftest.er1 >&5
3292    mv -f conftest.er1 conftest.err
3293  fi
3294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295  test $ac_status = 0; } && {
3296	 test -z "$ac_c_werror_flag" ||
3297	 test ! -s conftest.err
3298       } && test -s conftest$ac_exeext && {
3299	 test "$cross_compiling" = yes ||
3300	 test -x conftest$ac_exeext
3301       }; then :
3302  ac_retval=0
3303else
3304  $as_echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307	ac_retval=1
3308fi
3309  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3310  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3311  # interfere with the next link command; also delete a directory that is
3312  # left behind by Apple's compiler.  We do this before executing the actions.
3313  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3314  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3315  as_fn_set_status $ac_retval
3316
3317} # ac_fn_c_try_link
3318
3319# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3320# -------------------------------------------------------
3321# Tests whether HEADER exists and can be compiled using the include files in
3322# INCLUDES, setting the cache variable VAR accordingly.
3323ac_fn_c_check_header_compile ()
3324{
3325  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3327$as_echo_n "checking for $2... " >&6; }
3328if eval \${$3+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333$4
3334#include <$2>
3335_ACEOF
3336if ac_fn_c_try_compile "$LINENO"; then :
3337  eval "$3=yes"
3338else
3339  eval "$3=no"
3340fi
3341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342fi
3343eval ac_res=\$$3
3344	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3345$as_echo "$ac_res" >&6; }
3346  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3347
3348} # ac_fn_c_check_header_compile
3349
3350# ac_fn_c_try_cpp LINENO
3351# ----------------------
3352# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3353ac_fn_c_try_cpp ()
3354{
3355  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3356  if { { ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3364  ac_status=$?
3365  if test -s conftest.err; then
3366    grep -v '^ *+' conftest.err >conftest.er1
3367    cat conftest.er1 >&5
3368    mv -f conftest.er1 conftest.err
3369  fi
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; } > conftest.i && {
3372	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3373	 test ! -s conftest.err
3374       }; then :
3375  ac_retval=0
3376else
3377  $as_echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380    ac_retval=1
3381fi
3382  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3383  as_fn_set_status $ac_retval
3384
3385} # ac_fn_c_try_cpp
3386
3387# ac_fn_c_try_run LINENO
3388# ----------------------
3389# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3390# that executables *can* be run.
3391ac_fn_c_try_run ()
3392{
3393  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3394  if { { ac_try="$ac_link"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400$as_echo "$ac_try_echo"; } >&5
3401  (eval "$ac_link") 2>&5
3402  ac_status=$?
3403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3405  { { case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_try") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; }; then :
3415  ac_retval=0
3416else
3417  $as_echo "$as_me: program exited with status $ac_status" >&5
3418       $as_echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421       ac_retval=$ac_status
3422fi
3423  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3424  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3425  as_fn_set_status $ac_retval
3426
3427} # ac_fn_c_try_run
3428
3429# ac_fn_c_check_func LINENO FUNC VAR
3430# ----------------------------------
3431# Tests whether FUNC exists, setting the cache variable VAR accordingly
3432ac_fn_c_check_func ()
3433{
3434  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3436$as_echo_n "checking for $2... " >&6; }
3437if eval \${$3+:} false; then :
3438  $as_echo_n "(cached) " >&6
3439else
3440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441/* end confdefs.h.  */
3442/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3443   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3444#define $2 innocuous_$2
3445
3446/* System header to define __stub macros and hopefully few prototypes,
3447    which can conflict with char $2 (); below.
3448    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449    <limits.h> exists even on freestanding compilers.  */
3450
3451#ifdef __STDC__
3452# include <limits.h>
3453#else
3454# include <assert.h>
3455#endif
3456
3457#undef $2
3458
3459/* Override any GCC internal prototype to avoid an error.
3460   Use char because int might match the return type of a GCC
3461   builtin and then its argument prototype would still apply.  */
3462#ifdef __cplusplus
3463extern "C"
3464#endif
3465char $2 ();
3466/* The GNU C library defines this for functions which it implements
3467    to always fail with ENOSYS.  Some functions are actually named
3468    something starting with __ and the normal name is an alias.  */
3469#if defined __stub_$2 || defined __stub___$2
3470choke me
3471#endif
3472
3473int
3474main ()
3475{
3476return $2 ();
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481if ac_fn_c_try_link "$LINENO"; then :
3482  eval "$3=yes"
3483else
3484  eval "$3=no"
3485fi
3486rm -f core conftest.err conftest.$ac_objext \
3487    conftest$ac_exeext conftest.$ac_ext
3488fi
3489eval ac_res=\$$3
3490	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3491$as_echo "$ac_res" >&6; }
3492  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3493
3494} # ac_fn_c_check_func
3495
3496# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3497# ---------------------------------------------
3498# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3499# accordingly.
3500ac_fn_c_check_decl ()
3501{
3502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3503  as_decl_name=`echo $2|sed 's/ *(.*//'`
3504  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3506$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3507if eval \${$3+:} false; then :
3508  $as_echo_n "(cached) " >&6
3509else
3510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511/* end confdefs.h.  */
3512$4
3513int
3514main ()
3515{
3516#ifndef $as_decl_name
3517#ifdef __cplusplus
3518  (void) $as_decl_use;
3519#else
3520  (void) $as_decl_name;
3521#endif
3522#endif
3523
3524  ;
3525  return 0;
3526}
3527_ACEOF
3528if ac_fn_c_try_compile "$LINENO"; then :
3529  eval "$3=yes"
3530else
3531  eval "$3=no"
3532fi
3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534fi
3535eval ac_res=\$$3
3536	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3537$as_echo "$ac_res" >&6; }
3538  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3539
3540} # ac_fn_c_check_decl
3541
3542# ac_fn_cxx_try_compile LINENO
3543# ----------------------------
3544# Try to compile conftest.$ac_ext, and return whether this succeeded.
3545ac_fn_cxx_try_compile ()
3546{
3547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3548  rm -f conftest.$ac_objext
3549  if { { ac_try="$ac_compile"
3550case "(($ac_try" in
3551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552  *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555$as_echo "$ac_try_echo"; } >&5
3556  (eval "$ac_compile") 2>conftest.err
3557  ac_status=$?
3558  if test -s conftest.err; then
3559    grep -v '^ *+' conftest.err >conftest.er1
3560    cat conftest.er1 >&5
3561    mv -f conftest.er1 conftest.err
3562  fi
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; } && {
3565	 test -z "$ac_cxx_werror_flag" ||
3566	 test ! -s conftest.err
3567       } && test -s conftest.$ac_objext; then :
3568  ac_retval=0
3569else
3570  $as_echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573	ac_retval=1
3574fi
3575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3576  as_fn_set_status $ac_retval
3577
3578} # ac_fn_cxx_try_compile
3579
3580# ac_fn_cxx_try_cpp LINENO
3581# ------------------------
3582# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3583ac_fn_cxx_try_cpp ()
3584{
3585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3586  if { { ac_try="$ac_cpp conftest.$ac_ext"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592$as_echo "$ac_try_echo"; } >&5
3593  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3594  ac_status=$?
3595  if test -s conftest.err; then
3596    grep -v '^ *+' conftest.err >conftest.er1
3597    cat conftest.er1 >&5
3598    mv -f conftest.er1 conftest.err
3599  fi
3600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601  test $ac_status = 0; } > conftest.i && {
3602	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3603	 test ! -s conftest.err
3604       }; then :
3605  ac_retval=0
3606else
3607  $as_echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610    ac_retval=1
3611fi
3612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3613  as_fn_set_status $ac_retval
3614
3615} # ac_fn_cxx_try_cpp
3616
3617# ac_fn_cxx_try_link LINENO
3618# -------------------------
3619# Try to link conftest.$ac_ext, and return whether this succeeded.
3620ac_fn_cxx_try_link ()
3621{
3622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3623  rm -f conftest.$ac_objext conftest$ac_exeext
3624  if { { ac_try="$ac_link"
3625case "(($ac_try" in
3626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627  *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631  (eval "$ac_link") 2>conftest.err
3632  ac_status=$?
3633  if test -s conftest.err; then
3634    grep -v '^ *+' conftest.err >conftest.er1
3635    cat conftest.er1 >&5
3636    mv -f conftest.er1 conftest.err
3637  fi
3638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639  test $ac_status = 0; } && {
3640	 test -z "$ac_cxx_werror_flag" ||
3641	 test ! -s conftest.err
3642       } && test -s conftest$ac_exeext && {
3643	 test "$cross_compiling" = yes ||
3644	 test -x conftest$ac_exeext
3645       }; then :
3646  ac_retval=0
3647else
3648  $as_echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651	ac_retval=1
3652fi
3653  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3654  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3655  # interfere with the next link command; also delete a directory that is
3656  # left behind by Apple's compiler.  We do this before executing the actions.
3657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3659  as_fn_set_status $ac_retval
3660
3661} # ac_fn_cxx_try_link
3662
3663# ac_fn_objc_try_compile LINENO
3664# -----------------------------
3665# Try to compile conftest.$ac_ext, and return whether this succeeded.
3666ac_fn_objc_try_compile ()
3667{
3668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3669  rm -f conftest.$ac_objext
3670  if { { ac_try="$ac_compile"
3671case "(($ac_try" in
3672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673  *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677  (eval "$ac_compile") 2>conftest.err
3678  ac_status=$?
3679  if test -s conftest.err; then
3680    grep -v '^ *+' conftest.err >conftest.er1
3681    cat conftest.er1 >&5
3682    mv -f conftest.er1 conftest.err
3683  fi
3684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685  test $ac_status = 0; } && {
3686	 test -z "$ac_objc_werror_flag" ||
3687	 test ! -s conftest.err
3688       } && test -s conftest.$ac_objext; then :
3689  ac_retval=0
3690else
3691  $as_echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694	ac_retval=1
3695fi
3696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3697  as_fn_set_status $ac_retval
3698
3699} # ac_fn_objc_try_compile
3700
3701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3702# -------------------------------------------------------
3703# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3704# the include files in INCLUDES and setting the cache variable VAR
3705# accordingly.
3706ac_fn_c_check_header_mongrel ()
3707{
3708  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3709  if eval \${$3+:} false; then :
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3711$as_echo_n "checking for $2... " >&6; }
3712if eval \${$3+:} false; then :
3713  $as_echo_n "(cached) " >&6
3714fi
3715eval ac_res=\$$3
3716	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3717$as_echo "$ac_res" >&6; }
3718else
3719  # Is the header compilable?
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3721$as_echo_n "checking $2 usability... " >&6; }
3722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724$4
3725#include <$2>
3726_ACEOF
3727if ac_fn_c_try_compile "$LINENO"; then :
3728  ac_header_compiler=yes
3729else
3730  ac_header_compiler=no
3731fi
3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3734$as_echo "$ac_header_compiler" >&6; }
3735
3736# Is the header present?
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3738$as_echo_n "checking $2 presence... " >&6; }
3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741#include <$2>
3742_ACEOF
3743if ac_fn_c_try_cpp "$LINENO"; then :
3744  ac_header_preproc=yes
3745else
3746  ac_header_preproc=no
3747fi
3748rm -f conftest.err conftest.i conftest.$ac_ext
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3750$as_echo "$ac_header_preproc" >&6; }
3751
3752# So?  What about this header?
3753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3754  yes:no: )
3755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3757    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3759    ;;
3760  no:yes:* )
3761    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3763    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3764$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3765    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3768$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3771( $as_echo "## ------------------------------------------------------------------------ ##
3772## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ##
3773## ------------------------------------------------------------------------ ##"
3774     ) | sed "s/^/$as_me: WARNING:     /" >&2
3775    ;;
3776esac
3777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3778$as_echo_n "checking for $2... " >&6; }
3779if eval \${$3+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  eval "$3=\$ac_header_compiler"
3783fi
3784eval ac_res=\$$3
3785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3786$as_echo "$ac_res" >&6; }
3787fi
3788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3789
3790} # ac_fn_c_check_header_mongrel
3791
3792# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3793# -------------------------------------------
3794# Tests whether TYPE exists after having included INCLUDES, setting cache
3795# variable VAR accordingly.
3796ac_fn_c_check_type ()
3797{
3798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3800$as_echo_n "checking for $2... " >&6; }
3801if eval \${$3+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  eval "$3=no"
3805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806/* end confdefs.h.  */
3807$4
3808int
3809main ()
3810{
3811if (sizeof ($2))
3812	 return 0;
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817if ac_fn_c_try_compile "$LINENO"; then :
3818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819/* end confdefs.h.  */
3820$4
3821int
3822main ()
3823{
3824if (sizeof (($2)))
3825	    return 0;
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830if ac_fn_c_try_compile "$LINENO"; then :
3831
3832else
3833  eval "$3=yes"
3834fi
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836fi
3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838fi
3839eval ac_res=\$$3
3840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3841$as_echo "$ac_res" >&6; }
3842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3843
3844} # ac_fn_c_check_type
3845
3846# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3847# --------------------------------------------
3848# Tries to find the compile-time value of EXPR in a program that includes
3849# INCLUDES, setting VAR accordingly. Returns whether the value could be
3850# computed
3851ac_fn_c_compute_int ()
3852{
3853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3854  if test "$cross_compiling" = yes; then
3855    # Depending upon the size, compute the lo and hi bounds.
3856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858$4
3859int
3860main ()
3861{
3862static int test_array [1 - 2 * !(($2) >= 0)];
3863test_array [0] = 0;
3864return test_array [0];
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870if ac_fn_c_try_compile "$LINENO"; then :
3871  ac_lo=0 ac_mid=0
3872  while :; do
3873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875$4
3876int
3877main ()
3878{
3879static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3880test_array [0] = 0;
3881return test_array [0];
3882
3883  ;
3884  return 0;
3885}
3886_ACEOF
3887if ac_fn_c_try_compile "$LINENO"; then :
3888  ac_hi=$ac_mid; break
3889else
3890  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3891			if test $ac_lo -le $ac_mid; then
3892			  ac_lo= ac_hi=
3893			  break
3894			fi
3895			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898  done
3899else
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902$4
3903int
3904main ()
3905{
3906static int test_array [1 - 2 * !(($2) < 0)];
3907test_array [0] = 0;
3908return test_array [0];
3909
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914if ac_fn_c_try_compile "$LINENO"; then :
3915  ac_hi=-1 ac_mid=-1
3916  while :; do
3917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h.  */
3919$4
3920int
3921main ()
3922{
3923static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3924test_array [0] = 0;
3925return test_array [0];
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_lo=$ac_mid; break
3933else
3934  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3935			if test $ac_mid -le $ac_hi; then
3936			  ac_lo= ac_hi=
3937			  break
3938			fi
3939			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3940fi
3941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942  done
3943else
3944  ac_lo= ac_hi=
3945fi
3946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947fi
3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949# Binary search between lo and hi bounds.
3950while test "x$ac_lo" != "x$ac_hi"; do
3951  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h.  */
3954$4
3955int
3956main ()
3957{
3958static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3959test_array [0] = 0;
3960return test_array [0];
3961
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967  ac_hi=$ac_mid
3968else
3969  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3970fi
3971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972done
3973case $ac_lo in #((
3974?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3975'') ac_retval=1 ;;
3976esac
3977  else
3978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980$4
3981static long int longval () { return $2; }
3982static unsigned long int ulongval () { return $2; }
3983#include <stdio.h>
3984#include <stdlib.h>
3985int
3986main ()
3987{
3988
3989  FILE *f = fopen ("conftest.val", "w");
3990  if (! f)
3991    return 1;
3992  if (($2) < 0)
3993    {
3994      long int i = longval ();
3995      if (i != ($2))
3996	return 1;
3997      fprintf (f, "%ld", i);
3998    }
3999  else
4000    {
4001      unsigned long int i = ulongval ();
4002      if (i != ($2))
4003	return 1;
4004      fprintf (f, "%lu", i);
4005    }
4006  /* Do not output a trailing newline, as this causes \r\n confusion
4007     on some platforms.  */
4008  return ferror (f) || fclose (f) != 0;
4009
4010  ;
4011  return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_run "$LINENO"; then :
4015  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
4016else
4017  ac_retval=1
4018fi
4019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4020  conftest.$ac_objext conftest.beam conftest.$ac_ext
4021rm -f conftest.val
4022
4023  fi
4024  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4025  as_fn_set_status $ac_retval
4026
4027} # ac_fn_c_compute_int
4028
4029# ac_fn_c_check_header_preproc LINENO HEADER VAR
4030# ----------------------------------------------
4031# Tests whether HEADER is present, setting the cache variable VAR accordingly.
4032ac_fn_c_check_header_preproc ()
4033{
4034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
4036$as_echo_n "checking for $2... " >&6; }
4037if eval \${$3+:} false; then :
4038  $as_echo_n "(cached) " >&6
4039else
4040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#include <$2>
4043_ACEOF
4044if ac_fn_c_try_cpp "$LINENO"; then :
4045  eval "$3=yes"
4046else
4047  eval "$3=no"
4048fi
4049rm -f conftest.err conftest.i conftest.$ac_ext
4050fi
4051eval ac_res=\$$3
4052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4053$as_echo "$ac_res" >&6; }
4054  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4055
4056} # ac_fn_c_check_header_preproc
4057
4058# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
4059# ---------------------------------------------------------
4060# Tests whether HEADER exists, giving a warning if it cannot be compiled using
4061# the include files in INCLUDES and setting the cache variable VAR
4062# accordingly.
4063ac_fn_cxx_check_header_mongrel ()
4064{
4065  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4066  if eval \${$3+:} false; then :
4067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
4068$as_echo_n "checking for $2... " >&6; }
4069if eval \${$3+:} false; then :
4070  $as_echo_n "(cached) " >&6
4071fi
4072eval ac_res=\$$3
4073	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4074$as_echo "$ac_res" >&6; }
4075else
4076  # Is the header compilable?
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
4078$as_echo_n "checking $2 usability... " >&6; }
4079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h.  */
4081$4
4082#include <$2>
4083_ACEOF
4084if ac_fn_cxx_try_compile "$LINENO"; then :
4085  ac_header_compiler=yes
4086else
4087  ac_header_compiler=no
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
4091$as_echo "$ac_header_compiler" >&6; }
4092
4093# Is the header present?
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
4095$as_echo_n "checking $2 presence... " >&6; }
4096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098#include <$2>
4099_ACEOF
4100if ac_fn_cxx_try_cpp "$LINENO"; then :
4101  ac_header_preproc=yes
4102else
4103  ac_header_preproc=no
4104fi
4105rm -f conftest.err conftest.i conftest.$ac_ext
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
4107$as_echo "$ac_header_preproc" >&6; }
4108
4109# So?  What about this header?
4110case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
4111  yes:no: )
4112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
4113$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
4114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
4115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
4116    ;;
4117  no:yes:* )
4118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
4119$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
4120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
4121$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
4122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
4123$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
4124    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
4125$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
4126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
4127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
4128( $as_echo "## ------------------------------------------------------------------------ ##
4129## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ##
4130## ------------------------------------------------------------------------ ##"
4131     ) | sed "s/^/$as_me: WARNING:     /" >&2
4132    ;;
4133esac
4134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
4135$as_echo_n "checking for $2... " >&6; }
4136if eval \${$3+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  eval "$3=\$ac_header_compiler"
4140fi
4141eval ac_res=\$$3
4142	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4143$as_echo "$ac_res" >&6; }
4144fi
4145  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4146
4147} # ac_fn_cxx_check_header_mongrel
4148
4149# ac_fn_cxx_try_run LINENO
4150# ------------------------
4151# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
4152# that executables *can* be run.
4153ac_fn_cxx_try_run ()
4154{
4155  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4156  if { { ac_try="$ac_link"
4157case "(($ac_try" in
4158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159  *) ac_try_echo=$ac_try;;
4160esac
4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4162$as_echo "$ac_try_echo"; } >&5
4163  (eval "$ac_link") 2>&5
4164  ac_status=$?
4165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4166  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
4167  { { case "(($ac_try" in
4168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169  *) ac_try_echo=$ac_try;;
4170esac
4171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172$as_echo "$ac_try_echo"; } >&5
4173  (eval "$ac_try") 2>&5
4174  ac_status=$?
4175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176  test $ac_status = 0; }; }; then :
4177  ac_retval=0
4178else
4179  $as_echo "$as_me: program exited with status $ac_status" >&5
4180       $as_echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183       ac_retval=$ac_status
4184fi
4185  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
4186  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4187  as_fn_set_status $ac_retval
4188
4189} # ac_fn_cxx_try_run
4190cat >config.log <<_ACEOF
4191This file contains any messages produced by compilers while
4192running configure, to aid debugging if configure makes a mistake.
4193
4194It was created by GStreamer Bad Plug-ins $as_me 1.16.2, which was
4195generated by GNU Autoconf 2.69.  Invocation command line was
4196
4197  $ $0 $@
4198
4199_ACEOF
4200exec 5>>config.log
4201{
4202cat <<_ASUNAME
4203## --------- ##
4204## Platform. ##
4205## --------- ##
4206
4207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
4208uname -m = `(uname -m) 2>/dev/null || echo unknown`
4209uname -r = `(uname -r) 2>/dev/null || echo unknown`
4210uname -s = `(uname -s) 2>/dev/null || echo unknown`
4211uname -v = `(uname -v) 2>/dev/null || echo unknown`
4212
4213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
4214/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
4215
4216/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
4217/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
4218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
4219/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
4220/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
4221/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
4222/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
4223
4224_ASUNAME
4225
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229  IFS=$as_save_IFS
4230  test -z "$as_dir" && as_dir=.
4231    $as_echo "PATH: $as_dir"
4232  done
4233IFS=$as_save_IFS
4234
4235} >&5
4236
4237cat >&5 <<_ACEOF
4238
4239
4240## ----------- ##
4241## Core tests. ##
4242## ----------- ##
4243
4244_ACEOF
4245
4246
4247# Keep a trace of the command line.
4248# Strip out --no-create and --no-recursion so they do not pile up.
4249# Strip out --silent because we don't want to record it for future runs.
4250# Also quote any args containing shell meta-characters.
4251# Make two passes to allow for proper duplicate-argument suppression.
4252ac_configure_args=
4253ac_configure_args0=
4254ac_configure_args1=
4255ac_must_keep_next=false
4256for ac_pass in 1 2
4257do
4258  for ac_arg
4259  do
4260    case $ac_arg in
4261    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
4262    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4263    | -silent | --silent | --silen | --sile | --sil)
4264      continue ;;
4265    *\'*)
4266      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4267    esac
4268    case $ac_pass in
4269    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
4270    2)
4271      as_fn_append ac_configure_args1 " '$ac_arg'"
4272      if test $ac_must_keep_next = true; then
4273	ac_must_keep_next=false # Got value, back to normal.
4274      else
4275	case $ac_arg in
4276	  *=* | --config-cache | -C | -disable-* | --disable-* \
4277	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
4278	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
4279	  | -with-* | --with-* | -without-* | --without-* | --x)
4280	    case "$ac_configure_args0 " in
4281	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
4282	    esac
4283	    ;;
4284	  -* ) ac_must_keep_next=true ;;
4285	esac
4286      fi
4287      as_fn_append ac_configure_args " '$ac_arg'"
4288      ;;
4289    esac
4290  done
4291done
4292{ ac_configure_args0=; unset ac_configure_args0;}
4293{ ac_configure_args1=; unset ac_configure_args1;}
4294
4295# When interrupted or exit'd, cleanup temporary files, and complete
4296# config.log.  We remove comments because anyway the quotes in there
4297# would cause problems or look ugly.
4298# WARNING: Use '\'' to represent an apostrophe within the trap.
4299# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
4300trap 'exit_status=$?
4301  # Save into config.log some information that might help in debugging.
4302  {
4303    echo
4304
4305    $as_echo "## ---------------- ##
4306## Cache variables. ##
4307## ---------------- ##"
4308    echo
4309    # The following way of writing the cache mishandles newlines in values,
4310(
4311  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
4312    eval ac_val=\$$ac_var
4313    case $ac_val in #(
4314    *${as_nl}*)
4315      case $ac_var in #(
4316      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4317$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4318      esac
4319      case $ac_var in #(
4320      _ | IFS | as_nl) ;; #(
4321      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4322      *) { eval $ac_var=; unset $ac_var;} ;;
4323      esac ;;
4324    esac
4325  done
4326  (set) 2>&1 |
4327    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
4328    *${as_nl}ac_space=\ *)
4329      sed -n \
4330	"s/'\''/'\''\\\\'\'''\''/g;
4331	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
4332      ;; #(
4333    *)
4334      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4335      ;;
4336    esac |
4337    sort
4338)
4339    echo
4340
4341    $as_echo "## ----------------- ##
4342## Output variables. ##
4343## ----------------- ##"
4344    echo
4345    for ac_var in $ac_subst_vars
4346    do
4347      eval ac_val=\$$ac_var
4348      case $ac_val in
4349      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4350      esac
4351      $as_echo "$ac_var='\''$ac_val'\''"
4352    done | sort
4353    echo
4354
4355    if test -n "$ac_subst_files"; then
4356      $as_echo "## ------------------- ##
4357## File substitutions. ##
4358## ------------------- ##"
4359      echo
4360      for ac_var in $ac_subst_files
4361      do
4362	eval ac_val=\$$ac_var
4363	case $ac_val in
4364	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4365	esac
4366	$as_echo "$ac_var='\''$ac_val'\''"
4367      done | sort
4368      echo
4369    fi
4370
4371    if test -s confdefs.h; then
4372      $as_echo "## ----------- ##
4373## confdefs.h. ##
4374## ----------- ##"
4375      echo
4376      cat confdefs.h
4377      echo
4378    fi
4379    test "$ac_signal" != 0 &&
4380      $as_echo "$as_me: caught signal $ac_signal"
4381    $as_echo "$as_me: exit $exit_status"
4382  } >&5
4383  rm -f core *.core core.conftest.* &&
4384    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
4385    exit $exit_status
4386' 0
4387for ac_signal in 1 2 13 15; do
4388  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
4389done
4390ac_signal=0
4391
4392# confdefs.h avoids OS command line length limits that DEFS can exceed.
4393rm -f -r conftest* confdefs.h
4394
4395$as_echo "/* confdefs.h */" > confdefs.h
4396
4397# Predefined preprocessor variables.
4398
4399cat >>confdefs.h <<_ACEOF
4400#define PACKAGE_NAME "$PACKAGE_NAME"
4401_ACEOF
4402
4403cat >>confdefs.h <<_ACEOF
4404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
4405_ACEOF
4406
4407cat >>confdefs.h <<_ACEOF
4408#define PACKAGE_VERSION "$PACKAGE_VERSION"
4409_ACEOF
4410
4411cat >>confdefs.h <<_ACEOF
4412#define PACKAGE_STRING "$PACKAGE_STRING"
4413_ACEOF
4414
4415cat >>confdefs.h <<_ACEOF
4416#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4417_ACEOF
4418
4419cat >>confdefs.h <<_ACEOF
4420#define PACKAGE_URL "$PACKAGE_URL"
4421_ACEOF
4422
4423
4424# Let the site file select an alternate cache file if it wants to.
4425# Prefer an explicitly selected file to automatically selected ones.
4426ac_site_file1=NONE
4427ac_site_file2=NONE
4428if test -n "$CONFIG_SITE"; then
4429  # We do not want a PATH search for config.site.
4430  case $CONFIG_SITE in #((
4431    -*)  ac_site_file1=./$CONFIG_SITE;;
4432    */*) ac_site_file1=$CONFIG_SITE;;
4433    *)   ac_site_file1=./$CONFIG_SITE;;
4434  esac
4435elif test "x$prefix" != xNONE; then
4436  ac_site_file1=$prefix/share/config.site
4437  ac_site_file2=$prefix/etc/config.site
4438else
4439  ac_site_file1=$ac_default_prefix/share/config.site
4440  ac_site_file2=$ac_default_prefix/etc/config.site
4441fi
4442for ac_site_file in "$ac_site_file1" "$ac_site_file2"
4443do
4444  test "x$ac_site_file" = xNONE && continue
4445  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
4446    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
4447$as_echo "$as_me: loading site script $ac_site_file" >&6;}
4448    sed 's/^/| /' "$ac_site_file" >&5
4449    . "$ac_site_file" \
4450      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452as_fn_error $? "failed to load site script $ac_site_file
4453See \`config.log' for more details" "$LINENO" 5; }
4454  fi
4455done
4456
4457if test -r "$cache_file"; then
4458  # Some versions of bash will fail to source /dev/null (special files
4459  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
4460  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
4461    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
4462$as_echo "$as_me: loading cache $cache_file" >&6;}
4463    case $cache_file in
4464      [\\/]* | ?:[\\/]* ) . "$cache_file";;
4465      *)                      . "./$cache_file";;
4466    esac
4467  fi
4468else
4469  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
4470$as_echo "$as_me: creating cache $cache_file" >&6;}
4471  >$cache_file
4472fi
4473
4474gt_needs="$gt_needs "
4475as_fn_append ac_header_list " stdlib.h"
4476as_fn_append ac_header_list " unistd.h"
4477as_fn_append ac_header_list " sys/param.h"
4478# Check that the precious variables saved in the cache have kept the same
4479# value.
4480ac_cache_corrupted=false
4481for ac_var in $ac_precious_vars; do
4482  eval ac_old_set=\$ac_cv_env_${ac_var}_set
4483  eval ac_new_set=\$ac_env_${ac_var}_set
4484  eval ac_old_val=\$ac_cv_env_${ac_var}_value
4485  eval ac_new_val=\$ac_env_${ac_var}_value
4486  case $ac_old_set,$ac_new_set in
4487    set,)
4488      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4489$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4490      ac_cache_corrupted=: ;;
4491    ,set)
4492      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4493$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4494      ac_cache_corrupted=: ;;
4495    ,);;
4496    *)
4497      if test "x$ac_old_val" != "x$ac_new_val"; then
4498	# differences in whitespace do not lead to failure.
4499	ac_old_val_w=`echo x $ac_old_val`
4500	ac_new_val_w=`echo x $ac_new_val`
4501	if test "$ac_old_val_w" != "$ac_new_val_w"; then
4502	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4503$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4504	  ac_cache_corrupted=:
4505	else
4506	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4507$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4508	  eval $ac_var=\$ac_old_val
4509	fi
4510	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4511$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4512	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4513$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4514      fi;;
4515  esac
4516  # Pass precious variables to config.status.
4517  if test "$ac_new_set" = set; then
4518    case $ac_new_val in
4519    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4520    *) ac_arg=$ac_var=$ac_new_val ;;
4521    esac
4522    case " $ac_configure_args " in
4523      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4524      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4525    esac
4526  fi
4527done
4528if $ac_cache_corrupted; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4532$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4533  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4534fi
4535## -------------------- ##
4536## Main body of script. ##
4537## -------------------- ##
4538
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
4545
4546
4547ac_aux_dir=
4548for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4549  if test -f "$ac_dir/install-sh"; then
4550    ac_aux_dir=$ac_dir
4551    ac_install_sh="$ac_aux_dir/install-sh -c"
4552    break
4553  elif test -f "$ac_dir/install.sh"; then
4554    ac_aux_dir=$ac_dir
4555    ac_install_sh="$ac_aux_dir/install.sh -c"
4556    break
4557  elif test -f "$ac_dir/shtool"; then
4558    ac_aux_dir=$ac_dir
4559    ac_install_sh="$ac_aux_dir/shtool install -c"
4560    break
4561  fi
4562done
4563if test -z "$ac_aux_dir"; then
4564  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4565fi
4566
4567# These three variables are undocumented and unsupported,
4568# and are intended to be withdrawn in a future Autoconf release.
4569# They can cause serious problems if a builder's source tree is in a directory
4570# whose full name contains unusual characters.
4571ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4572ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4573ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4574
4575
4576# Make sure we can run config.sub.
4577$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4578  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4581$as_echo_n "checking build system type... " >&6; }
4582if ${ac_cv_build+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  ac_build_alias=$build_alias
4586test "x$ac_build_alias" = x &&
4587  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4588test "x$ac_build_alias" = x &&
4589  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4590ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4591  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4592
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4595$as_echo "$ac_cv_build" >&6; }
4596case $ac_cv_build in
4597*-*-*) ;;
4598*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4599esac
4600build=$ac_cv_build
4601ac_save_IFS=$IFS; IFS='-'
4602set x $ac_cv_build
4603shift
4604build_cpu=$1
4605build_vendor=$2
4606shift; shift
4607# Remember, the first character of IFS is used to create $*,
4608# except with old shells:
4609build_os=$*
4610IFS=$ac_save_IFS
4611case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4612
4613
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4615$as_echo_n "checking host system type... " >&6; }
4616if ${ac_cv_host+:} false; then :
4617  $as_echo_n "(cached) " >&6
4618else
4619  if test "x$host_alias" = x; then
4620  ac_cv_host=$ac_cv_build
4621else
4622  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4623    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4624fi
4625
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4628$as_echo "$ac_cv_host" >&6; }
4629case $ac_cv_host in
4630*-*-*) ;;
4631*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4632esac
4633host=$ac_cv_host
4634ac_save_IFS=$IFS; IFS='-'
4635set x $ac_cv_host
4636shift
4637host_cpu=$1
4638host_vendor=$2
4639shift; shift
4640# Remember, the first character of IFS is used to create $*,
4641# except with old shells:
4642host_os=$*
4643IFS=$ac_save_IFS
4644case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4645
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4648$as_echo_n "checking target system type... " >&6; }
4649if ${ac_cv_target+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test "x$target_alias" = x; then
4653  ac_cv_target=$ac_cv_host
4654else
4655  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4656    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4657fi
4658
4659fi
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4661$as_echo "$ac_cv_target" >&6; }
4662case $ac_cv_target in
4663*-*-*) ;;
4664*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4665esac
4666target=$ac_cv_target
4667ac_save_IFS=$IFS; IFS='-'
4668set x $ac_cv_target
4669shift
4670target_cpu=$1
4671target_vendor=$2
4672shift; shift
4673# Remember, the first character of IFS is used to create $*,
4674# except with old shells:
4675target_os=$*
4676IFS=$ac_save_IFS
4677case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4678
4679
4680# The aliases save the names the user supplied, while $host etc.
4681# will get canonicalized.
4682test -n "$target_alias" &&
4683  test "$program_prefix$program_suffix$program_transform_name" = \
4684    NONENONEs,x,x, &&
4685  program_prefix=${target_alias}-
4686
4687
4688
4689
4690am__api_version='1.16'
4691
4692# Find a good install program.  We prefer a C program (faster),
4693# so one script is as good as another.  But avoid the broken or
4694# incompatible versions:
4695# SysV /etc/install, /usr/sbin/install
4696# SunOS /usr/etc/install
4697# IRIX /sbin/install
4698# AIX /bin/install
4699# AmigaOS /C/install, which installs bootblocks on floppy discs
4700# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4701# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4702# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4703# OS/2's system install, which has a completely different semantic
4704# ./install, which can be erroneously created by make from ./install.sh.
4705# Reject install programs that cannot install multiple files.
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4707$as_echo_n "checking for a BSD-compatible install... " >&6; }
4708if test -z "$INSTALL"; then
4709if ${ac_cv_path_install+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715  IFS=$as_save_IFS
4716  test -z "$as_dir" && as_dir=.
4717    # Account for people who put trailing slashes in PATH elements.
4718case $as_dir/ in #((
4719  ./ | .// | /[cC]/* | \
4720  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4721  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4722  /usr/ucb/* ) ;;
4723  *)
4724    # OSF1 and SCO ODT 3.0 have their own names for install.
4725    # Don't use installbsd from OSF since it installs stuff as root
4726    # by default.
4727    for ac_prog in ginstall scoinst install; do
4728      for ac_exec_ext in '' $ac_executable_extensions; do
4729	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4730	  if test $ac_prog = install &&
4731	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4732	    # AIX install.  It has an incompatible calling convention.
4733	    :
4734	  elif test $ac_prog = install &&
4735	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4736	    # program-specific install script used by HP pwplus--don't use.
4737	    :
4738	  else
4739	    rm -rf conftest.one conftest.two conftest.dir
4740	    echo one > conftest.one
4741	    echo two > conftest.two
4742	    mkdir conftest.dir
4743	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4744	      test -s conftest.one && test -s conftest.two &&
4745	      test -s conftest.dir/conftest.one &&
4746	      test -s conftest.dir/conftest.two
4747	    then
4748	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4749	      break 3
4750	    fi
4751	  fi
4752	fi
4753      done
4754    done
4755    ;;
4756esac
4757
4758  done
4759IFS=$as_save_IFS
4760
4761rm -rf conftest.one conftest.two conftest.dir
4762
4763fi
4764  if test "${ac_cv_path_install+set}" = set; then
4765    INSTALL=$ac_cv_path_install
4766  else
4767    # As a last resort, use the slow shell script.  Don't cache a
4768    # value for INSTALL within a source directory, because that will
4769    # break other packages using the cache if that directory is
4770    # removed, or if the value is a relative name.
4771    INSTALL=$ac_install_sh
4772  fi
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4775$as_echo "$INSTALL" >&6; }
4776
4777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4778# It thinks the first close brace ends the variable substitution.
4779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4780
4781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4782
4783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4784
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4786$as_echo_n "checking whether build environment is sane... " >&6; }
4787# Reject unsafe characters in $srcdir or the absolute working directory
4788# name.  Accept space and tab only in the latter.
4789am_lf='
4790'
4791case `pwd` in
4792  *[\\\"\#\$\&\'\`$am_lf]*)
4793    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4794esac
4795case $srcdir in
4796  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4797    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4798esac
4799
4800# Do 'set' in a subshell so we don't clobber the current shell's
4801# arguments.  Must try -L first in case configure is actually a
4802# symlink; some systems play weird games with the mod time of symlinks
4803# (eg FreeBSD returns the mod time of the symlink's containing
4804# directory).
4805if (
4806   am_has_slept=no
4807   for am_try in 1 2; do
4808     echo "timestamp, slept: $am_has_slept" > conftest.file
4809     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4810     if test "$*" = "X"; then
4811	# -L didn't work.
4812	set X `ls -t "$srcdir/configure" conftest.file`
4813     fi
4814     if test "$*" != "X $srcdir/configure conftest.file" \
4815	&& test "$*" != "X conftest.file $srcdir/configure"; then
4816
4817	# If neither matched, then we have a broken ls.  This can happen
4818	# if, for instance, CONFIG_SHELL is bash and it inherits a
4819	# broken ls alias from the environment.  This has actually
4820	# happened.  Such a system could not be considered "sane".
4821	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4822  alias in your environment" "$LINENO" 5
4823     fi
4824     if test "$2" = conftest.file || test $am_try -eq 2; then
4825       break
4826     fi
4827     # Just in case.
4828     sleep 1
4829     am_has_slept=yes
4830   done
4831   test "$2" = conftest.file
4832   )
4833then
4834   # Ok.
4835   :
4836else
4837   as_fn_error $? "newly created file is older than distributed files!
4838Check your system clock" "$LINENO" 5
4839fi
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841$as_echo "yes" >&6; }
4842# If we didn't sleep, we still need to ensure time stamps of config.status and
4843# generated files are strictly newer.
4844am_sleep_pid=
4845if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4846  ( sleep 1 ) &
4847  am_sleep_pid=$!
4848fi
4849
4850rm -f conftest.file
4851
4852test "$program_prefix" != NONE &&
4853  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4854# Use a double $ so make ignores it.
4855test "$program_suffix" != NONE &&
4856  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4857# Double any \ or $.
4858# By default was `s,x,x', remove it if useless.
4859ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4860program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4861
4862# Expand $ac_aux_dir to an absolute path.
4863am_aux_dir=`cd "$ac_aux_dir" && pwd`
4864
4865if test x"${MISSING+set}" != xset; then
4866  case $am_aux_dir in
4867  *\ * | *\	*)
4868    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4869  *)
4870    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4871  esac
4872fi
4873# Use eval to expand $SHELL
4874if eval "$MISSING --is-lightweight"; then
4875  am_missing_run="$MISSING "
4876else
4877  am_missing_run=
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4879$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4880fi
4881
4882if test x"${install_sh+set}" != xset; then
4883  case $am_aux_dir in
4884  *\ * | *\	*)
4885    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4886  *)
4887    install_sh="\${SHELL} $am_aux_dir/install-sh"
4888  esac
4889fi
4890
4891# Installed binaries are usually stripped using 'strip' when the user
4892# run "make install-strip".  However 'strip' might not be the right
4893# tool to use in cross-compilation environments, therefore Automake
4894# will honor the 'STRIP' environment variable to overrule this program.
4895if test "$cross_compiling" != no; then
4896  if test -n "$ac_tool_prefix"; then
4897  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4898set dummy ${ac_tool_prefix}strip; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if ${ac_cv_prog_STRIP+:} false; then :
4902  $as_echo_n "(cached) " >&6
4903else
4904  if test -n "$STRIP"; then
4905  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4906else
4907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910  IFS=$as_save_IFS
4911  test -z "$as_dir" && as_dir=.
4912    for ac_exec_ext in '' $ac_executable_extensions; do
4913  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4915    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916    break 2
4917  fi
4918done
4919  done
4920IFS=$as_save_IFS
4921
4922fi
4923fi
4924STRIP=$ac_cv_prog_STRIP
4925if test -n "$STRIP"; then
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4927$as_echo "$STRIP" >&6; }
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932
4933
4934fi
4935if test -z "$ac_cv_prog_STRIP"; then
4936  ac_ct_STRIP=$STRIP
4937  # Extract the first word of "strip", so it can be a program name with args.
4938set dummy strip; ac_word=$2
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940$as_echo_n "checking for $ac_word... " >&6; }
4941if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4942  $as_echo_n "(cached) " >&6
4943else
4944  if test -n "$ac_ct_STRIP"; then
4945  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950  IFS=$as_save_IFS
4951  test -z "$as_dir" && as_dir=.
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954    ac_cv_prog_ac_ct_STRIP="strip"
4955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956    break 2
4957  fi
4958done
4959  done
4960IFS=$as_save_IFS
4961
4962fi
4963fi
4964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4965if test -n "$ac_ct_STRIP"; then
4966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4967$as_echo "$ac_ct_STRIP" >&6; }
4968else
4969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972
4973  if test "x$ac_ct_STRIP" = x; then
4974    STRIP=":"
4975  else
4976    case $cross_compiling:$ac_tool_warned in
4977yes:)
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980ac_tool_warned=yes ;;
4981esac
4982    STRIP=$ac_ct_STRIP
4983  fi
4984else
4985  STRIP="$ac_cv_prog_STRIP"
4986fi
4987
4988fi
4989INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4990
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4992$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4993if test -z "$MKDIR_P"; then
4994  if ${ac_cv_path_mkdir+:} false; then :
4995  $as_echo_n "(cached) " >&6
4996else
4997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_prog in mkdir gmkdir; do
5003	 for ac_exec_ext in '' $ac_executable_extensions; do
5004	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5005	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5006	     'mkdir (GNU coreutils) '* | \
5007	     'mkdir (coreutils) '* | \
5008	     'mkdir (fileutils) '4.1*)
5009	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5010	       break 3;;
5011	   esac
5012	 done
5013       done
5014  done
5015IFS=$as_save_IFS
5016
5017fi
5018
5019  test -d ./--version && rmdir ./--version
5020  if test "${ac_cv_path_mkdir+set}" = set; then
5021    MKDIR_P="$ac_cv_path_mkdir -p"
5022  else
5023    # As a last resort, use the slow shell script.  Don't cache a
5024    # value for MKDIR_P within a source directory, because that will
5025    # break other packages using the cache if that directory is
5026    # removed, or if the value is a relative name.
5027    MKDIR_P="$ac_install_sh -d"
5028  fi
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5031$as_echo "$MKDIR_P" >&6; }
5032
5033for ac_prog in gawk mawk nawk awk
5034do
5035  # Extract the first word of "$ac_prog", so it can be a program name with args.
5036set dummy $ac_prog; ac_word=$2
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if ${ac_cv_prog_AWK+:} false; then :
5040  $as_echo_n "(cached) " >&6
5041else
5042  if test -n "$AWK"; then
5043  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5044else
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052    ac_cv_prog_AWK="$ac_prog"
5053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054    break 2
5055  fi
5056done
5057  done
5058IFS=$as_save_IFS
5059
5060fi
5061fi
5062AWK=$ac_cv_prog_AWK
5063if test -n "$AWK"; then
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5065$as_echo "$AWK" >&6; }
5066else
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071
5072  test -n "$AWK" && break
5073done
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5077set x ${MAKE-make}
5078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5079if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  cat >conftest.make <<\_ACEOF
5083SHELL = /bin/sh
5084all:
5085	@echo '@@@%%%=$(MAKE)=@@@%%%'
5086_ACEOF
5087# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5088case `${MAKE-make} -f conftest.make 2>/dev/null` in
5089  *@@@%%%=?*=@@@%%%*)
5090    eval ac_cv_prog_make_${ac_make}_set=yes;;
5091  *)
5092    eval ac_cv_prog_make_${ac_make}_set=no;;
5093esac
5094rm -f conftest.make
5095fi
5096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098$as_echo "yes" >&6; }
5099  SET_MAKE=
5100else
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102$as_echo "no" >&6; }
5103  SET_MAKE="MAKE=${MAKE-make}"
5104fi
5105
5106rm -rf .tst 2>/dev/null
5107mkdir .tst 2>/dev/null
5108if test -d .tst; then
5109  am__leading_dot=.
5110else
5111  am__leading_dot=_
5112fi
5113rmdir .tst 2>/dev/null
5114
5115# Check whether --enable-silent-rules was given.
5116if test "${enable_silent_rules+set}" = set; then :
5117  enableval=$enable_silent_rules;
5118fi
5119
5120case $enable_silent_rules in # (((
5121  yes) AM_DEFAULT_VERBOSITY=0;;
5122   no) AM_DEFAULT_VERBOSITY=1;;
5123    *) AM_DEFAULT_VERBOSITY=1;;
5124esac
5125am_make=${MAKE-make}
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5127$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5128if ${am_cv_make_support_nested_variables+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  if $as_echo 'TRUE=$(BAR$(V))
5132BAR0=false
5133BAR1=true
5134V=1
5135am__doit:
5136	@$(TRUE)
5137.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5138  am_cv_make_support_nested_variables=yes
5139else
5140  am_cv_make_support_nested_variables=no
5141fi
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5144$as_echo "$am_cv_make_support_nested_variables" >&6; }
5145if test $am_cv_make_support_nested_variables = yes; then
5146    AM_V='$(V)'
5147  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5148else
5149  AM_V=$AM_DEFAULT_VERBOSITY
5150  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5151fi
5152AM_BACKSLASH='\'
5153
5154if test "`cd $srcdir && pwd`" != "`pwd`"; then
5155  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5156  # is not polluted with repeated "-I."
5157  am__isrc=' -I$(srcdir)'
5158  # test to see if srcdir already configured
5159  if test -f $srcdir/config.status; then
5160    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5161  fi
5162fi
5163
5164# test whether we have cygpath
5165if test -z "$CYGPATH_W"; then
5166  if (cygpath --version) >/dev/null 2>/dev/null; then
5167    CYGPATH_W='cygpath -w'
5168  else
5169    CYGPATH_W=echo
5170  fi
5171fi
5172
5173
5174# Define the identity of the package.
5175 PACKAGE='gst-plugins-bad'
5176 VERSION='1.16.2'
5177
5178
5179cat >>confdefs.h <<_ACEOF
5180#define PACKAGE "$PACKAGE"
5181_ACEOF
5182
5183
5184cat >>confdefs.h <<_ACEOF
5185#define VERSION "$VERSION"
5186_ACEOF
5187
5188# Some tools Automake needs.
5189
5190ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5191
5192
5193AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5194
5195
5196AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5197
5198
5199AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5200
5201
5202MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5203
5204# For better backward compatibility.  To be removed once Automake 1.9.x
5205# dies out for good.  For more background, see:
5206# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5207# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5208mkdir_p='$(MKDIR_P)'
5209
5210# We need awk for the "check" target (and possibly the TAP driver).  The
5211# system "awk" is bad on some platforms.
5212# Always define AMTAR for backward compatibility.  Yes, it's still used
5213# in the wild :-(  We should find a proper way to deprecate it ...
5214AMTAR='$${TAR-tar}'
5215
5216
5217# We'll loop over all known methods to create a tar archive until one works.
5218_am_tools='gnutar plaintar pax cpio none'
5219
5220# The POSIX 1988 'ustar' format is defined with fixed-size fields.
5221      # There is notably a 21 bits limit for the UID and the GID.  In fact,
5222      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
5223      # and bug#13588).
5224      am_max_uid=2097151 # 2^21 - 1
5225      am_max_gid=$am_max_uid
5226      # The $UID and $GID variables are not portable, so we need to resort
5227      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
5228      # below are definitely unexpected, so allow the users to see them
5229      # (that is, avoid stderr redirection).
5230      am_uid=`id -u || echo unknown`
5231      am_gid=`id -g || echo unknown`
5232      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
5233$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
5234      if test $am_uid -le $am_max_uid; then
5235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236$as_echo "yes" >&6; }
5237      else
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239$as_echo "no" >&6; }
5240         _am_tools=none
5241      fi
5242      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
5243$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
5244      if test $am_gid -le $am_max_gid; then
5245         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246$as_echo "yes" >&6; }
5247      else
5248        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249$as_echo "no" >&6; }
5250        _am_tools=none
5251      fi
5252
5253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
5254$as_echo_n "checking how to create a ustar tar archive... " >&6; }
5255
5256  # Go ahead even if we have the value already cached.  We do so because we
5257  # need to set the values for the 'am__tar' and 'am__untar' variables.
5258  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
5259
5260  for _am_tool in $_am_tools; do
5261    case $_am_tool in
5262    gnutar)
5263      for _am_tar in tar gnutar gtar; do
5264        { echo "$as_me:$LINENO: $_am_tar --version" >&5
5265   ($_am_tar --version) >&5 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && break
5269      done
5270      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
5271      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
5272      am__untar="$_am_tar -xf -"
5273      ;;
5274    plaintar)
5275      # Must skip GNU tar: if it does not support --format= it doesn't create
5276      # ustar tarball either.
5277      (tar --version) >/dev/null 2>&1 && continue
5278      am__tar='tar chf - "$$tardir"'
5279      am__tar_='tar chf - "$tardir"'
5280      am__untar='tar xf -'
5281      ;;
5282    pax)
5283      am__tar='pax -L -x ustar -w "$$tardir"'
5284      am__tar_='pax -L -x ustar -w "$tardir"'
5285      am__untar='pax -r'
5286      ;;
5287    cpio)
5288      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
5289      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
5290      am__untar='cpio -i -H ustar -d'
5291      ;;
5292    none)
5293      am__tar=false
5294      am__tar_=false
5295      am__untar=false
5296      ;;
5297    esac
5298
5299    # If the value was cached, stop now.  We just wanted to have am__tar
5300    # and am__untar set.
5301    test -n "${am_cv_prog_tar_ustar}" && break
5302
5303    # tar/untar a dummy directory, and stop if the command works.
5304    rm -rf conftest.dir
5305    mkdir conftest.dir
5306    echo GrepMe > conftest.dir/file
5307    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
5308   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }
5312    rm -rf conftest.dir
5313    if test -s conftest.tar; then
5314      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
5315   ($am__untar <conftest.tar) >&5 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }
5319      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
5320   (cat conftest.dir/file) >&5 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }
5324      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
5325    fi
5326  done
5327  rm -rf conftest.dir
5328
5329  if ${am_cv_prog_tar_ustar+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  am_cv_prog_tar_ustar=$_am_tool
5333fi
5334
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
5336$as_echo "$am_cv_prog_tar_ustar" >&6; }
5337
5338
5339
5340
5341
5342
5343# POSIX will say in a future version that running "rm -f" with no argument
5344# is OK; and we want to be able to make that assumption in our Makefile
5345# recipes.  So use an aggressive probe to check that the usage we want is
5346# actually supported "in the wild" to an acceptable degree.
5347# See automake bug#10828.
5348# To make any issue more visible, cause the running configure to be aborted
5349# by default if the 'rm' program in use doesn't match our expectations; the
5350# user can still override this though.
5351if rm -f && rm -fr && rm -rf; then : OK; else
5352  cat >&2 <<'END'
5353Oops!
5354
5355Your 'rm' program seems unable to run without file operands specified
5356on the command line, even when the '-f' option is present.  This is contrary
5357to the behaviour of most rm programs out there, and not conforming with
5358the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5359
5360Please tell bug-automake@gnu.org about your system, including the value
5361of your $PATH and any error possibly output before this message.  This
5362can help us improve future automake versions.
5363
5364END
5365  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5366    echo 'Configuration will proceed anyway, since you have set the' >&2
5367    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5368    echo >&2
5369  else
5370    cat >&2 <<'END'
5371Aborting the configuration process, to ensure you take notice of the issue.
5372
5373You can download and install GNU coreutils to get an 'rm' implementation
5374that behaves properly: <https://www.gnu.org/software/coreutils/>.
5375
5376If you want to complete the configuration process using your problematic
5377'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5378to "yes", and re-run configure.
5379
5380END
5381    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5382  fi
5383fi
5384
5385
5386
5387  PACKAGE_VERSION_MAJOR=$(echo 1.16.2 | cut -d'.' -f1)
5388  PACKAGE_VERSION_MINOR=$(echo 1.16.2 | cut -d'.' -f2)
5389  PACKAGE_VERSION_MICRO=$(echo 1.16.2 | cut -d'.' -f3)
5390
5391
5392
5393
5394
5395
5396
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
5398$as_echo_n "checking nano version... " >&6; }
5399
5400  NANO=$(echo 1.16.2 | cut -d'.' -f4)
5401
5402  if test x"$NANO" = x || test "x$NANO" = "x0" ; then
5403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
5404$as_echo "0 (release)" >&6; }
5405    NANO=0
5406    PACKAGE_VERSION_RELEASE=1
5407    GST_GIT="no"
5408  else
5409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
5410$as_echo "$NANO" >&6; }
5411    PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
5412    if test "x$NANO" != "x1" ; then
5413       GST_GIT="no"
5414    else
5415       GST_GIT="yes"
5416    fi
5417  fi
5418  PACKAGE_VERSION_NANO=$NANO
5419
5420
5421
5422
5423
5424
5425ac_config_headers="$ac_config_headers config.h"
5426
5427
5428
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5430$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5431    # Check whether --enable-maintainer-mode was given.
5432if test "${enable_maintainer_mode+set}" = set; then :
5433  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5434else
5435  USE_MAINTAINER_MODE=yes
5436fi
5437
5438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5439$as_echo "$USE_MAINTAINER_MODE" >&6; }
5440   if test $USE_MAINTAINER_MODE = yes; then
5441  MAINTAINER_MODE_TRUE=
5442  MAINTAINER_MODE_FALSE='#'
5443else
5444  MAINTAINER_MODE_TRUE='#'
5445  MAINTAINER_MODE_FALSE=
5446fi
5447
5448  MAINT=$MAINTAINER_MODE_TRUE
5449
5450
5451
5452
5453
5454# Check whether --enable-silent-rules was given.
5455if test "${enable_silent_rules+set}" = set; then :
5456  enableval=$enable_silent_rules;
5457fi
5458
5459case $enable_silent_rules in # (((
5460  yes) AM_DEFAULT_VERBOSITY=0;;
5461   no) AM_DEFAULT_VERBOSITY=1;;
5462    *) AM_DEFAULT_VERBOSITY=0;;
5463esac
5464am_make=${MAKE-make}
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5466$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5467if ${am_cv_make_support_nested_variables+:} false; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  if $as_echo 'TRUE=$(BAR$(V))
5471BAR0=false
5472BAR1=true
5473V=1
5474am__doit:
5475	@$(TRUE)
5476.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5477  am_cv_make_support_nested_variables=yes
5478else
5479  am_cv_make_support_nested_variables=no
5480fi
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5483$as_echo "$am_cv_make_support_nested_variables" >&6; }
5484if test $am_cv_make_support_nested_variables = yes; then
5485    AM_V='$(V)'
5486  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5487else
5488  AM_V=$AM_DEFAULT_VERBOSITY
5489  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5490fi
5491AM_BACKSLASH='\'
5492
5493
5494
5495
5496GST_API_VERSION=1.0
5497
5498
5499cat >>confdefs.h <<_ACEOF
5500#define GST_API_VERSION "$GST_API_VERSION"
5501_ACEOF
5502
5503
5504
5505        case $host_os in
5506  cygwin* | mingw*)
5507    lt_cv_deplibs_check_method=pass_all
5508    ;;
5509  esac
5510
5511
5512case `pwd` in
5513  *\ * | *\	*)
5514    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5515$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5516esac
5517
5518
5519
5520macro_version='2.4.6'
5521macro_revision='2.4.6'
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535ltmain=$ac_aux_dir/ltmain.sh
5536
5537# Backslashify metacharacters that are still active within
5538# double-quoted strings.
5539sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5540
5541# Same as above, but do not quote variable references.
5542double_quote_subst='s/\(["`\\]\)/\\\1/g'
5543
5544# Sed substitution to delay expansion of an escaped shell variable in a
5545# double_quote_subst'ed string.
5546delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5547
5548# Sed substitution to delay expansion of an escaped single quote.
5549delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5550
5551# Sed substitution to avoid accidental globbing in evaled expressions
5552no_glob_subst='s/\*/\\\*/g'
5553
5554ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5555ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5556ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5557
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5559$as_echo_n "checking how to print strings... " >&6; }
5560# Test print first, because it will be a builtin if present.
5561if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5562   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5563  ECHO='print -r --'
5564elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5565  ECHO='printf %s\n'
5566else
5567  # Use this function as a fallback that always works.
5568  func_fallback_echo ()
5569  {
5570    eval 'cat <<_LTECHO_EOF
5571$1
5572_LTECHO_EOF'
5573  }
5574  ECHO='func_fallback_echo'
5575fi
5576
5577# func_echo_all arg...
5578# Invoke $ECHO with all args, space-separated.
5579func_echo_all ()
5580{
5581    $ECHO ""
5582}
5583
5584case $ECHO in
5585  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5586$as_echo "printf" >&6; } ;;
5587  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5588$as_echo "print -r" >&6; } ;;
5589  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5590$as_echo "cat" >&6; } ;;
5591esac
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606DEPDIR="${am__leading_dot}deps"
5607
5608ac_config_commands="$ac_config_commands depfiles"
5609
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5611$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5612cat > confinc.mk << 'END'
5613am__doit:
5614	@echo this is the am__doit target >confinc.out
5615.PHONY: am__doit
5616END
5617am__include="#"
5618am__quote=
5619# BSD make does it like this.
5620echo '.include "confinc.mk" # ignored' > confmf.BSD
5621# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5622echo 'include confinc.mk # ignored' > confmf.GNU
5623_am_result=no
5624for s in GNU BSD; do
5625  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5626   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5627   ac_status=$?
5628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); }
5630  case $?:`cat confinc.out 2>/dev/null` in #(
5631  '0:this is the am__doit target') :
5632    case $s in #(
5633  BSD) :
5634    am__include='.include' am__quote='"' ;; #(
5635  *) :
5636    am__include='include' am__quote='' ;;
5637esac ;; #(
5638  *) :
5639     ;;
5640esac
5641  if test "$am__include" != "#"; then
5642    _am_result="yes ($s style)"
5643    break
5644  fi
5645done
5646rm -f confinc.* confmf.*
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5648$as_echo "${_am_result}" >&6; }
5649
5650# Check whether --enable-dependency-tracking was given.
5651if test "${enable_dependency_tracking+set}" = set; then :
5652  enableval=$enable_dependency_tracking;
5653fi
5654
5655if test "x$enable_dependency_tracking" != xno; then
5656  am_depcomp="$ac_aux_dir/depcomp"
5657  AMDEPBACKSLASH='\'
5658  am__nodep='_no'
5659fi
5660 if test "x$enable_dependency_tracking" != xno; then
5661  AMDEP_TRUE=
5662  AMDEP_FALSE='#'
5663else
5664  AMDEP_TRUE='#'
5665  AMDEP_FALSE=
5666fi
5667
5668
5669ac_ext=c
5670ac_cpp='$CPP $CPPFLAGS'
5671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674if test -n "$ac_tool_prefix"; then
5675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5676set dummy ${ac_tool_prefix}gcc; ac_word=$2
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678$as_echo_n "checking for $ac_word... " >&6; }
5679if ${ac_cv_prog_CC+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  if test -n "$CC"; then
5683  ac_cv_prog_CC="$CC" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  test -z "$as_dir" && as_dir=.
5690    for ac_exec_ext in '' $ac_executable_extensions; do
5691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694    break 2
5695  fi
5696done
5697  done
5698IFS=$as_save_IFS
5699
5700fi
5701fi
5702CC=$ac_cv_prog_CC
5703if test -n "$CC"; then
5704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5705$as_echo "$CC" >&6; }
5706else
5707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708$as_echo "no" >&6; }
5709fi
5710
5711
5712fi
5713if test -z "$ac_cv_prog_CC"; then
5714  ac_ct_CC=$CC
5715  # Extract the first word of "gcc", so it can be a program name with args.
5716set dummy gcc; ac_word=$2
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718$as_echo_n "checking for $ac_word... " >&6; }
5719if ${ac_cv_prog_ac_ct_CC+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -n "$ac_ct_CC"; then
5723  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_ac_ct_CC="gcc"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740fi
5741fi
5742ac_ct_CC=$ac_cv_prog_ac_ct_CC
5743if test -n "$ac_ct_CC"; then
5744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5745$as_echo "$ac_ct_CC" >&6; }
5746else
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749fi
5750
5751  if test "x$ac_ct_CC" = x; then
5752    CC=""
5753  else
5754    case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760    CC=$ac_ct_CC
5761  fi
5762else
5763  CC="$ac_cv_prog_CC"
5764fi
5765
5766if test -z "$CC"; then
5767          if test -n "$ac_tool_prefix"; then
5768    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5769set dummy ${ac_tool_prefix}cc; ac_word=$2
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771$as_echo_n "checking for $ac_word... " >&6; }
5772if ${ac_cv_prog_CC+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  if test -n "$CC"; then
5776  ac_cv_prog_CC="$CC" # Let the user override the test.
5777else
5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779for as_dir in $PATH
5780do
5781  IFS=$as_save_IFS
5782  test -z "$as_dir" && as_dir=.
5783    for ac_exec_ext in '' $ac_executable_extensions; do
5784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785    ac_cv_prog_CC="${ac_tool_prefix}cc"
5786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787    break 2
5788  fi
5789done
5790  done
5791IFS=$as_save_IFS
5792
5793fi
5794fi
5795CC=$ac_cv_prog_CC
5796if test -n "$CC"; then
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5798$as_echo "$CC" >&6; }
5799else
5800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801$as_echo "no" >&6; }
5802fi
5803
5804
5805  fi
5806fi
5807if test -z "$CC"; then
5808  # Extract the first word of "cc", so it can be a program name with args.
5809set dummy cc; ac_word=$2
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811$as_echo_n "checking for $ac_word... " >&6; }
5812if ${ac_cv_prog_CC+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  if test -n "$CC"; then
5816  ac_cv_prog_CC="$CC" # Let the user override the test.
5817else
5818  ac_prog_rejected=no
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822  IFS=$as_save_IFS
5823  test -z "$as_dir" && as_dir=.
5824    for ac_exec_ext in '' $ac_executable_extensions; do
5825  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5827       ac_prog_rejected=yes
5828       continue
5829     fi
5830    ac_cv_prog_CC="cc"
5831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835  done
5836IFS=$as_save_IFS
5837
5838if test $ac_prog_rejected = yes; then
5839  # We found a bogon in the path, so make sure we never use it.
5840  set dummy $ac_cv_prog_CC
5841  shift
5842  if test $# != 0; then
5843    # We chose a different compiler from the bogus one.
5844    # However, it has the same basename, so the bogon will be chosen
5845    # first if we set CC to just the basename; use the full file name.
5846    shift
5847    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5848  fi
5849fi
5850fi
5851fi
5852CC=$ac_cv_prog_CC
5853if test -n "$CC"; then
5854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5855$as_echo "$CC" >&6; }
5856else
5857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859fi
5860
5861
5862fi
5863if test -z "$CC"; then
5864  if test -n "$ac_tool_prefix"; then
5865  for ac_prog in cl.exe
5866  do
5867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870$as_echo_n "checking for $ac_word... " >&6; }
5871if ${ac_cv_prog_CC+:} false; then :
5872  $as_echo_n "(cached) " >&6
5873else
5874  if test -n "$CC"; then
5875  ac_cv_prog_CC="$CC" # Let the user override the test.
5876else
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880  IFS=$as_save_IFS
5881  test -z "$as_dir" && as_dir=.
5882    for ac_exec_ext in '' $ac_executable_extensions; do
5883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886    break 2
5887  fi
5888done
5889  done
5890IFS=$as_save_IFS
5891
5892fi
5893fi
5894CC=$ac_cv_prog_CC
5895if test -n "$CC"; then
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5897$as_echo "$CC" >&6; }
5898else
5899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900$as_echo "no" >&6; }
5901fi
5902
5903
5904    test -n "$CC" && break
5905  done
5906fi
5907if test -z "$CC"; then
5908  ac_ct_CC=$CC
5909  for ac_prog in cl.exe
5910do
5911  # Extract the first word of "$ac_prog", so it can be a program name with args.
5912set dummy $ac_prog; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; }
5915if ${ac_cv_prog_ac_ct_CC+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  if test -n "$ac_ct_CC"; then
5919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  test -z "$as_dir" && as_dir=.
5926    for ac_exec_ext in '' $ac_executable_extensions; do
5927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928    ac_cv_prog_ac_ct_CC="$ac_prog"
5929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930    break 2
5931  fi
5932done
5933  done
5934IFS=$as_save_IFS
5935
5936fi
5937fi
5938ac_ct_CC=$ac_cv_prog_ac_ct_CC
5939if test -n "$ac_ct_CC"; then
5940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5941$as_echo "$ac_ct_CC" >&6; }
5942else
5943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944$as_echo "no" >&6; }
5945fi
5946
5947
5948  test -n "$ac_ct_CC" && break
5949done
5950
5951  if test "x$ac_ct_CC" = x; then
5952    CC=""
5953  else
5954    case $cross_compiling:$ac_tool_warned in
5955yes:)
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958ac_tool_warned=yes ;;
5959esac
5960    CC=$ac_ct_CC
5961  fi
5962fi
5963
5964fi
5965
5966
5967test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5969as_fn_error $? "no acceptable C compiler found in \$PATH
5970See \`config.log' for more details" "$LINENO" 5; }
5971
5972# Provide some information about the compiler.
5973$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5974set X $ac_compile
5975ac_compiler=$2
5976for ac_option in --version -v -V -qversion; do
5977  { { ac_try="$ac_compiler $ac_option >&5"
5978case "(($ac_try" in
5979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980  *) ac_try_echo=$ac_try;;
5981esac
5982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5983$as_echo "$ac_try_echo"; } >&5
5984  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5985  ac_status=$?
5986  if test -s conftest.err; then
5987    sed '10a\
5988... rest of stderr output deleted ...
5989         10q' conftest.err >conftest.er1
5990    cat conftest.er1 >&5
5991  fi
5992  rm -f conftest.er1 conftest.err
5993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994  test $ac_status = 0; }
5995done
5996
5997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998/* end confdefs.h.  */
5999
6000int
6001main ()
6002{
6003
6004  ;
6005  return 0;
6006}
6007_ACEOF
6008ac_clean_files_save=$ac_clean_files
6009ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6010# Try to create an executable without -o first, disregard a.out.
6011# It will help us diagnose broken compilers, and finding out an intuition
6012# of exeext.
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6014$as_echo_n "checking whether the C compiler works... " >&6; }
6015ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6016
6017# The possible output files:
6018ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6019
6020ac_rmfiles=
6021for ac_file in $ac_files
6022do
6023  case $ac_file in
6024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6025    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6026  esac
6027done
6028rm -f $ac_rmfiles
6029
6030if { { ac_try="$ac_link_default"
6031case "(($ac_try" in
6032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033  *) ac_try_echo=$ac_try;;
6034esac
6035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6036$as_echo "$ac_try_echo"; } >&5
6037  (eval "$ac_link_default") 2>&5
6038  ac_status=$?
6039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040  test $ac_status = 0; }; then :
6041  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6043# in a Makefile.  We should not override ac_cv_exeext if it was cached,
6044# so that the user can short-circuit this test for compilers unknown to
6045# Autoconf.
6046for ac_file in $ac_files ''
6047do
6048  test -f "$ac_file" || continue
6049  case $ac_file in
6050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6051	;;
6052    [ab].out )
6053	# We found the default executable, but exeext='' is most
6054	# certainly right.
6055	break;;
6056    *.* )
6057	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6058	then :; else
6059	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6060	fi
6061	# We set ac_cv_exeext here because the later test for it is not
6062	# safe: cross compilers may not add the suffix if given an `-o'
6063	# argument, so we may need to know it at that point already.
6064	# Even if this section looks crufty: it has the advantage of
6065	# actually working.
6066	break;;
6067    * )
6068	break;;
6069  esac
6070done
6071test "$ac_cv_exeext" = no && ac_cv_exeext=
6072
6073else
6074  ac_file=''
6075fi
6076if test -z "$ac_file"; then :
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078$as_echo "no" >&6; }
6079$as_echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6084as_fn_error 77 "C compiler cannot create executables
6085See \`config.log' for more details" "$LINENO" 5; }
6086else
6087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6088$as_echo "yes" >&6; }
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6091$as_echo_n "checking for C compiler default output file name... " >&6; }
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6093$as_echo "$ac_file" >&6; }
6094ac_exeext=$ac_cv_exeext
6095
6096rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6097ac_clean_files=$ac_clean_files_save
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6099$as_echo_n "checking for suffix of executables... " >&6; }
6100if { { ac_try="$ac_link"
6101case "(($ac_try" in
6102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103  *) ac_try_echo=$ac_try;;
6104esac
6105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6106$as_echo "$ac_try_echo"; } >&5
6107  (eval "$ac_link") 2>&5
6108  ac_status=$?
6109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110  test $ac_status = 0; }; then :
6111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6113# work properly (i.e., refer to `conftest.exe'), while it won't with
6114# `rm'.
6115for ac_file in conftest.exe conftest conftest.*; do
6116  test -f "$ac_file" || continue
6117  case $ac_file in
6118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6120	  break;;
6121    * ) break;;
6122  esac
6123done
6124else
6125  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6128See \`config.log' for more details" "$LINENO" 5; }
6129fi
6130rm -f conftest conftest$ac_cv_exeext
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
6132$as_echo "$ac_cv_exeext" >&6; }
6133
6134rm -f conftest.$ac_ext
6135EXEEXT=$ac_cv_exeext
6136ac_exeext=$EXEEXT
6137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139#include <stdio.h>
6140int
6141main ()
6142{
6143FILE *f = fopen ("conftest.out", "w");
6144 return ferror (f) || fclose (f) != 0;
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150ac_clean_files="$ac_clean_files conftest.out"
6151# Check that the compiler produces executables we can run.  If not, either
6152# the compiler is broken, or we cross compile.
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6154$as_echo_n "checking whether we are cross compiling... " >&6; }
6155if test "$cross_compiling" != yes; then
6156  { { ac_try="$ac_link"
6157case "(($ac_try" in
6158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159  *) ac_try_echo=$ac_try;;
6160esac
6161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6162$as_echo "$ac_try_echo"; } >&5
6163  (eval "$ac_link") 2>&5
6164  ac_status=$?
6165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166  test $ac_status = 0; }
6167  if { ac_try='./conftest$ac_cv_exeext'
6168  { { case "(($ac_try" in
6169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170  *) ac_try_echo=$ac_try;;
6171esac
6172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6173$as_echo "$ac_try_echo"; } >&5
6174  (eval "$ac_try") 2>&5
6175  ac_status=$?
6176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177  test $ac_status = 0; }; }; then
6178    cross_compiling=no
6179  else
6180    if test "$cross_compiling" = maybe; then
6181	cross_compiling=yes
6182    else
6183	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6185as_fn_error $? "cannot run C compiled programs.
6186If you meant to cross compile, use \`--host'.
6187See \`config.log' for more details" "$LINENO" 5; }
6188    fi
6189  fi
6190fi
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6192$as_echo "$cross_compiling" >&6; }
6193
6194rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6195ac_clean_files=$ac_clean_files_save
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6197$as_echo_n "checking for suffix of object files... " >&6; }
6198if ${ac_cv_objext+:} false; then :
6199  $as_echo_n "(cached) " >&6
6200else
6201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h.  */
6203
6204int
6205main ()
6206{
6207
6208  ;
6209  return 0;
6210}
6211_ACEOF
6212rm -f conftest.o conftest.obj
6213if { { ac_try="$ac_compile"
6214case "(($ac_try" in
6215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216  *) ac_try_echo=$ac_try;;
6217esac
6218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6219$as_echo "$ac_try_echo"; } >&5
6220  (eval "$ac_compile") 2>&5
6221  ac_status=$?
6222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223  test $ac_status = 0; }; then :
6224  for ac_file in conftest.o conftest.obj conftest.*; do
6225  test -f "$ac_file" || continue;
6226  case $ac_file in
6227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6228    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6229       break;;
6230  esac
6231done
6232else
6233  $as_echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6238as_fn_error $? "cannot compute suffix of object files: cannot compile
6239See \`config.log' for more details" "$LINENO" 5; }
6240fi
6241rm -f conftest.$ac_cv_objext conftest.$ac_ext
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6244$as_echo "$ac_cv_objext" >&6; }
6245OBJEXT=$ac_cv_objext
6246ac_objext=$OBJEXT
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6248$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6249if ${ac_cv_c_compiler_gnu+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254
6255int
6256main ()
6257{
6258#ifndef __GNUC__
6259       choke me
6260#endif
6261
6262  ;
6263  return 0;
6264}
6265_ACEOF
6266if ac_fn_c_try_compile "$LINENO"; then :
6267  ac_compiler_gnu=yes
6268else
6269  ac_compiler_gnu=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272ac_cv_c_compiler_gnu=$ac_compiler_gnu
6273
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6276$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6277if test $ac_compiler_gnu = yes; then
6278  GCC=yes
6279else
6280  GCC=
6281fi
6282ac_test_CFLAGS=${CFLAGS+set}
6283ac_save_CFLAGS=$CFLAGS
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6285$as_echo_n "checking whether $CC accepts -g... " >&6; }
6286if ${ac_cv_prog_cc_g+:} false; then :
6287  $as_echo_n "(cached) " >&6
6288else
6289  ac_save_c_werror_flag=$ac_c_werror_flag
6290   ac_c_werror_flag=yes
6291   ac_cv_prog_cc_g=no
6292   CFLAGS="-g"
6293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h.  */
6295
6296int
6297main ()
6298{
6299
6300  ;
6301  return 0;
6302}
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305  ac_cv_prog_cc_g=yes
6306else
6307  CFLAGS=""
6308      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310
6311int
6312main ()
6313{
6314
6315  ;
6316  return 0;
6317}
6318_ACEOF
6319if ac_fn_c_try_compile "$LINENO"; then :
6320
6321else
6322  ac_c_werror_flag=$ac_save_c_werror_flag
6323	 CFLAGS="-g"
6324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326
6327int
6328main ()
6329{
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"; then :
6336  ac_cv_prog_cc_g=yes
6337fi
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343   ac_c_werror_flag=$ac_save_c_werror_flag
6344fi
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6346$as_echo "$ac_cv_prog_cc_g" >&6; }
6347if test "$ac_test_CFLAGS" = set; then
6348  CFLAGS=$ac_save_CFLAGS
6349elif test $ac_cv_prog_cc_g = yes; then
6350  if test "$GCC" = yes; then
6351    CFLAGS="-g -O2"
6352  else
6353    CFLAGS="-g"
6354  fi
6355else
6356  if test "$GCC" = yes; then
6357    CFLAGS="-O2"
6358  else
6359    CFLAGS=
6360  fi
6361fi
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6363$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6364if ${ac_cv_prog_cc_c89+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367  ac_cv_prog_cc_c89=no
6368ac_save_CC=$CC
6369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370/* end confdefs.h.  */
6371#include <stdarg.h>
6372#include <stdio.h>
6373struct stat;
6374/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6375struct buf { int x; };
6376FILE * (*rcsopen) (struct buf *, struct stat *, int);
6377static char *e (p, i)
6378     char **p;
6379     int i;
6380{
6381  return p[i];
6382}
6383static char *f (char * (*g) (char **, int), char **p, ...)
6384{
6385  char *s;
6386  va_list v;
6387  va_start (v,p);
6388  s = g (p, va_arg (v,int));
6389  va_end (v);
6390  return s;
6391}
6392
6393/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6394   function prototypes and stuff, but not '\xHH' hex character constants.
6395   These don't provoke an error unfortunately, instead are silently treated
6396   as 'x'.  The following induces an error, until -std is added to get
6397   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6398   array size at least.  It's necessary to write '\x00'==0 to get something
6399   that's true only with -std.  */
6400int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6401
6402/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6403   inside strings and character constants.  */
6404#define FOO(x) 'x'
6405int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6406
6407int test (int i, double x);
6408struct s1 {int (*f) (int a);};
6409struct s2 {int (*f) (double a);};
6410int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6411int argc;
6412char **argv;
6413int
6414main ()
6415{
6416return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6417  ;
6418  return 0;
6419}
6420_ACEOF
6421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6422	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6423do
6424  CC="$ac_save_CC $ac_arg"
6425  if ac_fn_c_try_compile "$LINENO"; then :
6426  ac_cv_prog_cc_c89=$ac_arg
6427fi
6428rm -f core conftest.err conftest.$ac_objext
6429  test "x$ac_cv_prog_cc_c89" != "xno" && break
6430done
6431rm -f conftest.$ac_ext
6432CC=$ac_save_CC
6433
6434fi
6435# AC_CACHE_VAL
6436case "x$ac_cv_prog_cc_c89" in
6437  x)
6438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6439$as_echo "none needed" >&6; } ;;
6440  xno)
6441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6442$as_echo "unsupported" >&6; } ;;
6443  *)
6444    CC="$CC $ac_cv_prog_cc_c89"
6445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6446$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6447esac
6448if test "x$ac_cv_prog_cc_c89" != xno; then :
6449
6450fi
6451
6452ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458ac_ext=c
6459ac_cpp='$CPP $CPPFLAGS'
6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6464$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6465if ${am_cv_prog_cc_c_o+:} false; then :
6466  $as_echo_n "(cached) " >&6
6467else
6468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469/* end confdefs.h.  */
6470
6471int
6472main ()
6473{
6474
6475  ;
6476  return 0;
6477}
6478_ACEOF
6479  # Make sure it works both with $CC and with simple cc.
6480  # Following AC_PROG_CC_C_O, we do the test twice because some
6481  # compilers refuse to overwrite an existing .o file with -o,
6482  # though they will create one.
6483  am_cv_prog_cc_c_o=yes
6484  for am_i in 1 2; do
6485    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6486   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } \
6490         && test -f conftest2.$ac_objext; then
6491      : OK
6492    else
6493      am_cv_prog_cc_c_o=no
6494      break
6495    fi
6496  done
6497  rm -f core conftest*
6498  unset am_i
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6501$as_echo "$am_cv_prog_cc_c_o" >&6; }
6502if test "$am_cv_prog_cc_c_o" != yes; then
6503   # Losing compiler, so override with the script.
6504   # FIXME: It is wrong to rewrite CC.
6505   # But if we don't then we get into trouble of one sort or another.
6506   # A longer-term fix would be to have automake use am__CC in this case,
6507   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6508   CC="$am_aux_dir/compile $CC"
6509fi
6510ac_ext=c
6511ac_cpp='$CPP $CPPFLAGS'
6512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514ac_compiler_gnu=$ac_cv_c_compiler_gnu
6515
6516
6517depcc="$CC"   am_compiler_list=
6518
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6520$as_echo_n "checking dependency style of $depcc... " >&6; }
6521if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6522  $as_echo_n "(cached) " >&6
6523else
6524  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6525  # We make a subdir and do the tests there.  Otherwise we can end up
6526  # making bogus files that we don't know about and never remove.  For
6527  # instance it was reported that on HP-UX the gcc test will end up
6528  # making a dummy file named 'D' -- because '-MD' means "put the output
6529  # in D".
6530  rm -rf conftest.dir
6531  mkdir conftest.dir
6532  # Copy depcomp to subdir because otherwise we won't find it if we're
6533  # using a relative directory.
6534  cp "$am_depcomp" conftest.dir
6535  cd conftest.dir
6536  # We will build objects and dependencies in a subdirectory because
6537  # it helps to detect inapplicable dependency modes.  For instance
6538  # both Tru64's cc and ICC support -MD to output dependencies as a
6539  # side effect of compilation, but ICC will put the dependencies in
6540  # the current directory while Tru64 will put them in the object
6541  # directory.
6542  mkdir sub
6543
6544  am_cv_CC_dependencies_compiler_type=none
6545  if test "$am_compiler_list" = ""; then
6546     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6547  fi
6548  am__universal=false
6549  case " $depcc " in #(
6550     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6551     esac
6552
6553  for depmode in $am_compiler_list; do
6554    # Setup a source with many dependencies, because some compilers
6555    # like to wrap large dependency lists on column 80 (with \), and
6556    # we should not choose a depcomp mode which is confused by this.
6557    #
6558    # We need to recreate these files for each test, as the compiler may
6559    # overwrite some of them when testing with obscure command lines.
6560    # This happens at least with the AIX C compiler.
6561    : > sub/conftest.c
6562    for i in 1 2 3 4 5 6; do
6563      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6564      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6565      # Solaris 10 /bin/sh.
6566      echo '/* dummy */' > sub/conftst$i.h
6567    done
6568    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6569
6570    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6571    # mode.  It turns out that the SunPro C++ compiler does not properly
6572    # handle '-M -o', and we need to detect this.  Also, some Intel
6573    # versions had trouble with output in subdirs.
6574    am__obj=sub/conftest.${OBJEXT-o}
6575    am__minus_obj="-o $am__obj"
6576    case $depmode in
6577    gcc)
6578      # This depmode causes a compiler race in universal mode.
6579      test "$am__universal" = false || continue
6580      ;;
6581    nosideeffect)
6582      # After this tag, mechanisms are not by side-effect, so they'll
6583      # only be used when explicitly requested.
6584      if test "x$enable_dependency_tracking" = xyes; then
6585	continue
6586      else
6587	break
6588      fi
6589      ;;
6590    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6591      # This compiler won't grok '-c -o', but also, the minuso test has
6592      # not run yet.  These depmodes are late enough in the game, and
6593      # so weak that their functioning should not be impacted.
6594      am__obj=conftest.${OBJEXT-o}
6595      am__minus_obj=
6596      ;;
6597    none) break ;;
6598    esac
6599    if depmode=$depmode \
6600       source=sub/conftest.c object=$am__obj \
6601       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6602       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6603         >/dev/null 2>conftest.err &&
6604       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6605       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6606       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6607       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6608      # icc doesn't choke on unknown options, it will just issue warnings
6609      # or remarks (even with -Werror).  So we grep stderr for any message
6610      # that says an option was ignored or not supported.
6611      # When given -MP, icc 7.0 and 7.1 complain thusly:
6612      #   icc: Command line warning: ignoring option '-M'; no argument required
6613      # The diagnosis changed in icc 8.0:
6614      #   icc: Command line remark: option '-MP' not supported
6615      if (grep 'ignoring option' conftest.err ||
6616          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6617        am_cv_CC_dependencies_compiler_type=$depmode
6618        break
6619      fi
6620    fi
6621  done
6622
6623  cd ..
6624  rm -rf conftest.dir
6625else
6626  am_cv_CC_dependencies_compiler_type=none
6627fi
6628
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6631$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6632CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6633
6634 if
6635  test "x$enable_dependency_tracking" != xno \
6636  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6637  am__fastdepCC_TRUE=
6638  am__fastdepCC_FALSE='#'
6639else
6640  am__fastdepCC_TRUE='#'
6641  am__fastdepCC_FALSE=
6642fi
6643
6644
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6646$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6647if ${ac_cv_path_SED+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6651     for ac_i in 1 2 3 4 5 6 7; do
6652       ac_script="$ac_script$as_nl$ac_script"
6653     done
6654     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6655     { ac_script=; unset ac_script;}
6656     if test -z "$SED"; then
6657  ac_path_SED_found=false
6658  # Loop through the user's path and test for each of PROGNAME-LIST
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_prog in sed gsed; do
6665    for ac_exec_ext in '' $ac_executable_extensions; do
6666      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6667      as_fn_executable_p "$ac_path_SED" || continue
6668# Check for GNU ac_path_SED and select it if it is found.
6669  # Check for GNU $ac_path_SED
6670case `"$ac_path_SED" --version 2>&1` in
6671*GNU*)
6672  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6673*)
6674  ac_count=0
6675  $as_echo_n 0123456789 >"conftest.in"
6676  while :
6677  do
6678    cat "conftest.in" "conftest.in" >"conftest.tmp"
6679    mv "conftest.tmp" "conftest.in"
6680    cp "conftest.in" "conftest.nl"
6681    $as_echo '' >> "conftest.nl"
6682    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6683    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6684    as_fn_arith $ac_count + 1 && ac_count=$as_val
6685    if test $ac_count -gt ${ac_path_SED_max-0}; then
6686      # Best one so far, save it but keep looking for a better one
6687      ac_cv_path_SED="$ac_path_SED"
6688      ac_path_SED_max=$ac_count
6689    fi
6690    # 10*(2^10) chars as input seems more than enough
6691    test $ac_count -gt 10 && break
6692  done
6693  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6694esac
6695
6696      $ac_path_SED_found && break 3
6697    done
6698  done
6699  done
6700IFS=$as_save_IFS
6701  if test -z "$ac_cv_path_SED"; then
6702    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6703  fi
6704else
6705  ac_cv_path_SED=$SED
6706fi
6707
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6710$as_echo "$ac_cv_path_SED" >&6; }
6711 SED="$ac_cv_path_SED"
6712  rm -f conftest.sed
6713
6714test -z "$SED" && SED=sed
6715Xsed="$SED -e 1s/^X//"
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6728$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6729if ${ac_cv_path_GREP+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732  if test -z "$GREP"; then
6733  ac_path_GREP_found=false
6734  # Loop through the user's path and test for each of PROGNAME-LIST
6735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6737do
6738  IFS=$as_save_IFS
6739  test -z "$as_dir" && as_dir=.
6740    for ac_prog in grep ggrep; do
6741    for ac_exec_ext in '' $ac_executable_extensions; do
6742      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6743      as_fn_executable_p "$ac_path_GREP" || continue
6744# Check for GNU ac_path_GREP and select it if it is found.
6745  # Check for GNU $ac_path_GREP
6746case `"$ac_path_GREP" --version 2>&1` in
6747*GNU*)
6748  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6749*)
6750  ac_count=0
6751  $as_echo_n 0123456789 >"conftest.in"
6752  while :
6753  do
6754    cat "conftest.in" "conftest.in" >"conftest.tmp"
6755    mv "conftest.tmp" "conftest.in"
6756    cp "conftest.in" "conftest.nl"
6757    $as_echo 'GREP' >> "conftest.nl"
6758    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6759    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6760    as_fn_arith $ac_count + 1 && ac_count=$as_val
6761    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6762      # Best one so far, save it but keep looking for a better one
6763      ac_cv_path_GREP="$ac_path_GREP"
6764      ac_path_GREP_max=$ac_count
6765    fi
6766    # 10*(2^10) chars as input seems more than enough
6767    test $ac_count -gt 10 && break
6768  done
6769  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6770esac
6771
6772      $ac_path_GREP_found && break 3
6773    done
6774  done
6775  done
6776IFS=$as_save_IFS
6777  if test -z "$ac_cv_path_GREP"; then
6778    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6779  fi
6780else
6781  ac_cv_path_GREP=$GREP
6782fi
6783
6784fi
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6786$as_echo "$ac_cv_path_GREP" >&6; }
6787 GREP="$ac_cv_path_GREP"
6788
6789
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6791$as_echo_n "checking for egrep... " >&6; }
6792if ${ac_cv_path_EGREP+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6796   then ac_cv_path_EGREP="$GREP -E"
6797   else
6798     if test -z "$EGREP"; then
6799  ac_path_EGREP_found=false
6800  # Loop through the user's path and test for each of PROGNAME-LIST
6801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6803do
6804  IFS=$as_save_IFS
6805  test -z "$as_dir" && as_dir=.
6806    for ac_prog in egrep; do
6807    for ac_exec_ext in '' $ac_executable_extensions; do
6808      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6809      as_fn_executable_p "$ac_path_EGREP" || continue
6810# Check for GNU ac_path_EGREP and select it if it is found.
6811  # Check for GNU $ac_path_EGREP
6812case `"$ac_path_EGREP" --version 2>&1` in
6813*GNU*)
6814  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6815*)
6816  ac_count=0
6817  $as_echo_n 0123456789 >"conftest.in"
6818  while :
6819  do
6820    cat "conftest.in" "conftest.in" >"conftest.tmp"
6821    mv "conftest.tmp" "conftest.in"
6822    cp "conftest.in" "conftest.nl"
6823    $as_echo 'EGREP' >> "conftest.nl"
6824    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6826    as_fn_arith $ac_count + 1 && ac_count=$as_val
6827    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6828      # Best one so far, save it but keep looking for a better one
6829      ac_cv_path_EGREP="$ac_path_EGREP"
6830      ac_path_EGREP_max=$ac_count
6831    fi
6832    # 10*(2^10) chars as input seems more than enough
6833    test $ac_count -gt 10 && break
6834  done
6835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6836esac
6837
6838      $ac_path_EGREP_found && break 3
6839    done
6840  done
6841  done
6842IFS=$as_save_IFS
6843  if test -z "$ac_cv_path_EGREP"; then
6844    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6845  fi
6846else
6847  ac_cv_path_EGREP=$EGREP
6848fi
6849
6850   fi
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6853$as_echo "$ac_cv_path_EGREP" >&6; }
6854 EGREP="$ac_cv_path_EGREP"
6855
6856
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6858$as_echo_n "checking for fgrep... " >&6; }
6859if ${ac_cv_path_FGREP+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6863   then ac_cv_path_FGREP="$GREP -F"
6864   else
6865     if test -z "$FGREP"; then
6866  ac_path_FGREP_found=false
6867  # Loop through the user's path and test for each of PROGNAME-LIST
6868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6870do
6871  IFS=$as_save_IFS
6872  test -z "$as_dir" && as_dir=.
6873    for ac_prog in fgrep; do
6874    for ac_exec_ext in '' $ac_executable_extensions; do
6875      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6876      as_fn_executable_p "$ac_path_FGREP" || continue
6877# Check for GNU ac_path_FGREP and select it if it is found.
6878  # Check for GNU $ac_path_FGREP
6879case `"$ac_path_FGREP" --version 2>&1` in
6880*GNU*)
6881  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6882*)
6883  ac_count=0
6884  $as_echo_n 0123456789 >"conftest.in"
6885  while :
6886  do
6887    cat "conftest.in" "conftest.in" >"conftest.tmp"
6888    mv "conftest.tmp" "conftest.in"
6889    cp "conftest.in" "conftest.nl"
6890    $as_echo 'FGREP' >> "conftest.nl"
6891    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6892    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6893    as_fn_arith $ac_count + 1 && ac_count=$as_val
6894    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6895      # Best one so far, save it but keep looking for a better one
6896      ac_cv_path_FGREP="$ac_path_FGREP"
6897      ac_path_FGREP_max=$ac_count
6898    fi
6899    # 10*(2^10) chars as input seems more than enough
6900    test $ac_count -gt 10 && break
6901  done
6902  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6903esac
6904
6905      $ac_path_FGREP_found && break 3
6906    done
6907  done
6908  done
6909IFS=$as_save_IFS
6910  if test -z "$ac_cv_path_FGREP"; then
6911    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6912  fi
6913else
6914  ac_cv_path_FGREP=$FGREP
6915fi
6916
6917   fi
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6920$as_echo "$ac_cv_path_FGREP" >&6; }
6921 FGREP="$ac_cv_path_FGREP"
6922
6923
6924test -z "$GREP" && GREP=grep
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944# Check whether --with-gnu-ld was given.
6945if test "${with_gnu_ld+set}" = set; then :
6946  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6947else
6948  with_gnu_ld=no
6949fi
6950
6951ac_prog=ld
6952if test yes = "$GCC"; then
6953  # Check if gcc -print-prog-name=ld gives a path.
6954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6955$as_echo_n "checking for ld used by $CC... " >&6; }
6956  case $host in
6957  *-*-mingw*)
6958    # gcc leaves a trailing carriage return, which upsets mingw
6959    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6960  *)
6961    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6962  esac
6963  case $ac_prog in
6964    # Accept absolute paths.
6965    [\\/]* | ?:[\\/]*)
6966      re_direlt='/[^/][^/]*/\.\./'
6967      # Canonicalize the pathname of ld
6968      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6969      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6970	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6971      done
6972      test -z "$LD" && LD=$ac_prog
6973      ;;
6974  "")
6975    # If it fails, then pretend we aren't using GCC.
6976    ac_prog=ld
6977    ;;
6978  *)
6979    # If it is relative, then search for the first ld in PATH.
6980    with_gnu_ld=unknown
6981    ;;
6982  esac
6983elif test yes = "$with_gnu_ld"; then
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6985$as_echo_n "checking for GNU ld... " >&6; }
6986else
6987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6988$as_echo_n "checking for non-GNU ld... " >&6; }
6989fi
6990if ${lt_cv_path_LD+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993  if test -z "$LD"; then
6994  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6995  for ac_dir in $PATH; do
6996    IFS=$lt_save_ifs
6997    test -z "$ac_dir" && ac_dir=.
6998    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6999      lt_cv_path_LD=$ac_dir/$ac_prog
7000      # Check to see if the program is GNU ld.  I'd rather use --version,
7001      # but apparently some variants of GNU ld only accept -v.
7002      # Break only if it was the GNU/non-GNU ld that we prefer.
7003      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7004      *GNU* | *'with BFD'*)
7005	test no != "$with_gnu_ld" && break
7006	;;
7007      *)
7008	test yes != "$with_gnu_ld" && break
7009	;;
7010      esac
7011    fi
7012  done
7013  IFS=$lt_save_ifs
7014else
7015  lt_cv_path_LD=$LD # Let the user override the test with a path.
7016fi
7017fi
7018
7019LD=$lt_cv_path_LD
7020if test -n "$LD"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7022$as_echo "$LD" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7029$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7030if ${lt_cv_prog_gnu_ld+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7034case `$LD -v 2>&1 </dev/null` in
7035*GNU* | *'with BFD'*)
7036  lt_cv_prog_gnu_ld=yes
7037  ;;
7038*)
7039  lt_cv_prog_gnu_ld=no
7040  ;;
7041esac
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7044$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7045with_gnu_ld=$lt_cv_prog_gnu_ld
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7056$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7057if ${lt_cv_path_NM+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  if test -n "$NM"; then
7061  # Let the user override the test.
7062  lt_cv_path_NM=$NM
7063else
7064  lt_nm_to_check=${ac_tool_prefix}nm
7065  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7066    lt_nm_to_check="$lt_nm_to_check nm"
7067  fi
7068  for lt_tmp_nm in $lt_nm_to_check; do
7069    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7070    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7071      IFS=$lt_save_ifs
7072      test -z "$ac_dir" && ac_dir=.
7073      tmp_nm=$ac_dir/$lt_tmp_nm
7074      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7075	# Check to see if the nm accepts a BSD-compat flag.
7076	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7077	#   nm: unknown option "B" ignored
7078	# Tru64's nm complains that /dev/null is an invalid object file
7079	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7080	case $build_os in
7081	mingw*) lt_bad_file=conftest.nm/nofile ;;
7082	*) lt_bad_file=/dev/null ;;
7083	esac
7084	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7085	*$lt_bad_file* | *'Invalid file or object type'*)
7086	  lt_cv_path_NM="$tmp_nm -B"
7087	  break 2
7088	  ;;
7089	*)
7090	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7091	  */dev/null*)
7092	    lt_cv_path_NM="$tmp_nm -p"
7093	    break 2
7094	    ;;
7095	  *)
7096	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7097	    continue # so that we can try to find one that supports BSD flags
7098	    ;;
7099	  esac
7100	  ;;
7101	esac
7102      fi
7103    done
7104    IFS=$lt_save_ifs
7105  done
7106  : ${lt_cv_path_NM=no}
7107fi
7108fi
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7110$as_echo "$lt_cv_path_NM" >&6; }
7111if test no != "$lt_cv_path_NM"; then
7112  NM=$lt_cv_path_NM
7113else
7114  # Didn't find any BSD compatible name lister, look for dumpbin.
7115  if test -n "$DUMPBIN"; then :
7116    # Let the user override the test.
7117  else
7118    if test -n "$ac_tool_prefix"; then
7119  for ac_prog in dumpbin "link -dump"
7120  do
7121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if ${ac_cv_prog_DUMPBIN+:} false; then :
7126  $as_echo_n "(cached) " >&6
7127else
7128  if test -n "$DUMPBIN"; then
7129  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136    for ac_exec_ext in '' $ac_executable_extensions; do
7137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143  done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148DUMPBIN=$ac_cv_prog_DUMPBIN
7149if test -n "$DUMPBIN"; then
7150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7151$as_echo "$DUMPBIN" >&6; }
7152else
7153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
7155fi
7156
7157
7158    test -n "$DUMPBIN" && break
7159  done
7160fi
7161if test -z "$DUMPBIN"; then
7162  ac_ct_DUMPBIN=$DUMPBIN
7163  for ac_prog in dumpbin "link -dump"
7164do
7165  # Extract the first word of "$ac_prog", so it can be a program name with args.
7166set dummy $ac_prog; ac_word=$2
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168$as_echo_n "checking for $ac_word... " >&6; }
7169if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7170  $as_echo_n "(cached) " >&6
7171else
7172  if test -n "$ac_ct_DUMPBIN"; then
7173  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178  IFS=$as_save_IFS
7179  test -z "$as_dir" && as_dir=.
7180    for ac_exec_ext in '' $ac_executable_extensions; do
7181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184    break 2
7185  fi
7186done
7187  done
7188IFS=$as_save_IFS
7189
7190fi
7191fi
7192ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7193if test -n "$ac_ct_DUMPBIN"; then
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7195$as_echo "$ac_ct_DUMPBIN" >&6; }
7196else
7197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199fi
7200
7201
7202  test -n "$ac_ct_DUMPBIN" && break
7203done
7204
7205  if test "x$ac_ct_DUMPBIN" = x; then
7206    DUMPBIN=":"
7207  else
7208    case $cross_compiling:$ac_tool_warned in
7209yes:)
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212ac_tool_warned=yes ;;
7213esac
7214    DUMPBIN=$ac_ct_DUMPBIN
7215  fi
7216fi
7217
7218    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7219    *COFF*)
7220      DUMPBIN="$DUMPBIN -symbols -headers"
7221      ;;
7222    *)
7223      DUMPBIN=:
7224      ;;
7225    esac
7226  fi
7227
7228  if test : != "$DUMPBIN"; then
7229    NM=$DUMPBIN
7230  fi
7231fi
7232test -z "$NM" && NM=nm
7233
7234
7235
7236
7237
7238
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7240$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7241if ${lt_cv_nm_interface+:} false; then :
7242  $as_echo_n "(cached) " >&6
7243else
7244  lt_cv_nm_interface="BSD nm"
7245  echo "int some_variable = 0;" > conftest.$ac_ext
7246  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7247  (eval "$ac_compile" 2>conftest.err)
7248  cat conftest.err >&5
7249  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7250  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7251  cat conftest.err >&5
7252  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7253  cat conftest.out >&5
7254  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7255    lt_cv_nm_interface="MS dumpbin"
7256  fi
7257  rm -f conftest*
7258fi
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7260$as_echo "$lt_cv_nm_interface" >&6; }
7261
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7263$as_echo_n "checking whether ln -s works... " >&6; }
7264LN_S=$as_ln_s
7265if test "$LN_S" = "ln -s"; then
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7267$as_echo "yes" >&6; }
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7270$as_echo "no, using $LN_S" >&6; }
7271fi
7272
7273# find the maximum length of command line arguments
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7275$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7276if ${lt_cv_sys_max_cmd_len+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279    i=0
7280  teststring=ABCD
7281
7282  case $build_os in
7283  msdosdjgpp*)
7284    # On DJGPP, this test can blow up pretty badly due to problems in libc
7285    # (any single argument exceeding 2000 bytes causes a buffer overrun
7286    # during glob expansion).  Even if it were fixed, the result of this
7287    # check would be larger than it should be.
7288    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7289    ;;
7290
7291  gnu*)
7292    # Under GNU Hurd, this test is not required because there is
7293    # no limit to the length of command line arguments.
7294    # Libtool will interpret -1 as no limit whatsoever
7295    lt_cv_sys_max_cmd_len=-1;
7296    ;;
7297
7298  cygwin* | mingw* | cegcc*)
7299    # On Win9x/ME, this test blows up -- it succeeds, but takes
7300    # about 5 minutes as the teststring grows exponentially.
7301    # Worse, since 9x/ME are not pre-emptively multitasking,
7302    # you end up with a "frozen" computer, even though with patience
7303    # the test eventually succeeds (with a max line length of 256k).
7304    # Instead, let's just punt: use the minimum linelength reported by
7305    # all of the supported platforms: 8192 (on NT/2K/XP).
7306    lt_cv_sys_max_cmd_len=8192;
7307    ;;
7308
7309  mint*)
7310    # On MiNT this can take a long time and run out of memory.
7311    lt_cv_sys_max_cmd_len=8192;
7312    ;;
7313
7314  amigaos*)
7315    # On AmigaOS with pdksh, this test takes hours, literally.
7316    # So we just punt and use a minimum line length of 8192.
7317    lt_cv_sys_max_cmd_len=8192;
7318    ;;
7319
7320  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7321    # This has been around since 386BSD, at least.  Likely further.
7322    if test -x /sbin/sysctl; then
7323      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7324    elif test -x /usr/sbin/sysctl; then
7325      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7326    else
7327      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7328    fi
7329    # And add a safety zone
7330    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7331    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7332    ;;
7333
7334  interix*)
7335    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7336    lt_cv_sys_max_cmd_len=196608
7337    ;;
7338
7339  os2*)
7340    # The test takes a long time on OS/2.
7341    lt_cv_sys_max_cmd_len=8192
7342    ;;
7343
7344  osf*)
7345    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7346    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7347    # nice to cause kernel panics so lets avoid the loop below.
7348    # First set a reasonable default.
7349    lt_cv_sys_max_cmd_len=16384
7350    #
7351    if test -x /sbin/sysconfig; then
7352      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7353        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7354      esac
7355    fi
7356    ;;
7357  sco3.2v5*)
7358    lt_cv_sys_max_cmd_len=102400
7359    ;;
7360  sysv5* | sco5v6* | sysv4.2uw2*)
7361    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7362    if test -n "$kargmax"; then
7363      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7364    else
7365      lt_cv_sys_max_cmd_len=32768
7366    fi
7367    ;;
7368  *)
7369    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7370    if test -n "$lt_cv_sys_max_cmd_len" && \
7371       test undefined != "$lt_cv_sys_max_cmd_len"; then
7372      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7373      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7374    else
7375      # Make teststring a little bigger before we do anything with it.
7376      # a 1K string should be a reasonable start.
7377      for i in 1 2 3 4 5 6 7 8; do
7378        teststring=$teststring$teststring
7379      done
7380      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7381      # If test is not a shell built-in, we'll probably end up computing a
7382      # maximum length that is only half of the actual maximum length, but
7383      # we can't tell.
7384      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7385	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7386	      test 17 != "$i" # 1/2 MB should be enough
7387      do
7388        i=`expr $i + 1`
7389        teststring=$teststring$teststring
7390      done
7391      # Only check the string length outside the loop.
7392      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7393      teststring=
7394      # Add a significant safety factor because C++ compilers can tack on
7395      # massive amounts of additional arguments before passing them to the
7396      # linker.  It appears as though 1/2 is a usable value.
7397      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7398    fi
7399    ;;
7400  esac
7401
7402fi
7403
7404if test -n "$lt_cv_sys_max_cmd_len"; then
7405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7406$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7407else
7408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7409$as_echo "none" >&6; }
7410fi
7411max_cmd_len=$lt_cv_sys_max_cmd_len
7412
7413
7414
7415
7416
7417
7418: ${CP="cp -f"}
7419: ${MV="mv -f"}
7420: ${RM="rm -f"}
7421
7422if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7423  lt_unset=unset
7424else
7425  lt_unset=false
7426fi
7427
7428
7429
7430
7431
7432# test EBCDIC or ASCII
7433case `echo X|tr X '\101'` in
7434 A) # ASCII based system
7435    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7436  lt_SP2NL='tr \040 \012'
7437  lt_NL2SP='tr \015\012 \040\040'
7438  ;;
7439 *) # EBCDIC based system
7440  lt_SP2NL='tr \100 \n'
7441  lt_NL2SP='tr \r\n \100\100'
7442  ;;
7443esac
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7454$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7455if ${lt_cv_to_host_file_cmd+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  case $host in
7459  *-*-mingw* )
7460    case $build in
7461      *-*-mingw* ) # actually msys
7462        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7463        ;;
7464      *-*-cygwin* )
7465        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7466        ;;
7467      * ) # otherwise, assume *nix
7468        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7469        ;;
7470    esac
7471    ;;
7472  *-*-cygwin* )
7473    case $build in
7474      *-*-mingw* ) # actually msys
7475        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7476        ;;
7477      *-*-cygwin* )
7478        lt_cv_to_host_file_cmd=func_convert_file_noop
7479        ;;
7480      * ) # otherwise, assume *nix
7481        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7482        ;;
7483    esac
7484    ;;
7485  * ) # unhandled hosts (and "normal" native builds)
7486    lt_cv_to_host_file_cmd=func_convert_file_noop
7487    ;;
7488esac
7489
7490fi
7491
7492to_host_file_cmd=$lt_cv_to_host_file_cmd
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7494$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7495
7496
7497
7498
7499
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7501$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7502if ${lt_cv_to_tool_file_cmd+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  #assume ordinary cross tools, or native build.
7506lt_cv_to_tool_file_cmd=func_convert_file_noop
7507case $host in
7508  *-*-mingw* )
7509    case $build in
7510      *-*-mingw* ) # actually msys
7511        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7512        ;;
7513    esac
7514    ;;
7515esac
7516
7517fi
7518
7519to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7521$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7522
7523
7524
7525
7526
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7528$as_echo_n "checking for $LD option to reload object files... " >&6; }
7529if ${lt_cv_ld_reload_flag+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  lt_cv_ld_reload_flag='-r'
7533fi
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7535$as_echo "$lt_cv_ld_reload_flag" >&6; }
7536reload_flag=$lt_cv_ld_reload_flag
7537case $reload_flag in
7538"" | " "*) ;;
7539*) reload_flag=" $reload_flag" ;;
7540esac
7541reload_cmds='$LD$reload_flag -o $output$reload_objs'
7542case $host_os in
7543  cygwin* | mingw* | pw32* | cegcc*)
7544    if test yes != "$GCC"; then
7545      reload_cmds=false
7546    fi
7547    ;;
7548  darwin*)
7549    if test yes = "$GCC"; then
7550      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7551    else
7552      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7553    fi
7554    ;;
7555esac
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565if test -n "$ac_tool_prefix"; then
7566  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7567set dummy ${ac_tool_prefix}objdump; ac_word=$2
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569$as_echo_n "checking for $ac_word... " >&6; }
7570if ${ac_cv_prog_OBJDUMP+:} false; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  if test -n "$OBJDUMP"; then
7574  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579  IFS=$as_save_IFS
7580  test -z "$as_dir" && as_dir=.
7581    for ac_exec_ext in '' $ac_executable_extensions; do
7582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585    break 2
7586  fi
7587done
7588  done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593OBJDUMP=$ac_cv_prog_OBJDUMP
7594if test -n "$OBJDUMP"; then
7595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7596$as_echo "$OBJDUMP" >&6; }
7597else
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
7601
7602
7603fi
7604if test -z "$ac_cv_prog_OBJDUMP"; then
7605  ac_ct_OBJDUMP=$OBJDUMP
7606  # Extract the first word of "objdump", so it can be a program name with args.
7607set dummy objdump; ac_word=$2
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
7610if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  if test -n "$ac_ct_OBJDUMP"; then
7614  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619  IFS=$as_save_IFS
7620  test -z "$as_dir" && as_dir=.
7621    for ac_exec_ext in '' $ac_executable_extensions; do
7622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625    break 2
7626  fi
7627done
7628  done
7629IFS=$as_save_IFS
7630
7631fi
7632fi
7633ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7634if test -n "$ac_ct_OBJDUMP"; then
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7636$as_echo "$ac_ct_OBJDUMP" >&6; }
7637else
7638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642  if test "x$ac_ct_OBJDUMP" = x; then
7643    OBJDUMP="false"
7644  else
7645    case $cross_compiling:$ac_tool_warned in
7646yes:)
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649ac_tool_warned=yes ;;
7650esac
7651    OBJDUMP=$ac_ct_OBJDUMP
7652  fi
7653else
7654  OBJDUMP="$ac_cv_prog_OBJDUMP"
7655fi
7656
7657test -z "$OBJDUMP" && OBJDUMP=objdump
7658
7659
7660
7661
7662
7663
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7665$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7666if ${lt_cv_deplibs_check_method+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  lt_cv_file_magic_cmd='$MAGIC_CMD'
7670lt_cv_file_magic_test_file=
7671lt_cv_deplibs_check_method='unknown'
7672# Need to set the preceding variable on all platforms that support
7673# interlibrary dependencies.
7674# 'none' -- dependencies not supported.
7675# 'unknown' -- same as none, but documents that we really don't know.
7676# 'pass_all' -- all dependencies passed with no checks.
7677# 'test_compile' -- check by making test program.
7678# 'file_magic [[regex]]' -- check by looking for files in library path
7679# that responds to the $file_magic_cmd with a given extended regex.
7680# If you have 'file' or equivalent on your system and you're not sure
7681# whether 'pass_all' will *always* work, you probably want this one.
7682
7683case $host_os in
7684aix[4-9]*)
7685  lt_cv_deplibs_check_method=pass_all
7686  ;;
7687
7688beos*)
7689  lt_cv_deplibs_check_method=pass_all
7690  ;;
7691
7692bsdi[45]*)
7693  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7694  lt_cv_file_magic_cmd='/usr/bin/file -L'
7695  lt_cv_file_magic_test_file=/shlib/libc.so
7696  ;;
7697
7698cygwin*)
7699  # func_win32_libid is a shell function defined in ltmain.sh
7700  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7701  lt_cv_file_magic_cmd='func_win32_libid'
7702  ;;
7703
7704mingw* | pw32*)
7705  # Base MSYS/MinGW do not provide the 'file' command needed by
7706  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7707  # unless we find 'file', for example because we are cross-compiling.
7708  if ( file / ) >/dev/null 2>&1; then
7709    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7710    lt_cv_file_magic_cmd='func_win32_libid'
7711  else
7712    # Keep this pattern in sync with the one in func_win32_libid.
7713    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7714    lt_cv_file_magic_cmd='$OBJDUMP -f'
7715  fi
7716  ;;
7717
7718cegcc*)
7719  # use the weaker test based on 'objdump'. See mingw*.
7720  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7721  lt_cv_file_magic_cmd='$OBJDUMP -f'
7722  ;;
7723
7724darwin* | rhapsody*)
7725  lt_cv_deplibs_check_method=pass_all
7726  ;;
7727
7728freebsd* | dragonfly*)
7729  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7730    case $host_cpu in
7731    i*86 )
7732      # Not sure whether the presence of OpenBSD here was a mistake.
7733      # Let's accept both of them until this is cleared up.
7734      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7735      lt_cv_file_magic_cmd=/usr/bin/file
7736      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7737      ;;
7738    esac
7739  else
7740    lt_cv_deplibs_check_method=pass_all
7741  fi
7742  ;;
7743
7744haiku*)
7745  lt_cv_deplibs_check_method=pass_all
7746  ;;
7747
7748hpux10.20* | hpux11*)
7749  lt_cv_file_magic_cmd=/usr/bin/file
7750  case $host_cpu in
7751  ia64*)
7752    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7753    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7754    ;;
7755  hppa*64*)
7756    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]'
7757    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7758    ;;
7759  *)
7760    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7761    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7762    ;;
7763  esac
7764  ;;
7765
7766interix[3-9]*)
7767  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7768  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7769  ;;
7770
7771irix5* | irix6* | nonstopux*)
7772  case $LD in
7773  *-32|*"-32 ") libmagic=32-bit;;
7774  *-n32|*"-n32 ") libmagic=N32;;
7775  *-64|*"-64 ") libmagic=64-bit;;
7776  *) libmagic=never-match;;
7777  esac
7778  lt_cv_deplibs_check_method=pass_all
7779  ;;
7780
7781# This must be glibc/ELF.
7782linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7783  lt_cv_deplibs_check_method=pass_all
7784  ;;
7785
7786netbsd* | netbsdelf*-gnu)
7787  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7788    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7789  else
7790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7791  fi
7792  ;;
7793
7794newos6*)
7795  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7796  lt_cv_file_magic_cmd=/usr/bin/file
7797  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7798  ;;
7799
7800*nto* | *qnx*)
7801  lt_cv_deplibs_check_method=pass_all
7802  ;;
7803
7804openbsd* | bitrig*)
7805  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7806    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7807  else
7808    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7809  fi
7810  ;;
7811
7812osf3* | osf4* | osf5*)
7813  lt_cv_deplibs_check_method=pass_all
7814  ;;
7815
7816rdos*)
7817  lt_cv_deplibs_check_method=pass_all
7818  ;;
7819
7820solaris*)
7821  lt_cv_deplibs_check_method=pass_all
7822  ;;
7823
7824sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7825  lt_cv_deplibs_check_method=pass_all
7826  ;;
7827
7828sysv4 | sysv4.3*)
7829  case $host_vendor in
7830  motorola)
7831    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]'
7832    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7833    ;;
7834  ncr)
7835    lt_cv_deplibs_check_method=pass_all
7836    ;;
7837  sequent)
7838    lt_cv_file_magic_cmd='/bin/file'
7839    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7840    ;;
7841  sni)
7842    lt_cv_file_magic_cmd='/bin/file'
7843    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7844    lt_cv_file_magic_test_file=/lib/libc.so
7845    ;;
7846  siemens)
7847    lt_cv_deplibs_check_method=pass_all
7848    ;;
7849  pc)
7850    lt_cv_deplibs_check_method=pass_all
7851    ;;
7852  esac
7853  ;;
7854
7855tpf*)
7856  lt_cv_deplibs_check_method=pass_all
7857  ;;
7858os2*)
7859  lt_cv_deplibs_check_method=pass_all
7860  ;;
7861esac
7862
7863fi
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7865$as_echo "$lt_cv_deplibs_check_method" >&6; }
7866
7867file_magic_glob=
7868want_nocaseglob=no
7869if test "$build" = "$host"; then
7870  case $host_os in
7871  mingw* | pw32*)
7872    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7873      want_nocaseglob=yes
7874    else
7875      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7876    fi
7877    ;;
7878  esac
7879fi
7880
7881file_magic_cmd=$lt_cv_file_magic_cmd
7882deplibs_check_method=$lt_cv_deplibs_check_method
7883test -z "$deplibs_check_method" && deplibs_check_method=unknown
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906if test -n "$ac_tool_prefix"; then
7907  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7908set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910$as_echo_n "checking for $ac_word... " >&6; }
7911if ${ac_cv_prog_DLLTOOL+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  if test -n "$DLLTOOL"; then
7915  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7916else
7917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920  IFS=$as_save_IFS
7921  test -z "$as_dir" && as_dir=.
7922    for ac_exec_ext in '' $ac_executable_extensions; do
7923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926    break 2
7927  fi
7928done
7929  done
7930IFS=$as_save_IFS
7931
7932fi
7933fi
7934DLLTOOL=$ac_cv_prog_DLLTOOL
7935if test -n "$DLLTOOL"; then
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7937$as_echo "$DLLTOOL" >&6; }
7938else
7939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940$as_echo "no" >&6; }
7941fi
7942
7943
7944fi
7945if test -z "$ac_cv_prog_DLLTOOL"; then
7946  ac_ct_DLLTOOL=$DLLTOOL
7947  # Extract the first word of "dlltool", so it can be a program name with args.
7948set dummy dlltool; ac_word=$2
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  if test -n "$ac_ct_DLLTOOL"; then
7955  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960  IFS=$as_save_IFS
7961  test -z "$as_dir" && as_dir=.
7962    for ac_exec_ext in '' $ac_executable_extensions; do
7963  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966    break 2
7967  fi
7968done
7969  done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7975if test -n "$ac_ct_DLLTOOL"; then
7976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7977$as_echo "$ac_ct_DLLTOOL" >&6; }
7978else
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983  if test "x$ac_ct_DLLTOOL" = x; then
7984    DLLTOOL="false"
7985  else
7986    case $cross_compiling:$ac_tool_warned in
7987yes:)
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7990ac_tool_warned=yes ;;
7991esac
7992    DLLTOOL=$ac_ct_DLLTOOL
7993  fi
7994else
7995  DLLTOOL="$ac_cv_prog_DLLTOOL"
7996fi
7997
7998test -z "$DLLTOOL" && DLLTOOL=dlltool
7999
8000
8001
8002
8003
8004
8005
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8007$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8008if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  lt_cv_sharedlib_from_linklib_cmd='unknown'
8012
8013case $host_os in
8014cygwin* | mingw* | pw32* | cegcc*)
8015  # two different shell functions defined in ltmain.sh;
8016  # decide which one to use based on capabilities of $DLLTOOL
8017  case `$DLLTOOL --help 2>&1` in
8018  *--identify-strict*)
8019    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8020    ;;
8021  *)
8022    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8023    ;;
8024  esac
8025  ;;
8026*)
8027  # fallback: assume linklib IS sharedlib
8028  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8029  ;;
8030esac
8031
8032fi
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8034$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8035sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8036test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8037
8038
8039
8040
8041
8042
8043
8044
8045if test -n "$ac_tool_prefix"; then
8046  for ac_prog in ar
8047  do
8048    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8049set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
8052if ${ac_cv_prog_AR+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  if test -n "$AR"; then
8056  ac_cv_prog_AR="$AR" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061  IFS=$as_save_IFS
8062  test -z "$as_dir" && as_dir=.
8063    for ac_exec_ext in '' $ac_executable_extensions; do
8064  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8065    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067    break 2
8068  fi
8069done
8070  done
8071IFS=$as_save_IFS
8072
8073fi
8074fi
8075AR=$ac_cv_prog_AR
8076if test -n "$AR"; then
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8078$as_echo "$AR" >&6; }
8079else
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083
8084
8085    test -n "$AR" && break
8086  done
8087fi
8088if test -z "$AR"; then
8089  ac_ct_AR=$AR
8090  for ac_prog in ar
8091do
8092  # Extract the first word of "$ac_prog", so it can be a program name with args.
8093set dummy $ac_prog; ac_word=$2
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095$as_echo_n "checking for $ac_word... " >&6; }
8096if ${ac_cv_prog_ac_ct_AR+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  if test -n "$ac_ct_AR"; then
8100  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8101else
8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103for as_dir in $PATH
8104do
8105  IFS=$as_save_IFS
8106  test -z "$as_dir" && as_dir=.
8107    for ac_exec_ext in '' $ac_executable_extensions; do
8108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109    ac_cv_prog_ac_ct_AR="$ac_prog"
8110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111    break 2
8112  fi
8113done
8114  done
8115IFS=$as_save_IFS
8116
8117fi
8118fi
8119ac_ct_AR=$ac_cv_prog_ac_ct_AR
8120if test -n "$ac_ct_AR"; then
8121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8122$as_echo "$ac_ct_AR" >&6; }
8123else
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }
8126fi
8127
8128
8129  test -n "$ac_ct_AR" && break
8130done
8131
8132  if test "x$ac_ct_AR" = x; then
8133    AR="false"
8134  else
8135    case $cross_compiling:$ac_tool_warned in
8136yes:)
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139ac_tool_warned=yes ;;
8140esac
8141    AR=$ac_ct_AR
8142  fi
8143fi
8144
8145: ${AR=ar}
8146: ${AR_FLAGS=cru}
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8159$as_echo_n "checking for archiver @FILE support... " >&6; }
8160if ${lt_cv_ar_at_file+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  lt_cv_ar_at_file=no
8164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166
8167int
8168main ()
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176  echo conftest.$ac_objext > conftest.lst
8177      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8178      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8179  (eval $lt_ar_try) 2>&5
8180  ac_status=$?
8181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182  test $ac_status = 0; }
8183      if test 0 -eq "$ac_status"; then
8184	# Ensure the archiver fails upon bogus file names.
8185	rm -f conftest.$ac_objext libconftest.a
8186	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8187  (eval $lt_ar_try) 2>&5
8188  ac_status=$?
8189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8190  test $ac_status = 0; }
8191	if test 0 -ne "$ac_status"; then
8192          lt_cv_ar_at_file=@
8193        fi
8194      fi
8195      rm -f conftest.* libconftest.a
8196
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199
8200fi
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8202$as_echo "$lt_cv_ar_at_file" >&6; }
8203
8204if test no = "$lt_cv_ar_at_file"; then
8205  archiver_list_spec=
8206else
8207  archiver_list_spec=$lt_cv_ar_at_file
8208fi
8209
8210
8211
8212
8213
8214
8215
8216if test -n "$ac_tool_prefix"; then
8217  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8218set dummy ${ac_tool_prefix}strip; ac_word=$2
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if ${ac_cv_prog_STRIP+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  if test -n "$STRIP"; then
8225  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8226else
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230  IFS=$as_save_IFS
8231  test -z "$as_dir" && as_dir=.
8232    for ac_exec_ext in '' $ac_executable_extensions; do
8233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236    break 2
8237  fi
8238done
8239  done
8240IFS=$as_save_IFS
8241
8242fi
8243fi
8244STRIP=$ac_cv_prog_STRIP
8245if test -n "$STRIP"; then
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8247$as_echo "$STRIP" >&6; }
8248else
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
8251fi
8252
8253
8254fi
8255if test -z "$ac_cv_prog_STRIP"; then
8256  ac_ct_STRIP=$STRIP
8257  # Extract the first word of "strip", so it can be a program name with args.
8258set dummy strip; ac_word=$2
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260$as_echo_n "checking for $ac_word... " >&6; }
8261if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  if test -n "$ac_ct_STRIP"; then
8265  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8266else
8267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268for as_dir in $PATH
8269do
8270  IFS=$as_save_IFS
8271  test -z "$as_dir" && as_dir=.
8272    for ac_exec_ext in '' $ac_executable_extensions; do
8273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274    ac_cv_prog_ac_ct_STRIP="strip"
8275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276    break 2
8277  fi
8278done
8279  done
8280IFS=$as_save_IFS
8281
8282fi
8283fi
8284ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8285if test -n "$ac_ct_STRIP"; then
8286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8287$as_echo "$ac_ct_STRIP" >&6; }
8288else
8289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
8291fi
8292
8293  if test "x$ac_ct_STRIP" = x; then
8294    STRIP=":"
8295  else
8296    case $cross_compiling:$ac_tool_warned in
8297yes:)
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8300ac_tool_warned=yes ;;
8301esac
8302    STRIP=$ac_ct_STRIP
8303  fi
8304else
8305  STRIP="$ac_cv_prog_STRIP"
8306fi
8307
8308test -z "$STRIP" && STRIP=:
8309
8310
8311
8312
8313
8314
8315if test -n "$ac_tool_prefix"; then
8316  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8317set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if ${ac_cv_prog_RANLIB+:} false; then :
8321  $as_echo_n "(cached) " >&6
8322else
8323  if test -n "$RANLIB"; then
8324  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8325else
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329  IFS=$as_save_IFS
8330  test -z "$as_dir" && as_dir=.
8331    for ac_exec_ext in '' $ac_executable_extensions; do
8332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335    break 2
8336  fi
8337done
8338  done
8339IFS=$as_save_IFS
8340
8341fi
8342fi
8343RANLIB=$ac_cv_prog_RANLIB
8344if test -n "$RANLIB"; then
8345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8346$as_echo "$RANLIB" >&6; }
8347else
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8351
8352
8353fi
8354if test -z "$ac_cv_prog_RANLIB"; then
8355  ac_ct_RANLIB=$RANLIB
8356  # Extract the first word of "ranlib", so it can be a program name with args.
8357set dummy ranlib; ac_word=$2
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  if test -n "$ac_ct_RANLIB"; then
8364  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8365else
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369  IFS=$as_save_IFS
8370  test -z "$as_dir" && as_dir=.
8371    for ac_exec_ext in '' $ac_executable_extensions; do
8372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373    ac_cv_prog_ac_ct_RANLIB="ranlib"
8374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375    break 2
8376  fi
8377done
8378  done
8379IFS=$as_save_IFS
8380
8381fi
8382fi
8383ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8384if test -n "$ac_ct_RANLIB"; then
8385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8386$as_echo "$ac_ct_RANLIB" >&6; }
8387else
8388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
8390fi
8391
8392  if test "x$ac_ct_RANLIB" = x; then
8393    RANLIB=":"
8394  else
8395    case $cross_compiling:$ac_tool_warned in
8396yes:)
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8399ac_tool_warned=yes ;;
8400esac
8401    RANLIB=$ac_ct_RANLIB
8402  fi
8403else
8404  RANLIB="$ac_cv_prog_RANLIB"
8405fi
8406
8407test -z "$RANLIB" && RANLIB=:
8408
8409
8410
8411
8412
8413
8414# Determine commands to create old-style static archives.
8415old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8416old_postinstall_cmds='chmod 644 $oldlib'
8417old_postuninstall_cmds=
8418
8419if test -n "$RANLIB"; then
8420  case $host_os in
8421  bitrig* | openbsd*)
8422    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8423    ;;
8424  *)
8425    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8426    ;;
8427  esac
8428  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8429fi
8430
8431case $host_os in
8432  darwin*)
8433    lock_old_archive_extraction=yes ;;
8434  *)
8435    lock_old_archive_extraction=no ;;
8436esac
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476# If no C compiler was specified, use CC.
8477LTCC=${LTCC-"$CC"}
8478
8479# If no C compiler flags were specified, use CFLAGS.
8480LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8481
8482# Allow CC to be a program name with arguments.
8483compiler=$CC
8484
8485
8486# Check for command to grab the raw symbol name followed by C symbol from nm.
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8488$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8489if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8490  $as_echo_n "(cached) " >&6
8491else
8492
8493# These are sane defaults that work on at least a few old systems.
8494# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8495
8496# Character class describing NM global symbol codes.
8497symcode='[BCDEGRST]'
8498
8499# Regexp to match symbols that can be accessed directly from C.
8500sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8501
8502# Define system-specific variables.
8503case $host_os in
8504aix*)
8505  symcode='[BCDT]'
8506  ;;
8507cygwin* | mingw* | pw32* | cegcc*)
8508  symcode='[ABCDGISTW]'
8509  ;;
8510hpux*)
8511  if test ia64 = "$host_cpu"; then
8512    symcode='[ABCDEGRST]'
8513  fi
8514  ;;
8515irix* | nonstopux*)
8516  symcode='[BCDEGRST]'
8517  ;;
8518osf*)
8519  symcode='[BCDEGQRST]'
8520  ;;
8521solaris*)
8522  symcode='[BDRT]'
8523  ;;
8524sco3.2v5*)
8525  symcode='[DT]'
8526  ;;
8527sysv4.2uw2*)
8528  symcode='[DT]'
8529  ;;
8530sysv5* | sco5v6* | unixware* | OpenUNIX*)
8531  symcode='[ABDT]'
8532  ;;
8533sysv4)
8534  symcode='[DFNSTU]'
8535  ;;
8536esac
8537
8538# If we're using GNU nm, then use its standard symbol codes.
8539case `$NM -V 2>&1` in
8540*GNU* | *'with BFD'*)
8541  symcode='[ABCDGIRSTW]' ;;
8542esac
8543
8544if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8545  # Gets list of data symbols to import.
8546  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8547  # Adjust the below global symbol transforms to fixup imported variables.
8548  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8549  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8550  lt_c_name_lib_hook="\
8551  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8552  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8553else
8554  # Disable hooks by default.
8555  lt_cv_sys_global_symbol_to_import=
8556  lt_cdecl_hook=
8557  lt_c_name_hook=
8558  lt_c_name_lib_hook=
8559fi
8560
8561# Transform an extracted symbol line into a proper C declaration.
8562# Some systems (esp. on ia64) link data and code symbols differently,
8563# so use this general approach.
8564lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8565$lt_cdecl_hook\
8566" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8567" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8568
8569# Transform an extracted symbol line into symbol name and symbol address
8570lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8571$lt_c_name_hook\
8572" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8573" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8574
8575# Transform an extracted symbol line into symbol name with lib prefix and
8576# symbol address.
8577lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8578$lt_c_name_lib_hook\
8579" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8580" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8581" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8582
8583# Handle CRLF in mingw tool chain
8584opt_cr=
8585case $build_os in
8586mingw*)
8587  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8588  ;;
8589esac
8590
8591# Try without a prefix underscore, then with it.
8592for ac_symprfx in "" "_"; do
8593
8594  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8595  symxfrm="\\1 $ac_symprfx\\2 \\2"
8596
8597  # Write the raw and C identifiers.
8598  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8599    # Fake it for dumpbin and say T for any non-static function,
8600    # D for any global variable and I for any imported variable.
8601    # Also find C++ and __fastcall symbols from MSVC++,
8602    # which start with @ or ?.
8603    lt_cv_sys_global_symbol_pipe="$AWK '"\
8604"     {last_section=section; section=\$ 3};"\
8605"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8606"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8607"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8608"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8609"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8610"     \$ 0!~/External *\|/{next};"\
8611"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8612"     {if(hide[section]) next};"\
8613"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8614"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8615"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8616"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8617"     ' prfx=^$ac_symprfx"
8618  else
8619    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8620  fi
8621  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8622
8623  # Check to see that the pipe works correctly.
8624  pipe_works=no
8625
8626  rm -f conftest*
8627  cat > conftest.$ac_ext <<_LT_EOF
8628#ifdef __cplusplus
8629extern "C" {
8630#endif
8631char nm_test_var;
8632void nm_test_func(void);
8633void nm_test_func(void){}
8634#ifdef __cplusplus
8635}
8636#endif
8637int main(){nm_test_var='a';nm_test_func();return(0);}
8638_LT_EOF
8639
8640  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8641  (eval $ac_compile) 2>&5
8642  ac_status=$?
8643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8644  test $ac_status = 0; }; then
8645    # Now try to grab the symbols.
8646    nlist=conftest.nm
8647    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8648    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8649      # Try sorting and uniquifying the output.
8650      if sort "$nlist" | uniq > "$nlist"T; then
8651	mv -f "$nlist"T "$nlist"
8652      else
8653	rm -f "$nlist"T
8654      fi
8655
8656      # Make sure that we snagged all the symbols we need.
8657      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8658	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8659	  cat <<_LT_EOF > conftest.$ac_ext
8660/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8661#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8662/* DATA imports from DLLs on WIN32 can't be const, because runtime
8663   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8664# define LT_DLSYM_CONST
8665#elif defined __osf__
8666/* This system does not cope well with relocations in const data.  */
8667# define LT_DLSYM_CONST
8668#else
8669# define LT_DLSYM_CONST const
8670#endif
8671
8672#ifdef __cplusplus
8673extern "C" {
8674#endif
8675
8676_LT_EOF
8677	  # Now generate the symbol file.
8678	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8679
8680	  cat <<_LT_EOF >> conftest.$ac_ext
8681
8682/* The mapping between symbol names and symbols.  */
8683LT_DLSYM_CONST struct {
8684  const char *name;
8685  void       *address;
8686}
8687lt__PROGRAM__LTX_preloaded_symbols[] =
8688{
8689  { "@PROGRAM@", (void *) 0 },
8690_LT_EOF
8691	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8692	  cat <<\_LT_EOF >> conftest.$ac_ext
8693  {0, (void *) 0}
8694};
8695
8696/* This works around a problem in FreeBSD linker */
8697#ifdef FREEBSD_WORKAROUND
8698static const void *lt_preloaded_setup() {
8699  return lt__PROGRAM__LTX_preloaded_symbols;
8700}
8701#endif
8702
8703#ifdef __cplusplus
8704}
8705#endif
8706_LT_EOF
8707	  # Now try linking the two files.
8708	  mv conftest.$ac_objext conftstm.$ac_objext
8709	  lt_globsym_save_LIBS=$LIBS
8710	  lt_globsym_save_CFLAGS=$CFLAGS
8711	  LIBS=conftstm.$ac_objext
8712	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8713	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8714  (eval $ac_link) 2>&5
8715  ac_status=$?
8716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8717  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8718	    pipe_works=yes
8719	  fi
8720	  LIBS=$lt_globsym_save_LIBS
8721	  CFLAGS=$lt_globsym_save_CFLAGS
8722	else
8723	  echo "cannot find nm_test_func in $nlist" >&5
8724	fi
8725      else
8726	echo "cannot find nm_test_var in $nlist" >&5
8727      fi
8728    else
8729      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8730    fi
8731  else
8732    echo "$progname: failed program was:" >&5
8733    cat conftest.$ac_ext >&5
8734  fi
8735  rm -rf conftest* conftst*
8736
8737  # Do not use the global_symbol_pipe unless it works.
8738  if test yes = "$pipe_works"; then
8739    break
8740  else
8741    lt_cv_sys_global_symbol_pipe=
8742  fi
8743done
8744
8745fi
8746
8747if test -z "$lt_cv_sys_global_symbol_pipe"; then
8748  lt_cv_sys_global_symbol_to_cdecl=
8749fi
8750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8752$as_echo "failed" >&6; }
8753else
8754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8755$as_echo "ok" >&6; }
8756fi
8757
8758# Response file support.
8759if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8760  nm_file_list_spec='@'
8761elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8762  nm_file_list_spec='@'
8763fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8802$as_echo_n "checking for sysroot... " >&6; }
8803
8804# Check whether --with-sysroot was given.
8805if test "${with_sysroot+set}" = set; then :
8806  withval=$with_sysroot;
8807else
8808  with_sysroot=no
8809fi
8810
8811
8812lt_sysroot=
8813case $with_sysroot in #(
8814 yes)
8815   if test yes = "$GCC"; then
8816     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8817   fi
8818   ;; #(
8819 /*)
8820   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8821   ;; #(
8822 no|'')
8823   ;; #(
8824 *)
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8826$as_echo "$with_sysroot" >&6; }
8827   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8828   ;;
8829esac
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8832$as_echo "${lt_sysroot:-no}" >&6; }
8833
8834
8835
8836
8837
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8839$as_echo_n "checking for a working dd... " >&6; }
8840if ${ac_cv_path_lt_DD+:} false; then :
8841  $as_echo_n "(cached) " >&6
8842else
8843  printf 0123456789abcdef0123456789abcdef >conftest.i
8844cat conftest.i conftest.i >conftest2.i
8845: ${lt_DD:=$DD}
8846if test -z "$lt_DD"; then
8847  ac_path_lt_DD_found=false
8848  # Loop through the user's path and test for each of PROGNAME-LIST
8849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852  IFS=$as_save_IFS
8853  test -z "$as_dir" && as_dir=.
8854    for ac_prog in dd; do
8855    for ac_exec_ext in '' $ac_executable_extensions; do
8856      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8857      as_fn_executable_p "$ac_path_lt_DD" || continue
8858if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8859  cmp -s conftest.i conftest.out \
8860  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8861fi
8862      $ac_path_lt_DD_found && break 3
8863    done
8864  done
8865  done
8866IFS=$as_save_IFS
8867  if test -z "$ac_cv_path_lt_DD"; then
8868    :
8869  fi
8870else
8871  ac_cv_path_lt_DD=$lt_DD
8872fi
8873
8874rm -f conftest.i conftest2.i conftest.out
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8877$as_echo "$ac_cv_path_lt_DD" >&6; }
8878
8879
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8881$as_echo_n "checking how to truncate binary pipes... " >&6; }
8882if ${lt_cv_truncate_bin+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  printf 0123456789abcdef0123456789abcdef >conftest.i
8886cat conftest.i conftest.i >conftest2.i
8887lt_cv_truncate_bin=
8888if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8889  cmp -s conftest.i conftest.out \
8890  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8891fi
8892rm -f conftest.i conftest2.i conftest.out
8893test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8894fi
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8896$as_echo "$lt_cv_truncate_bin" >&6; }
8897
8898
8899
8900
8901
8902
8903
8904# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8905func_cc_basename ()
8906{
8907    for cc_temp in $*""; do
8908      case $cc_temp in
8909        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8910        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8911        \-*) ;;
8912        *) break;;
8913      esac
8914    done
8915    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8916}
8917
8918# Check whether --enable-libtool-lock was given.
8919if test "${enable_libtool_lock+set}" = set; then :
8920  enableval=$enable_libtool_lock;
8921fi
8922
8923test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8924
8925# Some flags need to be propagated to the compiler or linker for good
8926# libtool support.
8927case $host in
8928ia64-*-hpux*)
8929  # Find out what ABI is being produced by ac_compile, and set mode
8930  # options accordingly.
8931  echo 'int i;' > conftest.$ac_ext
8932  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8933  (eval $ac_compile) 2>&5
8934  ac_status=$?
8935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8936  test $ac_status = 0; }; then
8937    case `/usr/bin/file conftest.$ac_objext` in
8938      *ELF-32*)
8939	HPUX_IA64_MODE=32
8940	;;
8941      *ELF-64*)
8942	HPUX_IA64_MODE=64
8943	;;
8944    esac
8945  fi
8946  rm -rf conftest*
8947  ;;
8948*-*-irix6*)
8949  # Find out what ABI is being produced by ac_compile, and set linker
8950  # options accordingly.
8951  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8953  (eval $ac_compile) 2>&5
8954  ac_status=$?
8955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8956  test $ac_status = 0; }; then
8957    if test yes = "$lt_cv_prog_gnu_ld"; then
8958      case `/usr/bin/file conftest.$ac_objext` in
8959	*32-bit*)
8960	  LD="${LD-ld} -melf32bsmip"
8961	  ;;
8962	*N32*)
8963	  LD="${LD-ld} -melf32bmipn32"
8964	  ;;
8965	*64-bit*)
8966	  LD="${LD-ld} -melf64bmip"
8967	;;
8968      esac
8969    else
8970      case `/usr/bin/file conftest.$ac_objext` in
8971	*32-bit*)
8972	  LD="${LD-ld} -32"
8973	  ;;
8974	*N32*)
8975	  LD="${LD-ld} -n32"
8976	  ;;
8977	*64-bit*)
8978	  LD="${LD-ld} -64"
8979	  ;;
8980      esac
8981    fi
8982  fi
8983  rm -rf conftest*
8984  ;;
8985
8986mips64*-*linux*)
8987  # Find out what ABI is being produced by ac_compile, and set linker
8988  # options accordingly.
8989  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8990  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8991  (eval $ac_compile) 2>&5
8992  ac_status=$?
8993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8994  test $ac_status = 0; }; then
8995    emul=elf
8996    case `/usr/bin/file conftest.$ac_objext` in
8997      *32-bit*)
8998	emul="${emul}32"
8999	;;
9000      *64-bit*)
9001	emul="${emul}64"
9002	;;
9003    esac
9004    case `/usr/bin/file conftest.$ac_objext` in
9005      *MSB*)
9006	emul="${emul}btsmip"
9007	;;
9008      *LSB*)
9009	emul="${emul}ltsmip"
9010	;;
9011    esac
9012    case `/usr/bin/file conftest.$ac_objext` in
9013      *N32*)
9014	emul="${emul}n32"
9015	;;
9016    esac
9017    LD="${LD-ld} -m $emul"
9018  fi
9019  rm -rf conftest*
9020  ;;
9021
9022x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9023s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9024  # Find out what ABI is being produced by ac_compile, and set linker
9025  # options accordingly.  Note that the listed cases only cover the
9026  # situations where additional linker options are needed (such as when
9027  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9028  # vice versa); the common cases where no linker options are needed do
9029  # not appear in the list.
9030  echo 'int i;' > conftest.$ac_ext
9031  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9032  (eval $ac_compile) 2>&5
9033  ac_status=$?
9034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9035  test $ac_status = 0; }; then
9036    case `/usr/bin/file conftest.o` in
9037      *32-bit*)
9038	case $host in
9039	  x86_64-*kfreebsd*-gnu)
9040	    LD="${LD-ld} -m elf_i386_fbsd"
9041	    ;;
9042	  x86_64-*linux*)
9043	    case `/usr/bin/file conftest.o` in
9044	      *x86-64*)
9045		LD="${LD-ld} -m elf32_x86_64"
9046		;;
9047	      *)
9048		LD="${LD-ld} -m elf_i386"
9049		;;
9050	    esac
9051	    ;;
9052	  powerpc64le-*linux*)
9053	    LD="${LD-ld} -m elf32lppclinux"
9054	    ;;
9055	  powerpc64-*linux*)
9056	    LD="${LD-ld} -m elf32ppclinux"
9057	    ;;
9058	  s390x-*linux*)
9059	    LD="${LD-ld} -m elf_s390"
9060	    ;;
9061	  sparc64-*linux*)
9062	    LD="${LD-ld} -m elf32_sparc"
9063	    ;;
9064	esac
9065	;;
9066      *64-bit*)
9067	case $host in
9068	  x86_64-*kfreebsd*-gnu)
9069	    LD="${LD-ld} -m elf_x86_64_fbsd"
9070	    ;;
9071	  x86_64-*linux*)
9072	    LD="${LD-ld} -m elf_x86_64"
9073	    ;;
9074	  powerpcle-*linux*)
9075	    LD="${LD-ld} -m elf64lppc"
9076	    ;;
9077	  powerpc-*linux*)
9078	    LD="${LD-ld} -m elf64ppc"
9079	    ;;
9080	  s390*-*linux*|s390*-*tpf*)
9081	    LD="${LD-ld} -m elf64_s390"
9082	    ;;
9083	  sparc*-*linux*)
9084	    LD="${LD-ld} -m elf64_sparc"
9085	    ;;
9086	esac
9087	;;
9088    esac
9089  fi
9090  rm -rf conftest*
9091  ;;
9092
9093*-*-sco3.2v5*)
9094  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9095  SAVE_CFLAGS=$CFLAGS
9096  CFLAGS="$CFLAGS -belf"
9097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9098$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9099if ${lt_cv_cc_needs_belf+:} false; then :
9100  $as_echo_n "(cached) " >&6
9101else
9102  ac_ext=c
9103ac_cpp='$CPP $CPPFLAGS'
9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
9108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109/* end confdefs.h.  */
9110
9111int
9112main ()
9113{
9114
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120  lt_cv_cc_needs_belf=yes
9121else
9122  lt_cv_cc_needs_belf=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125    conftest$ac_exeext conftest.$ac_ext
9126     ac_ext=c
9127ac_cpp='$CPP $CPPFLAGS'
9128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9130ac_compiler_gnu=$ac_cv_c_compiler_gnu
9131
9132fi
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9134$as_echo "$lt_cv_cc_needs_belf" >&6; }
9135  if test yes != "$lt_cv_cc_needs_belf"; then
9136    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9137    CFLAGS=$SAVE_CFLAGS
9138  fi
9139  ;;
9140*-*solaris*)
9141  # Find out what ABI is being produced by ac_compile, and set linker
9142  # options accordingly.
9143  echo 'int i;' > conftest.$ac_ext
9144  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9145  (eval $ac_compile) 2>&5
9146  ac_status=$?
9147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9148  test $ac_status = 0; }; then
9149    case `/usr/bin/file conftest.o` in
9150    *64-bit*)
9151      case $lt_cv_prog_gnu_ld in
9152      yes*)
9153        case $host in
9154        i?86-*-solaris*|x86_64-*-solaris*)
9155          LD="${LD-ld} -m elf_x86_64"
9156          ;;
9157        sparc*-*-solaris*)
9158          LD="${LD-ld} -m elf64_sparc"
9159          ;;
9160        esac
9161        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9162        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9163          LD=${LD-ld}_sol2
9164        fi
9165        ;;
9166      *)
9167	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9168	  LD="${LD-ld} -64"
9169	fi
9170	;;
9171      esac
9172      ;;
9173    esac
9174  fi
9175  rm -rf conftest*
9176  ;;
9177esac
9178
9179need_locks=$enable_libtool_lock
9180
9181if test -n "$ac_tool_prefix"; then
9182  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9183set dummy ${ac_tool_prefix}mt; ac_word=$2
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9187  $as_echo_n "(cached) " >&6
9188else
9189  if test -n "$MANIFEST_TOOL"; then
9190  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195  IFS=$as_save_IFS
9196  test -z "$as_dir" && as_dir=.
9197    for ac_exec_ext in '' $ac_executable_extensions; do
9198  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9199    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201    break 2
9202  fi
9203done
9204  done
9205IFS=$as_save_IFS
9206
9207fi
9208fi
9209MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9210if test -n "$MANIFEST_TOOL"; then
9211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9212$as_echo "$MANIFEST_TOOL" >&6; }
9213else
9214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9221  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9222  # Extract the first word of "mt", so it can be a program name with args.
9223set dummy mt; ac_word=$2
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9227  $as_echo_n "(cached) " >&6
9228else
9229  if test -n "$ac_ct_MANIFEST_TOOL"; then
9230  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9231else
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235  IFS=$as_save_IFS
9236  test -z "$as_dir" && as_dir=.
9237    for ac_exec_ext in '' $ac_executable_extensions; do
9238  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9239    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241    break 2
9242  fi
9243done
9244  done
9245IFS=$as_save_IFS
9246
9247fi
9248fi
9249ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9250if test -n "$ac_ct_MANIFEST_TOOL"; then
9251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9252$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9253else
9254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
9256fi
9257
9258  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9259    MANIFEST_TOOL=":"
9260  else
9261    case $cross_compiling:$ac_tool_warned in
9262yes:)
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9265ac_tool_warned=yes ;;
9266esac
9267    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9268  fi
9269else
9270  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9271fi
9272
9273test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9275$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9276if ${lt_cv_path_mainfest_tool+:} false; then :
9277  $as_echo_n "(cached) " >&6
9278else
9279  lt_cv_path_mainfest_tool=no
9280  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9281  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9282  cat conftest.err >&5
9283  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9284    lt_cv_path_mainfest_tool=yes
9285  fi
9286  rm -f conftest*
9287fi
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9289$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9290if test yes != "$lt_cv_path_mainfest_tool"; then
9291  MANIFEST_TOOL=:
9292fi
9293
9294
9295
9296
9297
9298
9299  case $host_os in
9300    rhapsody* | darwin*)
9301    if test -n "$ac_tool_prefix"; then
9302  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9303set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
9306if ${ac_cv_prog_DSYMUTIL+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  if test -n "$DSYMUTIL"; then
9310  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9311else
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315  IFS=$as_save_IFS
9316  test -z "$as_dir" && as_dir=.
9317    for ac_exec_ext in '' $ac_executable_extensions; do
9318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9319    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321    break 2
9322  fi
9323done
9324  done
9325IFS=$as_save_IFS
9326
9327fi
9328fi
9329DSYMUTIL=$ac_cv_prog_DSYMUTIL
9330if test -n "$DSYMUTIL"; then
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9332$as_echo "$DSYMUTIL" >&6; }
9333else
9334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
9336fi
9337
9338
9339fi
9340if test -z "$ac_cv_prog_DSYMUTIL"; then
9341  ac_ct_DSYMUTIL=$DSYMUTIL
9342  # Extract the first word of "dsymutil", so it can be a program name with args.
9343set dummy dsymutil; ac_word=$2
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
9346if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  if test -n "$ac_ct_DSYMUTIL"; then
9350  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9351else
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355  IFS=$as_save_IFS
9356  test -z "$as_dir" && as_dir=.
9357    for ac_exec_ext in '' $ac_executable_extensions; do
9358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9359    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361    break 2
9362  fi
9363done
9364  done
9365IFS=$as_save_IFS
9366
9367fi
9368fi
9369ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9370if test -n "$ac_ct_DSYMUTIL"; then
9371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9372$as_echo "$ac_ct_DSYMUTIL" >&6; }
9373else
9374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
9376fi
9377
9378  if test "x$ac_ct_DSYMUTIL" = x; then
9379    DSYMUTIL=":"
9380  else
9381    case $cross_compiling:$ac_tool_warned in
9382yes:)
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9385ac_tool_warned=yes ;;
9386esac
9387    DSYMUTIL=$ac_ct_DSYMUTIL
9388  fi
9389else
9390  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9391fi
9392
9393    if test -n "$ac_tool_prefix"; then
9394  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9395set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397$as_echo_n "checking for $ac_word... " >&6; }
9398if ${ac_cv_prog_NMEDIT+:} false; then :
9399  $as_echo_n "(cached) " >&6
9400else
9401  if test -n "$NMEDIT"; then
9402  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9403else
9404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407  IFS=$as_save_IFS
9408  test -z "$as_dir" && as_dir=.
9409    for ac_exec_ext in '' $ac_executable_extensions; do
9410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9411    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413    break 2
9414  fi
9415done
9416  done
9417IFS=$as_save_IFS
9418
9419fi
9420fi
9421NMEDIT=$ac_cv_prog_NMEDIT
9422if test -n "$NMEDIT"; then
9423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9424$as_echo "$NMEDIT" >&6; }
9425else
9426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427$as_echo "no" >&6; }
9428fi
9429
9430
9431fi
9432if test -z "$ac_cv_prog_NMEDIT"; then
9433  ac_ct_NMEDIT=$NMEDIT
9434  # Extract the first word of "nmedit", so it can be a program name with args.
9435set dummy nmedit; ac_word=$2
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9437$as_echo_n "checking for $ac_word... " >&6; }
9438if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  if test -n "$ac_ct_NMEDIT"; then
9442  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9443else
9444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445for as_dir in $PATH
9446do
9447  IFS=$as_save_IFS
9448  test -z "$as_dir" && as_dir=.
9449    for ac_exec_ext in '' $ac_executable_extensions; do
9450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9451    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453    break 2
9454  fi
9455done
9456  done
9457IFS=$as_save_IFS
9458
9459fi
9460fi
9461ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9462if test -n "$ac_ct_NMEDIT"; then
9463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9464$as_echo "$ac_ct_NMEDIT" >&6; }
9465else
9466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467$as_echo "no" >&6; }
9468fi
9469
9470  if test "x$ac_ct_NMEDIT" = x; then
9471    NMEDIT=":"
9472  else
9473    case $cross_compiling:$ac_tool_warned in
9474yes:)
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9477ac_tool_warned=yes ;;
9478esac
9479    NMEDIT=$ac_ct_NMEDIT
9480  fi
9481else
9482  NMEDIT="$ac_cv_prog_NMEDIT"
9483fi
9484
9485    if test -n "$ac_tool_prefix"; then
9486  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9487set dummy ${ac_tool_prefix}lipo; ac_word=$2
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489$as_echo_n "checking for $ac_word... " >&6; }
9490if ${ac_cv_prog_LIPO+:} false; then :
9491  $as_echo_n "(cached) " >&6
9492else
9493  if test -n "$LIPO"; then
9494  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9495else
9496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497for as_dir in $PATH
9498do
9499  IFS=$as_save_IFS
9500  test -z "$as_dir" && as_dir=.
9501    for ac_exec_ext in '' $ac_executable_extensions; do
9502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9503    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9505    break 2
9506  fi
9507done
9508  done
9509IFS=$as_save_IFS
9510
9511fi
9512fi
9513LIPO=$ac_cv_prog_LIPO
9514if test -n "$LIPO"; then
9515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9516$as_echo "$LIPO" >&6; }
9517else
9518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519$as_echo "no" >&6; }
9520fi
9521
9522
9523fi
9524if test -z "$ac_cv_prog_LIPO"; then
9525  ac_ct_LIPO=$LIPO
9526  # Extract the first word of "lipo", so it can be a program name with args.
9527set dummy lipo; ac_word=$2
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529$as_echo_n "checking for $ac_word... " >&6; }
9530if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  if test -n "$ac_ct_LIPO"; then
9534  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9535else
9536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537for as_dir in $PATH
9538do
9539  IFS=$as_save_IFS
9540  test -z "$as_dir" && as_dir=.
9541    for ac_exec_ext in '' $ac_executable_extensions; do
9542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543    ac_cv_prog_ac_ct_LIPO="lipo"
9544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545    break 2
9546  fi
9547done
9548  done
9549IFS=$as_save_IFS
9550
9551fi
9552fi
9553ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9554if test -n "$ac_ct_LIPO"; then
9555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9556$as_echo "$ac_ct_LIPO" >&6; }
9557else
9558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
9560fi
9561
9562  if test "x$ac_ct_LIPO" = x; then
9563    LIPO=":"
9564  else
9565    case $cross_compiling:$ac_tool_warned in
9566yes:)
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9569ac_tool_warned=yes ;;
9570esac
9571    LIPO=$ac_ct_LIPO
9572  fi
9573else
9574  LIPO="$ac_cv_prog_LIPO"
9575fi
9576
9577    if test -n "$ac_tool_prefix"; then
9578  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9579set dummy ${ac_tool_prefix}otool; ac_word=$2
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if ${ac_cv_prog_OTOOL+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  if test -n "$OTOOL"; then
9586  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591  IFS=$as_save_IFS
9592  test -z "$as_dir" && as_dir=.
9593    for ac_exec_ext in '' $ac_executable_extensions; do
9594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597    break 2
9598  fi
9599done
9600  done
9601IFS=$as_save_IFS
9602
9603fi
9604fi
9605OTOOL=$ac_cv_prog_OTOOL
9606if test -n "$OTOOL"; then
9607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9608$as_echo "$OTOOL" >&6; }
9609else
9610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9612fi
9613
9614
9615fi
9616if test -z "$ac_cv_prog_OTOOL"; then
9617  ac_ct_OTOOL=$OTOOL
9618  # Extract the first word of "otool", so it can be a program name with args.
9619set dummy otool; ac_word=$2
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
9622if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9623  $as_echo_n "(cached) " >&6
9624else
9625  if test -n "$ac_ct_OTOOL"; then
9626  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631  IFS=$as_save_IFS
9632  test -z "$as_dir" && as_dir=.
9633    for ac_exec_ext in '' $ac_executable_extensions; do
9634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635    ac_cv_prog_ac_ct_OTOOL="otool"
9636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637    break 2
9638  fi
9639done
9640  done
9641IFS=$as_save_IFS
9642
9643fi
9644fi
9645ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9646if test -n "$ac_ct_OTOOL"; then
9647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9648$as_echo "$ac_ct_OTOOL" >&6; }
9649else
9650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9652fi
9653
9654  if test "x$ac_ct_OTOOL" = x; then
9655    OTOOL=":"
9656  else
9657    case $cross_compiling:$ac_tool_warned in
9658yes:)
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9661ac_tool_warned=yes ;;
9662esac
9663    OTOOL=$ac_ct_OTOOL
9664  fi
9665else
9666  OTOOL="$ac_cv_prog_OTOOL"
9667fi
9668
9669    if test -n "$ac_tool_prefix"; then
9670  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9671set dummy ${ac_tool_prefix}otool64; ac_word=$2
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673$as_echo_n "checking for $ac_word... " >&6; }
9674if ${ac_cv_prog_OTOOL64+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  if test -n "$OTOOL64"; then
9678  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9679else
9680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681for as_dir in $PATH
9682do
9683  IFS=$as_save_IFS
9684  test -z "$as_dir" && as_dir=.
9685    for ac_exec_ext in '' $ac_executable_extensions; do
9686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9689    break 2
9690  fi
9691done
9692  done
9693IFS=$as_save_IFS
9694
9695fi
9696fi
9697OTOOL64=$ac_cv_prog_OTOOL64
9698if test -n "$OTOOL64"; then
9699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9700$as_echo "$OTOOL64" >&6; }
9701else
9702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703$as_echo "no" >&6; }
9704fi
9705
9706
9707fi
9708if test -z "$ac_cv_prog_OTOOL64"; then
9709  ac_ct_OTOOL64=$OTOOL64
9710  # Extract the first word of "otool64", so it can be a program name with args.
9711set dummy otool64; ac_word=$2
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713$as_echo_n "checking for $ac_word... " >&6; }
9714if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9715  $as_echo_n "(cached) " >&6
9716else
9717  if test -n "$ac_ct_OTOOL64"; then
9718  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723  IFS=$as_save_IFS
9724  test -z "$as_dir" && as_dir=.
9725    for ac_exec_ext in '' $ac_executable_extensions; do
9726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727    ac_cv_prog_ac_ct_OTOOL64="otool64"
9728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729    break 2
9730  fi
9731done
9732  done
9733IFS=$as_save_IFS
9734
9735fi
9736fi
9737ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9738if test -n "$ac_ct_OTOOL64"; then
9739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9740$as_echo "$ac_ct_OTOOL64" >&6; }
9741else
9742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744fi
9745
9746  if test "x$ac_ct_OTOOL64" = x; then
9747    OTOOL64=":"
9748  else
9749    case $cross_compiling:$ac_tool_warned in
9750yes:)
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9753ac_tool_warned=yes ;;
9754esac
9755    OTOOL64=$ac_ct_OTOOL64
9756  fi
9757else
9758  OTOOL64="$ac_cv_prog_OTOOL64"
9759fi
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9788$as_echo_n "checking for -single_module linker flag... " >&6; }
9789if ${lt_cv_apple_cc_single_mod+:} false; then :
9790  $as_echo_n "(cached) " >&6
9791else
9792  lt_cv_apple_cc_single_mod=no
9793      if test -z "$LT_MULTI_MODULE"; then
9794	# By default we will add the -single_module flag. You can override
9795	# by either setting the environment variable LT_MULTI_MODULE
9796	# non-empty at configure time, or by adding -multi_module to the
9797	# link flags.
9798	rm -rf libconftest.dylib*
9799	echo "int foo(void){return 1;}" > conftest.c
9800	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9801-dynamiclib -Wl,-single_module conftest.c" >&5
9802	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9803	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9804        _lt_result=$?
9805	# If there is a non-empty error log, and "single_module"
9806	# appears in it, assume the flag caused a linker warning
9807        if test -s conftest.err && $GREP single_module conftest.err; then
9808	  cat conftest.err >&5
9809	# Otherwise, if the output was created with a 0 exit code from
9810	# the compiler, it worked.
9811	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9812	  lt_cv_apple_cc_single_mod=yes
9813	else
9814	  cat conftest.err >&5
9815	fi
9816	rm -rf libconftest.dylib*
9817	rm -f conftest.*
9818      fi
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9821$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9822
9823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9824$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9825if ${lt_cv_ld_exported_symbols_list+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  lt_cv_ld_exported_symbols_list=no
9829      save_LDFLAGS=$LDFLAGS
9830      echo "_main" > conftest.sym
9831      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834
9835int
9836main ()
9837{
9838
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843if ac_fn_c_try_link "$LINENO"; then :
9844  lt_cv_ld_exported_symbols_list=yes
9845else
9846  lt_cv_ld_exported_symbols_list=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext \
9849    conftest$ac_exeext conftest.$ac_ext
9850	LDFLAGS=$save_LDFLAGS
9851
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9854$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9855
9856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9857$as_echo_n "checking for -force_load linker flag... " >&6; }
9858if ${lt_cv_ld_force_load+:} false; then :
9859  $as_echo_n "(cached) " >&6
9860else
9861  lt_cv_ld_force_load=no
9862      cat > conftest.c << _LT_EOF
9863int forced_loaded() { return 2;}
9864_LT_EOF
9865      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9866      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9867      echo "$AR cru libconftest.a conftest.o" >&5
9868      $AR cru libconftest.a conftest.o 2>&5
9869      echo "$RANLIB libconftest.a" >&5
9870      $RANLIB libconftest.a 2>&5
9871      cat > conftest.c << _LT_EOF
9872int main() { return 0;}
9873_LT_EOF
9874      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9875      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9876      _lt_result=$?
9877      if test -s conftest.err && $GREP force_load conftest.err; then
9878	cat conftest.err >&5
9879      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9880	lt_cv_ld_force_load=yes
9881      else
9882	cat conftest.err >&5
9883      fi
9884        rm -f conftest.err libconftest.a conftest conftest.c
9885        rm -rf conftest.dSYM
9886
9887fi
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9889$as_echo "$lt_cv_ld_force_load" >&6; }
9890    case $host_os in
9891    rhapsody* | darwin1.[012])
9892      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9893    darwin1.*)
9894      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9895    darwin*) # darwin 5.x on
9896      # if running on 10.5 or later, the deployment target defaults
9897      # to the OS version, if on x86, and 10.4, the deployment
9898      # target defaults to 10.4. Don't you love it?
9899      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9900	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9901	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9902	10.[012][,.]*)
9903	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9904	10.*)
9905	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9906      esac
9907    ;;
9908  esac
9909    if test yes = "$lt_cv_apple_cc_single_mod"; then
9910      _lt_dar_single_mod='$single_module'
9911    fi
9912    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9913      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9914    else
9915      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9916    fi
9917    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9918      _lt_dsymutil='~$DSYMUTIL $lib || :'
9919    else
9920      _lt_dsymutil=
9921    fi
9922    ;;
9923  esac
9924
9925# func_munge_path_list VARIABLE PATH
9926# -----------------------------------
9927# VARIABLE is name of variable containing _space_ separated list of
9928# directories to be munged by the contents of PATH, which is string
9929# having a format:
9930# "DIR[:DIR]:"
9931#       string "DIR[ DIR]" will be prepended to VARIABLE
9932# ":DIR[:DIR]"
9933#       string "DIR[ DIR]" will be appended to VARIABLE
9934# "DIRP[:DIRP]::[DIRA:]DIRA"
9935#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9936#       "DIRA[ DIRA]" will be appended to VARIABLE
9937# "DIR[:DIR]"
9938#       VARIABLE will be replaced by "DIR[ DIR]"
9939func_munge_path_list ()
9940{
9941    case x$2 in
9942    x)
9943        ;;
9944    *:)
9945        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9946        ;;
9947    x:*)
9948        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9949        ;;
9950    *::*)
9951        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9952        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9953        ;;
9954    *)
9955        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9956        ;;
9957    esac
9958}
9959
9960ac_ext=c
9961ac_cpp='$CPP $CPPFLAGS'
9962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9964ac_compiler_gnu=$ac_cv_c_compiler_gnu
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9966$as_echo_n "checking how to run the C preprocessor... " >&6; }
9967# On Suns, sometimes $CPP names a directory.
9968if test -n "$CPP" && test -d "$CPP"; then
9969  CPP=
9970fi
9971if test -z "$CPP"; then
9972  if ${ac_cv_prog_CPP+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975      # Double quotes because CPP needs to be expanded
9976    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9977    do
9978      ac_preproc_ok=false
9979for ac_c_preproc_warn_flag in '' yes
9980do
9981  # Use a header file that comes with gcc, so configuring glibc
9982  # with a fresh cross-compiler works.
9983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9984  # <limits.h> exists even on freestanding compilers.
9985  # On the NeXT, cc -E runs the code through the compiler's parser,
9986  # not just through cpp. "Syntax error" is here to catch this case.
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989#ifdef __STDC__
9990# include <limits.h>
9991#else
9992# include <assert.h>
9993#endif
9994		     Syntax error
9995_ACEOF
9996if ac_fn_c_try_cpp "$LINENO"; then :
9997
9998else
9999  # Broken: fails on valid input.
10000continue
10001fi
10002rm -f conftest.err conftest.i conftest.$ac_ext
10003
10004  # OK, works on sane cases.  Now check whether nonexistent headers
10005  # can be detected and how.
10006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h.  */
10008#include <ac_nonexistent.h>
10009_ACEOF
10010if ac_fn_c_try_cpp "$LINENO"; then :
10011  # Broken: success on invalid input.
10012continue
10013else
10014  # Passes both tests.
10015ac_preproc_ok=:
10016break
10017fi
10018rm -f conftest.err conftest.i conftest.$ac_ext
10019
10020done
10021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10022rm -f conftest.i conftest.err conftest.$ac_ext
10023if $ac_preproc_ok; then :
10024  break
10025fi
10026
10027    done
10028    ac_cv_prog_CPP=$CPP
10029
10030fi
10031  CPP=$ac_cv_prog_CPP
10032else
10033  ac_cv_prog_CPP=$CPP
10034fi
10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10036$as_echo "$CPP" >&6; }
10037ac_preproc_ok=false
10038for ac_c_preproc_warn_flag in '' yes
10039do
10040  # Use a header file that comes with gcc, so configuring glibc
10041  # with a fresh cross-compiler works.
10042  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10043  # <limits.h> exists even on freestanding compilers.
10044  # On the NeXT, cc -E runs the code through the compiler's parser,
10045  # not just through cpp. "Syntax error" is here to catch this case.
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048#ifdef __STDC__
10049# include <limits.h>
10050#else
10051# include <assert.h>
10052#endif
10053		     Syntax error
10054_ACEOF
10055if ac_fn_c_try_cpp "$LINENO"; then :
10056
10057else
10058  # Broken: fails on valid input.
10059continue
10060fi
10061rm -f conftest.err conftest.i conftest.$ac_ext
10062
10063  # OK, works on sane cases.  Now check whether nonexistent headers
10064  # can be detected and how.
10065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066/* end confdefs.h.  */
10067#include <ac_nonexistent.h>
10068_ACEOF
10069if ac_fn_c_try_cpp "$LINENO"; then :
10070  # Broken: success on invalid input.
10071continue
10072else
10073  # Passes both tests.
10074ac_preproc_ok=:
10075break
10076fi
10077rm -f conftest.err conftest.i conftest.$ac_ext
10078
10079done
10080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10081rm -f conftest.i conftest.err conftest.$ac_ext
10082if $ac_preproc_ok; then :
10083
10084else
10085  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10087as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10088See \`config.log' for more details" "$LINENO" 5; }
10089fi
10090
10091ac_ext=c
10092ac_cpp='$CPP $CPPFLAGS'
10093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10095ac_compiler_gnu=$ac_cv_c_compiler_gnu
10096
10097
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10099$as_echo_n "checking for ANSI C header files... " >&6; }
10100if ${ac_cv_header_stdc+:} false; then :
10101  $as_echo_n "(cached) " >&6
10102else
10103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h.  */
10105#include <stdlib.h>
10106#include <stdarg.h>
10107#include <string.h>
10108#include <float.h>
10109
10110int
10111main ()
10112{
10113
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118if ac_fn_c_try_compile "$LINENO"; then :
10119  ac_cv_header_stdc=yes
10120else
10121  ac_cv_header_stdc=no
10122fi
10123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124
10125if test $ac_cv_header_stdc = yes; then
10126  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128/* end confdefs.h.  */
10129#include <string.h>
10130
10131_ACEOF
10132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10133  $EGREP "memchr" >/dev/null 2>&1; then :
10134
10135else
10136  ac_cv_header_stdc=no
10137fi
10138rm -f conftest*
10139
10140fi
10141
10142if test $ac_cv_header_stdc = yes; then
10143  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146#include <stdlib.h>
10147
10148_ACEOF
10149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10150  $EGREP "free" >/dev/null 2>&1; then :
10151
10152else
10153  ac_cv_header_stdc=no
10154fi
10155rm -f conftest*
10156
10157fi
10158
10159if test $ac_cv_header_stdc = yes; then
10160  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10161  if test "$cross_compiling" = yes; then :
10162  :
10163else
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166#include <ctype.h>
10167#include <stdlib.h>
10168#if ((' ' & 0x0FF) == 0x020)
10169# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10170# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10171#else
10172# define ISLOWER(c) \
10173		   (('a' <= (c) && (c) <= 'i') \
10174		     || ('j' <= (c) && (c) <= 'r') \
10175		     || ('s' <= (c) && (c) <= 'z'))
10176# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10177#endif
10178
10179#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10180int
10181main ()
10182{
10183  int i;
10184  for (i = 0; i < 256; i++)
10185    if (XOR (islower (i), ISLOWER (i))
10186	|| toupper (i) != TOUPPER (i))
10187      return 2;
10188  return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_run "$LINENO"; then :
10192
10193else
10194  ac_cv_header_stdc=no
10195fi
10196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10197  conftest.$ac_objext conftest.beam conftest.$ac_ext
10198fi
10199
10200fi
10201fi
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10203$as_echo "$ac_cv_header_stdc" >&6; }
10204if test $ac_cv_header_stdc = yes; then
10205
10206$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10207
10208fi
10209
10210# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10212		  inttypes.h stdint.h unistd.h
10213do :
10214  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10215ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10216"
10217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10218  cat >>confdefs.h <<_ACEOF
10219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220_ACEOF
10221
10222fi
10223
10224done
10225
10226
10227for ac_header in dlfcn.h
10228do :
10229  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10230"
10231if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10232  cat >>confdefs.h <<_ACEOF
10233#define HAVE_DLFCN_H 1
10234_ACEOF
10235
10236fi
10237
10238done
10239
10240
10241  GST_CURRENT=1602
10242  GST_REVISION=0
10243  GST_AGE=1602
10244  GST_LIBVERSION=1602:0:1602
10245
10246
10247
10248
10249
10250  GST_LT_LDFLAGS="$GST_LT_LDFLAGS -version-info $GST_LIBVERSION"
10251  if test ! -z ""
10252  then
10253    GST_LT_LDFLAGS="$GST_LT_LDFLAGS -release "
10254  fi
10255
10256
10257
10258
10259
10260
10261
10262# Set options
10263enable_dlopen=yes
10264enable_win32_dll=yes
10265
10266case $host in
10267*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10268  if test -n "$ac_tool_prefix"; then
10269  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10270set dummy ${ac_tool_prefix}as; ac_word=$2
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
10273if ${ac_cv_prog_AS+:} false; then :
10274  $as_echo_n "(cached) " >&6
10275else
10276  if test -n "$AS"; then
10277  ac_cv_prog_AS="$AS" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282  IFS=$as_save_IFS
10283  test -z "$as_dir" && as_dir=.
10284    for ac_exec_ext in '' $ac_executable_extensions; do
10285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286    ac_cv_prog_AS="${ac_tool_prefix}as"
10287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288    break 2
10289  fi
10290done
10291  done
10292IFS=$as_save_IFS
10293
10294fi
10295fi
10296AS=$ac_cv_prog_AS
10297if test -n "$AS"; then
10298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10299$as_echo "$AS" >&6; }
10300else
10301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
10303fi
10304
10305
10306fi
10307if test -z "$ac_cv_prog_AS"; then
10308  ac_ct_AS=$AS
10309  # Extract the first word of "as", so it can be a program name with args.
10310set dummy as; ac_word=$2
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312$as_echo_n "checking for $ac_word... " >&6; }
10313if ${ac_cv_prog_ac_ct_AS+:} false; then :
10314  $as_echo_n "(cached) " >&6
10315else
10316  if test -n "$ac_ct_AS"; then
10317  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10318else
10319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320for as_dir in $PATH
10321do
10322  IFS=$as_save_IFS
10323  test -z "$as_dir" && as_dir=.
10324    for ac_exec_ext in '' $ac_executable_extensions; do
10325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10326    ac_cv_prog_ac_ct_AS="as"
10327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328    break 2
10329  fi
10330done
10331  done
10332IFS=$as_save_IFS
10333
10334fi
10335fi
10336ac_ct_AS=$ac_cv_prog_ac_ct_AS
10337if test -n "$ac_ct_AS"; then
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10339$as_echo "$ac_ct_AS" >&6; }
10340else
10341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342$as_echo "no" >&6; }
10343fi
10344
10345  if test "x$ac_ct_AS" = x; then
10346    AS="false"
10347  else
10348    case $cross_compiling:$ac_tool_warned in
10349yes:)
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10352ac_tool_warned=yes ;;
10353esac
10354    AS=$ac_ct_AS
10355  fi
10356else
10357  AS="$ac_cv_prog_AS"
10358fi
10359
10360  if test -n "$ac_tool_prefix"; then
10361  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10362set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364$as_echo_n "checking for $ac_word... " >&6; }
10365if ${ac_cv_prog_DLLTOOL+:} false; then :
10366  $as_echo_n "(cached) " >&6
10367else
10368  if test -n "$DLLTOOL"; then
10369  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10370else
10371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10372for as_dir in $PATH
10373do
10374  IFS=$as_save_IFS
10375  test -z "$as_dir" && as_dir=.
10376    for ac_exec_ext in '' $ac_executable_extensions; do
10377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10378    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380    break 2
10381  fi
10382done
10383  done
10384IFS=$as_save_IFS
10385
10386fi
10387fi
10388DLLTOOL=$ac_cv_prog_DLLTOOL
10389if test -n "$DLLTOOL"; then
10390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10391$as_echo "$DLLTOOL" >&6; }
10392else
10393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394$as_echo "no" >&6; }
10395fi
10396
10397
10398fi
10399if test -z "$ac_cv_prog_DLLTOOL"; then
10400  ac_ct_DLLTOOL=$DLLTOOL
10401  # Extract the first word of "dlltool", so it can be a program name with args.
10402set dummy dlltool; ac_word=$2
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404$as_echo_n "checking for $ac_word... " >&6; }
10405if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10406  $as_echo_n "(cached) " >&6
10407else
10408  if test -n "$ac_ct_DLLTOOL"; then
10409  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414  IFS=$as_save_IFS
10415  test -z "$as_dir" && as_dir=.
10416    for ac_exec_ext in '' $ac_executable_extensions; do
10417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10420    break 2
10421  fi
10422done
10423  done
10424IFS=$as_save_IFS
10425
10426fi
10427fi
10428ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10429if test -n "$ac_ct_DLLTOOL"; then
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10431$as_echo "$ac_ct_DLLTOOL" >&6; }
10432else
10433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
10435fi
10436
10437  if test "x$ac_ct_DLLTOOL" = x; then
10438    DLLTOOL="false"
10439  else
10440    case $cross_compiling:$ac_tool_warned in
10441yes:)
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10444ac_tool_warned=yes ;;
10445esac
10446    DLLTOOL=$ac_ct_DLLTOOL
10447  fi
10448else
10449  DLLTOOL="$ac_cv_prog_DLLTOOL"
10450fi
10451
10452  if test -n "$ac_tool_prefix"; then
10453  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10454set dummy ${ac_tool_prefix}objdump; ac_word=$2
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if ${ac_cv_prog_OBJDUMP+:} false; then :
10458  $as_echo_n "(cached) " >&6
10459else
10460  if test -n "$OBJDUMP"; then
10461  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466  IFS=$as_save_IFS
10467  test -z "$as_dir" && as_dir=.
10468    for ac_exec_ext in '' $ac_executable_extensions; do
10469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472    break 2
10473  fi
10474done
10475  done
10476IFS=$as_save_IFS
10477
10478fi
10479fi
10480OBJDUMP=$ac_cv_prog_OBJDUMP
10481if test -n "$OBJDUMP"; then
10482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10483$as_echo "$OBJDUMP" >&6; }
10484else
10485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
10487fi
10488
10489
10490fi
10491if test -z "$ac_cv_prog_OBJDUMP"; then
10492  ac_ct_OBJDUMP=$OBJDUMP
10493  # Extract the first word of "objdump", so it can be a program name with args.
10494set dummy objdump; ac_word=$2
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496$as_echo_n "checking for $ac_word... " >&6; }
10497if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10498  $as_echo_n "(cached) " >&6
10499else
10500  if test -n "$ac_ct_OBJDUMP"; then
10501  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10502else
10503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504for as_dir in $PATH
10505do
10506  IFS=$as_save_IFS
10507  test -z "$as_dir" && as_dir=.
10508    for ac_exec_ext in '' $ac_executable_extensions; do
10509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10510    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512    break 2
10513  fi
10514done
10515  done
10516IFS=$as_save_IFS
10517
10518fi
10519fi
10520ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10521if test -n "$ac_ct_OBJDUMP"; then
10522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10523$as_echo "$ac_ct_OBJDUMP" >&6; }
10524else
10525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526$as_echo "no" >&6; }
10527fi
10528
10529  if test "x$ac_ct_OBJDUMP" = x; then
10530    OBJDUMP="false"
10531  else
10532    case $cross_compiling:$ac_tool_warned in
10533yes:)
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10536ac_tool_warned=yes ;;
10537esac
10538    OBJDUMP=$ac_ct_OBJDUMP
10539  fi
10540else
10541  OBJDUMP="$ac_cv_prog_OBJDUMP"
10542fi
10543
10544  ;;
10545esac
10546
10547test -z "$AS" && AS=as
10548
10549
10550
10551
10552
10553test -z "$DLLTOOL" && DLLTOOL=dlltool
10554
10555
10556
10557
10558
10559test -z "$OBJDUMP" && OBJDUMP=objdump
10560
10561
10562
10563
10564# Check whether --enable-static was given.
10565if test "${enable_static+set}" = set; then :
10566  enableval=$enable_static; p=${PACKAGE-default}
10567    case $enableval in
10568    yes) enable_static=yes ;;
10569    no) enable_static=no ;;
10570    *)
10571     enable_static=no
10572      # Look at the argument we got.  We use all the common list separators.
10573      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10574      for pkg in $enableval; do
10575	IFS=$lt_save_ifs
10576	if test "X$pkg" = "X$p"; then
10577	  enable_static=yes
10578	fi
10579      done
10580      IFS=$lt_save_ifs
10581      ;;
10582    esac
10583else
10584  enable_static=no
10585fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598            # Check whether --enable-shared was given.
10599if test "${enable_shared+set}" = set; then :
10600  enableval=$enable_shared; p=${PACKAGE-default}
10601    case $enableval in
10602    yes) enable_shared=yes ;;
10603    no) enable_shared=no ;;
10604    *)
10605      enable_shared=no
10606      # Look at the argument we got.  We use all the common list separators.
10607      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10608      for pkg in $enableval; do
10609	IFS=$lt_save_ifs
10610	if test "X$pkg" = "X$p"; then
10611	  enable_shared=yes
10612	fi
10613      done
10614      IFS=$lt_save_ifs
10615      ;;
10616    esac
10617else
10618  enable_shared=yes
10619fi
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631# Check whether --with-pic was given.
10632if test "${with_pic+set}" = set; then :
10633  withval=$with_pic; lt_p=${PACKAGE-default}
10634    case $withval in
10635    yes|no) pic_mode=$withval ;;
10636    *)
10637      pic_mode=default
10638      # Look at the argument we got.  We use all the common list separators.
10639      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10640      for lt_pkg in $withval; do
10641	IFS=$lt_save_ifs
10642	if test "X$lt_pkg" = "X$lt_p"; then
10643	  pic_mode=yes
10644	fi
10645      done
10646      IFS=$lt_save_ifs
10647      ;;
10648    esac
10649else
10650  pic_mode=default
10651fi
10652
10653
10654
10655
10656
10657
10658
10659
10660  # Check whether --enable-fast-install was given.
10661if test "${enable_fast_install+set}" = set; then :
10662  enableval=$enable_fast_install; p=${PACKAGE-default}
10663    case $enableval in
10664    yes) enable_fast_install=yes ;;
10665    no) enable_fast_install=no ;;
10666    *)
10667      enable_fast_install=no
10668      # Look at the argument we got.  We use all the common list separators.
10669      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10670      for pkg in $enableval; do
10671	IFS=$lt_save_ifs
10672	if test "X$pkg" = "X$p"; then
10673	  enable_fast_install=yes
10674	fi
10675      done
10676      IFS=$lt_save_ifs
10677      ;;
10678    esac
10679else
10680  enable_fast_install=yes
10681fi
10682
10683
10684
10685
10686
10687
10688
10689
10690  shared_archive_member_spec=
10691case $host,$enable_shared in
10692power*-*-aix[5-9]*,yes)
10693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10694$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10695
10696# Check whether --with-aix-soname was given.
10697if test "${with_aix_soname+set}" = set; then :
10698  withval=$with_aix_soname; case $withval in
10699    aix|svr4|both)
10700      ;;
10701    *)
10702      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10703      ;;
10704    esac
10705    lt_cv_with_aix_soname=$with_aix_soname
10706else
10707  if ${lt_cv_with_aix_soname+:} false; then :
10708  $as_echo_n "(cached) " >&6
10709else
10710  lt_cv_with_aix_soname=aix
10711fi
10712
10713    with_aix_soname=$lt_cv_with_aix_soname
10714fi
10715
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10717$as_echo "$with_aix_soname" >&6; }
10718  if test aix != "$with_aix_soname"; then
10719    # For the AIX way of multilib, we name the shared archive member
10720    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10721    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10722    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10723    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10724    if test 64 = "${OBJECT_MODE-32}"; then
10725      shared_archive_member_spec=shr_64
10726    else
10727      shared_archive_member_spec=shr
10728    fi
10729  fi
10730  ;;
10731*)
10732  with_aix_soname=aix
10733  ;;
10734esac
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745# This can be used to rebuild libtool when needed
10746LIBTOOL_DEPS=$ltmain
10747
10748# Always use our own libtool.
10749LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780test -z "$LN_S" && LN_S="ln -s"
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795if test -n "${ZSH_VERSION+set}"; then
10796   setopt NO_GLOB_SUBST
10797fi
10798
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10800$as_echo_n "checking for objdir... " >&6; }
10801if ${lt_cv_objdir+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  rm -f .libs 2>/dev/null
10805mkdir .libs 2>/dev/null
10806if test -d .libs; then
10807  lt_cv_objdir=.libs
10808else
10809  # MS-DOS does not allow filenames that begin with a dot.
10810  lt_cv_objdir=_libs
10811fi
10812rmdir .libs 2>/dev/null
10813fi
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10815$as_echo "$lt_cv_objdir" >&6; }
10816objdir=$lt_cv_objdir
10817
10818
10819
10820
10821
10822cat >>confdefs.h <<_ACEOF
10823#define LT_OBJDIR "$lt_cv_objdir/"
10824_ACEOF
10825
10826
10827
10828
10829case $host_os in
10830aix3*)
10831  # AIX sometimes has problems with the GCC collect2 program.  For some
10832  # reason, if we set the COLLECT_NAMES environment variable, the problems
10833  # vanish in a puff of smoke.
10834  if test set != "${COLLECT_NAMES+set}"; then
10835    COLLECT_NAMES=
10836    export COLLECT_NAMES
10837  fi
10838  ;;
10839esac
10840
10841# Global variables:
10842ofile=libtool
10843can_build_shared=yes
10844
10845# All known linkers require a '.a' archive for static linking (except MSVC,
10846# which needs '.lib').
10847libext=a
10848
10849with_gnu_ld=$lt_cv_prog_gnu_ld
10850
10851old_CC=$CC
10852old_CFLAGS=$CFLAGS
10853
10854# Set sane defaults for various variables
10855test -z "$CC" && CC=cc
10856test -z "$LTCC" && LTCC=$CC
10857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10858test -z "$LD" && LD=ld
10859test -z "$ac_objext" && ac_objext=o
10860
10861func_cc_basename $compiler
10862cc_basename=$func_cc_basename_result
10863
10864
10865# Only perform the check for file, if the check method requires it
10866test -z "$MAGIC_CMD" && MAGIC_CMD=file
10867case $deplibs_check_method in
10868file_magic*)
10869  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10871$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10872if ${lt_cv_path_MAGIC_CMD+:} false; then :
10873  $as_echo_n "(cached) " >&6
10874else
10875  case $MAGIC_CMD in
10876[\\/*] |  ?:[\\/]*)
10877  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10878  ;;
10879*)
10880  lt_save_MAGIC_CMD=$MAGIC_CMD
10881  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10882  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10883  for ac_dir in $ac_dummy; do
10884    IFS=$lt_save_ifs
10885    test -z "$ac_dir" && ac_dir=.
10886    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10887      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10888      if test -n "$file_magic_test_file"; then
10889	case $deplibs_check_method in
10890	"file_magic "*)
10891	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10892	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10893	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10894	    $EGREP "$file_magic_regex" > /dev/null; then
10895	    :
10896	  else
10897	    cat <<_LT_EOF 1>&2
10898
10899*** Warning: the command libtool uses to detect shared libraries,
10900*** $file_magic_cmd, produces output that libtool cannot recognize.
10901*** The result is that libtool may fail to recognize shared libraries
10902*** as such.  This will affect the creation of libtool libraries that
10903*** depend on shared libraries, but programs linked with such libtool
10904*** libraries will work regardless of this problem.  Nevertheless, you
10905*** may want to report the problem to your system manager and/or to
10906*** bug-libtool@gnu.org
10907
10908_LT_EOF
10909	  fi ;;
10910	esac
10911      fi
10912      break
10913    fi
10914  done
10915  IFS=$lt_save_ifs
10916  MAGIC_CMD=$lt_save_MAGIC_CMD
10917  ;;
10918esac
10919fi
10920
10921MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10922if test -n "$MAGIC_CMD"; then
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10924$as_echo "$MAGIC_CMD" >&6; }
10925else
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
10928fi
10929
10930
10931
10932
10933
10934if test -z "$lt_cv_path_MAGIC_CMD"; then
10935  if test -n "$ac_tool_prefix"; then
10936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10937$as_echo_n "checking for file... " >&6; }
10938if ${lt_cv_path_MAGIC_CMD+:} false; then :
10939  $as_echo_n "(cached) " >&6
10940else
10941  case $MAGIC_CMD in
10942[\\/*] |  ?:[\\/]*)
10943  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10944  ;;
10945*)
10946  lt_save_MAGIC_CMD=$MAGIC_CMD
10947  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10948  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10949  for ac_dir in $ac_dummy; do
10950    IFS=$lt_save_ifs
10951    test -z "$ac_dir" && ac_dir=.
10952    if test -f "$ac_dir/file"; then
10953      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10954      if test -n "$file_magic_test_file"; then
10955	case $deplibs_check_method in
10956	"file_magic "*)
10957	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10958	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10959	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10960	    $EGREP "$file_magic_regex" > /dev/null; then
10961	    :
10962	  else
10963	    cat <<_LT_EOF 1>&2
10964
10965*** Warning: the command libtool uses to detect shared libraries,
10966*** $file_magic_cmd, produces output that libtool cannot recognize.
10967*** The result is that libtool may fail to recognize shared libraries
10968*** as such.  This will affect the creation of libtool libraries that
10969*** depend on shared libraries, but programs linked with such libtool
10970*** libraries will work regardless of this problem.  Nevertheless, you
10971*** may want to report the problem to your system manager and/or to
10972*** bug-libtool@gnu.org
10973
10974_LT_EOF
10975	  fi ;;
10976	esac
10977      fi
10978      break
10979    fi
10980  done
10981  IFS=$lt_save_ifs
10982  MAGIC_CMD=$lt_save_MAGIC_CMD
10983  ;;
10984esac
10985fi
10986
10987MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10988if test -n "$MAGIC_CMD"; then
10989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10990$as_echo "$MAGIC_CMD" >&6; }
10991else
10992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997  else
10998    MAGIC_CMD=:
10999  fi
11000fi
11001
11002  fi
11003  ;;
11004esac
11005
11006# Use C for the default configuration in the libtool script
11007
11008lt_save_CC=$CC
11009ac_ext=c
11010ac_cpp='$CPP $CPPFLAGS'
11011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11013ac_compiler_gnu=$ac_cv_c_compiler_gnu
11014
11015
11016# Source file extension for C test sources.
11017ac_ext=c
11018
11019# Object file extension for compiled C test sources.
11020objext=o
11021objext=$objext
11022
11023# Code to be used in simple compile tests
11024lt_simple_compile_test_code="int some_variable = 0;"
11025
11026# Code to be used in simple link tests
11027lt_simple_link_test_code='int main(){return(0);}'
11028
11029
11030
11031
11032
11033
11034
11035# If no C compiler was specified, use CC.
11036LTCC=${LTCC-"$CC"}
11037
11038# If no C compiler flags were specified, use CFLAGS.
11039LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11040
11041# Allow CC to be a program name with arguments.
11042compiler=$CC
11043
11044# Save the default compiler, since it gets overwritten when the other
11045# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11046compiler_DEFAULT=$CC
11047
11048# save warnings/boilerplate of simple test code
11049ac_outfile=conftest.$ac_objext
11050echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11051eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11052_lt_compiler_boilerplate=`cat conftest.err`
11053$RM conftest*
11054
11055ac_outfile=conftest.$ac_objext
11056echo "$lt_simple_link_test_code" >conftest.$ac_ext
11057eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11058_lt_linker_boilerplate=`cat conftest.err`
11059$RM -r conftest*
11060
11061
11062## CAVEAT EMPTOR:
11063## There is no encapsulation within the following macros, do not change
11064## the running order or otherwise move them around unless you know exactly
11065## what you are doing...
11066if test -n "$compiler"; then
11067
11068lt_prog_compiler_no_builtin_flag=
11069
11070if test yes = "$GCC"; then
11071  case $cc_basename in
11072  nvcc*)
11073    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11074  *)
11075    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11076  esac
11077
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11079$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11080if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11081  $as_echo_n "(cached) " >&6
11082else
11083  lt_cv_prog_compiler_rtti_exceptions=no
11084   ac_outfile=conftest.$ac_objext
11085   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11086   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11087   # Insert the option either (1) after the last *FLAGS variable, or
11088   # (2) before a word containing "conftest.", or (3) at the end.
11089   # Note that $ac_compile itself does not contain backslashes and begins
11090   # with a dollar sign (not a hyphen), so the echo should work correctly.
11091   # The option is referenced via a variable to avoid confusing sed.
11092   lt_compile=`echo "$ac_compile" | $SED \
11093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11095   -e 's:$: $lt_compiler_flag:'`
11096   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11097   (eval "$lt_compile" 2>conftest.err)
11098   ac_status=$?
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   if (exit $ac_status) && test -s "$ac_outfile"; then
11102     # The compiler can only warn and ignore the option if not recognized
11103     # So say no if there are warnings other than the usual output.
11104     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11105     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11106     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11107       lt_cv_prog_compiler_rtti_exceptions=yes
11108     fi
11109   fi
11110   $RM conftest*
11111
11112fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11114$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11115
11116if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11117    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11118else
11119    :
11120fi
11121
11122fi
11123
11124
11125
11126
11127
11128
11129  lt_prog_compiler_wl=
11130lt_prog_compiler_pic=
11131lt_prog_compiler_static=
11132
11133
11134  if test yes = "$GCC"; then
11135    lt_prog_compiler_wl='-Wl,'
11136    lt_prog_compiler_static='-static'
11137
11138    case $host_os in
11139      aix*)
11140      # All AIX code is PIC.
11141      if test ia64 = "$host_cpu"; then
11142	# AIX 5 now supports IA64 processor
11143	lt_prog_compiler_static='-Bstatic'
11144      fi
11145      lt_prog_compiler_pic='-fPIC'
11146      ;;
11147
11148    amigaos*)
11149      case $host_cpu in
11150      powerpc)
11151            # see comment about AmigaOS4 .so support
11152            lt_prog_compiler_pic='-fPIC'
11153        ;;
11154      m68k)
11155            # FIXME: we need at least 68020 code to build shared libraries, but
11156            # adding the '-m68020' flag to GCC prevents building anything better,
11157            # like '-m68040'.
11158            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11159        ;;
11160      esac
11161      ;;
11162
11163    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11164      # PIC is the default for these OSes.
11165      ;;
11166
11167    mingw* | cygwin* | pw32* | os2* | cegcc*)
11168      # This hack is so that the source file can tell whether it is being
11169      # built for inclusion in a dll (and should export symbols for example).
11170      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11171      # (--disable-auto-import) libraries
11172      lt_prog_compiler_pic='-DDLL_EXPORT'
11173      case $host_os in
11174      os2*)
11175	lt_prog_compiler_static='$wl-static'
11176	;;
11177      esac
11178      ;;
11179
11180    darwin* | rhapsody*)
11181      # PIC is the default on this platform
11182      # Common symbols not allowed in MH_DYLIB files
11183      lt_prog_compiler_pic='-fno-common'
11184      ;;
11185
11186    haiku*)
11187      # PIC is the default for Haiku.
11188      # The "-static" flag exists, but is broken.
11189      lt_prog_compiler_static=
11190      ;;
11191
11192    hpux*)
11193      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11194      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11195      # sets the default TLS model and affects inlining.
11196      case $host_cpu in
11197      hppa*64*)
11198	# +Z the default
11199	;;
11200      *)
11201	lt_prog_compiler_pic='-fPIC'
11202	;;
11203      esac
11204      ;;
11205
11206    interix[3-9]*)
11207      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11208      # Instead, we relocate shared libraries at runtime.
11209      ;;
11210
11211    msdosdjgpp*)
11212      # Just because we use GCC doesn't mean we suddenly get shared libraries
11213      # on systems that don't support them.
11214      lt_prog_compiler_can_build_shared=no
11215      enable_shared=no
11216      ;;
11217
11218    *nto* | *qnx*)
11219      # QNX uses GNU C++, but need to define -shared option too, otherwise
11220      # it will coredump.
11221      lt_prog_compiler_pic='-fPIC -shared'
11222      ;;
11223
11224    sysv4*MP*)
11225      if test -d /usr/nec; then
11226	lt_prog_compiler_pic=-Kconform_pic
11227      fi
11228      ;;
11229
11230    *)
11231      lt_prog_compiler_pic='-fPIC'
11232      ;;
11233    esac
11234
11235    case $cc_basename in
11236    nvcc*) # Cuda Compiler Driver 2.2
11237      lt_prog_compiler_wl='-Xlinker '
11238      if test -n "$lt_prog_compiler_pic"; then
11239        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11240      fi
11241      ;;
11242    esac
11243  else
11244    # PORTME Check for flag to pass linker flags through the system compiler.
11245    case $host_os in
11246    aix*)
11247      lt_prog_compiler_wl='-Wl,'
11248      if test ia64 = "$host_cpu"; then
11249	# AIX 5 now supports IA64 processor
11250	lt_prog_compiler_static='-Bstatic'
11251      else
11252	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11253      fi
11254      ;;
11255
11256    darwin* | rhapsody*)
11257      # PIC is the default on this platform
11258      # Common symbols not allowed in MH_DYLIB files
11259      lt_prog_compiler_pic='-fno-common'
11260      case $cc_basename in
11261      nagfor*)
11262        # NAG Fortran compiler
11263        lt_prog_compiler_wl='-Wl,-Wl,,'
11264        lt_prog_compiler_pic='-PIC'
11265        lt_prog_compiler_static='-Bstatic'
11266        ;;
11267      esac
11268      ;;
11269
11270    mingw* | cygwin* | pw32* | os2* | cegcc*)
11271      # This hack is so that the source file can tell whether it is being
11272      # built for inclusion in a dll (and should export symbols for example).
11273      lt_prog_compiler_pic='-DDLL_EXPORT'
11274      case $host_os in
11275      os2*)
11276	lt_prog_compiler_static='$wl-static'
11277	;;
11278      esac
11279      ;;
11280
11281    hpux9* | hpux10* | hpux11*)
11282      lt_prog_compiler_wl='-Wl,'
11283      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11284      # not for PA HP-UX.
11285      case $host_cpu in
11286      hppa*64*|ia64*)
11287	# +Z the default
11288	;;
11289      *)
11290	lt_prog_compiler_pic='+Z'
11291	;;
11292      esac
11293      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11294      lt_prog_compiler_static='$wl-a ${wl}archive'
11295      ;;
11296
11297    irix5* | irix6* | nonstopux*)
11298      lt_prog_compiler_wl='-Wl,'
11299      # PIC (with -KPIC) is the default.
11300      lt_prog_compiler_static='-non_shared'
11301      ;;
11302
11303    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11304      case $cc_basename in
11305      # old Intel for x86_64, which still supported -KPIC.
11306      ecc*)
11307	lt_prog_compiler_wl='-Wl,'
11308	lt_prog_compiler_pic='-KPIC'
11309	lt_prog_compiler_static='-static'
11310        ;;
11311      # flang / f18. f95 an alias for gfortran or flang on Debian
11312      flang* | f18* | f95*)
11313	lt_prog_compiler_wl='-Wl,'
11314	lt_prog_compiler_pic='-fPIC'
11315	lt_prog_compiler_static='-static'
11316        ;;
11317      # icc used to be incompatible with GCC.
11318      # ICC 10 doesn't accept -KPIC any more.
11319      icc* | ifort*)
11320	lt_prog_compiler_wl='-Wl,'
11321	lt_prog_compiler_pic='-fPIC'
11322	lt_prog_compiler_static='-static'
11323        ;;
11324      # Lahey Fortran 8.1.
11325      lf95*)
11326	lt_prog_compiler_wl='-Wl,'
11327	lt_prog_compiler_pic='--shared'
11328	lt_prog_compiler_static='--static'
11329	;;
11330      nagfor*)
11331	# NAG Fortran compiler
11332	lt_prog_compiler_wl='-Wl,-Wl,,'
11333	lt_prog_compiler_pic='-PIC'
11334	lt_prog_compiler_static='-Bstatic'
11335	;;
11336      tcc*)
11337	# Fabrice Bellard et al's Tiny C Compiler
11338	lt_prog_compiler_wl='-Wl,'
11339	lt_prog_compiler_pic='-fPIC'
11340	lt_prog_compiler_static='-static'
11341	;;
11342      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11343        # Portland Group compilers (*not* the Pentium gcc compiler,
11344	# which looks to be a dead project)
11345	lt_prog_compiler_wl='-Wl,'
11346	lt_prog_compiler_pic='-fpic'
11347	lt_prog_compiler_static='-Bstatic'
11348        ;;
11349      ccc*)
11350        lt_prog_compiler_wl='-Wl,'
11351        # All Alpha code is PIC.
11352        lt_prog_compiler_static='-non_shared'
11353        ;;
11354      xl* | bgxl* | bgf* | mpixl*)
11355	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11356	lt_prog_compiler_wl='-Wl,'
11357	lt_prog_compiler_pic='-qpic'
11358	lt_prog_compiler_static='-qstaticlink'
11359	;;
11360      *)
11361	case `$CC -V 2>&1 | sed 5q` in
11362	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11363	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11364	  lt_prog_compiler_pic='-KPIC'
11365	  lt_prog_compiler_static='-Bstatic'
11366	  lt_prog_compiler_wl=''
11367	  ;;
11368	*Sun\ F* | *Sun*Fortran*)
11369	  lt_prog_compiler_pic='-KPIC'
11370	  lt_prog_compiler_static='-Bstatic'
11371	  lt_prog_compiler_wl='-Qoption ld '
11372	  ;;
11373	*Sun\ C*)
11374	  # Sun C 5.9
11375	  lt_prog_compiler_pic='-KPIC'
11376	  lt_prog_compiler_static='-Bstatic'
11377	  lt_prog_compiler_wl='-Wl,'
11378	  ;;
11379        *Intel*\ [CF]*Compiler*)
11380	  lt_prog_compiler_wl='-Wl,'
11381	  lt_prog_compiler_pic='-fPIC'
11382	  lt_prog_compiler_static='-static'
11383	  ;;
11384	*Portland\ Group*)
11385	  lt_prog_compiler_wl='-Wl,'
11386	  lt_prog_compiler_pic='-fpic'
11387	  lt_prog_compiler_static='-Bstatic'
11388	  ;;
11389	esac
11390	;;
11391      esac
11392      ;;
11393
11394    newsos6)
11395      lt_prog_compiler_pic='-KPIC'
11396      lt_prog_compiler_static='-Bstatic'
11397      ;;
11398
11399    *nto* | *qnx*)
11400      # QNX uses GNU C++, but need to define -shared option too, otherwise
11401      # it will coredump.
11402      lt_prog_compiler_pic='-fPIC -shared'
11403      ;;
11404
11405    osf3* | osf4* | osf5*)
11406      lt_prog_compiler_wl='-Wl,'
11407      # All OSF/1 code is PIC.
11408      lt_prog_compiler_static='-non_shared'
11409      ;;
11410
11411    rdos*)
11412      lt_prog_compiler_static='-non_shared'
11413      ;;
11414
11415    solaris*)
11416      lt_prog_compiler_pic='-KPIC'
11417      lt_prog_compiler_static='-Bstatic'
11418      case $cc_basename in
11419      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11420	lt_prog_compiler_wl='-Qoption ld ';;
11421      *)
11422	lt_prog_compiler_wl='-Wl,';;
11423      esac
11424      ;;
11425
11426    sunos4*)
11427      lt_prog_compiler_wl='-Qoption ld '
11428      lt_prog_compiler_pic='-PIC'
11429      lt_prog_compiler_static='-Bstatic'
11430      ;;
11431
11432    sysv4 | sysv4.2uw2* | sysv4.3*)
11433      lt_prog_compiler_wl='-Wl,'
11434      lt_prog_compiler_pic='-KPIC'
11435      lt_prog_compiler_static='-Bstatic'
11436      ;;
11437
11438    sysv4*MP*)
11439      if test -d /usr/nec; then
11440	lt_prog_compiler_pic='-Kconform_pic'
11441	lt_prog_compiler_static='-Bstatic'
11442      fi
11443      ;;
11444
11445    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11446      lt_prog_compiler_wl='-Wl,'
11447      lt_prog_compiler_pic='-KPIC'
11448      lt_prog_compiler_static='-Bstatic'
11449      ;;
11450
11451    unicos*)
11452      lt_prog_compiler_wl='-Wl,'
11453      lt_prog_compiler_can_build_shared=no
11454      ;;
11455
11456    uts4*)
11457      lt_prog_compiler_pic='-pic'
11458      lt_prog_compiler_static='-Bstatic'
11459      ;;
11460
11461    *)
11462      lt_prog_compiler_can_build_shared=no
11463      ;;
11464    esac
11465  fi
11466
11467case $host_os in
11468  # For platforms that do not support PIC, -DPIC is meaningless:
11469  *djgpp*)
11470    lt_prog_compiler_pic=
11471    ;;
11472  *)
11473    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11474    ;;
11475esac
11476
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11478$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11479if ${lt_cv_prog_compiler_pic+:} false; then :
11480  $as_echo_n "(cached) " >&6
11481else
11482  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11483fi
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11485$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11486lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11487
11488#
11489# Check to make sure the PIC flag actually works.
11490#
11491if test -n "$lt_prog_compiler_pic"; then
11492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11493$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11494if ${lt_cv_prog_compiler_pic_works+:} false; then :
11495  $as_echo_n "(cached) " >&6
11496else
11497  lt_cv_prog_compiler_pic_works=no
11498   ac_outfile=conftest.$ac_objext
11499   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11500   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11501   # Insert the option either (1) after the last *FLAGS variable, or
11502   # (2) before a word containing "conftest.", or (3) at the end.
11503   # Note that $ac_compile itself does not contain backslashes and begins
11504   # with a dollar sign (not a hyphen), so the echo should work correctly.
11505   # The option is referenced via a variable to avoid confusing sed.
11506   lt_compile=`echo "$ac_compile" | $SED \
11507   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11509   -e 's:$: $lt_compiler_flag:'`
11510   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11511   (eval "$lt_compile" 2>conftest.err)
11512   ac_status=$?
11513   cat conftest.err >&5
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   if (exit $ac_status) && test -s "$ac_outfile"; then
11516     # The compiler can only warn and ignore the option if not recognized
11517     # So say no if there are warnings other than the usual output.
11518     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11519     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11520     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11521       lt_cv_prog_compiler_pic_works=yes
11522     fi
11523   fi
11524   $RM conftest*
11525
11526fi
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11528$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11529
11530if test yes = "$lt_cv_prog_compiler_pic_works"; then
11531    case $lt_prog_compiler_pic in
11532     "" | " "*) ;;
11533     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11534     esac
11535else
11536    lt_prog_compiler_pic=
11537     lt_prog_compiler_can_build_shared=no
11538fi
11539
11540fi
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552#
11553# Check to make sure the static flag actually works.
11554#
11555wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11557$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11558if ${lt_cv_prog_compiler_static_works+:} false; then :
11559  $as_echo_n "(cached) " >&6
11560else
11561  lt_cv_prog_compiler_static_works=no
11562   save_LDFLAGS=$LDFLAGS
11563   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11564   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11565   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11566     # The linker can only warn and ignore the option if not recognized
11567     # So say no if there are warnings
11568     if test -s conftest.err; then
11569       # Append any errors to the config.log.
11570       cat conftest.err 1>&5
11571       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11572       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573       if diff conftest.exp conftest.er2 >/dev/null; then
11574         lt_cv_prog_compiler_static_works=yes
11575       fi
11576     else
11577       lt_cv_prog_compiler_static_works=yes
11578     fi
11579   fi
11580   $RM -r conftest*
11581   LDFLAGS=$save_LDFLAGS
11582
11583fi
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11585$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11586
11587if test yes = "$lt_cv_prog_compiler_static_works"; then
11588    :
11589else
11590    lt_prog_compiler_static=
11591fi
11592
11593
11594
11595
11596
11597
11598
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11600$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11601if ${lt_cv_prog_compiler_c_o+:} false; then :
11602  $as_echo_n "(cached) " >&6
11603else
11604  lt_cv_prog_compiler_c_o=no
11605   $RM -r conftest 2>/dev/null
11606   mkdir conftest
11607   cd conftest
11608   mkdir out
11609   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11610
11611   lt_compiler_flag="-o out/conftest2.$ac_objext"
11612   # Insert the option either (1) after the last *FLAGS variable, or
11613   # (2) before a word containing "conftest.", or (3) at the end.
11614   # Note that $ac_compile itself does not contain backslashes and begins
11615   # with a dollar sign (not a hyphen), so the echo should work correctly.
11616   lt_compile=`echo "$ac_compile" | $SED \
11617   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11619   -e 's:$: $lt_compiler_flag:'`
11620   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11621   (eval "$lt_compile" 2>out/conftest.err)
11622   ac_status=$?
11623   cat out/conftest.err >&5
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11626   then
11627     # The compiler can only warn and ignore the option if not recognized
11628     # So say no if there are warnings
11629     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11630     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11631     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11632       lt_cv_prog_compiler_c_o=yes
11633     fi
11634   fi
11635   chmod u+w . 2>&5
11636   $RM conftest*
11637   # SGI C++ compiler will create directory out/ii_files/ for
11638   # template instantiation
11639   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11640   $RM out/* && rmdir out
11641   cd ..
11642   $RM -r conftest
11643   $RM conftest*
11644
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11647$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11648
11649
11650
11651
11652
11653
11654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11655$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11656if ${lt_cv_prog_compiler_c_o+:} false; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  lt_cv_prog_compiler_c_o=no
11660   $RM -r conftest 2>/dev/null
11661   mkdir conftest
11662   cd conftest
11663   mkdir out
11664   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11665
11666   lt_compiler_flag="-o out/conftest2.$ac_objext"
11667   # Insert the option either (1) after the last *FLAGS variable, or
11668   # (2) before a word containing "conftest.", or (3) at the end.
11669   # Note that $ac_compile itself does not contain backslashes and begins
11670   # with a dollar sign (not a hyphen), so the echo should work correctly.
11671   lt_compile=`echo "$ac_compile" | $SED \
11672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11674   -e 's:$: $lt_compiler_flag:'`
11675   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11676   (eval "$lt_compile" 2>out/conftest.err)
11677   ac_status=$?
11678   cat out/conftest.err >&5
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11681   then
11682     # The compiler can only warn and ignore the option if not recognized
11683     # So say no if there are warnings
11684     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11685     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11686     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11687       lt_cv_prog_compiler_c_o=yes
11688     fi
11689   fi
11690   chmod u+w . 2>&5
11691   $RM conftest*
11692   # SGI C++ compiler will create directory out/ii_files/ for
11693   # template instantiation
11694   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11695   $RM out/* && rmdir out
11696   cd ..
11697   $RM -r conftest
11698   $RM conftest*
11699
11700fi
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11702$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11703
11704
11705
11706
11707hard_links=nottested
11708if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11709  # do not overwrite the value of need_locks provided by the user
11710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11711$as_echo_n "checking if we can lock with hard links... " >&6; }
11712  hard_links=yes
11713  $RM conftest*
11714  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11715  touch conftest.a
11716  ln conftest.a conftest.b 2>&5 || hard_links=no
11717  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11719$as_echo "$hard_links" >&6; }
11720  if test no = "$hard_links"; then
11721    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11722$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11723    need_locks=warn
11724  fi
11725else
11726  need_locks=no
11727fi
11728
11729
11730
11731
11732
11733
11734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11736
11737  runpath_var=
11738  allow_undefined_flag=
11739  always_export_symbols=no
11740  archive_cmds=
11741  archive_expsym_cmds=
11742  compiler_needs_object=no
11743  enable_shared_with_static_runtimes=no
11744  export_dynamic_flag_spec=
11745  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11746  hardcode_automatic=no
11747  hardcode_direct=no
11748  hardcode_direct_absolute=no
11749  hardcode_libdir_flag_spec=
11750  hardcode_libdir_separator=
11751  hardcode_minus_L=no
11752  hardcode_shlibpath_var=unsupported
11753  inherit_rpath=no
11754  link_all_deplibs=unknown
11755  module_cmds=
11756  module_expsym_cmds=
11757  old_archive_from_new_cmds=
11758  old_archive_from_expsyms_cmds=
11759  thread_safe_flag_spec=
11760  whole_archive_flag_spec=
11761  # include_expsyms should be a list of space-separated symbols to be *always*
11762  # included in the symbol list
11763  include_expsyms=
11764  # exclude_expsyms can be an extended regexp of symbols to exclude
11765  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11766  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11767  # as well as any symbol that contains 'd'.
11768  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11769  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11770  # platforms (ab)use it in PIC code, but their linkers get confused if
11771  # the symbol is explicitly referenced.  Since portable code cannot
11772  # rely on this symbol name, it's probably fine to never include it in
11773  # preloaded symbol tables.
11774  # Exclude shared library initialization/finalization symbols.
11775  extract_expsyms_cmds=
11776
11777  case $host_os in
11778  cygwin* | mingw* | pw32* | cegcc*)
11779    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11780    # When not using gcc, we currently assume that we are using
11781    # Microsoft Visual C++.
11782    if test yes != "$GCC"; then
11783      with_gnu_ld=no
11784    fi
11785    ;;
11786  interix*)
11787    # we just hope/assume this is gcc and not c89 (= MSVC++)
11788    with_gnu_ld=yes
11789    ;;
11790  openbsd* | bitrig*)
11791    with_gnu_ld=no
11792    ;;
11793  linux* | k*bsd*-gnu | gnu*)
11794    link_all_deplibs=no
11795    ;;
11796  esac
11797
11798  ld_shlibs=yes
11799
11800  # On some targets, GNU ld is compatible enough with the native linker
11801  # that we're better off using the native interface for both.
11802  lt_use_gnu_ld_interface=no
11803  if test yes = "$with_gnu_ld"; then
11804    case $host_os in
11805      aix*)
11806	# The AIX port of GNU ld has always aspired to compatibility
11807	# with the native linker.  However, as the warning in the GNU ld
11808	# block says, versions before 2.19.5* couldn't really create working
11809	# shared libraries, regardless of the interface used.
11810	case `$LD -v 2>&1` in
11811	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11812	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11813	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11814	  *)
11815	    lt_use_gnu_ld_interface=yes
11816	    ;;
11817	esac
11818	;;
11819      *)
11820	lt_use_gnu_ld_interface=yes
11821	;;
11822    esac
11823  fi
11824
11825  if test yes = "$lt_use_gnu_ld_interface"; then
11826    # If archive_cmds runs LD, not CC, wlarc should be empty
11827    wlarc='$wl'
11828
11829    # Set some defaults for GNU ld with shared library support. These
11830    # are reset later if shared libraries are not supported. Putting them
11831    # here allows them to be overridden if necessary.
11832    runpath_var=LD_RUN_PATH
11833    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11834    export_dynamic_flag_spec='$wl--export-dynamic'
11835    # ancient GNU ld didn't support --whole-archive et. al.
11836    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11837      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11838    else
11839      whole_archive_flag_spec=
11840    fi
11841    supports_anon_versioning=no
11842    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11843      *GNU\ gold*) supports_anon_versioning=yes ;;
11844      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11845      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11846      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11847      *\ 2.11.*) ;; # other 2.11 versions
11848      *) supports_anon_versioning=yes ;;
11849    esac
11850
11851    # See if GNU ld supports shared libraries.
11852    case $host_os in
11853    aix[3-9]*)
11854      # On AIX/PPC, the GNU linker is very broken
11855      if test ia64 != "$host_cpu"; then
11856	ld_shlibs=no
11857	cat <<_LT_EOF 1>&2
11858
11859*** Warning: the GNU linker, at least up to release 2.19, is reported
11860*** to be unable to reliably create shared libraries on AIX.
11861*** Therefore, libtool is disabling shared libraries support.  If you
11862*** really care for shared libraries, you may want to install binutils
11863*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11864*** You will then need to restart the configuration process.
11865
11866_LT_EOF
11867      fi
11868      ;;
11869
11870    amigaos*)
11871      case $host_cpu in
11872      powerpc)
11873            # see comment about AmigaOS4 .so support
11874            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11875            archive_expsym_cmds=''
11876        ;;
11877      m68k)
11878            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)'
11879            hardcode_libdir_flag_spec='-L$libdir'
11880            hardcode_minus_L=yes
11881        ;;
11882      esac
11883      ;;
11884
11885    beos*)
11886      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11887	allow_undefined_flag=unsupported
11888	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11889	# support --undefined.  This deserves some investigation.  FIXME
11890	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11891      else
11892	ld_shlibs=no
11893      fi
11894      ;;
11895
11896    cygwin* | mingw* | pw32* | cegcc*)
11897      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11898      # as there is no search path for DLLs.
11899      hardcode_libdir_flag_spec='-L$libdir'
11900      export_dynamic_flag_spec='$wl--export-all-symbols'
11901      allow_undefined_flag=unsupported
11902      always_export_symbols=no
11903      enable_shared_with_static_runtimes=yes
11904      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'
11905      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11906
11907      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11908        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11909	# If the export-symbols file already is a .def file, use it as
11910	# is; otherwise, prepend EXPORTS...
11911	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11912          cp $export_symbols $output_objdir/$soname.def;
11913        else
11914          echo EXPORTS > $output_objdir/$soname.def;
11915          cat $export_symbols >> $output_objdir/$soname.def;
11916        fi~
11917        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11918      else
11919	ld_shlibs=no
11920      fi
11921      ;;
11922
11923    haiku*)
11924      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11925      link_all_deplibs=yes
11926      ;;
11927
11928    os2*)
11929      hardcode_libdir_flag_spec='-L$libdir'
11930      hardcode_minus_L=yes
11931      allow_undefined_flag=unsupported
11932      shrext_cmds=.dll
11933      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11934	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11935	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11936	$ECHO EXPORTS >> $output_objdir/$libname.def~
11937	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11938	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11939	emximp -o $lib $output_objdir/$libname.def'
11940      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11941	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11942	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11943	$ECHO EXPORTS >> $output_objdir/$libname.def~
11944	prefix_cmds="$SED"~
11945	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11946	  prefix_cmds="$prefix_cmds -e 1d";
11947	fi~
11948	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11949	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11950	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11951	emximp -o $lib $output_objdir/$libname.def'
11952      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11953      enable_shared_with_static_runtimes=yes
11954      ;;
11955
11956    interix[3-9]*)
11957      hardcode_direct=no
11958      hardcode_shlibpath_var=no
11959      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11960      export_dynamic_flag_spec='$wl-E'
11961      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11962      # Instead, shared libraries are loaded at an image base (0x10000000 by
11963      # default) and relocated if they conflict, which is a slow very memory
11964      # consuming and fragmenting process.  To avoid this, we pick a random,
11965      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11966      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11967      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11968      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'
11969      ;;
11970
11971    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11972      tmp_diet=no
11973      if test linux-dietlibc = "$host_os"; then
11974	case $cc_basename in
11975	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11976	esac
11977      fi
11978      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11979	 && test no = "$tmp_diet"
11980      then
11981	tmp_addflag=' $pic_flag'
11982	tmp_sharedflag='-shared'
11983	case $cc_basename,$host_cpu in
11984        pgcc*)				# Portland Group C compiler
11985	  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'
11986	  tmp_addflag=' $pic_flag'
11987	  ;;
11988	pgf77* | pgf90* | pgf95* | pgfortran*)
11989					# Portland Group f77 and f90 compilers
11990	  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'
11991	  tmp_addflag=' $pic_flag -Mnomain' ;;
11992	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11993	  tmp_addflag=' -i_dynamic' ;;
11994	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11995	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11996	ifc* | ifort*)			# Intel Fortran compiler
11997	  tmp_addflag=' -nofor_main' ;;
11998	lf95*)				# Lahey Fortran 8.1
11999	  whole_archive_flag_spec=
12000	  tmp_sharedflag='--shared' ;;
12001        nagfor*)                        # NAGFOR 5.3
12002          tmp_sharedflag='-Wl,-shared' ;;
12003	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12004	  tmp_sharedflag='-qmkshrobj'
12005	  tmp_addflag= ;;
12006	nvcc*)	# Cuda Compiler Driver 2.2
12007	  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'
12008	  compiler_needs_object=yes
12009	  ;;
12010	esac
12011	case `$CC -V 2>&1 | sed 5q` in
12012	*Sun\ C*)			# Sun C 5.9
12013	  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'
12014	  compiler_needs_object=yes
12015	  tmp_sharedflag='-G' ;;
12016	*Sun\ F*)			# Sun Fortran 8.3
12017	  tmp_sharedflag='-G' ;;
12018	esac
12019	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12020
12021        if test yes = "$supports_anon_versioning"; then
12022          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12023            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12024            echo "local: *; };" >> $output_objdir/$libname.ver~
12025            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12026        fi
12027
12028	case $cc_basename in
12029	tcc*)
12030	  export_dynamic_flag_spec='-rdynamic'
12031	  ;;
12032	xlf* | bgf* | bgxlf* | mpixlf*)
12033	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12034	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12035	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12036	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12037	  if test yes = "$supports_anon_versioning"; then
12038	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12039              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12040              echo "local: *; };" >> $output_objdir/$libname.ver~
12041              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12042	  fi
12043	  ;;
12044	esac
12045      else
12046        ld_shlibs=no
12047      fi
12048      ;;
12049
12050    netbsd* | netbsdelf*-gnu)
12051      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12052	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12053	wlarc=
12054      else
12055	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12056	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12057      fi
12058      ;;
12059
12060    solaris*)
12061      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12062	ld_shlibs=no
12063	cat <<_LT_EOF 1>&2
12064
12065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12066*** create shared libraries on Solaris systems.  Therefore, libtool
12067*** is disabling shared libraries support.  We urge you to upgrade GNU
12068*** binutils to release 2.9.1 or newer.  Another option is to modify
12069*** your PATH or compiler configuration so that the native linker is
12070*** used, and then restart.
12071
12072_LT_EOF
12073      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12074	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12075	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12076      else
12077	ld_shlibs=no
12078      fi
12079      ;;
12080
12081    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12082      case `$LD -v 2>&1` in
12083        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12084	ld_shlibs=no
12085	cat <<_LT_EOF 1>&2
12086
12087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12088*** reliably create shared libraries on SCO systems.  Therefore, libtool
12089*** is disabling shared libraries support.  We urge you to upgrade GNU
12090*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12091*** your PATH or compiler configuration so that the native linker is
12092*** used, and then restart.
12093
12094_LT_EOF
12095	;;
12096	*)
12097	  # For security reasons, it is highly recommended that you always
12098	  # use absolute paths for naming shared libraries, and exclude the
12099	  # DT_RUNPATH tag from executables and libraries.  But doing so
12100	  # requires that you compile everything twice, which is a pain.
12101	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12102	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12103	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12104	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12105	  else
12106	    ld_shlibs=no
12107	  fi
12108	;;
12109      esac
12110      ;;
12111
12112    sunos4*)
12113      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12114      wlarc=
12115      hardcode_direct=yes
12116      hardcode_shlibpath_var=no
12117      ;;
12118
12119    *)
12120      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12121	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12122	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12123      else
12124	ld_shlibs=no
12125      fi
12126      ;;
12127    esac
12128
12129    if test no = "$ld_shlibs"; then
12130      runpath_var=
12131      hardcode_libdir_flag_spec=
12132      export_dynamic_flag_spec=
12133      whole_archive_flag_spec=
12134    fi
12135  else
12136    # PORTME fill in a description of your system's linker (not GNU ld)
12137    case $host_os in
12138    aix3*)
12139      allow_undefined_flag=unsupported
12140      always_export_symbols=yes
12141      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'
12142      # Note: this linker hardcodes the directories in LIBPATH if there
12143      # are no directories specified by -L.
12144      hardcode_minus_L=yes
12145      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12146	# Neither direct hardcoding nor static linking is supported with a
12147	# broken collect2.
12148	hardcode_direct=unsupported
12149      fi
12150      ;;
12151
12152    aix[4-9]*)
12153      if test ia64 = "$host_cpu"; then
12154	# On IA64, the linker does run time linking by default, so we don't
12155	# have to do anything special.
12156	aix_use_runtimelinking=no
12157	exp_sym_flag='-Bexport'
12158	no_entry_flag=
12159      else
12160	# If we're using GNU nm, then we don't want the "-C" option.
12161	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12162	# Without the "-l" option, or with the "-B" option, AIX nm treats
12163	# weak defined symbols like other global defined symbols, whereas
12164	# GNU nm marks them as "W".
12165	# While the 'weak' keyword is ignored in the Export File, we need
12166	# it in the Import File for the 'aix-soname' feature, so we have
12167	# to replace the "-B" option with "-P" for AIX nm.
12168	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12169	  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'
12170	else
12171	  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'
12172	fi
12173	aix_use_runtimelinking=no
12174
12175	# Test if we are trying to use run time linking or normal
12176	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12177	# have runtime linking enabled, and use it for executables.
12178	# For shared libraries, we enable/disable runtime linking
12179	# depending on the kind of the shared library created -
12180	# when "with_aix_soname,aix_use_runtimelinking" is:
12181	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12182	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12183	#            lib.a           static archive
12184	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12185	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12186	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12187	#            lib.a(lib.so.V) shared, rtl:no
12188	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12189	#            lib.a           static archive
12190	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12191	  for ld_flag in $LDFLAGS; do
12192	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12193	    aix_use_runtimelinking=yes
12194	    break
12195	  fi
12196	  done
12197	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12198	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12199	    # so we don't have lib.a shared libs to link our executables.
12200	    # We have to force runtime linking in this case.
12201	    aix_use_runtimelinking=yes
12202	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12203	  fi
12204	  ;;
12205	esac
12206
12207	exp_sym_flag='-bexport'
12208	no_entry_flag='-bnoentry'
12209      fi
12210
12211      # When large executables or shared objects are built, AIX ld can
12212      # have problems creating the table of contents.  If linking a library
12213      # or program results in "error TOC overflow" add -mminimal-toc to
12214      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12215      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12216
12217      archive_cmds=''
12218      hardcode_direct=yes
12219      hardcode_direct_absolute=yes
12220      hardcode_libdir_separator=':'
12221      link_all_deplibs=yes
12222      file_list_spec='$wl-f,'
12223      case $with_aix_soname,$aix_use_runtimelinking in
12224      aix,*) ;; # traditional, no import file
12225      svr4,* | *,yes) # use import file
12226	# The Import File defines what to hardcode.
12227	hardcode_direct=no
12228	hardcode_direct_absolute=no
12229	;;
12230      esac
12231
12232      if test yes = "$GCC"; then
12233	case $host_os in aix4.[012]|aix4.[012].*)
12234	# We only want to do this on AIX 4.2 and lower, the check
12235	# below for broken collect2 doesn't work under 4.3+
12236	  collect2name=`$CC -print-prog-name=collect2`
12237	  if test -f "$collect2name" &&
12238	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12239	  then
12240	  # We have reworked collect2
12241	  :
12242	  else
12243	  # We have old collect2
12244	  hardcode_direct=unsupported
12245	  # It fails to find uninstalled libraries when the uninstalled
12246	  # path is not listed in the libpath.  Setting hardcode_minus_L
12247	  # to unsupported forces relinking
12248	  hardcode_minus_L=yes
12249	  hardcode_libdir_flag_spec='-L$libdir'
12250	  hardcode_libdir_separator=
12251	  fi
12252	  ;;
12253	esac
12254	shared_flag='-shared'
12255	if test yes = "$aix_use_runtimelinking"; then
12256	  shared_flag="$shared_flag "'$wl-G'
12257	fi
12258	# Need to ensure runtime linking is disabled for the traditional
12259	# shared library, or the linker may eventually find shared libraries
12260	# /with/ Import File - we do not want to mix them.
12261	shared_flag_aix='-shared'
12262	shared_flag_svr4='-shared $wl-G'
12263      else
12264	# not using gcc
12265	if test ia64 = "$host_cpu"; then
12266	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12267	# chokes on -Wl,-G. The following line is correct:
12268	  shared_flag='-G'
12269	else
12270	  if test yes = "$aix_use_runtimelinking"; then
12271	    shared_flag='$wl-G'
12272	  else
12273	    shared_flag='$wl-bM:SRE'
12274	  fi
12275	  shared_flag_aix='$wl-bM:SRE'
12276	  shared_flag_svr4='$wl-G'
12277	fi
12278      fi
12279
12280      export_dynamic_flag_spec='$wl-bexpall'
12281      # It seems that -bexpall does not export symbols beginning with
12282      # underscore (_), so it is better to generate a list of symbols to export.
12283      always_export_symbols=yes
12284      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12285	# Warning - without using the other runtime loading flags (-brtl),
12286	# -berok will link without error, but may produce a broken library.
12287	allow_undefined_flag='-berok'
12288        # Determine the default libpath from the value encoded in an
12289        # empty executable.
12290        if test set = "${lt_cv_aix_libpath+set}"; then
12291  aix_libpath=$lt_cv_aix_libpath
12292else
12293  if ${lt_cv_aix_libpath_+:} false; then :
12294  $as_echo_n "(cached) " >&6
12295else
12296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h.  */
12298
12299int
12300main ()
12301{
12302
12303  ;
12304  return 0;
12305}
12306_ACEOF
12307if ac_fn_c_try_link "$LINENO"; then :
12308
12309  lt_aix_libpath_sed='
12310      /Import File Strings/,/^$/ {
12311	  /^0/ {
12312	      s/^0  *\([^ ]*\) *$/\1/
12313	      p
12314	  }
12315      }'
12316  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12317  # Check for a 64-bit object if we didn't find anything.
12318  if test -z "$lt_cv_aix_libpath_"; then
12319    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12320  fi
12321fi
12322rm -f core conftest.err conftest.$ac_objext \
12323    conftest$ac_exeext conftest.$ac_ext
12324  if test -z "$lt_cv_aix_libpath_"; then
12325    lt_cv_aix_libpath_=/usr/lib:/lib
12326  fi
12327
12328fi
12329
12330  aix_libpath=$lt_cv_aix_libpath_
12331fi
12332
12333        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12334        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
12335      else
12336	if test ia64 = "$host_cpu"; then
12337	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12338	  allow_undefined_flag="-z nodefs"
12339	  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"
12340	else
12341	 # Determine the default libpath from the value encoded in an
12342	 # empty executable.
12343	 if test set = "${lt_cv_aix_libpath+set}"; then
12344  aix_libpath=$lt_cv_aix_libpath
12345else
12346  if ${lt_cv_aix_libpath_+:} false; then :
12347  $as_echo_n "(cached) " >&6
12348else
12349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352int
12353main ()
12354{
12355
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360if ac_fn_c_try_link "$LINENO"; then :
12361
12362  lt_aix_libpath_sed='
12363      /Import File Strings/,/^$/ {
12364	  /^0/ {
12365	      s/^0  *\([^ ]*\) *$/\1/
12366	      p
12367	  }
12368      }'
12369  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12370  # Check for a 64-bit object if we didn't find anything.
12371  if test -z "$lt_cv_aix_libpath_"; then
12372    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373  fi
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376    conftest$ac_exeext conftest.$ac_ext
12377  if test -z "$lt_cv_aix_libpath_"; then
12378    lt_cv_aix_libpath_=/usr/lib:/lib
12379  fi
12380
12381fi
12382
12383  aix_libpath=$lt_cv_aix_libpath_
12384fi
12385
12386	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12387	  # Warning - without using the other run time loading flags,
12388	  # -berok will link without error, but may produce a broken library.
12389	  no_undefined_flag=' $wl-bernotok'
12390	  allow_undefined_flag=' $wl-berok'
12391	  if test yes = "$with_gnu_ld"; then
12392	    # We only use this code for GNU lds that support --whole-archive.
12393	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12394	  else
12395	    # Exported symbols can be pulled into shared objects from archives
12396	    whole_archive_flag_spec='$convenience'
12397	  fi
12398	  archive_cmds_need_lc=yes
12399	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12400	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12401	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12402	  if test svr4 != "$with_aix_soname"; then
12403	    # This is similar to how AIX traditionally builds its shared libraries.
12404	    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'
12405	  fi
12406	  if test aix != "$with_aix_soname"; then
12407	    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'
12408	  else
12409	    # used by -dlpreopen to get the symbols
12410	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12411	  fi
12412	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12413	fi
12414      fi
12415      ;;
12416
12417    amigaos*)
12418      case $host_cpu in
12419      powerpc)
12420            # see comment about AmigaOS4 .so support
12421            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12422            archive_expsym_cmds=''
12423        ;;
12424      m68k)
12425            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)'
12426            hardcode_libdir_flag_spec='-L$libdir'
12427            hardcode_minus_L=yes
12428        ;;
12429      esac
12430      ;;
12431
12432    bsdi[45]*)
12433      export_dynamic_flag_spec=-rdynamic
12434      ;;
12435
12436    cygwin* | mingw* | pw32* | cegcc*)
12437      # When not using gcc, we currently assume that we are using
12438      # Microsoft Visual C++.
12439      # hardcode_libdir_flag_spec is actually meaningless, as there is
12440      # no search path for DLLs.
12441      case $cc_basename in
12442      cl*)
12443	# Native MSVC
12444	hardcode_libdir_flag_spec=' '
12445	allow_undefined_flag=unsupported
12446	always_export_symbols=yes
12447	file_list_spec='@'
12448	# Tell ltmain to make .lib files, not .a files.
12449	libext=lib
12450	# Tell ltmain to make .dll files, not .so files.
12451	shrext_cmds=.dll
12452	# FIXME: Setting linknames here is a bad hack.
12453	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12454	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12455            cp "$export_symbols" "$output_objdir/$soname.def";
12456            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12457          else
12458            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12459          fi~
12460          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12461          linknames='
12462	# The linker will not automatically build a static lib if we build a DLL.
12463	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12464	enable_shared_with_static_runtimes=yes
12465	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12466	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12467	# Don't use ranlib
12468	old_postinstall_cmds='chmod 644 $oldlib'
12469	postlink_cmds='lt_outputfile="@OUTPUT@"~
12470          lt_tool_outputfile="@TOOL_OUTPUT@"~
12471          case $lt_outputfile in
12472            *.exe|*.EXE) ;;
12473            *)
12474              lt_outputfile=$lt_outputfile.exe
12475              lt_tool_outputfile=$lt_tool_outputfile.exe
12476              ;;
12477          esac~
12478          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12479            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12480            $RM "$lt_outputfile.manifest";
12481          fi'
12482	;;
12483      *)
12484	# Assume MSVC wrapper
12485	hardcode_libdir_flag_spec=' '
12486	allow_undefined_flag=unsupported
12487	# Tell ltmain to make .lib files, not .a files.
12488	libext=lib
12489	# Tell ltmain to make .dll files, not .so files.
12490	shrext_cmds=.dll
12491	# FIXME: Setting linknames here is a bad hack.
12492	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12493	# The linker will automatically build a .lib file if we build a DLL.
12494	old_archive_from_new_cmds='true'
12495	# FIXME: Should let the user specify the lib program.
12496	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12497	enable_shared_with_static_runtimes=yes
12498	;;
12499      esac
12500      ;;
12501
12502    darwin* | rhapsody*)
12503
12504
12505  archive_cmds_need_lc=no
12506  hardcode_direct=no
12507  hardcode_automatic=yes
12508  hardcode_shlibpath_var=unsupported
12509  if test yes = "$lt_cv_ld_force_load"; then
12510    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\"`'
12511
12512  else
12513    whole_archive_flag_spec=''
12514  fi
12515  link_all_deplibs=yes
12516  allow_undefined_flag=$_lt_dar_allow_undefined
12517  case $cc_basename in
12518     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12519     *) _lt_dar_can_shared=$GCC ;;
12520  esac
12521  if test yes = "$_lt_dar_can_shared"; then
12522    output_verbose_link_cmd=func_echo_all
12523    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12524    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12525    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"
12526    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"
12527
12528  else
12529  ld_shlibs=no
12530  fi
12531
12532      ;;
12533
12534    dgux*)
12535      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12536      hardcode_libdir_flag_spec='-L$libdir'
12537      hardcode_shlibpath_var=no
12538      ;;
12539
12540    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12541    # support.  Future versions do this automatically, but an explicit c++rt0.o
12542    # does not break anything, and helps significantly (at the cost of a little
12543    # extra space).
12544    freebsd2.2*)
12545      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12546      hardcode_libdir_flag_spec='-R$libdir'
12547      hardcode_direct=yes
12548      hardcode_shlibpath_var=no
12549      ;;
12550
12551    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12552    freebsd2.*)
12553      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12554      hardcode_direct=yes
12555      hardcode_minus_L=yes
12556      hardcode_shlibpath_var=no
12557      ;;
12558
12559    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12560    freebsd* | dragonfly*)
12561      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12562      hardcode_libdir_flag_spec='-R$libdir'
12563      hardcode_direct=yes
12564      hardcode_shlibpath_var=no
12565      ;;
12566
12567    hpux9*)
12568      if test yes = "$GCC"; then
12569	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'
12570      else
12571	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'
12572      fi
12573      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12574      hardcode_libdir_separator=:
12575      hardcode_direct=yes
12576
12577      # hardcode_minus_L: Not really in the search PATH,
12578      # but as the default location of the library.
12579      hardcode_minus_L=yes
12580      export_dynamic_flag_spec='$wl-E'
12581      ;;
12582
12583    hpux10*)
12584      if test yes,no = "$GCC,$with_gnu_ld"; then
12585	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12586      else
12587	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12588      fi
12589      if test no = "$with_gnu_ld"; then
12590	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12591	hardcode_libdir_separator=:
12592	hardcode_direct=yes
12593	hardcode_direct_absolute=yes
12594	export_dynamic_flag_spec='$wl-E'
12595	# hardcode_minus_L: Not really in the search PATH,
12596	# but as the default location of the library.
12597	hardcode_minus_L=yes
12598      fi
12599      ;;
12600
12601    hpux11*)
12602      if test yes,no = "$GCC,$with_gnu_ld"; then
12603	case $host_cpu in
12604	hppa*64*)
12605	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12606	  ;;
12607	ia64*)
12608	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12609	  ;;
12610	*)
12611	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12612	  ;;
12613	esac
12614      else
12615	case $host_cpu in
12616	hppa*64*)
12617	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12618	  ;;
12619	ia64*)
12620	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12621	  ;;
12622	*)
12623
12624	  # Older versions of the 11.00 compiler do not understand -b yet
12625	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12626	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12627$as_echo_n "checking if $CC understands -b... " >&6; }
12628if ${lt_cv_prog_compiler__b+:} false; then :
12629  $as_echo_n "(cached) " >&6
12630else
12631  lt_cv_prog_compiler__b=no
12632   save_LDFLAGS=$LDFLAGS
12633   LDFLAGS="$LDFLAGS -b"
12634   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12635   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12636     # The linker can only warn and ignore the option if not recognized
12637     # So say no if there are warnings
12638     if test -s conftest.err; then
12639       # Append any errors to the config.log.
12640       cat conftest.err 1>&5
12641       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12642       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12643       if diff conftest.exp conftest.er2 >/dev/null; then
12644         lt_cv_prog_compiler__b=yes
12645       fi
12646     else
12647       lt_cv_prog_compiler__b=yes
12648     fi
12649   fi
12650   $RM -r conftest*
12651   LDFLAGS=$save_LDFLAGS
12652
12653fi
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12655$as_echo "$lt_cv_prog_compiler__b" >&6; }
12656
12657if test yes = "$lt_cv_prog_compiler__b"; then
12658    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12659else
12660    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12661fi
12662
12663	  ;;
12664	esac
12665      fi
12666      if test no = "$with_gnu_ld"; then
12667	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12668	hardcode_libdir_separator=:
12669
12670	case $host_cpu in
12671	hppa*64*|ia64*)
12672	  hardcode_direct=no
12673	  hardcode_shlibpath_var=no
12674	  ;;
12675	*)
12676	  hardcode_direct=yes
12677	  hardcode_direct_absolute=yes
12678	  export_dynamic_flag_spec='$wl-E'
12679
12680	  # hardcode_minus_L: Not really in the search PATH,
12681	  # but as the default location of the library.
12682	  hardcode_minus_L=yes
12683	  ;;
12684	esac
12685      fi
12686      ;;
12687
12688    irix5* | irix6* | nonstopux*)
12689      if test yes = "$GCC"; then
12690	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'
12691	# Try to use the -exported_symbol ld option, if it does not
12692	# work, assume that -exports_file does not work either and
12693	# implicitly export all symbols.
12694	# This should be the same for all languages, so no per-tag cache variable.
12695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12696$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12697if ${lt_cv_irix_exported_symbol+:} false; then :
12698  $as_echo_n "(cached) " >&6
12699else
12700  save_LDFLAGS=$LDFLAGS
12701	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12702	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703/* end confdefs.h.  */
12704int foo (void) { return 0; }
12705_ACEOF
12706if ac_fn_c_try_link "$LINENO"; then :
12707  lt_cv_irix_exported_symbol=yes
12708else
12709  lt_cv_irix_exported_symbol=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext \
12712    conftest$ac_exeext conftest.$ac_ext
12713           LDFLAGS=$save_LDFLAGS
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12716$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12717	if test yes = "$lt_cv_irix_exported_symbol"; then
12718          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'
12719	fi
12720	link_all_deplibs=no
12721      else
12722	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'
12723	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'
12724      fi
12725      archive_cmds_need_lc='no'
12726      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12727      hardcode_libdir_separator=:
12728      inherit_rpath=yes
12729      link_all_deplibs=yes
12730      ;;
12731
12732    linux*)
12733      case $cc_basename in
12734      tcc*)
12735	# Fabrice Bellard et al's Tiny C Compiler
12736	ld_shlibs=yes
12737	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12738	;;
12739      esac
12740      ;;
12741
12742    netbsd* | netbsdelf*-gnu)
12743      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12744	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12745      else
12746	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12747      fi
12748      hardcode_libdir_flag_spec='-R$libdir'
12749      hardcode_direct=yes
12750      hardcode_shlibpath_var=no
12751      ;;
12752
12753    newsos6)
12754      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12755      hardcode_direct=yes
12756      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12757      hardcode_libdir_separator=:
12758      hardcode_shlibpath_var=no
12759      ;;
12760
12761    *nto* | *qnx*)
12762      ;;
12763
12764    openbsd* | bitrig*)
12765      if test -f /usr/libexec/ld.so; then
12766	hardcode_direct=yes
12767	hardcode_shlibpath_var=no
12768	hardcode_direct_absolute=yes
12769	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12770	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12771	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12772	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12773	  export_dynamic_flag_spec='$wl-E'
12774	else
12775	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12776	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12777	fi
12778      else
12779	ld_shlibs=no
12780      fi
12781      ;;
12782
12783    os2*)
12784      hardcode_libdir_flag_spec='-L$libdir'
12785      hardcode_minus_L=yes
12786      allow_undefined_flag=unsupported
12787      shrext_cmds=.dll
12788      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12789	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12790	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12791	$ECHO EXPORTS >> $output_objdir/$libname.def~
12792	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12793	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12794	emximp -o $lib $output_objdir/$libname.def'
12795      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12796	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12797	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12798	$ECHO EXPORTS >> $output_objdir/$libname.def~
12799	prefix_cmds="$SED"~
12800	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12801	  prefix_cmds="$prefix_cmds -e 1d";
12802	fi~
12803	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12804	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12805	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12806	emximp -o $lib $output_objdir/$libname.def'
12807      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12808      enable_shared_with_static_runtimes=yes
12809      ;;
12810
12811    osf3*)
12812      if test yes = "$GCC"; then
12813	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12814	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'
12815      else
12816	allow_undefined_flag=' -expect_unresolved \*'
12817	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'
12818      fi
12819      archive_cmds_need_lc='no'
12820      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12821      hardcode_libdir_separator=:
12822      ;;
12823
12824    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12825      if test yes = "$GCC"; then
12826	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12827	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'
12828	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12829      else
12830	allow_undefined_flag=' -expect_unresolved \*'
12831	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'
12832	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~
12833          $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'
12834
12835	# Both c and cxx compiler support -rpath directly
12836	hardcode_libdir_flag_spec='-rpath $libdir'
12837      fi
12838      archive_cmds_need_lc='no'
12839      hardcode_libdir_separator=:
12840      ;;
12841
12842    solaris*)
12843      no_undefined_flag=' -z defs'
12844      if test yes = "$GCC"; then
12845	wlarc='$wl'
12846	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12847	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12848          $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'
12849      else
12850	case `$CC -V 2>&1` in
12851	*"Compilers 5.0"*)
12852	  wlarc=''
12853	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12854	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12855            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12856	  ;;
12857	*)
12858	  wlarc='$wl'
12859	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12860	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12861            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12862	  ;;
12863	esac
12864      fi
12865      hardcode_libdir_flag_spec='-R$libdir'
12866      hardcode_shlibpath_var=no
12867      case $host_os in
12868      solaris2.[0-5] | solaris2.[0-5].*) ;;
12869      *)
12870	# The compiler driver will combine and reorder linker options,
12871	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12872	# but is careful enough not to reorder.
12873	# Supported since Solaris 2.6 (maybe 2.5.1?)
12874	if test yes = "$GCC"; then
12875	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12876	else
12877	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12878	fi
12879	;;
12880      esac
12881      link_all_deplibs=yes
12882      ;;
12883
12884    sunos4*)
12885      if test sequent = "$host_vendor"; then
12886	# Use $CC to link under sequent, because it throws in some extra .o
12887	# files that make .init and .fini sections work.
12888	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12889      else
12890	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12891      fi
12892      hardcode_libdir_flag_spec='-L$libdir'
12893      hardcode_direct=yes
12894      hardcode_minus_L=yes
12895      hardcode_shlibpath_var=no
12896      ;;
12897
12898    sysv4)
12899      case $host_vendor in
12900	sni)
12901	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902	  hardcode_direct=yes # is this really true???
12903	;;
12904	siemens)
12905	  ## LD is ld it makes a PLAMLIB
12906	  ## CC just makes a GrossModule.
12907	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12908	  reload_cmds='$CC -r -o $output$reload_objs'
12909	  hardcode_direct=no
12910        ;;
12911	motorola)
12912	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12914	;;
12915      esac
12916      runpath_var='LD_RUN_PATH'
12917      hardcode_shlibpath_var=no
12918      ;;
12919
12920    sysv4.3*)
12921      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922      hardcode_shlibpath_var=no
12923      export_dynamic_flag_spec='-Bexport'
12924      ;;
12925
12926    sysv4*MP*)
12927      if test -d /usr/nec; then
12928	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12929	hardcode_shlibpath_var=no
12930	runpath_var=LD_RUN_PATH
12931	hardcode_runpath_var=yes
12932	ld_shlibs=yes
12933      fi
12934      ;;
12935
12936    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12937      no_undefined_flag='$wl-z,text'
12938      archive_cmds_need_lc=no
12939      hardcode_shlibpath_var=no
12940      runpath_var='LD_RUN_PATH'
12941
12942      if test yes = "$GCC"; then
12943	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12944	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945      else
12946	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12947	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12948      fi
12949      ;;
12950
12951    sysv5* | sco3.2v5* | sco5v6*)
12952      # Note: We CANNOT use -z defs as we might desire, because we do not
12953      # link with -lc, and that would cause any symbols used from libc to
12954      # always be unresolved, which means just about no library would
12955      # ever link correctly.  If we're not using GNU ld we use -z text
12956      # though, which does catch some bad symbols but isn't as heavy-handed
12957      # as -z defs.
12958      no_undefined_flag='$wl-z,text'
12959      allow_undefined_flag='$wl-z,nodefs'
12960      archive_cmds_need_lc=no
12961      hardcode_shlibpath_var=no
12962      hardcode_libdir_flag_spec='$wl-R,$libdir'
12963      hardcode_libdir_separator=':'
12964      link_all_deplibs=yes
12965      export_dynamic_flag_spec='$wl-Bexport'
12966      runpath_var='LD_RUN_PATH'
12967
12968      if test yes = "$GCC"; then
12969	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12970	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971      else
12972	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12973	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12974      fi
12975      ;;
12976
12977    uts4*)
12978      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12979      hardcode_libdir_flag_spec='-L$libdir'
12980      hardcode_shlibpath_var=no
12981      ;;
12982
12983    *)
12984      ld_shlibs=no
12985      ;;
12986    esac
12987
12988    if test sni = "$host_vendor"; then
12989      case $host in
12990      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12991	export_dynamic_flag_spec='$wl-Blargedynsym'
12992	;;
12993      esac
12994    fi
12995  fi
12996
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12998$as_echo "$ld_shlibs" >&6; }
12999test no = "$ld_shlibs" && can_build_shared=no
13000
13001with_gnu_ld=$with_gnu_ld
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017#
13018# Do we need to explicitly link libc?
13019#
13020case "x$archive_cmds_need_lc" in
13021x|xyes)
13022  # Assume -lc should be added
13023  archive_cmds_need_lc=yes
13024
13025  if test yes,yes = "$GCC,$enable_shared"; then
13026    case $archive_cmds in
13027    *'~'*)
13028      # FIXME: we may have to deal with multi-command sequences.
13029      ;;
13030    '$CC '*)
13031      # Test whether the compiler implicitly links with -lc since on some
13032      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13033      # to ld, don't add -lc before -lgcc.
13034      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13035$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13036if ${lt_cv_archive_cmds_need_lc+:} false; then :
13037  $as_echo_n "(cached) " >&6
13038else
13039  $RM conftest*
13040	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13041
13042	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13043  (eval $ac_compile) 2>&5
13044  ac_status=$?
13045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13046  test $ac_status = 0; } 2>conftest.err; then
13047	  soname=conftest
13048	  lib=conftest
13049	  libobjs=conftest.$ac_objext
13050	  deplibs=
13051	  wl=$lt_prog_compiler_wl
13052	  pic_flag=$lt_prog_compiler_pic
13053	  compiler_flags=-v
13054	  linker_flags=-v
13055	  verstring=
13056	  output_objdir=.
13057	  libname=conftest
13058	  lt_save_allow_undefined_flag=$allow_undefined_flag
13059	  allow_undefined_flag=
13060	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13061  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13062  ac_status=$?
13063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13064  test $ac_status = 0; }
13065	  then
13066	    lt_cv_archive_cmds_need_lc=no
13067	  else
13068	    lt_cv_archive_cmds_need_lc=yes
13069	  fi
13070	  allow_undefined_flag=$lt_save_allow_undefined_flag
13071	else
13072	  cat conftest.err 1>&5
13073	fi
13074	$RM conftest*
13075
13076fi
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13078$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13079      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13080      ;;
13081    esac
13082  fi
13083  ;;
13084esac
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
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
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13238$as_echo_n "checking dynamic linker characteristics... " >&6; }
13239
13240if test yes = "$GCC"; then
13241  case $host_os in
13242    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13243    *) lt_awk_arg='/^libraries:/' ;;
13244  esac
13245  case $host_os in
13246    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13247    *) lt_sed_strip_eq='s|=/|/|g' ;;
13248  esac
13249  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13250  case $lt_search_path_spec in
13251  *\;*)
13252    # if the path contains ";" then we assume it to be the separator
13253    # otherwise default to the standard path separator (i.e. ":") - it is
13254    # assumed that no part of a normal pathname contains ";" but that should
13255    # okay in the real world where ";" in dirpaths is itself problematic.
13256    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13257    ;;
13258  *)
13259    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13260    ;;
13261  esac
13262  # Ok, now we have the path, separated by spaces, we can step through it
13263  # and add multilib dir if necessary...
13264  lt_tmp_lt_search_path_spec=
13265  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13266  # ...but if some path component already ends with the multilib dir we assume
13267  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13268  case "$lt_multi_os_dir; $lt_search_path_spec " in
13269  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13270    lt_multi_os_dir=
13271    ;;
13272  esac
13273  for lt_sys_path in $lt_search_path_spec; do
13274    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13275      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13276    elif test -n "$lt_multi_os_dir"; then
13277      test -d "$lt_sys_path" && \
13278	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13279    fi
13280  done
13281  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13282BEGIN {RS = " "; FS = "/|\n";} {
13283  lt_foo = "";
13284  lt_count = 0;
13285  for (lt_i = NF; lt_i > 0; lt_i--) {
13286    if ($lt_i != "" && $lt_i != ".") {
13287      if ($lt_i == "..") {
13288        lt_count++;
13289      } else {
13290        if (lt_count == 0) {
13291          lt_foo = "/" $lt_i lt_foo;
13292        } else {
13293          lt_count--;
13294        }
13295      }
13296    }
13297  }
13298  if (lt_foo != "") { lt_freq[lt_foo]++; }
13299  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13300}'`
13301  # AWK program above erroneously prepends '/' to C:/dos/paths
13302  # for these hosts.
13303  case $host_os in
13304    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13305      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13306  esac
13307  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13308else
13309  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13310fi
13311library_names_spec=
13312libname_spec='lib$name'
13313soname_spec=
13314shrext_cmds=.so
13315postinstall_cmds=
13316postuninstall_cmds=
13317finish_cmds=
13318finish_eval=
13319shlibpath_var=
13320shlibpath_overrides_runpath=unknown
13321version_type=none
13322dynamic_linker="$host_os ld.so"
13323sys_lib_dlsearch_path_spec="/lib /usr/lib"
13324need_lib_prefix=unknown
13325hardcode_into_libs=no
13326
13327# when you set need_version to no, make sure it does not cause -set_version
13328# flags to be left without arguments
13329need_version=unknown
13330
13331
13332
13333case $host_os in
13334aix3*)
13335  version_type=linux # correct to gnu/linux during the next big refactor
13336  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13337  shlibpath_var=LIBPATH
13338
13339  # AIX 3 has no versioning support, so we append a major version to the name.
13340  soname_spec='$libname$release$shared_ext$major'
13341  ;;
13342
13343aix[4-9]*)
13344  version_type=linux # correct to gnu/linux during the next big refactor
13345  need_lib_prefix=no
13346  need_version=no
13347  hardcode_into_libs=yes
13348  if test ia64 = "$host_cpu"; then
13349    # AIX 5 supports IA64
13350    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13351    shlibpath_var=LD_LIBRARY_PATH
13352  else
13353    # With GCC up to 2.95.x, collect2 would create an import file
13354    # for dependence libraries.  The import file would start with
13355    # the line '#! .'.  This would cause the generated library to
13356    # depend on '.', always an invalid library.  This was fixed in
13357    # development snapshots of GCC prior to 3.0.
13358    case $host_os in
13359      aix4 | aix4.[01] | aix4.[01].*)
13360      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13361	   echo ' yes '
13362	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13363	:
13364      else
13365	can_build_shared=no
13366      fi
13367      ;;
13368    esac
13369    # Using Import Files as archive members, it is possible to support
13370    # filename-based versioning of shared library archives on AIX. While
13371    # this would work for both with and without runtime linking, it will
13372    # prevent static linking of such archives. So we do filename-based
13373    # shared library versioning with .so extension only, which is used
13374    # when both runtime linking and shared linking is enabled.
13375    # Unfortunately, runtime linking may impact performance, so we do
13376    # not want this to be the default eventually. Also, we use the
13377    # versioned .so libs for executables only if there is the -brtl
13378    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13379    # To allow for filename-based versioning support, we need to create
13380    # libNAME.so.V as an archive file, containing:
13381    # *) an Import File, referring to the versioned filename of the
13382    #    archive as well as the shared archive member, telling the
13383    #    bitwidth (32 or 64) of that shared object, and providing the
13384    #    list of exported symbols of that shared object, eventually
13385    #    decorated with the 'weak' keyword
13386    # *) the shared object with the F_LOADONLY flag set, to really avoid
13387    #    it being seen by the linker.
13388    # At run time we better use the real file rather than another symlink,
13389    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13390
13391    case $with_aix_soname,$aix_use_runtimelinking in
13392    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13393    # soname into executable. Probably we can add versioning support to
13394    # collect2, so additional links can be useful in future.
13395    aix,yes) # traditional libtool
13396      dynamic_linker='AIX unversionable lib.so'
13397      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13398      # instead of lib<name>.a to let people know that these are not
13399      # typical AIX shared libraries.
13400      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13401      ;;
13402    aix,no) # traditional AIX only
13403      dynamic_linker='AIX lib.a(lib.so.V)'
13404      # We preserve .a as extension for shared libraries through AIX4.2
13405      # and later when we are not doing run time linking.
13406      library_names_spec='$libname$release.a $libname.a'
13407      soname_spec='$libname$release$shared_ext$major'
13408      ;;
13409    svr4,*) # full svr4 only
13410      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13411      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13412      # We do not specify a path in Import Files, so LIBPATH fires.
13413      shlibpath_overrides_runpath=yes
13414      ;;
13415    *,yes) # both, prefer svr4
13416      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13417      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13418      # unpreferred sharedlib libNAME.a needs extra handling
13419      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"'
13420      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"'
13421      # We do not specify a path in Import Files, so LIBPATH fires.
13422      shlibpath_overrides_runpath=yes
13423      ;;
13424    *,no) # both, prefer aix
13425      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13426      library_names_spec='$libname$release.a $libname.a'
13427      soname_spec='$libname$release$shared_ext$major'
13428      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13429      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)'
13430      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"'
13431      ;;
13432    esac
13433    shlibpath_var=LIBPATH
13434  fi
13435  ;;
13436
13437amigaos*)
13438  case $host_cpu in
13439  powerpc)
13440    # Since July 2007 AmigaOS4 officially supports .so libraries.
13441    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13442    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13443    ;;
13444  m68k)
13445    library_names_spec='$libname.ixlibrary $libname.a'
13446    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13447    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'
13448    ;;
13449  esac
13450  ;;
13451
13452beos*)
13453  library_names_spec='$libname$shared_ext'
13454  dynamic_linker="$host_os ld.so"
13455  shlibpath_var=LIBRARY_PATH
13456  ;;
13457
13458bsdi[45]*)
13459  version_type=linux # correct to gnu/linux during the next big refactor
13460  need_version=no
13461  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13462  soname_spec='$libname$release$shared_ext$major'
13463  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13464  shlibpath_var=LD_LIBRARY_PATH
13465  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13466  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13467  # the default ld.so.conf also contains /usr/contrib/lib and
13468  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13469  # libtool to hard-code these into programs
13470  ;;
13471
13472cygwin* | mingw* | pw32* | cegcc*)
13473  version_type=windows
13474  shrext_cmds=.dll
13475  need_version=no
13476  need_lib_prefix=no
13477
13478  case $GCC,$cc_basename in
13479  yes,*)
13480    # gcc
13481    library_names_spec='$libname.dll.a'
13482    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13483    postinstall_cmds='base_file=`basename \$file`~
13484      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13485      dldir=$destdir/`dirname \$dlpath`~
13486      test -d \$dldir || mkdir -p \$dldir~
13487      $install_prog $dir/$dlname \$dldir/$dlname~
13488      chmod a+x \$dldir/$dlname~
13489      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13490        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13491      fi'
13492    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13493      dlpath=$dir/\$dldll~
13494       $RM \$dlpath'
13495    shlibpath_overrides_runpath=yes
13496
13497    case $host_os in
13498    cygwin*)
13499      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13500      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13501
13502      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13503      ;;
13504    mingw* | cegcc*)
13505      # MinGW DLLs use traditional 'lib' prefix
13506      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13507      ;;
13508    pw32*)
13509      # pw32 DLLs use 'pw' prefix rather than 'lib'
13510      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13511      ;;
13512    esac
13513    dynamic_linker='Win32 ld.exe'
13514    ;;
13515
13516  *,cl*)
13517    # Native MSVC
13518    libname_spec='$name'
13519    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13520    library_names_spec='$libname.dll.lib'
13521
13522    case $build_os in
13523    mingw*)
13524      sys_lib_search_path_spec=
13525      lt_save_ifs=$IFS
13526      IFS=';'
13527      for lt_path in $LIB
13528      do
13529        IFS=$lt_save_ifs
13530        # Let DOS variable expansion print the short 8.3 style file name.
13531        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13532        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13533      done
13534      IFS=$lt_save_ifs
13535      # Convert to MSYS style.
13536      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13537      ;;
13538    cygwin*)
13539      # Convert to unix form, then to dos form, then back to unix form
13540      # but this time dos style (no spaces!) so that the unix form looks
13541      # like /cygdrive/c/PROGRA~1:/cygdr...
13542      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13543      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13544      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13545      ;;
13546    *)
13547      sys_lib_search_path_spec=$LIB
13548      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13549        # It is most probably a Windows format PATH.
13550        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13551      else
13552        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13553      fi
13554      # FIXME: find the short name or the path components, as spaces are
13555      # common. (e.g. "Program Files" -> "PROGRA~1")
13556      ;;
13557    esac
13558
13559    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13560    postinstall_cmds='base_file=`basename \$file`~
13561      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13562      dldir=$destdir/`dirname \$dlpath`~
13563      test -d \$dldir || mkdir -p \$dldir~
13564      $install_prog $dir/$dlname \$dldir/$dlname'
13565    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13566      dlpath=$dir/\$dldll~
13567       $RM \$dlpath'
13568    shlibpath_overrides_runpath=yes
13569    dynamic_linker='Win32 link.exe'
13570    ;;
13571
13572  *)
13573    # Assume MSVC wrapper
13574    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13575    dynamic_linker='Win32 ld.exe'
13576    ;;
13577  esac
13578  # FIXME: first we should search . and the directory the executable is in
13579  shlibpath_var=PATH
13580  ;;
13581
13582darwin* | rhapsody*)
13583  dynamic_linker="$host_os dyld"
13584  version_type=darwin
13585  need_lib_prefix=no
13586  need_version=no
13587  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13588  soname_spec='$libname$release$major$shared_ext'
13589  shlibpath_overrides_runpath=yes
13590  shlibpath_var=DYLD_LIBRARY_PATH
13591  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13592
13593  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13594  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13595  ;;
13596
13597dgux*)
13598  version_type=linux # correct to gnu/linux during the next big refactor
13599  need_lib_prefix=no
13600  need_version=no
13601  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13602  soname_spec='$libname$release$shared_ext$major'
13603  shlibpath_var=LD_LIBRARY_PATH
13604  ;;
13605
13606freebsd* | dragonfly*)
13607  # DragonFly does not have aout.  When/if they implement a new
13608  # versioning mechanism, adjust this.
13609  if test -x /usr/bin/objformat; then
13610    objformat=`/usr/bin/objformat`
13611  else
13612    case $host_os in
13613    freebsd[23].*) objformat=aout ;;
13614    *) objformat=elf ;;
13615    esac
13616  fi
13617  version_type=freebsd-$objformat
13618  case $version_type in
13619    freebsd-elf*)
13620      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13621      soname_spec='$libname$release$shared_ext$major'
13622      need_version=no
13623      need_lib_prefix=no
13624      ;;
13625    freebsd-*)
13626      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13627      need_version=yes
13628      ;;
13629  esac
13630  shlibpath_var=LD_LIBRARY_PATH
13631  case $host_os in
13632  freebsd2.*)
13633    shlibpath_overrides_runpath=yes
13634    ;;
13635  freebsd3.[01]* | freebsdelf3.[01]*)
13636    shlibpath_overrides_runpath=yes
13637    hardcode_into_libs=yes
13638    ;;
13639  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13640  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13641    shlibpath_overrides_runpath=no
13642    hardcode_into_libs=yes
13643    ;;
13644  *) # from 4.6 on, and DragonFly
13645    shlibpath_overrides_runpath=yes
13646    hardcode_into_libs=yes
13647    ;;
13648  esac
13649  ;;
13650
13651haiku*)
13652  version_type=linux # correct to gnu/linux during the next big refactor
13653  need_lib_prefix=no
13654  need_version=no
13655  dynamic_linker="$host_os runtime_loader"
13656  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13657  soname_spec='$libname$release$shared_ext$major'
13658  shlibpath_var=LIBRARY_PATH
13659  shlibpath_overrides_runpath=no
13660  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13661  hardcode_into_libs=yes
13662  ;;
13663
13664hpux9* | hpux10* | hpux11*)
13665  # Give a soname corresponding to the major version so that dld.sl refuses to
13666  # link against other versions.
13667  version_type=sunos
13668  need_lib_prefix=no
13669  need_version=no
13670  case $host_cpu in
13671  ia64*)
13672    shrext_cmds='.so'
13673    hardcode_into_libs=yes
13674    dynamic_linker="$host_os dld.so"
13675    shlibpath_var=LD_LIBRARY_PATH
13676    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13677    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13678    soname_spec='$libname$release$shared_ext$major'
13679    if test 32 = "$HPUX_IA64_MODE"; then
13680      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13681      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13682    else
13683      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13684      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13685    fi
13686    ;;
13687  hppa*64*)
13688    shrext_cmds='.sl'
13689    hardcode_into_libs=yes
13690    dynamic_linker="$host_os dld.sl"
13691    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13692    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13693    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13694    soname_spec='$libname$release$shared_ext$major'
13695    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13696    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13697    ;;
13698  *)
13699    shrext_cmds='.sl'
13700    dynamic_linker="$host_os dld.sl"
13701    shlibpath_var=SHLIB_PATH
13702    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13703    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13704    soname_spec='$libname$release$shared_ext$major'
13705    ;;
13706  esac
13707  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13708  postinstall_cmds='chmod 555 $lib'
13709  # or fails outright, so override atomically:
13710  install_override_mode=555
13711  ;;
13712
13713interix[3-9]*)
13714  version_type=linux # correct to gnu/linux during the next big refactor
13715  need_lib_prefix=no
13716  need_version=no
13717  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13718  soname_spec='$libname$release$shared_ext$major'
13719  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13720  shlibpath_var=LD_LIBRARY_PATH
13721  shlibpath_overrides_runpath=no
13722  hardcode_into_libs=yes
13723  ;;
13724
13725irix5* | irix6* | nonstopux*)
13726  case $host_os in
13727    nonstopux*) version_type=nonstopux ;;
13728    *)
13729	if test yes = "$lt_cv_prog_gnu_ld"; then
13730		version_type=linux # correct to gnu/linux during the next big refactor
13731	else
13732		version_type=irix
13733	fi ;;
13734  esac
13735  need_lib_prefix=no
13736  need_version=no
13737  soname_spec='$libname$release$shared_ext$major'
13738  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13739  case $host_os in
13740  irix5* | nonstopux*)
13741    libsuff= shlibsuff=
13742    ;;
13743  *)
13744    case $LD in # libtool.m4 will add one of these switches to LD
13745    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13746      libsuff= shlibsuff= libmagic=32-bit;;
13747    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13748      libsuff=32 shlibsuff=N32 libmagic=N32;;
13749    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13750      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13751    *) libsuff= shlibsuff= libmagic=never-match;;
13752    esac
13753    ;;
13754  esac
13755  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13756  shlibpath_overrides_runpath=no
13757  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13758  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13759  hardcode_into_libs=yes
13760  ;;
13761
13762# No shared lib support for Linux oldld, aout, or coff.
13763linux*oldld* | linux*aout* | linux*coff*)
13764  dynamic_linker=no
13765  ;;
13766
13767linux*android*)
13768  version_type=none # Android doesn't support versioned libraries.
13769  need_lib_prefix=no
13770  need_version=no
13771  library_names_spec='$libname$release$shared_ext'
13772  soname_spec='$libname$release$shared_ext'
13773  finish_cmds=
13774  shlibpath_var=LD_LIBRARY_PATH
13775  shlibpath_overrides_runpath=yes
13776
13777  # This implies no fast_install, which is unacceptable.
13778  # Some rework will be needed to allow for fast_install
13779  # before this can be enabled.
13780  hardcode_into_libs=yes
13781
13782  dynamic_linker='Android linker'
13783  # Don't embed -rpath directories since the linker doesn't support them.
13784  hardcode_libdir_flag_spec='-L$libdir'
13785  ;;
13786
13787# This must be glibc/ELF.
13788linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13789  version_type=linux # correct to gnu/linux during the next big refactor
13790  need_lib_prefix=no
13791  need_version=no
13792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13793  soname_spec='$libname$release$shared_ext$major'
13794  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13795  shlibpath_var=LD_LIBRARY_PATH
13796  shlibpath_overrides_runpath=no
13797
13798  # Some binutils ld are patched to set DT_RUNPATH
13799  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13800  $as_echo_n "(cached) " >&6
13801else
13802  lt_cv_shlibpath_overrides_runpath=no
13803    save_LDFLAGS=$LDFLAGS
13804    save_libdir=$libdir
13805    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13806	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808/* end confdefs.h.  */
13809
13810int
13811main ()
13812{
13813
13814  ;
13815  return 0;
13816}
13817_ACEOF
13818if ac_fn_c_try_link "$LINENO"; then :
13819  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13820  lt_cv_shlibpath_overrides_runpath=yes
13821fi
13822fi
13823rm -f core conftest.err conftest.$ac_objext \
13824    conftest$ac_exeext conftest.$ac_ext
13825    LDFLAGS=$save_LDFLAGS
13826    libdir=$save_libdir
13827
13828fi
13829
13830  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13831
13832  # This implies no fast_install, which is unacceptable.
13833  # Some rework will be needed to allow for fast_install
13834  # before this can be enabled.
13835  hardcode_into_libs=yes
13836
13837  # Ideally, we could use ldconfig to report *all* directores which are
13838  # searched for libraries, however this is still not possible.  Aside from not
13839  # being certain /sbin/ldconfig is available, command
13840  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13841  # even though it is searched at run-time.  Try to do the best guess by
13842  # appending ld.so.conf contents (and includes) to the search path.
13843  if test -f /etc/ld.so.conf; then
13844    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' ' '`
13845    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13846  fi
13847
13848  # We used to test for /lib/ld.so.1 and disable shared libraries on
13849  # powerpc, because MkLinux only supported shared libraries with the
13850  # GNU dynamic linker.  Since this was broken with cross compilers,
13851  # most powerpc-linux boxes support dynamic linking these days and
13852  # people can always --disable-shared, the test was removed, and we
13853  # assume the GNU/Linux dynamic linker is in use.
13854  dynamic_linker='GNU/Linux ld.so'
13855  ;;
13856
13857netbsdelf*-gnu)
13858  version_type=linux
13859  need_lib_prefix=no
13860  need_version=no
13861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13862  soname_spec='${libname}${release}${shared_ext}$major'
13863  shlibpath_var=LD_LIBRARY_PATH
13864  shlibpath_overrides_runpath=no
13865  hardcode_into_libs=yes
13866  dynamic_linker='NetBSD ld.elf_so'
13867  ;;
13868
13869netbsd*)
13870  version_type=sunos
13871  need_lib_prefix=no
13872  need_version=no
13873  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13874    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13875    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13876    dynamic_linker='NetBSD (a.out) ld.so'
13877  else
13878    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13879    soname_spec='$libname$release$shared_ext$major'
13880    dynamic_linker='NetBSD ld.elf_so'
13881  fi
13882  shlibpath_var=LD_LIBRARY_PATH
13883  shlibpath_overrides_runpath=yes
13884  hardcode_into_libs=yes
13885  ;;
13886
13887newsos6)
13888  version_type=linux # correct to gnu/linux during the next big refactor
13889  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13890  shlibpath_var=LD_LIBRARY_PATH
13891  shlibpath_overrides_runpath=yes
13892  ;;
13893
13894*nto* | *qnx*)
13895  version_type=qnx
13896  need_lib_prefix=no
13897  need_version=no
13898  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13899  soname_spec='$libname$release$shared_ext$major'
13900  shlibpath_var=LD_LIBRARY_PATH
13901  shlibpath_overrides_runpath=no
13902  hardcode_into_libs=yes
13903  dynamic_linker='ldqnx.so'
13904  ;;
13905
13906openbsd* | bitrig*)
13907  version_type=sunos
13908  sys_lib_dlsearch_path_spec=/usr/lib
13909  need_lib_prefix=no
13910  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13911    need_version=no
13912  else
13913    need_version=yes
13914  fi
13915  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13916  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13917  shlibpath_var=LD_LIBRARY_PATH
13918  shlibpath_overrides_runpath=yes
13919  ;;
13920
13921os2*)
13922  libname_spec='$name'
13923  version_type=windows
13924  shrext_cmds=.dll
13925  need_version=no
13926  need_lib_prefix=no
13927  # OS/2 can only load a DLL with a base name of 8 characters or less.
13928  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13929    v=$($ECHO $release$versuffix | tr -d .-);
13930    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13931    $ECHO $n$v`$shared_ext'
13932  library_names_spec='${libname}_dll.$libext'
13933  dynamic_linker='OS/2 ld.exe'
13934  shlibpath_var=BEGINLIBPATH
13935  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13936  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13937  postinstall_cmds='base_file=`basename \$file`~
13938    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13939    dldir=$destdir/`dirname \$dlpath`~
13940    test -d \$dldir || mkdir -p \$dldir~
13941    $install_prog $dir/$dlname \$dldir/$dlname~
13942    chmod a+x \$dldir/$dlname~
13943    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13944      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13945    fi'
13946  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13947    dlpath=$dir/\$dldll~
13948    $RM \$dlpath'
13949  ;;
13950
13951osf3* | osf4* | osf5*)
13952  version_type=osf
13953  need_lib_prefix=no
13954  need_version=no
13955  soname_spec='$libname$release$shared_ext$major'
13956  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13957  shlibpath_var=LD_LIBRARY_PATH
13958  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13959  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13960  ;;
13961
13962rdos*)
13963  dynamic_linker=no
13964  ;;
13965
13966solaris*)
13967  version_type=linux # correct to gnu/linux during the next big refactor
13968  need_lib_prefix=no
13969  need_version=no
13970  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13971  soname_spec='$libname$release$shared_ext$major'
13972  shlibpath_var=LD_LIBRARY_PATH
13973  shlibpath_overrides_runpath=yes
13974  hardcode_into_libs=yes
13975  # ldd complains unless libraries are executable
13976  postinstall_cmds='chmod +x $lib'
13977  ;;
13978
13979sunos4*)
13980  version_type=sunos
13981  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13982  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13983  shlibpath_var=LD_LIBRARY_PATH
13984  shlibpath_overrides_runpath=yes
13985  if test yes = "$with_gnu_ld"; then
13986    need_lib_prefix=no
13987  fi
13988  need_version=yes
13989  ;;
13990
13991sysv4 | sysv4.3*)
13992  version_type=linux # correct to gnu/linux during the next big refactor
13993  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13994  soname_spec='$libname$release$shared_ext$major'
13995  shlibpath_var=LD_LIBRARY_PATH
13996  case $host_vendor in
13997    sni)
13998      shlibpath_overrides_runpath=no
13999      need_lib_prefix=no
14000      runpath_var=LD_RUN_PATH
14001      ;;
14002    siemens)
14003      need_lib_prefix=no
14004      ;;
14005    motorola)
14006      need_lib_prefix=no
14007      need_version=no
14008      shlibpath_overrides_runpath=no
14009      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14010      ;;
14011  esac
14012  ;;
14013
14014sysv4*MP*)
14015  if test -d /usr/nec; then
14016    version_type=linux # correct to gnu/linux during the next big refactor
14017    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14018    soname_spec='$libname$shared_ext.$major'
14019    shlibpath_var=LD_LIBRARY_PATH
14020  fi
14021  ;;
14022
14023sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14024  version_type=sco
14025  need_lib_prefix=no
14026  need_version=no
14027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14028  soname_spec='$libname$release$shared_ext$major'
14029  shlibpath_var=LD_LIBRARY_PATH
14030  shlibpath_overrides_runpath=yes
14031  hardcode_into_libs=yes
14032  if test yes = "$with_gnu_ld"; then
14033    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14034  else
14035    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14036    case $host_os in
14037      sco3.2v5*)
14038        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14039	;;
14040    esac
14041  fi
14042  sys_lib_dlsearch_path_spec='/usr/lib'
14043  ;;
14044
14045tpf*)
14046  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14047  version_type=linux # correct to gnu/linux during the next big refactor
14048  need_lib_prefix=no
14049  need_version=no
14050  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14051  shlibpath_var=LD_LIBRARY_PATH
14052  shlibpath_overrides_runpath=no
14053  hardcode_into_libs=yes
14054  ;;
14055
14056uts4*)
14057  version_type=linux # correct to gnu/linux during the next big refactor
14058  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14059  soname_spec='$libname$release$shared_ext$major'
14060  shlibpath_var=LD_LIBRARY_PATH
14061  ;;
14062
14063*)
14064  dynamic_linker=no
14065  ;;
14066esac
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14068$as_echo "$dynamic_linker" >&6; }
14069test no = "$dynamic_linker" && can_build_shared=no
14070
14071variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14072if test yes = "$GCC"; then
14073  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14074fi
14075
14076if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14077  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14078fi
14079
14080if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14081  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14082fi
14083
14084# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14085configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14086
14087# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14088func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14089
14090# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14091configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14190$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14191hardcode_action=
14192if test -n "$hardcode_libdir_flag_spec" ||
14193   test -n "$runpath_var" ||
14194   test yes = "$hardcode_automatic"; then
14195
14196  # We can hardcode non-existent directories.
14197  if test no != "$hardcode_direct" &&
14198     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14199     # have to relink, otherwise we might link with an installed library
14200     # when we should be linking with a yet-to-be-installed one
14201     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14202     test no != "$hardcode_minus_L"; then
14203    # Linking always hardcodes the temporary library directory.
14204    hardcode_action=relink
14205  else
14206    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14207    hardcode_action=immediate
14208  fi
14209else
14210  # We cannot hardcode anything, or else we can only hardcode existing
14211  # directories.
14212  hardcode_action=unsupported
14213fi
14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14215$as_echo "$hardcode_action" >&6; }
14216
14217if test relink = "$hardcode_action" ||
14218   test yes = "$inherit_rpath"; then
14219  # Fast installation is not supported
14220  enable_fast_install=no
14221elif test yes = "$shlibpath_overrides_runpath" ||
14222     test no = "$enable_shared"; then
14223  # Fast installation is not necessary
14224  enable_fast_install=needless
14225fi
14226
14227
14228
14229
14230
14231
14232  if test yes != "$enable_dlopen"; then
14233  enable_dlopen=unknown
14234  enable_dlopen_self=unknown
14235  enable_dlopen_self_static=unknown
14236else
14237  lt_cv_dlopen=no
14238  lt_cv_dlopen_libs=
14239
14240  case $host_os in
14241  beos*)
14242    lt_cv_dlopen=load_add_on
14243    lt_cv_dlopen_libs=
14244    lt_cv_dlopen_self=yes
14245    ;;
14246
14247  mingw* | pw32* | cegcc*)
14248    lt_cv_dlopen=LoadLibrary
14249    lt_cv_dlopen_libs=
14250    ;;
14251
14252  cygwin*)
14253    lt_cv_dlopen=dlopen
14254    lt_cv_dlopen_libs=
14255    ;;
14256
14257  darwin*)
14258    # if libdl is installed we need to link against it
14259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14260$as_echo_n "checking for dlopen in -ldl... " >&6; }
14261if ${ac_cv_lib_dl_dlopen+:} false; then :
14262  $as_echo_n "(cached) " >&6
14263else
14264  ac_check_lib_save_LIBS=$LIBS
14265LIBS="-ldl  $LIBS"
14266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267/* end confdefs.h.  */
14268
14269/* Override any GCC internal prototype to avoid an error.
14270   Use char because int might match the return type of a GCC
14271   builtin and then its argument prototype would still apply.  */
14272#ifdef __cplusplus
14273extern "C"
14274#endif
14275char dlopen ();
14276int
14277main ()
14278{
14279return dlopen ();
14280  ;
14281  return 0;
14282}
14283_ACEOF
14284if ac_fn_c_try_link "$LINENO"; then :
14285  ac_cv_lib_dl_dlopen=yes
14286else
14287  ac_cv_lib_dl_dlopen=no
14288fi
14289rm -f core conftest.err conftest.$ac_objext \
14290    conftest$ac_exeext conftest.$ac_ext
14291LIBS=$ac_check_lib_save_LIBS
14292fi
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14294$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14295if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14296  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14297else
14298
14299    lt_cv_dlopen=dyld
14300    lt_cv_dlopen_libs=
14301    lt_cv_dlopen_self=yes
14302
14303fi
14304
14305    ;;
14306
14307  tpf*)
14308    # Don't try to run any link tests for TPF.  We know it's impossible
14309    # because TPF is a cross-compiler, and we know how we open DSOs.
14310    lt_cv_dlopen=dlopen
14311    lt_cv_dlopen_libs=
14312    lt_cv_dlopen_self=no
14313    ;;
14314
14315  *)
14316    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14317if test "x$ac_cv_func_shl_load" = xyes; then :
14318  lt_cv_dlopen=shl_load
14319else
14320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14321$as_echo_n "checking for shl_load in -ldld... " >&6; }
14322if ${ac_cv_lib_dld_shl_load+:} false; then :
14323  $as_echo_n "(cached) " >&6
14324else
14325  ac_check_lib_save_LIBS=$LIBS
14326LIBS="-ldld  $LIBS"
14327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329
14330/* Override any GCC internal prototype to avoid an error.
14331   Use char because int might match the return type of a GCC
14332   builtin and then its argument prototype would still apply.  */
14333#ifdef __cplusplus
14334extern "C"
14335#endif
14336char shl_load ();
14337int
14338main ()
14339{
14340return shl_load ();
14341  ;
14342  return 0;
14343}
14344_ACEOF
14345if ac_fn_c_try_link "$LINENO"; then :
14346  ac_cv_lib_dld_shl_load=yes
14347else
14348  ac_cv_lib_dld_shl_load=no
14349fi
14350rm -f core conftest.err conftest.$ac_objext \
14351    conftest$ac_exeext conftest.$ac_ext
14352LIBS=$ac_check_lib_save_LIBS
14353fi
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14355$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14356if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14357  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14358else
14359  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14360if test "x$ac_cv_func_dlopen" = xyes; then :
14361  lt_cv_dlopen=dlopen
14362else
14363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14364$as_echo_n "checking for dlopen in -ldl... " >&6; }
14365if ${ac_cv_lib_dl_dlopen+:} false; then :
14366  $as_echo_n "(cached) " >&6
14367else
14368  ac_check_lib_save_LIBS=$LIBS
14369LIBS="-ldl  $LIBS"
14370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h.  */
14372
14373/* Override any GCC internal prototype to avoid an error.
14374   Use char because int might match the return type of a GCC
14375   builtin and then its argument prototype would still apply.  */
14376#ifdef __cplusplus
14377extern "C"
14378#endif
14379char dlopen ();
14380int
14381main ()
14382{
14383return dlopen ();
14384  ;
14385  return 0;
14386}
14387_ACEOF
14388if ac_fn_c_try_link "$LINENO"; then :
14389  ac_cv_lib_dl_dlopen=yes
14390else
14391  ac_cv_lib_dl_dlopen=no
14392fi
14393rm -f core conftest.err conftest.$ac_objext \
14394    conftest$ac_exeext conftest.$ac_ext
14395LIBS=$ac_check_lib_save_LIBS
14396fi
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14398$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14399if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14400  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14401else
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14403$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14404if ${ac_cv_lib_svld_dlopen+:} false; then :
14405  $as_echo_n "(cached) " >&6
14406else
14407  ac_check_lib_save_LIBS=$LIBS
14408LIBS="-lsvld  $LIBS"
14409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411
14412/* Override any GCC internal prototype to avoid an error.
14413   Use char because int might match the return type of a GCC
14414   builtin and then its argument prototype would still apply.  */
14415#ifdef __cplusplus
14416extern "C"
14417#endif
14418char dlopen ();
14419int
14420main ()
14421{
14422return dlopen ();
14423  ;
14424  return 0;
14425}
14426_ACEOF
14427if ac_fn_c_try_link "$LINENO"; then :
14428  ac_cv_lib_svld_dlopen=yes
14429else
14430  ac_cv_lib_svld_dlopen=no
14431fi
14432rm -f core conftest.err conftest.$ac_objext \
14433    conftest$ac_exeext conftest.$ac_ext
14434LIBS=$ac_check_lib_save_LIBS
14435fi
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14437$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14438if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14439  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14440else
14441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14442$as_echo_n "checking for dld_link in -ldld... " >&6; }
14443if ${ac_cv_lib_dld_dld_link+:} false; then :
14444  $as_echo_n "(cached) " >&6
14445else
14446  ac_check_lib_save_LIBS=$LIBS
14447LIBS="-ldld  $LIBS"
14448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449/* end confdefs.h.  */
14450
14451/* Override any GCC internal prototype to avoid an error.
14452   Use char because int might match the return type of a GCC
14453   builtin and then its argument prototype would still apply.  */
14454#ifdef __cplusplus
14455extern "C"
14456#endif
14457char dld_link ();
14458int
14459main ()
14460{
14461return dld_link ();
14462  ;
14463  return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_link "$LINENO"; then :
14467  ac_cv_lib_dld_dld_link=yes
14468else
14469  ac_cv_lib_dld_dld_link=no
14470fi
14471rm -f core conftest.err conftest.$ac_objext \
14472    conftest$ac_exeext conftest.$ac_ext
14473LIBS=$ac_check_lib_save_LIBS
14474fi
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14476$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14477if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14478  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14479fi
14480
14481
14482fi
14483
14484
14485fi
14486
14487
14488fi
14489
14490
14491fi
14492
14493
14494fi
14495
14496    ;;
14497  esac
14498
14499  if test no = "$lt_cv_dlopen"; then
14500    enable_dlopen=no
14501  else
14502    enable_dlopen=yes
14503  fi
14504
14505  case $lt_cv_dlopen in
14506  dlopen)
14507    save_CPPFLAGS=$CPPFLAGS
14508    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14509
14510    save_LDFLAGS=$LDFLAGS
14511    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14512
14513    save_LIBS=$LIBS
14514    LIBS="$lt_cv_dlopen_libs $LIBS"
14515
14516    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14517$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14518if ${lt_cv_dlopen_self+:} false; then :
14519  $as_echo_n "(cached) " >&6
14520else
14521  	  if test yes = "$cross_compiling"; then :
14522  lt_cv_dlopen_self=cross
14523else
14524  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14525  lt_status=$lt_dlunknown
14526  cat > conftest.$ac_ext <<_LT_EOF
14527#line $LINENO "configure"
14528#include "confdefs.h"
14529
14530#if HAVE_DLFCN_H
14531#include <dlfcn.h>
14532#endif
14533
14534#include <stdio.h>
14535
14536#ifdef RTLD_GLOBAL
14537#  define LT_DLGLOBAL		RTLD_GLOBAL
14538#else
14539#  ifdef DL_GLOBAL
14540#    define LT_DLGLOBAL		DL_GLOBAL
14541#  else
14542#    define LT_DLGLOBAL		0
14543#  endif
14544#endif
14545
14546/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14547   find out it does not work in some platform. */
14548#ifndef LT_DLLAZY_OR_NOW
14549#  ifdef RTLD_LAZY
14550#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14551#  else
14552#    ifdef DL_LAZY
14553#      define LT_DLLAZY_OR_NOW		DL_LAZY
14554#    else
14555#      ifdef RTLD_NOW
14556#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14557#      else
14558#        ifdef DL_NOW
14559#          define LT_DLLAZY_OR_NOW	DL_NOW
14560#        else
14561#          define LT_DLLAZY_OR_NOW	0
14562#        endif
14563#      endif
14564#    endif
14565#  endif
14566#endif
14567
14568/* When -fvisibility=hidden is used, assume the code has been annotated
14569   correspondingly for the symbols needed.  */
14570#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14571int fnord () __attribute__((visibility("default")));
14572#endif
14573
14574int fnord () { return 42; }
14575int main ()
14576{
14577  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14578  int status = $lt_dlunknown;
14579
14580  if (self)
14581    {
14582      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14583      else
14584        {
14585	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14586          else puts (dlerror ());
14587	}
14588      /* dlclose (self); */
14589    }
14590  else
14591    puts (dlerror ());
14592
14593  return status;
14594}
14595_LT_EOF
14596  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14597  (eval $ac_link) 2>&5
14598  ac_status=$?
14599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14601    (./conftest; exit; ) >&5 2>/dev/null
14602    lt_status=$?
14603    case x$lt_status in
14604      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14605      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14606      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14607    esac
14608  else :
14609    # compilation failed
14610    lt_cv_dlopen_self=no
14611  fi
14612fi
14613rm -fr conftest*
14614
14615
14616fi
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14618$as_echo "$lt_cv_dlopen_self" >&6; }
14619
14620    if test yes = "$lt_cv_dlopen_self"; then
14621      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14622      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14623$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14624if ${lt_cv_dlopen_self_static+:} false; then :
14625  $as_echo_n "(cached) " >&6
14626else
14627  	  if test yes = "$cross_compiling"; then :
14628  lt_cv_dlopen_self_static=cross
14629else
14630  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14631  lt_status=$lt_dlunknown
14632  cat > conftest.$ac_ext <<_LT_EOF
14633#line $LINENO "configure"
14634#include "confdefs.h"
14635
14636#if HAVE_DLFCN_H
14637#include <dlfcn.h>
14638#endif
14639
14640#include <stdio.h>
14641
14642#ifdef RTLD_GLOBAL
14643#  define LT_DLGLOBAL		RTLD_GLOBAL
14644#else
14645#  ifdef DL_GLOBAL
14646#    define LT_DLGLOBAL		DL_GLOBAL
14647#  else
14648#    define LT_DLGLOBAL		0
14649#  endif
14650#endif
14651
14652/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14653   find out it does not work in some platform. */
14654#ifndef LT_DLLAZY_OR_NOW
14655#  ifdef RTLD_LAZY
14656#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14657#  else
14658#    ifdef DL_LAZY
14659#      define LT_DLLAZY_OR_NOW		DL_LAZY
14660#    else
14661#      ifdef RTLD_NOW
14662#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14663#      else
14664#        ifdef DL_NOW
14665#          define LT_DLLAZY_OR_NOW	DL_NOW
14666#        else
14667#          define LT_DLLAZY_OR_NOW	0
14668#        endif
14669#      endif
14670#    endif
14671#  endif
14672#endif
14673
14674/* When -fvisibility=hidden is used, assume the code has been annotated
14675   correspondingly for the symbols needed.  */
14676#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14677int fnord () __attribute__((visibility("default")));
14678#endif
14679
14680int fnord () { return 42; }
14681int main ()
14682{
14683  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14684  int status = $lt_dlunknown;
14685
14686  if (self)
14687    {
14688      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14689      else
14690        {
14691	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14692          else puts (dlerror ());
14693	}
14694      /* dlclose (self); */
14695    }
14696  else
14697    puts (dlerror ());
14698
14699  return status;
14700}
14701_LT_EOF
14702  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14703  (eval $ac_link) 2>&5
14704  ac_status=$?
14705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14706  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14707    (./conftest; exit; ) >&5 2>/dev/null
14708    lt_status=$?
14709    case x$lt_status in
14710      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14711      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14712      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14713    esac
14714  else :
14715    # compilation failed
14716    lt_cv_dlopen_self_static=no
14717  fi
14718fi
14719rm -fr conftest*
14720
14721
14722fi
14723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14724$as_echo "$lt_cv_dlopen_self_static" >&6; }
14725    fi
14726
14727    CPPFLAGS=$save_CPPFLAGS
14728    LDFLAGS=$save_LDFLAGS
14729    LIBS=$save_LIBS
14730    ;;
14731  esac
14732
14733  case $lt_cv_dlopen_self in
14734  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14735  *) enable_dlopen_self=unknown ;;
14736  esac
14737
14738  case $lt_cv_dlopen_self_static in
14739  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14740  *) enable_dlopen_self_static=unknown ;;
14741  esac
14742fi
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760striplib=
14761old_striplib=
14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14763$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14764if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14765  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14766  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14768$as_echo "yes" >&6; }
14769else
14770# FIXME - insert some real tests, host_os isn't really good enough
14771  case $host_os in
14772  darwin*)
14773    if test -n "$STRIP"; then
14774      striplib="$STRIP -x"
14775      old_striplib="$STRIP -S"
14776      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14777$as_echo "yes" >&6; }
14778    else
14779      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780$as_echo "no" >&6; }
14781    fi
14782    ;;
14783  *)
14784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785$as_echo "no" >&6; }
14786    ;;
14787  esac
14788fi
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801  # Report what library types will actually be built
14802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14803$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14805$as_echo "$can_build_shared" >&6; }
14806
14807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14808$as_echo_n "checking whether to build shared libraries... " >&6; }
14809  test no = "$can_build_shared" && enable_shared=no
14810
14811  # On AIX, shared libraries and static libraries use the same namespace, and
14812  # are all built from PIC.
14813  case $host_os in
14814  aix3*)
14815    test yes = "$enable_shared" && enable_static=no
14816    if test -n "$RANLIB"; then
14817      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14818      postinstall_cmds='$RANLIB $lib'
14819    fi
14820    ;;
14821
14822  aix[4-9]*)
14823    if test ia64 != "$host_cpu"; then
14824      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14825      yes,aix,yes) ;;			# shared object as lib.so file only
14826      yes,svr4,*) ;;			# shared object as lib.so archive member only
14827      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14828      esac
14829    fi
14830    ;;
14831  esac
14832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14833$as_echo "$enable_shared" >&6; }
14834
14835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14836$as_echo_n "checking whether to build static libraries... " >&6; }
14837  # Make sure either enable_shared or enable_static is yes.
14838  test yes = "$enable_shared" || enable_static=yes
14839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14840$as_echo "$enable_static" >&6; }
14841
14842
14843
14844
14845fi
14846ac_ext=c
14847ac_cpp='$CPP $CPPFLAGS'
14848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850ac_compiler_gnu=$ac_cv_c_compiler_gnu
14851
14852CC=$lt_save_CC
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868        ac_config_commands="$ac_config_commands libtool"
14869
14870
14871
14872
14873# Only expand once:
14874
14875
14876
14877
14878GST_REQ=1.16.2
14879GSTPB_REQ=1.16.2
14880
14881
14882
14883
14884# Check whether --with-autoconf was given.
14885if test "${with_autoconf+set}" = set; then :
14886  withval=$with_autoconf;
14887      unset AUTOCONF
14888
14889AUTOCONF=${AUTOCONF-"${am_missing_run}${withval}"}
14890
14891      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOCONF as autoconf" >&5
14892$as_echo "$as_me: Using $AUTOCONF as autoconf" >&6;}
14893
14894fi
14895
14896
14897
14898# Check whether --with-autoheader was given.
14899if test "${with_autoheader+set}" = set; then :
14900  withval=$with_autoheader;
14901      unset AUTOHEADER
14902
14903AUTOHEADER=${AUTOHEADER-"${am_missing_run}${withval}"}
14904
14905      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOHEADER as autoheader" >&5
14906$as_echo "$as_me: Using $AUTOHEADER as autoheader" >&6;}
14907
14908fi
14909
14910
14911
14912# Check whether --with-automake was given.
14913if test "${with_automake+set}" = set; then :
14914  withval=$with_automake;
14915      unset AUTOMAKE
14916
14917AUTOMAKE=${AUTOMAKE-"${am_missing_run}${withval}"}
14918
14919      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOMAKE as automake" >&5
14920$as_echo "$as_me: Using $AUTOMAKE as automake" >&6;}
14921
14922fi
14923
14924
14925
14926# Check whether --with-aclocal was given.
14927if test "${with_aclocal+set}" = set; then :
14928  withval=$with_aclocal;
14929      unset ACLOCAL
14930
14931ACLOCAL=${ACLOCAL-"${am_missing_run}${withval}"}
14932
14933      { $as_echo "$as_me:${as_lineno-$LINENO}: Using $ACLOCAL as aclocal" >&5
14934$as_echo "$as_me: Using $ACLOCAL as aclocal" >&6;}
14935
14936fi
14937
14938
14939
14940ACLOCAL_AMFLAGS="-I m4 -I common/m4"
14941
14942
14943
14944
14945mkdir_p="$MKDIR_P"
14946case $mkdir_p in
14947  [\\/$]* | ?:[\\/]*) ;;
14948  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14949esac
14950
14951
14952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14953$as_echo_n "checking whether NLS is requested... " >&6; }
14954    # Check whether --enable-nls was given.
14955if test "${enable_nls+set}" = set; then :
14956  enableval=$enable_nls; USE_NLS=$enableval
14957else
14958  USE_NLS=yes
14959fi
14960
14961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14962$as_echo "$USE_NLS" >&6; }
14963
14964
14965
14966
14967      GETTEXT_MACRO_VERSION=0.17
14968
14969
14970
14971
14972# Prepare PATH_SEPARATOR.
14973# The user is always right.
14974if test "${PATH_SEPARATOR+set}" != set; then
14975  echo "#! /bin/sh" >conf$$.sh
14976  echo  "exit 0"   >>conf$$.sh
14977  chmod +x conf$$.sh
14978  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14979    PATH_SEPARATOR=';'
14980  else
14981    PATH_SEPARATOR=:
14982  fi
14983  rm -f conf$$.sh
14984fi
14985
14986# Find out how to test for executable files. Don't use a zero-byte file,
14987# as systems may use methods other than mode bits to determine executability.
14988cat >conf$$.file <<_ASEOF
14989#! /bin/sh
14990exit 0
14991_ASEOF
14992chmod +x conf$$.file
14993if test -x conf$$.file >/dev/null 2>&1; then
14994  ac_executable_p="test -x"
14995else
14996  ac_executable_p="test -f"
14997fi
14998rm -f conf$$.file
14999
15000# Extract the first word of "msgfmt", so it can be a program name with args.
15001set dummy msgfmt; ac_word=$2
15002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15003$as_echo_n "checking for $ac_word... " >&6; }
15004if ${ac_cv_path_MSGFMT+:} false; then :
15005  $as_echo_n "(cached) " >&6
15006else
15007  case "$MSGFMT" in
15008  [\\/]* | ?:[\\/]*)
15009    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15010    ;;
15011  *)
15012    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15013    for ac_dir in $PATH; do
15014      IFS="$ac_save_IFS"
15015      test -z "$ac_dir" && ac_dir=.
15016      for ac_exec_ext in '' $ac_executable_extensions; do
15017        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15018          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15019          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15020     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15021            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15022            break 2
15023          fi
15024        fi
15025      done
15026    done
15027    IFS="$ac_save_IFS"
15028  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15029    ;;
15030esac
15031fi
15032MSGFMT="$ac_cv_path_MSGFMT"
15033if test "$MSGFMT" != ":"; then
15034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15035$as_echo "$MSGFMT" >&6; }
15036else
15037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038$as_echo "no" >&6; }
15039fi
15040
15041  # Extract the first word of "gmsgfmt", so it can be a program name with args.
15042set dummy gmsgfmt; ac_word=$2
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15044$as_echo_n "checking for $ac_word... " >&6; }
15045if ${ac_cv_path_GMSGFMT+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  case $GMSGFMT in
15049  [\\/]* | ?:[\\/]*)
15050  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15051  ;;
15052  *)
15053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15054for as_dir in $PATH
15055do
15056  IFS=$as_save_IFS
15057  test -z "$as_dir" && as_dir=.
15058    for ac_exec_ext in '' $ac_executable_extensions; do
15059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15060    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15062    break 2
15063  fi
15064done
15065  done
15066IFS=$as_save_IFS
15067
15068  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15069  ;;
15070esac
15071fi
15072GMSGFMT=$ac_cv_path_GMSGFMT
15073if test -n "$GMSGFMT"; then
15074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15075$as_echo "$GMSGFMT" >&6; }
15076else
15077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078$as_echo "no" >&6; }
15079fi
15080
15081
15082
15083    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15084    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15085    *) MSGFMT_015=$MSGFMT ;;
15086  esac
15087
15088  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15089    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15090    *) GMSGFMT_015=$GMSGFMT ;;
15091  esac
15092
15093
15094
15095# Prepare PATH_SEPARATOR.
15096# The user is always right.
15097if test "${PATH_SEPARATOR+set}" != set; then
15098  echo "#! /bin/sh" >conf$$.sh
15099  echo  "exit 0"   >>conf$$.sh
15100  chmod +x conf$$.sh
15101  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15102    PATH_SEPARATOR=';'
15103  else
15104    PATH_SEPARATOR=:
15105  fi
15106  rm -f conf$$.sh
15107fi
15108
15109# Find out how to test for executable files. Don't use a zero-byte file,
15110# as systems may use methods other than mode bits to determine executability.
15111cat >conf$$.file <<_ASEOF
15112#! /bin/sh
15113exit 0
15114_ASEOF
15115chmod +x conf$$.file
15116if test -x conf$$.file >/dev/null 2>&1; then
15117  ac_executable_p="test -x"
15118else
15119  ac_executable_p="test -f"
15120fi
15121rm -f conf$$.file
15122
15123# Extract the first word of "xgettext", so it can be a program name with args.
15124set dummy xgettext; ac_word=$2
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15126$as_echo_n "checking for $ac_word... " >&6; }
15127if ${ac_cv_path_XGETTEXT+:} false; then :
15128  $as_echo_n "(cached) " >&6
15129else
15130  case "$XGETTEXT" in
15131  [\\/]* | ?:[\\/]*)
15132    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15133    ;;
15134  *)
15135    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15136    for ac_dir in $PATH; do
15137      IFS="$ac_save_IFS"
15138      test -z "$ac_dir" && ac_dir=.
15139      for ac_exec_ext in '' $ac_executable_extensions; do
15140        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15141          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15142          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15143     (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
15144            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15145            break 2
15146          fi
15147        fi
15148      done
15149    done
15150    IFS="$ac_save_IFS"
15151  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15152    ;;
15153esac
15154fi
15155XGETTEXT="$ac_cv_path_XGETTEXT"
15156if test "$XGETTEXT" != ":"; then
15157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15158$as_echo "$XGETTEXT" >&6; }
15159else
15160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161$as_echo "no" >&6; }
15162fi
15163
15164    rm -f messages.po
15165
15166    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15167    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15168    *) XGETTEXT_015=$XGETTEXT ;;
15169  esac
15170
15171
15172
15173# Prepare PATH_SEPARATOR.
15174# The user is always right.
15175if test "${PATH_SEPARATOR+set}" != set; then
15176  echo "#! /bin/sh" >conf$$.sh
15177  echo  "exit 0"   >>conf$$.sh
15178  chmod +x conf$$.sh
15179  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15180    PATH_SEPARATOR=';'
15181  else
15182    PATH_SEPARATOR=:
15183  fi
15184  rm -f conf$$.sh
15185fi
15186
15187# Find out how to test for executable files. Don't use a zero-byte file,
15188# as systems may use methods other than mode bits to determine executability.
15189cat >conf$$.file <<_ASEOF
15190#! /bin/sh
15191exit 0
15192_ASEOF
15193chmod +x conf$$.file
15194if test -x conf$$.file >/dev/null 2>&1; then
15195  ac_executable_p="test -x"
15196else
15197  ac_executable_p="test -f"
15198fi
15199rm -f conf$$.file
15200
15201# Extract the first word of "msgmerge", so it can be a program name with args.
15202set dummy msgmerge; ac_word=$2
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204$as_echo_n "checking for $ac_word... " >&6; }
15205if ${ac_cv_path_MSGMERGE+:} false; then :
15206  $as_echo_n "(cached) " >&6
15207else
15208  case "$MSGMERGE" in
15209  [\\/]* | ?:[\\/]*)
15210    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15211    ;;
15212  *)
15213    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15214    for ac_dir in $PATH; do
15215      IFS="$ac_save_IFS"
15216      test -z "$ac_dir" && ac_dir=.
15217      for ac_exec_ext in '' $ac_executable_extensions; do
15218        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15219          echo "$as_me: trying $ac_dir/$ac_word..." >&5
15220          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15221            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15222            break 2
15223          fi
15224        fi
15225      done
15226    done
15227    IFS="$ac_save_IFS"
15228  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15229    ;;
15230esac
15231fi
15232MSGMERGE="$ac_cv_path_MSGMERGE"
15233if test "$MSGMERGE" != ":"; then
15234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15235$as_echo "$MSGMERGE" >&6; }
15236else
15237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238$as_echo "no" >&6; }
15239fi
15240
15241
15242        test -n "$localedir" || localedir='${datadir}/locale'
15243
15244
15245    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15246
15247
15248  ac_config_commands="$ac_config_commands po-directories"
15249
15250
15251
15252      if test "X$prefix" = "XNONE"; then
15253    acl_final_prefix="$ac_default_prefix"
15254  else
15255    acl_final_prefix="$prefix"
15256  fi
15257  if test "X$exec_prefix" = "XNONE"; then
15258    acl_final_exec_prefix='${prefix}'
15259  else
15260    acl_final_exec_prefix="$exec_prefix"
15261  fi
15262  acl_save_prefix="$prefix"
15263  prefix="$acl_final_prefix"
15264  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15265  prefix="$acl_save_prefix"
15266
15267
15268# Check whether --with-gnu-ld was given.
15269if test "${with_gnu_ld+set}" = set; then :
15270  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15271else
15272  with_gnu_ld=no
15273fi
15274
15275# Prepare PATH_SEPARATOR.
15276# The user is always right.
15277if test "${PATH_SEPARATOR+set}" != set; then
15278  echo "#! /bin/sh" >conf$$.sh
15279  echo  "exit 0"   >>conf$$.sh
15280  chmod +x conf$$.sh
15281  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15282    PATH_SEPARATOR=';'
15283  else
15284    PATH_SEPARATOR=:
15285  fi
15286  rm -f conf$$.sh
15287fi
15288ac_prog=ld
15289if test "$GCC" = yes; then
15290  # Check if gcc -print-prog-name=ld gives a path.
15291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15292$as_echo_n "checking for ld used by GCC... " >&6; }
15293  case $host in
15294  *-*-mingw*)
15295    # gcc leaves a trailing carriage return which upsets mingw
15296    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15297  *)
15298    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15299  esac
15300  case $ac_prog in
15301    # Accept absolute paths.
15302    [\\/]* | [A-Za-z]:[\\/]*)
15303      re_direlt='/[^/][^/]*/\.\./'
15304      # Canonicalize the path of ld
15305      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15306      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15307	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15308      done
15309      test -z "$LD" && LD="$ac_prog"
15310      ;;
15311  "")
15312    # If it fails, then pretend we aren't using GCC.
15313    ac_prog=ld
15314    ;;
15315  *)
15316    # If it is relative, then search for the first ld in PATH.
15317    with_gnu_ld=unknown
15318    ;;
15319  esac
15320elif test "$with_gnu_ld" = yes; then
15321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15322$as_echo_n "checking for GNU ld... " >&6; }
15323else
15324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15325$as_echo_n "checking for non-GNU ld... " >&6; }
15326fi
15327if ${acl_cv_path_LD+:} false; then :
15328  $as_echo_n "(cached) " >&6
15329else
15330  if test -z "$LD"; then
15331  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15332  for ac_dir in $PATH; do
15333    test -z "$ac_dir" && ac_dir=.
15334    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15335      acl_cv_path_LD="$ac_dir/$ac_prog"
15336      # Check to see if the program is GNU ld.  I'd rather use --version,
15337      # but apparently some GNU ld's only accept -v.
15338      # Break only if it was the GNU/non-GNU ld that we prefer.
15339      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15340      *GNU* | *'with BFD'*)
15341	test "$with_gnu_ld" != no && break ;;
15342      *)
15343	test "$with_gnu_ld" != yes && break ;;
15344      esac
15345    fi
15346  done
15347  IFS="$ac_save_ifs"
15348else
15349  acl_cv_path_LD="$LD" # Let the user override the test with a path.
15350fi
15351fi
15352
15353LD="$acl_cv_path_LD"
15354if test -n "$LD"; then
15355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15356$as_echo "$LD" >&6; }
15357else
15358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359$as_echo "no" >&6; }
15360fi
15361test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15363$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15364if ${acl_cv_prog_gnu_ld+:} false; then :
15365  $as_echo_n "(cached) " >&6
15366else
15367  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15368case `$LD -v 2>&1 </dev/null` in
15369*GNU* | *'with BFD'*)
15370  acl_cv_prog_gnu_ld=yes ;;
15371*)
15372  acl_cv_prog_gnu_ld=no ;;
15373esac
15374fi
15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15376$as_echo "$acl_cv_prog_gnu_ld" >&6; }
15377with_gnu_ld=$acl_cv_prog_gnu_ld
15378
15379
15380
15381
15382                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15383$as_echo_n "checking for shared library run path origin... " >&6; }
15384if ${acl_cv_rpath+:} false; then :
15385  $as_echo_n "(cached) " >&6
15386else
15387
15388    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15389    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15390    . ./conftest.sh
15391    rm -f ./conftest.sh
15392    acl_cv_rpath=done
15393
15394fi
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15396$as_echo "$acl_cv_rpath" >&6; }
15397  wl="$acl_cv_wl"
15398  acl_libext="$acl_cv_libext"
15399  acl_shlibext="$acl_cv_shlibext"
15400  acl_libname_spec="$acl_cv_libname_spec"
15401  acl_library_names_spec="$acl_cv_library_names_spec"
15402  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15403  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15404  acl_hardcode_direct="$acl_cv_hardcode_direct"
15405  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15406    # Check whether --enable-rpath was given.
15407if test "${enable_rpath+set}" = set; then :
15408  enableval=$enable_rpath; :
15409else
15410  enable_rpath=yes
15411fi
15412
15413
15414
15415                  acl_libdirstem=lib
15416  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15417  if test -n "$searchpath"; then
15418    acl_save_IFS="${IFS= 	}"; IFS=":"
15419    for searchdir in $searchpath; do
15420      if test -d "$searchdir"; then
15421        case "$searchdir" in
15422          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15423          *) searchdir=`cd "$searchdir" && pwd`
15424             case "$searchdir" in
15425               */lib64 ) acl_libdirstem=lib64 ;;
15426             esac ;;
15427        esac
15428      fi
15429    done
15430    IFS="$acl_save_IFS"
15431  fi
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441    use_additional=yes
15442
15443  acl_save_prefix="$prefix"
15444  prefix="$acl_final_prefix"
15445  acl_save_exec_prefix="$exec_prefix"
15446  exec_prefix="$acl_final_exec_prefix"
15447
15448    eval additional_includedir=\"$includedir\"
15449    eval additional_libdir=\"$libdir\"
15450
15451  exec_prefix="$acl_save_exec_prefix"
15452  prefix="$acl_save_prefix"
15453
15454
15455# Check whether --with-libiconv-prefix was given.
15456if test "${with_libiconv_prefix+set}" = set; then :
15457  withval=$with_libiconv_prefix;
15458    if test "X$withval" = "Xno"; then
15459      use_additional=no
15460    else
15461      if test "X$withval" = "X"; then
15462
15463  acl_save_prefix="$prefix"
15464  prefix="$acl_final_prefix"
15465  acl_save_exec_prefix="$exec_prefix"
15466  exec_prefix="$acl_final_exec_prefix"
15467
15468          eval additional_includedir=\"$includedir\"
15469          eval additional_libdir=\"$libdir\"
15470
15471  exec_prefix="$acl_save_exec_prefix"
15472  prefix="$acl_save_prefix"
15473
15474      else
15475        additional_includedir="$withval/include"
15476        additional_libdir="$withval/$acl_libdirstem"
15477      fi
15478    fi
15479
15480fi
15481
15482      LIBICONV=
15483  LTLIBICONV=
15484  INCICONV=
15485  LIBICONV_PREFIX=
15486  rpathdirs=
15487  ltrpathdirs=
15488  names_already_handled=
15489  names_next_round='iconv '
15490  while test -n "$names_next_round"; do
15491    names_this_round="$names_next_round"
15492    names_next_round=
15493    for name in $names_this_round; do
15494      already_handled=
15495      for n in $names_already_handled; do
15496        if test "$n" = "$name"; then
15497          already_handled=yes
15498          break
15499        fi
15500      done
15501      if test -z "$already_handled"; then
15502        names_already_handled="$names_already_handled $name"
15503                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15504        eval value=\"\$HAVE_LIB$uppername\"
15505        if test -n "$value"; then
15506          if test "$value" = yes; then
15507            eval value=\"\$LIB$uppername\"
15508            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15509            eval value=\"\$LTLIB$uppername\"
15510            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15511          else
15512                                    :
15513          fi
15514        else
15515                              found_dir=
15516          found_la=
15517          found_so=
15518          found_a=
15519          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15520          if test -n "$acl_shlibext"; then
15521            shrext=".$acl_shlibext"             # typically: shrext=.so
15522          else
15523            shrext=
15524          fi
15525          if test $use_additional = yes; then
15526            dir="$additional_libdir"
15527                                    if test -n "$acl_shlibext"; then
15528              if test -f "$dir/$libname$shrext"; then
15529                found_dir="$dir"
15530                found_so="$dir/$libname$shrext"
15531              else
15532                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15533                  ver=`(cd "$dir" && \
15534                        for f in "$libname$shrext".*; do echo "$f"; done \
15535                        | sed -e "s,^$libname$shrext\\\\.,," \
15536                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15537                        | sed 1q ) 2>/dev/null`
15538                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15539                    found_dir="$dir"
15540                    found_so="$dir/$libname$shrext.$ver"
15541                  fi
15542                else
15543                  eval library_names=\"$acl_library_names_spec\"
15544                  for f in $library_names; do
15545                    if test -f "$dir/$f"; then
15546                      found_dir="$dir"
15547                      found_so="$dir/$f"
15548                      break
15549                    fi
15550                  done
15551                fi
15552              fi
15553            fi
15554                        if test "X$found_dir" = "X"; then
15555              if test -f "$dir/$libname.$acl_libext"; then
15556                found_dir="$dir"
15557                found_a="$dir/$libname.$acl_libext"
15558              fi
15559            fi
15560            if test "X$found_dir" != "X"; then
15561              if test -f "$dir/$libname.la"; then
15562                found_la="$dir/$libname.la"
15563              fi
15564            fi
15565          fi
15566          if test "X$found_dir" = "X"; then
15567            for x in $LDFLAGS $LTLIBICONV; do
15568
15569  acl_save_prefix="$prefix"
15570  prefix="$acl_final_prefix"
15571  acl_save_exec_prefix="$exec_prefix"
15572  exec_prefix="$acl_final_exec_prefix"
15573  eval x=\"$x\"
15574  exec_prefix="$acl_save_exec_prefix"
15575  prefix="$acl_save_prefix"
15576
15577              case "$x" in
15578                -L*)
15579                  dir=`echo "X$x" | sed -e 's/^X-L//'`
15580                                    if test -n "$acl_shlibext"; then
15581                    if test -f "$dir/$libname$shrext"; then
15582                      found_dir="$dir"
15583                      found_so="$dir/$libname$shrext"
15584                    else
15585                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15586                        ver=`(cd "$dir" && \
15587                              for f in "$libname$shrext".*; do echo "$f"; done \
15588                              | sed -e "s,^$libname$shrext\\\\.,," \
15589                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15590                              | sed 1q ) 2>/dev/null`
15591                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15592                          found_dir="$dir"
15593                          found_so="$dir/$libname$shrext.$ver"
15594                        fi
15595                      else
15596                        eval library_names=\"$acl_library_names_spec\"
15597                        for f in $library_names; do
15598                          if test -f "$dir/$f"; then
15599                            found_dir="$dir"
15600                            found_so="$dir/$f"
15601                            break
15602                          fi
15603                        done
15604                      fi
15605                    fi
15606                  fi
15607                                    if test "X$found_dir" = "X"; then
15608                    if test -f "$dir/$libname.$acl_libext"; then
15609                      found_dir="$dir"
15610                      found_a="$dir/$libname.$acl_libext"
15611                    fi
15612                  fi
15613                  if test "X$found_dir" != "X"; then
15614                    if test -f "$dir/$libname.la"; then
15615                      found_la="$dir/$libname.la"
15616                    fi
15617                  fi
15618                  ;;
15619              esac
15620              if test "X$found_dir" != "X"; then
15621                break
15622              fi
15623            done
15624          fi
15625          if test "X$found_dir" != "X"; then
15626                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15627            if test "X$found_so" != "X"; then
15628                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15629                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15630              else
15631                                                                                haveit=
15632                for x in $ltrpathdirs; do
15633                  if test "X$x" = "X$found_dir"; then
15634                    haveit=yes
15635                    break
15636                  fi
15637                done
15638                if test -z "$haveit"; then
15639                  ltrpathdirs="$ltrpathdirs $found_dir"
15640                fi
15641                                if test "$acl_hardcode_direct" = yes; then
15642                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15643                else
15644                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15645                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15646                                                            haveit=
15647                    for x in $rpathdirs; do
15648                      if test "X$x" = "X$found_dir"; then
15649                        haveit=yes
15650                        break
15651                      fi
15652                    done
15653                    if test -z "$haveit"; then
15654                      rpathdirs="$rpathdirs $found_dir"
15655                    fi
15656                  else
15657                                                                                haveit=
15658                    for x in $LDFLAGS $LIBICONV; do
15659
15660  acl_save_prefix="$prefix"
15661  prefix="$acl_final_prefix"
15662  acl_save_exec_prefix="$exec_prefix"
15663  exec_prefix="$acl_final_exec_prefix"
15664  eval x=\"$x\"
15665  exec_prefix="$acl_save_exec_prefix"
15666  prefix="$acl_save_prefix"
15667
15668                      if test "X$x" = "X-L$found_dir"; then
15669                        haveit=yes
15670                        break
15671                      fi
15672                    done
15673                    if test -z "$haveit"; then
15674                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15675                    fi
15676                    if test "$acl_hardcode_minus_L" != no; then
15677                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15678                    else
15679                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15680                    fi
15681                  fi
15682                fi
15683              fi
15684            else
15685              if test "X$found_a" != "X"; then
15686                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15687              else
15688                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15689              fi
15690            fi
15691                        additional_includedir=
15692            case "$found_dir" in
15693              */$acl_libdirstem | */$acl_libdirstem/)
15694                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15695                LIBICONV_PREFIX="$basedir"
15696                additional_includedir="$basedir/include"
15697                ;;
15698            esac
15699            if test "X$additional_includedir" != "X"; then
15700                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
15701                haveit=
15702                if test "X$additional_includedir" = "X/usr/local/include"; then
15703                  if test -n "$GCC"; then
15704                    case $host_os in
15705                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15706                    esac
15707                  fi
15708                fi
15709                if test -z "$haveit"; then
15710                  for x in $CPPFLAGS $INCICONV; do
15711
15712  acl_save_prefix="$prefix"
15713  prefix="$acl_final_prefix"
15714  acl_save_exec_prefix="$exec_prefix"
15715  exec_prefix="$acl_final_exec_prefix"
15716  eval x=\"$x\"
15717  exec_prefix="$acl_save_exec_prefix"
15718  prefix="$acl_save_prefix"
15719
15720                    if test "X$x" = "X-I$additional_includedir"; then
15721                      haveit=yes
15722                      break
15723                    fi
15724                  done
15725                  if test -z "$haveit"; then
15726                    if test -d "$additional_includedir"; then
15727                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15728                    fi
15729                  fi
15730                fi
15731              fi
15732            fi
15733                        if test -n "$found_la"; then
15734                                                        save_libdir="$libdir"
15735              case "$found_la" in
15736                */* | *\\*) . "$found_la" ;;
15737                *) . "./$found_la" ;;
15738              esac
15739              libdir="$save_libdir"
15740                            for dep in $dependency_libs; do
15741                case "$dep" in
15742                  -L*)
15743                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15744                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15745                      haveit=
15746                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15747                        if test -n "$GCC"; then
15748                          case $host_os in
15749                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15750                          esac
15751                        fi
15752                      fi
15753                      if test -z "$haveit"; then
15754                        haveit=
15755                        for x in $LDFLAGS $LIBICONV; do
15756
15757  acl_save_prefix="$prefix"
15758  prefix="$acl_final_prefix"
15759  acl_save_exec_prefix="$exec_prefix"
15760  exec_prefix="$acl_final_exec_prefix"
15761  eval x=\"$x\"
15762  exec_prefix="$acl_save_exec_prefix"
15763  prefix="$acl_save_prefix"
15764
15765                          if test "X$x" = "X-L$additional_libdir"; then
15766                            haveit=yes
15767                            break
15768                          fi
15769                        done
15770                        if test -z "$haveit"; then
15771                          if test -d "$additional_libdir"; then
15772                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15773                          fi
15774                        fi
15775                        haveit=
15776                        for x in $LDFLAGS $LTLIBICONV; do
15777
15778  acl_save_prefix="$prefix"
15779  prefix="$acl_final_prefix"
15780  acl_save_exec_prefix="$exec_prefix"
15781  exec_prefix="$acl_final_exec_prefix"
15782  eval x=\"$x\"
15783  exec_prefix="$acl_save_exec_prefix"
15784  prefix="$acl_save_prefix"
15785
15786                          if test "X$x" = "X-L$additional_libdir"; then
15787                            haveit=yes
15788                            break
15789                          fi
15790                        done
15791                        if test -z "$haveit"; then
15792                          if test -d "$additional_libdir"; then
15793                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15794                          fi
15795                        fi
15796                      fi
15797                    fi
15798                    ;;
15799                  -R*)
15800                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
15801                    if test "$enable_rpath" != no; then
15802                                                                  haveit=
15803                      for x in $rpathdirs; do
15804                        if test "X$x" = "X$dir"; then
15805                          haveit=yes
15806                          break
15807                        fi
15808                      done
15809                      if test -z "$haveit"; then
15810                        rpathdirs="$rpathdirs $dir"
15811                      fi
15812                                                                  haveit=
15813                      for x in $ltrpathdirs; do
15814                        if test "X$x" = "X$dir"; then
15815                          haveit=yes
15816                          break
15817                        fi
15818                      done
15819                      if test -z "$haveit"; then
15820                        ltrpathdirs="$ltrpathdirs $dir"
15821                      fi
15822                    fi
15823                    ;;
15824                  -l*)
15825                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15826                    ;;
15827                  *.la)
15828                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15829                    ;;
15830                  *)
15831                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15832                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15833                    ;;
15834                esac
15835              done
15836            fi
15837          else
15838                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15839            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15840          fi
15841        fi
15842      fi
15843    done
15844  done
15845  if test "X$rpathdirs" != "X"; then
15846    if test -n "$acl_hardcode_libdir_separator"; then
15847                        alldirs=
15848      for found_dir in $rpathdirs; do
15849        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15850      done
15851            acl_save_libdir="$libdir"
15852      libdir="$alldirs"
15853      eval flag=\"$acl_hardcode_libdir_flag_spec\"
15854      libdir="$acl_save_libdir"
15855      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15856    else
15857            for found_dir in $rpathdirs; do
15858        acl_save_libdir="$libdir"
15859        libdir="$found_dir"
15860        eval flag=\"$acl_hardcode_libdir_flag_spec\"
15861        libdir="$acl_save_libdir"
15862        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15863      done
15864    fi
15865  fi
15866  if test "X$ltrpathdirs" != "X"; then
15867            for found_dir in $ltrpathdirs; do
15868      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15869    done
15870  fi
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15897$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15898if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
15899  $as_echo_n "(cached) " >&6
15900else
15901  gt_save_LIBS="$LIBS"
15902     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905#include <CoreFoundation/CFPreferences.h>
15906int
15907main ()
15908{
15909CFPreferencesCopyAppValue(NULL, NULL)
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_link "$LINENO"; then :
15915  gt_cv_func_CFPreferencesCopyAppValue=yes
15916else
15917  gt_cv_func_CFPreferencesCopyAppValue=no
15918fi
15919rm -f core conftest.err conftest.$ac_objext \
15920    conftest$ac_exeext conftest.$ac_ext
15921     LIBS="$gt_save_LIBS"
15922fi
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15924$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15925  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15926
15927$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15928
15929  fi
15930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15931$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15932if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
15933  $as_echo_n "(cached) " >&6
15934else
15935  gt_save_LIBS="$LIBS"
15936     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938/* end confdefs.h.  */
15939#include <CoreFoundation/CFLocale.h>
15940int
15941main ()
15942{
15943CFLocaleCopyCurrent();
15944  ;
15945  return 0;
15946}
15947_ACEOF
15948if ac_fn_c_try_link "$LINENO"; then :
15949  gt_cv_func_CFLocaleCopyCurrent=yes
15950else
15951  gt_cv_func_CFLocaleCopyCurrent=no
15952fi
15953rm -f core conftest.err conftest.$ac_objext \
15954    conftest$ac_exeext conftest.$ac_ext
15955     LIBS="$gt_save_LIBS"
15956fi
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15958$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15959  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15960
15961$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15962
15963  fi
15964  INTL_MACOSX_LIBS=
15965  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15966    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15967  fi
15968
15969
15970
15971
15972
15973
15974  LIBINTL=
15975  LTLIBINTL=
15976  POSUB=
15977
15978    case " $gt_needs " in
15979    *" need-formatstring-macros "*) gt_api_version=3 ;;
15980    *" need-ngettext "*) gt_api_version=2 ;;
15981    *) gt_api_version=1 ;;
15982  esac
15983  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15984  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15985
15986    if test "$USE_NLS" = "yes"; then
15987    gt_use_preinstalled_gnugettext=no
15988
15989
15990        if test $gt_api_version -ge 3; then
15991          gt_revision_test_code='
15992#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15993#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15994#endif
15995typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15996'
15997        else
15998          gt_revision_test_code=
15999        fi
16000        if test $gt_api_version -ge 2; then
16001          gt_expression_test_code=' + * ngettext ("", "", 0)'
16002        else
16003          gt_expression_test_code=
16004        fi
16005
16006        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16007$as_echo_n "checking for GNU gettext in libc... " >&6; }
16008if eval \${$gt_func_gnugettext_libc+:} false; then :
16009  $as_echo_n "(cached) " >&6
16010else
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013#include <libintl.h>
16014$gt_revision_test_code
16015extern int _nl_msg_cat_cntr;
16016extern int *_nl_domain_bindings;
16017int
16018main ()
16019{
16020bindtextdomain ("", "");
16021return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
16022  ;
16023  return 0;
16024}
16025_ACEOF
16026if ac_fn_c_try_link "$LINENO"; then :
16027  eval "$gt_func_gnugettext_libc=yes"
16028else
16029  eval "$gt_func_gnugettext_libc=no"
16030fi
16031rm -f core conftest.err conftest.$ac_objext \
16032    conftest$ac_exeext conftest.$ac_ext
16033fi
16034eval ac_res=\$$gt_func_gnugettext_libc
16035	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16036$as_echo "$ac_res" >&6; }
16037
16038        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
16039
16040
16041
16042
16043
16044          am_save_CPPFLAGS="$CPPFLAGS"
16045
16046  for element in $INCICONV; do
16047    haveit=
16048    for x in $CPPFLAGS; do
16049
16050  acl_save_prefix="$prefix"
16051  prefix="$acl_final_prefix"
16052  acl_save_exec_prefix="$exec_prefix"
16053  exec_prefix="$acl_final_exec_prefix"
16054  eval x=\"$x\"
16055  exec_prefix="$acl_save_exec_prefix"
16056  prefix="$acl_save_prefix"
16057
16058      if test "X$x" = "X$element"; then
16059        haveit=yes
16060        break
16061      fi
16062    done
16063    if test -z "$haveit"; then
16064      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16065    fi
16066  done
16067
16068
16069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16070$as_echo_n "checking for iconv... " >&6; }
16071if ${am_cv_func_iconv+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074
16075    am_cv_func_iconv="no, consider installing GNU libiconv"
16076    am_cv_lib_iconv=no
16077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079#include <stdlib.h>
16080#include <iconv.h>
16081int
16082main ()
16083{
16084iconv_t cd = iconv_open("","");
16085       iconv(cd,NULL,NULL,NULL,NULL);
16086       iconv_close(cd);
16087  ;
16088  return 0;
16089}
16090_ACEOF
16091if ac_fn_c_try_link "$LINENO"; then :
16092  am_cv_func_iconv=yes
16093fi
16094rm -f core conftest.err conftest.$ac_objext \
16095    conftest$ac_exeext conftest.$ac_ext
16096    if test "$am_cv_func_iconv" != yes; then
16097      am_save_LIBS="$LIBS"
16098      LIBS="$LIBS $LIBICONV"
16099      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h.  */
16101#include <stdlib.h>
16102#include <iconv.h>
16103int
16104main ()
16105{
16106iconv_t cd = iconv_open("","");
16107         iconv(cd,NULL,NULL,NULL,NULL);
16108         iconv_close(cd);
16109  ;
16110  return 0;
16111}
16112_ACEOF
16113if ac_fn_c_try_link "$LINENO"; then :
16114  am_cv_lib_iconv=yes
16115        am_cv_func_iconv=yes
16116fi
16117rm -f core conftest.err conftest.$ac_objext \
16118    conftest$ac_exeext conftest.$ac_ext
16119      LIBS="$am_save_LIBS"
16120    fi
16121
16122fi
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16124$as_echo "$am_cv_func_iconv" >&6; }
16125  if test "$am_cv_func_iconv" = yes; then
16126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16127$as_echo_n "checking for working iconv... " >&6; }
16128if ${am_cv_func_iconv_works+:} false; then :
16129  $as_echo_n "(cached) " >&6
16130else
16131
16132            am_save_LIBS="$LIBS"
16133      if test $am_cv_lib_iconv = yes; then
16134        LIBS="$LIBS $LIBICONV"
16135      fi
16136      if test "$cross_compiling" = yes; then :
16137  case "$host_os" in
16138           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16139           *)            am_cv_func_iconv_works="guessing yes" ;;
16140         esac
16141else
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144
16145#include <iconv.h>
16146#include <string.h>
16147int main ()
16148{
16149  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16150     returns.  */
16151  {
16152    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16153    if (cd_utf8_to_88591 != (iconv_t)(-1))
16154      {
16155        static const char input[] = "\342\202\254"; /* EURO SIGN */
16156        char buf[10];
16157        const char *inptr = input;
16158        size_t inbytesleft = strlen (input);
16159        char *outptr = buf;
16160        size_t outbytesleft = sizeof (buf);
16161        size_t res = iconv (cd_utf8_to_88591,
16162                            (char **) &inptr, &inbytesleft,
16163                            &outptr, &outbytesleft);
16164        if (res == 0)
16165          return 1;
16166      }
16167  }
16168#if 0 /* This bug could be worked around by the caller.  */
16169  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
16170  {
16171    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16172    if (cd_88591_to_utf8 != (iconv_t)(-1))
16173      {
16174        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16175        char buf[50];
16176        const char *inptr = input;
16177        size_t inbytesleft = strlen (input);
16178        char *outptr = buf;
16179        size_t outbytesleft = sizeof (buf);
16180        size_t res = iconv (cd_88591_to_utf8,
16181                            (char **) &inptr, &inbytesleft,
16182                            &outptr, &outbytesleft);
16183        if ((int)res > 0)
16184          return 1;
16185      }
16186  }
16187#endif
16188  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16189     provided.  */
16190  if (/* Try standardized names.  */
16191      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16192      /* Try IRIX, OSF/1 names.  */
16193      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16194      /* Try AIX names.  */
16195      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16196      /* Try HP-UX names.  */
16197      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16198    return 1;
16199  return 0;
16200}
16201_ACEOF
16202if ac_fn_c_try_run "$LINENO"; then :
16203  am_cv_func_iconv_works=yes
16204else
16205  am_cv_func_iconv_works=no
16206fi
16207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16208  conftest.$ac_objext conftest.beam conftest.$ac_ext
16209fi
16210
16211      LIBS="$am_save_LIBS"
16212
16213fi
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16215$as_echo "$am_cv_func_iconv_works" >&6; }
16216    case "$am_cv_func_iconv_works" in
16217      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16218      *)   am_func_iconv=yes ;;
16219    esac
16220  else
16221    am_func_iconv=no am_cv_lib_iconv=no
16222  fi
16223  if test "$am_func_iconv" = yes; then
16224
16225$as_echo "#define HAVE_ICONV 1" >>confdefs.h
16226
16227  fi
16228  if test "$am_cv_lib_iconv" = yes; then
16229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16230$as_echo_n "checking how to link with libiconv... " >&6; }
16231    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16232$as_echo "$LIBICONV" >&6; }
16233  else
16234            CPPFLAGS="$am_save_CPPFLAGS"
16235    LIBICONV=
16236    LTLIBICONV=
16237  fi
16238
16239
16240
16241
16242
16243
16244
16245
16246    use_additional=yes
16247
16248  acl_save_prefix="$prefix"
16249  prefix="$acl_final_prefix"
16250  acl_save_exec_prefix="$exec_prefix"
16251  exec_prefix="$acl_final_exec_prefix"
16252
16253    eval additional_includedir=\"$includedir\"
16254    eval additional_libdir=\"$libdir\"
16255
16256  exec_prefix="$acl_save_exec_prefix"
16257  prefix="$acl_save_prefix"
16258
16259
16260# Check whether --with-libintl-prefix was given.
16261if test "${with_libintl_prefix+set}" = set; then :
16262  withval=$with_libintl_prefix;
16263    if test "X$withval" = "Xno"; then
16264      use_additional=no
16265    else
16266      if test "X$withval" = "X"; then
16267
16268  acl_save_prefix="$prefix"
16269  prefix="$acl_final_prefix"
16270  acl_save_exec_prefix="$exec_prefix"
16271  exec_prefix="$acl_final_exec_prefix"
16272
16273          eval additional_includedir=\"$includedir\"
16274          eval additional_libdir=\"$libdir\"
16275
16276  exec_prefix="$acl_save_exec_prefix"
16277  prefix="$acl_save_prefix"
16278
16279      else
16280        additional_includedir="$withval/include"
16281        additional_libdir="$withval/$acl_libdirstem"
16282      fi
16283    fi
16284
16285fi
16286
16287      LIBINTL=
16288  LTLIBINTL=
16289  INCINTL=
16290  LIBINTL_PREFIX=
16291  rpathdirs=
16292  ltrpathdirs=
16293  names_already_handled=
16294  names_next_round='intl '
16295  while test -n "$names_next_round"; do
16296    names_this_round="$names_next_round"
16297    names_next_round=
16298    for name in $names_this_round; do
16299      already_handled=
16300      for n in $names_already_handled; do
16301        if test "$n" = "$name"; then
16302          already_handled=yes
16303          break
16304        fi
16305      done
16306      if test -z "$already_handled"; then
16307        names_already_handled="$names_already_handled $name"
16308                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16309        eval value=\"\$HAVE_LIB$uppername\"
16310        if test -n "$value"; then
16311          if test "$value" = yes; then
16312            eval value=\"\$LIB$uppername\"
16313            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16314            eval value=\"\$LTLIB$uppername\"
16315            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16316          else
16317                                    :
16318          fi
16319        else
16320                              found_dir=
16321          found_la=
16322          found_so=
16323          found_a=
16324          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16325          if test -n "$acl_shlibext"; then
16326            shrext=".$acl_shlibext"             # typically: shrext=.so
16327          else
16328            shrext=
16329          fi
16330          if test $use_additional = yes; then
16331            dir="$additional_libdir"
16332                                    if test -n "$acl_shlibext"; then
16333              if test -f "$dir/$libname$shrext"; then
16334                found_dir="$dir"
16335                found_so="$dir/$libname$shrext"
16336              else
16337                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16338                  ver=`(cd "$dir" && \
16339                        for f in "$libname$shrext".*; do echo "$f"; done \
16340                        | sed -e "s,^$libname$shrext\\\\.,," \
16341                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16342                        | sed 1q ) 2>/dev/null`
16343                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16344                    found_dir="$dir"
16345                    found_so="$dir/$libname$shrext.$ver"
16346                  fi
16347                else
16348                  eval library_names=\"$acl_library_names_spec\"
16349                  for f in $library_names; do
16350                    if test -f "$dir/$f"; then
16351                      found_dir="$dir"
16352                      found_so="$dir/$f"
16353                      break
16354                    fi
16355                  done
16356                fi
16357              fi
16358            fi
16359                        if test "X$found_dir" = "X"; then
16360              if test -f "$dir/$libname.$acl_libext"; then
16361                found_dir="$dir"
16362                found_a="$dir/$libname.$acl_libext"
16363              fi
16364            fi
16365            if test "X$found_dir" != "X"; then
16366              if test -f "$dir/$libname.la"; then
16367                found_la="$dir/$libname.la"
16368              fi
16369            fi
16370          fi
16371          if test "X$found_dir" = "X"; then
16372            for x in $LDFLAGS $LTLIBINTL; do
16373
16374  acl_save_prefix="$prefix"
16375  prefix="$acl_final_prefix"
16376  acl_save_exec_prefix="$exec_prefix"
16377  exec_prefix="$acl_final_exec_prefix"
16378  eval x=\"$x\"
16379  exec_prefix="$acl_save_exec_prefix"
16380  prefix="$acl_save_prefix"
16381
16382              case "$x" in
16383                -L*)
16384                  dir=`echo "X$x" | sed -e 's/^X-L//'`
16385                                    if test -n "$acl_shlibext"; then
16386                    if test -f "$dir/$libname$shrext"; then
16387                      found_dir="$dir"
16388                      found_so="$dir/$libname$shrext"
16389                    else
16390                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16391                        ver=`(cd "$dir" && \
16392                              for f in "$libname$shrext".*; do echo "$f"; done \
16393                              | sed -e "s,^$libname$shrext\\\\.,," \
16394                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16395                              | sed 1q ) 2>/dev/null`
16396                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16397                          found_dir="$dir"
16398                          found_so="$dir/$libname$shrext.$ver"
16399                        fi
16400                      else
16401                        eval library_names=\"$acl_library_names_spec\"
16402                        for f in $library_names; do
16403                          if test -f "$dir/$f"; then
16404                            found_dir="$dir"
16405                            found_so="$dir/$f"
16406                            break
16407                          fi
16408                        done
16409                      fi
16410                    fi
16411                  fi
16412                                    if test "X$found_dir" = "X"; then
16413                    if test -f "$dir/$libname.$acl_libext"; then
16414                      found_dir="$dir"
16415                      found_a="$dir/$libname.$acl_libext"
16416                    fi
16417                  fi
16418                  if test "X$found_dir" != "X"; then
16419                    if test -f "$dir/$libname.la"; then
16420                      found_la="$dir/$libname.la"
16421                    fi
16422                  fi
16423                  ;;
16424              esac
16425              if test "X$found_dir" != "X"; then
16426                break
16427              fi
16428            done
16429          fi
16430          if test "X$found_dir" != "X"; then
16431                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16432            if test "X$found_so" != "X"; then
16433                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
16434                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16435              else
16436                                                                                haveit=
16437                for x in $ltrpathdirs; do
16438                  if test "X$x" = "X$found_dir"; then
16439                    haveit=yes
16440                    break
16441                  fi
16442                done
16443                if test -z "$haveit"; then
16444                  ltrpathdirs="$ltrpathdirs $found_dir"
16445                fi
16446                                if test "$acl_hardcode_direct" = yes; then
16447                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16448                else
16449                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16450                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16451                                                            haveit=
16452                    for x in $rpathdirs; do
16453                      if test "X$x" = "X$found_dir"; then
16454                        haveit=yes
16455                        break
16456                      fi
16457                    done
16458                    if test -z "$haveit"; then
16459                      rpathdirs="$rpathdirs $found_dir"
16460                    fi
16461                  else
16462                                                                                haveit=
16463                    for x in $LDFLAGS $LIBINTL; do
16464
16465  acl_save_prefix="$prefix"
16466  prefix="$acl_final_prefix"
16467  acl_save_exec_prefix="$exec_prefix"
16468  exec_prefix="$acl_final_exec_prefix"
16469  eval x=\"$x\"
16470  exec_prefix="$acl_save_exec_prefix"
16471  prefix="$acl_save_prefix"
16472
16473                      if test "X$x" = "X-L$found_dir"; then
16474                        haveit=yes
16475                        break
16476                      fi
16477                    done
16478                    if test -z "$haveit"; then
16479                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16480                    fi
16481                    if test "$acl_hardcode_minus_L" != no; then
16482                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16483                    else
16484                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16485                    fi
16486                  fi
16487                fi
16488              fi
16489            else
16490              if test "X$found_a" != "X"; then
16491                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16492              else
16493                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16494              fi
16495            fi
16496                        additional_includedir=
16497            case "$found_dir" in
16498              */$acl_libdirstem | */$acl_libdirstem/)
16499                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16500                LIBINTL_PREFIX="$basedir"
16501                additional_includedir="$basedir/include"
16502                ;;
16503            esac
16504            if test "X$additional_includedir" != "X"; then
16505                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
16506                haveit=
16507                if test "X$additional_includedir" = "X/usr/local/include"; then
16508                  if test -n "$GCC"; then
16509                    case $host_os in
16510                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16511                    esac
16512                  fi
16513                fi
16514                if test -z "$haveit"; then
16515                  for x in $CPPFLAGS $INCINTL; do
16516
16517  acl_save_prefix="$prefix"
16518  prefix="$acl_final_prefix"
16519  acl_save_exec_prefix="$exec_prefix"
16520  exec_prefix="$acl_final_exec_prefix"
16521  eval x=\"$x\"
16522  exec_prefix="$acl_save_exec_prefix"
16523  prefix="$acl_save_prefix"
16524
16525                    if test "X$x" = "X-I$additional_includedir"; then
16526                      haveit=yes
16527                      break
16528                    fi
16529                  done
16530                  if test -z "$haveit"; then
16531                    if test -d "$additional_includedir"; then
16532                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16533                    fi
16534                  fi
16535                fi
16536              fi
16537            fi
16538                        if test -n "$found_la"; then
16539                                                        save_libdir="$libdir"
16540              case "$found_la" in
16541                */* | *\\*) . "$found_la" ;;
16542                *) . "./$found_la" ;;
16543              esac
16544              libdir="$save_libdir"
16545                            for dep in $dependency_libs; do
16546                case "$dep" in
16547                  -L*)
16548                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16549                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16550                      haveit=
16551                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16552                        if test -n "$GCC"; then
16553                          case $host_os in
16554                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16555                          esac
16556                        fi
16557                      fi
16558                      if test -z "$haveit"; then
16559                        haveit=
16560                        for x in $LDFLAGS $LIBINTL; do
16561
16562  acl_save_prefix="$prefix"
16563  prefix="$acl_final_prefix"
16564  acl_save_exec_prefix="$exec_prefix"
16565  exec_prefix="$acl_final_exec_prefix"
16566  eval x=\"$x\"
16567  exec_prefix="$acl_save_exec_prefix"
16568  prefix="$acl_save_prefix"
16569
16570                          if test "X$x" = "X-L$additional_libdir"; then
16571                            haveit=yes
16572                            break
16573                          fi
16574                        done
16575                        if test -z "$haveit"; then
16576                          if test -d "$additional_libdir"; then
16577                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16578                          fi
16579                        fi
16580                        haveit=
16581                        for x in $LDFLAGS $LTLIBINTL; do
16582
16583  acl_save_prefix="$prefix"
16584  prefix="$acl_final_prefix"
16585  acl_save_exec_prefix="$exec_prefix"
16586  exec_prefix="$acl_final_exec_prefix"
16587  eval x=\"$x\"
16588  exec_prefix="$acl_save_exec_prefix"
16589  prefix="$acl_save_prefix"
16590
16591                          if test "X$x" = "X-L$additional_libdir"; then
16592                            haveit=yes
16593                            break
16594                          fi
16595                        done
16596                        if test -z "$haveit"; then
16597                          if test -d "$additional_libdir"; then
16598                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16599                          fi
16600                        fi
16601                      fi
16602                    fi
16603                    ;;
16604                  -R*)
16605                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
16606                    if test "$enable_rpath" != no; then
16607                                                                  haveit=
16608                      for x in $rpathdirs; do
16609                        if test "X$x" = "X$dir"; then
16610                          haveit=yes
16611                          break
16612                        fi
16613                      done
16614                      if test -z "$haveit"; then
16615                        rpathdirs="$rpathdirs $dir"
16616                      fi
16617                                                                  haveit=
16618                      for x in $ltrpathdirs; do
16619                        if test "X$x" = "X$dir"; then
16620                          haveit=yes
16621                          break
16622                        fi
16623                      done
16624                      if test -z "$haveit"; then
16625                        ltrpathdirs="$ltrpathdirs $dir"
16626                      fi
16627                    fi
16628                    ;;
16629                  -l*)
16630                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16631                    ;;
16632                  *.la)
16633                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16634                    ;;
16635                  *)
16636                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16637                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16638                    ;;
16639                esac
16640              done
16641            fi
16642          else
16643                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16644            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16645          fi
16646        fi
16647      fi
16648    done
16649  done
16650  if test "X$rpathdirs" != "X"; then
16651    if test -n "$acl_hardcode_libdir_separator"; then
16652                        alldirs=
16653      for found_dir in $rpathdirs; do
16654        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16655      done
16656            acl_save_libdir="$libdir"
16657      libdir="$alldirs"
16658      eval flag=\"$acl_hardcode_libdir_flag_spec\"
16659      libdir="$acl_save_libdir"
16660      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16661    else
16662            for found_dir in $rpathdirs; do
16663        acl_save_libdir="$libdir"
16664        libdir="$found_dir"
16665        eval flag=\"$acl_hardcode_libdir_flag_spec\"
16666        libdir="$acl_save_libdir"
16667        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16668      done
16669    fi
16670  fi
16671  if test "X$ltrpathdirs" != "X"; then
16672            for found_dir in $ltrpathdirs; do
16673      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16674    done
16675  fi
16676
16677          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16678$as_echo_n "checking for GNU gettext in libintl... " >&6; }
16679if eval \${$gt_func_gnugettext_libintl+:} false; then :
16680  $as_echo_n "(cached) " >&6
16681else
16682  gt_save_CPPFLAGS="$CPPFLAGS"
16683            CPPFLAGS="$CPPFLAGS $INCINTL"
16684            gt_save_LIBS="$LIBS"
16685            LIBS="$LIBS $LIBINTL"
16686                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h.  */
16688#include <libintl.h>
16689$gt_revision_test_code
16690extern int _nl_msg_cat_cntr;
16691extern
16692#ifdef __cplusplus
16693"C"
16694#endif
16695const char *_nl_expand_alias (const char *);
16696int
16697main ()
16698{
16699bindtextdomain ("", "");
16700return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16701  ;
16702  return 0;
16703}
16704_ACEOF
16705if ac_fn_c_try_link "$LINENO"; then :
16706  eval "$gt_func_gnugettext_libintl=yes"
16707else
16708  eval "$gt_func_gnugettext_libintl=no"
16709fi
16710rm -f core conftest.err conftest.$ac_objext \
16711    conftest$ac_exeext conftest.$ac_ext
16712                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16713              LIBS="$LIBS $LIBICONV"
16714              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h.  */
16716#include <libintl.h>
16717$gt_revision_test_code
16718extern int _nl_msg_cat_cntr;
16719extern
16720#ifdef __cplusplus
16721"C"
16722#endif
16723const char *_nl_expand_alias (const char *);
16724int
16725main ()
16726{
16727bindtextdomain ("", "");
16728return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16729  ;
16730  return 0;
16731}
16732_ACEOF
16733if ac_fn_c_try_link "$LINENO"; then :
16734  LIBINTL="$LIBINTL $LIBICONV"
16735                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16736                eval "$gt_func_gnugettext_libintl=yes"
16737
16738fi
16739rm -f core conftest.err conftest.$ac_objext \
16740    conftest$ac_exeext conftest.$ac_ext
16741            fi
16742            CPPFLAGS="$gt_save_CPPFLAGS"
16743            LIBS="$gt_save_LIBS"
16744fi
16745eval ac_res=\$$gt_func_gnugettext_libintl
16746	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16747$as_echo "$ac_res" >&6; }
16748        fi
16749
16750                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16751           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16752                && test "$PACKAGE" != gettext-runtime \
16753                && test "$PACKAGE" != gettext-tools; }; then
16754          gt_use_preinstalled_gnugettext=yes
16755        else
16756                    LIBINTL=
16757          LTLIBINTL=
16758          INCINTL=
16759        fi
16760
16761
16762
16763    if test -n "$INTL_MACOSX_LIBS"; then
16764      if test "$gt_use_preinstalled_gnugettext" = "yes" \
16765         || test "$nls_cv_use_gnu_gettext" = "yes"; then
16766                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16767        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16768      fi
16769    fi
16770
16771    if test "$gt_use_preinstalled_gnugettext" = "yes" \
16772       || test "$nls_cv_use_gnu_gettext" = "yes"; then
16773
16774$as_echo "#define ENABLE_NLS 1" >>confdefs.h
16775
16776    else
16777      USE_NLS=no
16778    fi
16779  fi
16780
16781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16782$as_echo_n "checking whether to use NLS... " >&6; }
16783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16784$as_echo "$USE_NLS" >&6; }
16785  if test "$USE_NLS" = "yes"; then
16786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16787$as_echo_n "checking where the gettext function comes from... " >&6; }
16788    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16789      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16790        gt_source="external libintl"
16791      else
16792        gt_source="libc"
16793      fi
16794    else
16795      gt_source="included intl directory"
16796    fi
16797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16798$as_echo "$gt_source" >&6; }
16799  fi
16800
16801  if test "$USE_NLS" = "yes"; then
16802
16803    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16804      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16805        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16806$as_echo_n "checking how to link with libintl... " >&6; }
16807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16808$as_echo "$LIBINTL" >&6; }
16809
16810  for element in $INCINTL; do
16811    haveit=
16812    for x in $CPPFLAGS; do
16813
16814  acl_save_prefix="$prefix"
16815  prefix="$acl_final_prefix"
16816  acl_save_exec_prefix="$exec_prefix"
16817  exec_prefix="$acl_final_exec_prefix"
16818  eval x=\"$x\"
16819  exec_prefix="$acl_save_exec_prefix"
16820  prefix="$acl_save_prefix"
16821
16822      if test "X$x" = "X$element"; then
16823        haveit=yes
16824        break
16825      fi
16826    done
16827    if test -z "$haveit"; then
16828      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16829    fi
16830  done
16831
16832      fi
16833
16834
16835$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16836
16837
16838$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16839
16840    fi
16841
16842        POSUB=po
16843  fi
16844
16845
16846
16847    INTLLIBS="$LIBINTL"
16848
16849
16850
16851
16852
16853
16854
16855  if test "$USE_NLS" = "yes"; then
16856    GETTEXT_PACKAGE=gst-plugins-bad-$GST_API_VERSION
16857  else
16858    GETTEXT_PACKAGE=NULL
16859  fi
16860
16861
16862cat >>confdefs.h <<_ACEOF
16863#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
16864_ACEOF
16865
16866
16867    if test -e "${srcdir}/po/Makevars"; then
16868    if ! grep -e "gst-plugins-bad-$GST_API_VERSION" "${srcdir}/po/Makevars"; then
16869      as_fn_error $? "DOMAIN in po/Makevars does not match GETTEXT_PACKAGE gst-plugins-bad-$GST_API_VERSION" "$LINENO" 5
16870    fi
16871  fi
16872
16873
16874  EXP_VAR=LOCALEDIR
16875  FROM_VAR=$datadir/locale
16876
16877    prefix_save=$prefix
16878  exec_prefix_save=$exec_prefix
16879
16880    if test "x$prefix" = "xNONE"; then
16881    prefix="$ac_default_prefix"
16882  fi
16883    if test "x$exec_prefix" = "xNONE"; then
16884    exec_prefix=$prefix
16885  fi
16886
16887  full_var="$FROM_VAR"
16888    while true; do
16889    new_full_var="`eval echo $full_var`"
16890    if test "x$new_full_var" = "x$full_var"; then break; fi
16891    full_var=$new_full_var
16892  done
16893
16894    full_var=$new_full_var
16895  LOCALEDIR="$full_var"
16896
16897
16898    prefix=$prefix_save
16899  exec_prefix=$exec_prefix_save
16900
16901
16902cat >>confdefs.h <<_ACEOF
16903#define LOCALEDIR "$LOCALEDIR"
16904_ACEOF
16905
16906
16907
16908
16909
16910  # Check whether --enable-fatal-warnings was given.
16911if test "${enable_fatal_warnings+set}" = set; then :
16912  enableval=$enable_fatal_warnings;
16913      case "${enableval}" in
16914        yes) FATAL_WARNINGS=yes ;;
16915        no)  FATAL_WARNINGS=no ;;
16916        *)   as_fn_error $? "bad value ${enableval} for --disable-fatal-warnings" "$LINENO" 5 ;;
16917      esac
16918
16919else
16920
16921      if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
16922        FATAL_WARNINGS=yes
16923      else
16924        FATAL_WARNINGS=no
16925      fi
16926
16927fi
16928
16929
16930
16931  # Check whether --enable-extra-check was given.
16932if test "${enable_extra_check+set}" = set; then :
16933  enableval=$enable_extra_check;
16934      case "${enableval}" in
16935        yes) EXTRA_CHECKS=yes ;;
16936        no)  EXTRA_CHECKS=no ;;
16937        *)   as_fn_error $? "bad value ${enableval} for --enable-extra-checks" "$LINENO" 5 ;;
16938      esac
16939
16940else
16941
16942      if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
16943        EXTRA_CHECKS=yes
16944      else
16945        EXTRA_CHECKS=no
16946      fi
16947
16948fi
16949
16950
16951    if test "x$EXTRA_CHECKS" = "xyes"; then
16952
16953$as_echo "#define GST_ENABLE_EXTRA_CHECKS 1" >>confdefs.h
16954
16955    fi
16956
16957
16958
16959    # Check whether --enable-debug was given.
16960if test "${enable_debug+set}" = set; then :
16961  enableval=$enable_debug;
16962      case "${enableval}" in
16963        yes) USE_DEBUG=yes ;;
16964        no)  USE_DEBUG=no ;;
16965        *)   as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
16966      esac
16967
16968else
16969  USE_DEBUG=yes
16970fi
16971
16972
16973  # Check whether --enable-profiling was given.
16974if test "${enable_profiling+set}" = set; then :
16975  enableval=$enable_profiling;
16976      case "${enableval}" in
16977        yes) USE_PROFILING=yes ;;
16978        no)  USE_PROFILING=no ;;
16979        *)   as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
16980      esac
16981
16982else
16983  USE_PROFILING=no
16984fi
16985
16986
16987
16988if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16989	if test -n "$ac_tool_prefix"; then
16990  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16991set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16993$as_echo_n "checking for $ac_word... " >&6; }
16994if ${ac_cv_path_PKG_CONFIG+:} false; then :
16995  $as_echo_n "(cached) " >&6
16996else
16997  case $PKG_CONFIG in
16998  [\\/]* | ?:[\\/]*)
16999  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17000  ;;
17001  *)
17002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003for as_dir in $PATH
17004do
17005  IFS=$as_save_IFS
17006  test -z "$as_dir" && as_dir=.
17007    for ac_exec_ext in '' $ac_executable_extensions; do
17008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17009    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17011    break 2
17012  fi
17013done
17014  done
17015IFS=$as_save_IFS
17016
17017  ;;
17018esac
17019fi
17020PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17021if test -n "$PKG_CONFIG"; then
17022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17023$as_echo "$PKG_CONFIG" >&6; }
17024else
17025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17026$as_echo "no" >&6; }
17027fi
17028
17029
17030fi
17031if test -z "$ac_cv_path_PKG_CONFIG"; then
17032  ac_pt_PKG_CONFIG=$PKG_CONFIG
17033  # Extract the first word of "pkg-config", so it can be a program name with args.
17034set dummy pkg-config; ac_word=$2
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17036$as_echo_n "checking for $ac_word... " >&6; }
17037if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17038  $as_echo_n "(cached) " >&6
17039else
17040  case $ac_pt_PKG_CONFIG in
17041  [\\/]* | ?:[\\/]*)
17042  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17043  ;;
17044  *)
17045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046for as_dir in $PATH
17047do
17048  IFS=$as_save_IFS
17049  test -z "$as_dir" && as_dir=.
17050    for ac_exec_ext in '' $ac_executable_extensions; do
17051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17052    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17054    break 2
17055  fi
17056done
17057  done
17058IFS=$as_save_IFS
17059
17060  ;;
17061esac
17062fi
17063ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17064if test -n "$ac_pt_PKG_CONFIG"; then
17065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17066$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17067else
17068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17069$as_echo "no" >&6; }
17070fi
17071
17072  if test "x$ac_pt_PKG_CONFIG" = x; then
17073    PKG_CONFIG=""
17074  else
17075    case $cross_compiling:$ac_tool_warned in
17076yes:)
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17079ac_tool_warned=yes ;;
17080esac
17081    PKG_CONFIG=$ac_pt_PKG_CONFIG
17082  fi
17083else
17084  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17085fi
17086
17087fi
17088if test -n "$PKG_CONFIG"; then
17089	_pkg_min_version=0.9.0
17090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17091$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17092	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17093		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17094$as_echo "yes" >&6; }
17095	else
17096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17097$as_echo "no" >&6; }
17098		PKG_CONFIG=""
17099	fi
17100
17101fi
17102
17103    # Check whether --enable-valgrind was given.
17104if test "${enable_valgrind+set}" = set; then :
17105  enableval=$enable_valgrind;
17106      case "${enableval}" in
17107        yes) USE_VALGRIND="$USE_DEBUG" ;;
17108        no)  USE_VALGRIND=no ;;
17109        *)   as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
17110      esac
17111
17112else
17113  USE_VALGRIND="$USE_DEBUG"
17114fi
17115   VALGRIND_REQ="3.0"
17116  if test "x$USE_VALGRIND" = xyes; then
17117
17118pkg_failed=no
17119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
17120$as_echo_n "checking for VALGRIND... " >&6; }
17121
17122if test -n "$PKG_CONFIG"; then
17123    if test -n "$VALGRIND_CFLAGS"; then
17124        pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
17125    else
17126        if test -n "$PKG_CONFIG" && \
17127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
17128  ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
17129  ac_status=$?
17130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17131  test $ac_status = 0; }; then
17132  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= $VALGRIND_REQ" 2>/dev/null`
17133else
17134  pkg_failed=yes
17135fi
17136    fi
17137else
17138	pkg_failed=untried
17139fi
17140if test -n "$PKG_CONFIG"; then
17141    if test -n "$VALGRIND_LIBS"; then
17142        pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
17143    else
17144        if test -n "$PKG_CONFIG" && \
17145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
17146  ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
17147  ac_status=$?
17148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149  test $ac_status = 0; }; then
17150  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= $VALGRIND_REQ" 2>/dev/null`
17151else
17152  pkg_failed=yes
17153fi
17154    fi
17155else
17156	pkg_failed=untried
17157fi
17158
17159
17160
17161if test $pkg_failed = yes; then
17162
17163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17164        _pkg_short_errors_supported=yes
17165else
17166        _pkg_short_errors_supported=no
17167fi
17168        if test $_pkg_short_errors_supported = yes; then
17169	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
17170        else
17171	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
17172        fi
17173	# Put the nasty error message in config.log where it belongs
17174	echo "$VALGRIND_PKG_ERRORS" >&5
17175
17176	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177$as_echo "no" >&6; }
17178                USE_VALGRIND="no"
17179elif test $pkg_failed = untried; then
17180	USE_VALGRIND="no"
17181else
17182	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
17183	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
17184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17185$as_echo "yes" >&6; }
17186	USE_VALGRIND="yes"
17187fi
17188  fi
17189  if test "x$USE_VALGRIND" = xyes; then
17190
17191$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
17192
17193    { $as_echo "$as_me:${as_lineno-$LINENO}: Using extra code paths for valgrind" >&5
17194$as_echo "$as_me: Using extra code paths for valgrind" >&6;}
17195  fi
17196
17197
17198  # Check whether --enable-gcov was given.
17199if test "${enable_gcov+set}" = set; then :
17200  enableval=$enable_gcov; enable_gcov=$enableval
17201else
17202  enable_gcov=no
17203fi
17204
17205  if test x$enable_gcov = xyes ; then
17206    if test "x$GCC" != "xyes"
17207    then
17208      as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
17209    fi
17210
17211
17212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-fprofile-arcs\"" >&5
17213$as_echo_n "checking to see if compiler understands \"-fprofile-arcs\"... " >&6; }
17214
17215  save_CFLAGS="$CFLAGS"
17216  CFLAGS="$CFLAGS "-fprofile-arcs""
17217
17218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220
17221int
17222main ()
17223{
17224
17225  ;
17226  return 0;
17227}
17228_ACEOF
17229if ac_fn_c_try_compile "$LINENO"; then :
17230  flag_ok=yes
17231else
17232  flag_ok=no
17233fi
17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17235  CFLAGS="$save_CFLAGS"
17236
17237  if test "X$flag_ok" = Xyes ; then
17238    GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"
17239    true
17240  else
17241    true
17242    true
17243  fi
17244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
17245$as_echo "$flag_ok" >&6; }
17246
17247
17248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-ftest-coverage\"" >&5
17249$as_echo_n "checking to see if compiler understands \"-ftest-coverage\"... " >&6; }
17250
17251  save_CFLAGS="$CFLAGS"
17252  CFLAGS="$CFLAGS "-ftest-coverage""
17253
17254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255/* end confdefs.h.  */
17256
17257int
17258main ()
17259{
17260
17261  ;
17262  return 0;
17263}
17264_ACEOF
17265if ac_fn_c_try_compile "$LINENO"; then :
17266  flag_ok=yes
17267else
17268  flag_ok=no
17269fi
17270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271  CFLAGS="$save_CFLAGS"
17272
17273  if test "X$flag_ok" = Xyes ; then
17274    GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"
17275    true
17276  else
17277    true
17278    true
17279  fi
17280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
17281$as_echo "$flag_ok" >&6; }
17282
17283        GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[0-9]*//g'`
17284                GCOV_LIBS=-lgcov
17285
17286
17287    GCOV=`echo $CC | sed s/gcc/gcov/g`
17288
17289
17290    GST_GCOV_ENABLED=yes
17291
17292cat >>confdefs.h <<_ACEOF
17293#define GST_GCOV_ENABLED 1
17294_ACEOF
17295
17296        if test "x$GST_GCOV_ENABLED" = "xyes"
17297    then
17298      CFLAGS="$CFLAGS -O0"
17299
17300      CXXFLAGS="$CXXFLAGS -O0"
17301
17302      FFLAGS="$FFLAGS -O0"
17303
17304      CCASFLAGS="$CCASFLAGS -O0"
17305
17306      { $as_echo "$as_me:${as_lineno-$LINENO}: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&5
17307$as_echo "$as_me: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&6;}
17308    fi
17309  fi
17310   if test x$enable_gcov = xyes; then
17311  GST_GCOV_ENABLED_TRUE=
17312  GST_GCOV_ENABLED_FALSE='#'
17313else
17314  GST_GCOV_ENABLED_TRUE='#'
17315  GST_GCOV_ENABLED_FALSE=
17316fi
17317
17318
17319
17320
17321  # Check whether --enable-examples was given.
17322if test "${enable_examples+set}" = set; then :
17323  enableval=$enable_examples;
17324        case "${enableval}" in
17325          yes) BUILD_EXAMPLES=yes ;;
17326          no)  BUILD_EXAMPLES=no ;;
17327          *)   as_fn_error $? "bad value ${enableval} for --disable-examples" "$LINENO" 5 ;;
17328        esac
17329
17330else
17331  BUILD_EXAMPLES=yes
17332fi
17333    if test "x$BUILD_EXAMPLES" = "xyes"; then
17334  BUILD_EXAMPLES_TRUE=
17335  BUILD_EXAMPLES_FALSE='#'
17336else
17337  BUILD_EXAMPLES_TRUE='#'
17338  BUILD_EXAMPLES_FALSE=
17339fi
17340
17341
17342
17343
17344
17345# Check whether --with-pkg-config-path was given.
17346if test "${with_pkg_config_path+set}" = set; then :
17347  withval=$with_pkg_config_path;
17348       export PKG_CONFIG_PATH=${withval}
17349       { $as_echo "$as_me:${as_lineno-$LINENO}: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&5
17350$as_echo "$as_me: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&6;}
17351
17352fi
17353
17354
17355
17356
17357# Check whether --with-package-name was given.
17358if test "${with_package_name+set}" = set; then :
17359  withval=$with_package_name;
17360      case "${withval}" in
17361        yes) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
17362        no)  as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
17363        *)   GST_PACKAGE_NAME="${withval}" ;;
17364      esac
17365
17366else
17367
17368      P=
17369      if test "x$P" = "x"
17370      then
17371        P=$PACKAGE_NAME
17372      fi
17373
17374      if test "x$PACKAGE_VERSION_NANO" = "x0"
17375      then
17376        GST_PACKAGE_NAME="$P source release"
17377      else
17378        if test "x$PACKAGE_VERSION_NANO" = "x1"
17379        then
17380          GST_PACKAGE_NAME="$P git"
17381        else
17382          GST_PACKAGE_NAME="$P prerelease"
17383        fi
17384      fi
17385
17386
17387fi
17388
17389  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_NAME as package name" >&5
17390$as_echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
17391
17392cat >>confdefs.h <<_ACEOF
17393#define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
17394_ACEOF
17395
17396
17397
17398
17399
17400# Check whether --with-package-origin was given.
17401if test "${with_package_origin+set}" = set; then :
17402  withval=$with_package_origin;
17403      case "${withval}" in
17404        yes) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
17405        no)  as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
17406        *)   GST_PACKAGE_ORIGIN="${withval}" ;;
17407      esac
17408
17409else
17410  GST_PACKAGE_ORIGIN="Unknown package origin"
17411fi
17412
17413  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_ORIGIN as package origin" >&5
17414$as_echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
17415
17416cat >>confdefs.h <<_ACEOF
17417#define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
17418_ACEOF
17419
17420
17421
17422
17423
17424
17425# Check whether --with-plugins was given.
17426if test "${with_plugins+set}" = set; then :
17427  withval=$with_plugins; WITH_PLUGINS=$withval
17428else
17429  WITH_PLUGINS=
17430fi
17431
17432
17433  GST_PLUGINS_ALL=""
17434  GST_PLUGINS_SELECTED=""
17435  GST_PLUGINS_NONPORTED=""
17436
17437
17438
17439
17440
17441
17442
17443  echo
17444{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: building of plug-ins with external deps ***" >&5
17445$as_echo "$as_me: *** checking feature: building of plug-ins with external deps ***" >&6;}
17446if test "x" != "x"
17447then
17448  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
17449$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
17450fi
17451NOUSE=
17452if test "x$USE_EXTERNAL" = "xno"; then
17453  NOUSE="yes"
17454fi
17455# Check whether --enable-external was given.
17456if test "${enable_external+set}" = set; then :
17457  enableval=$enable_external;  case "${enableval}" in
17458      yes) USE_EXTERNAL=yes;;
17459      no) USE_EXTERNAL=no;;
17460      *) as_fn_error $? "bad value ${enableval} for --enable-external" "$LINENO" 5 ;;
17461    esac
17462else
17463   USE_EXTERNAL=yes
17464fi
17465
17466if test "x$NOUSE" = "xyes"; then
17467  USE_EXTERNAL="no"
17468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
17469$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
17470fi
17471NOUSE=
17472
17473if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " EXTERNAL " > /dev/null; then
17474  USE_EXTERNAL="no"
17475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
17476$as_echo "$as_me: WARNING: ***  not ported" >&2;}
17477fi
17478
17479
17480if test x$USE_EXTERNAL = xyes; then
17481
17482  gst_check_save_LIBS=$LIBS
17483  gst_check_save_LDFLAGS=$LDFLAGS
17484  gst_check_save_CFLAGS=$CFLAGS
17485  gst_check_save_CPPFLAGS=$CPPFLAGS
17486  gst_check_save_CXXFLAGS=$CXXFLAGS
17487
17488  HAVE_EXTERNAL=no
17489    HAVE_EXTERNAL=yes
17490
17491  LIBS=$gst_check_save_LIBS
17492  LDFLAGS=$gst_check_save_LDFLAGS
17493  CFLAGS=$gst_check_save_CFLAGS
17494  CPPFLAGS=$gst_check_save_CPPFLAGS
17495  CXXFLAGS=$gst_check_save_CXXFLAGS
17496
17497    if test x$HAVE_EXTERNAL = xno; then
17498    USE_EXTERNAL=no
17499  else
17500    :
17501  fi
17502fi
17503if test x$USE_EXTERNAL = xyes; then
17504
17505      { $as_echo "$as_me:${as_lineno-$LINENO}: building external plug-ins" >&5
17506$as_echo "$as_me: building external plug-ins" >&6;}
17507      BUILD_EXTERNAL="yes"
17508
17509  if test "x" != "x"; then
17510    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
17511  fi
17512
17513$as_echo "#define HAVE_EXTERNAL /**/" >>confdefs.h
17514
17515else
17516  :
17517  if test "x" != "x"; then
17518    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
17519  fi
17520
17521      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: all plug-ins with external dependencies will not be built" >&5
17522$as_echo "$as_me: WARNING: all plug-ins with external dependencies will not be built" >&2;}
17523      BUILD_EXTERNAL="no"
17524
17525fi
17526 if test x$USE_EXTERNAL = xyes; then
17527  USE_EXTERNAL_TRUE=
17528  USE_EXTERNAL_FALSE='#'
17529else
17530  USE_EXTERNAL_TRUE='#'
17531  USE_EXTERNAL_FALSE=
17532fi
17533
17534
17535  # make BUILD_EXTERNAL available to Makefile.am
17536   if test "x$BUILD_EXTERNAL" = "xyes"; then
17537  BUILD_EXTERNAL_TRUE=
17538  BUILD_EXTERNAL_FALSE='#'
17539else
17540  BUILD_EXTERNAL_TRUE='#'
17541  BUILD_EXTERNAL_FALSE=
17542fi
17543
17544
17545
17546
17547  echo
17548{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: building of experimental plug-ins ***" >&5
17549$as_echo "$as_me: *** checking feature: building of experimental plug-ins ***" >&6;}
17550if test "x" != "x"
17551then
17552  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
17553$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
17554fi
17555NOUSE=
17556if test "x$USE_EXPERIMENTAL" = "xno"; then
17557  NOUSE="yes"
17558fi
17559# Check whether --enable-experimental was given.
17560if test "${enable_experimental+set}" = set; then :
17561  enableval=$enable_experimental;  case "${enableval}" in
17562      yes) USE_EXPERIMENTAL=yes;;
17563      no) USE_EXPERIMENTAL=no;;
17564      *) as_fn_error $? "bad value ${enableval} for --enable-experimental" "$LINENO" 5 ;;
17565    esac
17566else
17567   USE_EXPERIMENTAL=no
17568fi
17569
17570if test "x$NOUSE" = "xyes"; then
17571  USE_EXPERIMENTAL="no"
17572  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
17573$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
17574fi
17575NOUSE=
17576
17577if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " EXPERIMENTAL " > /dev/null; then
17578  USE_EXPERIMENTAL="no"
17579  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
17580$as_echo "$as_me: WARNING: ***  not ported" >&2;}
17581fi
17582
17583
17584if test x$USE_EXPERIMENTAL = xyes; then
17585
17586  gst_check_save_LIBS=$LIBS
17587  gst_check_save_LDFLAGS=$LDFLAGS
17588  gst_check_save_CFLAGS=$CFLAGS
17589  gst_check_save_CPPFLAGS=$CPPFLAGS
17590  gst_check_save_CXXFLAGS=$CXXFLAGS
17591
17592  HAVE_EXPERIMENTAL=no
17593    HAVE_EXPERIMENTAL=yes
17594
17595  LIBS=$gst_check_save_LIBS
17596  LDFLAGS=$gst_check_save_LDFLAGS
17597  CFLAGS=$gst_check_save_CFLAGS
17598  CPPFLAGS=$gst_check_save_CPPFLAGS
17599  CXXFLAGS=$gst_check_save_CXXFLAGS
17600
17601    if test x$HAVE_EXPERIMENTAL = xno; then
17602    USE_EXPERIMENTAL=no
17603  else
17604    :
17605  fi
17606fi
17607if test x$USE_EXPERIMENTAL = xyes; then
17608
17609      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building experimental plug-ins" >&5
17610$as_echo "$as_me: WARNING: building experimental plug-ins" >&2;}
17611      BUILD_EXPERIMENTAL="yes"
17612
17613  if test "x" != "x"; then
17614    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
17615  fi
17616
17617$as_echo "#define HAVE_EXPERIMENTAL /**/" >>confdefs.h
17618
17619else
17620  :
17621  if test "x" != "x"; then
17622    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
17623  fi
17624
17625      { $as_echo "$as_me:${as_lineno-$LINENO}: not building experimental plug-ins" >&5
17626$as_echo "$as_me: not building experimental plug-ins" >&6;}
17627      BUILD_EXPERIMENTAL="no"
17628
17629fi
17630 if test x$USE_EXPERIMENTAL = xyes; then
17631  USE_EXPERIMENTAL_TRUE=
17632  USE_EXPERIMENTAL_FALSE='#'
17633else
17634  USE_EXPERIMENTAL_TRUE='#'
17635  USE_EXPERIMENTAL_FALSE=
17636fi
17637
17638
17639  # make BUILD_EXPERIMENTAL available to Makefile.am
17640   if test "x$BUILD_EXPERIMENTAL" = "xyes"; then
17641  BUILD_EXPERIMENTAL_TRUE=
17642  BUILD_EXPERIMENTAL_FALSE='#'
17643else
17644  BUILD_EXPERIMENTAL_TRUE='#'
17645  BUILD_EXPERIMENTAL_FALSE=
17646fi
17647
17648
17649
17650
17651  GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
17652  if test "x$PKG_CONFIG_PATH" != "x"; then
17653    GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
17654  fi
17655
17656  { $as_echo "$as_me:${as_lineno-$LINENO}: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&5
17657$as_echo "$as_me: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&6;}
17658
17659
17660
17661
17662
17663  case $host_os in
17664    rhapsody*)
17665
17666cat >>confdefs.h <<_ACEOF
17667#define GST_EXTRA_MODULE_SUFFIX ".dylib"
17668_ACEOF
17669
17670      ;;
17671    darwin*)
17672
17673cat >>confdefs.h <<_ACEOF
17674#define GST_EXTRA_MODULE_SUFFIX ".dylib"
17675_ACEOF
17676
17677
17678cat >>confdefs.h <<_ACEOF
17679#define HAVE_OSX 1
17680_ACEOF
17681
17682      ;;
17683    cygwin*)
17684
17685cat >>confdefs.h <<_ACEOF
17686#define GST_HAVE_UNSAFE_FORK 1
17687_ACEOF
17688
17689      ;;
17690    mingw* | msvc* | mks*)
17691
17692cat >>confdefs.h <<_ACEOF
17693#define HAVE_WIN32 1
17694_ACEOF
17695
17696
17697                              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h.  */
17699
17700int
17701main ()
17702{
17703 return __MSVCRT_VERSION__;
17704  ;
17705  return 0;
17706}
17707_ACEOF
17708if ac_fn_c_try_compile "$LINENO"; then :
17709
17710          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711/* end confdefs.h.  */
17712
17713int
17714main ()
17715{
17716
17717            #if __MSVCRT_VERSION__ < 0x0601
17718            #error "MSVCRT too old"
17719            #endif
17720
17721  ;
17722  return 0;
17723}
17724_ACEOF
17725if ac_fn_c_try_compile "$LINENO"; then :
17726
17727            { $as_echo "$as_me:${as_lineno-$LINENO}: MSVCRT version looks ok" >&5
17728$as_echo "$as_me: MSVCRT version looks ok" >&6;}
17729
17730else
17731
17732            as_fn_error $? "MSVCRT version too old, need at least WinXP SP2" "$LINENO" 5
17733
17734fi
17735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736
17737else
17738
17739        { $as_echo "$as_me:${as_lineno-$LINENO}: Setting MSVCRT version to 0x0601" >&5
17740$as_echo "$as_me: Setting MSVCRT version to 0x0601" >&6;}
17741
17742cat >>confdefs.h <<_ACEOF
17743#define __MSVCRT_VERSION__ 0x0601
17744_ACEOF
17745
17746
17747fi
17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749      ;;
17750     *)
17751      ;;
17752  esac
17753
17754
17755
17756
17757    case "x${target_cpu}" in
17758    xi?86 | xk? | xi?86_64)
17759      case $target_os in
17760         solaris*)
17761            ac_fn_c_check_decl "$LINENO" "__i386" "ac_cv_have_decl___i386" "$ac_includes_default"
17762if test "x$ac_cv_have_decl___i386" = xyes; then :
17763  I386_ABI="yes"
17764else
17765  I386_ABI="no"
17766fi
17767
17768            ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default"
17769if test "x$ac_cv_have_decl___amd64" = xyes; then :
17770  AMD64_ABI="yes"
17771else
17772  AMD64_ABI="no"
17773fi
17774
17775
17776            if test "x$I386_ABI" = "xyes" ; then
17777               HAVE_CPU_I386=yes
17778
17779$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
17780
17781            fi
17782            if test "x$AMD64_ABI" = "xyes" ; then
17783                HAVE_CPU_X86_64=yes
17784
17785$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
17786
17787            fi
17788            ;;
17789         *)
17790            HAVE_CPU_I386=yes
17791
17792$as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
17793
17794
17795                                    case "x${target_cpu}" in
17796              xi386 | xi486) ;;
17797            *)
17798
17799$as_echo "#define HAVE_RDTSC 1" >>confdefs.h
17800 ;;
17801            esac
17802            ;;
17803      esac
17804      ;;
17805    xpowerpc)
17806      HAVE_CPU_PPC=yes
17807
17808$as_echo "#define HAVE_CPU_PPC 1" >>confdefs.h
17809 ;;
17810    xpowerpc64)
17811      HAVE_CPU_PPC64=yes
17812
17813$as_echo "#define HAVE_CPU_PPC64 1" >>confdefs.h
17814 ;;
17815    xalpha*)
17816      HAVE_CPU_ALPHA=yes
17817
17818$as_echo "#define HAVE_CPU_ALPHA 1" >>confdefs.h
17819 ;;
17820    xarc*)
17821      HAVE_CPU_ARC=yes
17822
17823$as_echo "#define HAVE_CPU_ARC 1" >>confdefs.h
17824 ;;
17825    xarm*)
17826      HAVE_CPU_ARM=yes
17827
17828$as_echo "#define HAVE_CPU_ARM 1" >>confdefs.h
17829 ;;
17830    xaarch64*)
17831      HAVE_CPU_AARCH64=yes
17832
17833$as_echo "#define HAVE_CPU_AARCH64 1" >>confdefs.h
17834 ;;
17835    xsparc*)
17836      HAVE_CPU_SPARC=yes
17837
17838$as_echo "#define HAVE_CPU_SPARC 1" >>confdefs.h
17839 ;;
17840    xmips*)
17841      HAVE_CPU_MIPS=yes
17842
17843$as_echo "#define HAVE_CPU_MIPS 1" >>confdefs.h
17844 ;;
17845    xhppa*)
17846      HAVE_CPU_HPPA=yes
17847
17848$as_echo "#define HAVE_CPU_HPPA 1" >>confdefs.h
17849 ;;
17850    xs390*)
17851      HAVE_CPU_S390=yes
17852
17853$as_echo "#define HAVE_CPU_S390 1" >>confdefs.h
17854 ;;
17855    xia64*)
17856      HAVE_CPU_IA64=yes
17857
17858$as_echo "#define HAVE_CPU_IA64 1" >>confdefs.h
17859 ;;
17860    xm68k*)
17861      HAVE_CPU_M68K=yes
17862
17863$as_echo "#define HAVE_CPU_M68K 1" >>confdefs.h
17864 ;;
17865    xx86_64)
17866      HAVE_CPU_X86_64=yes
17867
17868$as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
17869 ;;
17870    xcris)
17871      HAVE_CPU_CRIS=yes
17872
17873$as_echo "#define HAVE_CPU_CRIS 1" >>confdefs.h
17874 ;;
17875    xcrisv32)
17876      HAVE_CPU_CRISV32=yes
17877
17878$as_echo "#define HAVE_CPU_CRISV32 1" >>confdefs.h
17879 ;;
17880  esac
17881
17882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17883$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17884if ${ac_cv_c_bigendian+:} false; then :
17885  $as_echo_n "(cached) " >&6
17886else
17887  ac_cv_c_bigendian=unknown
17888    # See if we're dealing with a universal compiler.
17889    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891#ifndef __APPLE_CC__
17892	       not a universal capable compiler
17893	     #endif
17894	     typedef int dummy;
17895
17896_ACEOF
17897if ac_fn_c_try_compile "$LINENO"; then :
17898
17899	# Check for potential -arch flags.  It is not universal unless
17900	# there are at least two -arch flags with different values.
17901	ac_arch=
17902	ac_prev=
17903	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17904	 if test -n "$ac_prev"; then
17905	   case $ac_word in
17906	     i?86 | x86_64 | ppc | ppc64)
17907	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17908		 ac_arch=$ac_word
17909	       else
17910		 ac_cv_c_bigendian=universal
17911		 break
17912	       fi
17913	       ;;
17914	   esac
17915	   ac_prev=
17916	 elif test "x$ac_word" = "x-arch"; then
17917	   ac_prev=arch
17918	 fi
17919       done
17920fi
17921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922    if test $ac_cv_c_bigendian = unknown; then
17923      # See if sys/param.h defines the BYTE_ORDER macro.
17924      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h.  */
17926#include <sys/types.h>
17927	     #include <sys/param.h>
17928
17929int
17930main ()
17931{
17932#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17933		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17934		     && LITTLE_ENDIAN)
17935	      bogus endian macros
17936	     #endif
17937
17938  ;
17939  return 0;
17940}
17941_ACEOF
17942if ac_fn_c_try_compile "$LINENO"; then :
17943  # It does; now see whether it defined to BIG_ENDIAN or not.
17944	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945/* end confdefs.h.  */
17946#include <sys/types.h>
17947		#include <sys/param.h>
17948
17949int
17950main ()
17951{
17952#if BYTE_ORDER != BIG_ENDIAN
17953		 not big endian
17954		#endif
17955
17956  ;
17957  return 0;
17958}
17959_ACEOF
17960if ac_fn_c_try_compile "$LINENO"; then :
17961  ac_cv_c_bigendian=yes
17962else
17963  ac_cv_c_bigendian=no
17964fi
17965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17966fi
17967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968    fi
17969    if test $ac_cv_c_bigendian = unknown; then
17970      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972/* end confdefs.h.  */
17973#include <limits.h>
17974
17975int
17976main ()
17977{
17978#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17979	      bogus endian macros
17980	     #endif
17981
17982  ;
17983  return 0;
17984}
17985_ACEOF
17986if ac_fn_c_try_compile "$LINENO"; then :
17987  # It does; now see whether it defined to _BIG_ENDIAN or not.
17988	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989/* end confdefs.h.  */
17990#include <limits.h>
17991
17992int
17993main ()
17994{
17995#ifndef _BIG_ENDIAN
17996		 not big endian
17997		#endif
17998
17999  ;
18000  return 0;
18001}
18002_ACEOF
18003if ac_fn_c_try_compile "$LINENO"; then :
18004  ac_cv_c_bigendian=yes
18005else
18006  ac_cv_c_bigendian=no
18007fi
18008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009fi
18010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011    fi
18012    if test $ac_cv_c_bigendian = unknown; then
18013      # Compile a test program.
18014      if test "$cross_compiling" = yes; then :
18015  # Try to guess by grepping values from an object file.
18016	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h.  */
18018short int ascii_mm[] =
18019		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18020		short int ascii_ii[] =
18021		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18022		int use_ascii (int i) {
18023		  return ascii_mm[i] + ascii_ii[i];
18024		}
18025		short int ebcdic_ii[] =
18026		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18027		short int ebcdic_mm[] =
18028		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18029		int use_ebcdic (int i) {
18030		  return ebcdic_mm[i] + ebcdic_ii[i];
18031		}
18032		extern int foo;
18033
18034int
18035main ()
18036{
18037return use_ascii (foo) == use_ebcdic (foo);
18038  ;
18039  return 0;
18040}
18041_ACEOF
18042if ac_fn_c_try_compile "$LINENO"; then :
18043  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18044	      ac_cv_c_bigendian=yes
18045	    fi
18046	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18047	      if test "$ac_cv_c_bigendian" = unknown; then
18048		ac_cv_c_bigendian=no
18049	      else
18050		# finding both strings is unlikely to happen, but who knows?
18051		ac_cv_c_bigendian=unknown
18052	      fi
18053	    fi
18054fi
18055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056else
18057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18058/* end confdefs.h.  */
18059$ac_includes_default
18060int
18061main ()
18062{
18063
18064	     /* Are we little or big endian?  From Harbison&Steele.  */
18065	     union
18066	     {
18067	       long int l;
18068	       char c[sizeof (long int)];
18069	     } u;
18070	     u.l = 1;
18071	     return u.c[sizeof (long int) - 1] == 1;
18072
18073  ;
18074  return 0;
18075}
18076_ACEOF
18077if ac_fn_c_try_run "$LINENO"; then :
18078  ac_cv_c_bigendian=no
18079else
18080  ac_cv_c_bigendian=yes
18081fi
18082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18083  conftest.$ac_objext conftest.beam conftest.$ac_ext
18084fi
18085
18086    fi
18087fi
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18089$as_echo "$ac_cv_c_bigendian" >&6; }
18090 case $ac_cv_c_bigendian in #(
18091   yes)
18092     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18093;; #(
18094   no)
18095      ;; #(
18096   universal)
18097
18098$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18099
18100     ;; #(
18101   *)
18102     as_fn_error $? "unknown endianness
18103 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18104 esac
18105
18106
18107   if test "x$HAVE_CPU_I386" = "xyes"; then
18108  HAVE_CPU_I386_TRUE=
18109  HAVE_CPU_I386_FALSE='#'
18110else
18111  HAVE_CPU_I386_TRUE='#'
18112  HAVE_CPU_I386_FALSE=
18113fi
18114
18115   if test "x$HAVE_CPU_PPC" = "xyes"; then
18116  HAVE_CPU_PPC_TRUE=
18117  HAVE_CPU_PPC_FALSE='#'
18118else
18119  HAVE_CPU_PPC_TRUE='#'
18120  HAVE_CPU_PPC_FALSE=
18121fi
18122
18123   if test "x$HAVE_CPU_PPC64" = "xyes"; then
18124  HAVE_CPU_PPC64_TRUE=
18125  HAVE_CPU_PPC64_FALSE='#'
18126else
18127  HAVE_CPU_PPC64_TRUE='#'
18128  HAVE_CPU_PPC64_FALSE=
18129fi
18130
18131   if test "x$HAVE_CPU_ALPHA" = "xyes"; then
18132  HAVE_CPU_ALPHA_TRUE=
18133  HAVE_CPU_ALPHA_FALSE='#'
18134else
18135  HAVE_CPU_ALPHA_TRUE='#'
18136  HAVE_CPU_ALPHA_FALSE=
18137fi
18138
18139   if test "x$HAVE_CPU_ARC" = "xyes"; then
18140  HAVE_CPU_ARC_TRUE=
18141  HAVE_CPU_ARC_FALSE='#'
18142else
18143  HAVE_CPU_ARC_TRUE='#'
18144  HAVE_CPU_ARC_FALSE=
18145fi
18146
18147   if test "x$HAVE_CPU_ARM" = "xyes"; then
18148  HAVE_CPU_ARM_TRUE=
18149  HAVE_CPU_ARM_FALSE='#'
18150else
18151  HAVE_CPU_ARM_TRUE='#'
18152  HAVE_CPU_ARM_FALSE=
18153fi
18154
18155   if test "x$HAVE_CPU_SPARC" = "xyes"; then
18156  HAVE_CPU_SPARC_TRUE=
18157  HAVE_CPU_SPARC_FALSE='#'
18158else
18159  HAVE_CPU_SPARC_TRUE='#'
18160  HAVE_CPU_SPARC_FALSE=
18161fi
18162
18163   if test "x$HAVE_CPU_HPPA" = "xyes"; then
18164  HAVE_CPU_HPPA_TRUE=
18165  HAVE_CPU_HPPA_FALSE='#'
18166else
18167  HAVE_CPU_HPPA_TRUE='#'
18168  HAVE_CPU_HPPA_FALSE=
18169fi
18170
18171   if test "x$HAVE_CPU_MIPS" = "xyes"; then
18172  HAVE_CPU_MIPS_TRUE=
18173  HAVE_CPU_MIPS_FALSE='#'
18174else
18175  HAVE_CPU_MIPS_TRUE='#'
18176  HAVE_CPU_MIPS_FALSE=
18177fi
18178
18179   if test "x$HAVE_CPU_S390" = "xyes"; then
18180  HAVE_CPU_S390_TRUE=
18181  HAVE_CPU_S390_FALSE='#'
18182else
18183  HAVE_CPU_S390_TRUE='#'
18184  HAVE_CPU_S390_FALSE=
18185fi
18186
18187   if test "x$HAVE_CPU_IA64" = "xyes"; then
18188  HAVE_CPU_IA64_TRUE=
18189  HAVE_CPU_IA64_FALSE='#'
18190else
18191  HAVE_CPU_IA64_TRUE='#'
18192  HAVE_CPU_IA64_FALSE=
18193fi
18194
18195   if test "x$HAVE_CPU_M68K" = "xyes"; then
18196  HAVE_CPU_M68K_TRUE=
18197  HAVE_CPU_M68K_FALSE='#'
18198else
18199  HAVE_CPU_M68K_TRUE='#'
18200  HAVE_CPU_M68K_FALSE=
18201fi
18202
18203   if test "x$HAVE_CPU_X86_64" = "xyes"; then
18204  HAVE_CPU_X86_64_TRUE=
18205  HAVE_CPU_X86_64_FALSE='#'
18206else
18207  HAVE_CPU_X86_64_TRUE='#'
18208  HAVE_CPU_X86_64_FALSE=
18209fi
18210
18211   if test "x$HAVE_CPU_CRIS" = "xyes"; then
18212  HAVE_CPU_CRIS_TRUE=
18213  HAVE_CPU_CRIS_FALSE='#'
18214else
18215  HAVE_CPU_CRIS_TRUE='#'
18216  HAVE_CPU_CRIS_FALSE=
18217fi
18218
18219   if test "x$HAVE_CPU_CRISV32" = "xyes"; then
18220  HAVE_CPU_CRISV32_TRUE=
18221  HAVE_CPU_CRISV32_FALSE='#'
18222else
18223  HAVE_CPU_CRISV32_TRUE='#'
18224  HAVE_CPU_CRISV32_FALSE=
18225fi
18226
18227
18228
18229cat >>confdefs.h <<_ACEOF
18230#define HOST_CPU "$host_cpu"
18231_ACEOF
18232
18233
18234cat >>confdefs.h <<_ACEOF
18235#define TARGET_CPU "$target_cpu"
18236_ACEOF
18237
18238
18239
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18241$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18242if ${ac_cv_c_bigendian+:} false; then :
18243  $as_echo_n "(cached) " >&6
18244else
18245  ac_cv_c_bigendian=unknown
18246    # See if we're dealing with a universal compiler.
18247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248/* end confdefs.h.  */
18249#ifndef __APPLE_CC__
18250	       not a universal capable compiler
18251	     #endif
18252	     typedef int dummy;
18253
18254_ACEOF
18255if ac_fn_c_try_compile "$LINENO"; then :
18256
18257	# Check for potential -arch flags.  It is not universal unless
18258	# there are at least two -arch flags with different values.
18259	ac_arch=
18260	ac_prev=
18261	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18262	 if test -n "$ac_prev"; then
18263	   case $ac_word in
18264	     i?86 | x86_64 | ppc | ppc64)
18265	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18266		 ac_arch=$ac_word
18267	       else
18268		 ac_cv_c_bigendian=universal
18269		 break
18270	       fi
18271	       ;;
18272	   esac
18273	   ac_prev=
18274	 elif test "x$ac_word" = "x-arch"; then
18275	   ac_prev=arch
18276	 fi
18277       done
18278fi
18279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280    if test $ac_cv_c_bigendian = unknown; then
18281      # See if sys/param.h defines the BYTE_ORDER macro.
18282      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283/* end confdefs.h.  */
18284#include <sys/types.h>
18285	     #include <sys/param.h>
18286
18287int
18288main ()
18289{
18290#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18291		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18292		     && LITTLE_ENDIAN)
18293	      bogus endian macros
18294	     #endif
18295
18296  ;
18297  return 0;
18298}
18299_ACEOF
18300if ac_fn_c_try_compile "$LINENO"; then :
18301  # It does; now see whether it defined to BIG_ENDIAN or not.
18302	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303/* end confdefs.h.  */
18304#include <sys/types.h>
18305		#include <sys/param.h>
18306
18307int
18308main ()
18309{
18310#if BYTE_ORDER != BIG_ENDIAN
18311		 not big endian
18312		#endif
18313
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_compile "$LINENO"; then :
18319  ac_cv_c_bigendian=yes
18320else
18321  ac_cv_c_bigendian=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324fi
18325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18326    fi
18327    if test $ac_cv_c_bigendian = unknown; then
18328      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18329      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h.  */
18331#include <limits.h>
18332
18333int
18334main ()
18335{
18336#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18337	      bogus endian macros
18338	     #endif
18339
18340  ;
18341  return 0;
18342}
18343_ACEOF
18344if ac_fn_c_try_compile "$LINENO"; then :
18345  # It does; now see whether it defined to _BIG_ENDIAN or not.
18346	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347/* end confdefs.h.  */
18348#include <limits.h>
18349
18350int
18351main ()
18352{
18353#ifndef _BIG_ENDIAN
18354		 not big endian
18355		#endif
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_compile "$LINENO"; then :
18362  ac_cv_c_bigendian=yes
18363else
18364  ac_cv_c_bigendian=no
18365fi
18366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18367fi
18368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18369    fi
18370    if test $ac_cv_c_bigendian = unknown; then
18371      # Compile a test program.
18372      if test "$cross_compiling" = yes; then :
18373  # Try to guess by grepping values from an object file.
18374	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375/* end confdefs.h.  */
18376short int ascii_mm[] =
18377		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18378		short int ascii_ii[] =
18379		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18380		int use_ascii (int i) {
18381		  return ascii_mm[i] + ascii_ii[i];
18382		}
18383		short int ebcdic_ii[] =
18384		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18385		short int ebcdic_mm[] =
18386		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18387		int use_ebcdic (int i) {
18388		  return ebcdic_mm[i] + ebcdic_ii[i];
18389		}
18390		extern int foo;
18391
18392int
18393main ()
18394{
18395return use_ascii (foo) == use_ebcdic (foo);
18396  ;
18397  return 0;
18398}
18399_ACEOF
18400if ac_fn_c_try_compile "$LINENO"; then :
18401  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18402	      ac_cv_c_bigendian=yes
18403	    fi
18404	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18405	      if test "$ac_cv_c_bigendian" = unknown; then
18406		ac_cv_c_bigendian=no
18407	      else
18408		# finding both strings is unlikely to happen, but who knows?
18409		ac_cv_c_bigendian=unknown
18410	      fi
18411	    fi
18412fi
18413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414else
18415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416/* end confdefs.h.  */
18417$ac_includes_default
18418int
18419main ()
18420{
18421
18422	     /* Are we little or big endian?  From Harbison&Steele.  */
18423	     union
18424	     {
18425	       long int l;
18426	       char c[sizeof (long int)];
18427	     } u;
18428	     u.l = 1;
18429	     return u.c[sizeof (long int) - 1] == 1;
18430
18431  ;
18432  return 0;
18433}
18434_ACEOF
18435if ac_fn_c_try_run "$LINENO"; then :
18436  ac_cv_c_bigendian=no
18437else
18438  ac_cv_c_bigendian=yes
18439fi
18440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18441  conftest.$ac_objext conftest.beam conftest.$ac_ext
18442fi
18443
18444    fi
18445fi
18446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18447$as_echo "$ac_cv_c_bigendian" >&6; }
18448 case $ac_cv_c_bigendian in #(
18449   yes)
18450     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18451;; #(
18452   no)
18453      ;; #(
18454   universal)
18455
18456$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18457
18458     ;; #(
18459   *)
18460     as_fn_error $? "unknown endianness
18461 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18462 esac
18463
18464
18465
18466# Check whether --enable-largefile was given.
18467if test "${enable_largefile+set}" = set; then :
18468  enableval=$enable_largefile;
18469fi
18470
18471if test "$enable_largefile" != no; then
18472
18473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18474$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18475if ${ac_cv_sys_largefile_CC+:} false; then :
18476  $as_echo_n "(cached) " >&6
18477else
18478  ac_cv_sys_largefile_CC=no
18479     if test "$GCC" != yes; then
18480       ac_save_CC=$CC
18481       while :; do
18482	 # IRIX 6.2 and later do not support large files by default,
18483	 # so use the C compiler's -n32 option if that helps.
18484	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485/* end confdefs.h.  */
18486#include <sys/types.h>
18487 /* Check that off_t can represent 2**63 - 1 correctly.
18488    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18489    since some C++ compilers masquerading as C compilers
18490    incorrectly reject 9223372036854775807.  */
18491#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18492  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18493		       && LARGE_OFF_T % 2147483647 == 1)
18494		      ? 1 : -1];
18495int
18496main ()
18497{
18498
18499  ;
18500  return 0;
18501}
18502_ACEOF
18503	 if ac_fn_c_try_compile "$LINENO"; then :
18504  break
18505fi
18506rm -f core conftest.err conftest.$ac_objext
18507	 CC="$CC -n32"
18508	 if ac_fn_c_try_compile "$LINENO"; then :
18509  ac_cv_sys_largefile_CC=' -n32'; break
18510fi
18511rm -f core conftest.err conftest.$ac_objext
18512	 break
18513       done
18514       CC=$ac_save_CC
18515       rm -f conftest.$ac_ext
18516    fi
18517fi
18518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18519$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18520  if test "$ac_cv_sys_largefile_CC" != no; then
18521    CC=$CC$ac_cv_sys_largefile_CC
18522  fi
18523
18524  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18525$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18526if ${ac_cv_sys_file_offset_bits+:} false; then :
18527  $as_echo_n "(cached) " >&6
18528else
18529  while :; do
18530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531/* end confdefs.h.  */
18532#include <sys/types.h>
18533 /* Check that off_t can represent 2**63 - 1 correctly.
18534    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18535    since some C++ compilers masquerading as C compilers
18536    incorrectly reject 9223372036854775807.  */
18537#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18538  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18539		       && LARGE_OFF_T % 2147483647 == 1)
18540		      ? 1 : -1];
18541int
18542main ()
18543{
18544
18545  ;
18546  return 0;
18547}
18548_ACEOF
18549if ac_fn_c_try_compile "$LINENO"; then :
18550  ac_cv_sys_file_offset_bits=no; break
18551fi
18552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18554/* end confdefs.h.  */
18555#define _FILE_OFFSET_BITS 64
18556#include <sys/types.h>
18557 /* Check that off_t can represent 2**63 - 1 correctly.
18558    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18559    since some C++ compilers masquerading as C compilers
18560    incorrectly reject 9223372036854775807.  */
18561#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18562  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18563		       && LARGE_OFF_T % 2147483647 == 1)
18564		      ? 1 : -1];
18565int
18566main ()
18567{
18568
18569  ;
18570  return 0;
18571}
18572_ACEOF
18573if ac_fn_c_try_compile "$LINENO"; then :
18574  ac_cv_sys_file_offset_bits=64; break
18575fi
18576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577  ac_cv_sys_file_offset_bits=unknown
18578  break
18579done
18580fi
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18582$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18583case $ac_cv_sys_file_offset_bits in #(
18584  no | unknown) ;;
18585  *)
18586cat >>confdefs.h <<_ACEOF
18587#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18588_ACEOF
18589;;
18590esac
18591rm -rf conftest*
18592  if test $ac_cv_sys_file_offset_bits = unknown; then
18593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18594$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18595if ${ac_cv_sys_large_files+:} false; then :
18596  $as_echo_n "(cached) " >&6
18597else
18598  while :; do
18599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600/* end confdefs.h.  */
18601#include <sys/types.h>
18602 /* Check that off_t can represent 2**63 - 1 correctly.
18603    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18604    since some C++ compilers masquerading as C compilers
18605    incorrectly reject 9223372036854775807.  */
18606#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18607  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18608		       && LARGE_OFF_T % 2147483647 == 1)
18609		      ? 1 : -1];
18610int
18611main ()
18612{
18613
18614  ;
18615  return 0;
18616}
18617_ACEOF
18618if ac_fn_c_try_compile "$LINENO"; then :
18619  ac_cv_sys_large_files=no; break
18620fi
18621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623/* end confdefs.h.  */
18624#define _LARGE_FILES 1
18625#include <sys/types.h>
18626 /* Check that off_t can represent 2**63 - 1 correctly.
18627    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18628    since some C++ compilers masquerading as C compilers
18629    incorrectly reject 9223372036854775807.  */
18630#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18631  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18632		       && LARGE_OFF_T % 2147483647 == 1)
18633		      ? 1 : -1];
18634int
18635main ()
18636{
18637
18638  ;
18639  return 0;
18640}
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"; then :
18643  ac_cv_sys_large_files=1; break
18644fi
18645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18646  ac_cv_sys_large_files=unknown
18647  break
18648done
18649fi
18650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18651$as_echo "$ac_cv_sys_large_files" >&6; }
18652case $ac_cv_sys_large_files in #(
18653  no | unknown) ;;
18654  *)
18655cat >>confdefs.h <<_ACEOF
18656#define _LARGE_FILES $ac_cv_sys_large_files
18657_ACEOF
18658;;
18659esac
18660rm -rf conftest*
18661  fi
18662
18663
18664fi
18665
18666
18667
18668ac_ext=c
18669ac_cpp='$CPP $CPPFLAGS'
18670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672ac_compiler_gnu=$ac_cv_c_compiler_gnu
18673if test -n "$ac_tool_prefix"; then
18674  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18675set dummy ${ac_tool_prefix}gcc; ac_word=$2
18676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18677$as_echo_n "checking for $ac_word... " >&6; }
18678if ${ac_cv_prog_CC+:} false; then :
18679  $as_echo_n "(cached) " >&6
18680else
18681  if test -n "$CC"; then
18682  ac_cv_prog_CC="$CC" # Let the user override the test.
18683else
18684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685for as_dir in $PATH
18686do
18687  IFS=$as_save_IFS
18688  test -z "$as_dir" && as_dir=.
18689    for ac_exec_ext in '' $ac_executable_extensions; do
18690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18693    break 2
18694  fi
18695done
18696  done
18697IFS=$as_save_IFS
18698
18699fi
18700fi
18701CC=$ac_cv_prog_CC
18702if test -n "$CC"; then
18703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18704$as_echo "$CC" >&6; }
18705else
18706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707$as_echo "no" >&6; }
18708fi
18709
18710
18711fi
18712if test -z "$ac_cv_prog_CC"; then
18713  ac_ct_CC=$CC
18714  # Extract the first word of "gcc", so it can be a program name with args.
18715set dummy gcc; ac_word=$2
18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18717$as_echo_n "checking for $ac_word... " >&6; }
18718if ${ac_cv_prog_ac_ct_CC+:} false; then :
18719  $as_echo_n "(cached) " >&6
18720else
18721  if test -n "$ac_ct_CC"; then
18722  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18723else
18724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725for as_dir in $PATH
18726do
18727  IFS=$as_save_IFS
18728  test -z "$as_dir" && as_dir=.
18729    for ac_exec_ext in '' $ac_executable_extensions; do
18730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731    ac_cv_prog_ac_ct_CC="gcc"
18732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18733    break 2
18734  fi
18735done
18736  done
18737IFS=$as_save_IFS
18738
18739fi
18740fi
18741ac_ct_CC=$ac_cv_prog_ac_ct_CC
18742if test -n "$ac_ct_CC"; then
18743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18744$as_echo "$ac_ct_CC" >&6; }
18745else
18746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747$as_echo "no" >&6; }
18748fi
18749
18750  if test "x$ac_ct_CC" = x; then
18751    CC=""
18752  else
18753    case $cross_compiling:$ac_tool_warned in
18754yes:)
18755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18757ac_tool_warned=yes ;;
18758esac
18759    CC=$ac_ct_CC
18760  fi
18761else
18762  CC="$ac_cv_prog_CC"
18763fi
18764
18765if test -z "$CC"; then
18766          if test -n "$ac_tool_prefix"; then
18767    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18768set dummy ${ac_tool_prefix}cc; ac_word=$2
18769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18770$as_echo_n "checking for $ac_word... " >&6; }
18771if ${ac_cv_prog_CC+:} false; then :
18772  $as_echo_n "(cached) " >&6
18773else
18774  if test -n "$CC"; then
18775  ac_cv_prog_CC="$CC" # Let the user override the test.
18776else
18777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18778for as_dir in $PATH
18779do
18780  IFS=$as_save_IFS
18781  test -z "$as_dir" && as_dir=.
18782    for ac_exec_ext in '' $ac_executable_extensions; do
18783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18784    ac_cv_prog_CC="${ac_tool_prefix}cc"
18785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18786    break 2
18787  fi
18788done
18789  done
18790IFS=$as_save_IFS
18791
18792fi
18793fi
18794CC=$ac_cv_prog_CC
18795if test -n "$CC"; then
18796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18797$as_echo "$CC" >&6; }
18798else
18799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18800$as_echo "no" >&6; }
18801fi
18802
18803
18804  fi
18805fi
18806if test -z "$CC"; then
18807  # Extract the first word of "cc", so it can be a program name with args.
18808set dummy cc; ac_word=$2
18809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18810$as_echo_n "checking for $ac_word... " >&6; }
18811if ${ac_cv_prog_CC+:} false; then :
18812  $as_echo_n "(cached) " >&6
18813else
18814  if test -n "$CC"; then
18815  ac_cv_prog_CC="$CC" # Let the user override the test.
18816else
18817  ac_prog_rejected=no
18818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819for as_dir in $PATH
18820do
18821  IFS=$as_save_IFS
18822  test -z "$as_dir" && as_dir=.
18823    for ac_exec_ext in '' $ac_executable_extensions; do
18824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18825    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18826       ac_prog_rejected=yes
18827       continue
18828     fi
18829    ac_cv_prog_CC="cc"
18830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18831    break 2
18832  fi
18833done
18834  done
18835IFS=$as_save_IFS
18836
18837if test $ac_prog_rejected = yes; then
18838  # We found a bogon in the path, so make sure we never use it.
18839  set dummy $ac_cv_prog_CC
18840  shift
18841  if test $# != 0; then
18842    # We chose a different compiler from the bogus one.
18843    # However, it has the same basename, so the bogon will be chosen
18844    # first if we set CC to just the basename; use the full file name.
18845    shift
18846    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18847  fi
18848fi
18849fi
18850fi
18851CC=$ac_cv_prog_CC
18852if test -n "$CC"; then
18853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18854$as_echo "$CC" >&6; }
18855else
18856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857$as_echo "no" >&6; }
18858fi
18859
18860
18861fi
18862if test -z "$CC"; then
18863  if test -n "$ac_tool_prefix"; then
18864  for ac_prog in cl.exe
18865  do
18866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18869$as_echo_n "checking for $ac_word... " >&6; }
18870if ${ac_cv_prog_CC+:} false; then :
18871  $as_echo_n "(cached) " >&6
18872else
18873  if test -n "$CC"; then
18874  ac_cv_prog_CC="$CC" # Let the user override the test.
18875else
18876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877for as_dir in $PATH
18878do
18879  IFS=$as_save_IFS
18880  test -z "$as_dir" && as_dir=.
18881    for ac_exec_ext in '' $ac_executable_extensions; do
18882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885    break 2
18886  fi
18887done
18888  done
18889IFS=$as_save_IFS
18890
18891fi
18892fi
18893CC=$ac_cv_prog_CC
18894if test -n "$CC"; then
18895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18896$as_echo "$CC" >&6; }
18897else
18898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899$as_echo "no" >&6; }
18900fi
18901
18902
18903    test -n "$CC" && break
18904  done
18905fi
18906if test -z "$CC"; then
18907  ac_ct_CC=$CC
18908  for ac_prog in cl.exe
18909do
18910  # Extract the first word of "$ac_prog", so it can be a program name with args.
18911set dummy $ac_prog; ac_word=$2
18912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18913$as_echo_n "checking for $ac_word... " >&6; }
18914if ${ac_cv_prog_ac_ct_CC+:} false; then :
18915  $as_echo_n "(cached) " >&6
18916else
18917  if test -n "$ac_ct_CC"; then
18918  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18919else
18920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18921for as_dir in $PATH
18922do
18923  IFS=$as_save_IFS
18924  test -z "$as_dir" && as_dir=.
18925    for ac_exec_ext in '' $ac_executable_extensions; do
18926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18927    ac_cv_prog_ac_ct_CC="$ac_prog"
18928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18929    break 2
18930  fi
18931done
18932  done
18933IFS=$as_save_IFS
18934
18935fi
18936fi
18937ac_ct_CC=$ac_cv_prog_ac_ct_CC
18938if test -n "$ac_ct_CC"; then
18939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18940$as_echo "$ac_ct_CC" >&6; }
18941else
18942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943$as_echo "no" >&6; }
18944fi
18945
18946
18947  test -n "$ac_ct_CC" && break
18948done
18949
18950  if test "x$ac_ct_CC" = x; then
18951    CC=""
18952  else
18953    case $cross_compiling:$ac_tool_warned in
18954yes:)
18955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18957ac_tool_warned=yes ;;
18958esac
18959    CC=$ac_ct_CC
18960  fi
18961fi
18962
18963fi
18964
18965
18966test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18968as_fn_error $? "no acceptable C compiler found in \$PATH
18969See \`config.log' for more details" "$LINENO" 5; }
18970
18971# Provide some information about the compiler.
18972$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18973set X $ac_compile
18974ac_compiler=$2
18975for ac_option in --version -v -V -qversion; do
18976  { { ac_try="$ac_compiler $ac_option >&5"
18977case "(($ac_try" in
18978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979  *) ac_try_echo=$ac_try;;
18980esac
18981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18982$as_echo "$ac_try_echo"; } >&5
18983  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18984  ac_status=$?
18985  if test -s conftest.err; then
18986    sed '10a\
18987... rest of stderr output deleted ...
18988         10q' conftest.err >conftest.er1
18989    cat conftest.er1 >&5
18990  fi
18991  rm -f conftest.er1 conftest.err
18992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18993  test $ac_status = 0; }
18994done
18995
18996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18997$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18998if ${ac_cv_c_compiler_gnu+:} false; then :
18999  $as_echo_n "(cached) " >&6
19000else
19001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002/* end confdefs.h.  */
19003
19004int
19005main ()
19006{
19007#ifndef __GNUC__
19008       choke me
19009#endif
19010
19011  ;
19012  return 0;
19013}
19014_ACEOF
19015if ac_fn_c_try_compile "$LINENO"; then :
19016  ac_compiler_gnu=yes
19017else
19018  ac_compiler_gnu=no
19019fi
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021ac_cv_c_compiler_gnu=$ac_compiler_gnu
19022
19023fi
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19025$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19026if test $ac_compiler_gnu = yes; then
19027  GCC=yes
19028else
19029  GCC=
19030fi
19031ac_test_CFLAGS=${CFLAGS+set}
19032ac_save_CFLAGS=$CFLAGS
19033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19034$as_echo_n "checking whether $CC accepts -g... " >&6; }
19035if ${ac_cv_prog_cc_g+:} false; then :
19036  $as_echo_n "(cached) " >&6
19037else
19038  ac_save_c_werror_flag=$ac_c_werror_flag
19039   ac_c_werror_flag=yes
19040   ac_cv_prog_cc_g=no
19041   CFLAGS="-g"
19042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043/* end confdefs.h.  */
19044
19045int
19046main ()
19047{
19048
19049  ;
19050  return 0;
19051}
19052_ACEOF
19053if ac_fn_c_try_compile "$LINENO"; then :
19054  ac_cv_prog_cc_g=yes
19055else
19056  CFLAGS=""
19057      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058/* end confdefs.h.  */
19059
19060int
19061main ()
19062{
19063
19064  ;
19065  return 0;
19066}
19067_ACEOF
19068if ac_fn_c_try_compile "$LINENO"; then :
19069
19070else
19071  ac_c_werror_flag=$ac_save_c_werror_flag
19072	 CFLAGS="-g"
19073	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074/* end confdefs.h.  */
19075
19076int
19077main ()
19078{
19079
19080  ;
19081  return 0;
19082}
19083_ACEOF
19084if ac_fn_c_try_compile "$LINENO"; then :
19085  ac_cv_prog_cc_g=yes
19086fi
19087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088fi
19089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090fi
19091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092   ac_c_werror_flag=$ac_save_c_werror_flag
19093fi
19094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19095$as_echo "$ac_cv_prog_cc_g" >&6; }
19096if test "$ac_test_CFLAGS" = set; then
19097  CFLAGS=$ac_save_CFLAGS
19098elif test $ac_cv_prog_cc_g = yes; then
19099  if test "$GCC" = yes; then
19100    CFLAGS="-g -O2"
19101  else
19102    CFLAGS="-g"
19103  fi
19104else
19105  if test "$GCC" = yes; then
19106    CFLAGS="-O2"
19107  else
19108    CFLAGS=
19109  fi
19110fi
19111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19112$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19113if ${ac_cv_prog_cc_c89+:} false; then :
19114  $as_echo_n "(cached) " >&6
19115else
19116  ac_cv_prog_cc_c89=no
19117ac_save_CC=$CC
19118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119/* end confdefs.h.  */
19120#include <stdarg.h>
19121#include <stdio.h>
19122struct stat;
19123/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19124struct buf { int x; };
19125FILE * (*rcsopen) (struct buf *, struct stat *, int);
19126static char *e (p, i)
19127     char **p;
19128     int i;
19129{
19130  return p[i];
19131}
19132static char *f (char * (*g) (char **, int), char **p, ...)
19133{
19134  char *s;
19135  va_list v;
19136  va_start (v,p);
19137  s = g (p, va_arg (v,int));
19138  va_end (v);
19139  return s;
19140}
19141
19142/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19143   function prototypes and stuff, but not '\xHH' hex character constants.
19144   These don't provoke an error unfortunately, instead are silently treated
19145   as 'x'.  The following induces an error, until -std is added to get
19146   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19147   array size at least.  It's necessary to write '\x00'==0 to get something
19148   that's true only with -std.  */
19149int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19150
19151/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19152   inside strings and character constants.  */
19153#define FOO(x) 'x'
19154int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19155
19156int test (int i, double x);
19157struct s1 {int (*f) (int a);};
19158struct s2 {int (*f) (double a);};
19159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19160int argc;
19161char **argv;
19162int
19163main ()
19164{
19165return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19166  ;
19167  return 0;
19168}
19169_ACEOF
19170for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19171	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19172do
19173  CC="$ac_save_CC $ac_arg"
19174  if ac_fn_c_try_compile "$LINENO"; then :
19175  ac_cv_prog_cc_c89=$ac_arg
19176fi
19177rm -f core conftest.err conftest.$ac_objext
19178  test "x$ac_cv_prog_cc_c89" != "xno" && break
19179done
19180rm -f conftest.$ac_ext
19181CC=$ac_save_CC
19182
19183fi
19184# AC_CACHE_VAL
19185case "x$ac_cv_prog_cc_c89" in
19186  x)
19187    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19188$as_echo "none needed" >&6; } ;;
19189  xno)
19190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19191$as_echo "unsupported" >&6; } ;;
19192  *)
19193    CC="$CC $ac_cv_prog_cc_c89"
19194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19195$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19196esac
19197if test "x$ac_cv_prog_cc_c89" != xno; then :
19198
19199fi
19200
19201ac_ext=c
19202ac_cpp='$CPP $CPPFLAGS'
19203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19205ac_compiler_gnu=$ac_cv_c_compiler_gnu
19206
19207ac_ext=c
19208ac_cpp='$CPP $CPPFLAGS'
19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211ac_compiler_gnu=$ac_cv_c_compiler_gnu
19212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
19213$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
19214if ${am_cv_prog_cc_c_o+:} false; then :
19215  $as_echo_n "(cached) " >&6
19216else
19217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218/* end confdefs.h.  */
19219
19220int
19221main ()
19222{
19223
19224  ;
19225  return 0;
19226}
19227_ACEOF
19228  # Make sure it works both with $CC and with simple cc.
19229  # Following AC_PROG_CC_C_O, we do the test twice because some
19230  # compilers refuse to overwrite an existing .o file with -o,
19231  # though they will create one.
19232  am_cv_prog_cc_c_o=yes
19233  for am_i in 1 2; do
19234    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
19235   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } \
19239         && test -f conftest2.$ac_objext; then
19240      : OK
19241    else
19242      am_cv_prog_cc_c_o=no
19243      break
19244    fi
19245  done
19246  rm -f core conftest*
19247  unset am_i
19248fi
19249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
19250$as_echo "$am_cv_prog_cc_c_o" >&6; }
19251if test "$am_cv_prog_cc_c_o" != yes; then
19252   # Losing compiler, so override with the script.
19253   # FIXME: It is wrong to rewrite CC.
19254   # But if we don't then we get into trouble of one sort or another.
19255   # A longer-term fix would be to have automake use am__CC in this case,
19256   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19257   CC="$am_aux_dir/compile $CC"
19258fi
19259ac_ext=c
19260ac_cpp='$CPP $CPPFLAGS'
19261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19263ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264
19265
19266depcc="$CC"   am_compiler_list=
19267
19268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19269$as_echo_n "checking dependency style of $depcc... " >&6; }
19270if ${am_cv_CC_dependencies_compiler_type+:} false; then :
19271  $as_echo_n "(cached) " >&6
19272else
19273  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19274  # We make a subdir and do the tests there.  Otherwise we can end up
19275  # making bogus files that we don't know about and never remove.  For
19276  # instance it was reported that on HP-UX the gcc test will end up
19277  # making a dummy file named 'D' -- because '-MD' means "put the output
19278  # in D".
19279  rm -rf conftest.dir
19280  mkdir conftest.dir
19281  # Copy depcomp to subdir because otherwise we won't find it if we're
19282  # using a relative directory.
19283  cp "$am_depcomp" conftest.dir
19284  cd conftest.dir
19285  # We will build objects and dependencies in a subdirectory because
19286  # it helps to detect inapplicable dependency modes.  For instance
19287  # both Tru64's cc and ICC support -MD to output dependencies as a
19288  # side effect of compilation, but ICC will put the dependencies in
19289  # the current directory while Tru64 will put them in the object
19290  # directory.
19291  mkdir sub
19292
19293  am_cv_CC_dependencies_compiler_type=none
19294  if test "$am_compiler_list" = ""; then
19295     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19296  fi
19297  am__universal=false
19298  case " $depcc " in #(
19299     *\ -arch\ *\ -arch\ *) am__universal=true ;;
19300     esac
19301
19302  for depmode in $am_compiler_list; do
19303    # Setup a source with many dependencies, because some compilers
19304    # like to wrap large dependency lists on column 80 (with \), and
19305    # we should not choose a depcomp mode which is confused by this.
19306    #
19307    # We need to recreate these files for each test, as the compiler may
19308    # overwrite some of them when testing with obscure command lines.
19309    # This happens at least with the AIX C compiler.
19310    : > sub/conftest.c
19311    for i in 1 2 3 4 5 6; do
19312      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19313      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19314      # Solaris 10 /bin/sh.
19315      echo '/* dummy */' > sub/conftst$i.h
19316    done
19317    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19318
19319    # We check with '-c' and '-o' for the sake of the "dashmstdout"
19320    # mode.  It turns out that the SunPro C++ compiler does not properly
19321    # handle '-M -o', and we need to detect this.  Also, some Intel
19322    # versions had trouble with output in subdirs.
19323    am__obj=sub/conftest.${OBJEXT-o}
19324    am__minus_obj="-o $am__obj"
19325    case $depmode in
19326    gcc)
19327      # This depmode causes a compiler race in universal mode.
19328      test "$am__universal" = false || continue
19329      ;;
19330    nosideeffect)
19331      # After this tag, mechanisms are not by side-effect, so they'll
19332      # only be used when explicitly requested.
19333      if test "x$enable_dependency_tracking" = xyes; then
19334	continue
19335      else
19336	break
19337      fi
19338      ;;
19339    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
19340      # This compiler won't grok '-c -o', but also, the minuso test has
19341      # not run yet.  These depmodes are late enough in the game, and
19342      # so weak that their functioning should not be impacted.
19343      am__obj=conftest.${OBJEXT-o}
19344      am__minus_obj=
19345      ;;
19346    none) break ;;
19347    esac
19348    if depmode=$depmode \
19349       source=sub/conftest.c object=$am__obj \
19350       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19351       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19352         >/dev/null 2>conftest.err &&
19353       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19354       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19355       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19356       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19357      # icc doesn't choke on unknown options, it will just issue warnings
19358      # or remarks (even with -Werror).  So we grep stderr for any message
19359      # that says an option was ignored or not supported.
19360      # When given -MP, icc 7.0 and 7.1 complain thusly:
19361      #   icc: Command line warning: ignoring option '-M'; no argument required
19362      # The diagnosis changed in icc 8.0:
19363      #   icc: Command line remark: option '-MP' not supported
19364      if (grep 'ignoring option' conftest.err ||
19365          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19366        am_cv_CC_dependencies_compiler_type=$depmode
19367        break
19368      fi
19369    fi
19370  done
19371
19372  cd ..
19373  rm -rf conftest.dir
19374else
19375  am_cv_CC_dependencies_compiler_type=none
19376fi
19377
19378fi
19379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19380$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19381CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19382
19383 if
19384  test "x$enable_dependency_tracking" != xno \
19385  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19386  am__fastdepCC_TRUE=
19387  am__fastdepCC_FALSE='#'
19388else
19389  am__fastdepCC_TRUE='#'
19390  am__fastdepCC_FALSE=
19391fi
19392
19393
19394   case $ac_cv_prog_cc_stdc in #(
19395  no) :
19396    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
19397  *) :
19398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
19399$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
19400if ${ac_cv_prog_cc_c99+:} false; then :
19401  $as_echo_n "(cached) " >&6
19402else
19403  ac_cv_prog_cc_c99=no
19404ac_save_CC=$CC
19405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406/* end confdefs.h.  */
19407#include <stdarg.h>
19408#include <stdbool.h>
19409#include <stdlib.h>
19410#include <wchar.h>
19411#include <stdio.h>
19412
19413// Check varargs macros.  These examples are taken from C99 6.10.3.5.
19414#define debug(...) fprintf (stderr, __VA_ARGS__)
19415#define showlist(...) puts (#__VA_ARGS__)
19416#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
19417static void
19418test_varargs_macros (void)
19419{
19420  int x = 1234;
19421  int y = 5678;
19422  debug ("Flag");
19423  debug ("X = %d\n", x);
19424  showlist (The first, second, and third items.);
19425  report (x>y, "x is %d but y is %d", x, y);
19426}
19427
19428// Check long long types.
19429#define BIG64 18446744073709551615ull
19430#define BIG32 4294967295ul
19431#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
19432#if !BIG_OK
19433  your preprocessor is broken;
19434#endif
19435#if BIG_OK
19436#else
19437  your preprocessor is broken;
19438#endif
19439static long long int bignum = -9223372036854775807LL;
19440static unsigned long long int ubignum = BIG64;
19441
19442struct incomplete_array
19443{
19444  int datasize;
19445  double data[];
19446};
19447
19448struct named_init {
19449  int number;
19450  const wchar_t *name;
19451  double average;
19452};
19453
19454typedef const char *ccp;
19455
19456static inline int
19457test_restrict (ccp restrict text)
19458{
19459  // See if C++-style comments work.
19460  // Iterate through items via the restricted pointer.
19461  // Also check for declarations in for loops.
19462  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
19463    continue;
19464  return 0;
19465}
19466
19467// Check varargs and va_copy.
19468static void
19469test_varargs (const char *format, ...)
19470{
19471  va_list args;
19472  va_start (args, format);
19473  va_list args_copy;
19474  va_copy (args_copy, args);
19475
19476  const char *str;
19477  int number;
19478  float fnumber;
19479
19480  while (*format)
19481    {
19482      switch (*format++)
19483	{
19484	case 's': // string
19485	  str = va_arg (args_copy, const char *);
19486	  break;
19487	case 'd': // int
19488	  number = va_arg (args_copy, int);
19489	  break;
19490	case 'f': // float
19491	  fnumber = va_arg (args_copy, double);
19492	  break;
19493	default:
19494	  break;
19495	}
19496    }
19497  va_end (args_copy);
19498  va_end (args);
19499}
19500
19501int
19502main ()
19503{
19504
19505  // Check bool.
19506  _Bool success = false;
19507
19508  // Check restrict.
19509  if (test_restrict ("String literal") == 0)
19510    success = true;
19511  char *restrict newvar = "Another string";
19512
19513  // Check varargs.
19514  test_varargs ("s, d' f .", "string", 65, 34.234);
19515  test_varargs_macros ();
19516
19517  // Check flexible array members.
19518  struct incomplete_array *ia =
19519    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
19520  ia->datasize = 10;
19521  for (int i = 0; i < ia->datasize; ++i)
19522    ia->data[i] = i * 1.234;
19523
19524  // Check named initializers.
19525  struct named_init ni = {
19526    .number = 34,
19527    .name = L"Test wide string",
19528    .average = 543.34343,
19529  };
19530
19531  ni.number = 58;
19532
19533  int dynamic_array[ni.number];
19534  dynamic_array[ni.number - 1] = 543;
19535
19536  // work around unused variable warnings
19537  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
19538	  || dynamic_array[ni.number - 1] != 543);
19539
19540  ;
19541  return 0;
19542}
19543_ACEOF
19544for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
19545do
19546  CC="$ac_save_CC $ac_arg"
19547  if ac_fn_c_try_compile "$LINENO"; then :
19548  ac_cv_prog_cc_c99=$ac_arg
19549fi
19550rm -f core conftest.err conftest.$ac_objext
19551  test "x$ac_cv_prog_cc_c99" != "xno" && break
19552done
19553rm -f conftest.$ac_ext
19554CC=$ac_save_CC
19555
19556fi
19557# AC_CACHE_VAL
19558case "x$ac_cv_prog_cc_c99" in
19559  x)
19560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19561$as_echo "none needed" >&6; } ;;
19562  xno)
19563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19564$as_echo "unsupported" >&6; } ;;
19565  *)
19566    CC="$CC $ac_cv_prog_cc_c99"
19567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19568$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
19569esac
19570if test "x$ac_cv_prog_cc_c99" != xno; then :
19571  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19572else
19573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19574$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19575if ${ac_cv_prog_cc_c89+:} false; then :
19576  $as_echo_n "(cached) " >&6
19577else
19578  ac_cv_prog_cc_c89=no
19579ac_save_CC=$CC
19580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581/* end confdefs.h.  */
19582#include <stdarg.h>
19583#include <stdio.h>
19584struct stat;
19585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19586struct buf { int x; };
19587FILE * (*rcsopen) (struct buf *, struct stat *, int);
19588static char *e (p, i)
19589     char **p;
19590     int i;
19591{
19592  return p[i];
19593}
19594static char *f (char * (*g) (char **, int), char **p, ...)
19595{
19596  char *s;
19597  va_list v;
19598  va_start (v,p);
19599  s = g (p, va_arg (v,int));
19600  va_end (v);
19601  return s;
19602}
19603
19604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19605   function prototypes and stuff, but not '\xHH' hex character constants.
19606   These don't provoke an error unfortunately, instead are silently treated
19607   as 'x'.  The following induces an error, until -std is added to get
19608   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19609   array size at least.  It's necessary to write '\x00'==0 to get something
19610   that's true only with -std.  */
19611int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19612
19613/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19614   inside strings and character constants.  */
19615#define FOO(x) 'x'
19616int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19617
19618int test (int i, double x);
19619struct s1 {int (*f) (int a);};
19620struct s2 {int (*f) (double a);};
19621int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19622int argc;
19623char **argv;
19624int
19625main ()
19626{
19627return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19628  ;
19629  return 0;
19630}
19631_ACEOF
19632for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19633	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19634do
19635  CC="$ac_save_CC $ac_arg"
19636  if ac_fn_c_try_compile "$LINENO"; then :
19637  ac_cv_prog_cc_c89=$ac_arg
19638fi
19639rm -f core conftest.err conftest.$ac_objext
19640  test "x$ac_cv_prog_cc_c89" != "xno" && break
19641done
19642rm -f conftest.$ac_ext
19643CC=$ac_save_CC
19644
19645fi
19646# AC_CACHE_VAL
19647case "x$ac_cv_prog_cc_c89" in
19648  x)
19649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19650$as_echo "none needed" >&6; } ;;
19651  xno)
19652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19653$as_echo "unsupported" >&6; } ;;
19654  *)
19655    CC="$CC $ac_cv_prog_cc_c89"
19656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19657$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
19658esac
19659if test "x$ac_cv_prog_cc_c89" != xno; then :
19660  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19661else
19662  ac_cv_prog_cc_stdc=no
19663fi
19664
19665fi
19666 ;;
19667esac
19668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
19669$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
19670  if ${ac_cv_prog_cc_stdc+:} false; then :
19671  $as_echo_n "(cached) " >&6
19672fi
19673
19674  case $ac_cv_prog_cc_stdc in #(
19675  no) :
19676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19677$as_echo "unsupported" >&6; } ;; #(
19678  '') :
19679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19680$as_echo "none needed" >&6; } ;; #(
19681  *) :
19682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
19683$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
19684esac
19685
19686
19687ac_ext=cpp
19688ac_cpp='$CXXCPP $CPPFLAGS'
19689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692if test -z "$CXX"; then
19693  if test -n "$CCC"; then
19694    CXX=$CCC
19695  else
19696    if test -n "$ac_tool_prefix"; then
19697  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19698  do
19699    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19700set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19702$as_echo_n "checking for $ac_word... " >&6; }
19703if ${ac_cv_prog_CXX+:} false; then :
19704  $as_echo_n "(cached) " >&6
19705else
19706  if test -n "$CXX"; then
19707  ac_cv_prog_CXX="$CXX" # Let the user override the test.
19708else
19709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19710for as_dir in $PATH
19711do
19712  IFS=$as_save_IFS
19713  test -z "$as_dir" && as_dir=.
19714    for ac_exec_ext in '' $ac_executable_extensions; do
19715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19716    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19718    break 2
19719  fi
19720done
19721  done
19722IFS=$as_save_IFS
19723
19724fi
19725fi
19726CXX=$ac_cv_prog_CXX
19727if test -n "$CXX"; then
19728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
19729$as_echo "$CXX" >&6; }
19730else
19731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19732$as_echo "no" >&6; }
19733fi
19734
19735
19736    test -n "$CXX" && break
19737  done
19738fi
19739if test -z "$CXX"; then
19740  ac_ct_CXX=$CXX
19741  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19742do
19743  # Extract the first word of "$ac_prog", so it can be a program name with args.
19744set dummy $ac_prog; ac_word=$2
19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19746$as_echo_n "checking for $ac_word... " >&6; }
19747if ${ac_cv_prog_ac_ct_CXX+:} false; then :
19748  $as_echo_n "(cached) " >&6
19749else
19750  if test -n "$ac_ct_CXX"; then
19751  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19752else
19753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19754for as_dir in $PATH
19755do
19756  IFS=$as_save_IFS
19757  test -z "$as_dir" && as_dir=.
19758    for ac_exec_ext in '' $ac_executable_extensions; do
19759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19760    ac_cv_prog_ac_ct_CXX="$ac_prog"
19761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19762    break 2
19763  fi
19764done
19765  done
19766IFS=$as_save_IFS
19767
19768fi
19769fi
19770ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19771if test -n "$ac_ct_CXX"; then
19772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
19773$as_echo "$ac_ct_CXX" >&6; }
19774else
19775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19776$as_echo "no" >&6; }
19777fi
19778
19779
19780  test -n "$ac_ct_CXX" && break
19781done
19782
19783  if test "x$ac_ct_CXX" = x; then
19784    CXX="g++"
19785  else
19786    case $cross_compiling:$ac_tool_warned in
19787yes:)
19788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19790ac_tool_warned=yes ;;
19791esac
19792    CXX=$ac_ct_CXX
19793  fi
19794fi
19795
19796  fi
19797fi
19798# Provide some information about the compiler.
19799$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
19800set X $ac_compile
19801ac_compiler=$2
19802for ac_option in --version -v -V -qversion; do
19803  { { ac_try="$ac_compiler $ac_option >&5"
19804case "(($ac_try" in
19805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806  *) ac_try_echo=$ac_try;;
19807esac
19808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19809$as_echo "$ac_try_echo"; } >&5
19810  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19811  ac_status=$?
19812  if test -s conftest.err; then
19813    sed '10a\
19814... rest of stderr output deleted ...
19815         10q' conftest.err >conftest.er1
19816    cat conftest.er1 >&5
19817  fi
19818  rm -f conftest.er1 conftest.err
19819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19820  test $ac_status = 0; }
19821done
19822
19823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
19824$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
19825if ${ac_cv_cxx_compiler_gnu+:} false; then :
19826  $as_echo_n "(cached) " >&6
19827else
19828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829/* end confdefs.h.  */
19830
19831int
19832main ()
19833{
19834#ifndef __GNUC__
19835       choke me
19836#endif
19837
19838  ;
19839  return 0;
19840}
19841_ACEOF
19842if ac_fn_cxx_try_compile "$LINENO"; then :
19843  ac_compiler_gnu=yes
19844else
19845  ac_compiler_gnu=no
19846fi
19847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19849
19850fi
19851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
19852$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
19853if test $ac_compiler_gnu = yes; then
19854  GXX=yes
19855else
19856  GXX=
19857fi
19858ac_test_CXXFLAGS=${CXXFLAGS+set}
19859ac_save_CXXFLAGS=$CXXFLAGS
19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
19861$as_echo_n "checking whether $CXX accepts -g... " >&6; }
19862if ${ac_cv_prog_cxx_g+:} false; then :
19863  $as_echo_n "(cached) " >&6
19864else
19865  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19866   ac_cxx_werror_flag=yes
19867   ac_cv_prog_cxx_g=no
19868   CXXFLAGS="-g"
19869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h.  */
19871
19872int
19873main ()
19874{
19875
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_cxx_try_compile "$LINENO"; then :
19881  ac_cv_prog_cxx_g=yes
19882else
19883  CXXFLAGS=""
19884      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885/* end confdefs.h.  */
19886
19887int
19888main ()
19889{
19890
19891  ;
19892  return 0;
19893}
19894_ACEOF
19895if ac_fn_cxx_try_compile "$LINENO"; then :
19896
19897else
19898  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19899	 CXXFLAGS="-g"
19900	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901/* end confdefs.h.  */
19902
19903int
19904main ()
19905{
19906
19907  ;
19908  return 0;
19909}
19910_ACEOF
19911if ac_fn_cxx_try_compile "$LINENO"; then :
19912  ac_cv_prog_cxx_g=yes
19913fi
19914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915fi
19916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917fi
19918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19919   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19920fi
19921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
19922$as_echo "$ac_cv_prog_cxx_g" >&6; }
19923if test "$ac_test_CXXFLAGS" = set; then
19924  CXXFLAGS=$ac_save_CXXFLAGS
19925elif test $ac_cv_prog_cxx_g = yes; then
19926  if test "$GXX" = yes; then
19927    CXXFLAGS="-g -O2"
19928  else
19929    CXXFLAGS="-g"
19930  fi
19931else
19932  if test "$GXX" = yes; then
19933    CXXFLAGS="-O2"
19934  else
19935    CXXFLAGS=
19936  fi
19937fi
19938ac_ext=c
19939ac_cpp='$CPP $CPPFLAGS'
19940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942ac_compiler_gnu=$ac_cv_c_compiler_gnu
19943
19944depcc="$CXX"  am_compiler_list=
19945
19946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19947$as_echo_n "checking dependency style of $depcc... " >&6; }
19948if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
19949  $as_echo_n "(cached) " >&6
19950else
19951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19952  # We make a subdir and do the tests there.  Otherwise we can end up
19953  # making bogus files that we don't know about and never remove.  For
19954  # instance it was reported that on HP-UX the gcc test will end up
19955  # making a dummy file named 'D' -- because '-MD' means "put the output
19956  # in D".
19957  rm -rf conftest.dir
19958  mkdir conftest.dir
19959  # Copy depcomp to subdir because otherwise we won't find it if we're
19960  # using a relative directory.
19961  cp "$am_depcomp" conftest.dir
19962  cd conftest.dir
19963  # We will build objects and dependencies in a subdirectory because
19964  # it helps to detect inapplicable dependency modes.  For instance
19965  # both Tru64's cc and ICC support -MD to output dependencies as a
19966  # side effect of compilation, but ICC will put the dependencies in
19967  # the current directory while Tru64 will put them in the object
19968  # directory.
19969  mkdir sub
19970
19971  am_cv_CXX_dependencies_compiler_type=none
19972  if test "$am_compiler_list" = ""; then
19973     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19974  fi
19975  am__universal=false
19976  case " $depcc " in #(
19977     *\ -arch\ *\ -arch\ *) am__universal=true ;;
19978     esac
19979
19980  for depmode in $am_compiler_list; do
19981    # Setup a source with many dependencies, because some compilers
19982    # like to wrap large dependency lists on column 80 (with \), and
19983    # we should not choose a depcomp mode which is confused by this.
19984    #
19985    # We need to recreate these files for each test, as the compiler may
19986    # overwrite some of them when testing with obscure command lines.
19987    # This happens at least with the AIX C compiler.
19988    : > sub/conftest.c
19989    for i in 1 2 3 4 5 6; do
19990      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19991      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
19992      # Solaris 10 /bin/sh.
19993      echo '/* dummy */' > sub/conftst$i.h
19994    done
19995    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19996
19997    # We check with '-c' and '-o' for the sake of the "dashmstdout"
19998    # mode.  It turns out that the SunPro C++ compiler does not properly
19999    # handle '-M -o', and we need to detect this.  Also, some Intel
20000    # versions had trouble with output in subdirs.
20001    am__obj=sub/conftest.${OBJEXT-o}
20002    am__minus_obj="-o $am__obj"
20003    case $depmode in
20004    gcc)
20005      # This depmode causes a compiler race in universal mode.
20006      test "$am__universal" = false || continue
20007      ;;
20008    nosideeffect)
20009      # After this tag, mechanisms are not by side-effect, so they'll
20010      # only be used when explicitly requested.
20011      if test "x$enable_dependency_tracking" = xyes; then
20012	continue
20013      else
20014	break
20015      fi
20016      ;;
20017    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
20018      # This compiler won't grok '-c -o', but also, the minuso test has
20019      # not run yet.  These depmodes are late enough in the game, and
20020      # so weak that their functioning should not be impacted.
20021      am__obj=conftest.${OBJEXT-o}
20022      am__minus_obj=
20023      ;;
20024    none) break ;;
20025    esac
20026    if depmode=$depmode \
20027       source=sub/conftest.c object=$am__obj \
20028       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20029       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20030         >/dev/null 2>conftest.err &&
20031       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20032       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20033       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20034       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20035      # icc doesn't choke on unknown options, it will just issue warnings
20036      # or remarks (even with -Werror).  So we grep stderr for any message
20037      # that says an option was ignored or not supported.
20038      # When given -MP, icc 7.0 and 7.1 complain thusly:
20039      #   icc: Command line warning: ignoring option '-M'; no argument required
20040      # The diagnosis changed in icc 8.0:
20041      #   icc: Command line remark: option '-MP' not supported
20042      if (grep 'ignoring option' conftest.err ||
20043          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20044        am_cv_CXX_dependencies_compiler_type=$depmode
20045        break
20046      fi
20047    fi
20048  done
20049
20050  cd ..
20051  rm -rf conftest.dir
20052else
20053  am_cv_CXX_dependencies_compiler_type=none
20054fi
20055
20056fi
20057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
20058$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
20059CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20060
20061 if
20062  test "x$enable_dependency_tracking" != xno \
20063  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20064  am__fastdepCXX_TRUE=
20065  am__fastdepCXX_FALSE='#'
20066else
20067  am__fastdepCXX_TRUE='#'
20068  am__fastdepCXX_FALSE=
20069fi
20070
20071
20072
20073
20074func_stripname_cnf ()
20075{
20076  case $2 in
20077  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
20078  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
20079  esac
20080} # func_stripname_cnf
20081
20082      if test -n "$CXX" && ( test no != "$CXX" &&
20083    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
20084    (test g++ != "$CXX"))); then
20085  ac_ext=cpp
20086ac_cpp='$CXXCPP $CPPFLAGS'
20087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20091$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20092if test -z "$CXXCPP"; then
20093  if ${ac_cv_prog_CXXCPP+:} false; then :
20094  $as_echo_n "(cached) " >&6
20095else
20096      # Double quotes because CXXCPP needs to be expanded
20097    for CXXCPP in "$CXX -E" "/lib/cpp"
20098    do
20099      ac_preproc_ok=false
20100for ac_cxx_preproc_warn_flag in '' yes
20101do
20102  # Use a header file that comes with gcc, so configuring glibc
20103  # with a fresh cross-compiler works.
20104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20105  # <limits.h> exists even on freestanding compilers.
20106  # On the NeXT, cc -E runs the code through the compiler's parser,
20107  # not just through cpp. "Syntax error" is here to catch this case.
20108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109/* end confdefs.h.  */
20110#ifdef __STDC__
20111# include <limits.h>
20112#else
20113# include <assert.h>
20114#endif
20115		     Syntax error
20116_ACEOF
20117if ac_fn_cxx_try_cpp "$LINENO"; then :
20118
20119else
20120  # Broken: fails on valid input.
20121continue
20122fi
20123rm -f conftest.err conftest.i conftest.$ac_ext
20124
20125  # OK, works on sane cases.  Now check whether nonexistent headers
20126  # can be detected and how.
20127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128/* end confdefs.h.  */
20129#include <ac_nonexistent.h>
20130_ACEOF
20131if ac_fn_cxx_try_cpp "$LINENO"; then :
20132  # Broken: success on invalid input.
20133continue
20134else
20135  # Passes both tests.
20136ac_preproc_ok=:
20137break
20138fi
20139rm -f conftest.err conftest.i conftest.$ac_ext
20140
20141done
20142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20143rm -f conftest.i conftest.err conftest.$ac_ext
20144if $ac_preproc_ok; then :
20145  break
20146fi
20147
20148    done
20149    ac_cv_prog_CXXCPP=$CXXCPP
20150
20151fi
20152  CXXCPP=$ac_cv_prog_CXXCPP
20153else
20154  ac_cv_prog_CXXCPP=$CXXCPP
20155fi
20156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20157$as_echo "$CXXCPP" >&6; }
20158ac_preproc_ok=false
20159for ac_cxx_preproc_warn_flag in '' yes
20160do
20161  # Use a header file that comes with gcc, so configuring glibc
20162  # with a fresh cross-compiler works.
20163  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20164  # <limits.h> exists even on freestanding compilers.
20165  # On the NeXT, cc -E runs the code through the compiler's parser,
20166  # not just through cpp. "Syntax error" is here to catch this case.
20167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168/* end confdefs.h.  */
20169#ifdef __STDC__
20170# include <limits.h>
20171#else
20172# include <assert.h>
20173#endif
20174		     Syntax error
20175_ACEOF
20176if ac_fn_cxx_try_cpp "$LINENO"; then :
20177
20178else
20179  # Broken: fails on valid input.
20180continue
20181fi
20182rm -f conftest.err conftest.i conftest.$ac_ext
20183
20184  # OK, works on sane cases.  Now check whether nonexistent headers
20185  # can be detected and how.
20186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20187/* end confdefs.h.  */
20188#include <ac_nonexistent.h>
20189_ACEOF
20190if ac_fn_cxx_try_cpp "$LINENO"; then :
20191  # Broken: success on invalid input.
20192continue
20193else
20194  # Passes both tests.
20195ac_preproc_ok=:
20196break
20197fi
20198rm -f conftest.err conftest.i conftest.$ac_ext
20199
20200done
20201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20202rm -f conftest.i conftest.err conftest.$ac_ext
20203if $ac_preproc_ok; then :
20204
20205else
20206  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20208as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20209See \`config.log' for more details" "$LINENO" 5; }
20210fi
20211
20212ac_ext=c
20213ac_cpp='$CPP $CPPFLAGS'
20214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20216ac_compiler_gnu=$ac_cv_c_compiler_gnu
20217
20218else
20219  _lt_caught_CXX_error=yes
20220fi
20221
20222ac_ext=cpp
20223ac_cpp='$CXXCPP $CPPFLAGS'
20224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20227
20228archive_cmds_need_lc_CXX=no
20229allow_undefined_flag_CXX=
20230always_export_symbols_CXX=no
20231archive_expsym_cmds_CXX=
20232compiler_needs_object_CXX=no
20233export_dynamic_flag_spec_CXX=
20234hardcode_direct_CXX=no
20235hardcode_direct_absolute_CXX=no
20236hardcode_libdir_flag_spec_CXX=
20237hardcode_libdir_separator_CXX=
20238hardcode_minus_L_CXX=no
20239hardcode_shlibpath_var_CXX=unsupported
20240hardcode_automatic_CXX=no
20241inherit_rpath_CXX=no
20242module_cmds_CXX=
20243module_expsym_cmds_CXX=
20244link_all_deplibs_CXX=unknown
20245old_archive_cmds_CXX=$old_archive_cmds
20246reload_flag_CXX=$reload_flag
20247reload_cmds_CXX=$reload_cmds
20248no_undefined_flag_CXX=
20249whole_archive_flag_spec_CXX=
20250enable_shared_with_static_runtimes_CXX=no
20251
20252# Source file extension for C++ test sources.
20253ac_ext=cpp
20254
20255# Object file extension for compiled C++ test sources.
20256objext=o
20257objext_CXX=$objext
20258
20259# No sense in running all these tests if we already determined that
20260# the CXX compiler isn't working.  Some variables (like enable_shared)
20261# are currently assumed to apply to all compilers on this platform,
20262# and will be corrupted by setting them based on a non-working compiler.
20263if test yes != "$_lt_caught_CXX_error"; then
20264  # Code to be used in simple compile tests
20265  lt_simple_compile_test_code="int some_variable = 0;"
20266
20267  # Code to be used in simple link tests
20268  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20269
20270  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20271
20272
20273
20274
20275
20276
20277# If no C compiler was specified, use CC.
20278LTCC=${LTCC-"$CC"}
20279
20280# If no C compiler flags were specified, use CFLAGS.
20281LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20282
20283# Allow CC to be a program name with arguments.
20284compiler=$CC
20285
20286
20287  # save warnings/boilerplate of simple test code
20288  ac_outfile=conftest.$ac_objext
20289echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20290eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20291_lt_compiler_boilerplate=`cat conftest.err`
20292$RM conftest*
20293
20294  ac_outfile=conftest.$ac_objext
20295echo "$lt_simple_link_test_code" >conftest.$ac_ext
20296eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20297_lt_linker_boilerplate=`cat conftest.err`
20298$RM -r conftest*
20299
20300
20301  # Allow CC to be a program name with arguments.
20302  lt_save_CC=$CC
20303  lt_save_CFLAGS=$CFLAGS
20304  lt_save_LD=$LD
20305  lt_save_GCC=$GCC
20306  GCC=$GXX
20307  lt_save_with_gnu_ld=$with_gnu_ld
20308  lt_save_path_LD=$lt_cv_path_LD
20309  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20310    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20311  else
20312    $as_unset lt_cv_prog_gnu_ld
20313  fi
20314  if test -n "${lt_cv_path_LDCXX+set}"; then
20315    lt_cv_path_LD=$lt_cv_path_LDCXX
20316  else
20317    $as_unset lt_cv_path_LD
20318  fi
20319  test -z "${LDCXX+set}" || LD=$LDCXX
20320  CC=${CXX-"c++"}
20321  CFLAGS=$CXXFLAGS
20322  compiler=$CC
20323  compiler_CXX=$CC
20324  func_cc_basename $compiler
20325cc_basename=$func_cc_basename_result
20326
20327
20328  if test -n "$compiler"; then
20329    # We don't want -fno-exception when compiling C++ code, so set the
20330    # no_builtin_flag separately
20331    if test yes = "$GXX"; then
20332      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20333    else
20334      lt_prog_compiler_no_builtin_flag_CXX=
20335    fi
20336
20337    if test yes = "$GXX"; then
20338      # Set up default GNU C++ configuration
20339
20340
20341
20342# Check whether --with-gnu-ld was given.
20343if test "${with_gnu_ld+set}" = set; then :
20344  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
20345else
20346  with_gnu_ld=no
20347fi
20348
20349ac_prog=ld
20350if test yes = "$GCC"; then
20351  # Check if gcc -print-prog-name=ld gives a path.
20352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20353$as_echo_n "checking for ld used by $CC... " >&6; }
20354  case $host in
20355  *-*-mingw*)
20356    # gcc leaves a trailing carriage return, which upsets mingw
20357    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20358  *)
20359    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20360  esac
20361  case $ac_prog in
20362    # Accept absolute paths.
20363    [\\/]* | ?:[\\/]*)
20364      re_direlt='/[^/][^/]*/\.\./'
20365      # Canonicalize the pathname of ld
20366      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20367      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20368	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20369      done
20370      test -z "$LD" && LD=$ac_prog
20371      ;;
20372  "")
20373    # If it fails, then pretend we aren't using GCC.
20374    ac_prog=ld
20375    ;;
20376  *)
20377    # If it is relative, then search for the first ld in PATH.
20378    with_gnu_ld=unknown
20379    ;;
20380  esac
20381elif test yes = "$with_gnu_ld"; then
20382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20383$as_echo_n "checking for GNU ld... " >&6; }
20384else
20385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20386$as_echo_n "checking for non-GNU ld... " >&6; }
20387fi
20388if ${lt_cv_path_LD+:} false; then :
20389  $as_echo_n "(cached) " >&6
20390else
20391  if test -z "$LD"; then
20392  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
20393  for ac_dir in $PATH; do
20394    IFS=$lt_save_ifs
20395    test -z "$ac_dir" && ac_dir=.
20396    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20397      lt_cv_path_LD=$ac_dir/$ac_prog
20398      # Check to see if the program is GNU ld.  I'd rather use --version,
20399      # but apparently some variants of GNU ld only accept -v.
20400      # Break only if it was the GNU/non-GNU ld that we prefer.
20401      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20402      *GNU* | *'with BFD'*)
20403	test no != "$with_gnu_ld" && break
20404	;;
20405      *)
20406	test yes != "$with_gnu_ld" && break
20407	;;
20408      esac
20409    fi
20410  done
20411  IFS=$lt_save_ifs
20412else
20413  lt_cv_path_LD=$LD # Let the user override the test with a path.
20414fi
20415fi
20416
20417LD=$lt_cv_path_LD
20418if test -n "$LD"; then
20419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20420$as_echo "$LD" >&6; }
20421else
20422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20423$as_echo "no" >&6; }
20424fi
20425test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20427$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20428if ${lt_cv_prog_gnu_ld+:} false; then :
20429  $as_echo_n "(cached) " >&6
20430else
20431  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20432case `$LD -v 2>&1 </dev/null` in
20433*GNU* | *'with BFD'*)
20434  lt_cv_prog_gnu_ld=yes
20435  ;;
20436*)
20437  lt_cv_prog_gnu_ld=no
20438  ;;
20439esac
20440fi
20441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20442$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20443with_gnu_ld=$lt_cv_prog_gnu_ld
20444
20445
20446
20447
20448
20449
20450
20451      # Check if GNU C++ uses GNU ld as the underlying linker, since the
20452      # archiving commands below assume that GNU ld is being used.
20453      if test yes = "$with_gnu_ld"; then
20454        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20455        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'
20456
20457        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20458        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20459
20460        # If archive_cmds runs LD, not CC, wlarc should be empty
20461        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20462        #     investigate it a little bit more. (MM)
20463        wlarc='$wl'
20464
20465        # ancient GNU ld didn't support --whole-archive et. al.
20466        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20467	  $GREP 'no-whole-archive' > /dev/null; then
20468          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20469        else
20470          whole_archive_flag_spec_CXX=
20471        fi
20472      else
20473        with_gnu_ld=no
20474        wlarc=
20475
20476        # A generic and very simple default shared library creation
20477        # command for GNU C++ for the case where it uses the native
20478        # linker, instead of GNU ld.  If possible, this setting should
20479        # overridden to take advantage of the native linker features on
20480        # the platform it is being used on.
20481        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20482      fi
20483
20484      # Commands to make compiler produce verbose output that lists
20485      # what "hidden" libraries, object files and flags are used when
20486      # linking a shared library.
20487      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
20488
20489    else
20490      GXX=no
20491      with_gnu_ld=no
20492      wlarc=
20493    fi
20494
20495    # PORTME: fill in a description of your system's C++ link characteristics
20496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20497$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20498    ld_shlibs_CXX=yes
20499    case $host_os in
20500      aix3*)
20501        # FIXME: insert proper C++ library support
20502        ld_shlibs_CXX=no
20503        ;;
20504      aix[4-9]*)
20505        if test ia64 = "$host_cpu"; then
20506          # On IA64, the linker does run time linking by default, so we don't
20507          # have to do anything special.
20508          aix_use_runtimelinking=no
20509          exp_sym_flag='-Bexport'
20510          no_entry_flag=
20511        else
20512          aix_use_runtimelinking=no
20513
20514          # Test if we are trying to use run time linking or normal
20515          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20516          # have runtime linking enabled, and use it for executables.
20517          # For shared libraries, we enable/disable runtime linking
20518          # depending on the kind of the shared library created -
20519          # when "with_aix_soname,aix_use_runtimelinking" is:
20520          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
20521          # "aix,yes"  lib.so          shared, rtl:yes, for executables
20522          #            lib.a           static archive
20523          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
20524          #            lib.a(lib.so.V) shared, rtl:no,  for executables
20525          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20526          #            lib.a(lib.so.V) shared, rtl:no
20527          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
20528          #            lib.a           static archive
20529          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20530	    for ld_flag in $LDFLAGS; do
20531	      case $ld_flag in
20532	      *-brtl*)
20533	        aix_use_runtimelinking=yes
20534	        break
20535	        ;;
20536	      esac
20537	    done
20538	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20539	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
20540	      # so we don't have lib.a shared libs to link our executables.
20541	      # We have to force runtime linking in this case.
20542	      aix_use_runtimelinking=yes
20543	      LDFLAGS="$LDFLAGS -Wl,-brtl"
20544	    fi
20545	    ;;
20546          esac
20547
20548          exp_sym_flag='-bexport'
20549          no_entry_flag='-bnoentry'
20550        fi
20551
20552        # When large executables or shared objects are built, AIX ld can
20553        # have problems creating the table of contents.  If linking a library
20554        # or program results in "error TOC overflow" add -mminimal-toc to
20555        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20556        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20557
20558        archive_cmds_CXX=''
20559        hardcode_direct_CXX=yes
20560        hardcode_direct_absolute_CXX=yes
20561        hardcode_libdir_separator_CXX=':'
20562        link_all_deplibs_CXX=yes
20563        file_list_spec_CXX='$wl-f,'
20564        case $with_aix_soname,$aix_use_runtimelinking in
20565        aix,*) ;;	# no import file
20566        svr4,* | *,yes) # use import file
20567          # The Import File defines what to hardcode.
20568          hardcode_direct_CXX=no
20569          hardcode_direct_absolute_CXX=no
20570          ;;
20571        esac
20572
20573        if test yes = "$GXX"; then
20574          case $host_os in aix4.[012]|aix4.[012].*)
20575          # We only want to do this on AIX 4.2 and lower, the check
20576          # below for broken collect2 doesn't work under 4.3+
20577	  collect2name=`$CC -print-prog-name=collect2`
20578	  if test -f "$collect2name" &&
20579	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20580	  then
20581	    # We have reworked collect2
20582	    :
20583	  else
20584	    # We have old collect2
20585	    hardcode_direct_CXX=unsupported
20586	    # It fails to find uninstalled libraries when the uninstalled
20587	    # path is not listed in the libpath.  Setting hardcode_minus_L
20588	    # to unsupported forces relinking
20589	    hardcode_minus_L_CXX=yes
20590	    hardcode_libdir_flag_spec_CXX='-L$libdir'
20591	    hardcode_libdir_separator_CXX=
20592	  fi
20593          esac
20594          shared_flag='-shared'
20595	  if test yes = "$aix_use_runtimelinking"; then
20596	    shared_flag=$shared_flag' $wl-G'
20597	  fi
20598	  # Need to ensure runtime linking is disabled for the traditional
20599	  # shared library, or the linker may eventually find shared libraries
20600	  # /with/ Import File - we do not want to mix them.
20601	  shared_flag_aix='-shared'
20602	  shared_flag_svr4='-shared $wl-G'
20603        else
20604          # not using gcc
20605          if test ia64 = "$host_cpu"; then
20606	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20607	  # chokes on -Wl,-G. The following line is correct:
20608	  shared_flag='-G'
20609          else
20610	    if test yes = "$aix_use_runtimelinking"; then
20611	      shared_flag='$wl-G'
20612	    else
20613	      shared_flag='$wl-bM:SRE'
20614	    fi
20615	    shared_flag_aix='$wl-bM:SRE'
20616	    shared_flag_svr4='$wl-G'
20617          fi
20618        fi
20619
20620        export_dynamic_flag_spec_CXX='$wl-bexpall'
20621        # It seems that -bexpall does not export symbols beginning with
20622        # underscore (_), so it is better to generate a list of symbols to
20623	# export.
20624        always_export_symbols_CXX=yes
20625	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20626          # Warning - without using the other runtime loading flags (-brtl),
20627          # -berok will link without error, but may produce a broken library.
20628          # The "-G" linker flag allows undefined symbols.
20629          no_undefined_flag_CXX='-bernotok'
20630          # Determine the default libpath from the value encoded in an empty
20631          # executable.
20632          if test set = "${lt_cv_aix_libpath+set}"; then
20633  aix_libpath=$lt_cv_aix_libpath
20634else
20635  if ${lt_cv_aix_libpath__CXX+:} false; then :
20636  $as_echo_n "(cached) " >&6
20637else
20638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20639/* end confdefs.h.  */
20640
20641int
20642main ()
20643{
20644
20645  ;
20646  return 0;
20647}
20648_ACEOF
20649if ac_fn_cxx_try_link "$LINENO"; then :
20650
20651  lt_aix_libpath_sed='
20652      /Import File Strings/,/^$/ {
20653	  /^0/ {
20654	      s/^0  *\([^ ]*\) *$/\1/
20655	      p
20656	  }
20657      }'
20658  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20659  # Check for a 64-bit object if we didn't find anything.
20660  if test -z "$lt_cv_aix_libpath__CXX"; then
20661    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20662  fi
20663fi
20664rm -f core conftest.err conftest.$ac_objext \
20665    conftest$ac_exeext conftest.$ac_ext
20666  if test -z "$lt_cv_aix_libpath__CXX"; then
20667    lt_cv_aix_libpath__CXX=/usr/lib:/lib
20668  fi
20669
20670fi
20671
20672  aix_libpath=$lt_cv_aix_libpath__CXX
20673fi
20674
20675          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20676
20677          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
20678        else
20679          if test ia64 = "$host_cpu"; then
20680	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
20681	    allow_undefined_flag_CXX="-z nodefs"
20682	    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"
20683          else
20684	    # Determine the default libpath from the value encoded in an
20685	    # empty executable.
20686	    if test set = "${lt_cv_aix_libpath+set}"; then
20687  aix_libpath=$lt_cv_aix_libpath
20688else
20689  if ${lt_cv_aix_libpath__CXX+:} false; then :
20690  $as_echo_n "(cached) " >&6
20691else
20692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20693/* end confdefs.h.  */
20694
20695int
20696main ()
20697{
20698
20699  ;
20700  return 0;
20701}
20702_ACEOF
20703if ac_fn_cxx_try_link "$LINENO"; then :
20704
20705  lt_aix_libpath_sed='
20706      /Import File Strings/,/^$/ {
20707	  /^0/ {
20708	      s/^0  *\([^ ]*\) *$/\1/
20709	      p
20710	  }
20711      }'
20712  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20713  # Check for a 64-bit object if we didn't find anything.
20714  if test -z "$lt_cv_aix_libpath__CXX"; then
20715    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20716  fi
20717fi
20718rm -f core conftest.err conftest.$ac_objext \
20719    conftest$ac_exeext conftest.$ac_ext
20720  if test -z "$lt_cv_aix_libpath__CXX"; then
20721    lt_cv_aix_libpath__CXX=/usr/lib:/lib
20722  fi
20723
20724fi
20725
20726  aix_libpath=$lt_cv_aix_libpath__CXX
20727fi
20728
20729	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20730	    # Warning - without using the other run time loading flags,
20731	    # -berok will link without error, but may produce a broken library.
20732	    no_undefined_flag_CXX=' $wl-bernotok'
20733	    allow_undefined_flag_CXX=' $wl-berok'
20734	    if test yes = "$with_gnu_ld"; then
20735	      # We only use this code for GNU lds that support --whole-archive.
20736	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20737	    else
20738	      # Exported symbols can be pulled into shared objects from archives
20739	      whole_archive_flag_spec_CXX='$convenience'
20740	    fi
20741	    archive_cmds_need_lc_CXX=yes
20742	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20743	    # -brtl affects multiple linker settings, -berok does not and is overridden later
20744	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20745	    if test svr4 != "$with_aix_soname"; then
20746	      # This is similar to how AIX traditionally builds its shared
20747	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
20748	      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'
20749	    fi
20750	    if test aix != "$with_aix_soname"; then
20751	      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'
20752	    else
20753	      # used by -dlpreopen to get the symbols
20754	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
20755	    fi
20756	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
20757          fi
20758        fi
20759        ;;
20760
20761      beos*)
20762	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20763	  allow_undefined_flag_CXX=unsupported
20764	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20765	  # support --undefined.  This deserves some investigation.  FIXME
20766	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20767	else
20768	  ld_shlibs_CXX=no
20769	fi
20770	;;
20771
20772      chorus*)
20773        case $cc_basename in
20774          *)
20775	  # FIXME: insert proper C++ library support
20776	  ld_shlibs_CXX=no
20777	  ;;
20778        esac
20779        ;;
20780
20781      cygwin* | mingw* | pw32* | cegcc*)
20782	case $GXX,$cc_basename in
20783	,cl* | no,cl*)
20784	  # Native MSVC
20785	  # hardcode_libdir_flag_spec is actually meaningless, as there is
20786	  # no search path for DLLs.
20787	  hardcode_libdir_flag_spec_CXX=' '
20788	  allow_undefined_flag_CXX=unsupported
20789	  always_export_symbols_CXX=yes
20790	  file_list_spec_CXX='@'
20791	  # Tell ltmain to make .lib files, not .a files.
20792	  libext=lib
20793	  # Tell ltmain to make .dll files, not .so files.
20794	  shrext_cmds=.dll
20795	  # FIXME: Setting linknames here is a bad hack.
20796	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20797	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20798              cp "$export_symbols" "$output_objdir/$soname.def";
20799              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20800            else
20801              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20802            fi~
20803            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20804            linknames='
20805	  # The linker will not automatically build a static lib if we build a DLL.
20806	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
20807	  enable_shared_with_static_runtimes_CXX=yes
20808	  # Don't use ranlib
20809	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
20810	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
20811            lt_tool_outputfile="@TOOL_OUTPUT@"~
20812            case $lt_outputfile in
20813              *.exe|*.EXE) ;;
20814              *)
20815                lt_outputfile=$lt_outputfile.exe
20816                lt_tool_outputfile=$lt_tool_outputfile.exe
20817                ;;
20818            esac~
20819            func_to_tool_file "$lt_outputfile"~
20820            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20821              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20822              $RM "$lt_outputfile.manifest";
20823            fi'
20824	  ;;
20825	*)
20826	  # g++
20827	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20828	  # as there is no search path for DLLs.
20829	  hardcode_libdir_flag_spec_CXX='-L$libdir'
20830	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
20831	  allow_undefined_flag_CXX=unsupported
20832	  always_export_symbols_CXX=no
20833	  enable_shared_with_static_runtimes_CXX=yes
20834
20835	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20836	    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'
20837	    # If the export-symbols file already is a .def file, use it as
20838	    # is; otherwise, prepend EXPORTS...
20839	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20840              cp $export_symbols $output_objdir/$soname.def;
20841            else
20842              echo EXPORTS > $output_objdir/$soname.def;
20843              cat $export_symbols >> $output_objdir/$soname.def;
20844            fi~
20845            $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'
20846	  else
20847	    ld_shlibs_CXX=no
20848	  fi
20849	  ;;
20850	esac
20851	;;
20852      darwin* | rhapsody*)
20853
20854
20855  archive_cmds_need_lc_CXX=no
20856  hardcode_direct_CXX=no
20857  hardcode_automatic_CXX=yes
20858  hardcode_shlibpath_var_CXX=unsupported
20859  if test yes = "$lt_cv_ld_force_load"; then
20860    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\"`'
20861
20862  else
20863    whole_archive_flag_spec_CXX=''
20864  fi
20865  link_all_deplibs_CXX=yes
20866  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
20867  case $cc_basename in
20868     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20869     *) _lt_dar_can_shared=$GCC ;;
20870  esac
20871  if test yes = "$_lt_dar_can_shared"; then
20872    output_verbose_link_cmd=func_echo_all
20873    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"
20874    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20875    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"
20876    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"
20877       if test yes != "$lt_cv_apple_cc_single_mod"; then
20878      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"
20879      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"
20880    fi
20881
20882  else
20883  ld_shlibs_CXX=no
20884  fi
20885
20886	;;
20887
20888      os2*)
20889	hardcode_libdir_flag_spec_CXX='-L$libdir'
20890	hardcode_minus_L_CXX=yes
20891	allow_undefined_flag_CXX=unsupported
20892	shrext_cmds=.dll
20893	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20894	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20895	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20896	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20897	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20898	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20899	  emximp -o $lib $output_objdir/$libname.def'
20900	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20901	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20902	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20903	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20904	  prefix_cmds="$SED"~
20905	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
20906	    prefix_cmds="$prefix_cmds -e 1d";
20907	  fi~
20908	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20909	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20910	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20911	  emximp -o $lib $output_objdir/$libname.def'
20912	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20913	enable_shared_with_static_runtimes_CXX=yes
20914	;;
20915
20916      dgux*)
20917        case $cc_basename in
20918          ec++*)
20919	    # FIXME: insert proper C++ library support
20920	    ld_shlibs_CXX=no
20921	    ;;
20922          ghcx*)
20923	    # Green Hills C++ Compiler
20924	    # FIXME: insert proper C++ library support
20925	    ld_shlibs_CXX=no
20926	    ;;
20927          *)
20928	    # FIXME: insert proper C++ library support
20929	    ld_shlibs_CXX=no
20930	    ;;
20931        esac
20932        ;;
20933
20934      freebsd2.*)
20935        # C++ shared libraries reported to be fairly broken before
20936	# switch to ELF
20937        ld_shlibs_CXX=no
20938        ;;
20939
20940      freebsd-elf*)
20941        archive_cmds_need_lc_CXX=no
20942        ;;
20943
20944      freebsd* | dragonfly*)
20945        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20946        # conventions
20947        ld_shlibs_CXX=yes
20948        ;;
20949
20950      haiku*)
20951        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20952        link_all_deplibs_CXX=yes
20953        ;;
20954
20955      hpux9*)
20956        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20957        hardcode_libdir_separator_CXX=:
20958        export_dynamic_flag_spec_CXX='$wl-E'
20959        hardcode_direct_CXX=yes
20960        hardcode_minus_L_CXX=yes # Not in the search PATH,
20961				             # but as the default
20962				             # location of the library.
20963
20964        case $cc_basename in
20965          CC*)
20966            # FIXME: insert proper C++ library support
20967            ld_shlibs_CXX=no
20968            ;;
20969          aCC*)
20970            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'
20971            # Commands to make compiler produce verbose output that lists
20972            # what "hidden" libraries, object files and flags are used when
20973            # linking a shared library.
20974            #
20975            # There doesn't appear to be a way to prevent this compiler from
20976            # explicitly linking system object files so we need to strip them
20977            # from the output so that they don't get included in the library
20978            # dependencies.
20979            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"'
20980            ;;
20981          *)
20982            if test yes = "$GXX"; then
20983              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'
20984            else
20985              # FIXME: insert proper C++ library support
20986              ld_shlibs_CXX=no
20987            fi
20988            ;;
20989        esac
20990        ;;
20991
20992      hpux10*|hpux11*)
20993        if test no = "$with_gnu_ld"; then
20994	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20995	  hardcode_libdir_separator_CXX=:
20996
20997          case $host_cpu in
20998            hppa*64*|ia64*)
20999              ;;
21000            *)
21001	      export_dynamic_flag_spec_CXX='$wl-E'
21002              ;;
21003          esac
21004        fi
21005        case $host_cpu in
21006          hppa*64*|ia64*)
21007            hardcode_direct_CXX=no
21008            hardcode_shlibpath_var_CXX=no
21009            ;;
21010          *)
21011            hardcode_direct_CXX=yes
21012            hardcode_direct_absolute_CXX=yes
21013            hardcode_minus_L_CXX=yes # Not in the search PATH,
21014					         # but as the default
21015					         # location of the library.
21016            ;;
21017        esac
21018
21019        case $cc_basename in
21020          CC*)
21021	    # FIXME: insert proper C++ library support
21022	    ld_shlibs_CXX=no
21023	    ;;
21024          aCC*)
21025	    case $host_cpu in
21026	      hppa*64*)
21027	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21028	        ;;
21029	      ia64*)
21030	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21031	        ;;
21032	      *)
21033	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21034	        ;;
21035	    esac
21036	    # Commands to make compiler produce verbose output that lists
21037	    # what "hidden" libraries, object files and flags are used when
21038	    # linking a shared library.
21039	    #
21040	    # There doesn't appear to be a way to prevent this compiler from
21041	    # explicitly linking system object files so we need to strip them
21042	    # from the output so that they don't get included in the library
21043	    # dependencies.
21044	    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"'
21045	    ;;
21046          *)
21047	    if test yes = "$GXX"; then
21048	      if test no = "$with_gnu_ld"; then
21049	        case $host_cpu in
21050	          hppa*64*)
21051	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21052	            ;;
21053	          ia64*)
21054	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21055	            ;;
21056	          *)
21057	            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'
21058	            ;;
21059	        esac
21060	      fi
21061	    else
21062	      # FIXME: insert proper C++ library support
21063	      ld_shlibs_CXX=no
21064	    fi
21065	    ;;
21066        esac
21067        ;;
21068
21069      interix[3-9]*)
21070	hardcode_direct_CXX=no
21071	hardcode_shlibpath_var_CXX=no
21072	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21073	export_dynamic_flag_spec_CXX='$wl-E'
21074	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21075	# Instead, shared libraries are loaded at an image base (0x10000000 by
21076	# default) and relocated if they conflict, which is a slow very memory
21077	# consuming and fragmenting process.  To avoid this, we pick a random,
21078	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21079	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21080	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'
21081	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'
21082	;;
21083      irix5* | irix6*)
21084        case $cc_basename in
21085          CC*)
21086	    # SGI C++
21087	    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'
21088
21089	    # Archives containing C++ object files must be created using
21090	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
21091	    # necessary to make sure instantiated templates are included
21092	    # in the archive.
21093	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21094	    ;;
21095          *)
21096	    if test yes = "$GXX"; then
21097	      if test no = "$with_gnu_ld"; then
21098	        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'
21099	      else
21100	        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'
21101	      fi
21102	    fi
21103	    link_all_deplibs_CXX=yes
21104	    ;;
21105        esac
21106        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21107        hardcode_libdir_separator_CXX=:
21108        inherit_rpath_CXX=yes
21109        ;;
21110
21111      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21112        case $cc_basename in
21113          KCC*)
21114	    # Kuck and Associates, Inc. (KAI) C++ Compiler
21115
21116	    # KCC will only create a shared library if the output file
21117	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
21118	    # to its proper name (with version) after linking.
21119	    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'
21120	    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'
21121	    # Commands to make compiler produce verbose output that lists
21122	    # what "hidden" libraries, object files and flags are used when
21123	    # linking a shared library.
21124	    #
21125	    # There doesn't appear to be a way to prevent this compiler from
21126	    # explicitly linking system object files so we need to strip them
21127	    # from the output so that they don't get included in the library
21128	    # dependencies.
21129	    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"'
21130
21131	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21132	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21133
21134	    # Archives containing C++ object files must be created using
21135	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21136	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21137	    ;;
21138	  icpc* | ecpc* )
21139	    # Intel C++
21140	    with_gnu_ld=yes
21141	    # version 8.0 and above of icpc choke on multiply defined symbols
21142	    # if we add $predep_objects and $postdep_objects, however 7.1 and
21143	    # earlier do not add the objects themselves.
21144	    case `$CC -V 2>&1` in
21145	      *"Version 7."*)
21146	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21147		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'
21148		;;
21149	      *)  # Version 8.0 or newer
21150	        tmp_idyn=
21151	        case $host_cpu in
21152		  ia64*) tmp_idyn=' -i_dynamic';;
21153		esac
21154	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21155		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'
21156		;;
21157	    esac
21158	    archive_cmds_need_lc_CXX=no
21159	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21160	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21161	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21162	    ;;
21163          pgCC* | pgcpp*)
21164            # Portland Group C++ compiler
21165	    case `$CC -V` in
21166	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21167	      prelink_cmds_CXX='tpldir=Template.dir~
21168               rm -rf $tpldir~
21169               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21170               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21171	      old_archive_cmds_CXX='tpldir=Template.dir~
21172                rm -rf $tpldir~
21173                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21174                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21175                $RANLIB $oldlib'
21176	      archive_cmds_CXX='tpldir=Template.dir~
21177                rm -rf $tpldir~
21178                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21179                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21180	      archive_expsym_cmds_CXX='tpldir=Template.dir~
21181                rm -rf $tpldir~
21182                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21183                $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'
21184	      ;;
21185	    *) # Version 6 and above use weak symbols
21186	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21187	      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'
21188	      ;;
21189	    esac
21190
21191	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
21192	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21193	    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'
21194            ;;
21195	  cxx*)
21196	    # Compaq C++
21197	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21198	    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'
21199
21200	    runpath_var=LD_RUN_PATH
21201	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21202	    hardcode_libdir_separator_CXX=:
21203
21204	    # Commands to make compiler produce verbose output that lists
21205	    # what "hidden" libraries, object files and flags are used when
21206	    # linking a shared library.
21207	    #
21208	    # There doesn't appear to be a way to prevent this compiler from
21209	    # explicitly linking system object files so we need to strip them
21210	    # from the output so that they don't get included in the library
21211	    # dependencies.
21212	    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'
21213	    ;;
21214	  xl* | mpixl* | bgxl*)
21215	    # IBM XL 8.0 on PPC, with GNU ld
21216	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21217	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21218	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21219	    if test yes = "$supports_anon_versioning"; then
21220	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21221                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21222                echo "local: *; };" >> $output_objdir/$libname.ver~
21223                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21224	    fi
21225	    ;;
21226	  *)
21227	    case `$CC -V 2>&1 | sed 5q` in
21228	    *Sun\ C*)
21229	      # Sun C++ 5.9
21230	      no_undefined_flag_CXX=' -zdefs'
21231	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21232	      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'
21233	      hardcode_libdir_flag_spec_CXX='-R$libdir'
21234	      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'
21235	      compiler_needs_object_CXX=yes
21236
21237	      # Not sure whether something based on
21238	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21239	      # would be better.
21240	      output_verbose_link_cmd='func_echo_all'
21241
21242	      # Archives containing C++ object files must be created using
21243	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21244	      # necessary to make sure instantiated templates are included
21245	      # in the archive.
21246	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21247	      ;;
21248	    esac
21249	    ;;
21250	esac
21251	;;
21252
21253      lynxos*)
21254        # FIXME: insert proper C++ library support
21255	ld_shlibs_CXX=no
21256	;;
21257
21258      m88k*)
21259        # FIXME: insert proper C++ library support
21260        ld_shlibs_CXX=no
21261	;;
21262
21263      mvs*)
21264        case $cc_basename in
21265          cxx*)
21266	    # FIXME: insert proper C++ library support
21267	    ld_shlibs_CXX=no
21268	    ;;
21269	  *)
21270	    # FIXME: insert proper C++ library support
21271	    ld_shlibs_CXX=no
21272	    ;;
21273	esac
21274	;;
21275
21276      netbsd*)
21277        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21278	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21279	  wlarc=
21280	  hardcode_libdir_flag_spec_CXX='-R$libdir'
21281	  hardcode_direct_CXX=yes
21282	  hardcode_shlibpath_var_CXX=no
21283	fi
21284	# Workaround some broken pre-1.5 toolchains
21285	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21286	;;
21287
21288      *nto* | *qnx*)
21289        ld_shlibs_CXX=yes
21290	;;
21291
21292      openbsd* | bitrig*)
21293	if test -f /usr/libexec/ld.so; then
21294	  hardcode_direct_CXX=yes
21295	  hardcode_shlibpath_var_CXX=no
21296	  hardcode_direct_absolute_CXX=yes
21297	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21298	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21299	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
21300	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
21301	    export_dynamic_flag_spec_CXX='$wl-E'
21302	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21303	  fi
21304	  output_verbose_link_cmd=func_echo_all
21305	else
21306	  ld_shlibs_CXX=no
21307	fi
21308	;;
21309
21310      osf3* | osf4* | osf5*)
21311        case $cc_basename in
21312          KCC*)
21313	    # Kuck and Associates, Inc. (KAI) C++ Compiler
21314
21315	    # KCC will only create a shared library if the output file
21316	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
21317	    # to its proper name (with version) after linking.
21318	    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'
21319
21320	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21321	    hardcode_libdir_separator_CXX=:
21322
21323	    # Archives containing C++ object files must be created using
21324	    # the KAI C++ compiler.
21325	    case $host in
21326	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21327	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21328	    esac
21329	    ;;
21330          RCC*)
21331	    # Rational C++ 2.4.1
21332	    # FIXME: insert proper C++ library support
21333	    ld_shlibs_CXX=no
21334	    ;;
21335          cxx*)
21336	    case $host in
21337	      osf3*)
21338	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21339	        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'
21340	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21341		;;
21342	      *)
21343	        allow_undefined_flag_CXX=' -expect_unresolved \*'
21344	        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'
21345	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21346                  echo "-hidden">> $lib.exp~
21347                  $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~
21348                  $RM $lib.exp'
21349	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21350		;;
21351	    esac
21352
21353	    hardcode_libdir_separator_CXX=:
21354
21355	    # Commands to make compiler produce verbose output that lists
21356	    # what "hidden" libraries, object files and flags are used when
21357	    # linking a shared library.
21358	    #
21359	    # There doesn't appear to be a way to prevent this compiler from
21360	    # explicitly linking system object files so we need to strip them
21361	    # from the output so that they don't get included in the library
21362	    # dependencies.
21363	    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"'
21364	    ;;
21365	  *)
21366	    if test yes,no = "$GXX,$with_gnu_ld"; then
21367	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21368	      case $host in
21369	        osf3*)
21370	          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'
21371		  ;;
21372	        *)
21373	          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'
21374		  ;;
21375	      esac
21376
21377	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21378	      hardcode_libdir_separator_CXX=:
21379
21380	      # Commands to make compiler produce verbose output that lists
21381	      # what "hidden" libraries, object files and flags are used when
21382	      # linking a shared library.
21383	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
21384
21385	    else
21386	      # FIXME: insert proper C++ library support
21387	      ld_shlibs_CXX=no
21388	    fi
21389	    ;;
21390        esac
21391        ;;
21392
21393      psos*)
21394        # FIXME: insert proper C++ library support
21395        ld_shlibs_CXX=no
21396        ;;
21397
21398      sunos4*)
21399        case $cc_basename in
21400          CC*)
21401	    # Sun C++ 4.x
21402	    # FIXME: insert proper C++ library support
21403	    ld_shlibs_CXX=no
21404	    ;;
21405          lcc*)
21406	    # Lucid
21407	    # FIXME: insert proper C++ library support
21408	    ld_shlibs_CXX=no
21409	    ;;
21410          *)
21411	    # FIXME: insert proper C++ library support
21412	    ld_shlibs_CXX=no
21413	    ;;
21414        esac
21415        ;;
21416
21417      solaris*)
21418        case $cc_basename in
21419          CC* | sunCC*)
21420	    # Sun C++ 4.2, 5.x and Centerline C++
21421            archive_cmds_need_lc_CXX=yes
21422	    no_undefined_flag_CXX=' -zdefs'
21423	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21424	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21425              $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'
21426
21427	    hardcode_libdir_flag_spec_CXX='-R$libdir'
21428	    hardcode_shlibpath_var_CXX=no
21429	    case $host_os in
21430	      solaris2.[0-5] | solaris2.[0-5].*) ;;
21431	      *)
21432		# The compiler driver will combine and reorder linker options,
21433		# but understands '-z linker_flag'.
21434	        # Supported since Solaris 2.6 (maybe 2.5.1?)
21435		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21436	        ;;
21437	    esac
21438	    link_all_deplibs_CXX=yes
21439
21440	    output_verbose_link_cmd='func_echo_all'
21441
21442	    # Archives containing C++ object files must be created using
21443	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21444	    # necessary to make sure instantiated templates are included
21445	    # in the archive.
21446	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21447	    ;;
21448          gcx*)
21449	    # Green Hills C++ Compiler
21450	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21451
21452	    # The C++ compiler must be used to create the archive.
21453	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21454	    ;;
21455          *)
21456	    # GNU C++ compiler with Solaris linker
21457	    if test yes,no = "$GXX,$with_gnu_ld"; then
21458	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
21459	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21460	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21461	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21462                  $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'
21463
21464	        # Commands to make compiler produce verbose output that lists
21465	        # what "hidden" libraries, object files and flags are used when
21466	        # linking a shared library.
21467	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
21468	      else
21469	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
21470	        # platform.
21471	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21472	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21473                  $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'
21474
21475	        # Commands to make compiler produce verbose output that lists
21476	        # what "hidden" libraries, object files and flags are used when
21477	        # linking a shared library.
21478	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
21479	      fi
21480
21481	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
21482	      case $host_os in
21483		solaris2.[0-5] | solaris2.[0-5].*) ;;
21484		*)
21485		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21486		  ;;
21487	      esac
21488	    fi
21489	    ;;
21490        esac
21491        ;;
21492
21493    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21494      no_undefined_flag_CXX='$wl-z,text'
21495      archive_cmds_need_lc_CXX=no
21496      hardcode_shlibpath_var_CXX=no
21497      runpath_var='LD_RUN_PATH'
21498
21499      case $cc_basename in
21500        CC*)
21501	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21502	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21503	  ;;
21504	*)
21505	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21506	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21507	  ;;
21508      esac
21509      ;;
21510
21511      sysv5* | sco3.2v5* | sco5v6*)
21512	# Note: We CANNOT use -z defs as we might desire, because we do not
21513	# link with -lc, and that would cause any symbols used from libc to
21514	# always be unresolved, which means just about no library would
21515	# ever link correctly.  If we're not using GNU ld we use -z text
21516	# though, which does catch some bad symbols but isn't as heavy-handed
21517	# as -z defs.
21518	no_undefined_flag_CXX='$wl-z,text'
21519	allow_undefined_flag_CXX='$wl-z,nodefs'
21520	archive_cmds_need_lc_CXX=no
21521	hardcode_shlibpath_var_CXX=no
21522	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
21523	hardcode_libdir_separator_CXX=':'
21524	link_all_deplibs_CXX=yes
21525	export_dynamic_flag_spec_CXX='$wl-Bexport'
21526	runpath_var='LD_RUN_PATH'
21527
21528	case $cc_basename in
21529          CC*)
21530	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21531	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21532	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21533              '"$old_archive_cmds_CXX"
21534	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21535              '"$reload_cmds_CXX"
21536	    ;;
21537	  *)
21538	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540	    ;;
21541	esac
21542      ;;
21543
21544      tandem*)
21545        case $cc_basename in
21546          NCC*)
21547	    # NonStop-UX NCC 3.20
21548	    # FIXME: insert proper C++ library support
21549	    ld_shlibs_CXX=no
21550	    ;;
21551          *)
21552	    # FIXME: insert proper C++ library support
21553	    ld_shlibs_CXX=no
21554	    ;;
21555        esac
21556        ;;
21557
21558      vxworks*)
21559        # FIXME: insert proper C++ library support
21560        ld_shlibs_CXX=no
21561        ;;
21562
21563      *)
21564        # FIXME: insert proper C++ library support
21565        ld_shlibs_CXX=no
21566        ;;
21567    esac
21568
21569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21570$as_echo "$ld_shlibs_CXX" >&6; }
21571    test no = "$ld_shlibs_CXX" && can_build_shared=no
21572
21573    GCC_CXX=$GXX
21574    LD_CXX=$LD
21575
21576    ## CAVEAT EMPTOR:
21577    ## There is no encapsulation within the following macros, do not change
21578    ## the running order or otherwise move them around unless you know exactly
21579    ## what you are doing...
21580    # Dependencies to place before and after the object being linked:
21581predep_objects_CXX=
21582postdep_objects_CXX=
21583predeps_CXX=
21584postdeps_CXX=
21585compiler_lib_search_path_CXX=
21586
21587cat > conftest.$ac_ext <<_LT_EOF
21588class Foo
21589{
21590public:
21591  Foo (void) { a = 0; }
21592private:
21593  int a;
21594};
21595_LT_EOF
21596
21597
21598_lt_libdeps_save_CFLAGS=$CFLAGS
21599case "$CC $CFLAGS " in #(
21600*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
21601*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
21602*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
21603esac
21604
21605if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21606  (eval $ac_compile) 2>&5
21607  ac_status=$?
21608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21609  test $ac_status = 0; }; then
21610  # Parse the compiler output and extract the necessary
21611  # objects, libraries and library flags.
21612
21613  # Sentinel used to keep track of whether or not we are before
21614  # the conftest object file.
21615  pre_test_object_deps_done=no
21616
21617  for p in `eval "$output_verbose_link_cmd"`; do
21618    case $prev$p in
21619
21620    -L* | -R* | -l*)
21621       # Some compilers place space between "-{L,R}" and the path.
21622       # Remove the space.
21623       if test x-L = "$p" ||
21624          test x-R = "$p"; then
21625	 prev=$p
21626	 continue
21627       fi
21628
21629       # Expand the sysroot to ease extracting the directories later.
21630       if test -z "$prev"; then
21631         case $p in
21632         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
21633         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
21634         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
21635         esac
21636       fi
21637       case $p in
21638       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
21639       esac
21640       if test no = "$pre_test_object_deps_done"; then
21641	 case $prev in
21642	 -L | -R)
21643	   # Internal compiler library paths should come after those
21644	   # provided the user.  The postdeps already come after the
21645	   # user supplied libs so there is no need to process them.
21646	   if test -z "$compiler_lib_search_path_CXX"; then
21647	     compiler_lib_search_path_CXX=$prev$p
21648	   else
21649	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
21650	   fi
21651	   ;;
21652	 # The "-l" case would never come before the object being
21653	 # linked, so don't bother handling this case.
21654	 esac
21655       else
21656	 if test -z "$postdeps_CXX"; then
21657	   postdeps_CXX=$prev$p
21658	 else
21659	   postdeps_CXX="${postdeps_CXX} $prev$p"
21660	 fi
21661       fi
21662       prev=
21663       ;;
21664
21665    *.lto.$objext) ;; # Ignore GCC LTO objects
21666    *.$objext)
21667       # This assumes that the test object file only shows up
21668       # once in the compiler output.
21669       if test "$p" = "conftest.$objext"; then
21670	 pre_test_object_deps_done=yes
21671	 continue
21672       fi
21673
21674       if test no = "$pre_test_object_deps_done"; then
21675	 if test -z "$predep_objects_CXX"; then
21676	   predep_objects_CXX=$p
21677	 else
21678	   predep_objects_CXX="$predep_objects_CXX $p"
21679	 fi
21680       else
21681	 if test -z "$postdep_objects_CXX"; then
21682	   postdep_objects_CXX=$p
21683	 else
21684	   postdep_objects_CXX="$postdep_objects_CXX $p"
21685	 fi
21686       fi
21687       ;;
21688
21689    *) ;; # Ignore the rest.
21690
21691    esac
21692  done
21693
21694  # Clean up.
21695  rm -f a.out a.exe
21696else
21697  echo "libtool.m4: error: problem compiling CXX test program"
21698fi
21699
21700$RM -f confest.$objext
21701CFLAGS=$_lt_libdeps_save_CFLAGS
21702
21703# PORTME: override above test on systems where it is broken
21704case $host_os in
21705interix[3-9]*)
21706  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21707  # hack all around it, let's just trust "g++" to DTRT.
21708  predep_objects_CXX=
21709  postdep_objects_CXX=
21710  postdeps_CXX=
21711  ;;
21712esac
21713
21714
21715case " $postdeps_CXX " in
21716*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21717esac
21718 compiler_lib_search_dirs_CXX=
21719if test -n "${compiler_lib_search_path_CXX}"; then
21720 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
21721fi
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753    lt_prog_compiler_wl_CXX=
21754lt_prog_compiler_pic_CXX=
21755lt_prog_compiler_static_CXX=
21756
21757
21758  # C++ specific cases for pic, static, wl, etc.
21759  if test yes = "$GXX"; then
21760    lt_prog_compiler_wl_CXX='-Wl,'
21761    lt_prog_compiler_static_CXX='-static'
21762
21763    case $host_os in
21764    aix*)
21765      # All AIX code is PIC.
21766      if test ia64 = "$host_cpu"; then
21767	# AIX 5 now supports IA64 processor
21768	lt_prog_compiler_static_CXX='-Bstatic'
21769      fi
21770      lt_prog_compiler_pic_CXX='-fPIC'
21771      ;;
21772
21773    amigaos*)
21774      case $host_cpu in
21775      powerpc)
21776            # see comment about AmigaOS4 .so support
21777            lt_prog_compiler_pic_CXX='-fPIC'
21778        ;;
21779      m68k)
21780            # FIXME: we need at least 68020 code to build shared libraries, but
21781            # adding the '-m68020' flag to GCC prevents building anything better,
21782            # like '-m68040'.
21783            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21784        ;;
21785      esac
21786      ;;
21787
21788    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21789      # PIC is the default for these OSes.
21790      ;;
21791    mingw* | cygwin* | os2* | pw32* | cegcc*)
21792      # This hack is so that the source file can tell whether it is being
21793      # built for inclusion in a dll (and should export symbols for example).
21794      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21795      # (--disable-auto-import) libraries
21796      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21797      case $host_os in
21798      os2*)
21799	lt_prog_compiler_static_CXX='$wl-static'
21800	;;
21801      esac
21802      ;;
21803    darwin* | rhapsody*)
21804      # PIC is the default on this platform
21805      # Common symbols not allowed in MH_DYLIB files
21806      lt_prog_compiler_pic_CXX='-fno-common'
21807      ;;
21808    *djgpp*)
21809      # DJGPP does not support shared libraries at all
21810      lt_prog_compiler_pic_CXX=
21811      ;;
21812    haiku*)
21813      # PIC is the default for Haiku.
21814      # The "-static" flag exists, but is broken.
21815      lt_prog_compiler_static_CXX=
21816      ;;
21817    interix[3-9]*)
21818      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21819      # Instead, we relocate shared libraries at runtime.
21820      ;;
21821    sysv4*MP*)
21822      if test -d /usr/nec; then
21823	lt_prog_compiler_pic_CXX=-Kconform_pic
21824      fi
21825      ;;
21826    hpux*)
21827      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21828      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21829      # sets the default TLS model and affects inlining.
21830      case $host_cpu in
21831      hppa*64*)
21832	;;
21833      *)
21834	lt_prog_compiler_pic_CXX='-fPIC'
21835	;;
21836      esac
21837      ;;
21838    *qnx* | *nto*)
21839      # QNX uses GNU C++, but need to define -shared option too, otherwise
21840      # it will coredump.
21841      lt_prog_compiler_pic_CXX='-fPIC -shared'
21842      ;;
21843    *)
21844      lt_prog_compiler_pic_CXX='-fPIC'
21845      ;;
21846    esac
21847  else
21848    case $host_os in
21849      aix[4-9]*)
21850	# All AIX code is PIC.
21851	if test ia64 = "$host_cpu"; then
21852	  # AIX 5 now supports IA64 processor
21853	  lt_prog_compiler_static_CXX='-Bstatic'
21854	else
21855	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21856	fi
21857	;;
21858      chorus*)
21859	case $cc_basename in
21860	cxch68*)
21861	  # Green Hills C++ Compiler
21862	  # _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"
21863	  ;;
21864	esac
21865	;;
21866      mingw* | cygwin* | os2* | pw32* | cegcc*)
21867	# This hack is so that the source file can tell whether it is being
21868	# built for inclusion in a dll (and should export symbols for example).
21869	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21870	;;
21871      dgux*)
21872	case $cc_basename in
21873	  ec++*)
21874	    lt_prog_compiler_pic_CXX='-KPIC'
21875	    ;;
21876	  ghcx*)
21877	    # Green Hills C++ Compiler
21878	    lt_prog_compiler_pic_CXX='-pic'
21879	    ;;
21880	  *)
21881	    ;;
21882	esac
21883	;;
21884      freebsd* | dragonfly*)
21885	# FreeBSD uses GNU C++
21886	;;
21887      hpux9* | hpux10* | hpux11*)
21888	case $cc_basename in
21889	  CC*)
21890	    lt_prog_compiler_wl_CXX='-Wl,'
21891	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21892	    if test ia64 != "$host_cpu"; then
21893	      lt_prog_compiler_pic_CXX='+Z'
21894	    fi
21895	    ;;
21896	  aCC*)
21897	    lt_prog_compiler_wl_CXX='-Wl,'
21898	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21899	    case $host_cpu in
21900	    hppa*64*|ia64*)
21901	      # +Z the default
21902	      ;;
21903	    *)
21904	      lt_prog_compiler_pic_CXX='+Z'
21905	      ;;
21906	    esac
21907	    ;;
21908	  *)
21909	    ;;
21910	esac
21911	;;
21912      interix*)
21913	# This is c89, which is MS Visual C++ (no shared libs)
21914	# Anyone wants to do a port?
21915	;;
21916      irix5* | irix6* | nonstopux*)
21917	case $cc_basename in
21918	  CC*)
21919	    lt_prog_compiler_wl_CXX='-Wl,'
21920	    lt_prog_compiler_static_CXX='-non_shared'
21921	    # CC pic flag -KPIC is the default.
21922	    ;;
21923	  *)
21924	    ;;
21925	esac
21926	;;
21927      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21928	case $cc_basename in
21929	  KCC*)
21930	    # KAI C++ Compiler
21931	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21932	    lt_prog_compiler_pic_CXX='-fPIC'
21933	    ;;
21934	  ecpc* )
21935	    # old Intel C++ for x86_64, which still supported -KPIC.
21936	    lt_prog_compiler_wl_CXX='-Wl,'
21937	    lt_prog_compiler_pic_CXX='-KPIC'
21938	    lt_prog_compiler_static_CXX='-static'
21939	    ;;
21940	  icpc* )
21941	    # Intel C++, used to be incompatible with GCC.
21942	    # ICC 10 doesn't accept -KPIC any more.
21943	    lt_prog_compiler_wl_CXX='-Wl,'
21944	    lt_prog_compiler_pic_CXX='-fPIC'
21945	    lt_prog_compiler_static_CXX='-static'
21946	    ;;
21947	  pgCC* | pgcpp*)
21948	    # Portland Group C++ compiler
21949	    lt_prog_compiler_wl_CXX='-Wl,'
21950	    lt_prog_compiler_pic_CXX='-fpic'
21951	    lt_prog_compiler_static_CXX='-Bstatic'
21952	    ;;
21953	  cxx*)
21954	    # Compaq C++
21955	    # Make sure the PIC flag is empty.  It appears that all Alpha
21956	    # Linux and Compaq Tru64 Unix objects are PIC.
21957	    lt_prog_compiler_pic_CXX=
21958	    lt_prog_compiler_static_CXX='-non_shared'
21959	    ;;
21960	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21961	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21962	    lt_prog_compiler_wl_CXX='-Wl,'
21963	    lt_prog_compiler_pic_CXX='-qpic'
21964	    lt_prog_compiler_static_CXX='-qstaticlink'
21965	    ;;
21966	  *)
21967	    case `$CC -V 2>&1 | sed 5q` in
21968	    *Sun\ C*)
21969	      # Sun C++ 5.9
21970	      lt_prog_compiler_pic_CXX='-KPIC'
21971	      lt_prog_compiler_static_CXX='-Bstatic'
21972	      lt_prog_compiler_wl_CXX='-Qoption ld '
21973	      ;;
21974	    esac
21975	    ;;
21976	esac
21977	;;
21978      lynxos*)
21979	;;
21980      m88k*)
21981	;;
21982      mvs*)
21983	case $cc_basename in
21984	  cxx*)
21985	    lt_prog_compiler_pic_CXX='-W c,exportall'
21986	    ;;
21987	  *)
21988	    ;;
21989	esac
21990	;;
21991      netbsd* | netbsdelf*-gnu)
21992	;;
21993      *qnx* | *nto*)
21994        # QNX uses GNU C++, but need to define -shared option too, otherwise
21995        # it will coredump.
21996        lt_prog_compiler_pic_CXX='-fPIC -shared'
21997        ;;
21998      osf3* | osf4* | osf5*)
21999	case $cc_basename in
22000	  KCC*)
22001	    lt_prog_compiler_wl_CXX='--backend -Wl,'
22002	    ;;
22003	  RCC*)
22004	    # Rational C++ 2.4.1
22005	    lt_prog_compiler_pic_CXX='-pic'
22006	    ;;
22007	  cxx*)
22008	    # Digital/Compaq C++
22009	    lt_prog_compiler_wl_CXX='-Wl,'
22010	    # Make sure the PIC flag is empty.  It appears that all Alpha
22011	    # Linux and Compaq Tru64 Unix objects are PIC.
22012	    lt_prog_compiler_pic_CXX=
22013	    lt_prog_compiler_static_CXX='-non_shared'
22014	    ;;
22015	  *)
22016	    ;;
22017	esac
22018	;;
22019      psos*)
22020	;;
22021      solaris*)
22022	case $cc_basename in
22023	  CC* | sunCC*)
22024	    # Sun C++ 4.2, 5.x and Centerline C++
22025	    lt_prog_compiler_pic_CXX='-KPIC'
22026	    lt_prog_compiler_static_CXX='-Bstatic'
22027	    lt_prog_compiler_wl_CXX='-Qoption ld '
22028	    ;;
22029	  gcx*)
22030	    # Green Hills C++ Compiler
22031	    lt_prog_compiler_pic_CXX='-PIC'
22032	    ;;
22033	  *)
22034	    ;;
22035	esac
22036	;;
22037      sunos4*)
22038	case $cc_basename in
22039	  CC*)
22040	    # Sun C++ 4.x
22041	    lt_prog_compiler_pic_CXX='-pic'
22042	    lt_prog_compiler_static_CXX='-Bstatic'
22043	    ;;
22044	  lcc*)
22045	    # Lucid
22046	    lt_prog_compiler_pic_CXX='-pic'
22047	    ;;
22048	  *)
22049	    ;;
22050	esac
22051	;;
22052      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22053	case $cc_basename in
22054	  CC*)
22055	    lt_prog_compiler_wl_CXX='-Wl,'
22056	    lt_prog_compiler_pic_CXX='-KPIC'
22057	    lt_prog_compiler_static_CXX='-Bstatic'
22058	    ;;
22059	esac
22060	;;
22061      tandem*)
22062	case $cc_basename in
22063	  NCC*)
22064	    # NonStop-UX NCC 3.20
22065	    lt_prog_compiler_pic_CXX='-KPIC'
22066	    ;;
22067	  *)
22068	    ;;
22069	esac
22070	;;
22071      vxworks*)
22072	;;
22073      *)
22074	lt_prog_compiler_can_build_shared_CXX=no
22075	;;
22076    esac
22077  fi
22078
22079case $host_os in
22080  # For platforms that do not support PIC, -DPIC is meaningless:
22081  *djgpp*)
22082    lt_prog_compiler_pic_CXX=
22083    ;;
22084  *)
22085    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22086    ;;
22087esac
22088
22089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22090$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22091if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
22092  $as_echo_n "(cached) " >&6
22093else
22094  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
22095fi
22096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
22097$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
22098lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
22099
22100#
22101# Check to make sure the PIC flag actually works.
22102#
22103if test -n "$lt_prog_compiler_pic_CXX"; then
22104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22105$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22106if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22107  $as_echo_n "(cached) " >&6
22108else
22109  lt_cv_prog_compiler_pic_works_CXX=no
22110   ac_outfile=conftest.$ac_objext
22111   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22112   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
22113   # Insert the option either (1) after the last *FLAGS variable, or
22114   # (2) before a word containing "conftest.", or (3) at the end.
22115   # Note that $ac_compile itself does not contain backslashes and begins
22116   # with a dollar sign (not a hyphen), so the echo should work correctly.
22117   # The option is referenced via a variable to avoid confusing sed.
22118   lt_compile=`echo "$ac_compile" | $SED \
22119   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22120   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22121   -e 's:$: $lt_compiler_flag:'`
22122   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22123   (eval "$lt_compile" 2>conftest.err)
22124   ac_status=$?
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   if (exit $ac_status) && test -s "$ac_outfile"; then
22128     # The compiler can only warn and ignore the option if not recognized
22129     # So say no if there are warnings other than the usual output.
22130     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22131     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22132     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22133       lt_cv_prog_compiler_pic_works_CXX=yes
22134     fi
22135   fi
22136   $RM conftest*
22137
22138fi
22139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22140$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22141
22142if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
22143    case $lt_prog_compiler_pic_CXX in
22144     "" | " "*) ;;
22145     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22146     esac
22147else
22148    lt_prog_compiler_pic_CXX=
22149     lt_prog_compiler_can_build_shared_CXX=no
22150fi
22151
22152fi
22153
22154
22155
22156
22157
22158#
22159# Check to make sure the static flag actually works.
22160#
22161wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22163$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22164if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22165  $as_echo_n "(cached) " >&6
22166else
22167  lt_cv_prog_compiler_static_works_CXX=no
22168   save_LDFLAGS=$LDFLAGS
22169   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22170   echo "$lt_simple_link_test_code" > conftest.$ac_ext
22171   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22172     # The linker can only warn and ignore the option if not recognized
22173     # So say no if there are warnings
22174     if test -s conftest.err; then
22175       # Append any errors to the config.log.
22176       cat conftest.err 1>&5
22177       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22178       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22179       if diff conftest.exp conftest.er2 >/dev/null; then
22180         lt_cv_prog_compiler_static_works_CXX=yes
22181       fi
22182     else
22183       lt_cv_prog_compiler_static_works_CXX=yes
22184     fi
22185   fi
22186   $RM -r conftest*
22187   LDFLAGS=$save_LDFLAGS
22188
22189fi
22190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22191$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22192
22193if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
22194    :
22195else
22196    lt_prog_compiler_static_CXX=
22197fi
22198
22199
22200
22201
22202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22204if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22205  $as_echo_n "(cached) " >&6
22206else
22207  lt_cv_prog_compiler_c_o_CXX=no
22208   $RM -r conftest 2>/dev/null
22209   mkdir conftest
22210   cd conftest
22211   mkdir out
22212   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22213
22214   lt_compiler_flag="-o out/conftest2.$ac_objext"
22215   # Insert the option either (1) after the last *FLAGS variable, or
22216   # (2) before a word containing "conftest.", or (3) at the end.
22217   # Note that $ac_compile itself does not contain backslashes and begins
22218   # with a dollar sign (not a hyphen), so the echo should work correctly.
22219   lt_compile=`echo "$ac_compile" | $SED \
22220   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22222   -e 's:$: $lt_compiler_flag:'`
22223   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22224   (eval "$lt_compile" 2>out/conftest.err)
22225   ac_status=$?
22226   cat out/conftest.err >&5
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22229   then
22230     # The compiler can only warn and ignore the option if not recognized
22231     # So say no if there are warnings
22232     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22233     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22234     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22235       lt_cv_prog_compiler_c_o_CXX=yes
22236     fi
22237   fi
22238   chmod u+w . 2>&5
22239   $RM conftest*
22240   # SGI C++ compiler will create directory out/ii_files/ for
22241   # template instantiation
22242   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22243   $RM out/* && rmdir out
22244   cd ..
22245   $RM -r conftest
22246   $RM conftest*
22247
22248fi
22249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22250$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22251
22252
22253
22254    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22255$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22256if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22257  $as_echo_n "(cached) " >&6
22258else
22259  lt_cv_prog_compiler_c_o_CXX=no
22260   $RM -r conftest 2>/dev/null
22261   mkdir conftest
22262   cd conftest
22263   mkdir out
22264   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22265
22266   lt_compiler_flag="-o out/conftest2.$ac_objext"
22267   # Insert the option either (1) after the last *FLAGS variable, or
22268   # (2) before a word containing "conftest.", or (3) at the end.
22269   # Note that $ac_compile itself does not contain backslashes and begins
22270   # with a dollar sign (not a hyphen), so the echo should work correctly.
22271   lt_compile=`echo "$ac_compile" | $SED \
22272   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22273   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22274   -e 's:$: $lt_compiler_flag:'`
22275   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22276   (eval "$lt_compile" 2>out/conftest.err)
22277   ac_status=$?
22278   cat out/conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22281   then
22282     # The compiler can only warn and ignore the option if not recognized
22283     # So say no if there are warnings
22284     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22285     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22286     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22287       lt_cv_prog_compiler_c_o_CXX=yes
22288     fi
22289   fi
22290   chmod u+w . 2>&5
22291   $RM conftest*
22292   # SGI C++ compiler will create directory out/ii_files/ for
22293   # template instantiation
22294   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22295   $RM out/* && rmdir out
22296   cd ..
22297   $RM -r conftest
22298   $RM conftest*
22299
22300fi
22301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22302$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22303
22304
22305
22306
22307hard_links=nottested
22308if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
22309  # do not overwrite the value of need_locks provided by the user
22310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22311$as_echo_n "checking if we can lock with hard links... " >&6; }
22312  hard_links=yes
22313  $RM conftest*
22314  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22315  touch conftest.a
22316  ln conftest.a conftest.b 2>&5 || hard_links=no
22317  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22319$as_echo "$hard_links" >&6; }
22320  if test no = "$hard_links"; then
22321    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
22322$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
22323    need_locks=warn
22324  fi
22325else
22326  need_locks=no
22327fi
22328
22329
22330
22331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22332$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22333
22334  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22335  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22336  case $host_os in
22337  aix[4-9]*)
22338    # If we're using GNU nm, then we don't want the "-C" option.
22339    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
22340    # Without the "-l" option, or with the "-B" option, AIX nm treats
22341    # weak defined symbols like other global defined symbols, whereas
22342    # GNU nm marks them as "W".
22343    # While the 'weak' keyword is ignored in the Export File, we need
22344    # it in the Import File for the 'aix-soname' feature, so we have
22345    # to replace the "-B" option with "-P" for AIX nm.
22346    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22347      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'
22348    else
22349      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'
22350    fi
22351    ;;
22352  pw32*)
22353    export_symbols_cmds_CXX=$ltdll_cmds
22354    ;;
22355  cygwin* | mingw* | cegcc*)
22356    case $cc_basename in
22357    cl*)
22358      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
22359      ;;
22360    *)
22361      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'
22362      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22363      ;;
22364    esac
22365    ;;
22366  linux* | k*bsd*-gnu | gnu*)
22367    link_all_deplibs_CXX=no
22368    ;;
22369  *)
22370    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22371    ;;
22372  esac
22373
22374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22375$as_echo "$ld_shlibs_CXX" >&6; }
22376test no = "$ld_shlibs_CXX" && can_build_shared=no
22377
22378with_gnu_ld_CXX=$with_gnu_ld
22379
22380
22381
22382
22383
22384
22385#
22386# Do we need to explicitly link libc?
22387#
22388case "x$archive_cmds_need_lc_CXX" in
22389x|xyes)
22390  # Assume -lc should be added
22391  archive_cmds_need_lc_CXX=yes
22392
22393  if test yes,yes = "$GCC,$enable_shared"; then
22394    case $archive_cmds_CXX in
22395    *'~'*)
22396      # FIXME: we may have to deal with multi-command sequences.
22397      ;;
22398    '$CC '*)
22399      # Test whether the compiler implicitly links with -lc since on some
22400      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22401      # to ld, don't add -lc before -lgcc.
22402      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22403$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22404if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22405  $as_echo_n "(cached) " >&6
22406else
22407  $RM conftest*
22408	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22409
22410	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22411  (eval $ac_compile) 2>&5
22412  ac_status=$?
22413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414  test $ac_status = 0; } 2>conftest.err; then
22415	  soname=conftest
22416	  lib=conftest
22417	  libobjs=conftest.$ac_objext
22418	  deplibs=
22419	  wl=$lt_prog_compiler_wl_CXX
22420	  pic_flag=$lt_prog_compiler_pic_CXX
22421	  compiler_flags=-v
22422	  linker_flags=-v
22423	  verstring=
22424	  output_objdir=.
22425	  libname=conftest
22426	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22427	  allow_undefined_flag_CXX=
22428	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22429  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22430  ac_status=$?
22431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22432  test $ac_status = 0; }
22433	  then
22434	    lt_cv_archive_cmds_need_lc_CXX=no
22435	  else
22436	    lt_cv_archive_cmds_need_lc_CXX=yes
22437	  fi
22438	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22439	else
22440	  cat conftest.err 1>&5
22441	fi
22442	$RM conftest*
22443
22444fi
22445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22446$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22447      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22448      ;;
22449    esac
22450  fi
22451  ;;
22452esac
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22516$as_echo_n "checking dynamic linker characteristics... " >&6; }
22517
22518library_names_spec=
22519libname_spec='lib$name'
22520soname_spec=
22521shrext_cmds=.so
22522postinstall_cmds=
22523postuninstall_cmds=
22524finish_cmds=
22525finish_eval=
22526shlibpath_var=
22527shlibpath_overrides_runpath=unknown
22528version_type=none
22529dynamic_linker="$host_os ld.so"
22530sys_lib_dlsearch_path_spec="/lib /usr/lib"
22531need_lib_prefix=unknown
22532hardcode_into_libs=no
22533
22534# when you set need_version to no, make sure it does not cause -set_version
22535# flags to be left without arguments
22536need_version=unknown
22537
22538
22539
22540case $host_os in
22541aix3*)
22542  version_type=linux # correct to gnu/linux during the next big refactor
22543  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22544  shlibpath_var=LIBPATH
22545
22546  # AIX 3 has no versioning support, so we append a major version to the name.
22547  soname_spec='$libname$release$shared_ext$major'
22548  ;;
22549
22550aix[4-9]*)
22551  version_type=linux # correct to gnu/linux during the next big refactor
22552  need_lib_prefix=no
22553  need_version=no
22554  hardcode_into_libs=yes
22555  if test ia64 = "$host_cpu"; then
22556    # AIX 5 supports IA64
22557    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22558    shlibpath_var=LD_LIBRARY_PATH
22559  else
22560    # With GCC up to 2.95.x, collect2 would create an import file
22561    # for dependence libraries.  The import file would start with
22562    # the line '#! .'.  This would cause the generated library to
22563    # depend on '.', always an invalid library.  This was fixed in
22564    # development snapshots of GCC prior to 3.0.
22565    case $host_os in
22566      aix4 | aix4.[01] | aix4.[01].*)
22567      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22568	   echo ' yes '
22569	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22570	:
22571      else
22572	can_build_shared=no
22573      fi
22574      ;;
22575    esac
22576    # Using Import Files as archive members, it is possible to support
22577    # filename-based versioning of shared library archives on AIX. While
22578    # this would work for both with and without runtime linking, it will
22579    # prevent static linking of such archives. So we do filename-based
22580    # shared library versioning with .so extension only, which is used
22581    # when both runtime linking and shared linking is enabled.
22582    # Unfortunately, runtime linking may impact performance, so we do
22583    # not want this to be the default eventually. Also, we use the
22584    # versioned .so libs for executables only if there is the -brtl
22585    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22586    # To allow for filename-based versioning support, we need to create
22587    # libNAME.so.V as an archive file, containing:
22588    # *) an Import File, referring to the versioned filename of the
22589    #    archive as well as the shared archive member, telling the
22590    #    bitwidth (32 or 64) of that shared object, and providing the
22591    #    list of exported symbols of that shared object, eventually
22592    #    decorated with the 'weak' keyword
22593    # *) the shared object with the F_LOADONLY flag set, to really avoid
22594    #    it being seen by the linker.
22595    # At run time we better use the real file rather than another symlink,
22596    # but for link time we create the symlink libNAME.so -> libNAME.so.V
22597
22598    case $with_aix_soname,$aix_use_runtimelinking in
22599    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22600    # soname into executable. Probably we can add versioning support to
22601    # collect2, so additional links can be useful in future.
22602    aix,yes) # traditional libtool
22603      dynamic_linker='AIX unversionable lib.so'
22604      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22605      # instead of lib<name>.a to let people know that these are not
22606      # typical AIX shared libraries.
22607      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22608      ;;
22609    aix,no) # traditional AIX only
22610      dynamic_linker='AIX lib.a(lib.so.V)'
22611      # We preserve .a as extension for shared libraries through AIX4.2
22612      # and later when we are not doing run time linking.
22613      library_names_spec='$libname$release.a $libname.a'
22614      soname_spec='$libname$release$shared_ext$major'
22615      ;;
22616    svr4,*) # full svr4 only
22617      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22618      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22619      # We do not specify a path in Import Files, so LIBPATH fires.
22620      shlibpath_overrides_runpath=yes
22621      ;;
22622    *,yes) # both, prefer svr4
22623      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22624      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22625      # unpreferred sharedlib libNAME.a needs extra handling
22626      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"'
22627      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"'
22628      # We do not specify a path in Import Files, so LIBPATH fires.
22629      shlibpath_overrides_runpath=yes
22630      ;;
22631    *,no) # both, prefer aix
22632      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22633      library_names_spec='$libname$release.a $libname.a'
22634      soname_spec='$libname$release$shared_ext$major'
22635      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22636      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)'
22637      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"'
22638      ;;
22639    esac
22640    shlibpath_var=LIBPATH
22641  fi
22642  ;;
22643
22644amigaos*)
22645  case $host_cpu in
22646  powerpc)
22647    # Since July 2007 AmigaOS4 officially supports .so libraries.
22648    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22649    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22650    ;;
22651  m68k)
22652    library_names_spec='$libname.ixlibrary $libname.a'
22653    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22654    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'
22655    ;;
22656  esac
22657  ;;
22658
22659beos*)
22660  library_names_spec='$libname$shared_ext'
22661  dynamic_linker="$host_os ld.so"
22662  shlibpath_var=LIBRARY_PATH
22663  ;;
22664
22665bsdi[45]*)
22666  version_type=linux # correct to gnu/linux during the next big refactor
22667  need_version=no
22668  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22669  soname_spec='$libname$release$shared_ext$major'
22670  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22671  shlibpath_var=LD_LIBRARY_PATH
22672  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22673  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22674  # the default ld.so.conf also contains /usr/contrib/lib and
22675  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22676  # libtool to hard-code these into programs
22677  ;;
22678
22679cygwin* | mingw* | pw32* | cegcc*)
22680  version_type=windows
22681  shrext_cmds=.dll
22682  need_version=no
22683  need_lib_prefix=no
22684
22685  case $GCC,$cc_basename in
22686  yes,*)
22687    # gcc
22688    library_names_spec='$libname.dll.a'
22689    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22690    postinstall_cmds='base_file=`basename \$file`~
22691      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22692      dldir=$destdir/`dirname \$dlpath`~
22693      test -d \$dldir || mkdir -p \$dldir~
22694      $install_prog $dir/$dlname \$dldir/$dlname~
22695      chmod a+x \$dldir/$dlname~
22696      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22697        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22698      fi'
22699    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22700      dlpath=$dir/\$dldll~
22701       $RM \$dlpath'
22702    shlibpath_overrides_runpath=yes
22703
22704    case $host_os in
22705    cygwin*)
22706      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22707      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22708
22709      ;;
22710    mingw* | cegcc*)
22711      # MinGW DLLs use traditional 'lib' prefix
22712      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22713      ;;
22714    pw32*)
22715      # pw32 DLLs use 'pw' prefix rather than 'lib'
22716      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22717      ;;
22718    esac
22719    dynamic_linker='Win32 ld.exe'
22720    ;;
22721
22722  *,cl*)
22723    # Native MSVC
22724    libname_spec='$name'
22725    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22726    library_names_spec='$libname.dll.lib'
22727
22728    case $build_os in
22729    mingw*)
22730      sys_lib_search_path_spec=
22731      lt_save_ifs=$IFS
22732      IFS=';'
22733      for lt_path in $LIB
22734      do
22735        IFS=$lt_save_ifs
22736        # Let DOS variable expansion print the short 8.3 style file name.
22737        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22738        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22739      done
22740      IFS=$lt_save_ifs
22741      # Convert to MSYS style.
22742      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22743      ;;
22744    cygwin*)
22745      # Convert to unix form, then to dos form, then back to unix form
22746      # but this time dos style (no spaces!) so that the unix form looks
22747      # like /cygdrive/c/PROGRA~1:/cygdr...
22748      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22749      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22750      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22751      ;;
22752    *)
22753      sys_lib_search_path_spec=$LIB
22754      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22755        # It is most probably a Windows format PATH.
22756        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22757      else
22758        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22759      fi
22760      # FIXME: find the short name or the path components, as spaces are
22761      # common. (e.g. "Program Files" -> "PROGRA~1")
22762      ;;
22763    esac
22764
22765    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22766    postinstall_cmds='base_file=`basename \$file`~
22767      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22768      dldir=$destdir/`dirname \$dlpath`~
22769      test -d \$dldir || mkdir -p \$dldir~
22770      $install_prog $dir/$dlname \$dldir/$dlname'
22771    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22772      dlpath=$dir/\$dldll~
22773       $RM \$dlpath'
22774    shlibpath_overrides_runpath=yes
22775    dynamic_linker='Win32 link.exe'
22776    ;;
22777
22778  *)
22779    # Assume MSVC wrapper
22780    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22781    dynamic_linker='Win32 ld.exe'
22782    ;;
22783  esac
22784  # FIXME: first we should search . and the directory the executable is in
22785  shlibpath_var=PATH
22786  ;;
22787
22788darwin* | rhapsody*)
22789  dynamic_linker="$host_os dyld"
22790  version_type=darwin
22791  need_lib_prefix=no
22792  need_version=no
22793  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
22794  soname_spec='$libname$release$major$shared_ext'
22795  shlibpath_overrides_runpath=yes
22796  shlibpath_var=DYLD_LIBRARY_PATH
22797  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22798
22799  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22800  ;;
22801
22802dgux*)
22803  version_type=linux # correct to gnu/linux during the next big refactor
22804  need_lib_prefix=no
22805  need_version=no
22806  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22807  soname_spec='$libname$release$shared_ext$major'
22808  shlibpath_var=LD_LIBRARY_PATH
22809  ;;
22810
22811freebsd* | dragonfly*)
22812  # DragonFly does not have aout.  When/if they implement a new
22813  # versioning mechanism, adjust this.
22814  if test -x /usr/bin/objformat; then
22815    objformat=`/usr/bin/objformat`
22816  else
22817    case $host_os in
22818    freebsd[23].*) objformat=aout ;;
22819    *) objformat=elf ;;
22820    esac
22821  fi
22822  version_type=freebsd-$objformat
22823  case $version_type in
22824    freebsd-elf*)
22825      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22826      soname_spec='$libname$release$shared_ext$major'
22827      need_version=no
22828      need_lib_prefix=no
22829      ;;
22830    freebsd-*)
22831      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22832      need_version=yes
22833      ;;
22834  esac
22835  shlibpath_var=LD_LIBRARY_PATH
22836  case $host_os in
22837  freebsd2.*)
22838    shlibpath_overrides_runpath=yes
22839    ;;
22840  freebsd3.[01]* | freebsdelf3.[01]*)
22841    shlibpath_overrides_runpath=yes
22842    hardcode_into_libs=yes
22843    ;;
22844  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22845  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22846    shlibpath_overrides_runpath=no
22847    hardcode_into_libs=yes
22848    ;;
22849  *) # from 4.6 on, and DragonFly
22850    shlibpath_overrides_runpath=yes
22851    hardcode_into_libs=yes
22852    ;;
22853  esac
22854  ;;
22855
22856haiku*)
22857  version_type=linux # correct to gnu/linux during the next big refactor
22858  need_lib_prefix=no
22859  need_version=no
22860  dynamic_linker="$host_os runtime_loader"
22861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22862  soname_spec='$libname$release$shared_ext$major'
22863  shlibpath_var=LIBRARY_PATH
22864  shlibpath_overrides_runpath=no
22865  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22866  hardcode_into_libs=yes
22867  ;;
22868
22869hpux9* | hpux10* | hpux11*)
22870  # Give a soname corresponding to the major version so that dld.sl refuses to
22871  # link against other versions.
22872  version_type=sunos
22873  need_lib_prefix=no
22874  need_version=no
22875  case $host_cpu in
22876  ia64*)
22877    shrext_cmds='.so'
22878    hardcode_into_libs=yes
22879    dynamic_linker="$host_os dld.so"
22880    shlibpath_var=LD_LIBRARY_PATH
22881    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22882    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22883    soname_spec='$libname$release$shared_ext$major'
22884    if test 32 = "$HPUX_IA64_MODE"; then
22885      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22886      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22887    else
22888      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22889      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22890    fi
22891    ;;
22892  hppa*64*)
22893    shrext_cmds='.sl'
22894    hardcode_into_libs=yes
22895    dynamic_linker="$host_os dld.sl"
22896    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22897    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22898    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22899    soname_spec='$libname$release$shared_ext$major'
22900    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22901    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22902    ;;
22903  *)
22904    shrext_cmds='.sl'
22905    dynamic_linker="$host_os dld.sl"
22906    shlibpath_var=SHLIB_PATH
22907    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22908    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22909    soname_spec='$libname$release$shared_ext$major'
22910    ;;
22911  esac
22912  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22913  postinstall_cmds='chmod 555 $lib'
22914  # or fails outright, so override atomically:
22915  install_override_mode=555
22916  ;;
22917
22918interix[3-9]*)
22919  version_type=linux # correct to gnu/linux during the next big refactor
22920  need_lib_prefix=no
22921  need_version=no
22922  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22923  soname_spec='$libname$release$shared_ext$major'
22924  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22925  shlibpath_var=LD_LIBRARY_PATH
22926  shlibpath_overrides_runpath=no
22927  hardcode_into_libs=yes
22928  ;;
22929
22930irix5* | irix6* | nonstopux*)
22931  case $host_os in
22932    nonstopux*) version_type=nonstopux ;;
22933    *)
22934	if test yes = "$lt_cv_prog_gnu_ld"; then
22935		version_type=linux # correct to gnu/linux during the next big refactor
22936	else
22937		version_type=irix
22938	fi ;;
22939  esac
22940  need_lib_prefix=no
22941  need_version=no
22942  soname_spec='$libname$release$shared_ext$major'
22943  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22944  case $host_os in
22945  irix5* | nonstopux*)
22946    libsuff= shlibsuff=
22947    ;;
22948  *)
22949    case $LD in # libtool.m4 will add one of these switches to LD
22950    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22951      libsuff= shlibsuff= libmagic=32-bit;;
22952    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22953      libsuff=32 shlibsuff=N32 libmagic=N32;;
22954    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22955      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22956    *) libsuff= shlibsuff= libmagic=never-match;;
22957    esac
22958    ;;
22959  esac
22960  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22961  shlibpath_overrides_runpath=no
22962  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22963  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22964  hardcode_into_libs=yes
22965  ;;
22966
22967# No shared lib support for Linux oldld, aout, or coff.
22968linux*oldld* | linux*aout* | linux*coff*)
22969  dynamic_linker=no
22970  ;;
22971
22972linux*android*)
22973  version_type=none # Android doesn't support versioned libraries.
22974  need_lib_prefix=no
22975  need_version=no
22976  library_names_spec='$libname$release$shared_ext'
22977  soname_spec='$libname$release$shared_ext'
22978  finish_cmds=
22979  shlibpath_var=LD_LIBRARY_PATH
22980  shlibpath_overrides_runpath=yes
22981
22982  # This implies no fast_install, which is unacceptable.
22983  # Some rework will be needed to allow for fast_install
22984  # before this can be enabled.
22985  hardcode_into_libs=yes
22986
22987  dynamic_linker='Android linker'
22988  # Don't embed -rpath directories since the linker doesn't support them.
22989  hardcode_libdir_flag_spec_CXX='-L$libdir'
22990  ;;
22991
22992# This must be glibc/ELF.
22993linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22994  version_type=linux # correct to gnu/linux during the next big refactor
22995  need_lib_prefix=no
22996  need_version=no
22997  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22998  soname_spec='$libname$release$shared_ext$major'
22999  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23000  shlibpath_var=LD_LIBRARY_PATH
23001  shlibpath_overrides_runpath=no
23002
23003  # Some binutils ld are patched to set DT_RUNPATH
23004  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
23005  $as_echo_n "(cached) " >&6
23006else
23007  lt_cv_shlibpath_overrides_runpath=no
23008    save_LDFLAGS=$LDFLAGS
23009    save_libdir=$libdir
23010    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23011	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23013/* end confdefs.h.  */
23014
23015int
23016main ()
23017{
23018
23019  ;
23020  return 0;
23021}
23022_ACEOF
23023if ac_fn_cxx_try_link "$LINENO"; then :
23024  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23025  lt_cv_shlibpath_overrides_runpath=yes
23026fi
23027fi
23028rm -f core conftest.err conftest.$ac_objext \
23029    conftest$ac_exeext conftest.$ac_ext
23030    LDFLAGS=$save_LDFLAGS
23031    libdir=$save_libdir
23032
23033fi
23034
23035  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
23036
23037  # This implies no fast_install, which is unacceptable.
23038  # Some rework will be needed to allow for fast_install
23039  # before this can be enabled.
23040  hardcode_into_libs=yes
23041
23042  # Ideally, we could use ldconfig to report *all* directores which are
23043  # searched for libraries, however this is still not possible.  Aside from not
23044  # being certain /sbin/ldconfig is available, command
23045  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
23046  # even though it is searched at run-time.  Try to do the best guess by
23047  # appending ld.so.conf contents (and includes) to the search path.
23048  if test -f /etc/ld.so.conf; then
23049    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' ' '`
23050    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23051  fi
23052
23053  # We used to test for /lib/ld.so.1 and disable shared libraries on
23054  # powerpc, because MkLinux only supported shared libraries with the
23055  # GNU dynamic linker.  Since this was broken with cross compilers,
23056  # most powerpc-linux boxes support dynamic linking these days and
23057  # people can always --disable-shared, the test was removed, and we
23058  # assume the GNU/Linux dynamic linker is in use.
23059  dynamic_linker='GNU/Linux ld.so'
23060  ;;
23061
23062netbsdelf*-gnu)
23063  version_type=linux
23064  need_lib_prefix=no
23065  need_version=no
23066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23067  soname_spec='${libname}${release}${shared_ext}$major'
23068  shlibpath_var=LD_LIBRARY_PATH
23069  shlibpath_overrides_runpath=no
23070  hardcode_into_libs=yes
23071  dynamic_linker='NetBSD ld.elf_so'
23072  ;;
23073
23074netbsd*)
23075  version_type=sunos
23076  need_lib_prefix=no
23077  need_version=no
23078  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23079    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23080    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23081    dynamic_linker='NetBSD (a.out) ld.so'
23082  else
23083    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23084    soname_spec='$libname$release$shared_ext$major'
23085    dynamic_linker='NetBSD ld.elf_so'
23086  fi
23087  shlibpath_var=LD_LIBRARY_PATH
23088  shlibpath_overrides_runpath=yes
23089  hardcode_into_libs=yes
23090  ;;
23091
23092newsos6)
23093  version_type=linux # correct to gnu/linux during the next big refactor
23094  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23095  shlibpath_var=LD_LIBRARY_PATH
23096  shlibpath_overrides_runpath=yes
23097  ;;
23098
23099*nto* | *qnx*)
23100  version_type=qnx
23101  need_lib_prefix=no
23102  need_version=no
23103  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23104  soname_spec='$libname$release$shared_ext$major'
23105  shlibpath_var=LD_LIBRARY_PATH
23106  shlibpath_overrides_runpath=no
23107  hardcode_into_libs=yes
23108  dynamic_linker='ldqnx.so'
23109  ;;
23110
23111openbsd* | bitrig*)
23112  version_type=sunos
23113  sys_lib_dlsearch_path_spec=/usr/lib
23114  need_lib_prefix=no
23115  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
23116    need_version=no
23117  else
23118    need_version=yes
23119  fi
23120  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23121  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23122  shlibpath_var=LD_LIBRARY_PATH
23123  shlibpath_overrides_runpath=yes
23124  ;;
23125
23126os2*)
23127  libname_spec='$name'
23128  version_type=windows
23129  shrext_cmds=.dll
23130  need_version=no
23131  need_lib_prefix=no
23132  # OS/2 can only load a DLL with a base name of 8 characters or less.
23133  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
23134    v=$($ECHO $release$versuffix | tr -d .-);
23135    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
23136    $ECHO $n$v`$shared_ext'
23137  library_names_spec='${libname}_dll.$libext'
23138  dynamic_linker='OS/2 ld.exe'
23139  shlibpath_var=BEGINLIBPATH
23140  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23141  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23142  postinstall_cmds='base_file=`basename \$file`~
23143    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
23144    dldir=$destdir/`dirname \$dlpath`~
23145    test -d \$dldir || mkdir -p \$dldir~
23146    $install_prog $dir/$dlname \$dldir/$dlname~
23147    chmod a+x \$dldir/$dlname~
23148    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23149      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23150    fi'
23151  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
23152    dlpath=$dir/\$dldll~
23153    $RM \$dlpath'
23154  ;;
23155
23156osf3* | osf4* | osf5*)
23157  version_type=osf
23158  need_lib_prefix=no
23159  need_version=no
23160  soname_spec='$libname$release$shared_ext$major'
23161  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23162  shlibpath_var=LD_LIBRARY_PATH
23163  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23164  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23165  ;;
23166
23167rdos*)
23168  dynamic_linker=no
23169  ;;
23170
23171solaris*)
23172  version_type=linux # correct to gnu/linux during the next big refactor
23173  need_lib_prefix=no
23174  need_version=no
23175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23176  soname_spec='$libname$release$shared_ext$major'
23177  shlibpath_var=LD_LIBRARY_PATH
23178  shlibpath_overrides_runpath=yes
23179  hardcode_into_libs=yes
23180  # ldd complains unless libraries are executable
23181  postinstall_cmds='chmod +x $lib'
23182  ;;
23183
23184sunos4*)
23185  version_type=sunos
23186  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23187  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23188  shlibpath_var=LD_LIBRARY_PATH
23189  shlibpath_overrides_runpath=yes
23190  if test yes = "$with_gnu_ld"; then
23191    need_lib_prefix=no
23192  fi
23193  need_version=yes
23194  ;;
23195
23196sysv4 | sysv4.3*)
23197  version_type=linux # correct to gnu/linux during the next big refactor
23198  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23199  soname_spec='$libname$release$shared_ext$major'
23200  shlibpath_var=LD_LIBRARY_PATH
23201  case $host_vendor in
23202    sni)
23203      shlibpath_overrides_runpath=no
23204      need_lib_prefix=no
23205      runpath_var=LD_RUN_PATH
23206      ;;
23207    siemens)
23208      need_lib_prefix=no
23209      ;;
23210    motorola)
23211      need_lib_prefix=no
23212      need_version=no
23213      shlibpath_overrides_runpath=no
23214      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23215      ;;
23216  esac
23217  ;;
23218
23219sysv4*MP*)
23220  if test -d /usr/nec; then
23221    version_type=linux # correct to gnu/linux during the next big refactor
23222    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
23223    soname_spec='$libname$shared_ext.$major'
23224    shlibpath_var=LD_LIBRARY_PATH
23225  fi
23226  ;;
23227
23228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23229  version_type=sco
23230  need_lib_prefix=no
23231  need_version=no
23232  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
23233  soname_spec='$libname$release$shared_ext$major'
23234  shlibpath_var=LD_LIBRARY_PATH
23235  shlibpath_overrides_runpath=yes
23236  hardcode_into_libs=yes
23237  if test yes = "$with_gnu_ld"; then
23238    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23239  else
23240    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23241    case $host_os in
23242      sco3.2v5*)
23243        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23244	;;
23245    esac
23246  fi
23247  sys_lib_dlsearch_path_spec='/usr/lib'
23248  ;;
23249
23250tpf*)
23251  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
23252  version_type=linux # correct to gnu/linux during the next big refactor
23253  need_lib_prefix=no
23254  need_version=no
23255  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23256  shlibpath_var=LD_LIBRARY_PATH
23257  shlibpath_overrides_runpath=no
23258  hardcode_into_libs=yes
23259  ;;
23260
23261uts4*)
23262  version_type=linux # correct to gnu/linux during the next big refactor
23263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23264  soname_spec='$libname$release$shared_ext$major'
23265  shlibpath_var=LD_LIBRARY_PATH
23266  ;;
23267
23268*)
23269  dynamic_linker=no
23270  ;;
23271esac
23272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23273$as_echo "$dynamic_linker" >&6; }
23274test no = "$dynamic_linker" && can_build_shared=no
23275
23276variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23277if test yes = "$GCC"; then
23278  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23279fi
23280
23281if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
23282  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
23283fi
23284
23285if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
23286  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
23287fi
23288
23289# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
23290configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
23291
23292# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
23293func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
23294
23295# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
23296configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23338$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23339hardcode_action_CXX=
23340if test -n "$hardcode_libdir_flag_spec_CXX" ||
23341   test -n "$runpath_var_CXX" ||
23342   test yes = "$hardcode_automatic_CXX"; then
23343
23344  # We can hardcode non-existent directories.
23345  if test no != "$hardcode_direct_CXX" &&
23346     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23347     # have to relink, otherwise we might link with an installed library
23348     # when we should be linking with a yet-to-be-installed one
23349     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
23350     test no != "$hardcode_minus_L_CXX"; then
23351    # Linking always hardcodes the temporary library directory.
23352    hardcode_action_CXX=relink
23353  else
23354    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23355    hardcode_action_CXX=immediate
23356  fi
23357else
23358  # We cannot hardcode anything, or else we can only hardcode existing
23359  # directories.
23360  hardcode_action_CXX=unsupported
23361fi
23362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23363$as_echo "$hardcode_action_CXX" >&6; }
23364
23365if test relink = "$hardcode_action_CXX" ||
23366   test yes = "$inherit_rpath_CXX"; then
23367  # Fast installation is not supported
23368  enable_fast_install=no
23369elif test yes = "$shlibpath_overrides_runpath" ||
23370     test no = "$enable_shared"; then
23371  # Fast installation is not necessary
23372  enable_fast_install=needless
23373fi
23374
23375
23376
23377
23378
23379
23380
23381  fi # test -n "$compiler"
23382
23383  CC=$lt_save_CC
23384  CFLAGS=$lt_save_CFLAGS
23385  LDCXX=$LD
23386  LD=$lt_save_LD
23387  GCC=$lt_save_GCC
23388  with_gnu_ld=$lt_save_with_gnu_ld
23389  lt_cv_path_LDCXX=$lt_cv_path_LD
23390  lt_cv_path_LD=$lt_save_path_LD
23391  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23392  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23393fi # test yes != "$_lt_caught_CXX_error"
23394
23395ac_ext=c
23396ac_cpp='$CPP $CPPFLAGS'
23397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399ac_compiler_gnu=$ac_cv_c_compiler_gnu
23400
23401
23402# Extract the first word of "$CXX", so it can be a program name with args.
23403set dummy $CXX; ac_word=$2
23404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23405$as_echo_n "checking for $ac_word... " >&6; }
23406if ${ac_cv_prog_HAVE_CXX+:} false; then :
23407  $as_echo_n "(cached) " >&6
23408else
23409  if test -n "$HAVE_CXX"; then
23410  ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
23411else
23412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23413for as_dir in $PATH
23414do
23415  IFS=$as_save_IFS
23416  test -z "$as_dir" && as_dir=.
23417    for ac_exec_ext in '' $ac_executable_extensions; do
23418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23419    ac_cv_prog_HAVE_CXX="yes"
23420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23421    break 2
23422  fi
23423done
23424  done
23425IFS=$as_save_IFS
23426
23427  test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
23428fi
23429fi
23430HAVE_CXX=$ac_cv_prog_HAVE_CXX
23431if test -n "$HAVE_CXX"; then
23432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CXX" >&5
23433$as_echo "$HAVE_CXX" >&6; }
23434else
23435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436$as_echo "no" >&6; }
23437fi
23438
23439
23440
23441ac_ext=m
23442ac_cpp='$OBJCPP $CPPFLAGS'
23443ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23444ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23445ac_compiler_gnu=$ac_cv_objc_compiler_gnu
23446if test -n "$ac_tool_prefix"; then
23447  for ac_prog in gcc objcc objc cc CC
23448  do
23449    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23450set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23452$as_echo_n "checking for $ac_word... " >&6; }
23453if ${ac_cv_prog_OBJC+:} false; then :
23454  $as_echo_n "(cached) " >&6
23455else
23456  if test -n "$OBJC"; then
23457  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
23458else
23459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23460for as_dir in $PATH
23461do
23462  IFS=$as_save_IFS
23463  test -z "$as_dir" && as_dir=.
23464    for ac_exec_ext in '' $ac_executable_extensions; do
23465  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23466    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
23467    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23468    break 2
23469  fi
23470done
23471  done
23472IFS=$as_save_IFS
23473
23474fi
23475fi
23476OBJC=$ac_cv_prog_OBJC
23477if test -n "$OBJC"; then
23478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
23479$as_echo "$OBJC" >&6; }
23480else
23481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23482$as_echo "no" >&6; }
23483fi
23484
23485
23486    test -n "$OBJC" && break
23487  done
23488fi
23489if test -z "$OBJC"; then
23490  ac_ct_OBJC=$OBJC
23491  for ac_prog in gcc objcc objc cc CC
23492do
23493  # Extract the first word of "$ac_prog", so it can be a program name with args.
23494set dummy $ac_prog; ac_word=$2
23495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23496$as_echo_n "checking for $ac_word... " >&6; }
23497if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
23498  $as_echo_n "(cached) " >&6
23499else
23500  if test -n "$ac_ct_OBJC"; then
23501  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
23502else
23503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504for as_dir in $PATH
23505do
23506  IFS=$as_save_IFS
23507  test -z "$as_dir" && as_dir=.
23508    for ac_exec_ext in '' $ac_executable_extensions; do
23509  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510    ac_cv_prog_ac_ct_OBJC="$ac_prog"
23511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23512    break 2
23513  fi
23514done
23515  done
23516IFS=$as_save_IFS
23517
23518fi
23519fi
23520ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
23521if test -n "$ac_ct_OBJC"; then
23522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
23523$as_echo "$ac_ct_OBJC" >&6; }
23524else
23525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23526$as_echo "no" >&6; }
23527fi
23528
23529
23530  test -n "$ac_ct_OBJC" && break
23531done
23532
23533  if test "x$ac_ct_OBJC" = x; then
23534    OBJC="gcc"
23535  else
23536    case $cross_compiling:$ac_tool_warned in
23537yes:)
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23540ac_tool_warned=yes ;;
23541esac
23542    OBJC=$ac_ct_OBJC
23543  fi
23544fi
23545
23546# Provide some information about the compiler.
23547$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
23548set X $ac_compile
23549ac_compiler=$2
23550for ac_option in --version -v -V -qversion; do
23551  { { ac_try="$ac_compiler $ac_option >&5"
23552case "(($ac_try" in
23553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554  *) ac_try_echo=$ac_try;;
23555esac
23556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23557$as_echo "$ac_try_echo"; } >&5
23558  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23559  ac_status=$?
23560  if test -s conftest.err; then
23561    sed '10a\
23562... rest of stderr output deleted ...
23563         10q' conftest.err >conftest.er1
23564    cat conftest.er1 >&5
23565  fi
23566  rm -f conftest.er1 conftest.err
23567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23568  test $ac_status = 0; }
23569done
23570
23571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
23572$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
23573if ${ac_cv_objc_compiler_gnu+:} false; then :
23574  $as_echo_n "(cached) " >&6
23575else
23576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23577/* end confdefs.h.  */
23578
23579int
23580main ()
23581{
23582#ifndef __GNUC__
23583       choke me
23584#endif
23585
23586  ;
23587  return 0;
23588}
23589_ACEOF
23590if ac_fn_objc_try_compile "$LINENO"; then :
23591  ac_compiler_gnu=yes
23592else
23593  ac_compiler_gnu=no
23594fi
23595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596ac_cv_objc_compiler_gnu=$ac_compiler_gnu
23597
23598fi
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
23600$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
23601if test $ac_compiler_gnu = yes; then
23602  GOBJC=yes
23603else
23604  GOBJC=
23605fi
23606ac_test_OBJCFLAGS=${OBJCFLAGS+set}
23607ac_save_OBJCFLAGS=$OBJCFLAGS
23608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
23609$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
23610if ${ac_cv_prog_objc_g+:} false; then :
23611  $as_echo_n "(cached) " >&6
23612else
23613  ac_save_objc_werror_flag=$ac_objc_werror_flag
23614   ac_objc_werror_flag=yes
23615   ac_cv_prog_objc_g=no
23616   OBJCFLAGS="-g"
23617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23618/* end confdefs.h.  */
23619
23620int
23621main ()
23622{
23623
23624  ;
23625  return 0;
23626}
23627_ACEOF
23628if ac_fn_objc_try_compile "$LINENO"; then :
23629  ac_cv_prog_objc_g=yes
23630else
23631  OBJCFLAGS=""
23632      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23633/* end confdefs.h.  */
23634
23635int
23636main ()
23637{
23638
23639  ;
23640  return 0;
23641}
23642_ACEOF
23643if ac_fn_objc_try_compile "$LINENO"; then :
23644
23645else
23646  ac_objc_werror_flag=$ac_save_objc_werror_flag
23647	 OBJCFLAGS="-g"
23648	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649/* end confdefs.h.  */
23650
23651int
23652main ()
23653{
23654
23655  ;
23656  return 0;
23657}
23658_ACEOF
23659if ac_fn_objc_try_compile "$LINENO"; then :
23660  ac_cv_prog_objc_g=yes
23661fi
23662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663fi
23664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23665fi
23666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667   ac_objc_werror_flag=$ac_save_objc_werror_flag
23668fi
23669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
23670$as_echo "$ac_cv_prog_objc_g" >&6; }
23671if test "$ac_test_OBJCFLAGS" = set; then
23672  OBJCFLAGS=$ac_save_OBJCFLAGS
23673elif test $ac_cv_prog_objc_g = yes; then
23674  if test "$GOBJC" = yes; then
23675    OBJCFLAGS="-g -O2"
23676  else
23677    OBJCFLAGS="-g"
23678  fi
23679else
23680  if test "$GOBJC" = yes; then
23681    OBJCFLAGS="-O2"
23682  else
23683    OBJCFLAGS=
23684  fi
23685fi
23686ac_ext=c
23687ac_cpp='$CPP $CPPFLAGS'
23688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23690ac_compiler_gnu=$ac_cv_c_compiler_gnu
23691
23692depcc="$OBJC" am_compiler_list='gcc3 gcc'
23693
23694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23695$as_echo_n "checking dependency style of $depcc... " >&6; }
23696if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
23697  $as_echo_n "(cached) " >&6
23698else
23699  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23700  # We make a subdir and do the tests there.  Otherwise we can end up
23701  # making bogus files that we don't know about and never remove.  For
23702  # instance it was reported that on HP-UX the gcc test will end up
23703  # making a dummy file named 'D' -- because '-MD' means "put the output
23704  # in D".
23705  rm -rf conftest.dir
23706  mkdir conftest.dir
23707  # Copy depcomp to subdir because otherwise we won't find it if we're
23708  # using a relative directory.
23709  cp "$am_depcomp" conftest.dir
23710  cd conftest.dir
23711  # We will build objects and dependencies in a subdirectory because
23712  # it helps to detect inapplicable dependency modes.  For instance
23713  # both Tru64's cc and ICC support -MD to output dependencies as a
23714  # side effect of compilation, but ICC will put the dependencies in
23715  # the current directory while Tru64 will put them in the object
23716  # directory.
23717  mkdir sub
23718
23719  am_cv_OBJC_dependencies_compiler_type=none
23720  if test "$am_compiler_list" = ""; then
23721     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23722  fi
23723  am__universal=false
23724
23725
23726  for depmode in $am_compiler_list; do
23727    # Setup a source with many dependencies, because some compilers
23728    # like to wrap large dependency lists on column 80 (with \), and
23729    # we should not choose a depcomp mode which is confused by this.
23730    #
23731    # We need to recreate these files for each test, as the compiler may
23732    # overwrite some of them when testing with obscure command lines.
23733    # This happens at least with the AIX C compiler.
23734    : > sub/conftest.c
23735    for i in 1 2 3 4 5 6; do
23736      echo '#include "conftst'$i'.h"' >> sub/conftest.c
23737      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
23738      # Solaris 10 /bin/sh.
23739      echo '/* dummy */' > sub/conftst$i.h
23740    done
23741    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23742
23743    # We check with '-c' and '-o' for the sake of the "dashmstdout"
23744    # mode.  It turns out that the SunPro C++ compiler does not properly
23745    # handle '-M -o', and we need to detect this.  Also, some Intel
23746    # versions had trouble with output in subdirs.
23747    am__obj=sub/conftest.${OBJEXT-o}
23748    am__minus_obj="-o $am__obj"
23749    case $depmode in
23750    gcc)
23751      # This depmode causes a compiler race in universal mode.
23752      test "$am__universal" = false || continue
23753      ;;
23754    nosideeffect)
23755      # After this tag, mechanisms are not by side-effect, so they'll
23756      # only be used when explicitly requested.
23757      if test "x$enable_dependency_tracking" = xyes; then
23758	continue
23759      else
23760	break
23761      fi
23762      ;;
23763    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
23764      # This compiler won't grok '-c -o', but also, the minuso test has
23765      # not run yet.  These depmodes are late enough in the game, and
23766      # so weak that their functioning should not be impacted.
23767      am__obj=conftest.${OBJEXT-o}
23768      am__minus_obj=
23769      ;;
23770    none) break ;;
23771    esac
23772    if depmode=$depmode \
23773       source=sub/conftest.c object=$am__obj \
23774       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23775       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23776         >/dev/null 2>conftest.err &&
23777       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23778       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23779       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23780       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23781      # icc doesn't choke on unknown options, it will just issue warnings
23782      # or remarks (even with -Werror).  So we grep stderr for any message
23783      # that says an option was ignored or not supported.
23784      # When given -MP, icc 7.0 and 7.1 complain thusly:
23785      #   icc: Command line warning: ignoring option '-M'; no argument required
23786      # The diagnosis changed in icc 8.0:
23787      #   icc: Command line remark: option '-MP' not supported
23788      if (grep 'ignoring option' conftest.err ||
23789          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23790        am_cv_OBJC_dependencies_compiler_type=$depmode
23791        break
23792      fi
23793    fi
23794  done
23795
23796  cd ..
23797  rm -rf conftest.dir
23798else
23799  am_cv_OBJC_dependencies_compiler_type=none
23800fi
23801
23802fi
23803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
23804$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
23805OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
23806
23807 if
23808  test "x$enable_dependency_tracking" != xno \
23809  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
23810  am__fastdepOBJC_TRUE=
23811  am__fastdepOBJC_FALSE='#'
23812else
23813  am__fastdepOBJC_TRUE='#'
23814  am__fastdepOBJC_FALSE=
23815fi
23816
23817
23818
23819
23820
23821
23822
23823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
23824$as_echo_n "checking for working do while(0) macros... " >&6; }
23825if ${_cv_g_support_dowhile_macros+:} false; then :
23826  $as_echo_n "(cached) " >&6
23827else
23828
23829	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23830/* end confdefs.h.  */
23831
23832int
23833main ()
23834{
23835
23836	#define STMT_START do
23837	#define STMT_END while(0)
23838	#define STMT_TEST STMT_START { i = 0; } STMT_END
23839	int main(void) { int i = 1; STMT_TEST; return i; }
23840  ;
23841  return 0;
23842}
23843_ACEOF
23844if ac_fn_c_try_compile "$LINENO"; then :
23845  _cv_g_support_dowhile_macros=yes
23846else
23847  _cv_g_support_dowhile_macros=no
23848fi
23849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850
23851fi
23852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_g_support_dowhile_macros" >&5
23853$as_echo "$_cv_g_support_dowhile_macros" >&6; }
23854if test x$_cv_g_support_dowhile_macros = xyes; then
23855
23856$as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
23857
23858fi
23859
23860
23861# Extract the first word of "valgrind", so it can be a program name with args.
23862set dummy valgrind; ac_word=$2
23863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23864$as_echo_n "checking for $ac_word... " >&6; }
23865if ${ac_cv_path_VALGRIND_PATH+:} false; then :
23866  $as_echo_n "(cached) " >&6
23867else
23868  case $VALGRIND_PATH in
23869  [\\/]* | ?:[\\/]*)
23870  ac_cv_path_VALGRIND_PATH="$VALGRIND_PATH" # Let the user override the test with a path.
23871  ;;
23872  *)
23873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23874for as_dir in $PATH
23875do
23876  IFS=$as_save_IFS
23877  test -z "$as_dir" && as_dir=.
23878    for ac_exec_ext in '' $ac_executable_extensions; do
23879  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23880    ac_cv_path_VALGRIND_PATH="$as_dir/$ac_word$ac_exec_ext"
23881    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23882    break 2
23883  fi
23884done
23885  done
23886IFS=$as_save_IFS
23887
23888  test -z "$ac_cv_path_VALGRIND_PATH" && ac_cv_path_VALGRIND_PATH="no"
23889  ;;
23890esac
23891fi
23892VALGRIND_PATH=$ac_cv_path_VALGRIND_PATH
23893if test -n "$VALGRIND_PATH"; then
23894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_PATH" >&5
23895$as_echo "$VALGRIND_PATH" >&6; }
23896else
23897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23898$as_echo "no" >&6; }
23899fi
23900
23901
23902 if test ! "x$VALGRIND_PATH" = "xno"; then
23903  HAVE_VALGRIND_TRUE=
23904  HAVE_VALGRIND_FALSE='#'
23905else
23906  HAVE_VALGRIND_TRUE='#'
23907  HAVE_VALGRIND_FALSE=
23908fi
23909
23910
23911
23912
23913
23914                # Check whether --enable-introspection was given.
23915if test "${enable_introspection+set}" = set; then :
23916  enableval=$enable_introspection;
23917else
23918  enable_introspection=auto
23919fi
23920
23921
23922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
23923$as_echo_n "checking for gobject-introspection... " >&6; }
23924
23925        case $enable_introspection in #(
23926  no) :
23927            found_introspection="no (disabled, use --enable-introspection to enable)"
23928     ;; #(
23929      yes) :
23930            if test -n "$PKG_CONFIG" && \
23931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
23932  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
23933  ac_status=$?
23934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935  test $ac_status = 0; }; then
23936  :
23937else
23938  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
23939fi
23940        if test -n "$PKG_CONFIG" && \
23941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
23942  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
23943  ac_status=$?
23944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23945  test $ac_status = 0; }; then
23946  found_introspection=yes
23947else
23948  as_fn_error $? "You need to have gobject-introspection >= 1.31.1 installed to build GStreamer Bad Plug-ins" "$LINENO" 5
23949fi
23950     ;; #(
23951      auto) :
23952            if test -n "$PKG_CONFIG" && \
23953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.31.1\""; } >&5
23954  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.31.1") 2>&5
23955  ac_status=$?
23956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23957  test $ac_status = 0; }; then
23958  found_introspection=yes
23959else
23960  found_introspection=no
23961fi
23962     ;; #(
23963  *) :
23964                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
23965     ;;
23966esac
23967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
23968$as_echo "$found_introspection" >&6; }
23969
23970    INTROSPECTION_SCANNER=
23971    INTROSPECTION_COMPILER=
23972    INTROSPECTION_GENERATE=
23973    INTROSPECTION_GIRDIR=
23974    INTROSPECTION_TYPELIBDIR=
23975    if test "x$found_introspection" = "xyes"; then
23976       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
23977       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
23978       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
23979       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
23980       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
23981       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
23982       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
23983       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
23984       INTROSPECTION_INIT="extern void gst_init(gint*,gchar**); gst_init(NULL,NULL);"
23985    fi
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996     if test "x$found_introspection" = "xyes"; then
23997  HAVE_INTROSPECTION_TRUE=
23998  HAVE_INTROSPECTION_FALSE='#'
23999else
24000  HAVE_INTROSPECTION_TRUE='#'
24001  HAVE_INTROSPECTION_FALSE=
24002fi
24003
24004
24005
24006
24007
24008
24009
24010    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
24011set dummy gtkdoc-check; ac_word=$2
24012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24013$as_echo_n "checking for $ac_word... " >&6; }
24014if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
24015  $as_echo_n "(cached) " >&6
24016else
24017  case $GTKDOC_CHECK in
24018  [\\/]* | ?:[\\/]*)
24019  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
24020  ;;
24021  *)
24022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24023for as_dir in $PATH
24024do
24025  IFS=$as_save_IFS
24026  test -z "$as_dir" && as_dir=.
24027    for ac_exec_ext in '' $ac_executable_extensions; do
24028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24029    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24031    break 2
24032  fi
24033done
24034  done
24035IFS=$as_save_IFS
24036
24037  ;;
24038esac
24039fi
24040GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
24041if test -n "$GTKDOC_CHECK"; then
24042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
24043$as_echo "$GTKDOC_CHECK" >&6; }
24044else
24045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24046$as_echo "no" >&6; }
24047fi
24048
24049
24050  for ac_prog in gtkdoc-rebase
24051do
24052  # Extract the first word of "$ac_prog", so it can be a program name with args.
24053set dummy $ac_prog; ac_word=$2
24054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24055$as_echo_n "checking for $ac_word... " >&6; }
24056if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
24057  $as_echo_n "(cached) " >&6
24058else
24059  case $GTKDOC_REBASE in
24060  [\\/]* | ?:[\\/]*)
24061  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
24062  ;;
24063  *)
24064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24065for as_dir in $PATH
24066do
24067  IFS=$as_save_IFS
24068  test -z "$as_dir" && as_dir=.
24069    for ac_exec_ext in '' $ac_executable_extensions; do
24070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24071    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
24072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24073    break 2
24074  fi
24075done
24076  done
24077IFS=$as_save_IFS
24078
24079  ;;
24080esac
24081fi
24082GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
24083if test -n "$GTKDOC_REBASE"; then
24084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
24085$as_echo "$GTKDOC_REBASE" >&6; }
24086else
24087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24088$as_echo "no" >&6; }
24089fi
24090
24091
24092  test -n "$GTKDOC_REBASE" && break
24093done
24094test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
24095
24096  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
24097set dummy gtkdoc-mkpdf; ac_word=$2
24098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24099$as_echo_n "checking for $ac_word... " >&6; }
24100if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
24101  $as_echo_n "(cached) " >&6
24102else
24103  case $GTKDOC_MKPDF in
24104  [\\/]* | ?:[\\/]*)
24105  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
24106  ;;
24107  *)
24108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24109for as_dir in $PATH
24110do
24111  IFS=$as_save_IFS
24112  test -z "$as_dir" && as_dir=.
24113    for ac_exec_ext in '' $ac_executable_extensions; do
24114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24115    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
24116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24117    break 2
24118  fi
24119done
24120  done
24121IFS=$as_save_IFS
24122
24123  ;;
24124esac
24125fi
24126GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
24127if test -n "$GTKDOC_MKPDF"; then
24128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
24129$as_echo "$GTKDOC_MKPDF" >&6; }
24130else
24131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24132$as_echo "no" >&6; }
24133fi
24134
24135
24136
24137
24138# Check whether --with-html-dir was given.
24139if test "${with_html_dir+set}" = set; then :
24140  withval=$with_html_dir;
24141else
24142  with_html_dir='${datadir}/gtk-doc/html'
24143fi
24144
24145  HTML_DIR="$with_html_dir"
24146
24147
24148    # Check whether --enable-gtk-doc was given.
24149if test "${enable_gtk_doc+set}" = set; then :
24150  enableval=$enable_gtk_doc;
24151else
24152  enable_gtk_doc=no
24153fi
24154
24155
24156  if test x$enable_gtk_doc = xyes; then
24157    if test -n "$PKG_CONFIG" && \
24158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.12\""; } >&5
24159  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.12") 2>&5
24160  ac_status=$?
24161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24162  test $ac_status = 0; }; then
24163  :
24164else
24165  as_fn_error $? "You need to have gtk-doc >= 1.12 installed to build $PACKAGE_NAME" "$LINENO" 5
24166fi
24167        if test "x$PACKAGE_NAME" != "xglib"; then
24168
24169pkg_failed=no
24170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
24171$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
24172
24173if test -n "$PKG_CONFIG"; then
24174    if test -n "$GTKDOC_DEPS_CFLAGS"; then
24175        pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
24176    else
24177        if test -n "$PKG_CONFIG" && \
24178    { { $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
24179  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
24180  ac_status=$?
24181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182  test $ac_status = 0; }; then
24183  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
24184else
24185  pkg_failed=yes
24186fi
24187    fi
24188else
24189	pkg_failed=untried
24190fi
24191if test -n "$PKG_CONFIG"; then
24192    if test -n "$GTKDOC_DEPS_LIBS"; then
24193        pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
24194    else
24195        if test -n "$PKG_CONFIG" && \
24196    { { $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
24197  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
24198  ac_status=$?
24199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200  test $ac_status = 0; }; then
24201  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
24202else
24203  pkg_failed=yes
24204fi
24205    fi
24206else
24207	pkg_failed=untried
24208fi
24209
24210
24211
24212if test $pkg_failed = yes; then
24213
24214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24215        _pkg_short_errors_supported=yes
24216else
24217        _pkg_short_errors_supported=no
24218fi
24219        if test $_pkg_short_errors_supported = yes; then
24220	        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"`
24221        else
24222	        GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
24223        fi
24224	# Put the nasty error message in config.log where it belongs
24225	echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
24226
24227	as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
24228
24229$GTKDOC_DEPS_PKG_ERRORS
24230
24231Consider adjusting the PKG_CONFIG_PATH environment variable if you
24232installed software in a non-standard prefix.
24233
24234Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
24235and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
24236See the pkg-config man page for more details.
24237" "$LINENO" 5
24238elif test $pkg_failed = untried; then
24239	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24241as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24242is in your PATH or set the PKG_CONFIG environment variable to the full
24243path to pkg-config.
24244
24245Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
24246and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
24247See the pkg-config man page for more details.
24248
24249To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24250See \`config.log' for more details" "$LINENO" 5; }
24251else
24252	GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
24253	GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
24254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24255$as_echo "yes" >&6; }
24256	:
24257fi
24258    fi
24259        if test -z "$SED"; then
24260      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
24261$as_echo_n "checking for a sed that does not truncate output... " >&6; }
24262if ${ac_cv_path_SED+:} false; then :
24263  $as_echo_n "(cached) " >&6
24264else
24265            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
24266     for ac_i in 1 2 3 4 5 6 7; do
24267       ac_script="$ac_script$as_nl$ac_script"
24268     done
24269     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
24270     { ac_script=; unset ac_script;}
24271     if test -z "$SED"; then
24272  ac_path_SED_found=false
24273  # Loop through the user's path and test for each of PROGNAME-LIST
24274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24275for as_dir in $PATH
24276do
24277  IFS=$as_save_IFS
24278  test -z "$as_dir" && as_dir=.
24279    for ac_prog in sed gsed; do
24280    for ac_exec_ext in '' $ac_executable_extensions; do
24281      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
24282      as_fn_executable_p "$ac_path_SED" || continue
24283# Check for GNU ac_path_SED and select it if it is found.
24284  # Check for GNU $ac_path_SED
24285case `"$ac_path_SED" --version 2>&1` in
24286*GNU*)
24287  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
24288*)
24289  ac_count=0
24290  $as_echo_n 0123456789 >"conftest.in"
24291  while :
24292  do
24293    cat "conftest.in" "conftest.in" >"conftest.tmp"
24294    mv "conftest.tmp" "conftest.in"
24295    cp "conftest.in" "conftest.nl"
24296    $as_echo '' >> "conftest.nl"
24297    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
24298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24299    as_fn_arith $ac_count + 1 && ac_count=$as_val
24300    if test $ac_count -gt ${ac_path_SED_max-0}; then
24301      # Best one so far, save it but keep looking for a better one
24302      ac_cv_path_SED="$ac_path_SED"
24303      ac_path_SED_max=$ac_count
24304    fi
24305    # 10*(2^10) chars as input seems more than enough
24306    test $ac_count -gt 10 && break
24307  done
24308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24309esac
24310
24311      $ac_path_SED_found && break 3
24312    done
24313  done
24314  done
24315IFS=$as_save_IFS
24316  if test -z "$ac_cv_path_SED"; then
24317    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
24318  fi
24319else
24320  ac_cv_path_SED=$SED
24321fi
24322
24323fi
24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
24325$as_echo "$ac_cv_path_SED" >&6; }
24326 SED="$ac_cv_path_SED"
24327  rm -f conftest.sed
24328
24329    fi
24330  fi
24331
24332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
24333$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
24334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
24335$as_echo "$enable_gtk_doc" >&6; }
24336
24337    # Check whether --enable-gtk-doc-html was given.
24338if test "${enable_gtk_doc_html+set}" = set; then :
24339  enableval=$enable_gtk_doc_html;
24340else
24341  enable_gtk_doc_html=yes
24342fi
24343
24344    # Check whether --enable-gtk-doc-pdf was given.
24345if test "${enable_gtk_doc_pdf+set}" = set; then :
24346  enableval=$enable_gtk_doc_pdf;
24347else
24348  enable_gtk_doc_pdf=no
24349fi
24350
24351
24352  if test -z "$GTKDOC_MKPDF"; then
24353    enable_gtk_doc_pdf=no
24354  fi
24355
24356
24357   if test x$enable_gtk_doc = xyes; then
24358  ENABLE_GTK_DOC_TRUE=
24359  ENABLE_GTK_DOC_FALSE='#'
24360else
24361  ENABLE_GTK_DOC_TRUE='#'
24362  ENABLE_GTK_DOC_FALSE=
24363fi
24364
24365   if test x$enable_gtk_doc_html = xyes; then
24366  GTK_DOC_BUILD_HTML_TRUE=
24367  GTK_DOC_BUILD_HTML_FALSE='#'
24368else
24369  GTK_DOC_BUILD_HTML_TRUE='#'
24370  GTK_DOC_BUILD_HTML_FALSE=
24371fi
24372
24373   if test x$enable_gtk_doc_pdf = xyes; then
24374  GTK_DOC_BUILD_PDF_TRUE=
24375  GTK_DOC_BUILD_PDF_FALSE='#'
24376else
24377  GTK_DOC_BUILD_PDF_TRUE='#'
24378  GTK_DOC_BUILD_PDF_FALSE=
24379fi
24380
24381   if test -n "$LIBTOOL"; then
24382  GTK_DOC_USE_LIBTOOL_TRUE=
24383  GTK_DOC_USE_LIBTOOL_FALSE='#'
24384else
24385  GTK_DOC_USE_LIBTOOL_TRUE='#'
24386  GTK_DOC_USE_LIBTOOL_FALSE=
24387fi
24388
24389
24390
24391
24392
24393
24394
24395
24396        # Find any Python interpreter.
24397    if test -z "$PYTHON"; then
24398      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
24399do
24400  # Extract the first word of "$ac_prog", so it can be a program name with args.
24401set dummy $ac_prog; ac_word=$2
24402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24403$as_echo_n "checking for $ac_word... " >&6; }
24404if ${ac_cv_path_PYTHON+:} false; then :
24405  $as_echo_n "(cached) " >&6
24406else
24407  case $PYTHON in
24408  [\\/]* | ?:[\\/]*)
24409  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24410  ;;
24411  *)
24412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24413for as_dir in $PATH
24414do
24415  IFS=$as_save_IFS
24416  test -z "$as_dir" && as_dir=.
24417    for ac_exec_ext in '' $ac_executable_extensions; do
24418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24419    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24421    break 2
24422  fi
24423done
24424  done
24425IFS=$as_save_IFS
24426
24427  ;;
24428esac
24429fi
24430PYTHON=$ac_cv_path_PYTHON
24431if test -n "$PYTHON"; then
24432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24433$as_echo "$PYTHON" >&6; }
24434else
24435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24436$as_echo "no" >&6; }
24437fi
24438
24439
24440  test -n "$PYTHON" && break
24441done
24442test -n "$PYTHON" || PYTHON=":"
24443
24444    fi
24445    am_display_PYTHON=python
24446
24447
24448  if test "$PYTHON" = :; then
24449      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
24450  else
24451
24452
24453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24454$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24455if ${am_cv_python_version+:} false; then :
24456  $as_echo_n "(cached) " >&6
24457else
24458  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24459fi
24460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24461$as_echo "$am_cv_python_version" >&6; }
24462  PYTHON_VERSION=$am_cv_python_version
24463
24464
24465
24466  PYTHON_PREFIX='${prefix}'
24467
24468  PYTHON_EXEC_PREFIX='${exec_prefix}'
24469
24470
24471
24472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24473$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24474if ${am_cv_python_platform+:} false; then :
24475  $as_echo_n "(cached) " >&6
24476else
24477  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24478fi
24479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24480$as_echo "$am_cv_python_platform" >&6; }
24481  PYTHON_PLATFORM=$am_cv_python_platform
24482
24483
24484  # Just factor out some code duplication.
24485  am_python_setup_sysconfig="\
24486import sys
24487# Prefer sysconfig over distutils.sysconfig, for better compatibility
24488# with python 3.x.  See automake bug#10227.
24489try:
24490    import sysconfig
24491except ImportError:
24492    can_use_sysconfig = 0
24493else:
24494    can_use_sysconfig = 1
24495# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24496# <https://github.com/pypa/virtualenv/issues/118>
24497try:
24498    from platform import python_implementation
24499    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24500        can_use_sysconfig = 0
24501except ImportError:
24502    pass"
24503
24504
24505            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24506$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24507if ${am_cv_python_pythondir+:} false; then :
24508  $as_echo_n "(cached) " >&6
24509else
24510  if test "x$prefix" = xNONE
24511     then
24512       am_py_prefix=$ac_default_prefix
24513     else
24514       am_py_prefix=$prefix
24515     fi
24516     am_cv_python_pythondir=`$PYTHON -c "
24517$am_python_setup_sysconfig
24518if can_use_sysconfig:
24519    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24520else:
24521    from distutils import sysconfig
24522    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24523sys.stdout.write(sitedir)"`
24524     case $am_cv_python_pythondir in
24525     $am_py_prefix*)
24526       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24527       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24528       ;;
24529     *)
24530       case $am_py_prefix in
24531         /usr|/System*) ;;
24532         *)
24533	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24534	  ;;
24535       esac
24536       ;;
24537     esac
24538
24539fi
24540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24541$as_echo "$am_cv_python_pythondir" >&6; }
24542  pythondir=$am_cv_python_pythondir
24543
24544
24545
24546  pkgpythondir=\${pythondir}/$PACKAGE
24547
24548
24549        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24550$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24551if ${am_cv_python_pyexecdir+:} false; then :
24552  $as_echo_n "(cached) " >&6
24553else
24554  if test "x$exec_prefix" = xNONE
24555     then
24556       am_py_exec_prefix=$am_py_prefix
24557     else
24558       am_py_exec_prefix=$exec_prefix
24559     fi
24560     am_cv_python_pyexecdir=`$PYTHON -c "
24561$am_python_setup_sysconfig
24562if can_use_sysconfig:
24563    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24564else:
24565    from distutils import sysconfig
24566    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24567sys.stdout.write(sitedir)"`
24568     case $am_cv_python_pyexecdir in
24569     $am_py_exec_prefix*)
24570       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24571       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24572       ;;
24573     *)
24574       case $am_py_exec_prefix in
24575         /usr|/System*) ;;
24576         *)
24577	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24578	   ;;
24579       esac
24580       ;;
24581     esac
24582
24583fi
24584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24585$as_echo "$am_cv_python_pyexecdir" >&6; }
24586  pyexecdir=$am_cv_python_pyexecdir
24587
24588
24589
24590  pkgpyexecdir=\${pyexecdir}/$PACKAGE
24591
24592
24593
24594  fi
24595
24596
24597
24598
24599  build_plugin_docs=no
24600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build plugin documentation" >&5
24601$as_echo_n "checking whether to build plugin documentation... " >&6; }
24602  if test x$enable_gtk_doc = xyes; then
24603    if test x$PYTHON != x; then
24604      build_plugin_docs=yes
24605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24606$as_echo "yes" >&6; }
24607    else
24608      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (python not found)" >&5
24609$as_echo "no (python not found)" >&6; }
24610    fi
24611  else
24612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (gtk-doc disabled or not available)" >&5
24613$as_echo "no (gtk-doc disabled or not available)" >&6; }
24614  fi
24615
24616   if test x$build_plugin_docs = xyes; then
24617  ENABLE_PLUGIN_DOCS_TRUE=
24618  ENABLE_PLUGIN_DOCS_FALSE='#'
24619else
24620  ENABLE_PLUGIN_DOCS_TRUE='#'
24621  ENABLE_PLUGIN_DOCS_FALSE=
24622fi
24623
24624
24625
24626
24627LIBM=
24628case $host in
24629*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
24630  # These system don't have libm, or don't need it
24631  ;;
24632*-ncr-sysv4.3*)
24633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
24634$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
24635if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
24636  $as_echo_n "(cached) " >&6
24637else
24638  ac_check_lib_save_LIBS=$LIBS
24639LIBS="-lmw  $LIBS"
24640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641/* end confdefs.h.  */
24642
24643/* Override any GCC internal prototype to avoid an error.
24644   Use char because int might match the return type of a GCC
24645   builtin and then its argument prototype would still apply.  */
24646#ifdef __cplusplus
24647extern "C"
24648#endif
24649char _mwvalidcheckl ();
24650int
24651main ()
24652{
24653return _mwvalidcheckl ();
24654  ;
24655  return 0;
24656}
24657_ACEOF
24658if ac_fn_c_try_link "$LINENO"; then :
24659  ac_cv_lib_mw__mwvalidcheckl=yes
24660else
24661  ac_cv_lib_mw__mwvalidcheckl=no
24662fi
24663rm -f core conftest.err conftest.$ac_objext \
24664    conftest$ac_exeext conftest.$ac_ext
24665LIBS=$ac_check_lib_save_LIBS
24666fi
24667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
24668$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
24669if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
24670  LIBM=-lmw
24671fi
24672
24673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24674$as_echo_n "checking for cos in -lm... " >&6; }
24675if ${ac_cv_lib_m_cos+:} false; then :
24676  $as_echo_n "(cached) " >&6
24677else
24678  ac_check_lib_save_LIBS=$LIBS
24679LIBS="-lm  $LIBS"
24680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24681/* end confdefs.h.  */
24682
24683/* Override any GCC internal prototype to avoid an error.
24684   Use char because int might match the return type of a GCC
24685   builtin and then its argument prototype would still apply.  */
24686#ifdef __cplusplus
24687extern "C"
24688#endif
24689char cos ();
24690int
24691main ()
24692{
24693return cos ();
24694  ;
24695  return 0;
24696}
24697_ACEOF
24698if ac_fn_c_try_link "$LINENO"; then :
24699  ac_cv_lib_m_cos=yes
24700else
24701  ac_cv_lib_m_cos=no
24702fi
24703rm -f core conftest.err conftest.$ac_objext \
24704    conftest$ac_exeext conftest.$ac_ext
24705LIBS=$ac_check_lib_save_LIBS
24706fi
24707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24708$as_echo "$ac_cv_lib_m_cos" >&6; }
24709if test "x$ac_cv_lib_m_cos" = xyes; then :
24710  LIBM="$LIBM -lm"
24711fi
24712
24713  ;;
24714*)
24715  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24716$as_echo_n "checking for cos in -lm... " >&6; }
24717if ${ac_cv_lib_m_cos+:} false; then :
24718  $as_echo_n "(cached) " >&6
24719else
24720  ac_check_lib_save_LIBS=$LIBS
24721LIBS="-lm  $LIBS"
24722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24723/* end confdefs.h.  */
24724
24725/* Override any GCC internal prototype to avoid an error.
24726   Use char because int might match the return type of a GCC
24727   builtin and then its argument prototype would still apply.  */
24728#ifdef __cplusplus
24729extern "C"
24730#endif
24731char cos ();
24732int
24733main ()
24734{
24735return cos ();
24736  ;
24737  return 0;
24738}
24739_ACEOF
24740if ac_fn_c_try_link "$LINENO"; then :
24741  ac_cv_lib_m_cos=yes
24742else
24743  ac_cv_lib_m_cos=no
24744fi
24745rm -f core conftest.err conftest.$ac_objext \
24746    conftest$ac_exeext conftest.$ac_ext
24747LIBS=$ac_check_lib_save_LIBS
24748fi
24749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24750$as_echo "$ac_cv_lib_m_cos" >&6; }
24751if test "x$ac_cv_lib_m_cos" = xyes; then :
24752  LIBM=-lm
24753fi
24754
24755  ;;
24756esac
24757
24758
24759
24760
24761
24762
24763
24764  for ac_header in $ac_header_list
24765do :
24766  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24768"
24769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24770  cat >>confdefs.h <<_ACEOF
24771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24772_ACEOF
24773
24774fi
24775
24776done
24777
24778
24779
24780
24781
24782
24783
24784
24785for ac_func in getpagesize
24786do :
24787  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24788if test "x$ac_cv_func_getpagesize" = xyes; then :
24789  cat >>confdefs.h <<_ACEOF
24790#define HAVE_GETPAGESIZE 1
24791_ACEOF
24792
24793fi
24794done
24795
24796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24797$as_echo_n "checking for working mmap... " >&6; }
24798if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24799  $as_echo_n "(cached) " >&6
24800else
24801  if test "$cross_compiling" = yes; then :
24802  ac_cv_func_mmap_fixed_mapped=no
24803else
24804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805/* end confdefs.h.  */
24806$ac_includes_default
24807/* malloc might have been renamed as rpl_malloc. */
24808#undef malloc
24809
24810/* Thanks to Mike Haertel and Jim Avera for this test.
24811   Here is a matrix of mmap possibilities:
24812	mmap private not fixed
24813	mmap private fixed at somewhere currently unmapped
24814	mmap private fixed at somewhere already mapped
24815	mmap shared not fixed
24816	mmap shared fixed at somewhere currently unmapped
24817	mmap shared fixed at somewhere already mapped
24818   For private mappings, we should verify that changes cannot be read()
24819   back from the file, nor mmap's back from the file at a different
24820   address.  (There have been systems where private was not correctly
24821   implemented like the infamous i386 svr4.0, and systems where the
24822   VM page cache was not coherent with the file system buffer cache
24823   like early versions of FreeBSD and possibly contemporary NetBSD.)
24824   For shared mappings, we should conversely verify that changes get
24825   propagated back to all the places they're supposed to be.
24826
24827   Grep wants private fixed already mapped.
24828   The main things grep needs to know about mmap are:
24829   * does it exist and is it safe to write into the mmap'd area
24830   * how to use it (BSD variants)  */
24831
24832#include <fcntl.h>
24833#include <sys/mman.h>
24834
24835#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24836char *malloc ();
24837#endif
24838
24839/* This mess was copied from the GNU getpagesize.h.  */
24840#ifndef HAVE_GETPAGESIZE
24841# ifdef _SC_PAGESIZE
24842#  define getpagesize() sysconf(_SC_PAGESIZE)
24843# else /* no _SC_PAGESIZE */
24844#  ifdef HAVE_SYS_PARAM_H
24845#   include <sys/param.h>
24846#   ifdef EXEC_PAGESIZE
24847#    define getpagesize() EXEC_PAGESIZE
24848#   else /* no EXEC_PAGESIZE */
24849#    ifdef NBPG
24850#     define getpagesize() NBPG * CLSIZE
24851#     ifndef CLSIZE
24852#      define CLSIZE 1
24853#     endif /* no CLSIZE */
24854#    else /* no NBPG */
24855#     ifdef NBPC
24856#      define getpagesize() NBPC
24857#     else /* no NBPC */
24858#      ifdef PAGESIZE
24859#       define getpagesize() PAGESIZE
24860#      endif /* PAGESIZE */
24861#     endif /* no NBPC */
24862#    endif /* no NBPG */
24863#   endif /* no EXEC_PAGESIZE */
24864#  else /* no HAVE_SYS_PARAM_H */
24865#   define getpagesize() 8192	/* punt totally */
24866#  endif /* no HAVE_SYS_PARAM_H */
24867# endif /* no _SC_PAGESIZE */
24868
24869#endif /* no HAVE_GETPAGESIZE */
24870
24871int
24872main ()
24873{
24874  char *data, *data2, *data3;
24875  const char *cdata2;
24876  int i, pagesize;
24877  int fd, fd2;
24878
24879  pagesize = getpagesize ();
24880
24881  /* First, make a file with some known garbage in it. */
24882  data = (char *) malloc (pagesize);
24883  if (!data)
24884    return 1;
24885  for (i = 0; i < pagesize; ++i)
24886    *(data + i) = rand ();
24887  umask (0);
24888  fd = creat ("conftest.mmap", 0600);
24889  if (fd < 0)
24890    return 2;
24891  if (write (fd, data, pagesize) != pagesize)
24892    return 3;
24893  close (fd);
24894
24895  /* Next, check that the tail of a page is zero-filled.  File must have
24896     non-zero length, otherwise we risk SIGBUS for entire page.  */
24897  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24898  if (fd2 < 0)
24899    return 4;
24900  cdata2 = "";
24901  if (write (fd2, cdata2, 1) != 1)
24902    return 5;
24903  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24904  if (data2 == MAP_FAILED)
24905    return 6;
24906  for (i = 0; i < pagesize; ++i)
24907    if (*(data2 + i))
24908      return 7;
24909  close (fd2);
24910  if (munmap (data2, pagesize))
24911    return 8;
24912
24913  /* Next, try to mmap the file at a fixed address which already has
24914     something else allocated at it.  If we can, also make sure that
24915     we see the same garbage.  */
24916  fd = open ("conftest.mmap", O_RDWR);
24917  if (fd < 0)
24918    return 9;
24919  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24920		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24921    return 10;
24922  for (i = 0; i < pagesize; ++i)
24923    if (*(data + i) != *(data2 + i))
24924      return 11;
24925
24926  /* Finally, make sure that changes to the mapped area do not
24927     percolate back to the file as seen by read().  (This is a bug on
24928     some variants of i386 svr4.0.)  */
24929  for (i = 0; i < pagesize; ++i)
24930    *(data2 + i) = *(data2 + i) + 1;
24931  data3 = (char *) malloc (pagesize);
24932  if (!data3)
24933    return 12;
24934  if (read (fd, data3, pagesize) != pagesize)
24935    return 13;
24936  for (i = 0; i < pagesize; ++i)
24937    if (*(data + i) != *(data3 + i))
24938      return 14;
24939  close (fd);
24940  free (data);
24941  free (data3);
24942  return 0;
24943}
24944_ACEOF
24945if ac_fn_c_try_run "$LINENO"; then :
24946  ac_cv_func_mmap_fixed_mapped=yes
24947else
24948  ac_cv_func_mmap_fixed_mapped=no
24949fi
24950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24951  conftest.$ac_objext conftest.beam conftest.$ac_ext
24952fi
24953
24954fi
24955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24956$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24957if test $ac_cv_func_mmap_fixed_mapped = yes; then
24958
24959$as_echo "#define HAVE_MMAP 1" >>confdefs.h
24960
24961fi
24962rm -f conftest.mmap conftest.txt
24963
24964
24965
24966
24967
24968
24969ac_ext=c
24970ac_cpp='$CPP $CPPFLAGS'
24971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24973ac_compiler_gnu=$ac_cv_c_compiler_gnu
24974
24975ax_pthread_ok=no
24976
24977# We used to check for pthread.h first, but this fails if pthread.h
24978# requires special compiler flags (e.g. on Tru64 or Sequent).
24979# It gets checked for in the link test anyway.
24980
24981# First of all, check if the user has set any of the PTHREAD_LIBS,
24982# etcetera environment variables, and if threads linking works using
24983# them:
24984if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
24985        ax_pthread_save_CC="$CC"
24986        ax_pthread_save_CFLAGS="$CFLAGS"
24987        ax_pthread_save_LIBS="$LIBS"
24988        if test "x$PTHREAD_CC" != "x"; then :
24989  CC="$PTHREAD_CC"
24990fi
24991        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24992        LIBS="$PTHREAD_LIBS $LIBS"
24993        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
24994$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
24995        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24996/* end confdefs.h.  */
24997
24998/* Override any GCC internal prototype to avoid an error.
24999   Use char because int might match the return type of a GCC
25000   builtin and then its argument prototype would still apply.  */
25001#ifdef __cplusplus
25002extern "C"
25003#endif
25004char pthread_join ();
25005int
25006main ()
25007{
25008return pthread_join ();
25009  ;
25010  return 0;
25011}
25012_ACEOF
25013if ac_fn_c_try_link "$LINENO"; then :
25014  ax_pthread_ok=yes
25015fi
25016rm -f core conftest.err conftest.$ac_objext \
25017    conftest$ac_exeext conftest.$ac_ext
25018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25019$as_echo "$ax_pthread_ok" >&6; }
25020        if test "x$ax_pthread_ok" = "xno"; then
25021                PTHREAD_LIBS=""
25022                PTHREAD_CFLAGS=""
25023        fi
25024        CC="$ax_pthread_save_CC"
25025        CFLAGS="$ax_pthread_save_CFLAGS"
25026        LIBS="$ax_pthread_save_LIBS"
25027fi
25028
25029# We must check for the threads library under a number of different
25030# names; the ordering is very important because some systems
25031# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25032# libraries is broken (non-POSIX).
25033
25034# Create a list of thread flags to try.  Items starting with a "-" are
25035# C compiler flags, and other items are library names, except for "none"
25036# which indicates that we try without any flags at all, and "pthread-config"
25037# which is a program returning the flags for the Pth emulation library.
25038
25039ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25040
25041# The ordering *is* (sometimes) important.  Some notes on the
25042# individual items follow:
25043
25044# pthreads: AIX (must check this before -lpthread)
25045# none: in case threads are in libc; should be tried before -Kthread and
25046#       other compiler flags to prevent continual compiler warnings
25047# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25048# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
25049#           (Note: HP C rejects this with "bad form for `-t' option")
25050# -pthreads: Solaris/gcc (Note: HP C also rejects)
25051# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25052#      doesn't hurt to check since this sometimes defines pthreads and
25053#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
25054#      is present but should not be used directly; and before -mthreads,
25055#      because the compiler interprets this as "-mt" + "-hreads")
25056# -mthreads: Mingw32/gcc, Lynx/gcc
25057# pthread: Linux, etcetera
25058# --thread-safe: KAI C++
25059# pthread-config: use pthread-config program (for GNU Pth library)
25060
25061case $host_os in
25062
25063        freebsd*)
25064
25065        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25066        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25067
25068        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
25069        ;;
25070
25071        hpux*)
25072
25073        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
25074        # multi-threading and also sets -lpthread."
25075
25076        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
25077        ;;
25078
25079        openedition*)
25080
25081        # IBM z/OS requires a feature-test macro to be defined in order to
25082        # enable POSIX threads at all, so give the user a hint if this is
25083        # not set. (We don't define these ourselves, as they can affect
25084        # other portions of the system API in unpredictable ways.)
25085
25086        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087/* end confdefs.h.  */
25088
25089#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
25090             AX_PTHREAD_ZOS_MISSING
25091#            endif
25092
25093_ACEOF
25094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25095  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
25096  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
25097$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
25098fi
25099rm -f conftest*
25100
25101        ;;
25102
25103        solaris*)
25104
25105        # On Solaris (at least, for some versions), libc contains stubbed
25106        # (non-functional) versions of the pthreads routines, so link-based
25107        # tests will erroneously succeed. (N.B.: The stubs are missing
25108        # pthread_cleanup_push, or rather a function called by this macro,
25109        # so we could check for that, but who knows whether they'll stub
25110        # that too in a future libc.)  So we'll check first for the
25111        # standard Solaris way of linking pthreads (-mt -lpthread).
25112
25113        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
25114        ;;
25115esac
25116
25117# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
25118
25119if test "x$GCC" = "xyes"; then :
25120  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
25121fi
25122
25123# The presence of a feature test macro requesting re-entrant function
25124# definitions is, on some systems, a strong hint that pthreads support is
25125# correctly enabled
25126
25127case $host_os in
25128        darwin* | hpux* | linux* | osf* | solaris*)
25129        ax_pthread_check_macro="_REENTRANT"
25130        ;;
25131
25132        aix*)
25133        ax_pthread_check_macro="_THREAD_SAFE"
25134        ;;
25135
25136        *)
25137        ax_pthread_check_macro="--"
25138        ;;
25139esac
25140if test "x$ax_pthread_check_macro" = "x--"; then :
25141  ax_pthread_check_cond=0
25142else
25143  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
25144fi
25145
25146# Are we compiling with Clang?
25147
25148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
25149$as_echo_n "checking whether $CC is Clang... " >&6; }
25150if ${ax_cv_PTHREAD_CLANG+:} false; then :
25151  $as_echo_n "(cached) " >&6
25152else
25153  ax_cv_PTHREAD_CLANG=no
25154     # Note that Autoconf sets GCC=yes for Clang as well as GCC
25155     if test "x$GCC" = "xyes"; then
25156        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157/* end confdefs.h.  */
25158/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
25159#            if defined(__clang__) && defined(__llvm__)
25160             AX_PTHREAD_CC_IS_CLANG
25161#            endif
25162
25163_ACEOF
25164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25165  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
25166  ax_cv_PTHREAD_CLANG=yes
25167fi
25168rm -f conftest*
25169
25170     fi
25171
25172fi
25173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
25174$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
25175ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
25176
25177ax_pthread_clang_warning=no
25178
25179# Clang needs special handling, because older versions handle the -pthread
25180# option in a rather... idiosyncratic way
25181
25182if test "x$ax_pthread_clang" = "xyes"; then
25183
25184        # Clang takes -pthread; it has never supported any other flag
25185
25186        # (Note 1: This will need to be revisited if a system that Clang
25187        # supports has POSIX threads in a separate library.  This tends not
25188        # to be the way of modern systems, but it's conceivable.)
25189
25190        # (Note 2: On some systems, notably Darwin, -pthread is not needed
25191        # to get POSIX threads support; the API is always present and
25192        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
25193        # -pthread does define _REENTRANT, and while the Darwin headers
25194        # ignore this macro, third-party headers might not.)
25195
25196        PTHREAD_CFLAGS="-pthread"
25197        PTHREAD_LIBS=
25198
25199        ax_pthread_ok=yes
25200
25201        # However, older versions of Clang make a point of warning the user
25202        # that, in an invocation where only linking and no compilation is
25203        # taking place, the -pthread option has no effect ("argument unused
25204        # during compilation").  They expect -pthread to be passed in only
25205        # when source code is being compiled.
25206        #
25207        # Problem is, this is at odds with the way Automake and most other
25208        # C build frameworks function, which is that the same flags used in
25209        # compilation (CFLAGS) are also used in linking.  Many systems
25210        # supported by AX_PTHREAD require exactly this for POSIX threads
25211        # support, and in fact it is often not straightforward to specify a
25212        # flag that is used only in the compilation phase and not in
25213        # linking.  Such a scenario is extremely rare in practice.
25214        #
25215        # Even though use of the -pthread flag in linking would only print
25216        # a warning, this can be a nuisance for well-run software projects
25217        # that build with -Werror.  So if the active version of Clang has
25218        # this misfeature, we search for an option to squash it.
25219
25220        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
25221$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
25222if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
25223  $as_echo_n "(cached) " >&6
25224else
25225  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
25226             # Create an alternate version of $ac_link that compiles and
25227             # links in two steps (.c -> .o, .o -> exe) instead of one
25228             # (.c -> exe), because the warning occurs only in the second
25229             # step
25230             ax_pthread_save_ac_link="$ac_link"
25231             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
25232             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
25233             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
25234             ax_pthread_save_CFLAGS="$CFLAGS"
25235             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
25236                if test "x$ax_pthread_try" = "xunknown"; then :
25237  break
25238fi
25239                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
25240                ac_link="$ax_pthread_save_ac_link"
25241                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25242/* end confdefs.h.  */
25243int main(void){return 0;}
25244_ACEOF
25245if ac_fn_c_try_link "$LINENO"; then :
25246  ac_link="$ax_pthread_2step_ac_link"
25247                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25248/* end confdefs.h.  */
25249int main(void){return 0;}
25250_ACEOF
25251if ac_fn_c_try_link "$LINENO"; then :
25252  break
25253fi
25254rm -f core conftest.err conftest.$ac_objext \
25255    conftest$ac_exeext conftest.$ac_ext
25256
25257fi
25258rm -f core conftest.err conftest.$ac_objext \
25259    conftest$ac_exeext conftest.$ac_ext
25260             done
25261             ac_link="$ax_pthread_save_ac_link"
25262             CFLAGS="$ax_pthread_save_CFLAGS"
25263             if test "x$ax_pthread_try" = "x"; then :
25264  ax_pthread_try=no
25265fi
25266             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
25267
25268fi
25269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
25270$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
25271
25272        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
25273                no | unknown) ;;
25274                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
25275        esac
25276
25277fi # $ax_pthread_clang = yes
25278
25279if test "x$ax_pthread_ok" = "xno"; then
25280for ax_pthread_try_flag in $ax_pthread_flags; do
25281
25282        case $ax_pthread_try_flag in
25283                none)
25284                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
25285$as_echo_n "checking whether pthreads work without any flags... " >&6; }
25286                ;;
25287
25288                -mt,pthread)
25289                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
25290$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
25291                PTHREAD_CFLAGS="-mt"
25292                PTHREAD_LIBS="-lpthread"
25293                ;;
25294
25295                -*)
25296                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
25297$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
25298                PTHREAD_CFLAGS="$ax_pthread_try_flag"
25299                ;;
25300
25301                pthread-config)
25302                # Extract the first word of "pthread-config", so it can be a program name with args.
25303set dummy pthread-config; ac_word=$2
25304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25305$as_echo_n "checking for $ac_word... " >&6; }
25306if ${ac_cv_prog_ax_pthread_config+:} false; then :
25307  $as_echo_n "(cached) " >&6
25308else
25309  if test -n "$ax_pthread_config"; then
25310  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
25311else
25312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25313for as_dir in $PATH
25314do
25315  IFS=$as_save_IFS
25316  test -z "$as_dir" && as_dir=.
25317    for ac_exec_ext in '' $ac_executable_extensions; do
25318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25319    ac_cv_prog_ax_pthread_config="yes"
25320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25321    break 2
25322  fi
25323done
25324  done
25325IFS=$as_save_IFS
25326
25327  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
25328fi
25329fi
25330ax_pthread_config=$ac_cv_prog_ax_pthread_config
25331if test -n "$ax_pthread_config"; then
25332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
25333$as_echo "$ax_pthread_config" >&6; }
25334else
25335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25336$as_echo "no" >&6; }
25337fi
25338
25339
25340                if test "x$ax_pthread_config" = "xno"; then :
25341  continue
25342fi
25343                PTHREAD_CFLAGS="`pthread-config --cflags`"
25344                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25345                ;;
25346
25347                *)
25348                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
25349$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
25350                PTHREAD_LIBS="-l$ax_pthread_try_flag"
25351                ;;
25352        esac
25353
25354        ax_pthread_save_CFLAGS="$CFLAGS"
25355        ax_pthread_save_LIBS="$LIBS"
25356        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25357        LIBS="$PTHREAD_LIBS $LIBS"
25358
25359        # Check for various functions.  We must include pthread.h,
25360        # since some functions may be macros.  (On the Sequent, we
25361        # need a special flag -Kthread to make this header compile.)
25362        # We check for pthread_join because it is in -lpthread on IRIX
25363        # while pthread_create is in libc.  We check for pthread_attr_init
25364        # due to DEC craziness with -lpthreads.  We check for
25365        # pthread_cleanup_push because it is one of the few pthread
25366        # functions on Solaris that doesn't have a non-functional libc stub.
25367        # We try pthread_create on general principles.
25368
25369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25370/* end confdefs.h.  */
25371#include <pthread.h>
25372#                       if $ax_pthread_check_cond
25373#                        error "$ax_pthread_check_macro must be defined"
25374#                       endif
25375                        static void routine(void *a) { a = 0; }
25376                        static void *start_routine(void *a) { return a; }
25377int
25378main ()
25379{
25380pthread_t th; pthread_attr_t attr;
25381                        pthread_create(&th, 0, start_routine, 0);
25382                        pthread_join(th, 0);
25383                        pthread_attr_init(&attr);
25384                        pthread_cleanup_push(routine, 0);
25385                        pthread_cleanup_pop(0) /* ; */
25386  ;
25387  return 0;
25388}
25389_ACEOF
25390if ac_fn_c_try_link "$LINENO"; then :
25391  ax_pthread_ok=yes
25392fi
25393rm -f core conftest.err conftest.$ac_objext \
25394    conftest$ac_exeext conftest.$ac_ext
25395
25396        CFLAGS="$ax_pthread_save_CFLAGS"
25397        LIBS="$ax_pthread_save_LIBS"
25398
25399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
25400$as_echo "$ax_pthread_ok" >&6; }
25401        if test "x$ax_pthread_ok" = "xyes"; then :
25402  break
25403fi
25404
25405        PTHREAD_LIBS=""
25406        PTHREAD_CFLAGS=""
25407done
25408fi
25409
25410# Various other checks:
25411if test "x$ax_pthread_ok" = "xyes"; then
25412        ax_pthread_save_CFLAGS="$CFLAGS"
25413        ax_pthread_save_LIBS="$LIBS"
25414        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25415        LIBS="$PTHREAD_LIBS $LIBS"
25416
25417        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
25419$as_echo_n "checking for joinable pthread attribute... " >&6; }
25420if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
25421  $as_echo_n "(cached) " >&6
25422else
25423  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
25424             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
25425                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426/* end confdefs.h.  */
25427#include <pthread.h>
25428int
25429main ()
25430{
25431int attr = $ax_pthread_attr; return attr /* ; */
25432  ;
25433  return 0;
25434}
25435_ACEOF
25436if ac_fn_c_try_link "$LINENO"; then :
25437  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
25438fi
25439rm -f core conftest.err conftest.$ac_objext \
25440    conftest$ac_exeext conftest.$ac_ext
25441             done
25442
25443fi
25444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
25445$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
25446        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
25447               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
25448               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
25449
25450cat >>confdefs.h <<_ACEOF
25451#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
25452_ACEOF
25453
25454               ax_pthread_joinable_attr_defined=yes
25455
25456fi
25457
25458        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
25459$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
25460if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
25461  $as_echo_n "(cached) " >&6
25462else
25463  ax_cv_PTHREAD_SPECIAL_FLAGS=no
25464             case $host_os in
25465             solaris*)
25466             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
25467             ;;
25468             esac
25469
25470fi
25471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
25472$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
25473        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
25474               test "x$ax_pthread_special_flags_added" != "xyes"; then :
25475  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
25476               ax_pthread_special_flags_added=yes
25477fi
25478
25479        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25480$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25481if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25482  $as_echo_n "(cached) " >&6
25483else
25484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485/* end confdefs.h.  */
25486#include <pthread.h>
25487int
25488main ()
25489{
25490int i = PTHREAD_PRIO_INHERIT;
25491  ;
25492  return 0;
25493}
25494_ACEOF
25495if ac_fn_c_try_link "$LINENO"; then :
25496  ax_cv_PTHREAD_PRIO_INHERIT=yes
25497else
25498  ax_cv_PTHREAD_PRIO_INHERIT=no
25499fi
25500rm -f core conftest.err conftest.$ac_objext \
25501    conftest$ac_exeext conftest.$ac_ext
25502
25503fi
25504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25505$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25506        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
25507               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
25508
25509$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25510
25511               ax_pthread_prio_inherit_defined=yes
25512
25513fi
25514
25515        CFLAGS="$ax_pthread_save_CFLAGS"
25516        LIBS="$ax_pthread_save_LIBS"
25517
25518        # More AIX lossage: compile with *_r variant
25519        if test "x$GCC" != "xyes"; then
25520            case $host_os in
25521                aix*)
25522                case "x/$CC" in #(
25523  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25524    #handle absolute path differently from PATH based program lookup
25525                     case "x$CC" in #(
25526  x/*) :
25527    if as_fn_executable_p ${CC}_r; then :
25528  PTHREAD_CC="${CC}_r"
25529fi ;; #(
25530  *) :
25531    for ac_prog in ${CC}_r
25532do
25533  # Extract the first word of "$ac_prog", so it can be a program name with args.
25534set dummy $ac_prog; ac_word=$2
25535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25536$as_echo_n "checking for $ac_word... " >&6; }
25537if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25538  $as_echo_n "(cached) " >&6
25539else
25540  if test -n "$PTHREAD_CC"; then
25541  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25542else
25543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25544for as_dir in $PATH
25545do
25546  IFS=$as_save_IFS
25547  test -z "$as_dir" && as_dir=.
25548    for ac_exec_ext in '' $ac_executable_extensions; do
25549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25550    ac_cv_prog_PTHREAD_CC="$ac_prog"
25551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25552    break 2
25553  fi
25554done
25555  done
25556IFS=$as_save_IFS
25557
25558fi
25559fi
25560PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25561if test -n "$PTHREAD_CC"; then
25562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25563$as_echo "$PTHREAD_CC" >&6; }
25564else
25565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25566$as_echo "no" >&6; }
25567fi
25568
25569
25570  test -n "$PTHREAD_CC" && break
25571done
25572test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25573 ;;
25574esac ;; #(
25575  *) :
25576     ;;
25577esac
25578                ;;
25579            esac
25580        fi
25581fi
25582
25583test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25584
25585
25586
25587
25588
25589# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25590if test "x$ax_pthread_ok" = "xyes"; then
25591
25592$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
25593
25594        :
25595else
25596        ax_pthread_ok=no
25597
25598fi
25599ac_ext=c
25600ac_cpp='$CPP $CPPFLAGS'
25601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25603ac_compiler_gnu=$ac_cv_c_compiler_gnu
25604
25605
25606
25607
25608for ac_header in unistd.h
25609do :
25610  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25611if test "x$ac_cv_header_unistd_h" = xyes; then :
25612  cat >>confdefs.h <<_ACEOF
25613#define HAVE_UNISTD_H 1
25614_ACEOF
25615 HAVE_UNISTD_H=yes
25616fi
25617
25618done
25619
25620 if test "x$HAVE_UNISTD_H" = "xyes"; then
25621  HAVE_UNISTD_H_TRUE=
25622  HAVE_UNISTD_H_FALSE='#'
25623else
25624  HAVE_UNISTD_H_TRUE='#'
25625  HAVE_UNISTD_H_FALSE=
25626fi
25627
25628
25629if test "x$HAVE_UNISTD_H" != "xyes"; then
25630  GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
25631fi
25632
25633for ac_header in sys/time.h
25634do :
25635  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
25636if test "x$ac_cv_header_sys_time_h" = xyes; then :
25637  cat >>confdefs.h <<_ACEOF
25638#define HAVE_SYS_TIME_H 1
25639_ACEOF
25640
25641fi
25642
25643done
25644
25645
25646# ------ AX CREATE STDINT H -------------------------------------
25647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
25648$as_echo_n "checking for stdint types... " >&6; }
25649ac_stdint_h=`echo _stdint.h`
25650# try to shortcircuit - if the default include path of the compiler
25651# can find a "stdint.h" header then we assume that all compilers can.
25652if ${ac_cv_header_stdint_t+:} false; then :
25653  $as_echo_n "(cached) " >&6
25654else
25655
25656old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
25657old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
25658old_CFLAGS="$CFLAGS"     ; CFLAGS=""
25659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660/* end confdefs.h.  */
25661#include <stdint.h>
25662int
25663main ()
25664{
25665int_least32_t v = 0;
25666  ;
25667  return 0;
25668}
25669_ACEOF
25670if ac_fn_c_try_compile "$LINENO"; then :
25671  ac_cv_stdint_result="(assuming C99 compatible system)"
25672 ac_cv_header_stdint_t="stdint.h";
25673else
25674  ac_cv_header_stdint_t=""
25675fi
25676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25677if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
25678CFLAGS="-std=c99"
25679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25680/* end confdefs.h.  */
25681#include <stdint.h>
25682int
25683main ()
25684{
25685int_least32_t v = 0;
25686  ;
25687  return 0;
25688}
25689_ACEOF
25690if ac_fn_c_try_compile "$LINENO"; then :
25691  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
25692$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
25693fi
25694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25695fi
25696CXXFLAGS="$old_CXXFLAGS"
25697CPPFLAGS="$old_CPPFLAGS"
25698CFLAGS="$old_CFLAGS"
25699fi
25700
25701
25702v="... $ac_cv_header_stdint_h"
25703if test "$ac_stdint_h" = "stdint.h" ; then
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
25705$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
25706elif test "$ac_stdint_h" = "inttypes.h" ; then
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
25708$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
25709elif test "_$ac_cv_header_stdint_t" = "_" ; then
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
25711$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
25712else
25713 ac_cv_header_stdint="$ac_cv_header_stdint_t"
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
25715$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
25716fi
25717
25718if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
25719
25720
25721inttype_headers=`echo  | sed -e 's/,/ /g'`
25722
25723ac_cv_stdint_result="(no helpful system typedefs seen)"
25724
25725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25726$as_echo_n "checking for stdint uintptr_t... " >&6; }
25727if ${ac_cv_header_stdint_x+:} false; then :
25728  $as_echo_n "(cached) " >&6
25729else
25730
25731 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
25732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25733$as_echo "(..)" >&6; }
25734  for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
25735  do
25736   unset ac_cv_type_uintptr_t
25737   unset ac_cv_type_uint64_t
25738   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
25739"
25740if test "x$ac_cv_type_uintptr_t" = xyes; then :
25741  ac_cv_header_stdint_x=$i
25742else
25743  continue
25744fi
25745
25746   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25747"
25748if test "x$ac_cv_type_uint64_t" = xyes; then :
25749  and64="/uint64_t"
25750else
25751  and64=""
25752fi
25753
25754   ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
25755 break
25756  done
25757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25758$as_echo_n "checking for stdint uintptr_t... " >&6; }
25759
25760fi
25761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
25762$as_echo "$ac_cv_header_stdint_x" >&6; }
25763
25764
25765if test "_$ac_cv_header_stdint_x" = "_" ; then
25766
25767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25768$as_echo_n "checking for stdint uint32_t... " >&6; }
25769if ${ac_cv_header_stdint_o+:} false; then :
25770  $as_echo_n "(cached) " >&6
25771else
25772
25773 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
25774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25775$as_echo "(..)" >&6; }
25776  for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
25777  do
25778   unset ac_cv_type_uint32_t
25779   unset ac_cv_type_uint64_t
25780   ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
25781"
25782if test "x$ac_cv_type_uint32_t" = xyes; then :
25783  ac_cv_header_stdint_o=$i
25784else
25785  continue
25786fi
25787
25788   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25789"
25790if test "x$ac_cv_type_uint64_t" = xyes; then :
25791  and64="/uint64_t"
25792else
25793  and64=""
25794fi
25795
25796   ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
25797 break
25798   break;
25799  done
25800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25801$as_echo_n "checking for stdint uint32_t... " >&6; }
25802
25803fi
25804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
25805$as_echo "$ac_cv_header_stdint_o" >&6; }
25806
25807fi
25808
25809if test "_$ac_cv_header_stdint_x" = "_" ; then
25810if test "_$ac_cv_header_stdint_o" = "_" ; then
25811
25812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25813$as_echo_n "checking for stdint u_int32_t... " >&6; }
25814if ${ac_cv_header_stdint_u+:} false; then :
25815  $as_echo_n "(cached) " >&6
25816else
25817
25818 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
25819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25820$as_echo "(..)" >&6; }
25821  for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
25822   unset ac_cv_type_u_int32_t
25823   unset ac_cv_type_u_int64_t
25824   ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
25825"
25826if test "x$ac_cv_type_u_int32_t" = xyes; then :
25827  ac_cv_header_stdint_u=$i
25828else
25829  continue
25830fi
25831
25832   ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
25833"
25834if test "x$ac_cv_type_u_int64_t" = xyes; then :
25835  and64="/u_int64_t"
25836else
25837  and64=""
25838fi
25839
25840   ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
25841 break
25842   break;
25843  done
25844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25845$as_echo_n "checking for stdint u_int32_t... " >&6; }
25846
25847fi
25848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
25849$as_echo "$ac_cv_header_stdint_u" >&6; }
25850
25851fi fi
25852
25853if test "_$ac_cv_header_stdint_x" = "_" ; then
25854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
25855$as_echo_n "checking for stdint datatype model... " >&6; }
25856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25857$as_echo "(..)" >&6; }
25858
25859   # The cast to long int works around a bug in the HP C Compiler
25860# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25861# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25862# This bug is HP SR number 8606223364.
25863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
25864$as_echo_n "checking size of char... " >&6; }
25865if ${ac_cv_sizeof_char+:} false; then :
25866  $as_echo_n "(cached) " >&6
25867else
25868  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
25869
25870else
25871  if test "$ac_cv_type_char" = yes; then
25872     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25874as_fn_error 77 "cannot compute sizeof (char)
25875See \`config.log' for more details" "$LINENO" 5; }
25876   else
25877     ac_cv_sizeof_char=0
25878   fi
25879fi
25880
25881fi
25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
25883$as_echo "$ac_cv_sizeof_char" >&6; }
25884
25885
25886
25887cat >>confdefs.h <<_ACEOF
25888#define SIZEOF_CHAR $ac_cv_sizeof_char
25889_ACEOF
25890
25891
25892   # The cast to long int works around a bug in the HP C Compiler
25893# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25894# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25895# This bug is HP SR number 8606223364.
25896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
25897$as_echo_n "checking size of short... " >&6; }
25898if ${ac_cv_sizeof_short+:} false; then :
25899  $as_echo_n "(cached) " >&6
25900else
25901  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
25902
25903else
25904  if test "$ac_cv_type_short" = yes; then
25905     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25907as_fn_error 77 "cannot compute sizeof (short)
25908See \`config.log' for more details" "$LINENO" 5; }
25909   else
25910     ac_cv_sizeof_short=0
25911   fi
25912fi
25913
25914fi
25915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
25916$as_echo "$ac_cv_sizeof_short" >&6; }
25917
25918
25919
25920cat >>confdefs.h <<_ACEOF
25921#define SIZEOF_SHORT $ac_cv_sizeof_short
25922_ACEOF
25923
25924
25925   # The cast to long int works around a bug in the HP C Compiler
25926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25928# This bug is HP SR number 8606223364.
25929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
25930$as_echo_n "checking size of int... " >&6; }
25931if ${ac_cv_sizeof_int+:} false; then :
25932  $as_echo_n "(cached) " >&6
25933else
25934  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
25935
25936else
25937  if test "$ac_cv_type_int" = yes; then
25938     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25940as_fn_error 77 "cannot compute sizeof (int)
25941See \`config.log' for more details" "$LINENO" 5; }
25942   else
25943     ac_cv_sizeof_int=0
25944   fi
25945fi
25946
25947fi
25948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
25949$as_echo "$ac_cv_sizeof_int" >&6; }
25950
25951
25952
25953cat >>confdefs.h <<_ACEOF
25954#define SIZEOF_INT $ac_cv_sizeof_int
25955_ACEOF
25956
25957
25958   # The cast to long int works around a bug in the HP C Compiler
25959# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25960# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25961# This bug is HP SR number 8606223364.
25962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
25963$as_echo_n "checking size of long... " >&6; }
25964if ${ac_cv_sizeof_long+:} false; then :
25965  $as_echo_n "(cached) " >&6
25966else
25967  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
25968
25969else
25970  if test "$ac_cv_type_long" = yes; then
25971     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25973as_fn_error 77 "cannot compute sizeof (long)
25974See \`config.log' for more details" "$LINENO" 5; }
25975   else
25976     ac_cv_sizeof_long=0
25977   fi
25978fi
25979
25980fi
25981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
25982$as_echo "$ac_cv_sizeof_long" >&6; }
25983
25984
25985
25986cat >>confdefs.h <<_ACEOF
25987#define SIZEOF_LONG $ac_cv_sizeof_long
25988_ACEOF
25989
25990
25991   # The cast to long int works around a bug in the HP C Compiler
25992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25994# This bug is HP SR number 8606223364.
25995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
25996$as_echo_n "checking size of void*... " >&6; }
25997if ${ac_cv_sizeof_voidp+:} false; then :
25998  $as_echo_n "(cached) " >&6
25999else
26000  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
26001
26002else
26003  if test "$ac_cv_type_voidp" = yes; then
26004     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26006as_fn_error 77 "cannot compute sizeof (void*)
26007See \`config.log' for more details" "$LINENO" 5; }
26008   else
26009     ac_cv_sizeof_voidp=0
26010   fi
26011fi
26012
26013fi
26014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
26015$as_echo "$ac_cv_sizeof_voidp" >&6; }
26016
26017
26018
26019cat >>confdefs.h <<_ACEOF
26020#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
26021_ACEOF
26022
26023
26024   ac_cv_char_data_model=""
26025   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
26026   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
26027   ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
26028   ac_cv_long_data_model=""
26029   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
26030   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
26031   ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
26032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
26033$as_echo_n "checking data model... " >&6; }
26034   case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
26035    122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
26036    122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
26037    122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
26038    124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
26039    124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
26040    124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
26041    124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
26042    128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
26043    128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
26044    222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
26045    333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
26046    444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
26047    666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
26048    888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
26049    222/*|333/*|444/*|666/*|888/*) :
26050                 ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
26051     *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
26052   esac
26053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
26054$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
26055
26056fi
26057
26058if test "_$ac_cv_header_stdint_x" != "_" ; then
26059   ac_cv_header_stdint="$ac_cv_header_stdint_x"
26060elif  test "_$ac_cv_header_stdint_o" != "_" ; then
26061   ac_cv_header_stdint="$ac_cv_header_stdint_o"
26062elif  test "_$ac_cv_header_stdint_u" != "_" ; then
26063   ac_cv_header_stdint="$ac_cv_header_stdint_u"
26064else
26065   ac_cv_header_stdint="stddef.h"
26066fi
26067
26068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
26069$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
26070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
26071$as_echo "($ac_cv_header_stdint)" >&6; }
26072unset ac_cv_type_int_least32_t
26073unset ac_cv_type_int_fast32_t
26074ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
26075"
26076if test "x$ac_cv_type_int_least32_t" = xyes; then :
26077
26078fi
26079
26080ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
26081"
26082if test "x$ac_cv_type_int_fast32_t" = xyes; then :
26083
26084fi
26085
26086ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
26087"
26088if test "x$ac_cv_type_intmax_t" = xyes; then :
26089
26090fi
26091
26092
26093fi # shortcircut to system "stdint.h"
26094# ------------------ PREPARE VARIABLES ------------------------------
26095if test "$GCC" = "yes" ; then
26096ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
26097else
26098ac_cv_stdint_message="using $CC"
26099fi
26100
26101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
26102$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
26103
26104# ----------------- DONE inttypes.h checks START header -------------
26105ac_config_commands="$ac_config_commands $ac_stdint_h"
26106
26107
26108
26109for ac_header in pthread.h
26110do :
26111  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
26112if test "x$ac_cv_header_pthread_h" = xyes; then :
26113  cat >>confdefs.h <<_ACEOF
26114#define HAVE_PTHREAD_H 1
26115_ACEOF
26116 HAVE_PTHREAD_H=yes
26117fi
26118
26119done
26120
26121 if test "x$HAVE_PTHREAD_H" = "xyes"; then
26122  HAVE_PTHREAD_H_TRUE=
26123  HAVE_PTHREAD_H_FALSE='#'
26124else
26125  HAVE_PTHREAD_H_TRUE='#'
26126  HAVE_PTHREAD_H_FALSE=
26127fi
26128
26129
26130
26131
26132
26133for ac_func in gmtime_r pipe2
26134do :
26135  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26136ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26137if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26138  cat >>confdefs.h <<_ACEOF
26139#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26140_ACEOF
26141
26142fi
26143done
26144
26145
26146for ac_header in sys/utsname.h
26147do :
26148  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
26149if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
26150  cat >>confdefs.h <<_ACEOF
26151#define HAVE_SYS_UTSNAME_H 1
26152_ACEOF
26153
26154fi
26155
26156done
26157
26158
26159
26160ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26161if test "x$ac_cv_func_socket" = xyes; then :
26162
26163else
26164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
26165$as_echo_n "checking for socket in -lsocket... " >&6; }
26166if ${ac_cv_lib_socket_socket+:} false; then :
26167  $as_echo_n "(cached) " >&6
26168else
26169  ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lsocket  $LIBS"
26171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26172/* end confdefs.h.  */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175   Use char because int might match the return type of a GCC
26176   builtin and then its argument prototype would still apply.  */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char socket ();
26181int
26182main ()
26183{
26184return socket ();
26185  ;
26186  return 0;
26187}
26188_ACEOF
26189if ac_fn_c_try_link "$LINENO"; then :
26190  ac_cv_lib_socket_socket=yes
26191else
26192  ac_cv_lib_socket_socket=no
26193fi
26194rm -f core conftest.err conftest.$ac_objext \
26195    conftest$ac_exeext conftest.$ac_ext
26196LIBS=$ac_check_lib_save_LIBS
26197fi
26198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
26199$as_echo "$ac_cv_lib_socket_socket" >&6; }
26200if test "x$ac_cv_lib_socket_socket" = xyes; then :
26201  cat >>confdefs.h <<_ACEOF
26202#define HAVE_LIBSOCKET 1
26203_ACEOF
26204
26205  LIBS="-lsocket $LIBS"
26206
26207fi
26208
26209fi
26210
26211ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26212if test "x$ac_cv_func_gethostbyname" = xyes; then :
26213
26214else
26215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26216$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26217if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26218  $as_echo_n "(cached) " >&6
26219else
26220  ac_check_lib_save_LIBS=$LIBS
26221LIBS="-lnsl  $LIBS"
26222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223/* end confdefs.h.  */
26224
26225/* Override any GCC internal prototype to avoid an error.
26226   Use char because int might match the return type of a GCC
26227   builtin and then its argument prototype would still apply.  */
26228#ifdef __cplusplus
26229extern "C"
26230#endif
26231char gethostbyname ();
26232int
26233main ()
26234{
26235return gethostbyname ();
26236  ;
26237  return 0;
26238}
26239_ACEOF
26240if ac_fn_c_try_link "$LINENO"; then :
26241  ac_cv_lib_nsl_gethostbyname=yes
26242else
26243  ac_cv_lib_nsl_gethostbyname=no
26244fi
26245rm -f core conftest.err conftest.$ac_objext \
26246    conftest$ac_exeext conftest.$ac_ext
26247LIBS=$ac_check_lib_save_LIBS
26248fi
26249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26250$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26251if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26252  cat >>confdefs.h <<_ACEOF
26253#define HAVE_LIBNSL 1
26254_ACEOF
26255
26256  LIBS="-lnsl $LIBS"
26257
26258fi
26259
26260fi
26261
26262
26263GLIB_REQ=2.40.0
26264
26265
26266
26267    GLIB_REQ=$GLIB_REQ
26268  if test "x$GLIB_REQ" = "x"
26269  then
26270    as_fn_error $? "Please specify a required version for GLib 2.0" "$LINENO" 5
26271  fi
26272
26273
26274
26275  which="glib-2.0 >= $GLIB_REQ gobject-2.0 gmodule-no-export-2.0"
26276    required="no"
26277
26278
26279pkg_failed=no
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
26281$as_echo_n "checking for GLIB... " >&6; }
26282
26283if test -n "$PKG_CONFIG"; then
26284    if test -n "$GLIB_CFLAGS"; then
26285        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
26286    else
26287        if test -n "$PKG_CONFIG" && \
26288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
26289  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
26290  ac_status=$?
26291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26292  test $ac_status = 0; }; then
26293  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
26294else
26295  pkg_failed=yes
26296fi
26297    fi
26298else
26299	pkg_failed=untried
26300fi
26301if test -n "$PKG_CONFIG"; then
26302    if test -n "$GLIB_LIBS"; then
26303        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
26304    else
26305        if test -n "$PKG_CONFIG" && \
26306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
26307  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
26308  ac_status=$?
26309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310  test $ac_status = 0; }; then
26311  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
26312else
26313  pkg_failed=yes
26314fi
26315    fi
26316else
26317	pkg_failed=untried
26318fi
26319
26320
26321
26322if test $pkg_failed = yes; then
26323
26324if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26325        _pkg_short_errors_supported=yes
26326else
26327        _pkg_short_errors_supported=no
26328fi
26329        if test $_pkg_short_errors_supported = yes; then
26330	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
26331        else
26332	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
26333        fi
26334	# Put the nasty error message in config.log where it belongs
26335	echo "$GLIB_PKG_ERRORS" >&5
26336
26337	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26338$as_echo "no" >&6; }
26339
26340      HAVE_GLIB="no"
26341      if test "x$required" = "xyes"; then
26342        as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
26343      else
26344        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
26345$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
26346      fi
26347
26348elif test $pkg_failed = untried; then
26349
26350      HAVE_GLIB="no"
26351      if test "x$required" = "xyes"; then
26352        as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
26353      else
26354        { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
26355$as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
26356      fi
26357
26358else
26359	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
26360	GLIB_LIBS=$pkg_cv_GLIB_LIBS
26361        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26362$as_echo "yes" >&6; }
26363
26364      HAVE_GLIB="yes"
26365
26366fi
26367
26368
26369
26370  if test "x$HAVE_GLIB" = "xno"; then
26371    as_fn_error $? "This package requires GLib >= $GLIB_REQ to compile." "$LINENO" 5
26372  fi
26373
26374        GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_THREADS_MANDATORY"
26375
26376    if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
26377    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_DEPRECATED"
26378  fi
26379
26380  # Check whether --enable-gobject-cast-checks was given.
26381if test "${enable_gobject_cast_checks+set}" = set; then :
26382  enableval=$enable_gobject_cast_checks; enable_gobject_cast_checks=$enableval
26383else
26384  enable_gobject_cast_checks=auto
26385fi
26386
26387
26388  if test "x$enable_gobject_cast_checks" = "xauto"; then
26389        if test "x`expr $PACKAGE_VERSION_MINOR % 2`" = "x1" -a "x`expr $PACKAGE_VERSION_MICRO '<' 90`" = "x1"; then
26390      enable_gobject_cast_checks=yes
26391    else
26392      enable_gobject_cast_checks=no
26393    fi
26394  fi
26395
26396  if test "x$enable_gobject_cast_checks" = "xno"; then
26397    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS"
26398  fi
26399
26400  # Check whether --enable-glib-asserts was given.
26401if test "${enable_glib_asserts+set}" = set; then :
26402  enableval=$enable_glib_asserts; enable_glib_assertions=$enableval
26403else
26404  enable_glib_assertions=yes
26405fi
26406
26407
26408  if test "x$enable_glib_assertions" = "xno"; then
26409    GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_ASSERT"
26410  fi
26411
26412                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-genmarshal" >&5
26413$as_echo_n "checking for glib-genmarshal... " >&6; }
26414  if test "x$GLIB_GENMARSHAL" != "x"; then
26415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from environment)" >&5
26416$as_echo "$GLIB_GENMARSHAL (from environment)" >&6; }
26417  else
26418    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
26419    if $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
26420      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL (from pkg-config path)" >&5
26421$as_echo "$GLIB_GENMARSHAL (from pkg-config path)" >&6; }
26422    else
26423      # Extract the first word of "glib-genmarshal", so it can be a program name with args.
26424set dummy glib-genmarshal; ac_word=$2
26425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26426$as_echo_n "checking for $ac_word... " >&6; }
26427if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
26428  $as_echo_n "(cached) " >&6
26429else
26430  case $GLIB_GENMARSHAL in
26431  [\\/]* | ?:[\\/]*)
26432  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
26433  ;;
26434  *)
26435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26436for as_dir in $PATH
26437do
26438  IFS=$as_save_IFS
26439  test -z "$as_dir" && as_dir=.
26440    for ac_exec_ext in '' $ac_executable_extensions; do
26441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26442    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
26443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26444    break 2
26445  fi
26446done
26447  done
26448IFS=$as_save_IFS
26449
26450  test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="glib-genmarshal"
26451  ;;
26452esac
26453fi
26454GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
26455if test -n "$GLIB_GENMARSHAL"; then
26456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
26457$as_echo "$GLIB_GENMARSHAL" >&6; }
26458else
26459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26460$as_echo "no" >&6; }
26461fi
26462
26463
26464      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
26465$as_echo "$GLIB_GENMARSHAL" >&6; }
26466    fi
26467  fi
26468  if ! $GLIB_GENMARSHAL --version 2>/dev/null >/dev/null; then
26469    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&5
26470$as_echo "$as_me: WARNING: $GLIB_GENMARSHAL does not seem to work!" >&2;}
26471  fi
26472
26473
26474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-mkenums" >&5
26475$as_echo_n "checking for glib-mkenums... " >&6; }
26476  if test "x$GLIB_MKENUMS" != "x"; then
26477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS (from environment)" >&5
26478$as_echo "$GLIB_MKENUMS (from environment)" >&6; }
26479  else
26480        GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
26481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
26482$as_echo "$GLIB_MKENUMS" >&6; }
26483  fi
26484  if ! $GLIB_MKENUMS --version 2>/dev/null >/dev/null; then
26485    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GLIB_MKENUMS does not seem to work!" >&5
26486$as_echo "$as_me: WARNING: $GLIB_MKENUMS does not seem to work!" >&2;}
26487  fi
26488
26489
26490
26491
26492
26493pkg_failed=no
26494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
26495$as_echo_n "checking for GIO... " >&6; }
26496
26497if test -n "$PKG_CONFIG"; then
26498    if test -n "$GIO_CFLAGS"; then
26499        pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
26500    else
26501        if test -n "$PKG_CONFIG" && \
26502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5
26503  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5
26504  ac_status=$?
26505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26506  test $ac_status = 0; }; then
26507  pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB_REQ" 2>/dev/null`
26508else
26509  pkg_failed=yes
26510fi
26511    fi
26512else
26513	pkg_failed=untried
26514fi
26515if test -n "$PKG_CONFIG"; then
26516    if test -n "$GIO_LIBS"; then
26517        pkg_cv_GIO_LIBS="$GIO_LIBS"
26518    else
26519        if test -n "$PKG_CONFIG" && \
26520    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB_REQ\""; } >&5
26521  ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB_REQ") 2>&5
26522  ac_status=$?
26523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524  test $ac_status = 0; }; then
26525  pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB_REQ" 2>/dev/null`
26526else
26527  pkg_failed=yes
26528fi
26529    fi
26530else
26531	pkg_failed=untried
26532fi
26533
26534
26535
26536if test $pkg_failed = yes; then
26537
26538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26539        _pkg_short_errors_supported=yes
26540else
26541        _pkg_short_errors_supported=no
26542fi
26543        if test $_pkg_short_errors_supported = yes; then
26544	        GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"`
26545        else
26546	        GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= $GLIB_REQ"`
26547        fi
26548	# Put the nasty error message in config.log where it belongs
26549	echo "$GIO_PKG_ERRORS" >&5
26550
26551	as_fn_error $? "Package requirements (gio-2.0 >= $GLIB_REQ) were not met:
26552
26553$GIO_PKG_ERRORS
26554
26555Consider adjusting the PKG_CONFIG_PATH environment variable if you
26556installed software in a non-standard prefix.
26557
26558Alternatively, you may set the environment variables GIO_CFLAGS
26559and GIO_LIBS to avoid the need to call pkg-config.
26560See the pkg-config man page for more details.
26561" "$LINENO" 5
26562elif test $pkg_failed = untried; then
26563	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26565as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26566is in your PATH or set the PKG_CONFIG environment variable to the full
26567path to pkg-config.
26568
26569Alternatively, you may set the environment variables GIO_CFLAGS
26570and GIO_LIBS to avoid the need to call pkg-config.
26571See the pkg-config man page for more details.
26572
26573To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26574See \`config.log' for more details" "$LINENO" 5; }
26575else
26576	GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
26577	GIO_LIBS=$pkg_cv_GIO_LIBS
26578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26579$as_echo "yes" >&6; }
26580	:
26581fi
26582  if test "x$HAVE_GIO" = "xno"; then
26583    as_fn_error $? "This package requires GIO >= $GLIB_REQ to compile." "$LINENO" 5
26584  fi
26585
26586  GIO_MODULE_DIR="`$PKG_CONFIG --variable=giomoduledir gio-2.0`"
26587
26588cat >>confdefs.h <<_ACEOF
26589#define GIO_MODULE_DIR "$GIO_MODULE_DIR"
26590_ACEOF
26591
26592  GIO_LIBDIR="`$PKG_CONFIG --variable=libdir gio-2.0`"
26593
26594cat >>confdefs.h <<_ACEOF
26595#define GIO_LIBDIR "$GIO_LIBDIR"
26596_ACEOF
26597
26598  GIO_PREFIX="`$PKG_CONFIG --variable=prefix gio-2.0`"
26599
26600cat >>confdefs.h <<_ACEOF
26601#define GIO_PREFIX "$GIO_PREFIX"
26602_ACEOF
26603
26604
26605
26606
26607
26608
26609
26610
26611pkg_failed=no
26612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE_NO_EXPORT" >&5
26613$as_echo_n "checking for GMODULE_NO_EXPORT... " >&6; }
26614
26615if test -n "$PKG_CONFIG"; then
26616    if test -n "$GMODULE_NO_EXPORT_CFLAGS"; then
26617        pkg_cv_GMODULE_NO_EXPORT_CFLAGS="$GMODULE_NO_EXPORT_CFLAGS"
26618    else
26619        if test -n "$PKG_CONFIG" && \
26620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
26621  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
26622  ac_status=$?
26623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26624  test $ac_status = 0; }; then
26625  pkg_cv_GMODULE_NO_EXPORT_CFLAGS=`$PKG_CONFIG --cflags "gmodule-no-export-2.0" 2>/dev/null`
26626else
26627  pkg_failed=yes
26628fi
26629    fi
26630else
26631	pkg_failed=untried
26632fi
26633if test -n "$PKG_CONFIG"; then
26634    if test -n "$GMODULE_NO_EXPORT_LIBS"; then
26635        pkg_cv_GMODULE_NO_EXPORT_LIBS="$GMODULE_NO_EXPORT_LIBS"
26636    else
26637        if test -n "$PKG_CONFIG" && \
26638    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0\""; } >&5
26639  ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0") 2>&5
26640  ac_status=$?
26641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26642  test $ac_status = 0; }; then
26643  pkg_cv_GMODULE_NO_EXPORT_LIBS=`$PKG_CONFIG --libs "gmodule-no-export-2.0" 2>/dev/null`
26644else
26645  pkg_failed=yes
26646fi
26647    fi
26648else
26649	pkg_failed=untried
26650fi
26651
26652
26653
26654if test $pkg_failed = yes; then
26655
26656if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26657        _pkg_short_errors_supported=yes
26658else
26659        _pkg_short_errors_supported=no
26660fi
26661        if test $_pkg_short_errors_supported = yes; then
26662	        GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gmodule-no-export-2.0"`
26663        else
26664	        GMODULE_NO_EXPORT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gmodule-no-export-2.0"`
26665        fi
26666	# Put the nasty error message in config.log where it belongs
26667	echo "$GMODULE_NO_EXPORT_PKG_ERRORS" >&5
26668
26669	as_fn_error $? "Package requirements (gmodule-no-export-2.0) were not met:
26670
26671$GMODULE_NO_EXPORT_PKG_ERRORS
26672
26673Consider adjusting the PKG_CONFIG_PATH environment variable if you
26674installed software in a non-standard prefix.
26675
26676Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
26677and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
26678See the pkg-config man page for more details.
26679" "$LINENO" 5
26680elif test $pkg_failed = untried; then
26681	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26683as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26684is in your PATH or set the PKG_CONFIG environment variable to the full
26685path to pkg-config.
26686
26687Alternatively, you may set the environment variables GMODULE_NO_EXPORT_CFLAGS
26688and GMODULE_NO_EXPORT_LIBS to avoid the need to call pkg-config.
26689See the pkg-config man page for more details.
26690
26691To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26692See \`config.log' for more details" "$LINENO" 5; }
26693else
26694	GMODULE_NO_EXPORT_CFLAGS=$pkg_cv_GMODULE_NO_EXPORT_CFLAGS
26695	GMODULE_NO_EXPORT_LIBS=$pkg_cv_GMODULE_NO_EXPORT_LIBS
26696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26697$as_echo "yes" >&6; }
26698	:
26699fi
26700
26701
26702
26703  module=gstreamer-$GST_API_VERSION
26704  minver=$GST_REQ
26705  name="GStreamer"
26706  required=yes
26707
26708pkg_failed=no
26709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
26710$as_echo_n "checking for GST... " >&6; }
26711
26712if test -n "$PKG_CONFIG"; then
26713    if test -n "$GST_CFLAGS"; then
26714        pkg_cv_GST_CFLAGS="$GST_CFLAGS"
26715    else
26716        if test -n "$PKG_CONFIG" && \
26717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26718  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26719  ac_status=$?
26720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26721  test $ac_status = 0; }; then
26722  pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
26723else
26724  pkg_failed=yes
26725fi
26726    fi
26727else
26728	pkg_failed=untried
26729fi
26730if test -n "$PKG_CONFIG"; then
26731    if test -n "$GST_LIBS"; then
26732        pkg_cv_GST_LIBS="$GST_LIBS"
26733    else
26734        if test -n "$PKG_CONFIG" && \
26735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26736  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26737  ac_status=$?
26738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26739  test $ac_status = 0; }; then
26740  pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
26741else
26742  pkg_failed=yes
26743fi
26744    fi
26745else
26746	pkg_failed=untried
26747fi
26748
26749
26750
26751if test $pkg_failed = yes; then
26752
26753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26754        _pkg_short_errors_supported=yes
26755else
26756        _pkg_short_errors_supported=no
26757fi
26758        if test $_pkg_short_errors_supported = yes; then
26759	        GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
26760        else
26761	        GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
26762        fi
26763	# Put the nasty error message in config.log where it belongs
26764	echo "$GST_PKG_ERRORS" >&5
26765
26766	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26767$as_echo "no" >&6; }
26768
26769      HAVE_GST="no"
26770      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
26771$as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
26772      if test "x$required" = "xyes"; then
26773        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26774      else
26775        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26776$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26777      fi
26778
26779elif test $pkg_failed = untried; then
26780
26781      HAVE_GST="no"
26782      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
26783$as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
26784      if test "x$required" = "xyes"; then
26785        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26786      else
26787        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26788$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26789      fi
26790
26791else
26792	GST_CFLAGS=$pkg_cv_GST_CFLAGS
26793	GST_LIBS=$pkg_cv_GST_LIBS
26794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26795$as_echo "yes" >&6; }
26796
26797      HAVE_GST="yes"
26798
26799fi
26800
26801
26802    if test -z $GST_TOOLS_DIR; then
26803    GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-$GST_API_VERSION`
26804    if test -z $GST_TOOLS_DIR; then
26805      as_fn_error $? "no tools dir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
26806    fi
26807  fi
26808  { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer tools in $GST_TOOLS_DIR" >&5
26809$as_echo "$as_me: using GStreamer tools in $GST_TOOLS_DIR" >&6;}
26810
26811
26812        if test -z $GST_PLUGINS_DIR; then
26813    GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-$GST_API_VERSION`
26814    if test -z $GST_PLUGINS_DIR; then
26815      as_fn_error $? "no pluginsdir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
26816    fi
26817  fi
26818  { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&5
26819$as_echo "$as_me: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&6;}
26820
26821
26822
26823
26824  module=gstreamer-base-$GST_API_VERSION
26825  minver=$GST_REQ
26826  name="GStreamer Base Libraries"
26827  required=yes
26828
26829pkg_failed=no
26830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_BASE" >&5
26831$as_echo_n "checking for GST_BASE... " >&6; }
26832
26833if test -n "$PKG_CONFIG"; then
26834    if test -n "$GST_BASE_CFLAGS"; then
26835        pkg_cv_GST_BASE_CFLAGS="$GST_BASE_CFLAGS"
26836    else
26837        if test -n "$PKG_CONFIG" && \
26838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26839  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26840  ac_status=$?
26841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842  test $ac_status = 0; }; then
26843  pkg_cv_GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
26844else
26845  pkg_failed=yes
26846fi
26847    fi
26848else
26849	pkg_failed=untried
26850fi
26851if test -n "$PKG_CONFIG"; then
26852    if test -n "$GST_BASE_LIBS"; then
26853        pkg_cv_GST_BASE_LIBS="$GST_BASE_LIBS"
26854    else
26855        if test -n "$PKG_CONFIG" && \
26856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26857  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26858  ac_status=$?
26859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860  test $ac_status = 0; }; then
26861  pkg_cv_GST_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
26862else
26863  pkg_failed=yes
26864fi
26865    fi
26866else
26867	pkg_failed=untried
26868fi
26869
26870
26871
26872if test $pkg_failed = yes; then
26873
26874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26875        _pkg_short_errors_supported=yes
26876else
26877        _pkg_short_errors_supported=no
26878fi
26879        if test $_pkg_short_errors_supported = yes; then
26880	        GST_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
26881        else
26882	        GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
26883        fi
26884	# Put the nasty error message in config.log where it belongs
26885	echo "$GST_BASE_PKG_ERRORS" >&5
26886
26887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26888$as_echo "no" >&6; }
26889
26890      HAVE_GST_BASE="no"
26891      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
26892$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
26893      if test "x$required" = "xyes"; then
26894        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26895      else
26896        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26897$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26898      fi
26899
26900elif test $pkg_failed = untried; then
26901
26902      HAVE_GST_BASE="no"
26903      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
26904$as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
26905      if test "x$required" = "xyes"; then
26906        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26907      else
26908        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26909$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
26910      fi
26911
26912else
26913	GST_BASE_CFLAGS=$pkg_cv_GST_BASE_CFLAGS
26914	GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS
26915        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26916$as_echo "yes" >&6; }
26917
26918      HAVE_GST_BASE="yes"
26919
26920fi
26921
26922
26923
26924
26925
26926  module=gstreamer-check-$GST_API_VERSION
26927  minver=$GST_REQ
26928  name="GStreamer Check unittest Library"
26929  required=no
26930
26931pkg_failed=no
26932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CHECK" >&5
26933$as_echo_n "checking for GST_CHECK... " >&6; }
26934
26935if test -n "$PKG_CONFIG"; then
26936    if test -n "$GST_CHECK_CFLAGS"; then
26937        pkg_cv_GST_CHECK_CFLAGS="$GST_CHECK_CFLAGS"
26938    else
26939        if test -n "$PKG_CONFIG" && \
26940    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26941  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26942  ac_status=$?
26943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26944  test $ac_status = 0; }; then
26945  pkg_cv_GST_CHECK_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
26946else
26947  pkg_failed=yes
26948fi
26949    fi
26950else
26951	pkg_failed=untried
26952fi
26953if test -n "$PKG_CONFIG"; then
26954    if test -n "$GST_CHECK_LIBS"; then
26955        pkg_cv_GST_CHECK_LIBS="$GST_CHECK_LIBS"
26956    else
26957        if test -n "$PKG_CONFIG" && \
26958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
26959  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
26960  ac_status=$?
26961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962  test $ac_status = 0; }; then
26963  pkg_cv_GST_CHECK_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
26964else
26965  pkg_failed=yes
26966fi
26967    fi
26968else
26969	pkg_failed=untried
26970fi
26971
26972
26973
26974if test $pkg_failed = yes; then
26975
26976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26977        _pkg_short_errors_supported=yes
26978else
26979        _pkg_short_errors_supported=no
26980fi
26981        if test $_pkg_short_errors_supported = yes; then
26982	        GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
26983        else
26984	        GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
26985        fi
26986	# Put the nasty error message in config.log where it belongs
26987	echo "$GST_CHECK_PKG_ERRORS" >&5
26988
26989	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26990$as_echo "no" >&6; }
26991
26992      HAVE_GST_CHECK="no"
26993      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
26994$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
26995      if test "x$required" = "xyes"; then
26996        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
26997      else
26998        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
26999$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27000      fi
27001
27002elif test $pkg_failed = untried; then
27003
27004      HAVE_GST_CHECK="no"
27005      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
27006$as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
27007      if test "x$required" = "xyes"; then
27008        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27009      else
27010        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27011$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27012      fi
27013
27014else
27015	GST_CHECK_CFLAGS=$pkg_cv_GST_CHECK_CFLAGS
27016	GST_CHECK_LIBS=$pkg_cv_GST_CHECK_LIBS
27017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27018$as_echo "yes" >&6; }
27019
27020      HAVE_GST_CHECK="yes"
27021
27022fi
27023
27024
27025
27026
27027
27028  module=gstreamer-controller-$GST_API_VERSION
27029  minver=$GST_REQ
27030  name="GStreamer Controller Library"
27031  required=yes
27032
27033pkg_failed=no
27034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CONTROLLER" >&5
27035$as_echo_n "checking for GST_CONTROLLER... " >&6; }
27036
27037if test -n "$PKG_CONFIG"; then
27038    if test -n "$GST_CONTROLLER_CFLAGS"; then
27039        pkg_cv_GST_CONTROLLER_CFLAGS="$GST_CONTROLLER_CFLAGS"
27040    else
27041        if test -n "$PKG_CONFIG" && \
27042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27043  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27044  ac_status=$?
27045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27046  test $ac_status = 0; }; then
27047  pkg_cv_GST_CONTROLLER_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
27048else
27049  pkg_failed=yes
27050fi
27051    fi
27052else
27053	pkg_failed=untried
27054fi
27055if test -n "$PKG_CONFIG"; then
27056    if test -n "$GST_CONTROLLER_LIBS"; then
27057        pkg_cv_GST_CONTROLLER_LIBS="$GST_CONTROLLER_LIBS"
27058    else
27059        if test -n "$PKG_CONFIG" && \
27060    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27061  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27062  ac_status=$?
27063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064  test $ac_status = 0; }; then
27065  pkg_cv_GST_CONTROLLER_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
27066else
27067  pkg_failed=yes
27068fi
27069    fi
27070else
27071	pkg_failed=untried
27072fi
27073
27074
27075
27076if test $pkg_failed = yes; then
27077
27078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27079        _pkg_short_errors_supported=yes
27080else
27081        _pkg_short_errors_supported=no
27082fi
27083        if test $_pkg_short_errors_supported = yes; then
27084	        GST_CONTROLLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
27085        else
27086	        GST_CONTROLLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
27087        fi
27088	# Put the nasty error message in config.log where it belongs
27089	echo "$GST_CONTROLLER_PKG_ERRORS" >&5
27090
27091	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27092$as_echo "no" >&6; }
27093
27094      HAVE_GST_CONTROLLER="no"
27095      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CONTROLLER_PKG_ERRORS" >&5
27096$as_echo "$as_me: $GST_CONTROLLER_PKG_ERRORS" >&6;}
27097      if test "x$required" = "xyes"; then
27098        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27099      else
27100        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27101$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27102      fi
27103
27104elif test $pkg_failed = untried; then
27105
27106      HAVE_GST_CONTROLLER="no"
27107      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CONTROLLER_PKG_ERRORS" >&5
27108$as_echo "$as_me: $GST_CONTROLLER_PKG_ERRORS" >&6;}
27109      if test "x$required" = "xyes"; then
27110        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27111      else
27112        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27113$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27114      fi
27115
27116else
27117	GST_CONTROLLER_CFLAGS=$pkg_cv_GST_CONTROLLER_CFLAGS
27118	GST_CONTROLLER_LIBS=$pkg_cv_GST_CONTROLLER_LIBS
27119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27120$as_echo "yes" >&6; }
27121
27122      HAVE_GST_CONTROLLER="yes"
27123
27124fi
27125
27126
27127
27128
27129
27130  module=gstreamer-net-$GST_API_VERSION
27131  minver=$GST_REQ
27132  name="GStreamer Network Library"
27133  required=yes
27134
27135pkg_failed=no
27136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_NET" >&5
27137$as_echo_n "checking for GST_NET... " >&6; }
27138
27139if test -n "$PKG_CONFIG"; then
27140    if test -n "$GST_NET_CFLAGS"; then
27141        pkg_cv_GST_NET_CFLAGS="$GST_NET_CFLAGS"
27142    else
27143        if test -n "$PKG_CONFIG" && \
27144    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27145  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27146  ac_status=$?
27147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148  test $ac_status = 0; }; then
27149  pkg_cv_GST_NET_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
27150else
27151  pkg_failed=yes
27152fi
27153    fi
27154else
27155	pkg_failed=untried
27156fi
27157if test -n "$PKG_CONFIG"; then
27158    if test -n "$GST_NET_LIBS"; then
27159        pkg_cv_GST_NET_LIBS="$GST_NET_LIBS"
27160    else
27161        if test -n "$PKG_CONFIG" && \
27162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27163  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27164  ac_status=$?
27165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27166  test $ac_status = 0; }; then
27167  pkg_cv_GST_NET_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
27168else
27169  pkg_failed=yes
27170fi
27171    fi
27172else
27173	pkg_failed=untried
27174fi
27175
27176
27177
27178if test $pkg_failed = yes; then
27179
27180if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27181        _pkg_short_errors_supported=yes
27182else
27183        _pkg_short_errors_supported=no
27184fi
27185        if test $_pkg_short_errors_supported = yes; then
27186	        GST_NET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
27187        else
27188	        GST_NET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
27189        fi
27190	# Put the nasty error message in config.log where it belongs
27191	echo "$GST_NET_PKG_ERRORS" >&5
27192
27193	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27194$as_echo "no" >&6; }
27195
27196      HAVE_GST_NET="no"
27197      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_NET_PKG_ERRORS" >&5
27198$as_echo "$as_me: $GST_NET_PKG_ERRORS" >&6;}
27199      if test "x$required" = "xyes"; then
27200        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27201      else
27202        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27203$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27204      fi
27205
27206elif test $pkg_failed = untried; then
27207
27208      HAVE_GST_NET="no"
27209      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_NET_PKG_ERRORS" >&5
27210$as_echo "$as_me: $GST_NET_PKG_ERRORS" >&6;}
27211      if test "x$required" = "xyes"; then
27212        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27213      else
27214        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27215$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27216      fi
27217
27218else
27219	GST_NET_CFLAGS=$pkg_cv_GST_NET_CFLAGS
27220	GST_NET_LIBS=$pkg_cv_GST_NET_LIBS
27221        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27222$as_echo "yes" >&6; }
27223
27224      HAVE_GST_NET="yes"
27225
27226fi
27227
27228
27229
27230
27231  which="gstreamer-video-$GST_API_VERSION"
27232    required=$GSTPB_REQ
27233
27234
27235pkg_failed=no
27236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_VIDEO" >&5
27237$as_echo_n "checking for GST_VIDEO... " >&6; }
27238
27239if test -n "$PKG_CONFIG"; then
27240    if test -n "$GST_VIDEO_CFLAGS"; then
27241        pkg_cv_GST_VIDEO_CFLAGS="$GST_VIDEO_CFLAGS"
27242    else
27243        if test -n "$PKG_CONFIG" && \
27244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27245  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27246  ac_status=$?
27247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248  test $ac_status = 0; }; then
27249  pkg_cv_GST_VIDEO_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27250else
27251  pkg_failed=yes
27252fi
27253    fi
27254else
27255	pkg_failed=untried
27256fi
27257if test -n "$PKG_CONFIG"; then
27258    if test -n "$GST_VIDEO_LIBS"; then
27259        pkg_cv_GST_VIDEO_LIBS="$GST_VIDEO_LIBS"
27260    else
27261        if test -n "$PKG_CONFIG" && \
27262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27263  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27264  ac_status=$?
27265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27266  test $ac_status = 0; }; then
27267  pkg_cv_GST_VIDEO_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27268else
27269  pkg_failed=yes
27270fi
27271    fi
27272else
27273	pkg_failed=untried
27274fi
27275
27276
27277
27278if test $pkg_failed = yes; then
27279
27280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27281        _pkg_short_errors_supported=yes
27282else
27283        _pkg_short_errors_supported=no
27284fi
27285        if test $_pkg_short_errors_supported = yes; then
27286	        GST_VIDEO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27287        else
27288	        GST_VIDEO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27289        fi
27290	# Put the nasty error message in config.log where it belongs
27291	echo "$GST_VIDEO_PKG_ERRORS" >&5
27292
27293	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27294$as_echo "no" >&6; }
27295
27296      HAVE_GST_VIDEO="no"
27297      if test "x$required" = "xyes"; then
27298        as_fn_error $? "$GST_VIDEO_PKG_ERRORS" "$LINENO" 5
27299      else
27300        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_VIDEO_PKG_ERRORS" >&5
27301$as_echo "$as_me: $GST_VIDEO_PKG_ERRORS" >&6;}
27302      fi
27303
27304elif test $pkg_failed = untried; then
27305
27306      HAVE_GST_VIDEO="no"
27307      if test "x$required" = "xyes"; then
27308        as_fn_error $? "$GST_VIDEO_PKG_ERRORS" "$LINENO" 5
27309      else
27310        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_VIDEO_PKG_ERRORS" >&5
27311$as_echo "$as_me: $GST_VIDEO_PKG_ERRORS" >&6;}
27312      fi
27313
27314else
27315	GST_VIDEO_CFLAGS=$pkg_cv_GST_VIDEO_CFLAGS
27316	GST_VIDEO_LIBS=$pkg_cv_GST_VIDEO_LIBS
27317        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27318$as_echo "yes" >&6; }
27319
27320      HAVE_GST_VIDEO="yes"
27321
27322fi
27323
27324
27325
27326  which="gstreamer-audio-$GST_API_VERSION"
27327    required=$GSTPB_REQ
27328
27329
27330pkg_failed=no
27331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_AUDIO" >&5
27332$as_echo_n "checking for GST_AUDIO... " >&6; }
27333
27334if test -n "$PKG_CONFIG"; then
27335    if test -n "$GST_AUDIO_CFLAGS"; then
27336        pkg_cv_GST_AUDIO_CFLAGS="$GST_AUDIO_CFLAGS"
27337    else
27338        if test -n "$PKG_CONFIG" && \
27339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27340  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27341  ac_status=$?
27342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27343  test $ac_status = 0; }; then
27344  pkg_cv_GST_AUDIO_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27345else
27346  pkg_failed=yes
27347fi
27348    fi
27349else
27350	pkg_failed=untried
27351fi
27352if test -n "$PKG_CONFIG"; then
27353    if test -n "$GST_AUDIO_LIBS"; then
27354        pkg_cv_GST_AUDIO_LIBS="$GST_AUDIO_LIBS"
27355    else
27356        if test -n "$PKG_CONFIG" && \
27357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27358  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27359  ac_status=$?
27360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27361  test $ac_status = 0; }; then
27362  pkg_cv_GST_AUDIO_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27363else
27364  pkg_failed=yes
27365fi
27366    fi
27367else
27368	pkg_failed=untried
27369fi
27370
27371
27372
27373if test $pkg_failed = yes; then
27374
27375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27376        _pkg_short_errors_supported=yes
27377else
27378        _pkg_short_errors_supported=no
27379fi
27380        if test $_pkg_short_errors_supported = yes; then
27381	        GST_AUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27382        else
27383	        GST_AUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27384        fi
27385	# Put the nasty error message in config.log where it belongs
27386	echo "$GST_AUDIO_PKG_ERRORS" >&5
27387
27388	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27389$as_echo "no" >&6; }
27390
27391      HAVE_GST_AUDIO="no"
27392      if test "x$required" = "xyes"; then
27393        as_fn_error $? "$GST_AUDIO_PKG_ERRORS" "$LINENO" 5
27394      else
27395        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_AUDIO_PKG_ERRORS" >&5
27396$as_echo "$as_me: $GST_AUDIO_PKG_ERRORS" >&6;}
27397      fi
27398
27399elif test $pkg_failed = untried; then
27400
27401      HAVE_GST_AUDIO="no"
27402      if test "x$required" = "xyes"; then
27403        as_fn_error $? "$GST_AUDIO_PKG_ERRORS" "$LINENO" 5
27404      else
27405        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_AUDIO_PKG_ERRORS" >&5
27406$as_echo "$as_me: $GST_AUDIO_PKG_ERRORS" >&6;}
27407      fi
27408
27409else
27410	GST_AUDIO_CFLAGS=$pkg_cv_GST_AUDIO_CFLAGS
27411	GST_AUDIO_LIBS=$pkg_cv_GST_AUDIO_LIBS
27412        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27413$as_echo "yes" >&6; }
27414
27415      HAVE_GST_AUDIO="yes"
27416
27417fi
27418
27419
27420
27421  which="gstreamer-pbutils-$GST_API_VERSION"
27422    required=$GSTPB_REQ
27423
27424
27425pkg_failed=no
27426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBUTILS" >&5
27427$as_echo_n "checking for GST_PBUTILS... " >&6; }
27428
27429if test -n "$PKG_CONFIG"; then
27430    if test -n "$GST_PBUTILS_CFLAGS"; then
27431        pkg_cv_GST_PBUTILS_CFLAGS="$GST_PBUTILS_CFLAGS"
27432    else
27433        if test -n "$PKG_CONFIG" && \
27434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27435  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27436  ac_status=$?
27437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27438  test $ac_status = 0; }; then
27439  pkg_cv_GST_PBUTILS_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27440else
27441  pkg_failed=yes
27442fi
27443    fi
27444else
27445	pkg_failed=untried
27446fi
27447if test -n "$PKG_CONFIG"; then
27448    if test -n "$GST_PBUTILS_LIBS"; then
27449        pkg_cv_GST_PBUTILS_LIBS="$GST_PBUTILS_LIBS"
27450    else
27451        if test -n "$PKG_CONFIG" && \
27452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27453  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27454  ac_status=$?
27455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27456  test $ac_status = 0; }; then
27457  pkg_cv_GST_PBUTILS_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27458else
27459  pkg_failed=yes
27460fi
27461    fi
27462else
27463	pkg_failed=untried
27464fi
27465
27466
27467
27468if test $pkg_failed = yes; then
27469
27470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27471        _pkg_short_errors_supported=yes
27472else
27473        _pkg_short_errors_supported=no
27474fi
27475        if test $_pkg_short_errors_supported = yes; then
27476	        GST_PBUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27477        else
27478	        GST_PBUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27479        fi
27480	# Put the nasty error message in config.log where it belongs
27481	echo "$GST_PBUTILS_PKG_ERRORS" >&5
27482
27483	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27484$as_echo "no" >&6; }
27485
27486      HAVE_GST_PBUTILS="no"
27487      if test "x$required" = "xyes"; then
27488        as_fn_error $? "$GST_PBUTILS_PKG_ERRORS" "$LINENO" 5
27489      else
27490        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PBUTILS_PKG_ERRORS" >&5
27491$as_echo "$as_me: $GST_PBUTILS_PKG_ERRORS" >&6;}
27492      fi
27493
27494elif test $pkg_failed = untried; then
27495
27496      HAVE_GST_PBUTILS="no"
27497      if test "x$required" = "xyes"; then
27498        as_fn_error $? "$GST_PBUTILS_PKG_ERRORS" "$LINENO" 5
27499      else
27500        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PBUTILS_PKG_ERRORS" >&5
27501$as_echo "$as_me: $GST_PBUTILS_PKG_ERRORS" >&6;}
27502      fi
27503
27504else
27505	GST_PBUTILS_CFLAGS=$pkg_cv_GST_PBUTILS_CFLAGS
27506	GST_PBUTILS_LIBS=$pkg_cv_GST_PBUTILS_LIBS
27507        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27508$as_echo "yes" >&6; }
27509
27510      HAVE_GST_PBUTILS="yes"
27511
27512fi
27513
27514
27515
27516  which="gstreamer-gl-$GST_API_VERSION"
27517    required=$GSTPB_REQ
27518
27519
27520pkg_failed=no
27521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_GL" >&5
27522$as_echo_n "checking for GST_GL... " >&6; }
27523
27524if test -n "$PKG_CONFIG"; then
27525    if test -n "$GST_GL_CFLAGS"; then
27526        pkg_cv_GST_GL_CFLAGS="$GST_GL_CFLAGS"
27527    else
27528        if test -n "$PKG_CONFIG" && \
27529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27530  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27531  ac_status=$?
27532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27533  test $ac_status = 0; }; then
27534  pkg_cv_GST_GL_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27535else
27536  pkg_failed=yes
27537fi
27538    fi
27539else
27540	pkg_failed=untried
27541fi
27542if test -n "$PKG_CONFIG"; then
27543    if test -n "$GST_GL_LIBS"; then
27544        pkg_cv_GST_GL_LIBS="$GST_GL_LIBS"
27545    else
27546        if test -n "$PKG_CONFIG" && \
27547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27548  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27549  ac_status=$?
27550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27551  test $ac_status = 0; }; then
27552  pkg_cv_GST_GL_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27553else
27554  pkg_failed=yes
27555fi
27556    fi
27557else
27558	pkg_failed=untried
27559fi
27560
27561
27562
27563if test $pkg_failed = yes; then
27564
27565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27566        _pkg_short_errors_supported=yes
27567else
27568        _pkg_short_errors_supported=no
27569fi
27570        if test $_pkg_short_errors_supported = yes; then
27571	        GST_GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27572        else
27573	        GST_GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27574        fi
27575	# Put the nasty error message in config.log where it belongs
27576	echo "$GST_GL_PKG_ERRORS" >&5
27577
27578	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579$as_echo "no" >&6; }
27580
27581      HAVE_GST_GL="no"
27582      if test "x$required" = "xyes"; then
27583        as_fn_error $? "$GST_GL_PKG_ERRORS" "$LINENO" 5
27584      else
27585        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_GL_PKG_ERRORS" >&5
27586$as_echo "$as_me: $GST_GL_PKG_ERRORS" >&6;}
27587      fi
27588
27589elif test $pkg_failed = untried; then
27590
27591      HAVE_GST_GL="no"
27592      if test "x$required" = "xyes"; then
27593        as_fn_error $? "$GST_GL_PKG_ERRORS" "$LINENO" 5
27594      else
27595        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_GL_PKG_ERRORS" >&5
27596$as_echo "$as_me: $GST_GL_PKG_ERRORS" >&6;}
27597      fi
27598
27599else
27600	GST_GL_CFLAGS=$pkg_cv_GST_GL_CFLAGS
27601	GST_GL_LIBS=$pkg_cv_GST_GL_LIBS
27602        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27603$as_echo "yes" >&6; }
27604
27605      HAVE_GST_GL="yes"
27606
27607fi
27608
27609
27610
27611  which="gstreamer-sdp-$GST_API_VERSION"
27612    required=$GSTPB_REQ
27613
27614
27615pkg_failed=no
27616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_SDP" >&5
27617$as_echo_n "checking for GST_SDP... " >&6; }
27618
27619if test -n "$PKG_CONFIG"; then
27620    if test -n "$GST_SDP_CFLAGS"; then
27621        pkg_cv_GST_SDP_CFLAGS="$GST_SDP_CFLAGS"
27622    else
27623        if test -n "$PKG_CONFIG" && \
27624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27625  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27626  ac_status=$?
27627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27628  test $ac_status = 0; }; then
27629  pkg_cv_GST_SDP_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
27630else
27631  pkg_failed=yes
27632fi
27633    fi
27634else
27635	pkg_failed=untried
27636fi
27637if test -n "$PKG_CONFIG"; then
27638    if test -n "$GST_SDP_LIBS"; then
27639        pkg_cv_GST_SDP_LIBS="$GST_SDP_LIBS"
27640    else
27641        if test -n "$PKG_CONFIG" && \
27642    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
27643  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
27644  ac_status=$?
27645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27646  test $ac_status = 0; }; then
27647  pkg_cv_GST_SDP_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
27648else
27649  pkg_failed=yes
27650fi
27651    fi
27652else
27653	pkg_failed=untried
27654fi
27655
27656
27657
27658if test $pkg_failed = yes; then
27659
27660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27661        _pkg_short_errors_supported=yes
27662else
27663        _pkg_short_errors_supported=no
27664fi
27665        if test $_pkg_short_errors_supported = yes; then
27666	        GST_SDP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
27667        else
27668	        GST_SDP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
27669        fi
27670	# Put the nasty error message in config.log where it belongs
27671	echo "$GST_SDP_PKG_ERRORS" >&5
27672
27673	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27674$as_echo "no" >&6; }
27675
27676      HAVE_GST_SDP="no"
27677      if test "x$required" = "xyes"; then
27678        as_fn_error $? "$GST_SDP_PKG_ERRORS" "$LINENO" 5
27679      else
27680        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_SDP_PKG_ERRORS" >&5
27681$as_echo "$as_me: $GST_SDP_PKG_ERRORS" >&6;}
27682      fi
27683
27684elif test $pkg_failed = untried; then
27685
27686      HAVE_GST_SDP="no"
27687      if test "x$required" = "xyes"; then
27688        as_fn_error $? "$GST_SDP_PKG_ERRORS" "$LINENO" 5
27689      else
27690        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_SDP_PKG_ERRORS" >&5
27691$as_echo "$as_me: $GST_SDP_PKG_ERRORS" >&6;}
27692      fi
27693
27694else
27695	GST_SDP_CFLAGS=$pkg_cv_GST_SDP_CFLAGS
27696	GST_SDP_LIBS=$pkg_cv_GST_SDP_LIBS
27697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27698$as_echo "yes" >&6; }
27699
27700      HAVE_GST_SDP="yes"
27701
27702fi
27703
27704
27705
27706if test "x$HAVE_GST_GL" = "xyes"; then
27707
27708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking GStreamer OpenGL window systems ..." >&5
27709$as_echo_n "checking GStreamer OpenGL window systems ...... " >&6; }
27710  GST_GL_WINSYS=`$PKG_CONFIG --variable=gl_winsys gstreamer-gl-1.0`
27711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_GL_WINSYS" >&5
27712$as_echo "$GST_GL_WINSYS" >&6; }
27713  GST_GL_HAVE_WINDOW_X11=""
27714  GST_GL_HAVE_WINDOW_WAYLAND=""
27715  GST_GL_HAVE_WINDOW_ANDROID=""
27716  GST_GL_HAVE_WINDOW_COCOA=""
27717  GST_GL_HAVE_WINDOW_EAGL=""
27718  case "$GST_GL_WINSYS" in  *x11*) GST_GL_HAVE_WINDOW_X11="1" ;; esac
27719  case "$GST_GL_WINSYS" in  *wayland*) GST_GL_HAVE_WINDOW_WAYLAND="1" ;; esac
27720  case "$GST_GL_WINSYS" in  *android*) GST_GL_HAVE_WINDOW_ANDROID="1" ;; esac
27721  case "$GST_GL_WINSYS" in  *cocoa*) GST_GL_HAVE_WINDOW_COCOA="1" ;; esac
27722  case "$GST_GL_WINSYS" in  *eagl*) GST_GL_HAVE_WINDOW_EAGL="1" ;; esac
27723
27724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking GStreamer OpenGL platforms ..." >&5
27725$as_echo_n "checking GStreamer OpenGL platforms ...... " >&6; }
27726  GST_GL_PLATFORMS=`$PKG_CONFIG --variable=gl_platforms gstreamer-gl-1.0`
27727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_GL_PLATFORMS" >&5
27728$as_echo "$GST_GL_PLATFORMS" >&6; }
27729  GST_GL_HAVE_PLATFORM_GLX=""
27730  GST_GL_HAVE_PLATFORM_EGL=""
27731  GST_GL_HAVE_PLATFORM_CGL=""
27732  GST_GL_HAVE_PLATFORM_EAGL=""
27733  case "$GST_GL_PLATFORMS" in  *glx*) GST_GL_HAVE_PLATFORM_GLX="1" ;; esac
27734  case "$GST_GL_PLATFORMS" in  *egl*) GST_GL_HAVE_PLATFORM_EGL="1" ;; esac
27735  case "$GST_GL_PLATFORMS" in  *cgl*) GST_GL_HAVE_PLATFORM_CGL="1" ;; esac
27736  case "$GST_GL_PLATFORMS" in  *eagl*) GST_GL_HAVE_PLATFORM_EAGL="1" ;; esac
27737
27738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking GStreamer OpenGL apis ..." >&5
27739$as_echo_n "checking GStreamer OpenGL apis ...... " >&6; }
27740  GST_GL_APIS=`$PKG_CONFIG --variable=gl_apis gstreamer-gl-1.0`
27741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_GL_APIS" >&5
27742$as_echo "$GST_GL_APIS" >&6; }
27743  GST_GL_HAVE_API_GLES2=""
27744  GST_GL_HAVE_API_GL=""
27745  case "$GST_GL_APIS" in  *gles2*) GST_GL_HAVE_API_GLES2="1" ;; esac
27746  case "$GST_GL_APIS" in "gl"|"gl "*|*" gl"|*" gl "*) GST_GL_HAVE_API_GL="1" ;; esac
27747fi
27748 if test "x$GST_GL_HAVE_API_GL" = "x1"; then
27749  USE_OPENGL_TRUE=
27750  USE_OPENGL_FALSE='#'
27751else
27752  USE_OPENGL_TRUE='#'
27753  USE_OPENGL_FALSE=
27754fi
27755
27756
27757 if test "x$HAVE_GST_CHECK" = "xyes"; then
27758  HAVE_GST_CHECK_TRUE=
27759  HAVE_GST_CHECK_FALSE='#'
27760else
27761  HAVE_GST_CHECK_TRUE='#'
27762  HAVE_GST_CHECK_FALSE=
27763fi
27764
27765
27766
27767
27768  module=gstreamer-plugins-base-$GST_API_VERSION
27769  minver=$GSTPB_REQ
27770  name="GStreamer Base Plugins"
27771  required=yes
27772
27773pkg_failed=no
27774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_BASE" >&5
27775$as_echo_n "checking for GST_PLUGINS_BASE... " >&6; }
27776
27777if test -n "$PKG_CONFIG"; then
27778    if test -n "$GST_PLUGINS_BASE_CFLAGS"; then
27779        pkg_cv_GST_PLUGINS_BASE_CFLAGS="$GST_PLUGINS_BASE_CFLAGS"
27780    else
27781        if test -n "$PKG_CONFIG" && \
27782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27783  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27784  ac_status=$?
27785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27786  test $ac_status = 0; }; then
27787  pkg_cv_GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
27788else
27789  pkg_failed=yes
27790fi
27791    fi
27792else
27793	pkg_failed=untried
27794fi
27795if test -n "$PKG_CONFIG"; then
27796    if test -n "$GST_PLUGINS_BASE_LIBS"; then
27797        pkg_cv_GST_PLUGINS_BASE_LIBS="$GST_PLUGINS_BASE_LIBS"
27798    else
27799        if test -n "$PKG_CONFIG" && \
27800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27801  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27802  ac_status=$?
27803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27804  test $ac_status = 0; }; then
27805  pkg_cv_GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
27806else
27807  pkg_failed=yes
27808fi
27809    fi
27810else
27811	pkg_failed=untried
27812fi
27813
27814
27815
27816if test $pkg_failed = yes; then
27817
27818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27819        _pkg_short_errors_supported=yes
27820else
27821        _pkg_short_errors_supported=no
27822fi
27823        if test $_pkg_short_errors_supported = yes; then
27824	        GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
27825        else
27826	        GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
27827        fi
27828	# Put the nasty error message in config.log where it belongs
27829	echo "$GST_PLUGINS_BASE_PKG_ERRORS" >&5
27830
27831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27832$as_echo "no" >&6; }
27833
27834      HAVE_GST_PLUGINS_BASE="no"
27835      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5
27836$as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;}
27837      if test "x$required" = "xyes"; then
27838        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27839      else
27840        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27841$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27842      fi
27843
27844elif test $pkg_failed = untried; then
27845
27846      HAVE_GST_PLUGINS_BASE="no"
27847      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5
27848$as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;}
27849      if test "x$required" = "xyes"; then
27850        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27851      else
27852        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27853$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27854      fi
27855
27856else
27857	GST_PLUGINS_BASE_CFLAGS=$pkg_cv_GST_PLUGINS_BASE_CFLAGS
27858	GST_PLUGINS_BASE_LIBS=$pkg_cv_GST_PLUGINS_BASE_LIBS
27859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27860$as_echo "yes" >&6; }
27861
27862      HAVE_GST_PLUGINS_BASE="yes"
27863
27864fi
27865
27866
27867
27868  if test "x$HAVE_GST_PLUGINS_BASE" = "xyes"; then
27869                if test -z $GSTPB_PLUGINS_DIR; then
27870      GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-$GST_API_VERSION`
27871      if test -z $GSTPB_PLUGINS_DIR; then
27872        as_fn_error $? "no pluginsdir set in GStreamer Base Plugins pkg-config file" "$LINENO" 5
27873      fi
27874    fi
27875    { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&5
27876$as_echo "$as_me: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&6;}
27877    GST_PLUGINS_BASE_DIR="$GSTPB_PLUGINS_DIR/gst:$GSTPB_PLUGINS_DIR/sys:$GSTPB_PLUGINS_DIR/ext"
27878
27879
27880  fi
27881
27882
27883
27884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is an uninstalled GStreamer setup" >&5
27885$as_echo_n "checking whether this is an uninstalled GStreamer setup... " >&6; }
27886  if ${gst_cv_is_uninstalled_setup+:} false; then :
27887  $as_echo_n "(cached) " >&6
27888else
27889
27890    gst_cv_is_uninstalled_setup=no
27891    if (set -u; : $GST_PLUGIN_SYSTEM_PATH) 2>/dev/null ; then
27892      if test -z "$GST_PLUGIN_SYSTEM_PATH" \
27893           -a -n "$GST_PLUGIN_SCANNER"     \
27894           -a -n "$GST_PLUGIN_PATH"        \
27895           -a -n "$GST_REGISTRY"           \
27896           -a -n "$DYLD_LIBRARY_PATH"      \
27897           -a -n "$LD_LIBRARY_PATH"; then
27898        gst_cv_is_uninstalled_setup=yes;
27899      fi
27900    fi
27901
27902fi
27903
27904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_is_uninstalled_setup" >&5
27905$as_echo "$gst_cv_is_uninstalled_setup" >&6; }
27906  if test "x$gst_cv_is_uninstalled_setup" = "xyes"; then
27907
27908
27909
27910  module=gstreamer-plugins-good-$GST_API_VERSION
27911  minver=$GSTPB_REQ
27912  name="GStreamer Good Plugins"
27913  required=no
27914
27915pkg_failed=no
27916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_GOOD" >&5
27917$as_echo_n "checking for GST_PLUGINS_GOOD... " >&6; }
27918
27919if test -n "$PKG_CONFIG"; then
27920    if test -n "$GST_PLUGINS_GOOD_CFLAGS"; then
27921        pkg_cv_GST_PLUGINS_GOOD_CFLAGS="$GST_PLUGINS_GOOD_CFLAGS"
27922    else
27923        if test -n "$PKG_CONFIG" && \
27924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27925  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27926  ac_status=$?
27927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27928  test $ac_status = 0; }; then
27929  pkg_cv_GST_PLUGINS_GOOD_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
27930else
27931  pkg_failed=yes
27932fi
27933    fi
27934else
27935	pkg_failed=untried
27936fi
27937if test -n "$PKG_CONFIG"; then
27938    if test -n "$GST_PLUGINS_GOOD_LIBS"; then
27939        pkg_cv_GST_PLUGINS_GOOD_LIBS="$GST_PLUGINS_GOOD_LIBS"
27940    else
27941        if test -n "$PKG_CONFIG" && \
27942    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
27943  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
27944  ac_status=$?
27945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27946  test $ac_status = 0; }; then
27947  pkg_cv_GST_PLUGINS_GOOD_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
27948else
27949  pkg_failed=yes
27950fi
27951    fi
27952else
27953	pkg_failed=untried
27954fi
27955
27956
27957
27958if test $pkg_failed = yes; then
27959
27960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27961        _pkg_short_errors_supported=yes
27962else
27963        _pkg_short_errors_supported=no
27964fi
27965        if test $_pkg_short_errors_supported = yes; then
27966	        GST_PLUGINS_GOOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
27967        else
27968	        GST_PLUGINS_GOOD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
27969        fi
27970	# Put the nasty error message in config.log where it belongs
27971	echo "$GST_PLUGINS_GOOD_PKG_ERRORS" >&5
27972
27973	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27974$as_echo "no" >&6; }
27975
27976      HAVE_GST_PLUGINS_GOOD="no"
27977      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_GOOD_PKG_ERRORS" >&5
27978$as_echo "$as_me: $GST_PLUGINS_GOOD_PKG_ERRORS" >&6;}
27979      if test "x$required" = "xyes"; then
27980        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27981      else
27982        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27983$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27984      fi
27985
27986elif test $pkg_failed = untried; then
27987
27988      HAVE_GST_PLUGINS_GOOD="no"
27989      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_GOOD_PKG_ERRORS" >&5
27990$as_echo "$as_me: $GST_PLUGINS_GOOD_PKG_ERRORS" >&6;}
27991      if test "x$required" = "xyes"; then
27992        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
27993      else
27994        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
27995$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
27996      fi
27997
27998else
27999	GST_PLUGINS_GOOD_CFLAGS=$pkg_cv_GST_PLUGINS_GOOD_CFLAGS
28000	GST_PLUGINS_GOOD_LIBS=$pkg_cv_GST_PLUGINS_GOOD_LIBS
28001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28002$as_echo "yes" >&6; }
28003
28004      HAVE_GST_PLUGINS_GOOD="yes"
28005
28006fi
28007
28008
28009
28010  if test "x$HAVE_GST_PLUGINS_GOOD" = "xyes"; then
28011                if test -z $GST_PLUGINS_GOOD_DIR; then
28012      GST_PLUGINS_GOOD_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-good-$GST_API_VERSION`
28013      if test -z $GST_PLUGINS_GOOD_DIR; then
28014        as_fn_error $? "no pluginsdir set in GStreamer Good Plugins pkg-config file" "$LINENO" 5
28015      fi
28016    fi
28017    { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Good Plugins in $GST_PLUGINS_GOOD_DIR" >&5
28018$as_echo "$as_me: using GStreamer Good Plugins in $GST_PLUGINS_GOOD_DIR" >&6;}
28019    GST_PLUGINS_GOOD_DIR="$GST_PLUGINS_GOOD_DIR/gst:$GST_PLUGINS_GOOD_DIR/sys:$GST_PLUGINS_GOOD_DIR/ext"
28020
28021  fi
28022
28023
28024
28025  module=gstreamer-plugins-ugly-$GST_API_VERSION
28026  minver=$GSTPB_REQ
28027  name="GStreamer Ugly Plugins"
28028  required=no
28029
28030pkg_failed=no
28031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_UGLY" >&5
28032$as_echo_n "checking for GST_PLUGINS_UGLY... " >&6; }
28033
28034if test -n "$PKG_CONFIG"; then
28035    if test -n "$GST_PLUGINS_UGLY_CFLAGS"; then
28036        pkg_cv_GST_PLUGINS_UGLY_CFLAGS="$GST_PLUGINS_UGLY_CFLAGS"
28037    else
28038        if test -n "$PKG_CONFIG" && \
28039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
28040  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
28041  ac_status=$?
28042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28043  test $ac_status = 0; }; then
28044  pkg_cv_GST_PLUGINS_UGLY_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
28045else
28046  pkg_failed=yes
28047fi
28048    fi
28049else
28050	pkg_failed=untried
28051fi
28052if test -n "$PKG_CONFIG"; then
28053    if test -n "$GST_PLUGINS_UGLY_LIBS"; then
28054        pkg_cv_GST_PLUGINS_UGLY_LIBS="$GST_PLUGINS_UGLY_LIBS"
28055    else
28056        if test -n "$PKG_CONFIG" && \
28057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
28058  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
28059  ac_status=$?
28060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28061  test $ac_status = 0; }; then
28062  pkg_cv_GST_PLUGINS_UGLY_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
28063else
28064  pkg_failed=yes
28065fi
28066    fi
28067else
28068	pkg_failed=untried
28069fi
28070
28071
28072
28073if test $pkg_failed = yes; then
28074
28075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28076        _pkg_short_errors_supported=yes
28077else
28078        _pkg_short_errors_supported=no
28079fi
28080        if test $_pkg_short_errors_supported = yes; then
28081	        GST_PLUGINS_UGLY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
28082        else
28083	        GST_PLUGINS_UGLY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
28084        fi
28085	# Put the nasty error message in config.log where it belongs
28086	echo "$GST_PLUGINS_UGLY_PKG_ERRORS" >&5
28087
28088	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28089$as_echo "no" >&6; }
28090
28091      HAVE_GST_PLUGINS_UGLY="no"
28092      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_UGLY_PKG_ERRORS" >&5
28093$as_echo "$as_me: $GST_PLUGINS_UGLY_PKG_ERRORS" >&6;}
28094      if test "x$required" = "xyes"; then
28095        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
28096      else
28097        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
28098$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
28099      fi
28100
28101elif test $pkg_failed = untried; then
28102
28103      HAVE_GST_PLUGINS_UGLY="no"
28104      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_UGLY_PKG_ERRORS" >&5
28105$as_echo "$as_me: $GST_PLUGINS_UGLY_PKG_ERRORS" >&6;}
28106      if test "x$required" = "xyes"; then
28107        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
28108      else
28109        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
28110$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
28111      fi
28112
28113else
28114	GST_PLUGINS_UGLY_CFLAGS=$pkg_cv_GST_PLUGINS_UGLY_CFLAGS
28115	GST_PLUGINS_UGLY_LIBS=$pkg_cv_GST_PLUGINS_UGLY_LIBS
28116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28117$as_echo "yes" >&6; }
28118
28119      HAVE_GST_PLUGINS_UGLY="yes"
28120
28121fi
28122
28123
28124
28125  if test "x$HAVE_GST_PLUGINS_UGLY" = "xyes"; then
28126                if test -z $GST_PLUGINS_UGLY_DIR; then
28127      GST_PLUGINS_UGLY_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-ugly-$GST_API_VERSION`
28128      if test -z $GST_PLUGINS_UGLY_DIR; then
28129        as_fn_error $? "no pluginsdir set in GStreamer Ugly Plugins pkg-config file" "$LINENO" 5
28130      fi
28131    fi
28132    { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Ugly Plugins in $GST_PLUGINS_UGLY_DIR" >&5
28133$as_echo "$as_me: using GStreamer Ugly Plugins in $GST_PLUGINS_UGLY_DIR" >&6;}
28134    GST_PLUGINS_UGLY_DIR="$GST_PLUGINS_UGLY_DIR/gst:$GST_PLUGINS_UGLY_DIR/sys:$GST_PLUGINS_UGLY_DIR/ext"
28135
28136  fi
28137
28138
28139
28140  module=gstreamer-plugins-libav-$GST_API_VERSION
28141  minver=$GSTPB_REQ
28142  name="GStreamer Libav Plugins"
28143  required=no
28144
28145pkg_failed=no
28146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_LIBAV" >&5
28147$as_echo_n "checking for GST_PLUGINS_LIBAV... " >&6; }
28148
28149if test -n "$PKG_CONFIG"; then
28150    if test -n "$GST_PLUGINS_LIBAV_CFLAGS"; then
28151        pkg_cv_GST_PLUGINS_LIBAV_CFLAGS="$GST_PLUGINS_LIBAV_CFLAGS"
28152    else
28153        if test -n "$PKG_CONFIG" && \
28154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
28155  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
28156  ac_status=$?
28157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28158  test $ac_status = 0; }; then
28159  pkg_cv_GST_PLUGINS_LIBAV_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
28160else
28161  pkg_failed=yes
28162fi
28163    fi
28164else
28165	pkg_failed=untried
28166fi
28167if test -n "$PKG_CONFIG"; then
28168    if test -n "$GST_PLUGINS_LIBAV_LIBS"; then
28169        pkg_cv_GST_PLUGINS_LIBAV_LIBS="$GST_PLUGINS_LIBAV_LIBS"
28170    else
28171        if test -n "$PKG_CONFIG" && \
28172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
28173  ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
28174  ac_status=$?
28175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28176  test $ac_status = 0; }; then
28177  pkg_cv_GST_PLUGINS_LIBAV_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
28178else
28179  pkg_failed=yes
28180fi
28181    fi
28182else
28183	pkg_failed=untried
28184fi
28185
28186
28187
28188if test $pkg_failed = yes; then
28189
28190if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28191        _pkg_short_errors_supported=yes
28192else
28193        _pkg_short_errors_supported=no
28194fi
28195        if test $_pkg_short_errors_supported = yes; then
28196	        GST_PLUGINS_LIBAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
28197        else
28198	        GST_PLUGINS_LIBAV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
28199        fi
28200	# Put the nasty error message in config.log where it belongs
28201	echo "$GST_PLUGINS_LIBAV_PKG_ERRORS" >&5
28202
28203	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28204$as_echo "no" >&6; }
28205
28206      HAVE_GST_PLUGINS_LIBAV="no"
28207      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_LIBAV_PKG_ERRORS" >&5
28208$as_echo "$as_me: $GST_PLUGINS_LIBAV_PKG_ERRORS" >&6;}
28209      if test "x$required" = "xyes"; then
28210        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
28211      else
28212        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
28213$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
28214      fi
28215
28216elif test $pkg_failed = untried; then
28217
28218      HAVE_GST_PLUGINS_LIBAV="no"
28219      { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_LIBAV_PKG_ERRORS" >&5
28220$as_echo "$as_me: $GST_PLUGINS_LIBAV_PKG_ERRORS" >&6;}
28221      if test "x$required" = "xyes"; then
28222        as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
28223      else
28224        { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
28225$as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
28226      fi
28227
28228else
28229	GST_PLUGINS_LIBAV_CFLAGS=$pkg_cv_GST_PLUGINS_LIBAV_CFLAGS
28230	GST_PLUGINS_LIBAV_LIBS=$pkg_cv_GST_PLUGINS_LIBAV_LIBS
28231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28232$as_echo "yes" >&6; }
28233
28234      HAVE_GST_PLUGINS_LIBAV="yes"
28235
28236fi
28237
28238
28239
28240  if test "x$HAVE_GST_PLUGINS_LIBAV" = "xyes"; then
28241                if test -z $GST_PLUGINS_LIBAV_DIR; then
28242      GST_PLUGINS_LIBAV_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-libav-$GST_API_VERSION`
28243      if test -z $GST_PLUGINS_LIBAV_DIR; then
28244        as_fn_error $? "no pluginsdir set in GStreamer Libav Plugins pkg-config file" "$LINENO" 5
28245      fi
28246    fi
28247    GST_PLUGINS_LIBAV_DIR="$GST_PLUGINS_LIBAV_DIR/ext/libav"
28248    { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Libav Plugins in $GST_PLUGINS_LIBAV_DIR" >&5
28249$as_echo "$as_me: using GStreamer Libav Plugins in $GST_PLUGINS_LIBAV_DIR" >&6;}
28250
28251  fi
28252
28253
28254  else
28255    :
28256  fi
28257
28258
28259GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
28260GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`"
28261GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_API_VERSION`"
28262
28263
28264
28265
28266HAVE_GTK=NO
28267GTK2_REQ=2.14.0
28268GTK3_REQ=2.91.3
28269if test "x$BUILD_EXAMPLES" = "xyes"; then
28270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which gtk+ version to compile examples against (optional)" >&5
28271$as_echo_n "checking which gtk+ version to compile examples against (optional)... " >&6; }
28272
28273# Check whether --with-gtk was given.
28274if test "${with_gtk+set}" = set; then :
28275  withval=$with_gtk; case "$with_gtk" in
28276        2.0) GTK_REQ=$GTK2_REQ ;;
28277        3.0) GTK_REQ=$GTK3_REQ ;;
28278        *) as_fn_error $? "invalid gtk+ version specified" "$LINENO" 5;;
28279    esac
28280else
28281  with_gtk=2.0
28282     GTK_REQ=$GTK2_REQ
28283fi
28284
28285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gtk (>= $GTK_REQ)" >&5
28286$as_echo "$with_gtk (>= $GTK_REQ)" >&6; }
28287
28288pkg_failed=no
28289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
28290$as_echo_n "checking for GTK... " >&6; }
28291
28292if test -n "$PKG_CONFIG"; then
28293    if test -n "$GTK_CFLAGS"; then
28294        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
28295    else
28296        if test -n "$PKG_CONFIG" && \
28297    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-x11-\$with_gtk >= \$GTK_REQ\""; } >&5
28298  ($PKG_CONFIG --exists --print-errors "gtk+-x11-$with_gtk >= $GTK_REQ") 2>&5
28299  ac_status=$?
28300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28301  test $ac_status = 0; }; then
28302  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-x11-$with_gtk >= $GTK_REQ" 2>/dev/null`
28303else
28304  pkg_failed=yes
28305fi
28306    fi
28307else
28308	pkg_failed=untried
28309fi
28310if test -n "$PKG_CONFIG"; then
28311    if test -n "$GTK_LIBS"; then
28312        pkg_cv_GTK_LIBS="$GTK_LIBS"
28313    else
28314        if test -n "$PKG_CONFIG" && \
28315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-x11-\$with_gtk >= \$GTK_REQ\""; } >&5
28316  ($PKG_CONFIG --exists --print-errors "gtk+-x11-$with_gtk >= $GTK_REQ") 2>&5
28317  ac_status=$?
28318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28319  test $ac_status = 0; }; then
28320  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-x11-$with_gtk >= $GTK_REQ" 2>/dev/null`
28321else
28322  pkg_failed=yes
28323fi
28324    fi
28325else
28326	pkg_failed=untried
28327fi
28328
28329
28330
28331if test $pkg_failed = yes; then
28332
28333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28334        _pkg_short_errors_supported=yes
28335else
28336        _pkg_short_errors_supported=no
28337fi
28338        if test $_pkg_short_errors_supported = yes; then
28339	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-x11-$with_gtk >= $GTK_REQ"`
28340        else
28341	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-x11-$with_gtk >= $GTK_REQ"`
28342        fi
28343	# Put the nasty error message in config.log where it belongs
28344	echo "$GTK_PKG_ERRORS" >&5
28345
28346	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28347$as_echo "no" >&6; }
28348                HAVE_GTK=no
28349elif test $pkg_failed = untried; then
28350	HAVE_GTK=no
28351else
28352	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
28353	GTK_LIBS=$pkg_cv_GTK_LIBS
28354        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28355$as_echo "yes" >&6; }
28356	HAVE_GTK=yes
28357fi
28358
28359
28360fi
28361 if test "x$HAVE_GTK" = "xyes"; then
28362  HAVE_GTK_TRUE=
28363  HAVE_GTK_FALSE='#'
28364else
28365  HAVE_GTK_TRUE='#'
28366  HAVE_GTK_FALSE=
28367fi
28368
28369
28370# Check whether --enable-Bsymbolic was given.
28371if test "${enable_Bsymbolic+set}" = set; then :
28372  enableval=$enable_Bsymbolic;
28373else
28374  SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
28375               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
28376$as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
28377               LDFLAGS=-Wl,-Bsymbolic-functions
28378               LIBS=
28379               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28380/* end confdefs.h.  */
28381
28382int
28383main ()
28384{
28385return 0
28386  ;
28387  return 0;
28388}
28389_ACEOF
28390if ac_fn_c_try_link "$LINENO"; then :
28391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28392$as_echo "yes" >&6; }
28393                           enable_Bsymbolic=yes
28394else
28395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28396$as_echo "no" >&6; }
28397                           enable_Bsymbolic=no
28398fi
28399rm -f core conftest.err conftest.$ac_objext \
28400    conftest$ac_exeext conftest.$ac_ext
28401               LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"
28402fi
28403
28404
28405
28406HAVE_GTK3=NO
28407HAVE_GTK3_WAYLAND=""
28408if test "x$BUILD_EXAMPLES" = "xyes"; then
28409
28410pkg_failed=no
28411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
28412$as_echo_n "checking for GTK3... " >&6; }
28413
28414if test -n "$PKG_CONFIG"; then
28415    if test -n "$GTK3_CFLAGS"; then
28416        pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS"
28417    else
28418        if test -n "$PKG_CONFIG" && \
28419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
28420  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
28421  ac_status=$?
28422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28423  test $ac_status = 0; }; then
28424  pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.4" 2>/dev/null`
28425else
28426  pkg_failed=yes
28427fi
28428    fi
28429else
28430	pkg_failed=untried
28431fi
28432if test -n "$PKG_CONFIG"; then
28433    if test -n "$GTK3_LIBS"; then
28434        pkg_cv_GTK3_LIBS="$GTK3_LIBS"
28435    else
28436        if test -n "$PKG_CONFIG" && \
28437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.4\""; } >&5
28438  ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.4") 2>&5
28439  ac_status=$?
28440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28441  test $ac_status = 0; }; then
28442  pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.4" 2>/dev/null`
28443else
28444  pkg_failed=yes
28445fi
28446    fi
28447else
28448	pkg_failed=untried
28449fi
28450
28451
28452
28453if test $pkg_failed = yes; then
28454
28455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28456        _pkg_short_errors_supported=yes
28457else
28458        _pkg_short_errors_supported=no
28459fi
28460        if test $_pkg_short_errors_supported = yes; then
28461	        GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-3.0 >= 3.4"`
28462        else
28463	        GTK3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= 3.4"`
28464        fi
28465	# Put the nasty error message in config.log where it belongs
28466	echo "$GTK3_PKG_ERRORS" >&5
28467
28468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28469$as_echo "no" >&6; }
28470                HAVE_GTK3=no
28471elif test $pkg_failed = untried; then
28472	HAVE_GTK3=no
28473else
28474	GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
28475	GTK3_LIBS=$pkg_cv_GTK3_LIBS
28476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28477$as_echo "yes" >&6; }
28478	HAVE_GTK3=yes
28479fi
28480  if test "x$HAVE_GTK3" = "xyes"; then
28481    HAVE_GTK=yes
28482    GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
28483
28484    GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
28485
28486    GTK3_TARGETS=`$PKG_CONFIG --variable=targets gtk+-3.0`
28487    case "$GTK3_TARGETS" in  *wayland*) HAVE_GTK3_WAYLAND="1" ;; esac
28488  fi
28489fi
28490
28491
28492
28493 if test "x$HAVE_GTK3" = "xyes"; then
28494  HAVE_GTK3_TRUE=
28495  HAVE_GTK3_FALSE='#'
28496else
28497  HAVE_GTK3_TRUE='#'
28498  HAVE_GTK3_FALSE=
28499fi
28500
28501 if test "x$HAVE_GTK3_WAYLAND" = "x1"; then
28502  HAVE_GTK3_WAYLAND_TRUE=
28503  HAVE_GTK3_WAYLAND_FALSE='#'
28504else
28505  HAVE_GTK3_WAYLAND_TRUE='#'
28506  HAVE_GTK3_WAYLAND_FALSE=
28507fi
28508
28509
28510HAVE_X11=NO
28511
28512pkg_failed=no
28513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
28514$as_echo_n "checking for X11... " >&6; }
28515
28516if test -n "$PKG_CONFIG"; then
28517    if test -n "$X11_CFLAGS"; then
28518        pkg_cv_X11_CFLAGS="$X11_CFLAGS"
28519    else
28520        if test -n "$PKG_CONFIG" && \
28521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28522  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28523  ac_status=$?
28524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28525  test $ac_status = 0; }; then
28526  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
28527else
28528  pkg_failed=yes
28529fi
28530    fi
28531else
28532	pkg_failed=untried
28533fi
28534if test -n "$PKG_CONFIG"; then
28535    if test -n "$X11_LIBS"; then
28536        pkg_cv_X11_LIBS="$X11_LIBS"
28537    else
28538        if test -n "$PKG_CONFIG" && \
28539    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
28540  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
28541  ac_status=$?
28542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28543  test $ac_status = 0; }; then
28544  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
28545else
28546  pkg_failed=yes
28547fi
28548    fi
28549else
28550	pkg_failed=untried
28551fi
28552
28553
28554
28555if test $pkg_failed = yes; then
28556
28557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28558        _pkg_short_errors_supported=yes
28559else
28560        _pkg_short_errors_supported=no
28561fi
28562        if test $_pkg_short_errors_supported = yes; then
28563	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
28564        else
28565	        X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
28566        fi
28567	# Put the nasty error message in config.log where it belongs
28568	echo "$X11_PKG_ERRORS" >&5
28569
28570	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571$as_echo "no" >&6; }
28572                HAVE_X11=no
28573elif test $pkg_failed = untried; then
28574	HAVE_X11=no
28575else
28576	X11_CFLAGS=$pkg_cv_X11_CFLAGS
28577	X11_LIBS=$pkg_cv_X11_LIBS
28578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28579$as_echo "yes" >&6; }
28580	HAVE_X11=yes
28581fi
28582
28583
28584
28585 if test "x$HAVE_X11" = "xyes"; then
28586  HAVE_X11_TRUE=
28587  HAVE_X11_FALSE='#'
28588else
28589  HAVE_X11_TRUE='#'
28590  HAVE_X11_FALSE=
28591fi
28592
28593if test "x$HAVE_X11" = "xyes"; then
28594
28595$as_echo "#define HAVE_X11 1" >>confdefs.h
28596
28597fi
28598
28599
28600pkg_failed=no
28601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXIF" >&5
28602$as_echo_n "checking for EXIF... " >&6; }
28603
28604if test -n "$PKG_CONFIG"; then
28605    if test -n "$EXIF_CFLAGS"; then
28606        pkg_cv_EXIF_CFLAGS="$EXIF_CFLAGS"
28607    else
28608        if test -n "$PKG_CONFIG" && \
28609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.16\""; } >&5
28610  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.16") 2>&5
28611  ac_status=$?
28612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28613  test $ac_status = 0; }; then
28614  pkg_cv_EXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.16" 2>/dev/null`
28615else
28616  pkg_failed=yes
28617fi
28618    fi
28619else
28620	pkg_failed=untried
28621fi
28622if test -n "$PKG_CONFIG"; then
28623    if test -n "$EXIF_LIBS"; then
28624        pkg_cv_EXIF_LIBS="$EXIF_LIBS"
28625    else
28626        if test -n "$PKG_CONFIG" && \
28627    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.16\""; } >&5
28628  ($PKG_CONFIG --exists --print-errors "libexif >= 0.6.16") 2>&5
28629  ac_status=$?
28630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631  test $ac_status = 0; }; then
28632  pkg_cv_EXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.16" 2>/dev/null`
28633else
28634  pkg_failed=yes
28635fi
28636    fi
28637else
28638	pkg_failed=untried
28639fi
28640
28641
28642
28643if test $pkg_failed = yes; then
28644
28645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28646        _pkg_short_errors_supported=yes
28647else
28648        _pkg_short_errors_supported=no
28649fi
28650        if test $_pkg_short_errors_supported = yes; then
28651	        EXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libexif >= 0.6.16"`
28652        else
28653	        EXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif >= 0.6.16"`
28654        fi
28655	# Put the nasty error message in config.log where it belongs
28656	echo "$EXIF_PKG_ERRORS" >&5
28657
28658	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28659$as_echo "no" >&6; }
28660                HAVE_EXIF="no"
28661elif test $pkg_failed = untried; then
28662	HAVE_EXIF="no"
28663else
28664	EXIF_CFLAGS=$pkg_cv_EXIF_CFLAGS
28665	EXIF_LIBS=$pkg_cv_EXIF_LIBS
28666        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28667$as_echo "yes" >&6; }
28668	HAVE_EXIF="yes"
28669fi
28670
28671
28672 if test "x$HAVE_EXIF" = "xyes"; then
28673  USE_EXIF_TRUE=
28674  USE_EXIF_FALSE='#'
28675else
28676  USE_EXIF_TRUE='#'
28677  USE_EXIF_FALSE=
28678fi
28679
28680
28681echo
28682{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: iqa ***" >&5
28683$as_echo "$as_me: *** checking feature: iqa ***" >&6;}
28684if test "xiqa " != "x"
28685then
28686  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: iqa  ***" >&5
28687$as_echo "$as_me: *** for plug-ins: iqa  ***" >&6;}
28688fi
28689NOUSE=
28690if test "x$USE_IQA" = "xno"; then
28691  NOUSE="yes"
28692fi
28693# Check whether --enable-iqa was given.
28694if test "${enable_iqa+set}" = set; then :
28695  enableval=$enable_iqa;  case "${enableval}" in
28696      yes) USE_IQA=yes;;
28697      no) USE_IQA=no;;
28698      *) as_fn_error $? "bad value ${enableval} for --enable-iqa" "$LINENO" 5 ;;
28699    esac
28700else
28701   USE_IQA=yes
28702fi
28703
28704if test "x$NOUSE" = "xyes"; then
28705  USE_IQA="no"
28706  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** iqa  pre-configured not to be built" >&5
28707$as_echo "$as_me: WARNING: *** iqa  pre-configured not to be built" >&2;}
28708fi
28709NOUSE=
28710
28711if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " IQA " > /dev/null; then
28712  USE_IQA="no"
28713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** iqa  not ported" >&5
28714$as_echo "$as_me: WARNING: *** iqa  not ported" >&2;}
28715fi
28716
28717
28718if test x$USE_IQA = xyes; then
28719
28720  gst_check_save_LIBS=$LIBS
28721  gst_check_save_LDFLAGS=$LDFLAGS
28722  gst_check_save_CFLAGS=$CFLAGS
28723  gst_check_save_CPPFLAGS=$CPPFLAGS
28724  gst_check_save_CXXFLAGS=$CXXFLAGS
28725
28726  HAVE_IQA=no
28727
28728
28729pkg_failed=no
28730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSSIM" >&5
28731$as_echo_n "checking for DSSIM... " >&6; }
28732
28733if test -n "$PKG_CONFIG"; then
28734    if test -n "$DSSIM_CFLAGS"; then
28735        pkg_cv_DSSIM_CFLAGS="$DSSIM_CFLAGS"
28736    else
28737        if test -n "$PKG_CONFIG" && \
28738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dssim\""; } >&5
28739  ($PKG_CONFIG --exists --print-errors "dssim") 2>&5
28740  ac_status=$?
28741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28742  test $ac_status = 0; }; then
28743  pkg_cv_DSSIM_CFLAGS=`$PKG_CONFIG --cflags "dssim" 2>/dev/null`
28744else
28745  pkg_failed=yes
28746fi
28747    fi
28748else
28749	pkg_failed=untried
28750fi
28751if test -n "$PKG_CONFIG"; then
28752    if test -n "$DSSIM_LIBS"; then
28753        pkg_cv_DSSIM_LIBS="$DSSIM_LIBS"
28754    else
28755        if test -n "$PKG_CONFIG" && \
28756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dssim\""; } >&5
28757  ($PKG_CONFIG --exists --print-errors "dssim") 2>&5
28758  ac_status=$?
28759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28760  test $ac_status = 0; }; then
28761  pkg_cv_DSSIM_LIBS=`$PKG_CONFIG --libs "dssim" 2>/dev/null`
28762else
28763  pkg_failed=yes
28764fi
28765    fi
28766else
28767	pkg_failed=untried
28768fi
28769
28770
28771
28772if test $pkg_failed = yes; then
28773
28774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28775        _pkg_short_errors_supported=yes
28776else
28777        _pkg_short_errors_supported=no
28778fi
28779        if test $_pkg_short_errors_supported = yes; then
28780	        DSSIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dssim"`
28781        else
28782	        DSSIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dssim"`
28783        fi
28784	# Put the nasty error message in config.log where it belongs
28785	echo "$DSSIM_PKG_ERRORS" >&5
28786
28787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28788$as_echo "no" >&6; }
28789
28790    HAVE_DSSIM="no"
28791    HAVE_IQA="no"
28792
28793elif test $pkg_failed = untried; then
28794
28795    HAVE_DSSIM="no"
28796    HAVE_IQA="no"
28797
28798else
28799	DSSIM_CFLAGS=$pkg_cv_DSSIM_CFLAGS
28800	DSSIM_LIBS=$pkg_cv_DSSIM_LIBS
28801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28802$as_echo "yes" >&6; }
28803
28804    HAVE_DSSIM="yes"
28805    HAVE_IQA="yes"
28806
28807fi
28808
28809  if test "x$HAVE_DSSIM" = "xyes"; then
28810
28811$as_echo "#define HAVE_DSSIM 1" >>confdefs.h
28812
28813  fi
28814
28815
28816
28817
28818  LIBS=$gst_check_save_LIBS
28819  LDFLAGS=$gst_check_save_LDFLAGS
28820  CFLAGS=$gst_check_save_CFLAGS
28821  CPPFLAGS=$gst_check_save_CPPFLAGS
28822  CXXFLAGS=$gst_check_save_CXXFLAGS
28823
28824    if test x$HAVE_IQA = xno; then
28825    USE_IQA=no
28826  else
28827    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: iqa " >&5
28828$as_echo "$as_me: *** These plugins will be built: iqa " >&6;}
28829  fi
28830fi
28831if test x$USE_IQA = xyes; then
28832  :
28833  if test "xiqa " != "x"; then
28834    GST_PLUGINS_YES="\tiqa \n$GST_PLUGINS_YES"
28835  fi
28836
28837$as_echo "#define HAVE_IQA /**/" >>confdefs.h
28838
28839else
28840  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: iqa " >&5
28841$as_echo "$as_me: *** These plugins will not be built: iqa " >&6;}
28842  if test "xiqa " != "x"; then
28843    GST_PLUGINS_NO="\tiqa \n$GST_PLUGINS_NO"
28844  fi
28845  :
28846fi
28847 if test x$USE_IQA = xyes; then
28848  USE_IQA_TRUE=
28849  USE_IQA_FALSE='#'
28850else
28851  USE_IQA_TRUE='#'
28852  USE_IQA_FALSE=
28853fi
28854
28855
28856 if test "x$HAVE_DSSIM" = "xyes"; then
28857  HAVE_DSSIM_TRUE=
28858  HAVE_DSSIM_FALSE='#'
28859else
28860  HAVE_DSSIM_TRUE='#'
28861  HAVE_DSSIM_FALSE=
28862fi
28863
28864
28865
28866  ORC_REQ=0.4.17
28867
28868  # Check whether --enable-orc was given.
28869if test "${enable_orc+set}" = set; then :
28870  enableval=$enable_orc; case "${enableval}" in
28871    auto) enable_orc=auto ;;
28872    yes) enable_orc=yes ;;
28873    no)  enable_orc=no ;;
28874    *) as_fn_error $? "bad value ${enableval} for --enable-orc" "$LINENO" 5 ;;
28875  esac
28876
28877else
28878  enable_orc=auto
28879fi
28880
28881  if test "x$enable_orc" != "xno" ; then
28882
28883pkg_failed=no
28884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORC" >&5
28885$as_echo_n "checking for ORC... " >&6; }
28886
28887if test -n "$PKG_CONFIG"; then
28888    if test -n "$ORC_CFLAGS"; then
28889        pkg_cv_ORC_CFLAGS="$ORC_CFLAGS"
28890    else
28891        if test -n "$PKG_CONFIG" && \
28892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
28893  ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
28894  ac_status=$?
28895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28896  test $ac_status = 0; }; then
28897  pkg_cv_ORC_CFLAGS=`$PKG_CONFIG --cflags "orc-0.4 >= $ORC_REQ" 2>/dev/null`
28898else
28899  pkg_failed=yes
28900fi
28901    fi
28902else
28903	pkg_failed=untried
28904fi
28905if test -n "$PKG_CONFIG"; then
28906    if test -n "$ORC_LIBS"; then
28907        pkg_cv_ORC_LIBS="$ORC_LIBS"
28908    else
28909        if test -n "$PKG_CONFIG" && \
28910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
28911  ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
28912  ac_status=$?
28913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28914  test $ac_status = 0; }; then
28915  pkg_cv_ORC_LIBS=`$PKG_CONFIG --libs "orc-0.4 >= $ORC_REQ" 2>/dev/null`
28916else
28917  pkg_failed=yes
28918fi
28919    fi
28920else
28921	pkg_failed=untried
28922fi
28923
28924
28925
28926if test $pkg_failed = yes; then
28927
28928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28929        _pkg_short_errors_supported=yes
28930else
28931        _pkg_short_errors_supported=no
28932fi
28933        if test $_pkg_short_errors_supported = yes; then
28934	        ORC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
28935        else
28936	        ORC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
28937        fi
28938	# Put the nasty error message in config.log where it belongs
28939	echo "$ORC_PKG_ERRORS" >&5
28940
28941	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28942$as_echo "no" >&6; }
28943
28944      if test "x$enable_orc" = "xyes" ; then
28945        as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
28946      fi
28947
28948$as_echo "#define DISABLE_ORC 1" >>confdefs.h
28949
28950      HAVE_ORC=no
28951      HAVE_ORCC=no
28952
28953elif test $pkg_failed = untried; then
28954
28955      if test "x$enable_orc" = "xyes" ; then
28956        as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
28957      fi
28958
28959$as_echo "#define DISABLE_ORC 1" >>confdefs.h
28960
28961      HAVE_ORC=no
28962      HAVE_ORCC=no
28963
28964else
28965	ORC_CFLAGS=$pkg_cv_ORC_CFLAGS
28966	ORC_LIBS=$pkg_cv_ORC_LIBS
28967        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28968$as_echo "yes" >&6; }
28969
28970
28971$as_echo "#define HAVE_ORC 1" >>confdefs.h
28972
28973      HAVE_ORC=yes
28974      if test "x$ORCC" = "x" ; then
28975        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable orcc" >&5
28976$as_echo_n "checking for usable orcc... " >&6; }
28977        ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
28978                        if $ORCC --version 1> /dev/null 2> /dev/null; then :
28979
28980else
28981  ORCC=`which orcc`
28982fi
28983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORCC" >&5
28984$as_echo "$ORCC" >&6; }
28985      fi
28986
28987      ORCC_FLAGS="--compat $ORC_REQ"
28988
28989      if test "x$ORCC" = "x"; then :
28990  HAVE_ORCC=no
28991else
28992  HAVE_ORCC=yes
28993fi
28994
28995fi
28996  else
28997
28998$as_echo "#define DISABLE_ORC 1" >>confdefs.h
28999
29000    HAVE_ORC=no
29001    HAVE_ORCC=no
29002  fi
29003   if test "x$HAVE_ORC" = "xyes"; then
29004  HAVE_ORC_TRUE=
29005  HAVE_ORC_FALSE='#'
29006else
29007  HAVE_ORC_TRUE='#'
29008  HAVE_ORC_FALSE=
29009fi
29010
29011   if test "x$HAVE_ORCC" = "xyes"; then
29012  HAVE_ORCC_TRUE=
29013  HAVE_ORCC_FALSE='#'
29014else
29015  HAVE_ORCC_TRUE='#'
29016  HAVE_ORCC_FALSE=
29017fi
29018
29019
29020
29021
29022GST_LICENSE="LGPL"
29023
29024cat >>confdefs.h <<_ACEOF
29025#define GST_LICENSE "$GST_LICENSE"
29026_ACEOF
29027
29028
29029
29030
29031  EXP_VAR=LIBDIR
29032  FROM_VAR=$libdir
29033
29034    prefix_save=$prefix
29035  exec_prefix_save=$exec_prefix
29036
29037    if test "x$prefix" = "xNONE"; then
29038    prefix="$ac_default_prefix"
29039  fi
29040    if test "x$exec_prefix" = "xNONE"; then
29041    exec_prefix=$prefix
29042  fi
29043
29044  full_var="$FROM_VAR"
29045    while true; do
29046    new_full_var="`eval echo $full_var`"
29047    if test "x$new_full_var" = "x$full_var"; then break; fi
29048    full_var=$new_full_var
29049  done
29050
29051    full_var=$new_full_var
29052  LIBDIR="$full_var"
29053
29054
29055    prefix=$prefix_save
29056  exec_prefix=$exec_prefix_save
29057
29058
29059cat >>confdefs.h <<_ACEOF
29060#define LIBDIR "$LIBDIR"
29061_ACEOF
29062
29063
29064
29065
29066  EXP_VAR=PLUGINDIR
29067  FROM_VAR=${libdir}/gstreamer-$GST_API_VERSION
29068
29069    prefix_save=$prefix
29070  exec_prefix_save=$exec_prefix
29071
29072    if test "x$prefix" = "xNONE"; then
29073    prefix="$ac_default_prefix"
29074  fi
29075    if test "x$exec_prefix" = "xNONE"; then
29076    exec_prefix=$prefix
29077  fi
29078
29079  full_var="$FROM_VAR"
29080    while true; do
29081    new_full_var="`eval echo $full_var`"
29082    if test "x$new_full_var" = "x$full_var"; then break; fi
29083    full_var=$new_full_var
29084  done
29085
29086    full_var=$new_full_var
29087  PLUGINDIR="$full_var"
29088
29089
29090    prefix=$prefix_save
29091  exec_prefix=$exec_prefix_save
29092
29093
29094cat >>confdefs.h <<_ACEOF
29095#define PLUGINDIR "$PLUGINDIR"
29096_ACEOF
29097
29098  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $PLUGINDIR as the plugin install location" >&5
29099$as_echo "$as_me: Using $PLUGINDIR as the plugin install location" >&6;}
29100
29101    plugindir="\$(libdir)/gstreamer-$GST_API_VERSION"
29102
29103
29104
29105
29106  if test "x$PACKAGE_VERSION_NANO" = "x0"; then
29107
29108      if test "xyes" = "xno" -o "xyes" = "x"; then
29109    GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
29110  elif test "xyes" = "xyes"; then
29111            if ( echo  "${srcdir}/gst-plugins-bad.doap"  | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
29112      GST_PACKAGE_RELEASE_DATETIME= "${srcdir}/gst-plugins-bad.doap"
29113    else
29114            YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO   "${srcdir}/gst-plugins-bad.doap" `;
29115      if test "x$YYYY_MM_DD" != "x"; then
29116        GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
29117      else
29118        as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
29119            release date for release version  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO  from  \"${srcdir}/gst-plugins-bad.doap\" " "$LINENO" 5
29120        GST_PACKAGE_RELEASE_DATETIME=""
29121      fi
29122    fi
29123    elif ( echo yes | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
29124    GST_PACKAGE_RELEASE_DATETIME=yes
29125  else
29126    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
29127$as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
29128    GST_PACKAGE_RELEASE_DATETIME=""
29129  fi
29130
29131  if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
29132    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
29133$as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
29134  else
29135    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
29136$as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
29137
29138
29139cat >>confdefs.h <<_ACEOF
29140#define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
29141_ACEOF
29142
29143  fi
29144
29145  else
29146
29147      if test "xno" = "xno" -o "xno" = "x"; then
29148    GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
29149  elif test "xno" = "xyes"; then
29150            if ( echo  | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
29151      GST_PACKAGE_RELEASE_DATETIME=
29152    else
29153            YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  `;
29154      if test "x$YYYY_MM_DD" != "x"; then
29155        GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
29156      else
29157        as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
29158            release date for release version  from " "$LINENO" 5
29159        GST_PACKAGE_RELEASE_DATETIME=""
29160      fi
29161    fi
29162    elif ( echo no | grep '^20[1-9][0-9]-[0-1][0-9]-[0-3][0-9]' >/dev/null ) ; then
29163    GST_PACKAGE_RELEASE_DATETIME=no
29164  else
29165    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
29166$as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
29167    GST_PACKAGE_RELEASE_DATETIME=""
29168  fi
29169
29170  if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
29171    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
29172$as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
29173  else
29174    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
29175$as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
29176
29177
29178cat >>confdefs.h <<_ACEOF
29179#define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
29180_ACEOF
29181
29182  fi
29183
29184  fi
29185
29186
29187if test x$enable_static = xyes -a x$enable_shared = xno; then
29188  GST_STATIC_CFLAGS="-DGST_STATIC_COMPILATION"
29189fi
29190
29191
29192# Check whether --with-player-tests was given.
29193if test "${with_player_tests+set}" = set; then :
29194  withval=$with_player_tests;
29195fi
29196
29197if test x$with_player_tests = xyes; then
29198  # Extract the first word of "wget", so it can be a program name with args.
29199set dummy wget; ac_word=$2
29200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29201$as_echo_n "checking for $ac_word... " >&6; }
29202if ${ac_cv_path_WGET+:} false; then :
29203  $as_echo_n "(cached) " >&6
29204else
29205  case $WGET in
29206  [\\/]* | ?:[\\/]*)
29207  ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
29208  ;;
29209  *)
29210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29211for as_dir in $PATH
29212do
29213  IFS=$as_save_IFS
29214  test -z "$as_dir" && as_dir=.
29215    for ac_exec_ext in '' $ac_executable_extensions; do
29216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29217    ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
29218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29219    break 2
29220  fi
29221done
29222  done
29223IFS=$as_save_IFS
29224
29225  test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="no"
29226  ;;
29227esac
29228fi
29229WGET=$ac_cv_path_WGET
29230if test -n "$WGET"; then
29231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
29232$as_echo "$WGET" >&6; }
29233else
29234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29235$as_echo "no" >&6; }
29236fi
29237
29238
29239  if test x$WGET = xno; then
29240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wget required for GstPlayer tests but not found - disabling" >&5
29241$as_echo "$as_me: WARNING: wget required for GstPlayer tests but not found - disabling" >&2;}
29242    with_player_tests=no
29243  fi
29244fi
29245 if test "x$with_player_tests" = "xyes"; then
29246  WITH_GST_PLAYER_TESTS_TRUE=
29247  WITH_GST_PLAYER_TESTS_FALSE='#'
29248else
29249  WITH_GST_PLAYER_TESTS_TRUE='#'
29250  WITH_GST_PLAYER_TESTS_FALSE=
29251fi
29252
29253
29254# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
29255NO_WARNINGS=""
29256
29257
29258
29259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GStreamer debugging system is enabled" >&5
29260$as_echo_n "checking whether the GStreamer debugging system is enabled... " >&6; }
29261  ac_ext=c
29262ac_cpp='$CPP $CPPFLAGS'
29263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29265ac_compiler_gnu=$ac_cv_c_compiler_gnu
29266
29267  save_CFLAGS="$CFLAGS"
29268  CFLAGS="$GST_CFLAGS $CFLAGS"
29269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29270/* end confdefs.h.  */
29271
29272
29273      #include <gst/gstconfig.h>
29274      #ifdef GST_DISABLE_GST_DEBUG
29275      #error "debugging disabled, make compiler fail"
29276      #endif
29277_ACEOF
29278if ac_fn_c_try_compile "$LINENO"; then :
29279   debug_system_enabled=yes
29280else
29281  debug_system_enabled=no
29282fi
29283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284  CFLAGS="$save_CFLAGS"
29285  ac_ext=c
29286ac_cpp='$CPP $CPPFLAGS'
29287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29289ac_compiler_gnu=$ac_cv_c_compiler_gnu
29290
29291
29292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_system_enabled" >&5
29293$as_echo "$debug_system_enabled" >&6; }
29294
29295  if test "x$debug_system_enabled" = "xyes" ; then
29296    NO_WARNINGS=""
29297    true
29298  else
29299    NO_WARNINGS="-Wno-unused"
29300    true
29301  fi
29302
29303
29304
29305
29306
29307
29308  WARNING_CFLAGS=""
29309  ERROR_CFLAGS=""
29310
29311
29312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
29313$as_echo_n "checking to see if compiler understands -Wall... " >&6; }
29314
29315  save_CFLAGS="$CFLAGS"
29316  CFLAGS="$CFLAGS -Wall"
29317
29318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29319/* end confdefs.h.  */
29320
29321int
29322main ()
29323{
29324
29325  ;
29326  return 0;
29327}
29328_ACEOF
29329if ac_fn_c_try_compile "$LINENO"; then :
29330  flag_ok=yes
29331else
29332  flag_ok=no
29333fi
29334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29335  CFLAGS="$save_CFLAGS"
29336
29337  if test "X$flag_ok" = Xyes ; then
29338    WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
29339    true
29340  else
29341
29342    true
29343  fi
29344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29345$as_echo "$flag_ok" >&6; }
29346
29347
29348
29349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5
29350$as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; }
29351
29352  save_CFLAGS="$CFLAGS"
29353  CFLAGS="$CFLAGS -Wdeclaration-after-statement"
29354
29355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29356/* end confdefs.h.  */
29357
29358int
29359main ()
29360{
29361
29362  ;
29363  return 0;
29364}
29365_ACEOF
29366if ac_fn_c_try_compile "$LINENO"; then :
29367  flag_ok=yes
29368else
29369  flag_ok=no
29370fi
29371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29372  CFLAGS="$save_CFLAGS"
29373
29374  if test "X$flag_ok" = Xyes ; then
29375    WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement"
29376    true
29377  else
29378
29379    true
29380  fi
29381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29382$as_echo "$flag_ok" >&6; }
29383
29384
29385
29386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wvla" >&5
29387$as_echo_n "checking to see if compiler understands -Wvla... " >&6; }
29388
29389  save_CFLAGS="$CFLAGS"
29390  CFLAGS="$CFLAGS -Wvla"
29391
29392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29393/* end confdefs.h.  */
29394
29395int
29396main ()
29397{
29398
29399  ;
29400  return 0;
29401}
29402_ACEOF
29403if ac_fn_c_try_compile "$LINENO"; then :
29404  flag_ok=yes
29405else
29406  flag_ok=no
29407fi
29408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29409  CFLAGS="$save_CFLAGS"
29410
29411  if test "X$flag_ok" = Xyes ; then
29412    WARNING_CFLAGS="$WARNING_CFLAGS -Wvla"
29413    true
29414  else
29415
29416    true
29417  fi
29418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29419$as_echo "$flag_ok" >&6; }
29420
29421
29422
29423  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wpointer-arith" >&5
29424$as_echo_n "checking to see if compiler understands -Wpointer-arith... " >&6; }
29425
29426  save_CFLAGS="$CFLAGS"
29427  CFLAGS="$CFLAGS -Wpointer-arith"
29428
29429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29430/* end confdefs.h.  */
29431
29432int
29433main ()
29434{
29435
29436  ;
29437  return 0;
29438}
29439_ACEOF
29440if ac_fn_c_try_compile "$LINENO"; then :
29441  flag_ok=yes
29442else
29443  flag_ok=no
29444fi
29445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29446  CFLAGS="$save_CFLAGS"
29447
29448  if test "X$flag_ok" = Xyes ; then
29449    WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith"
29450    true
29451  else
29452
29453    true
29454  fi
29455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29456$as_echo "$flag_ok" >&6; }
29457
29458
29459    if test "x$FATAL_WARNINGS" != "xno"
29460  then
29461
29462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
29463$as_echo_n "checking to see if compiler understands -Werror... " >&6; }
29464
29465  save_CFLAGS="$CFLAGS"
29466  CFLAGS="$CFLAGS -Werror"
29467
29468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29469/* end confdefs.h.  */
29470
29471int
29472main ()
29473{
29474
29475  ;
29476  return 0;
29477}
29478_ACEOF
29479if ac_fn_c_try_compile "$LINENO"; then :
29480  flag_ok=yes
29481else
29482  flag_ok=no
29483fi
29484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29485  CFLAGS="$save_CFLAGS"
29486
29487  if test "X$flag_ok" = Xyes ; then
29488    ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
29489    true
29490  else
29491
29492    true
29493  fi
29494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29495$as_echo "$flag_ok" >&6; }
29496
29497  fi
29498
29499  if test "x
29500    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
29501    -Wwrite-strings -Wformat-security -Wold-style-definition
29502    -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
29503    -Wnested-externs $NO_WARNINGS" != "x"
29504  then
29505    UNSUPPORTED=""
29506    list="
29507    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
29508    -Wwrite-strings -Wformat-security -Wold-style-definition
29509    -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
29510    -Wnested-externs $NO_WARNINGS"
29511    for each in $list
29512    do
29513
29514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $each" >&5
29515$as_echo_n "checking to see if compiler understands $each... " >&6; }
29516
29517  save_CFLAGS="$CFLAGS"
29518  CFLAGS="$CFLAGS $each"
29519
29520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29521/* end confdefs.h.  */
29522
29523int
29524main ()
29525{
29526
29527  ;
29528  return 0;
29529}
29530_ACEOF
29531if ac_fn_c_try_compile "$LINENO"; then :
29532  flag_ok=yes
29533else
29534  flag_ok=no
29535fi
29536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537  CFLAGS="$save_CFLAGS"
29538
29539  if test "X$flag_ok" = Xyes ; then
29540    WARNING_CFLAGS="$WARNING_CFLAGS $each"
29541    true
29542  else
29543    UNSUPPORTED="$UNSUPPORTED $each"
29544    true
29545  fi
29546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29547$as_echo "$flag_ok" >&6; }
29548
29549    done
29550    if test "X$UNSUPPORTED" != X ; then
29551      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
29552$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
29553    fi
29554  fi
29555
29556
29557
29558  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CFLAGS to $WARNING_CFLAGS" >&5
29559$as_echo "$as_me: set WARNING_CFLAGS to $WARNING_CFLAGS" >&6;}
29560  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CFLAGS to $ERROR_CFLAGS" >&5
29561$as_echo "$as_me: set ERROR_CFLAGS to $ERROR_CFLAGS" >&6;}
29562
29563
29564
29565
29566
29567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands " >&5
29568$as_echo_n "checking to see if c++ compiler understands ... " >&6; }
29569
29570  save_CPPFLAGS="$CPPFLAGS"
29571  CPPFLAGS="$CPPFLAGS "
29572
29573  ac_ext=cpp
29574ac_cpp='$CXXCPP $CPPFLAGS'
29575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29578
29579
29580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29581/* end confdefs.h.  */
29582
29583int
29584main ()
29585{
29586
29587  ;
29588  return 0;
29589}
29590_ACEOF
29591if ac_fn_cxx_try_compile "$LINENO"; then :
29592  flag_ok=yes
29593else
29594  flag_ok=no
29595fi
29596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29597  CPPFLAGS="$save_CPPFLAGS"
29598
29599  if test "X$flag_ok" = Xyes ; then
29600
29601    true
29602  else
29603
29604    true
29605  fi
29606
29607  ac_ext=c
29608ac_cpp='$CPP $CPPFLAGS'
29609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29611ac_compiler_gnu=$ac_cv_c_compiler_gnu
29612
29613
29614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29615$as_echo "$flag_ok" >&6; }
29616
29617
29618
29619
29620
29621  ERROR_CXXFLAGS=""
29622  WARNING_CXXFLAGS=""
29623
29624
29625
29626
29627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Wall" >&5
29628$as_echo_n "checking to see if c++ compiler understands -Wall... " >&6; }
29629
29630  save_CPPFLAGS="$CPPFLAGS"
29631  CPPFLAGS="$CPPFLAGS -Wall"
29632
29633  ac_ext=cpp
29634ac_cpp='$CXXCPP $CPPFLAGS'
29635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29638
29639
29640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29641/* end confdefs.h.  */
29642
29643int
29644main ()
29645{
29646
29647  ;
29648  return 0;
29649}
29650_ACEOF
29651if ac_fn_cxx_try_compile "$LINENO"; then :
29652  flag_ok=yes
29653else
29654  flag_ok=no
29655fi
29656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29657  CPPFLAGS="$save_CPPFLAGS"
29658
29659  if test "X$flag_ok" = Xyes ; then
29660    WARNING_CXXFLAGS="$WARNING_CXXFLAGS -Wall"
29661    true
29662  else
29663
29664    true
29665  fi
29666
29667  ac_ext=c
29668ac_cpp='$CPP $CPPFLAGS'
29669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29671ac_compiler_gnu=$ac_cv_c_compiler_gnu
29672
29673
29674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29675$as_echo "$flag_ok" >&6; }
29676
29677
29678    if test "x$FATAL_WARNINGS" != "xno"
29679  then
29680
29681
29682
29683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Werror" >&5
29684$as_echo_n "checking to see if c++ compiler understands -Werror... " >&6; }
29685
29686  save_CPPFLAGS="$CPPFLAGS"
29687  CPPFLAGS="$CPPFLAGS -Werror"
29688
29689  ac_ext=cpp
29690ac_cpp='$CXXCPP $CPPFLAGS'
29691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29694
29695
29696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697/* end confdefs.h.  */
29698
29699int
29700main ()
29701{
29702
29703  ;
29704  return 0;
29705}
29706_ACEOF
29707if ac_fn_cxx_try_compile "$LINENO"; then :
29708  flag_ok=yes
29709else
29710  flag_ok=no
29711fi
29712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713  CPPFLAGS="$save_CPPFLAGS"
29714
29715  if test "X$flag_ok" = Xyes ; then
29716    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Werror"
29717    true
29718  else
29719
29720    true
29721  fi
29722
29723  ac_ext=c
29724ac_cpp='$CPP $CPPFLAGS'
29725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727ac_compiler_gnu=$ac_cv_c_compiler_gnu
29728
29729
29730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29731$as_echo "$flag_ok" >&6; }
29732
29733
29734    if test "x$ERROR_CXXFLAGS" != "x"
29735    then
29736
29737
29738
29739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Wno-non-virtual-dtor" >&5
29740$as_echo_n "checking to see if c++ compiler understands -Wno-non-virtual-dtor... " >&6; }
29741
29742  save_CPPFLAGS="$CPPFLAGS"
29743  CPPFLAGS="$CPPFLAGS -Wno-non-virtual-dtor"
29744
29745  ac_ext=cpp
29746ac_cpp='$CXXCPP $CPPFLAGS'
29747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29750
29751
29752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29753/* end confdefs.h.  */
29754
29755int
29756main ()
29757{
29758
29759  ;
29760  return 0;
29761}
29762_ACEOF
29763if ac_fn_cxx_try_compile "$LINENO"; then :
29764  flag_ok=yes
29765else
29766  flag_ok=no
29767fi
29768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29769  CPPFLAGS="$save_CPPFLAGS"
29770
29771  if test "X$flag_ok" = Xyes ; then
29772    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Wno-non-virtual-dtor"
29773    true
29774  else
29775
29776    true
29777  fi
29778
29779  ac_ext=c
29780ac_cpp='$CPP $CPPFLAGS'
29781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29783ac_compiler_gnu=$ac_cv_c_compiler_gnu
29784
29785
29786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29787$as_echo "$flag_ok" >&6; }
29788
29789
29790				if test -n "$PKG_CONFIG" && \
29791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
29792  ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
29793  ac_status=$?
29794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29795  test $ac_status = 0; }; then
29796
29797
29798
29799
29800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -fno-strict-aliasing" >&5
29801$as_echo_n "checking to see if c++ compiler understands -fno-strict-aliasing... " >&6; }
29802
29803  save_CPPFLAGS="$CPPFLAGS"
29804  CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
29805
29806  ac_ext=cpp
29807ac_cpp='$CXXCPP $CPPFLAGS'
29808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29811
29812
29813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29814/* end confdefs.h.  */
29815
29816int
29817main ()
29818{
29819
29820  ;
29821  return 0;
29822}
29823_ACEOF
29824if ac_fn_cxx_try_compile "$LINENO"; then :
29825  flag_ok=yes
29826else
29827  flag_ok=no
29828fi
29829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830  CPPFLAGS="$save_CPPFLAGS"
29831
29832  if test "X$flag_ok" = Xyes ; then
29833    ERROR_CXXFLAGS="$ERROR_CXXFLAGS -fno-strict-aliasing"
29834    true
29835  else
29836
29837    true
29838  fi
29839
29840  ac_ext=c
29841ac_cpp='$CPP $CPPFLAGS'
29842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29844ac_compiler_gnu=$ac_cv_c_compiler_gnu
29845
29846
29847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29848$as_echo "$flag_ok" >&6; }
29849
29850
29851fi
29852    fi
29853  fi
29854
29855  if test "x
29856    -Wmissing-declarations -Wredundant-decls
29857    -Wwrite-strings -Wformat-nonliteral -Wformat-security
29858    -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar $NO_WARNINGS" != "x"
29859  then
29860    UNSUPPORTED=""
29861    list="
29862    -Wmissing-declarations -Wredundant-decls
29863    -Wwrite-strings -Wformat-nonliteral -Wformat-security
29864    -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar $NO_WARNINGS"
29865    for each in $list
29866    do
29867
29868
29869
29870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands $each" >&5
29871$as_echo_n "checking to see if c++ compiler understands $each... " >&6; }
29872
29873  save_CPPFLAGS="$CPPFLAGS"
29874  CPPFLAGS="$CPPFLAGS $each"
29875
29876  ac_ext=cpp
29877ac_cpp='$CXXCPP $CPPFLAGS'
29878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29881
29882
29883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29884/* end confdefs.h.  */
29885
29886int
29887main ()
29888{
29889
29890  ;
29891  return 0;
29892}
29893_ACEOF
29894if ac_fn_cxx_try_compile "$LINENO"; then :
29895  flag_ok=yes
29896else
29897  flag_ok=no
29898fi
29899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29900  CPPFLAGS="$save_CPPFLAGS"
29901
29902  if test "X$flag_ok" = Xyes ; then
29903    WARNING_CXXFLAGS="$WARNING_CXXFLAGS $each"
29904    true
29905  else
29906    UNSUPPORTED="$UNSUPPORTED $each"
29907    true
29908  fi
29909
29910  ac_ext=c
29911ac_cpp='$CPP $CPPFLAGS'
29912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29914ac_compiler_gnu=$ac_cv_c_compiler_gnu
29915
29916
29917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29918$as_echo "$flag_ok" >&6; }
29919
29920    done
29921    if test "X$UNSUPPORTED" != X ; then
29922      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
29923$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
29924    fi
29925  fi
29926
29927
29928
29929  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CXXFLAGS to $WARNING_CXXFLAGS" >&5
29930$as_echo "$as_me: set WARNING_CXXFLAGS to $WARNING_CXXFLAGS" >&6;}
29931  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CXXFLAGS to $ERROR_CXXFLAGS" >&5
29932$as_echo "$as_me: set ERROR_CXXFLAGS to $ERROR_CXXFLAGS" >&6;}
29933
29934
29935
29936
29937
29938
29939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands " >&5
29940$as_echo_n "checking to see if Objective C compiler understands ... " >&6; }
29941
29942  save_CPPFLAGS="$CPPFLAGS"
29943  CPPFLAGS="$CPPFLAGS "
29944
29945  ac_ext=m
29946ac_cpp='$OBJCPP $CPPFLAGS'
29947ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29948ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29949ac_compiler_gnu=$ac_cv_objc_compiler_gnu
29950
29951
29952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29953/* end confdefs.h.  */
29954
29955int
29956main ()
29957{
29958
29959  ;
29960  return 0;
29961}
29962_ACEOF
29963if ac_fn_objc_try_compile "$LINENO"; then :
29964  flag_ok=yes
29965else
29966  flag_ok=no
29967fi
29968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29969  CPPFLAGS="$save_CPPFLAGS"
29970
29971  if test "X$flag_ok" = Xyes ; then
29972
29973    true
29974  else
29975
29976    true
29977  fi
29978
29979  ac_ext=c
29980ac_cpp='$CPP $CPPFLAGS'
29981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29983ac_compiler_gnu=$ac_cv_c_compiler_gnu
29984
29985
29986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
29987$as_echo "$flag_ok" >&6; }
29988
29989
29990
29991
29992
29993  ERROR_OBJCFLAGS=""
29994  WARNING_OBJCFLAGS=""
29995
29996
29997
29998
29999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -Wall" >&5
30000$as_echo_n "checking to see if Objective C compiler understands -Wall... " >&6; }
30001
30002  save_CPPFLAGS="$CPPFLAGS"
30003  CPPFLAGS="$CPPFLAGS -Wall"
30004
30005  ac_ext=m
30006ac_cpp='$OBJCPP $CPPFLAGS'
30007ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30008ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30009ac_compiler_gnu=$ac_cv_objc_compiler_gnu
30010
30011
30012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30013/* end confdefs.h.  */
30014
30015int
30016main ()
30017{
30018
30019  ;
30020  return 0;
30021}
30022_ACEOF
30023if ac_fn_objc_try_compile "$LINENO"; then :
30024  flag_ok=yes
30025else
30026  flag_ok=no
30027fi
30028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30029  CPPFLAGS="$save_CPPFLAGS"
30030
30031  if test "X$flag_ok" = Xyes ; then
30032    WARNING_OBJCFLAGS="$WARNING_OBJCFLAGS -Wall"
30033    true
30034  else
30035
30036    true
30037  fi
30038
30039  ac_ext=c
30040ac_cpp='$CPP $CPPFLAGS'
30041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043ac_compiler_gnu=$ac_cv_c_compiler_gnu
30044
30045
30046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30047$as_echo "$flag_ok" >&6; }
30048
30049
30050    if test "x$FATAL_WARNINGS" != "xno"
30051  then
30052
30053
30054
30055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -Werror" >&5
30056$as_echo_n "checking to see if Objective C compiler understands -Werror... " >&6; }
30057
30058  save_CPPFLAGS="$CPPFLAGS"
30059  CPPFLAGS="$CPPFLAGS -Werror"
30060
30061  ac_ext=m
30062ac_cpp='$OBJCPP $CPPFLAGS'
30063ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30064ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30065ac_compiler_gnu=$ac_cv_objc_compiler_gnu
30066
30067
30068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30069/* end confdefs.h.  */
30070
30071int
30072main ()
30073{
30074
30075  ;
30076  return 0;
30077}
30078_ACEOF
30079if ac_fn_objc_try_compile "$LINENO"; then :
30080  flag_ok=yes
30081else
30082  flag_ok=no
30083fi
30084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30085  CPPFLAGS="$save_CPPFLAGS"
30086
30087  if test "X$flag_ok" = Xyes ; then
30088    ERROR_OBJCFLAGS="$ERROR_OBJCFLAGS -Werror"
30089    true
30090  else
30091
30092    true
30093  fi
30094
30095  ac_ext=c
30096ac_cpp='$CPP $CPPFLAGS'
30097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30099ac_compiler_gnu=$ac_cv_c_compiler_gnu
30100
30101
30102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30103$as_echo "$flag_ok" >&6; }
30104
30105
30106    if test "x$ERROR_OBJCFLAGS" != "x"
30107    then
30108				if test -n "$PKG_CONFIG" && \
30109    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
30110  ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
30111  ac_status=$?
30112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30113  test $ac_status = 0; }; then
30114
30115
30116
30117
30118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands -fno-strict-aliasing" >&5
30119$as_echo_n "checking to see if Objective C compiler understands -fno-strict-aliasing... " >&6; }
30120
30121  save_CPPFLAGS="$CPPFLAGS"
30122  CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
30123
30124  ac_ext=m
30125ac_cpp='$OBJCPP $CPPFLAGS'
30126ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30127ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30128ac_compiler_gnu=$ac_cv_objc_compiler_gnu
30129
30130
30131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30132/* end confdefs.h.  */
30133
30134int
30135main ()
30136{
30137
30138  ;
30139  return 0;
30140}
30141_ACEOF
30142if ac_fn_objc_try_compile "$LINENO"; then :
30143  flag_ok=yes
30144else
30145  flag_ok=no
30146fi
30147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148  CPPFLAGS="$save_CPPFLAGS"
30149
30150  if test "X$flag_ok" = Xyes ; then
30151    ERROR_OBJCFLAGS="$ERROR_OBJCFLAGS -fno-strict-aliasing"
30152    true
30153  else
30154
30155    true
30156  fi
30157
30158  ac_ext=c
30159ac_cpp='$CPP $CPPFLAGS'
30160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162ac_compiler_gnu=$ac_cv_c_compiler_gnu
30163
30164
30165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30166$as_echo "$flag_ok" >&6; }
30167
30168
30169fi
30170    fi
30171  fi
30172
30173  if test "x
30174    -Wmissing-declarations -Wredundant-decls
30175    -Wwrite-strings -Wformat-nonliteral -Wformat-security
30176    -Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS" != "x"
30177  then
30178    UNSUPPORTED=""
30179    list="
30180    -Wmissing-declarations -Wredundant-decls
30181    -Wwrite-strings -Wformat-nonliteral -Wformat-security
30182    -Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS"
30183    for each in $list
30184    do
30185
30186
30187
30188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if Objective C compiler understands $each" >&5
30189$as_echo_n "checking to see if Objective C compiler understands $each... " >&6; }
30190
30191  save_CPPFLAGS="$CPPFLAGS"
30192  CPPFLAGS="$CPPFLAGS $each"
30193
30194  ac_ext=m
30195ac_cpp='$OBJCPP $CPPFLAGS'
30196ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30197ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30198ac_compiler_gnu=$ac_cv_objc_compiler_gnu
30199
30200
30201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30202/* end confdefs.h.  */
30203
30204int
30205main ()
30206{
30207
30208  ;
30209  return 0;
30210}
30211_ACEOF
30212if ac_fn_objc_try_compile "$LINENO"; then :
30213  flag_ok=yes
30214else
30215  flag_ok=no
30216fi
30217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30218  CPPFLAGS="$save_CPPFLAGS"
30219
30220  if test "X$flag_ok" = Xyes ; then
30221    WARNING_OBJCFLAGS="$WARNING_OBJCFLAGS $each"
30222    true
30223  else
30224    UNSUPPORTED="$UNSUPPORTED $each"
30225    true
30226  fi
30227
30228  ac_ext=c
30229ac_cpp='$CPP $CPPFLAGS'
30230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30232ac_compiler_gnu=$ac_cv_c_compiler_gnu
30233
30234
30235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
30236$as_echo "$flag_ok" >&6; }
30237
30238    done
30239    if test "X$UNSUPPORTED" != X ; then
30240      { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
30241$as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
30242    fi
30243  fi
30244
30245
30246
30247  { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_OBJCFLAGS to $WARNING_OBJCFLAGS" >&5
30248$as_echo "$as_me: set WARNING_OBJCFLAGS to $WARNING_OBJCFLAGS" >&6;}
30249  { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_OBJCFLAGS to $ERROR_OBJCFLAGS" >&5
30250$as_echo "$as_me: set ERROR_OBJCFLAGS to $ERROR_OBJCFLAGS" >&6;}
30251
30252
30253
30254      if test "x$GST_GIT" = "xyes"; then
30255    GST_LEVEL_DEFAULT=GST_LEVEL_ERROR
30256  else
30257    GST_LEVEL_DEFAULT=GST_LEVEL_NONE
30258  fi
30259
30260cat >>confdefs.h <<_ACEOF
30261#define GST_LEVEL_DEFAULT $GST_LEVEL_DEFAULT
30262_ACEOF
30263
30264
30265
30266
30267
30268            DEFAULT_AUDIOSINK="autoaudiosink"
30269  DEFAULT_VIDEOSINK="autovideosink"
30270  DEFAULT_AUDIOSRC="alsasrc"
30271  DEFAULT_VIDEOSRC="v4l2src"
30272  DEFAULT_VISUALIZER="goom"
30273  case "$host" in
30274    *-sun-* | *pc-solaris* )
30275      DEFAULT_AUDIOSRC="sunaudiosrc"
30276      ;;
30277    *-darwin* )
30278      DEFAULT_AUDIOSRC="osxaudiosrc"
30279      ;;
30280  esac
30281
30282
30283# Check whether --with-default-audiosink was given.
30284if test "${with_default_audiosink+set}" = set; then :
30285  withval=$with_default_audiosink;
30286      case "${withval}" in
30287        yes) as_fn_error $? "bad value ${withval} for --with-default-audiosink" "$LINENO" 5 ;;
30288        no)  as_fn_error $? "bad value ${withval} for --with-default-audiosink" "$LINENO" 5 ;;
30289        *)   DEFAULT_AUDIOSINK="${withval}" ;;
30290      esac
30291
30292else
30293
30294      DEFAULT_AUDIOSINK="$DEFAULT_AUDIOSINK"
30295
30296fi
30297
30298  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_AUDIOSINK as default audio sink" >&5
30299$as_echo "$as_me: Using $DEFAULT_AUDIOSINK as default audio sink" >&6;}
30300
30301
30302cat >>confdefs.h <<_ACEOF
30303#define DEFAULT_AUDIOSINK "$DEFAULT_AUDIOSINK"
30304_ACEOF
30305
30306
30307
30308# Check whether --with-default-audiosrc was given.
30309if test "${with_default_audiosrc+set}" = set; then :
30310  withval=$with_default_audiosrc;
30311      case "${withval}" in
30312        yes) as_fn_error $? "bad value ${withval} for --with-default-audiosrc" "$LINENO" 5 ;;
30313        no)  as_fn_error $? "bad value ${withval} for --with-default-audiosrc" "$LINENO" 5 ;;
30314        *)   DEFAULT_AUDIOSRC="${withval}" ;;
30315      esac
30316
30317else
30318
30319      DEFAULT_AUDIOSRC="$DEFAULT_AUDIOSRC"
30320
30321fi
30322
30323  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_AUDIOSRC as default audio source" >&5
30324$as_echo "$as_me: Using $DEFAULT_AUDIOSRC as default audio source" >&6;}
30325
30326
30327cat >>confdefs.h <<_ACEOF
30328#define DEFAULT_AUDIOSRC "$DEFAULT_AUDIOSRC"
30329_ACEOF
30330
30331
30332
30333# Check whether --with-default-videosink was given.
30334if test "${with_default_videosink+set}" = set; then :
30335  withval=$with_default_videosink;
30336      case "${withval}" in
30337        yes) as_fn_error $? "bad value ${withval} for --with-default-videosink" "$LINENO" 5 ;;
30338        no)  as_fn_error $? "bad value ${withval} for --with-default-videosink" "$LINENO" 5 ;;
30339        *)   DEFAULT_VIDEOSINK="${withval}" ;;
30340      esac
30341
30342else
30343
30344      DEFAULT_VIDEOSINK="$DEFAULT_VIDEOSINK"
30345
30346fi
30347
30348  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VIDEOSINK as default video sink" >&5
30349$as_echo "$as_me: Using $DEFAULT_VIDEOSINK as default video sink" >&6;}
30350
30351
30352cat >>confdefs.h <<_ACEOF
30353#define DEFAULT_VIDEOSINK "$DEFAULT_VIDEOSINK"
30354_ACEOF
30355
30356
30357
30358# Check whether --with-default-videosrc was given.
30359if test "${with_default_videosrc+set}" = set; then :
30360  withval=$with_default_videosrc;
30361      case "${withval}" in
30362        yes) as_fn_error $? "bad value ${withval} for --with-default-videosrc" "$LINENO" 5 ;;
30363        no)  as_fn_error $? "bad value ${withval} for --with-default-videosrc" "$LINENO" 5 ;;
30364        *)   DEFAULT_VIDEOSRC="${withval}" ;;
30365      esac
30366
30367else
30368
30369      DEFAULT_VIDEOSRC="$DEFAULT_VIDEOSRC"
30370
30371fi
30372
30373  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VIDEOSRC as default video source" >&5
30374$as_echo "$as_me: Using $DEFAULT_VIDEOSRC as default video source" >&6;}
30375
30376
30377cat >>confdefs.h <<_ACEOF
30378#define DEFAULT_VIDEOSRC "$DEFAULT_VIDEOSRC"
30379_ACEOF
30380
30381
30382
30383# Check whether --with-default-visualizer was given.
30384if test "${with_default_visualizer+set}" = set; then :
30385  withval=$with_default_visualizer;
30386      case "${withval}" in
30387        yes) as_fn_error $? "bad value ${withval} for --with-default-visualizer" "$LINENO" 5 ;;
30388        no)  as_fn_error $? "bad value ${withval} for --with-default-visualizer" "$LINENO" 5 ;;
30389        *)   DEFAULT_VISUALIZER="${withval}" ;;
30390      esac
30391
30392else
30393
30394      DEFAULT_VISUALIZER="$DEFAULT_VISUALIZER"
30395
30396fi
30397
30398  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $DEFAULT_VISUALIZER as default visualizer" >&5
30399$as_echo "$as_me: Using $DEFAULT_VISUALIZER as default visualizer" >&6;}
30400
30401
30402cat >>confdefs.h <<_ACEOF
30403#define DEFAULT_VISUALIZER "$DEFAULT_VISUALIZER"
30404_ACEOF
30405
30406
30407
30408
30409
30410  GST_PLUGINS_ALL="$GST_PLUGINS_ALL accurip"
30411
30412
30413
30414  # Check whether --enable-accurip was given.
30415if test "${enable_accurip+set}" = set; then :
30416  enableval=$enable_accurip;
30417      case "${enableval}" in
30418        yes) gst_use_accurip=yes ;;
30419        no) gst_use_accurip=no ;;
30420        *) as_fn_error $? "bad value ${enableval} for --enable-accurip" "$LINENO" 5 ;;
30421       esac
30422
30423else
30424  gst_use_accurip=yes
30425fi
30426
30427  if test x$gst_use_accurip = xno; then
30428    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin accurip" >&5
30429$as_echo "$as_me: disabling dependency-less plugin accurip" >&6;}
30430    WITHOUT_PLUGINS="$WITHOUT_PLUGINS accurip"
30431  fi
30432
30433
30434    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " accurip " > /dev/null; then
30435    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED accurip"
30436  fi
30437    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " accurip " > /dev/null; then
30438    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ accurip / /'`
30439  fi
30440    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " accurip " > /dev/null; then
30441    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ accurip / /'`
30442  fi
30443   if echo " $GST_PLUGINS_SELECTED " | grep -i " accurip " > /dev/null; then
30444  USE_PLUGIN_ACCURIP_TRUE=
30445  USE_PLUGIN_ACCURIP_FALSE='#'
30446else
30447  USE_PLUGIN_ACCURIP_TRUE='#'
30448  USE_PLUGIN_ACCURIP_FALSE=
30449fi
30450
30451
30452
30453  GST_PLUGINS_ALL="$GST_PLUGINS_ALL adpcmdec"
30454
30455
30456
30457  # Check whether --enable-adpcmdec was given.
30458if test "${enable_adpcmdec+set}" = set; then :
30459  enableval=$enable_adpcmdec;
30460      case "${enableval}" in
30461        yes) gst_use_adpcmdec=yes ;;
30462        no) gst_use_adpcmdec=no ;;
30463        *) as_fn_error $? "bad value ${enableval} for --enable-adpcmdec" "$LINENO" 5 ;;
30464       esac
30465
30466else
30467  gst_use_adpcmdec=yes
30468fi
30469
30470  if test x$gst_use_adpcmdec = xno; then
30471    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin adpcmdec" >&5
30472$as_echo "$as_me: disabling dependency-less plugin adpcmdec" >&6;}
30473    WITHOUT_PLUGINS="$WITHOUT_PLUGINS adpcmdec"
30474  fi
30475
30476
30477    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " adpcmdec " > /dev/null; then
30478    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED adpcmdec"
30479  fi
30480    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " adpcmdec " > /dev/null; then
30481    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adpcmdec / /'`
30482  fi
30483    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " adpcmdec " > /dev/null; then
30484    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adpcmdec / /'`
30485  fi
30486   if echo " $GST_PLUGINS_SELECTED " | grep -i " adpcmdec " > /dev/null; then
30487  USE_PLUGIN_ADPCMDEC_TRUE=
30488  USE_PLUGIN_ADPCMDEC_FALSE='#'
30489else
30490  USE_PLUGIN_ADPCMDEC_TRUE='#'
30491  USE_PLUGIN_ADPCMDEC_FALSE=
30492fi
30493
30494
30495
30496  GST_PLUGINS_ALL="$GST_PLUGINS_ALL adpcmenc"
30497
30498
30499
30500  # Check whether --enable-adpcmenc was given.
30501if test "${enable_adpcmenc+set}" = set; then :
30502  enableval=$enable_adpcmenc;
30503      case "${enableval}" in
30504        yes) gst_use_adpcmenc=yes ;;
30505        no) gst_use_adpcmenc=no ;;
30506        *) as_fn_error $? "bad value ${enableval} for --enable-adpcmenc" "$LINENO" 5 ;;
30507       esac
30508
30509else
30510  gst_use_adpcmenc=yes
30511fi
30512
30513  if test x$gst_use_adpcmenc = xno; then
30514    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin adpcmenc" >&5
30515$as_echo "$as_me: disabling dependency-less plugin adpcmenc" >&6;}
30516    WITHOUT_PLUGINS="$WITHOUT_PLUGINS adpcmenc"
30517  fi
30518
30519
30520    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " adpcmenc " > /dev/null; then
30521    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED adpcmenc"
30522  fi
30523    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " adpcmenc " > /dev/null; then
30524    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adpcmenc / /'`
30525  fi
30526    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " adpcmenc " > /dev/null; then
30527    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ adpcmenc / /'`
30528  fi
30529   if echo " $GST_PLUGINS_SELECTED " | grep -i " adpcmenc " > /dev/null; then
30530  USE_PLUGIN_ADPCMENC_TRUE=
30531  USE_PLUGIN_ADPCMENC_FALSE='#'
30532else
30533  USE_PLUGIN_ADPCMENC_TRUE='#'
30534  USE_PLUGIN_ADPCMENC_FALSE=
30535fi
30536
30537
30538
30539  GST_PLUGINS_ALL="$GST_PLUGINS_ALL aiff"
30540
30541
30542
30543  # Check whether --enable-aiff was given.
30544if test "${enable_aiff+set}" = set; then :
30545  enableval=$enable_aiff;
30546      case "${enableval}" in
30547        yes) gst_use_aiff=yes ;;
30548        no) gst_use_aiff=no ;;
30549        *) as_fn_error $? "bad value ${enableval} for --enable-aiff" "$LINENO" 5 ;;
30550       esac
30551
30552else
30553  gst_use_aiff=yes
30554fi
30555
30556  if test x$gst_use_aiff = xno; then
30557    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin aiff" >&5
30558$as_echo "$as_me: disabling dependency-less plugin aiff" >&6;}
30559    WITHOUT_PLUGINS="$WITHOUT_PLUGINS aiff"
30560  fi
30561
30562
30563    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " aiff " > /dev/null; then
30564    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED aiff"
30565  fi
30566    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " aiff " > /dev/null; then
30567    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ aiff / /'`
30568  fi
30569    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " aiff " > /dev/null; then
30570    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ aiff / /'`
30571  fi
30572   if echo " $GST_PLUGINS_SELECTED " | grep -i " aiff " > /dev/null; then
30573  USE_PLUGIN_AIFF_TRUE=
30574  USE_PLUGIN_AIFF_FALSE='#'
30575else
30576  USE_PLUGIN_AIFF_TRUE='#'
30577  USE_PLUGIN_AIFF_FALSE=
30578fi
30579
30580
30581
30582  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videoframe_audiolevel"
30583
30584
30585
30586  # Check whether --enable-videoframe_audiolevel was given.
30587if test "${enable_videoframe_audiolevel+set}" = set; then :
30588  enableval=$enable_videoframe_audiolevel;
30589      case "${enableval}" in
30590        yes) gst_use_videoframe_audiolevel=yes ;;
30591        no) gst_use_videoframe_audiolevel=no ;;
30592        *) as_fn_error $? "bad value ${enableval} for --enable-videoframe_audiolevel" "$LINENO" 5 ;;
30593       esac
30594
30595else
30596  gst_use_videoframe_audiolevel=yes
30597fi
30598
30599  if test x$gst_use_videoframe_audiolevel = xno; then
30600    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videoframe_audiolevel" >&5
30601$as_echo "$as_me: disabling dependency-less plugin videoframe_audiolevel" >&6;}
30602    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videoframe_audiolevel"
30603  fi
30604
30605
30606    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videoframe_audiolevel " > /dev/null; then
30607    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videoframe_audiolevel"
30608  fi
30609    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videoframe_audiolevel " > /dev/null; then
30610    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoframe_audiolevel / /'`
30611  fi
30612    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videoframe_audiolevel " > /dev/null; then
30613    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoframe_audiolevel / /'`
30614  fi
30615   if echo " $GST_PLUGINS_SELECTED " | grep -i " videoframe_audiolevel " > /dev/null; then
30616  USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_TRUE=
30617  USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_FALSE='#'
30618else
30619  USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_TRUE='#'
30620  USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_FALSE=
30621fi
30622
30623
30624
30625  GST_PLUGINS_ALL="$GST_PLUGINS_ALL asfmux"
30626
30627
30628
30629  # Check whether --enable-asfmux was given.
30630if test "${enable_asfmux+set}" = set; then :
30631  enableval=$enable_asfmux;
30632      case "${enableval}" in
30633        yes) gst_use_asfmux=yes ;;
30634        no) gst_use_asfmux=no ;;
30635        *) as_fn_error $? "bad value ${enableval} for --enable-asfmux" "$LINENO" 5 ;;
30636       esac
30637
30638else
30639  gst_use_asfmux=yes
30640fi
30641
30642  if test x$gst_use_asfmux = xno; then
30643    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin asfmux" >&5
30644$as_echo "$as_me: disabling dependency-less plugin asfmux" >&6;}
30645    WITHOUT_PLUGINS="$WITHOUT_PLUGINS asfmux"
30646  fi
30647
30648
30649    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " asfmux " > /dev/null; then
30650    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED asfmux"
30651  fi
30652    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " asfmux " > /dev/null; then
30653    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ asfmux / /'`
30654  fi
30655    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " asfmux " > /dev/null; then
30656    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ asfmux / /'`
30657  fi
30658   if echo " $GST_PLUGINS_SELECTED " | grep -i " asfmux " > /dev/null; then
30659  USE_PLUGIN_ASFMUX_TRUE=
30660  USE_PLUGIN_ASFMUX_FALSE='#'
30661else
30662  USE_PLUGIN_ASFMUX_TRUE='#'
30663  USE_PLUGIN_ASFMUX_FALSE=
30664fi
30665
30666
30667
30668  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiobuffersplit"
30669
30670
30671
30672  # Check whether --enable-audiobuffersplit was given.
30673if test "${enable_audiobuffersplit+set}" = set; then :
30674  enableval=$enable_audiobuffersplit;
30675      case "${enableval}" in
30676        yes) gst_use_audiobuffersplit=yes ;;
30677        no) gst_use_audiobuffersplit=no ;;
30678        *) as_fn_error $? "bad value ${enableval} for --enable-audiobuffersplit" "$LINENO" 5 ;;
30679       esac
30680
30681else
30682  gst_use_audiobuffersplit=yes
30683fi
30684
30685  if test x$gst_use_audiobuffersplit = xno; then
30686    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiobuffersplit" >&5
30687$as_echo "$as_me: disabling dependency-less plugin audiobuffersplit" >&6;}
30688    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiobuffersplit"
30689  fi
30690
30691
30692    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiobuffersplit " > /dev/null; then
30693    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiobuffersplit"
30694  fi
30695    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiobuffersplit " > /dev/null; then
30696    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiobuffersplit / /'`
30697  fi
30698    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiobuffersplit " > /dev/null; then
30699    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiobuffersplit / /'`
30700  fi
30701   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiobuffersplit " > /dev/null; then
30702  USE_PLUGIN_AUDIOBUFFERSPLIT_TRUE=
30703  USE_PLUGIN_AUDIOBUFFERSPLIT_FALSE='#'
30704else
30705  USE_PLUGIN_AUDIOBUFFERSPLIT_TRUE='#'
30706  USE_PLUGIN_AUDIOBUFFERSPLIT_FALSE=
30707fi
30708
30709
30710
30711  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiofxbad"
30712
30713
30714
30715  # Check whether --enable-audiofxbad was given.
30716if test "${enable_audiofxbad+set}" = set; then :
30717  enableval=$enable_audiofxbad;
30718      case "${enableval}" in
30719        yes) gst_use_audiofxbad=yes ;;
30720        no) gst_use_audiofxbad=no ;;
30721        *) as_fn_error $? "bad value ${enableval} for --enable-audiofxbad" "$LINENO" 5 ;;
30722       esac
30723
30724else
30725  gst_use_audiofxbad=yes
30726fi
30727
30728  if test x$gst_use_audiofxbad = xno; then
30729    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiofxbad" >&5
30730$as_echo "$as_me: disabling dependency-less plugin audiofxbad" >&6;}
30731    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiofxbad"
30732  fi
30733
30734
30735    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiofxbad " > /dev/null; then
30736    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiofxbad"
30737  fi
30738    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiofxbad " > /dev/null; then
30739    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiofxbad / /'`
30740  fi
30741    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiofxbad " > /dev/null; then
30742    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiofxbad / /'`
30743  fi
30744   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiofxbad " > /dev/null; then
30745  USE_PLUGIN_AUDIOFXBAD_TRUE=
30746  USE_PLUGIN_AUDIOFXBAD_FALSE='#'
30747else
30748  USE_PLUGIN_AUDIOFXBAD_TRUE='#'
30749  USE_PLUGIN_AUDIOFXBAD_FALSE=
30750fi
30751
30752
30753
30754  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiolatency"
30755
30756
30757
30758  # Check whether --enable-audiolatency was given.
30759if test "${enable_audiolatency+set}" = set; then :
30760  enableval=$enable_audiolatency;
30761      case "${enableval}" in
30762        yes) gst_use_audiolatency=yes ;;
30763        no) gst_use_audiolatency=no ;;
30764        *) as_fn_error $? "bad value ${enableval} for --enable-audiolatency" "$LINENO" 5 ;;
30765       esac
30766
30767else
30768  gst_use_audiolatency=yes
30769fi
30770
30771  if test x$gst_use_audiolatency = xno; then
30772    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiolatency" >&5
30773$as_echo "$as_me: disabling dependency-less plugin audiolatency" >&6;}
30774    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiolatency"
30775  fi
30776
30777
30778    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiolatency " > /dev/null; then
30779    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiolatency"
30780  fi
30781    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiolatency " > /dev/null; then
30782    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiolatency / /'`
30783  fi
30784    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiolatency " > /dev/null; then
30785    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiolatency / /'`
30786  fi
30787   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiolatency " > /dev/null; then
30788  USE_PLUGIN_AUDIOLATENCY_TRUE=
30789  USE_PLUGIN_AUDIOLATENCY_FALSE='#'
30790else
30791  USE_PLUGIN_AUDIOLATENCY_TRUE='#'
30792  USE_PLUGIN_AUDIOLATENCY_FALSE=
30793fi
30794
30795
30796
30797  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiomixmatrix"
30798
30799
30800
30801  # Check whether --enable-audiomixmatrix was given.
30802if test "${enable_audiomixmatrix+set}" = set; then :
30803  enableval=$enable_audiomixmatrix;
30804      case "${enableval}" in
30805        yes) gst_use_audiomixmatrix=yes ;;
30806        no) gst_use_audiomixmatrix=no ;;
30807        *) as_fn_error $? "bad value ${enableval} for --enable-audiomixmatrix" "$LINENO" 5 ;;
30808       esac
30809
30810else
30811  gst_use_audiomixmatrix=yes
30812fi
30813
30814  if test x$gst_use_audiomixmatrix = xno; then
30815    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiomixmatrix" >&5
30816$as_echo "$as_me: disabling dependency-less plugin audiomixmatrix" >&6;}
30817    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiomixmatrix"
30818  fi
30819
30820
30821    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiomixmatrix " > /dev/null; then
30822    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiomixmatrix"
30823  fi
30824    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiomixmatrix " > /dev/null; then
30825    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiomixmatrix / /'`
30826  fi
30827    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiomixmatrix " > /dev/null; then
30828    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiomixmatrix / /'`
30829  fi
30830   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiomixmatrix " > /dev/null; then
30831  USE_PLUGIN_AUDIOMIXMATRIX_TRUE=
30832  USE_PLUGIN_AUDIOMIXMATRIX_FALSE='#'
30833else
30834  USE_PLUGIN_AUDIOMIXMATRIX_TRUE='#'
30835  USE_PLUGIN_AUDIOMIXMATRIX_FALSE=
30836fi
30837
30838
30839
30840  GST_PLUGINS_ALL="$GST_PLUGINS_ALL audiovisualizers"
30841
30842
30843
30844  # Check whether --enable-audiovisualizers was given.
30845if test "${enable_audiovisualizers+set}" = set; then :
30846  enableval=$enable_audiovisualizers;
30847      case "${enableval}" in
30848        yes) gst_use_audiovisualizers=yes ;;
30849        no) gst_use_audiovisualizers=no ;;
30850        *) as_fn_error $? "bad value ${enableval} for --enable-audiovisualizers" "$LINENO" 5 ;;
30851       esac
30852
30853else
30854  gst_use_audiovisualizers=yes
30855fi
30856
30857  if test x$gst_use_audiovisualizers = xno; then
30858    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin audiovisualizers" >&5
30859$as_echo "$as_me: disabling dependency-less plugin audiovisualizers" >&6;}
30860    WITHOUT_PLUGINS="$WITHOUT_PLUGINS audiovisualizers"
30861  fi
30862
30863
30864    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " audiovisualizers " > /dev/null; then
30865    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED audiovisualizers"
30866  fi
30867    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " audiovisualizers " > /dev/null; then
30868    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiovisualizers / /'`
30869  fi
30870    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " audiovisualizers " > /dev/null; then
30871    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ audiovisualizers / /'`
30872  fi
30873   if echo " $GST_PLUGINS_SELECTED " | grep -i " audiovisualizers " > /dev/null; then
30874  USE_PLUGIN_AUDIOVISUALIZERS_TRUE=
30875  USE_PLUGIN_AUDIOVISUALIZERS_FALSE='#'
30876else
30877  USE_PLUGIN_AUDIOVISUALIZERS_TRUE='#'
30878  USE_PLUGIN_AUDIOVISUALIZERS_FALSE=
30879fi
30880
30881
30882
30883  GST_PLUGINS_ALL="$GST_PLUGINS_ALL autoconvert"
30884
30885
30886
30887  # Check whether --enable-autoconvert was given.
30888if test "${enable_autoconvert+set}" = set; then :
30889  enableval=$enable_autoconvert;
30890      case "${enableval}" in
30891        yes) gst_use_autoconvert=yes ;;
30892        no) gst_use_autoconvert=no ;;
30893        *) as_fn_error $? "bad value ${enableval} for --enable-autoconvert" "$LINENO" 5 ;;
30894       esac
30895
30896else
30897  gst_use_autoconvert=yes
30898fi
30899
30900  if test x$gst_use_autoconvert = xno; then
30901    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin autoconvert" >&5
30902$as_echo "$as_me: disabling dependency-less plugin autoconvert" >&6;}
30903    WITHOUT_PLUGINS="$WITHOUT_PLUGINS autoconvert"
30904  fi
30905
30906
30907    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " autoconvert " > /dev/null; then
30908    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED autoconvert"
30909  fi
30910    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " autoconvert " > /dev/null; then
30911    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ autoconvert / /'`
30912  fi
30913    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " autoconvert " > /dev/null; then
30914    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ autoconvert / /'`
30915  fi
30916   if echo " $GST_PLUGINS_SELECTED " | grep -i " autoconvert " > /dev/null; then
30917  USE_PLUGIN_AUTOCONVERT_TRUE=
30918  USE_PLUGIN_AUTOCONVERT_FALSE='#'
30919else
30920  USE_PLUGIN_AUTOCONVERT_TRUE='#'
30921  USE_PLUGIN_AUTOCONVERT_FALSE=
30922fi
30923
30924
30925
30926  GST_PLUGINS_ALL="$GST_PLUGINS_ALL bayer"
30927
30928
30929
30930  # Check whether --enable-bayer was given.
30931if test "${enable_bayer+set}" = set; then :
30932  enableval=$enable_bayer;
30933      case "${enableval}" in
30934        yes) gst_use_bayer=yes ;;
30935        no) gst_use_bayer=no ;;
30936        *) as_fn_error $? "bad value ${enableval} for --enable-bayer" "$LINENO" 5 ;;
30937       esac
30938
30939else
30940  gst_use_bayer=yes
30941fi
30942
30943  if test x$gst_use_bayer = xno; then
30944    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin bayer" >&5
30945$as_echo "$as_me: disabling dependency-less plugin bayer" >&6;}
30946    WITHOUT_PLUGINS="$WITHOUT_PLUGINS bayer"
30947  fi
30948
30949
30950    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " bayer " > /dev/null; then
30951    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED bayer"
30952  fi
30953    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " bayer " > /dev/null; then
30954    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ bayer / /'`
30955  fi
30956    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " bayer " > /dev/null; then
30957    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ bayer / /'`
30958  fi
30959   if echo " $GST_PLUGINS_SELECTED " | grep -i " bayer " > /dev/null; then
30960  USE_PLUGIN_BAYER_TRUE=
30961  USE_PLUGIN_BAYER_FALSE='#'
30962else
30963  USE_PLUGIN_BAYER_TRUE='#'
30964  USE_PLUGIN_BAYER_FALSE=
30965fi
30966
30967
30968
30969  GST_PLUGINS_ALL="$GST_PLUGINS_ALL camerabin2"
30970
30971
30972
30973  # Check whether --enable-camerabin2 was given.
30974if test "${enable_camerabin2+set}" = set; then :
30975  enableval=$enable_camerabin2;
30976      case "${enableval}" in
30977        yes) gst_use_camerabin2=yes ;;
30978        no) gst_use_camerabin2=no ;;
30979        *) as_fn_error $? "bad value ${enableval} for --enable-camerabin2" "$LINENO" 5 ;;
30980       esac
30981
30982else
30983  gst_use_camerabin2=yes
30984fi
30985
30986  if test x$gst_use_camerabin2 = xno; then
30987    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin camerabin2" >&5
30988$as_echo "$as_me: disabling dependency-less plugin camerabin2" >&6;}
30989    WITHOUT_PLUGINS="$WITHOUT_PLUGINS camerabin2"
30990  fi
30991
30992
30993    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " camerabin2 " > /dev/null; then
30994    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED camerabin2"
30995  fi
30996    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " camerabin2 " > /dev/null; then
30997    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ camerabin2 / /'`
30998  fi
30999    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " camerabin2 " > /dev/null; then
31000    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ camerabin2 / /'`
31001  fi
31002   if echo " $GST_PLUGINS_SELECTED " | grep -i " camerabin2 " > /dev/null; then
31003  USE_PLUGIN_CAMERABIN2_TRUE=
31004  USE_PLUGIN_CAMERABIN2_FALSE='#'
31005else
31006  USE_PLUGIN_CAMERABIN2_TRUE='#'
31007  USE_PLUGIN_CAMERABIN2_FALSE=
31008fi
31009
31010
31011
31012  GST_PLUGINS_ALL="$GST_PLUGINS_ALL coloreffects"
31013
31014
31015
31016  # Check whether --enable-coloreffects was given.
31017if test "${enable_coloreffects+set}" = set; then :
31018  enableval=$enable_coloreffects;
31019      case "${enableval}" in
31020        yes) gst_use_coloreffects=yes ;;
31021        no) gst_use_coloreffects=no ;;
31022        *) as_fn_error $? "bad value ${enableval} for --enable-coloreffects" "$LINENO" 5 ;;
31023       esac
31024
31025else
31026  gst_use_coloreffects=yes
31027fi
31028
31029  if test x$gst_use_coloreffects = xno; then
31030    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin coloreffects" >&5
31031$as_echo "$as_me: disabling dependency-less plugin coloreffects" >&6;}
31032    WITHOUT_PLUGINS="$WITHOUT_PLUGINS coloreffects"
31033  fi
31034
31035
31036    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " coloreffects " > /dev/null; then
31037    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED coloreffects"
31038  fi
31039    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " coloreffects " > /dev/null; then
31040    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ coloreffects / /'`
31041  fi
31042    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " coloreffects " > /dev/null; then
31043    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ coloreffects / /'`
31044  fi
31045   if echo " $GST_PLUGINS_SELECTED " | grep -i " coloreffects " > /dev/null; then
31046  USE_PLUGIN_COLOREFFECTS_TRUE=
31047  USE_PLUGIN_COLOREFFECTS_FALSE='#'
31048else
31049  USE_PLUGIN_COLOREFFECTS_TRUE='#'
31050  USE_PLUGIN_COLOREFFECTS_FALSE=
31051fi
31052
31053
31054
31055  GST_PLUGINS_ALL="$GST_PLUGINS_ALL debugutils"
31056
31057
31058
31059  # Check whether --enable-debugutils was given.
31060if test "${enable_debugutils+set}" = set; then :
31061  enableval=$enable_debugutils;
31062      case "${enableval}" in
31063        yes) gst_use_debugutils=yes ;;
31064        no) gst_use_debugutils=no ;;
31065        *) as_fn_error $? "bad value ${enableval} for --enable-debugutils" "$LINENO" 5 ;;
31066       esac
31067
31068else
31069  gst_use_debugutils=yes
31070fi
31071
31072  if test x$gst_use_debugutils = xno; then
31073    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin debugutils" >&5
31074$as_echo "$as_me: disabling dependency-less plugin debugutils" >&6;}
31075    WITHOUT_PLUGINS="$WITHOUT_PLUGINS debugutils"
31076  fi
31077
31078
31079    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " debugutils " > /dev/null; then
31080    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED debugutils"
31081  fi
31082    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " debugutils " > /dev/null; then
31083    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ debugutils / /'`
31084  fi
31085    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " debugutils " > /dev/null; then
31086    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ debugutils / /'`
31087  fi
31088   if echo " $GST_PLUGINS_SELECTED " | grep -i " debugutils " > /dev/null; then
31089  USE_PLUGIN_DEBUGUTILS_TRUE=
31090  USE_PLUGIN_DEBUGUTILS_FALSE='#'
31091else
31092  USE_PLUGIN_DEBUGUTILS_TRUE='#'
31093  USE_PLUGIN_DEBUGUTILS_FALSE=
31094fi
31095
31096
31097
31098  GST_PLUGINS_ALL="$GST_PLUGINS_ALL dvbsuboverlay"
31099
31100
31101
31102  # Check whether --enable-dvbsuboverlay was given.
31103if test "${enable_dvbsuboverlay+set}" = set; then :
31104  enableval=$enable_dvbsuboverlay;
31105      case "${enableval}" in
31106        yes) gst_use_dvbsuboverlay=yes ;;
31107        no) gst_use_dvbsuboverlay=no ;;
31108        *) as_fn_error $? "bad value ${enableval} for --enable-dvbsuboverlay" "$LINENO" 5 ;;
31109       esac
31110
31111else
31112  gst_use_dvbsuboverlay=yes
31113fi
31114
31115  if test x$gst_use_dvbsuboverlay = xno; then
31116    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin dvbsuboverlay" >&5
31117$as_echo "$as_me: disabling dependency-less plugin dvbsuboverlay" >&6;}
31118    WITHOUT_PLUGINS="$WITHOUT_PLUGINS dvbsuboverlay"
31119  fi
31120
31121
31122    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " dvbsuboverlay " > /dev/null; then
31123    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED dvbsuboverlay"
31124  fi
31125    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " dvbsuboverlay " > /dev/null; then
31126    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ dvbsuboverlay / /'`
31127  fi
31128    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " dvbsuboverlay " > /dev/null; then
31129    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ dvbsuboverlay / /'`
31130  fi
31131   if echo " $GST_PLUGINS_SELECTED " | grep -i " dvbsuboverlay " > /dev/null; then
31132  USE_PLUGIN_DVBSUBOVERLAY_TRUE=
31133  USE_PLUGIN_DVBSUBOVERLAY_FALSE='#'
31134else
31135  USE_PLUGIN_DVBSUBOVERLAY_TRUE='#'
31136  USE_PLUGIN_DVBSUBOVERLAY_FALSE=
31137fi
31138
31139
31140
31141  GST_PLUGINS_ALL="$GST_PLUGINS_ALL dvdspu"
31142
31143
31144
31145  # Check whether --enable-dvdspu was given.
31146if test "${enable_dvdspu+set}" = set; then :
31147  enableval=$enable_dvdspu;
31148      case "${enableval}" in
31149        yes) gst_use_dvdspu=yes ;;
31150        no) gst_use_dvdspu=no ;;
31151        *) as_fn_error $? "bad value ${enableval} for --enable-dvdspu" "$LINENO" 5 ;;
31152       esac
31153
31154else
31155  gst_use_dvdspu=yes
31156fi
31157
31158  if test x$gst_use_dvdspu = xno; then
31159    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin dvdspu" >&5
31160$as_echo "$as_me: disabling dependency-less plugin dvdspu" >&6;}
31161    WITHOUT_PLUGINS="$WITHOUT_PLUGINS dvdspu"
31162  fi
31163
31164
31165    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " dvdspu " > /dev/null; then
31166    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED dvdspu"
31167  fi
31168    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " dvdspu " > /dev/null; then
31169    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ dvdspu / /'`
31170  fi
31171    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " dvdspu " > /dev/null; then
31172    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ dvdspu / /'`
31173  fi
31174   if echo " $GST_PLUGINS_SELECTED " | grep -i " dvdspu " > /dev/null; then
31175  USE_PLUGIN_DVDSPU_TRUE=
31176  USE_PLUGIN_DVDSPU_FALSE='#'
31177else
31178  USE_PLUGIN_DVDSPU_TRUE='#'
31179  USE_PLUGIN_DVDSPU_FALSE=
31180fi
31181
31182
31183
31184  GST_PLUGINS_ALL="$GST_PLUGINS_ALL faceoverlay"
31185
31186
31187
31188  # Check whether --enable-faceoverlay was given.
31189if test "${enable_faceoverlay+set}" = set; then :
31190  enableval=$enable_faceoverlay;
31191      case "${enableval}" in
31192        yes) gst_use_faceoverlay=yes ;;
31193        no) gst_use_faceoverlay=no ;;
31194        *) as_fn_error $? "bad value ${enableval} for --enable-faceoverlay" "$LINENO" 5 ;;
31195       esac
31196
31197else
31198  gst_use_faceoverlay=yes
31199fi
31200
31201  if test x$gst_use_faceoverlay = xno; then
31202    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin faceoverlay" >&5
31203$as_echo "$as_me: disabling dependency-less plugin faceoverlay" >&6;}
31204    WITHOUT_PLUGINS="$WITHOUT_PLUGINS faceoverlay"
31205  fi
31206
31207
31208    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " faceoverlay " > /dev/null; then
31209    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED faceoverlay"
31210  fi
31211    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " faceoverlay " > /dev/null; then
31212    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ faceoverlay / /'`
31213  fi
31214    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " faceoverlay " > /dev/null; then
31215    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ faceoverlay / /'`
31216  fi
31217   if echo " $GST_PLUGINS_SELECTED " | grep -i " faceoverlay " > /dev/null; then
31218  USE_PLUGIN_FACEOVERLAY_TRUE=
31219  USE_PLUGIN_FACEOVERLAY_FALSE='#'
31220else
31221  USE_PLUGIN_FACEOVERLAY_TRUE='#'
31222  USE_PLUGIN_FACEOVERLAY_FALSE=
31223fi
31224
31225
31226
31227  GST_PLUGINS_ALL="$GST_PLUGINS_ALL festival"
31228
31229
31230
31231  # Check whether --enable-festival was given.
31232if test "${enable_festival+set}" = set; then :
31233  enableval=$enable_festival;
31234      case "${enableval}" in
31235        yes) gst_use_festival=yes ;;
31236        no) gst_use_festival=no ;;
31237        *) as_fn_error $? "bad value ${enableval} for --enable-festival" "$LINENO" 5 ;;
31238       esac
31239
31240else
31241  gst_use_festival=yes
31242fi
31243
31244  if test x$gst_use_festival = xno; then
31245    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin festival" >&5
31246$as_echo "$as_me: disabling dependency-less plugin festival" >&6;}
31247    WITHOUT_PLUGINS="$WITHOUT_PLUGINS festival"
31248  fi
31249
31250
31251    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " festival " > /dev/null; then
31252    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED festival"
31253  fi
31254    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " festival " > /dev/null; then
31255    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ festival / /'`
31256  fi
31257    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " festival " > /dev/null; then
31258    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ festival / /'`
31259  fi
31260   if echo " $GST_PLUGINS_SELECTED " | grep -i " festival " > /dev/null; then
31261  USE_PLUGIN_FESTIVAL_TRUE=
31262  USE_PLUGIN_FESTIVAL_FALSE='#'
31263else
31264  USE_PLUGIN_FESTIVAL_TRUE='#'
31265  USE_PLUGIN_FESTIVAL_FALSE=
31266fi
31267
31268
31269
31270  GST_PLUGINS_ALL="$GST_PLUGINS_ALL fieldanalysis"
31271
31272
31273
31274  # Check whether --enable-fieldanalysis was given.
31275if test "${enable_fieldanalysis+set}" = set; then :
31276  enableval=$enable_fieldanalysis;
31277      case "${enableval}" in
31278        yes) gst_use_fieldanalysis=yes ;;
31279        no) gst_use_fieldanalysis=no ;;
31280        *) as_fn_error $? "bad value ${enableval} for --enable-fieldanalysis" "$LINENO" 5 ;;
31281       esac
31282
31283else
31284  gst_use_fieldanalysis=yes
31285fi
31286
31287  if test x$gst_use_fieldanalysis = xno; then
31288    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin fieldanalysis" >&5
31289$as_echo "$as_me: disabling dependency-less plugin fieldanalysis" >&6;}
31290    WITHOUT_PLUGINS="$WITHOUT_PLUGINS fieldanalysis"
31291  fi
31292
31293
31294    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " fieldanalysis " > /dev/null; then
31295    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED fieldanalysis"
31296  fi
31297    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " fieldanalysis " > /dev/null; then
31298    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ fieldanalysis / /'`
31299  fi
31300    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " fieldanalysis " > /dev/null; then
31301    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ fieldanalysis / /'`
31302  fi
31303   if echo " $GST_PLUGINS_SELECTED " | grep -i " fieldanalysis " > /dev/null; then
31304  USE_PLUGIN_FIELDANALYSIS_TRUE=
31305  USE_PLUGIN_FIELDANALYSIS_FALSE='#'
31306else
31307  USE_PLUGIN_FIELDANALYSIS_TRUE='#'
31308  USE_PLUGIN_FIELDANALYSIS_FALSE=
31309fi
31310
31311
31312
31313  GST_PLUGINS_ALL="$GST_PLUGINS_ALL freeverb"
31314
31315
31316
31317  # Check whether --enable-freeverb was given.
31318if test "${enable_freeverb+set}" = set; then :
31319  enableval=$enable_freeverb;
31320      case "${enableval}" in
31321        yes) gst_use_freeverb=yes ;;
31322        no) gst_use_freeverb=no ;;
31323        *) as_fn_error $? "bad value ${enableval} for --enable-freeverb" "$LINENO" 5 ;;
31324       esac
31325
31326else
31327  gst_use_freeverb=yes
31328fi
31329
31330  if test x$gst_use_freeverb = xno; then
31331    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin freeverb" >&5
31332$as_echo "$as_me: disabling dependency-less plugin freeverb" >&6;}
31333    WITHOUT_PLUGINS="$WITHOUT_PLUGINS freeverb"
31334  fi
31335
31336
31337    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " freeverb " > /dev/null; then
31338    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED freeverb"
31339  fi
31340    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " freeverb " > /dev/null; then
31341    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ freeverb / /'`
31342  fi
31343    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " freeverb " > /dev/null; then
31344    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ freeverb / /'`
31345  fi
31346   if echo " $GST_PLUGINS_SELECTED " | grep -i " freeverb " > /dev/null; then
31347  USE_PLUGIN_FREEVERB_TRUE=
31348  USE_PLUGIN_FREEVERB_FALSE='#'
31349else
31350  USE_PLUGIN_FREEVERB_TRUE='#'
31351  USE_PLUGIN_FREEVERB_FALSE=
31352fi
31353
31354
31355
31356  GST_PLUGINS_ALL="$GST_PLUGINS_ALL frei0r"
31357
31358
31359
31360  # Check whether --enable-frei0r was given.
31361if test "${enable_frei0r+set}" = set; then :
31362  enableval=$enable_frei0r;
31363      case "${enableval}" in
31364        yes) gst_use_frei0r=yes ;;
31365        no) gst_use_frei0r=no ;;
31366        *) as_fn_error $? "bad value ${enableval} for --enable-frei0r" "$LINENO" 5 ;;
31367       esac
31368
31369else
31370  gst_use_frei0r=yes
31371fi
31372
31373  if test x$gst_use_frei0r = xno; then
31374    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin frei0r" >&5
31375$as_echo "$as_me: disabling dependency-less plugin frei0r" >&6;}
31376    WITHOUT_PLUGINS="$WITHOUT_PLUGINS frei0r"
31377  fi
31378
31379
31380    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " frei0r " > /dev/null; then
31381    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED frei0r"
31382  fi
31383    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " frei0r " > /dev/null; then
31384    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ frei0r / /'`
31385  fi
31386    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " frei0r " > /dev/null; then
31387    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ frei0r / /'`
31388  fi
31389   if echo " $GST_PLUGINS_SELECTED " | grep -i " frei0r " > /dev/null; then
31390  USE_PLUGIN_FREI0R_TRUE=
31391  USE_PLUGIN_FREI0R_FALSE='#'
31392else
31393  USE_PLUGIN_FREI0R_TRUE='#'
31394  USE_PLUGIN_FREI0R_FALSE=
31395fi
31396
31397
31398
31399  GST_PLUGINS_ALL="$GST_PLUGINS_ALL gaudieffects"
31400
31401
31402
31403  # Check whether --enable-gaudieffects was given.
31404if test "${enable_gaudieffects+set}" = set; then :
31405  enableval=$enable_gaudieffects;
31406      case "${enableval}" in
31407        yes) gst_use_gaudieffects=yes ;;
31408        no) gst_use_gaudieffects=no ;;
31409        *) as_fn_error $? "bad value ${enableval} for --enable-gaudieffects" "$LINENO" 5 ;;
31410       esac
31411
31412else
31413  gst_use_gaudieffects=yes
31414fi
31415
31416  if test x$gst_use_gaudieffects = xno; then
31417    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin gaudieffects" >&5
31418$as_echo "$as_me: disabling dependency-less plugin gaudieffects" >&6;}
31419    WITHOUT_PLUGINS="$WITHOUT_PLUGINS gaudieffects"
31420  fi
31421
31422
31423    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " gaudieffects " > /dev/null; then
31424    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED gaudieffects"
31425  fi
31426    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " gaudieffects " > /dev/null; then
31427    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gaudieffects / /'`
31428  fi
31429    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " gaudieffects " > /dev/null; then
31430    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gaudieffects / /'`
31431  fi
31432   if echo " $GST_PLUGINS_SELECTED " | grep -i " gaudieffects " > /dev/null; then
31433  USE_PLUGIN_GAUDIEFFECTS_TRUE=
31434  USE_PLUGIN_GAUDIEFFECTS_FALSE='#'
31435else
31436  USE_PLUGIN_GAUDIEFFECTS_TRUE='#'
31437  USE_PLUGIN_GAUDIEFFECTS_FALSE=
31438fi
31439
31440
31441
31442  GST_PLUGINS_ALL="$GST_PLUGINS_ALL geometrictransform"
31443
31444
31445
31446  # Check whether --enable-geometrictransform was given.
31447if test "${enable_geometrictransform+set}" = set; then :
31448  enableval=$enable_geometrictransform;
31449      case "${enableval}" in
31450        yes) gst_use_geometrictransform=yes ;;
31451        no) gst_use_geometrictransform=no ;;
31452        *) as_fn_error $? "bad value ${enableval} for --enable-geometrictransform" "$LINENO" 5 ;;
31453       esac
31454
31455else
31456  gst_use_geometrictransform=yes
31457fi
31458
31459  if test x$gst_use_geometrictransform = xno; then
31460    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin geometrictransform" >&5
31461$as_echo "$as_me: disabling dependency-less plugin geometrictransform" >&6;}
31462    WITHOUT_PLUGINS="$WITHOUT_PLUGINS geometrictransform"
31463  fi
31464
31465
31466    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " geometrictransform " > /dev/null; then
31467    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED geometrictransform"
31468  fi
31469    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " geometrictransform " > /dev/null; then
31470    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ geometrictransform / /'`
31471  fi
31472    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " geometrictransform " > /dev/null; then
31473    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ geometrictransform / /'`
31474  fi
31475   if echo " $GST_PLUGINS_SELECTED " | grep -i " geometrictransform " > /dev/null; then
31476  USE_PLUGIN_GEOMETRICTRANSFORM_TRUE=
31477  USE_PLUGIN_GEOMETRICTRANSFORM_FALSE='#'
31478else
31479  USE_PLUGIN_GEOMETRICTRANSFORM_TRUE='#'
31480  USE_PLUGIN_GEOMETRICTRANSFORM_FALSE=
31481fi
31482
31483
31484
31485  GST_PLUGINS_ALL="$GST_PLUGINS_ALL gdp"
31486
31487
31488
31489  # Check whether --enable-gdp was given.
31490if test "${enable_gdp+set}" = set; then :
31491  enableval=$enable_gdp;
31492      case "${enableval}" in
31493        yes) gst_use_gdp=yes ;;
31494        no) gst_use_gdp=no ;;
31495        *) as_fn_error $? "bad value ${enableval} for --enable-gdp" "$LINENO" 5 ;;
31496       esac
31497
31498else
31499  gst_use_gdp=yes
31500fi
31501
31502  if test x$gst_use_gdp = xno; then
31503    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin gdp" >&5
31504$as_echo "$as_me: disabling dependency-less plugin gdp" >&6;}
31505    WITHOUT_PLUGINS="$WITHOUT_PLUGINS gdp"
31506  fi
31507
31508
31509    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " gdp " > /dev/null; then
31510    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED gdp"
31511  fi
31512    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " gdp " > /dev/null; then
31513    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gdp / /'`
31514  fi
31515    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " gdp " > /dev/null; then
31516    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ gdp / /'`
31517  fi
31518   if echo " $GST_PLUGINS_SELECTED " | grep -i " gdp " > /dev/null; then
31519  USE_PLUGIN_GDP_TRUE=
31520  USE_PLUGIN_GDP_FALSE='#'
31521else
31522  USE_PLUGIN_GDP_TRUE='#'
31523  USE_PLUGIN_GDP_FALSE=
31524fi
31525
31526
31527
31528  GST_PLUGINS_ALL="$GST_PLUGINS_ALL id3tag"
31529
31530
31531
31532  # Check whether --enable-id3tag was given.
31533if test "${enable_id3tag+set}" = set; then :
31534  enableval=$enable_id3tag;
31535      case "${enableval}" in
31536        yes) gst_use_id3tag=yes ;;
31537        no) gst_use_id3tag=no ;;
31538        *) as_fn_error $? "bad value ${enableval} for --enable-id3tag" "$LINENO" 5 ;;
31539       esac
31540
31541else
31542  gst_use_id3tag=yes
31543fi
31544
31545  if test x$gst_use_id3tag = xno; then
31546    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin id3tag" >&5
31547$as_echo "$as_me: disabling dependency-less plugin id3tag" >&6;}
31548    WITHOUT_PLUGINS="$WITHOUT_PLUGINS id3tag"
31549  fi
31550
31551
31552    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " id3tag " > /dev/null; then
31553    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED id3tag"
31554  fi
31555    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " id3tag " > /dev/null; then
31556    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ id3tag / /'`
31557  fi
31558    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " id3tag " > /dev/null; then
31559    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ id3tag / /'`
31560  fi
31561   if echo " $GST_PLUGINS_SELECTED " | grep -i " id3tag " > /dev/null; then
31562  USE_PLUGIN_ID3TAG_TRUE=
31563  USE_PLUGIN_ID3TAG_FALSE='#'
31564else
31565  USE_PLUGIN_ID3TAG_TRUE='#'
31566  USE_PLUGIN_ID3TAG_FALSE=
31567fi
31568
31569
31570
31571  GST_PLUGINS_ALL="$GST_PLUGINS_ALL inter"
31572
31573
31574
31575  # Check whether --enable-inter was given.
31576if test "${enable_inter+set}" = set; then :
31577  enableval=$enable_inter;
31578      case "${enableval}" in
31579        yes) gst_use_inter=yes ;;
31580        no) gst_use_inter=no ;;
31581        *) as_fn_error $? "bad value ${enableval} for --enable-inter" "$LINENO" 5 ;;
31582       esac
31583
31584else
31585  gst_use_inter=yes
31586fi
31587
31588  if test x$gst_use_inter = xno; then
31589    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin inter" >&5
31590$as_echo "$as_me: disabling dependency-less plugin inter" >&6;}
31591    WITHOUT_PLUGINS="$WITHOUT_PLUGINS inter"
31592  fi
31593
31594
31595    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " inter " > /dev/null; then
31596    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED inter"
31597  fi
31598    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " inter " > /dev/null; then
31599    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ inter / /'`
31600  fi
31601    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " inter " > /dev/null; then
31602    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ inter / /'`
31603  fi
31604   if echo " $GST_PLUGINS_SELECTED " | grep -i " inter " > /dev/null; then
31605  USE_PLUGIN_INTER_TRUE=
31606  USE_PLUGIN_INTER_FALSE='#'
31607else
31608  USE_PLUGIN_INTER_TRUE='#'
31609  USE_PLUGIN_INTER_FALSE=
31610fi
31611
31612
31613
31614  GST_PLUGINS_ALL="$GST_PLUGINS_ALL interlace"
31615
31616
31617
31618  # Check whether --enable-interlace was given.
31619if test "${enable_interlace+set}" = set; then :
31620  enableval=$enable_interlace;
31621      case "${enableval}" in
31622        yes) gst_use_interlace=yes ;;
31623        no) gst_use_interlace=no ;;
31624        *) as_fn_error $? "bad value ${enableval} for --enable-interlace" "$LINENO" 5 ;;
31625       esac
31626
31627else
31628  gst_use_interlace=yes
31629fi
31630
31631  if test x$gst_use_interlace = xno; then
31632    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin interlace" >&5
31633$as_echo "$as_me: disabling dependency-less plugin interlace" >&6;}
31634    WITHOUT_PLUGINS="$WITHOUT_PLUGINS interlace"
31635  fi
31636
31637
31638    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " interlace " > /dev/null; then
31639    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED interlace"
31640  fi
31641    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " interlace " > /dev/null; then
31642    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ interlace / /'`
31643  fi
31644    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " interlace " > /dev/null; then
31645    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ interlace / /'`
31646  fi
31647   if echo " $GST_PLUGINS_SELECTED " | grep -i " interlace " > /dev/null; then
31648  USE_PLUGIN_INTERLACE_TRUE=
31649  USE_PLUGIN_INTERLACE_FALSE='#'
31650else
31651  USE_PLUGIN_INTERLACE_TRUE='#'
31652  USE_PLUGIN_INTERLACE_FALSE=
31653fi
31654
31655
31656
31657  GST_PLUGINS_ALL="$GST_PLUGINS_ALL ivfparse"
31658
31659
31660
31661  # Check whether --enable-ivfparse was given.
31662if test "${enable_ivfparse+set}" = set; then :
31663  enableval=$enable_ivfparse;
31664      case "${enableval}" in
31665        yes) gst_use_ivfparse=yes ;;
31666        no) gst_use_ivfparse=no ;;
31667        *) as_fn_error $? "bad value ${enableval} for --enable-ivfparse" "$LINENO" 5 ;;
31668       esac
31669
31670else
31671  gst_use_ivfparse=yes
31672fi
31673
31674  if test x$gst_use_ivfparse = xno; then
31675    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin ivfparse" >&5
31676$as_echo "$as_me: disabling dependency-less plugin ivfparse" >&6;}
31677    WITHOUT_PLUGINS="$WITHOUT_PLUGINS ivfparse"
31678  fi
31679
31680
31681    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " ivfparse " > /dev/null; then
31682    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED ivfparse"
31683  fi
31684    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " ivfparse " > /dev/null; then
31685    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ ivfparse / /'`
31686  fi
31687    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ivfparse " > /dev/null; then
31688    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ ivfparse / /'`
31689  fi
31690   if echo " $GST_PLUGINS_SELECTED " | grep -i " ivfparse " > /dev/null; then
31691  USE_PLUGIN_IVFPARSE_TRUE=
31692  USE_PLUGIN_IVFPARSE_FALSE='#'
31693else
31694  USE_PLUGIN_IVFPARSE_TRUE='#'
31695  USE_PLUGIN_IVFPARSE_FALSE=
31696fi
31697
31698
31699
31700  GST_PLUGINS_ALL="$GST_PLUGINS_ALL ivtc"
31701
31702
31703
31704  # Check whether --enable-ivtc was given.
31705if test "${enable_ivtc+set}" = set; then :
31706  enableval=$enable_ivtc;
31707      case "${enableval}" in
31708        yes) gst_use_ivtc=yes ;;
31709        no) gst_use_ivtc=no ;;
31710        *) as_fn_error $? "bad value ${enableval} for --enable-ivtc" "$LINENO" 5 ;;
31711       esac
31712
31713else
31714  gst_use_ivtc=yes
31715fi
31716
31717  if test x$gst_use_ivtc = xno; then
31718    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin ivtc" >&5
31719$as_echo "$as_me: disabling dependency-less plugin ivtc" >&6;}
31720    WITHOUT_PLUGINS="$WITHOUT_PLUGINS ivtc"
31721  fi
31722
31723
31724    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " ivtc " > /dev/null; then
31725    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED ivtc"
31726  fi
31727    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " ivtc " > /dev/null; then
31728    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ ivtc / /'`
31729  fi
31730    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ivtc " > /dev/null; then
31731    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ ivtc / /'`
31732  fi
31733   if echo " $GST_PLUGINS_SELECTED " | grep -i " ivtc " > /dev/null; then
31734  USE_PLUGIN_IVTC_TRUE=
31735  USE_PLUGIN_IVTC_FALSE='#'
31736else
31737  USE_PLUGIN_IVTC_TRUE='#'
31738  USE_PLUGIN_IVTC_FALSE=
31739fi
31740
31741
31742
31743  GST_PLUGINS_ALL="$GST_PLUGINS_ALL jp2kdecimator"
31744
31745
31746
31747  # Check whether --enable-jp2kdecimator was given.
31748if test "${enable_jp2kdecimator+set}" = set; then :
31749  enableval=$enable_jp2kdecimator;
31750      case "${enableval}" in
31751        yes) gst_use_jp2kdecimator=yes ;;
31752        no) gst_use_jp2kdecimator=no ;;
31753        *) as_fn_error $? "bad value ${enableval} for --enable-jp2kdecimator" "$LINENO" 5 ;;
31754       esac
31755
31756else
31757  gst_use_jp2kdecimator=yes
31758fi
31759
31760  if test x$gst_use_jp2kdecimator = xno; then
31761    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin jp2kdecimator" >&5
31762$as_echo "$as_me: disabling dependency-less plugin jp2kdecimator" >&6;}
31763    WITHOUT_PLUGINS="$WITHOUT_PLUGINS jp2kdecimator"
31764  fi
31765
31766
31767    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " jp2kdecimator " > /dev/null; then
31768    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED jp2kdecimator"
31769  fi
31770    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " jp2kdecimator " > /dev/null; then
31771    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ jp2kdecimator / /'`
31772  fi
31773    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " jp2kdecimator " > /dev/null; then
31774    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ jp2kdecimator / /'`
31775  fi
31776   if echo " $GST_PLUGINS_SELECTED " | grep -i " jp2kdecimator " > /dev/null; then
31777  USE_PLUGIN_JP2KDECIMATOR_TRUE=
31778  USE_PLUGIN_JP2KDECIMATOR_FALSE='#'
31779else
31780  USE_PLUGIN_JP2KDECIMATOR_TRUE='#'
31781  USE_PLUGIN_JP2KDECIMATOR_FALSE=
31782fi
31783
31784
31785
31786  GST_PLUGINS_ALL="$GST_PLUGINS_ALL jpegformat"
31787
31788
31789
31790  # Check whether --enable-jpegformat was given.
31791if test "${enable_jpegformat+set}" = set; then :
31792  enableval=$enable_jpegformat;
31793      case "${enableval}" in
31794        yes) gst_use_jpegformat=yes ;;
31795        no) gst_use_jpegformat=no ;;
31796        *) as_fn_error $? "bad value ${enableval} for --enable-jpegformat" "$LINENO" 5 ;;
31797       esac
31798
31799else
31800  gst_use_jpegformat=yes
31801fi
31802
31803  if test x$gst_use_jpegformat = xno; then
31804    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin jpegformat" >&5
31805$as_echo "$as_me: disabling dependency-less plugin jpegformat" >&6;}
31806    WITHOUT_PLUGINS="$WITHOUT_PLUGINS jpegformat"
31807  fi
31808
31809
31810    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " jpegformat " > /dev/null; then
31811    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED jpegformat"
31812  fi
31813    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " jpegformat " > /dev/null; then
31814    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ jpegformat / /'`
31815  fi
31816    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " jpegformat " > /dev/null; then
31817    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ jpegformat / /'`
31818  fi
31819   if echo " $GST_PLUGINS_SELECTED " | grep -i " jpegformat " > /dev/null; then
31820  USE_PLUGIN_JPEGFORMAT_TRUE=
31821  USE_PLUGIN_JPEGFORMAT_FALSE='#'
31822else
31823  USE_PLUGIN_JPEGFORMAT_TRUE='#'
31824  USE_PLUGIN_JPEGFORMAT_FALSE=
31825fi
31826
31827
31828
31829  GST_PLUGINS_ALL="$GST_PLUGINS_ALL librfb"
31830
31831
31832
31833  # Check whether --enable-librfb was given.
31834if test "${enable_librfb+set}" = set; then :
31835  enableval=$enable_librfb;
31836      case "${enableval}" in
31837        yes) gst_use_librfb=yes ;;
31838        no) gst_use_librfb=no ;;
31839        *) as_fn_error $? "bad value ${enableval} for --enable-librfb" "$LINENO" 5 ;;
31840       esac
31841
31842else
31843  gst_use_librfb=yes
31844fi
31845
31846  if test x$gst_use_librfb = xno; then
31847    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin librfb" >&5
31848$as_echo "$as_me: disabling dependency-less plugin librfb" >&6;}
31849    WITHOUT_PLUGINS="$WITHOUT_PLUGINS librfb"
31850  fi
31851
31852
31853    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " librfb " > /dev/null; then
31854    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED librfb"
31855  fi
31856    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " librfb " > /dev/null; then
31857    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ librfb / /'`
31858  fi
31859    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " librfb " > /dev/null; then
31860    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ librfb / /'`
31861  fi
31862   if echo " $GST_PLUGINS_SELECTED " | grep -i " librfb " > /dev/null; then
31863  USE_PLUGIN_LIBRFB_TRUE=
31864  USE_PLUGIN_LIBRFB_FALSE='#'
31865else
31866  USE_PLUGIN_LIBRFB_TRUE='#'
31867  USE_PLUGIN_LIBRFB_FALSE=
31868fi
31869
31870
31871
31872  GST_PLUGINS_ALL="$GST_PLUGINS_ALL midi"
31873
31874
31875
31876  # Check whether --enable-midi was given.
31877if test "${enable_midi+set}" = set; then :
31878  enableval=$enable_midi;
31879      case "${enableval}" in
31880        yes) gst_use_midi=yes ;;
31881        no) gst_use_midi=no ;;
31882        *) as_fn_error $? "bad value ${enableval} for --enable-midi" "$LINENO" 5 ;;
31883       esac
31884
31885else
31886  gst_use_midi=yes
31887fi
31888
31889  if test x$gst_use_midi = xno; then
31890    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin midi" >&5
31891$as_echo "$as_me: disabling dependency-less plugin midi" >&6;}
31892    WITHOUT_PLUGINS="$WITHOUT_PLUGINS midi"
31893  fi
31894
31895
31896    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " midi " > /dev/null; then
31897    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED midi"
31898  fi
31899    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " midi " > /dev/null; then
31900    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ midi / /'`
31901  fi
31902    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " midi " > /dev/null; then
31903    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ midi / /'`
31904  fi
31905   if echo " $GST_PLUGINS_SELECTED " | grep -i " midi " > /dev/null; then
31906  USE_PLUGIN_MIDI_TRUE=
31907  USE_PLUGIN_MIDI_FALSE='#'
31908else
31909  USE_PLUGIN_MIDI_TRUE='#'
31910  USE_PLUGIN_MIDI_FALSE=
31911fi
31912
31913
31914
31915  GST_PLUGINS_ALL="$GST_PLUGINS_ALL mpegdemux"
31916
31917
31918
31919  # Check whether --enable-mpegdemux was given.
31920if test "${enable_mpegdemux+set}" = set; then :
31921  enableval=$enable_mpegdemux;
31922      case "${enableval}" in
31923        yes) gst_use_mpegdemux=yes ;;
31924        no) gst_use_mpegdemux=no ;;
31925        *) as_fn_error $? "bad value ${enableval} for --enable-mpegdemux" "$LINENO" 5 ;;
31926       esac
31927
31928else
31929  gst_use_mpegdemux=yes
31930fi
31931
31932  if test x$gst_use_mpegdemux = xno; then
31933    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin mpegdemux" >&5
31934$as_echo "$as_me: disabling dependency-less plugin mpegdemux" >&6;}
31935    WITHOUT_PLUGINS="$WITHOUT_PLUGINS mpegdemux"
31936  fi
31937
31938
31939    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " mpegdemux " > /dev/null; then
31940    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED mpegdemux"
31941  fi
31942    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " mpegdemux " > /dev/null; then
31943    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegdemux / /'`
31944  fi
31945    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " mpegdemux " > /dev/null; then
31946    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegdemux / /'`
31947  fi
31948   if echo " $GST_PLUGINS_SELECTED " | grep -i " mpegdemux " > /dev/null; then
31949  USE_PLUGIN_MPEGDEMUX_TRUE=
31950  USE_PLUGIN_MPEGDEMUX_FALSE='#'
31951else
31952  USE_PLUGIN_MPEGDEMUX_TRUE='#'
31953  USE_PLUGIN_MPEGDEMUX_FALSE=
31954fi
31955
31956
31957
31958  GST_PLUGINS_ALL="$GST_PLUGINS_ALL mpegtsdemux"
31959
31960
31961
31962  # Check whether --enable-mpegtsdemux was given.
31963if test "${enable_mpegtsdemux+set}" = set; then :
31964  enableval=$enable_mpegtsdemux;
31965      case "${enableval}" in
31966        yes) gst_use_mpegtsdemux=yes ;;
31967        no) gst_use_mpegtsdemux=no ;;
31968        *) as_fn_error $? "bad value ${enableval} for --enable-mpegtsdemux" "$LINENO" 5 ;;
31969       esac
31970
31971else
31972  gst_use_mpegtsdemux=yes
31973fi
31974
31975  if test x$gst_use_mpegtsdemux = xno; then
31976    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin mpegtsdemux" >&5
31977$as_echo "$as_me: disabling dependency-less plugin mpegtsdemux" >&6;}
31978    WITHOUT_PLUGINS="$WITHOUT_PLUGINS mpegtsdemux"
31979  fi
31980
31981
31982    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " mpegtsdemux " > /dev/null; then
31983    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED mpegtsdemux"
31984  fi
31985    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " mpegtsdemux " > /dev/null; then
31986    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegtsdemux / /'`
31987  fi
31988    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " mpegtsdemux " > /dev/null; then
31989    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegtsdemux / /'`
31990  fi
31991   if echo " $GST_PLUGINS_SELECTED " | grep -i " mpegtsdemux " > /dev/null; then
31992  USE_PLUGIN_MPEGTSDEMUX_TRUE=
31993  USE_PLUGIN_MPEGTSDEMUX_FALSE='#'
31994else
31995  USE_PLUGIN_MPEGTSDEMUX_TRUE='#'
31996  USE_PLUGIN_MPEGTSDEMUX_FALSE=
31997fi
31998
31999
32000
32001  GST_PLUGINS_ALL="$GST_PLUGINS_ALL mpegtsmux"
32002
32003
32004
32005  # Check whether --enable-mpegtsmux was given.
32006if test "${enable_mpegtsmux+set}" = set; then :
32007  enableval=$enable_mpegtsmux;
32008      case "${enableval}" in
32009        yes) gst_use_mpegtsmux=yes ;;
32010        no) gst_use_mpegtsmux=no ;;
32011        *) as_fn_error $? "bad value ${enableval} for --enable-mpegtsmux" "$LINENO" 5 ;;
32012       esac
32013
32014else
32015  gst_use_mpegtsmux=yes
32016fi
32017
32018  if test x$gst_use_mpegtsmux = xno; then
32019    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin mpegtsmux" >&5
32020$as_echo "$as_me: disabling dependency-less plugin mpegtsmux" >&6;}
32021    WITHOUT_PLUGINS="$WITHOUT_PLUGINS mpegtsmux"
32022  fi
32023
32024
32025    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " mpegtsmux " > /dev/null; then
32026    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED mpegtsmux"
32027  fi
32028    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " mpegtsmux " > /dev/null; then
32029    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegtsmux / /'`
32030  fi
32031    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " mpegtsmux " > /dev/null; then
32032    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegtsmux / /'`
32033  fi
32034   if echo " $GST_PLUGINS_SELECTED " | grep -i " mpegtsmux " > /dev/null; then
32035  USE_PLUGIN_MPEGTSMUX_TRUE=
32036  USE_PLUGIN_MPEGTSMUX_FALSE='#'
32037else
32038  USE_PLUGIN_MPEGTSMUX_TRUE='#'
32039  USE_PLUGIN_MPEGTSMUX_FALSE=
32040fi
32041
32042
32043
32044  GST_PLUGINS_ALL="$GST_PLUGINS_ALL mpegpsmux"
32045
32046
32047
32048  # Check whether --enable-mpegpsmux was given.
32049if test "${enable_mpegpsmux+set}" = set; then :
32050  enableval=$enable_mpegpsmux;
32051      case "${enableval}" in
32052        yes) gst_use_mpegpsmux=yes ;;
32053        no) gst_use_mpegpsmux=no ;;
32054        *) as_fn_error $? "bad value ${enableval} for --enable-mpegpsmux" "$LINENO" 5 ;;
32055       esac
32056
32057else
32058  gst_use_mpegpsmux=yes
32059fi
32060
32061  if test x$gst_use_mpegpsmux = xno; then
32062    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin mpegpsmux" >&5
32063$as_echo "$as_me: disabling dependency-less plugin mpegpsmux" >&6;}
32064    WITHOUT_PLUGINS="$WITHOUT_PLUGINS mpegpsmux"
32065  fi
32066
32067
32068    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " mpegpsmux " > /dev/null; then
32069    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED mpegpsmux"
32070  fi
32071    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " mpegpsmux " > /dev/null; then
32072    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegpsmux / /'`
32073  fi
32074    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " mpegpsmux " > /dev/null; then
32075    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mpegpsmux / /'`
32076  fi
32077   if echo " $GST_PLUGINS_SELECTED " | grep -i " mpegpsmux " > /dev/null; then
32078  USE_PLUGIN_MPEGPSMUX_TRUE=
32079  USE_PLUGIN_MPEGPSMUX_FALSE='#'
32080else
32081  USE_PLUGIN_MPEGPSMUX_TRUE='#'
32082  USE_PLUGIN_MPEGPSMUX_FALSE=
32083fi
32084
32085
32086
32087  GST_PLUGINS_ALL="$GST_PLUGINS_ALL mxf"
32088
32089
32090
32091  # Check whether --enable-mxf was given.
32092if test "${enable_mxf+set}" = set; then :
32093  enableval=$enable_mxf;
32094      case "${enableval}" in
32095        yes) gst_use_mxf=yes ;;
32096        no) gst_use_mxf=no ;;
32097        *) as_fn_error $? "bad value ${enableval} for --enable-mxf" "$LINENO" 5 ;;
32098       esac
32099
32100else
32101  gst_use_mxf=yes
32102fi
32103
32104  if test x$gst_use_mxf = xno; then
32105    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin mxf" >&5
32106$as_echo "$as_me: disabling dependency-less plugin mxf" >&6;}
32107    WITHOUT_PLUGINS="$WITHOUT_PLUGINS mxf"
32108  fi
32109
32110
32111    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " mxf " > /dev/null; then
32112    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED mxf"
32113  fi
32114    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " mxf " > /dev/null; then
32115    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mxf / /'`
32116  fi
32117    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " mxf " > /dev/null; then
32118    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ mxf / /'`
32119  fi
32120   if echo " $GST_PLUGINS_SELECTED " | grep -i " mxf " > /dev/null; then
32121  USE_PLUGIN_MXF_TRUE=
32122  USE_PLUGIN_MXF_FALSE='#'
32123else
32124  USE_PLUGIN_MXF_TRUE='#'
32125  USE_PLUGIN_MXF_FALSE=
32126fi
32127
32128
32129
32130  GST_PLUGINS_ALL="$GST_PLUGINS_ALL netsim"
32131
32132
32133
32134  # Check whether --enable-netsim was given.
32135if test "${enable_netsim+set}" = set; then :
32136  enableval=$enable_netsim;
32137      case "${enableval}" in
32138        yes) gst_use_netsim=yes ;;
32139        no) gst_use_netsim=no ;;
32140        *) as_fn_error $? "bad value ${enableval} for --enable-netsim" "$LINENO" 5 ;;
32141       esac
32142
32143else
32144  gst_use_netsim=yes
32145fi
32146
32147  if test x$gst_use_netsim = xno; then
32148    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin netsim" >&5
32149$as_echo "$as_me: disabling dependency-less plugin netsim" >&6;}
32150    WITHOUT_PLUGINS="$WITHOUT_PLUGINS netsim"
32151  fi
32152
32153
32154    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " netsim " > /dev/null; then
32155    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED netsim"
32156  fi
32157    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " netsim " > /dev/null; then
32158    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ netsim / /'`
32159  fi
32160    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " netsim " > /dev/null; then
32161    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ netsim / /'`
32162  fi
32163   if echo " $GST_PLUGINS_SELECTED " | grep -i " netsim " > /dev/null; then
32164  USE_PLUGIN_NETSIM_TRUE=
32165  USE_PLUGIN_NETSIM_FALSE='#'
32166else
32167  USE_PLUGIN_NETSIM_TRUE='#'
32168  USE_PLUGIN_NETSIM_FALSE=
32169fi
32170
32171
32172
32173  GST_PLUGINS_ALL="$GST_PLUGINS_ALL onvif"
32174
32175
32176
32177  # Check whether --enable-onvif was given.
32178if test "${enable_onvif+set}" = set; then :
32179  enableval=$enable_onvif;
32180      case "${enableval}" in
32181        yes) gst_use_onvif=yes ;;
32182        no) gst_use_onvif=no ;;
32183        *) as_fn_error $? "bad value ${enableval} for --enable-onvif" "$LINENO" 5 ;;
32184       esac
32185
32186else
32187  gst_use_onvif=yes
32188fi
32189
32190  if test x$gst_use_onvif = xno; then
32191    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin onvif" >&5
32192$as_echo "$as_me: disabling dependency-less plugin onvif" >&6;}
32193    WITHOUT_PLUGINS="$WITHOUT_PLUGINS onvif"
32194  fi
32195
32196
32197    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " onvif " > /dev/null; then
32198    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED onvif"
32199  fi
32200    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " onvif " > /dev/null; then
32201    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ onvif / /'`
32202  fi
32203    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " onvif " > /dev/null; then
32204    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ onvif / /'`
32205  fi
32206   if echo " $GST_PLUGINS_SELECTED " | grep -i " onvif " > /dev/null; then
32207  USE_PLUGIN_ONVIF_TRUE=
32208  USE_PLUGIN_ONVIF_FALSE='#'
32209else
32210  USE_PLUGIN_ONVIF_TRUE='#'
32211  USE_PLUGIN_ONVIF_FALSE=
32212fi
32213
32214
32215
32216  GST_PLUGINS_ALL="$GST_PLUGINS_ALL pcapparse"
32217
32218
32219
32220  # Check whether --enable-pcapparse was given.
32221if test "${enable_pcapparse+set}" = set; then :
32222  enableval=$enable_pcapparse;
32223      case "${enableval}" in
32224        yes) gst_use_pcapparse=yes ;;
32225        no) gst_use_pcapparse=no ;;
32226        *) as_fn_error $? "bad value ${enableval} for --enable-pcapparse" "$LINENO" 5 ;;
32227       esac
32228
32229else
32230  gst_use_pcapparse=yes
32231fi
32232
32233  if test x$gst_use_pcapparse = xno; then
32234    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin pcapparse" >&5
32235$as_echo "$as_me: disabling dependency-less plugin pcapparse" >&6;}
32236    WITHOUT_PLUGINS="$WITHOUT_PLUGINS pcapparse"
32237  fi
32238
32239
32240    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " pcapparse " > /dev/null; then
32241    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED pcapparse"
32242  fi
32243    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " pcapparse " > /dev/null; then
32244    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ pcapparse / /'`
32245  fi
32246    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " pcapparse " > /dev/null; then
32247    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ pcapparse / /'`
32248  fi
32249   if echo " $GST_PLUGINS_SELECTED " | grep -i " pcapparse " > /dev/null; then
32250  USE_PLUGIN_PCAPPARSE_TRUE=
32251  USE_PLUGIN_PCAPPARSE_FALSE='#'
32252else
32253  USE_PLUGIN_PCAPPARSE_TRUE='#'
32254  USE_PLUGIN_PCAPPARSE_FALSE=
32255fi
32256
32257
32258
32259  GST_PLUGINS_ALL="$GST_PLUGINS_ALL pnm"
32260
32261
32262
32263  # Check whether --enable-pnm was given.
32264if test "${enable_pnm+set}" = set; then :
32265  enableval=$enable_pnm;
32266      case "${enableval}" in
32267        yes) gst_use_pnm=yes ;;
32268        no) gst_use_pnm=no ;;
32269        *) as_fn_error $? "bad value ${enableval} for --enable-pnm" "$LINENO" 5 ;;
32270       esac
32271
32272else
32273  gst_use_pnm=yes
32274fi
32275
32276  if test x$gst_use_pnm = xno; then
32277    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin pnm" >&5
32278$as_echo "$as_me: disabling dependency-less plugin pnm" >&6;}
32279    WITHOUT_PLUGINS="$WITHOUT_PLUGINS pnm"
32280  fi
32281
32282
32283    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " pnm " > /dev/null; then
32284    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED pnm"
32285  fi
32286    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " pnm " > /dev/null; then
32287    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ pnm / /'`
32288  fi
32289    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " pnm " > /dev/null; then
32290    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ pnm / /'`
32291  fi
32292   if echo " $GST_PLUGINS_SELECTED " | grep -i " pnm " > /dev/null; then
32293  USE_PLUGIN_PNM_TRUE=
32294  USE_PLUGIN_PNM_FALSE='#'
32295else
32296  USE_PLUGIN_PNM_TRUE='#'
32297  USE_PLUGIN_PNM_FALSE=
32298fi
32299
32300
32301
32302  GST_PLUGINS_ALL="$GST_PLUGINS_ALL proxy"
32303
32304
32305
32306  # Check whether --enable-proxy was given.
32307if test "${enable_proxy+set}" = set; then :
32308  enableval=$enable_proxy;
32309      case "${enableval}" in
32310        yes) gst_use_proxy=yes ;;
32311        no) gst_use_proxy=no ;;
32312        *) as_fn_error $? "bad value ${enableval} for --enable-proxy" "$LINENO" 5 ;;
32313       esac
32314
32315else
32316  gst_use_proxy=yes
32317fi
32318
32319  if test x$gst_use_proxy = xno; then
32320    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin proxy" >&5
32321$as_echo "$as_me: disabling dependency-less plugin proxy" >&6;}
32322    WITHOUT_PLUGINS="$WITHOUT_PLUGINS proxy"
32323  fi
32324
32325
32326    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " proxy " > /dev/null; then
32327    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED proxy"
32328  fi
32329    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " proxy " > /dev/null; then
32330    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ proxy / /'`
32331  fi
32332    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " proxy " > /dev/null; then
32333    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ proxy / /'`
32334  fi
32335   if echo " $GST_PLUGINS_SELECTED " | grep -i " proxy " > /dev/null; then
32336  USE_PLUGIN_PROXY_TRUE=
32337  USE_PLUGIN_PROXY_FALSE='#'
32338else
32339  USE_PLUGIN_PROXY_TRUE='#'
32340  USE_PLUGIN_PROXY_FALSE=
32341fi
32342
32343
32344
32345  GST_PLUGINS_ALL="$GST_PLUGINS_ALL rawparse"
32346
32347
32348
32349  # Check whether --enable-rawparse was given.
32350if test "${enable_rawparse+set}" = set; then :
32351  enableval=$enable_rawparse;
32352      case "${enableval}" in
32353        yes) gst_use_rawparse=yes ;;
32354        no) gst_use_rawparse=no ;;
32355        *) as_fn_error $? "bad value ${enableval} for --enable-rawparse" "$LINENO" 5 ;;
32356       esac
32357
32358else
32359  gst_use_rawparse=yes
32360fi
32361
32362  if test x$gst_use_rawparse = xno; then
32363    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin rawparse" >&5
32364$as_echo "$as_me: disabling dependency-less plugin rawparse" >&6;}
32365    WITHOUT_PLUGINS="$WITHOUT_PLUGINS rawparse"
32366  fi
32367
32368
32369    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " rawparse " > /dev/null; then
32370    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED rawparse"
32371  fi
32372    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " rawparse " > /dev/null; then
32373    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ rawparse / /'`
32374  fi
32375    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " rawparse " > /dev/null; then
32376    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ rawparse / /'`
32377  fi
32378   if echo " $GST_PLUGINS_SELECTED " | grep -i " rawparse " > /dev/null; then
32379  USE_PLUGIN_RAWPARSE_TRUE=
32380  USE_PLUGIN_RAWPARSE_FALSE='#'
32381else
32382  USE_PLUGIN_RAWPARSE_TRUE='#'
32383  USE_PLUGIN_RAWPARSE_FALSE=
32384fi
32385
32386
32387
32388  GST_PLUGINS_ALL="$GST_PLUGINS_ALL removesilence"
32389
32390
32391
32392  # Check whether --enable-removesilence was given.
32393if test "${enable_removesilence+set}" = set; then :
32394  enableval=$enable_removesilence;
32395      case "${enableval}" in
32396        yes) gst_use_removesilence=yes ;;
32397        no) gst_use_removesilence=no ;;
32398        *) as_fn_error $? "bad value ${enableval} for --enable-removesilence" "$LINENO" 5 ;;
32399       esac
32400
32401else
32402  gst_use_removesilence=yes
32403fi
32404
32405  if test x$gst_use_removesilence = xno; then
32406    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin removesilence" >&5
32407$as_echo "$as_me: disabling dependency-less plugin removesilence" >&6;}
32408    WITHOUT_PLUGINS="$WITHOUT_PLUGINS removesilence"
32409  fi
32410
32411
32412    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " removesilence " > /dev/null; then
32413    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED removesilence"
32414  fi
32415    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " removesilence " > /dev/null; then
32416    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ removesilence / /'`
32417  fi
32418    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " removesilence " > /dev/null; then
32419    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ removesilence / /'`
32420  fi
32421   if echo " $GST_PLUGINS_SELECTED " | grep -i " removesilence " > /dev/null; then
32422  USE_PLUGIN_REMOVESILENCE_TRUE=
32423  USE_PLUGIN_REMOVESILENCE_FALSE='#'
32424else
32425  USE_PLUGIN_REMOVESILENCE_TRUE='#'
32426  USE_PLUGIN_REMOVESILENCE_FALSE=
32427fi
32428
32429
32430
32431  GST_PLUGINS_ALL="$GST_PLUGINS_ALL sdp"
32432
32433
32434
32435  # Check whether --enable-sdp was given.
32436if test "${enable_sdp+set}" = set; then :
32437  enableval=$enable_sdp;
32438      case "${enableval}" in
32439        yes) gst_use_sdp=yes ;;
32440        no) gst_use_sdp=no ;;
32441        *) as_fn_error $? "bad value ${enableval} for --enable-sdp" "$LINENO" 5 ;;
32442       esac
32443
32444else
32445  gst_use_sdp=yes
32446fi
32447
32448  if test x$gst_use_sdp = xno; then
32449    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin sdp" >&5
32450$as_echo "$as_me: disabling dependency-less plugin sdp" >&6;}
32451    WITHOUT_PLUGINS="$WITHOUT_PLUGINS sdp"
32452  fi
32453
32454
32455    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " sdp " > /dev/null; then
32456    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED sdp"
32457  fi
32458    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " sdp " > /dev/null; then
32459    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ sdp / /'`
32460  fi
32461    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " sdp " > /dev/null; then
32462    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ sdp / /'`
32463  fi
32464   if echo " $GST_PLUGINS_SELECTED " | grep -i " sdp " > /dev/null; then
32465  USE_PLUGIN_SDP_TRUE=
32466  USE_PLUGIN_SDP_FALSE='#'
32467else
32468  USE_PLUGIN_SDP_TRUE='#'
32469  USE_PLUGIN_SDP_FALSE=
32470fi
32471
32472
32473
32474  GST_PLUGINS_ALL="$GST_PLUGINS_ALL segmentclip"
32475
32476
32477
32478  # Check whether --enable-segmentclip was given.
32479if test "${enable_segmentclip+set}" = set; then :
32480  enableval=$enable_segmentclip;
32481      case "${enableval}" in
32482        yes) gst_use_segmentclip=yes ;;
32483        no) gst_use_segmentclip=no ;;
32484        *) as_fn_error $? "bad value ${enableval} for --enable-segmentclip" "$LINENO" 5 ;;
32485       esac
32486
32487else
32488  gst_use_segmentclip=yes
32489fi
32490
32491  if test x$gst_use_segmentclip = xno; then
32492    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin segmentclip" >&5
32493$as_echo "$as_me: disabling dependency-less plugin segmentclip" >&6;}
32494    WITHOUT_PLUGINS="$WITHOUT_PLUGINS segmentclip"
32495  fi
32496
32497
32498    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " segmentclip " > /dev/null; then
32499    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED segmentclip"
32500  fi
32501    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " segmentclip " > /dev/null; then
32502    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ segmentclip / /'`
32503  fi
32504    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " segmentclip " > /dev/null; then
32505    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ segmentclip / /'`
32506  fi
32507   if echo " $GST_PLUGINS_SELECTED " | grep -i " segmentclip " > /dev/null; then
32508  USE_PLUGIN_SEGMENTCLIP_TRUE=
32509  USE_PLUGIN_SEGMENTCLIP_FALSE='#'
32510else
32511  USE_PLUGIN_SEGMENTCLIP_TRUE='#'
32512  USE_PLUGIN_SEGMENTCLIP_FALSE=
32513fi
32514
32515
32516
32517  GST_PLUGINS_ALL="$GST_PLUGINS_ALL siren"
32518
32519
32520
32521  # Check whether --enable-siren was given.
32522if test "${enable_siren+set}" = set; then :
32523  enableval=$enable_siren;
32524      case "${enableval}" in
32525        yes) gst_use_siren=yes ;;
32526        no) gst_use_siren=no ;;
32527        *) as_fn_error $? "bad value ${enableval} for --enable-siren" "$LINENO" 5 ;;
32528       esac
32529
32530else
32531  gst_use_siren=yes
32532fi
32533
32534  if test x$gst_use_siren = xno; then
32535    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin siren" >&5
32536$as_echo "$as_me: disabling dependency-less plugin siren" >&6;}
32537    WITHOUT_PLUGINS="$WITHOUT_PLUGINS siren"
32538  fi
32539
32540
32541    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " siren " > /dev/null; then
32542    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED siren"
32543  fi
32544    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " siren " > /dev/null; then
32545    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ siren / /'`
32546  fi
32547    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " siren " > /dev/null; then
32548    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ siren / /'`
32549  fi
32550   if echo " $GST_PLUGINS_SELECTED " | grep -i " siren " > /dev/null; then
32551  USE_PLUGIN_SIREN_TRUE=
32552  USE_PLUGIN_SIREN_FALSE='#'
32553else
32554  USE_PLUGIN_SIREN_TRUE='#'
32555  USE_PLUGIN_SIREN_FALSE=
32556fi
32557
32558
32559
32560  GST_PLUGINS_ALL="$GST_PLUGINS_ALL smooth"
32561
32562
32563
32564  # Check whether --enable-smooth was given.
32565if test "${enable_smooth+set}" = set; then :
32566  enableval=$enable_smooth;
32567      case "${enableval}" in
32568        yes) gst_use_smooth=yes ;;
32569        no) gst_use_smooth=no ;;
32570        *) as_fn_error $? "bad value ${enableval} for --enable-smooth" "$LINENO" 5 ;;
32571       esac
32572
32573else
32574  gst_use_smooth=yes
32575fi
32576
32577  if test x$gst_use_smooth = xno; then
32578    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin smooth" >&5
32579$as_echo "$as_me: disabling dependency-less plugin smooth" >&6;}
32580    WITHOUT_PLUGINS="$WITHOUT_PLUGINS smooth"
32581  fi
32582
32583
32584    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " smooth " > /dev/null; then
32585    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED smooth"
32586  fi
32587    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " smooth " > /dev/null; then
32588    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ smooth / /'`
32589  fi
32590    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " smooth " > /dev/null; then
32591    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ smooth / /'`
32592  fi
32593   if echo " $GST_PLUGINS_SELECTED " | grep -i " smooth " > /dev/null; then
32594  USE_PLUGIN_SMOOTH_TRUE=
32595  USE_PLUGIN_SMOOTH_FALSE='#'
32596else
32597  USE_PLUGIN_SMOOTH_TRUE='#'
32598  USE_PLUGIN_SMOOTH_FALSE=
32599fi
32600
32601
32602
32603  GST_PLUGINS_ALL="$GST_PLUGINS_ALL speed"
32604
32605
32606
32607  # Check whether --enable-speed was given.
32608if test "${enable_speed+set}" = set; then :
32609  enableval=$enable_speed;
32610      case "${enableval}" in
32611        yes) gst_use_speed=yes ;;
32612        no) gst_use_speed=no ;;
32613        *) as_fn_error $? "bad value ${enableval} for --enable-speed" "$LINENO" 5 ;;
32614       esac
32615
32616else
32617  gst_use_speed=yes
32618fi
32619
32620  if test x$gst_use_speed = xno; then
32621    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin speed" >&5
32622$as_echo "$as_me: disabling dependency-less plugin speed" >&6;}
32623    WITHOUT_PLUGINS="$WITHOUT_PLUGINS speed"
32624  fi
32625
32626
32627    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " speed " > /dev/null; then
32628    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED speed"
32629  fi
32630    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " speed " > /dev/null; then
32631    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ speed / /'`
32632  fi
32633    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " speed " > /dev/null; then
32634    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ speed / /'`
32635  fi
32636   if echo " $GST_PLUGINS_SELECTED " | grep -i " speed " > /dev/null; then
32637  USE_PLUGIN_SPEED_TRUE=
32638  USE_PLUGIN_SPEED_FALSE='#'
32639else
32640  USE_PLUGIN_SPEED_TRUE='#'
32641  USE_PLUGIN_SPEED_FALSE=
32642fi
32643
32644
32645
32646  GST_PLUGINS_ALL="$GST_PLUGINS_ALL subenc"
32647
32648
32649
32650  # Check whether --enable-subenc was given.
32651if test "${enable_subenc+set}" = set; then :
32652  enableval=$enable_subenc;
32653      case "${enableval}" in
32654        yes) gst_use_subenc=yes ;;
32655        no) gst_use_subenc=no ;;
32656        *) as_fn_error $? "bad value ${enableval} for --enable-subenc" "$LINENO" 5 ;;
32657       esac
32658
32659else
32660  gst_use_subenc=yes
32661fi
32662
32663  if test x$gst_use_subenc = xno; then
32664    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin subenc" >&5
32665$as_echo "$as_me: disabling dependency-less plugin subenc" >&6;}
32666    WITHOUT_PLUGINS="$WITHOUT_PLUGINS subenc"
32667  fi
32668
32669
32670    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " subenc " > /dev/null; then
32671    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED subenc"
32672  fi
32673    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " subenc " > /dev/null; then
32674    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ subenc / /'`
32675  fi
32676    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " subenc " > /dev/null; then
32677    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ subenc / /'`
32678  fi
32679   if echo " $GST_PLUGINS_SELECTED " | grep -i " subenc " > /dev/null; then
32680  USE_PLUGIN_SUBENC_TRUE=
32681  USE_PLUGIN_SUBENC_FALSE='#'
32682else
32683  USE_PLUGIN_SUBENC_TRUE='#'
32684  USE_PLUGIN_SUBENC_FALSE=
32685fi
32686
32687
32688
32689  GST_PLUGINS_ALL="$GST_PLUGINS_ALL timecode"
32690
32691
32692
32693  # Check whether --enable-timecode was given.
32694if test "${enable_timecode+set}" = set; then :
32695  enableval=$enable_timecode;
32696      case "${enableval}" in
32697        yes) gst_use_timecode=yes ;;
32698        no) gst_use_timecode=no ;;
32699        *) as_fn_error $? "bad value ${enableval} for --enable-timecode" "$LINENO" 5 ;;
32700       esac
32701
32702else
32703  gst_use_timecode=yes
32704fi
32705
32706  if test x$gst_use_timecode = xno; then
32707    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin timecode" >&5
32708$as_echo "$as_me: disabling dependency-less plugin timecode" >&6;}
32709    WITHOUT_PLUGINS="$WITHOUT_PLUGINS timecode"
32710  fi
32711
32712
32713    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " timecode " > /dev/null; then
32714    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED timecode"
32715  fi
32716    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " timecode " > /dev/null; then
32717    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ timecode / /'`
32718  fi
32719    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " timecode " > /dev/null; then
32720    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ timecode / /'`
32721  fi
32722   if echo " $GST_PLUGINS_SELECTED " | grep -i " timecode " > /dev/null; then
32723  USE_PLUGIN_TIMECODE_TRUE=
32724  USE_PLUGIN_TIMECODE_FALSE='#'
32725else
32726  USE_PLUGIN_TIMECODE_TRUE='#'
32727  USE_PLUGIN_TIMECODE_FALSE=
32728fi
32729
32730
32731
32732  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videofilters"
32733
32734
32735
32736  # Check whether --enable-videofilters was given.
32737if test "${enable_videofilters+set}" = set; then :
32738  enableval=$enable_videofilters;
32739      case "${enableval}" in
32740        yes) gst_use_videofilters=yes ;;
32741        no) gst_use_videofilters=no ;;
32742        *) as_fn_error $? "bad value ${enableval} for --enable-videofilters" "$LINENO" 5 ;;
32743       esac
32744
32745else
32746  gst_use_videofilters=yes
32747fi
32748
32749  if test x$gst_use_videofilters = xno; then
32750    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videofilters" >&5
32751$as_echo "$as_me: disabling dependency-less plugin videofilters" >&6;}
32752    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videofilters"
32753  fi
32754
32755
32756    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videofilters " > /dev/null; then
32757    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videofilters"
32758  fi
32759    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videofilters " > /dev/null; then
32760    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videofilters / /'`
32761  fi
32762    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videofilters " > /dev/null; then
32763    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videofilters / /'`
32764  fi
32765   if echo " $GST_PLUGINS_SELECTED " | grep -i " videofilters " > /dev/null; then
32766  USE_PLUGIN_VIDEOFILTERS_TRUE=
32767  USE_PLUGIN_VIDEOFILTERS_FALSE='#'
32768else
32769  USE_PLUGIN_VIDEOFILTERS_TRUE='#'
32770  USE_PLUGIN_VIDEOFILTERS_FALSE=
32771fi
32772
32773
32774
32775  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videoparsers"
32776
32777
32778
32779  # Check whether --enable-videoparsers was given.
32780if test "${enable_videoparsers+set}" = set; then :
32781  enableval=$enable_videoparsers;
32782      case "${enableval}" in
32783        yes) gst_use_videoparsers=yes ;;
32784        no) gst_use_videoparsers=no ;;
32785        *) as_fn_error $? "bad value ${enableval} for --enable-videoparsers" "$LINENO" 5 ;;
32786       esac
32787
32788else
32789  gst_use_videoparsers=yes
32790fi
32791
32792  if test x$gst_use_videoparsers = xno; then
32793    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videoparsers" >&5
32794$as_echo "$as_me: disabling dependency-less plugin videoparsers" >&6;}
32795    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videoparsers"
32796  fi
32797
32798
32799    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videoparsers " > /dev/null; then
32800    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videoparsers"
32801  fi
32802    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videoparsers " > /dev/null; then
32803    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoparsers / /'`
32804  fi
32805    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videoparsers " > /dev/null; then
32806    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videoparsers / /'`
32807  fi
32808   if echo " $GST_PLUGINS_SELECTED " | grep -i " videoparsers " > /dev/null; then
32809  USE_PLUGIN_VIDEOPARSERS_TRUE=
32810  USE_PLUGIN_VIDEOPARSERS_FALSE='#'
32811else
32812  USE_PLUGIN_VIDEOPARSERS_TRUE='#'
32813  USE_PLUGIN_VIDEOPARSERS_FALSE=
32814fi
32815
32816
32817
32818  GST_PLUGINS_ALL="$GST_PLUGINS_ALL videosignal"
32819
32820
32821
32822  # Check whether --enable-videosignal was given.
32823if test "${enable_videosignal+set}" = set; then :
32824  enableval=$enable_videosignal;
32825      case "${enableval}" in
32826        yes) gst_use_videosignal=yes ;;
32827        no) gst_use_videosignal=no ;;
32828        *) as_fn_error $? "bad value ${enableval} for --enable-videosignal" "$LINENO" 5 ;;
32829       esac
32830
32831else
32832  gst_use_videosignal=yes
32833fi
32834
32835  if test x$gst_use_videosignal = xno; then
32836    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin videosignal" >&5
32837$as_echo "$as_me: disabling dependency-less plugin videosignal" >&6;}
32838    WITHOUT_PLUGINS="$WITHOUT_PLUGINS videosignal"
32839  fi
32840
32841
32842    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " videosignal " > /dev/null; then
32843    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED videosignal"
32844  fi
32845    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " videosignal " > /dev/null; then
32846    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videosignal / /'`
32847  fi
32848    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " videosignal " > /dev/null; then
32849    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ videosignal / /'`
32850  fi
32851   if echo " $GST_PLUGINS_SELECTED " | grep -i " videosignal " > /dev/null; then
32852  USE_PLUGIN_VIDEOSIGNAL_TRUE=
32853  USE_PLUGIN_VIDEOSIGNAL_FALSE='#'
32854else
32855  USE_PLUGIN_VIDEOSIGNAL_TRUE='#'
32856  USE_PLUGIN_VIDEOSIGNAL_FALSE=
32857fi
32858
32859
32860
32861  GST_PLUGINS_ALL="$GST_PLUGINS_ALL vmnc"
32862
32863
32864
32865  # Check whether --enable-vmnc was given.
32866if test "${enable_vmnc+set}" = set; then :
32867  enableval=$enable_vmnc;
32868      case "${enableval}" in
32869        yes) gst_use_vmnc=yes ;;
32870        no) gst_use_vmnc=no ;;
32871        *) as_fn_error $? "bad value ${enableval} for --enable-vmnc" "$LINENO" 5 ;;
32872       esac
32873
32874else
32875  gst_use_vmnc=yes
32876fi
32877
32878  if test x$gst_use_vmnc = xno; then
32879    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin vmnc" >&5
32880$as_echo "$as_me: disabling dependency-less plugin vmnc" >&6;}
32881    WITHOUT_PLUGINS="$WITHOUT_PLUGINS vmnc"
32882  fi
32883
32884
32885    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " vmnc " > /dev/null; then
32886    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED vmnc"
32887  fi
32888    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " vmnc " > /dev/null; then
32889    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ vmnc / /'`
32890  fi
32891    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " vmnc " > /dev/null; then
32892    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ vmnc / /'`
32893  fi
32894   if echo " $GST_PLUGINS_SELECTED " | grep -i " vmnc " > /dev/null; then
32895  USE_PLUGIN_VMNC_TRUE=
32896  USE_PLUGIN_VMNC_FALSE='#'
32897else
32898  USE_PLUGIN_VMNC_TRUE='#'
32899  USE_PLUGIN_VMNC_FALSE=
32900fi
32901
32902
32903
32904  GST_PLUGINS_ALL="$GST_PLUGINS_ALL y4m"
32905
32906
32907
32908  # Check whether --enable-y4m was given.
32909if test "${enable_y4m+set}" = set; then :
32910  enableval=$enable_y4m;
32911      case "${enableval}" in
32912        yes) gst_use_y4m=yes ;;
32913        no) gst_use_y4m=no ;;
32914        *) as_fn_error $? "bad value ${enableval} for --enable-y4m" "$LINENO" 5 ;;
32915       esac
32916
32917else
32918  gst_use_y4m=yes
32919fi
32920
32921  if test x$gst_use_y4m = xno; then
32922    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin y4m" >&5
32923$as_echo "$as_me: disabling dependency-less plugin y4m" >&6;}
32924    WITHOUT_PLUGINS="$WITHOUT_PLUGINS y4m"
32925  fi
32926
32927
32928    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " y4m " > /dev/null; then
32929    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED y4m"
32930  fi
32931    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " y4m " > /dev/null; then
32932    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ y4m / /'`
32933  fi
32934    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " y4m " > /dev/null; then
32935    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ y4m / /'`
32936  fi
32937   if echo " $GST_PLUGINS_SELECTED " | grep -i " y4m " > /dev/null; then
32938  USE_PLUGIN_Y4M_TRUE=
32939  USE_PLUGIN_Y4M_FALSE='#'
32940else
32941  USE_PLUGIN_Y4M_TRUE='#'
32942  USE_PLUGIN_Y4M_FALSE=
32943fi
32944
32945
32946
32947  GST_PLUGINS_ALL="$GST_PLUGINS_ALL yadif"
32948
32949
32950
32951  # Check whether --enable-yadif was given.
32952if test "${enable_yadif+set}" = set; then :
32953  enableval=$enable_yadif;
32954      case "${enableval}" in
32955        yes) gst_use_yadif=yes ;;
32956        no) gst_use_yadif=no ;;
32957        *) as_fn_error $? "bad value ${enableval} for --enable-yadif" "$LINENO" 5 ;;
32958       esac
32959
32960else
32961  gst_use_yadif=yes
32962fi
32963
32964  if test x$gst_use_yadif = xno; then
32965    { $as_echo "$as_me:${as_lineno-$LINENO}: disabling dependency-less plugin yadif" >&5
32966$as_echo "$as_me: disabling dependency-less plugin yadif" >&6;}
32967    WITHOUT_PLUGINS="$WITHOUT_PLUGINS yadif"
32968  fi
32969
32970
32971    if [ -z "$WITH_PLUGINS" ] || echo " $WITH_PLUGINS " | tr , ' ' | grep -i " yadif " > /dev/null; then
32972    GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED yadif"
32973  fi
32974    if echo " $WITHOUT_PLUGINS " | tr , ' ' | grep -i " yadif " > /dev/null; then
32975    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ yadif / /'`
32976  fi
32977    if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " yadif " > /dev/null; then
32978    GST_PLUGINS_SELECTED=`echo " $GST_PLUGINS_SELECTED " | $SED -e 's/ yadif / /'`
32979  fi
32980   if echo " $GST_PLUGINS_SELECTED " | grep -i " yadif " > /dev/null; then
32981  USE_PLUGIN_YADIF_TRUE=
32982  USE_PLUGIN_YADIF_FALSE='#'
32983else
32984  USE_PLUGIN_YADIF_TRUE='#'
32985  USE_PLUGIN_YADIF_FALSE=
32986fi
32987
32988
32989
32990
32991ac_fn_c_check_header_preproc "$LINENO" "AVFoundation/AVFoundation.h" "ac_cv_header_AVFoundation_AVFoundation_h"
32992if test "x$ac_cv_header_AVFoundation_AVFoundation_h" = xyes; then :
32993  HAVE_AVFOUNDATION="yes"
32994else
32995  HAVE_AVFOUNDATION="no"
32996fi
32997
32998
32999ac_fn_c_check_header_preproc "$LINENO" "MobileCoreServices/MobileCoreServices.h" "ac_cv_header_MobileCoreServices_MobileCoreServices_h"
33000if test "x$ac_cv_header_MobileCoreServices_MobileCoreServices_h" = xyes; then :
33001  HAVE_IOS="yes"
33002else
33003  HAVE_IOS="no"
33004fi
33005
33006
33007ac_fn_c_check_header_preproc "$LINENO" "VideoToolbox/VideoToolbox.h" "ac_cv_header_VideoToolbox_VideoToolbox_h"
33008if test "x$ac_cv_header_VideoToolbox_VideoToolbox_h" = xyes; then :
33009  HAVE_VIDEOTOOLBOX="yes"
33010else
33011  HAVE_VIDEOTOOLBOX="no"
33012fi
33013
33014
33015
33016if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
33017  old_LIBS=$LIBS
33018  LIBS="$LIBS -framework VideoToolbox"
33019  ac_fn_c_check_func "$LINENO" "VTCompressionSessionPrepareToEncodeFrames" "ac_cv_func_VTCompressionSessionPrepareToEncodeFrames"
33020if test "x$ac_cv_func_VTCompressionSessionPrepareToEncodeFrames" = xyes; then :
33021
33022
33023$as_echo "#define HAVE_VIDEOTOOLBOX_10_9_6 1" >>confdefs.h
33024
33025
33026fi
33027
33028  LIBS=$old_LIBS
33029fi
33030
33031 if test "x$HAVE_AVFOUNDATION" = "xyes"; then
33032  HAVE_AVFOUNDATION_TRUE=
33033  HAVE_AVFOUNDATION_FALSE='#'
33034else
33035  HAVE_AVFOUNDATION_TRUE='#'
33036  HAVE_AVFOUNDATION_FALSE=
33037fi
33038
33039if test "x$HAVE_AVFOUNDATION" = "xyes"; then
33040
33041$as_echo "#define HAVE_AVFOUNDATION 1" >>confdefs.h
33042
33043fi
33044
33045 if test "x$HAVE_IOS" = "xyes"; then
33046  HAVE_IOS_TRUE=
33047  HAVE_IOS_FALSE='#'
33048else
33049  HAVE_IOS_TRUE='#'
33050  HAVE_IOS_FALSE=
33051fi
33052
33053if test "x$HAVE_IOS" = "xyes"; then
33054
33055$as_echo "#define HAVE_IOS 1" >>confdefs.h
33056
33057fi
33058
33059 if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
33060  HAVE_VIDEOTOOLBOX_TRUE=
33061  HAVE_VIDEOTOOLBOX_FALSE='#'
33062else
33063  HAVE_VIDEOTOOLBOX_TRUE='#'
33064  HAVE_VIDEOTOOLBOX_FALSE=
33065fi
33066
33067if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
33068
33069$as_echo "#define HAVE_VIDEOTOOLBOX 1" >>confdefs.h
33070
33071fi
33072
33073for ac_header in sys/socket.h
33074do :
33075  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33076if test "x$ac_cv_header_sys_socket_h" = xyes; then :
33077  cat >>confdefs.h <<_ACEOF
33078#define HAVE_SYS_SOCKET_H 1
33079_ACEOF
33080 HAVE_SYS_SOCKET_H=yes
33081fi
33082
33083done
33084
33085for ac_header in winsock2.h
33086do :
33087  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33088if test "x$ac_cv_header_winsock2_h" = xyes; then :
33089  cat >>confdefs.h <<_ACEOF
33090#define HAVE_WINSOCK2_H 1
33091_ACEOF
33092 HAVE_WINSOCK2_H=yes
33093fi
33094
33095done
33096
33097
33098if test "x$HAVE_WINSOCK2_H" = "xyes"; then
33099  WINSOCK2_LIBS="-lws2_32"
33100
33101fi
33102
33103
33104pkg_failed=no
33105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
33106$as_echo_n "checking for XCB... " >&6; }
33107
33108if test -n "$PKG_CONFIG"; then
33109    if test -n "$XCB_CFLAGS"; then
33110        pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
33111    else
33112        if test -n "$PKG_CONFIG" && \
33113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.10\""; } >&5
33114  ($PKG_CONFIG --exists --print-errors "xcb >= 1.10") 2>&5
33115  ac_status=$?
33116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33117  test $ac_status = 0; }; then
33118  pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.10" 2>/dev/null`
33119else
33120  pkg_failed=yes
33121fi
33122    fi
33123else
33124	pkg_failed=untried
33125fi
33126if test -n "$PKG_CONFIG"; then
33127    if test -n "$XCB_LIBS"; then
33128        pkg_cv_XCB_LIBS="$XCB_LIBS"
33129    else
33130        if test -n "$PKG_CONFIG" && \
33131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.10\""; } >&5
33132  ($PKG_CONFIG --exists --print-errors "xcb >= 1.10") 2>&5
33133  ac_status=$?
33134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33135  test $ac_status = 0; }; then
33136  pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.10" 2>/dev/null`
33137else
33138  pkg_failed=yes
33139fi
33140    fi
33141else
33142	pkg_failed=untried
33143fi
33144
33145
33146
33147if test $pkg_failed = yes; then
33148
33149if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33150        _pkg_short_errors_supported=yes
33151else
33152        _pkg_short_errors_supported=no
33153fi
33154        if test $_pkg_short_errors_supported = yes; then
33155	        XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb >= 1.10"`
33156        else
33157	        XCB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb >= 1.10"`
33158        fi
33159	# Put the nasty error message in config.log where it belongs
33160	echo "$XCB_PKG_ERRORS" >&5
33161
33162	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33163$as_echo "no" >&6; }
33164                GST_VULKAN_HAVE_WINDOW_XCB=0
33165elif test $pkg_failed = untried; then
33166	GST_VULKAN_HAVE_WINDOW_XCB=0
33167else
33168	XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
33169	XCB_LIBS=$pkg_cv_XCB_LIBS
33170        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33171$as_echo "yes" >&6; }
33172	GST_VULKAN_HAVE_WINDOW_XCB=1
33173fi
33174 if test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1"; then
33175  USE_XCB_TRUE=
33176  USE_XCB_FALSE='#'
33177else
33178  USE_XCB_TRUE='#'
33179  USE_XCB_FALSE=
33180fi
33181
33182
33183
33184pkg_failed=no
33185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VULKAN_WAYLAND" >&5
33186$as_echo_n "checking for VULKAN_WAYLAND... " >&6; }
33187
33188if test -n "$PKG_CONFIG"; then
33189    if test -n "$VULKAN_WAYLAND_CFLAGS"; then
33190        pkg_cv_VULKAN_WAYLAND_CFLAGS="$VULKAN_WAYLAND_CFLAGS"
33191    else
33192        if test -n "$PKG_CONFIG" && \
33193    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.4\""; } >&5
33194  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.4") 2>&5
33195  ac_status=$?
33196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33197  test $ac_status = 0; }; then
33198  pkg_cv_VULKAN_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.4" 2>/dev/null`
33199else
33200  pkg_failed=yes
33201fi
33202    fi
33203else
33204	pkg_failed=untried
33205fi
33206if test -n "$PKG_CONFIG"; then
33207    if test -n "$VULKAN_WAYLAND_LIBS"; then
33208        pkg_cv_VULKAN_WAYLAND_LIBS="$VULKAN_WAYLAND_LIBS"
33209    else
33210        if test -n "$PKG_CONFIG" && \
33211    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.4\""; } >&5
33212  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.4") 2>&5
33213  ac_status=$?
33214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33215  test $ac_status = 0; }; then
33216  pkg_cv_VULKAN_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.4" 2>/dev/null`
33217else
33218  pkg_failed=yes
33219fi
33220    fi
33221else
33222	pkg_failed=untried
33223fi
33224
33225
33226
33227if test $pkg_failed = yes; then
33228
33229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33230        _pkg_short_errors_supported=yes
33231else
33232        _pkg_short_errors_supported=no
33233fi
33234        if test $_pkg_short_errors_supported = yes; then
33235	        VULKAN_WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "wayland-client >= 1.4"`
33236        else
33237	        VULKAN_WAYLAND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "wayland-client >= 1.4"`
33238        fi
33239	# Put the nasty error message in config.log where it belongs
33240	echo "$VULKAN_WAYLAND_PKG_ERRORS" >&5
33241
33242	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33243$as_echo "no" >&6; }
33244                GST_VULKAN_HAVE_WINDOW_WAYLAND=0
33245elif test $pkg_failed = untried; then
33246	GST_VULKAN_HAVE_WINDOW_WAYLAND=0
33247else
33248	VULKAN_WAYLAND_CFLAGS=$pkg_cv_VULKAN_WAYLAND_CFLAGS
33249	VULKAN_WAYLAND_LIBS=$pkg_cv_VULKAN_WAYLAND_LIBS
33250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33251$as_echo "yes" >&6; }
33252	GST_VULKAN_HAVE_WINDOW_WAYLAND=1
33253fi
33254 if test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1"; then
33255  USE_WAYLAND_TRUE=
33256  USE_WAYLAND_FALSE='#'
33257else
33258  USE_WAYLAND_TRUE='#'
33259  USE_WAYLAND_FALSE=
33260fi
33261
33262VULKAN_CONFIG_DEFINES="
33263#define GST_VULKAN_HAVE_WINDOW_XCB $GST_VULKAN_HAVE_WINDOW_XCB
33264#define GST_VULKAN_HAVE_WINDOW_WAYLAND $GST_VULKAN_HAVE_WINDOW_WAYLAND"
33265
33266ac_config_commands="$ac_config_commands ext/vulkan/vkconfig.h"
33267
33268
33269
33270echo
33271{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: DirectSound ***" >&5
33272$as_echo "$as_me: *** checking feature: DirectSound ***" >&6;}
33273if test "xdirectsoundsrc" != "x"
33274then
33275  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: directsoundsrc ***" >&5
33276$as_echo "$as_me: *** for plug-ins: directsoundsrc ***" >&6;}
33277fi
33278NOUSE=
33279if test "x$USE_DIRECTSOUND" = "xno"; then
33280  NOUSE="yes"
33281fi
33282# Check whether --enable-directsound was given.
33283if test "${enable_directsound+set}" = set; then :
33284  enableval=$enable_directsound;  case "${enableval}" in
33285      yes) USE_DIRECTSOUND=yes;;
33286      no) USE_DIRECTSOUND=no;;
33287      *) as_fn_error $? "bad value ${enableval} for --enable-directsound" "$LINENO" 5 ;;
33288    esac
33289else
33290   USE_DIRECTSOUND=yes
33291fi
33292
33293if test "x$NOUSE" = "xyes"; then
33294  USE_DIRECTSOUND="no"
33295  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** directsoundsrc pre-configured not to be built" >&5
33296$as_echo "$as_me: WARNING: *** directsoundsrc pre-configured not to be built" >&2;}
33297fi
33298NOUSE=
33299
33300if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DIRECTSOUND " > /dev/null; then
33301  USE_DIRECTSOUND="no"
33302  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** directsoundsrc not ported" >&5
33303$as_echo "$as_me: WARNING: *** directsoundsrc not ported" >&2;}
33304fi
33305
33306
33307if test x$USE_DIRECTSOUND = xyes; then
33308
33309  gst_check_save_LIBS=$LIBS
33310  gst_check_save_LDFLAGS=$LDFLAGS
33311  gst_check_save_CFLAGS=$CFLAGS
33312  gst_check_save_CPPFLAGS=$CPPFLAGS
33313  gst_check_save_CXXFLAGS=$CXXFLAGS
33314
33315  HAVE_DIRECTSOUND=no
33316
33317  HAVE_DIRECTSOUND="no"
33318  save_CFLAGS="$CFLAGS"
33319  save_LDFLAGS="$LDFLAGS"
33320  save_LIBS="$LIBS"
33321  CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
33322  LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
33323  LIBS="$LIBS -lwinmm -ldsound -ldxerr9 -luser32"
33324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectSound LDFLAGS" >&5
33325$as_echo_n "checking for DirectSound LDFLAGS... " >&6; }
33326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33327/* end confdefs.h.  */
33328
33329#include <windows.h>
33330#include <dxerr9.h>
33331#include <dsound.h>
33332#include <mmsystem.h>
33333
33334int
33335main ()
33336{
33337
33338  DXGetErrorString9 (0);
33339  DirectSoundCreate(NULL, NULL, NULL);
33340
33341  ;
33342  return 0;
33343}
33344_ACEOF
33345if ac_fn_c_try_link "$LINENO"; then :
33346  HAVE_DIRECTSOUND="yes"
33347else
33348  HAVE_DIRECTSOUND="no"
33349fi
33350rm -f core conftest.err conftest.$ac_objext \
33351    conftest$ac_exeext conftest.$ac_ext
33352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DIRECTSOUND" >&5
33353$as_echo "$HAVE_DIRECTSOUND" >&6; }
33354  CFLAGS=$save_CFLAGS
33355  LDFLAGS=$save_LDFLAGS
33356  LIBS=$save_LIBS
33357
33358  if test "x$HAVE_DIRECTSOUND" = "xyes";  then
33359        DIRECTSOUND_LIBS="-lwinmm -ldsound -ldxerr9 -luser32"
33360
33361
33362
33363  fi
33364
33365
33366
33367  LIBS=$gst_check_save_LIBS
33368  LDFLAGS=$gst_check_save_LDFLAGS
33369  CFLAGS=$gst_check_save_CFLAGS
33370  CPPFLAGS=$gst_check_save_CPPFLAGS
33371  CXXFLAGS=$gst_check_save_CXXFLAGS
33372
33373    if test x$HAVE_DIRECTSOUND = xno; then
33374    USE_DIRECTSOUND=no
33375  else
33376    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: directsoundsrc" >&5
33377$as_echo "$as_me: *** These plugins will be built: directsoundsrc" >&6;}
33378  fi
33379fi
33380if test x$USE_DIRECTSOUND = xyes; then
33381  :
33382  if test "xdirectsoundsrc" != "x"; then
33383    GST_PLUGINS_YES="\tdirectsoundsrc\n$GST_PLUGINS_YES"
33384  fi
33385
33386$as_echo "#define HAVE_DIRECTSOUND /**/" >>confdefs.h
33387
33388else
33389  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: directsoundsrc" >&5
33390$as_echo "$as_me: *** These plugins will not be built: directsoundsrc" >&6;}
33391  if test "xdirectsoundsrc" != "x"; then
33392    GST_PLUGINS_NO="\tdirectsoundsrc\n$GST_PLUGINS_NO"
33393  fi
33394  :
33395fi
33396 if test x$USE_DIRECTSOUND = xyes; then
33397  USE_DIRECTSOUND_TRUE=
33398  USE_DIRECTSOUND_FALSE='#'
33399else
33400  USE_DIRECTSOUND_TRUE='#'
33401  USE_DIRECTSOUND_FALSE=
33402fi
33403
33404
33405
33406echo
33407{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: WASAPI plug-in ***" >&5
33408$as_echo "$as_me: *** checking feature: WASAPI plug-in ***" >&6;}
33409if test "xwasapi" != "x"
33410then
33411  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: wasapi ***" >&5
33412$as_echo "$as_me: *** for plug-ins: wasapi ***" >&6;}
33413fi
33414NOUSE=
33415if test "x$USE_WASAPI" = "xno"; then
33416  NOUSE="yes"
33417fi
33418# Check whether --enable-wasapi was given.
33419if test "${enable_wasapi+set}" = set; then :
33420  enableval=$enable_wasapi;  case "${enableval}" in
33421      yes) USE_WASAPI=yes;;
33422      no) USE_WASAPI=no;;
33423      *) as_fn_error $? "bad value ${enableval} for --enable-wasapi" "$LINENO" 5 ;;
33424    esac
33425else
33426   USE_WASAPI=yes
33427fi
33428
33429if test "x$NOUSE" = "xyes"; then
33430  USE_WASAPI="no"
33431  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wasapi pre-configured not to be built" >&5
33432$as_echo "$as_me: WARNING: *** wasapi pre-configured not to be built" >&2;}
33433fi
33434NOUSE=
33435
33436if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WASAPI " > /dev/null; then
33437  USE_WASAPI="no"
33438  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wasapi not ported" >&5
33439$as_echo "$as_me: WARNING: *** wasapi not ported" >&2;}
33440fi
33441
33442
33443if test x$USE_WASAPI = xyes; then
33444
33445  gst_check_save_LIBS=$LIBS
33446  gst_check_save_LDFLAGS=$LDFLAGS
33447  gst_check_save_CFLAGS=$CFLAGS
33448  gst_check_save_CPPFLAGS=$CPPFLAGS
33449  gst_check_save_CXXFLAGS=$CXXFLAGS
33450
33451  HAVE_WASAPI=no
33452
33453  HAVE_WASAPI="no"
33454  save_CFLAGS="$CFLAGS"
33455  save_LDFLAGS="$LDFLAGS"
33456  save_LIBS="$LIBS"
33457  CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
33458  LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
33459  LIBS="$LIBS -lole32 -lwinmm -lksuser"
33460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASAPI LDFLAGS" >&5
33461$as_echo_n "checking for WASAPI LDFLAGS... " >&6; }
33462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33463/* end confdefs.h.  */
33464
33465#include <windows.h>
33466#include <stdio.h>
33467#include <mmsystem.h>
33468#include <mmdeviceapi.h>
33469
33470int
33471main ()
33472{
33473
33474int main ()
33475{
33476    HRESULT hr = S_OK;
33477
33478    hr = CoInitialize(NULL);
33479    if (FAILED(hr)) {
33480        printf("CoInitialize failed: hr = 0x%08x", hr);
33481        return __LINE__;
33482    }
33483
33484	int result = 0;
33485    // result = do_everything(argc, argv);
33486
33487    CoUninitialize();
33488    return result;
33489}
33490
33491  ;
33492  return 0;
33493}
33494_ACEOF
33495if ac_fn_c_try_link "$LINENO"; then :
33496  HAVE_WASAPI="yes"
33497else
33498  HAVE_WASAPI="no"
33499fi
33500rm -f core conftest.err conftest.$ac_objext \
33501    conftest$ac_exeext conftest.$ac_ext
33502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WASAPI" >&5
33503$as_echo "$HAVE_WASAPI" >&6; }
33504  CFLAGS=$save_CFLAGS
33505  LDFLAGS=$save_LDFLAGS
33506  LIBS=$save_LIBS
33507
33508  if test "x$HAVE_WASAPI" = "xyes";  then
33509    WASAPI_LIBS="-lole32 -lwinmm -lksuser"
33510
33511  fi
33512
33513
33514
33515  LIBS=$gst_check_save_LIBS
33516  LDFLAGS=$gst_check_save_LDFLAGS
33517  CFLAGS=$gst_check_save_CFLAGS
33518  CPPFLAGS=$gst_check_save_CPPFLAGS
33519  CXXFLAGS=$gst_check_save_CXXFLAGS
33520
33521    if test x$HAVE_WASAPI = xno; then
33522    USE_WASAPI=no
33523  else
33524    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: wasapi" >&5
33525$as_echo "$as_me: *** These plugins will be built: wasapi" >&6;}
33526  fi
33527fi
33528if test x$USE_WASAPI = xyes; then
33529  :
33530  if test "xwasapi" != "x"; then
33531    GST_PLUGINS_YES="\twasapi\n$GST_PLUGINS_YES"
33532  fi
33533
33534$as_echo "#define HAVE_WASAPI /**/" >>confdefs.h
33535
33536else
33537  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: wasapi" >&5
33538$as_echo "$as_me: *** These plugins will not be built: wasapi" >&6;}
33539  if test "xwasapi" != "x"; then
33540    GST_PLUGINS_NO="\twasapi\n$GST_PLUGINS_NO"
33541  fi
33542  :
33543fi
33544 if test x$USE_WASAPI = xyes; then
33545  USE_WASAPI_TRUE=
33546  USE_WASAPI_FALSE='#'
33547else
33548  USE_WASAPI_TRUE='#'
33549  USE_WASAPI_FALSE=
33550fi
33551
33552
33553
33554echo
33555{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Direct3D plug-in ***" >&5
33556$as_echo "$as_me: *** checking feature: Direct3D plug-in ***" >&6;}
33557if test "xdirect3dsink" != "x"
33558then
33559  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: direct3dsink ***" >&5
33560$as_echo "$as_me: *** for plug-ins: direct3dsink ***" >&6;}
33561fi
33562NOUSE=
33563if test "x$USE_DIRECT3D" = "xno"; then
33564  NOUSE="yes"
33565fi
33566# Check whether --enable-direct3d was given.
33567if test "${enable_direct3d+set}" = set; then :
33568  enableval=$enable_direct3d;  case "${enableval}" in
33569      yes) USE_DIRECT3D=yes;;
33570      no) USE_DIRECT3D=no;;
33571      *) as_fn_error $? "bad value ${enableval} for --enable-direct3d" "$LINENO" 5 ;;
33572    esac
33573else
33574   USE_DIRECT3D=yes
33575fi
33576
33577if test "x$NOUSE" = "xyes"; then
33578  USE_DIRECT3D="no"
33579  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** direct3dsink pre-configured not to be built" >&5
33580$as_echo "$as_me: WARNING: *** direct3dsink pre-configured not to be built" >&2;}
33581fi
33582NOUSE=
33583
33584if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DIRECT3D " > /dev/null; then
33585  USE_DIRECT3D="no"
33586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** direct3dsink not ported" >&5
33587$as_echo "$as_me: WARNING: *** direct3dsink not ported" >&2;}
33588fi
33589
33590
33591if test x$USE_DIRECT3D = xyes; then
33592
33593  gst_check_save_LIBS=$LIBS
33594  gst_check_save_LDFLAGS=$LDFLAGS
33595  gst_check_save_CFLAGS=$CFLAGS
33596  gst_check_save_CPPFLAGS=$CPPFLAGS
33597  gst_check_save_CXXFLAGS=$CXXFLAGS
33598
33599  HAVE_DIRECT3D=no
33600
33601  HAVE_DIRECT3D="no"
33602  save_CFLAGS="$CFLAGS"
33603  save_LDFLAGS="$LDFLAGS"
33604  save_LIBS="$LIBS"
33605  CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
33606  LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
33607  LIBS="$LIBS -ld3d9 -lgdi32"
33608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Direct3D LDFLAGS" >&5
33609$as_echo_n "checking for Direct3D LDFLAGS... " >&6; }
33610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33611/* end confdefs.h.  */
33612
33613#include <windows.h>
33614#include <d3d9.h>
33615
33616int
33617main ()
33618{
33619
33620  Direct3DCreate9(D3D_SDK_VERSION);
33621
33622  ;
33623  return 0;
33624}
33625_ACEOF
33626if ac_fn_c_try_link "$LINENO"; then :
33627  HAVE_DIRECT3D="yes"
33628else
33629  HAVE_DIRECT3D="no"
33630fi
33631rm -f core conftest.err conftest.$ac_objext \
33632    conftest$ac_exeext conftest.$ac_ext
33633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DIRECT3D" >&5
33634$as_echo "$HAVE_DIRECT3D" >&6; }
33635  CFLAGS=$save_CFLAGS
33636  LDFLAGS=$save_LDFLAGS
33637  LIBS=$save_LIBS
33638
33639  if test "x$HAVE_DIRECT3D" = "xyes";  then
33640    DIRECT3D_LIBS="-ld3d9 -lgdi32"
33641
33642  fi
33643
33644
33645
33646  LIBS=$gst_check_save_LIBS
33647  LDFLAGS=$gst_check_save_LDFLAGS
33648  CFLAGS=$gst_check_save_CFLAGS
33649  CPPFLAGS=$gst_check_save_CPPFLAGS
33650  CXXFLAGS=$gst_check_save_CXXFLAGS
33651
33652    if test x$HAVE_DIRECT3D = xno; then
33653    USE_DIRECT3D=no
33654  else
33655    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: direct3dsink" >&5
33656$as_echo "$as_me: *** These plugins will be built: direct3dsink" >&6;}
33657  fi
33658fi
33659if test x$USE_DIRECT3D = xyes; then
33660  :
33661  if test "xdirect3dsink" != "x"; then
33662    GST_PLUGINS_YES="\tdirect3dsink\n$GST_PLUGINS_YES"
33663  fi
33664
33665$as_echo "#define HAVE_DIRECT3D /**/" >>confdefs.h
33666
33667else
33668  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: direct3dsink" >&5
33669$as_echo "$as_me: *** These plugins will not be built: direct3dsink" >&6;}
33670  if test "xdirect3dsink" != "x"; then
33671    GST_PLUGINS_NO="\tdirect3dsink\n$GST_PLUGINS_NO"
33672  fi
33673  :
33674fi
33675 if test x$USE_DIRECT3D = xyes; then
33676  USE_DIRECT3D_TRUE=
33677  USE_DIRECT3D_FALSE='#'
33678else
33679  USE_DIRECT3D_TRUE='#'
33680  USE_DIRECT3D_FALSE=
33681fi
33682
33683
33684
33685echo
33686{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: winscreencap plug-in ***" >&5
33687$as_echo "$as_me: *** checking feature: winscreencap plug-in ***" >&6;}
33688if test "xwinscreencap" != "x"
33689then
33690  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: winscreencap ***" >&5
33691$as_echo "$as_me: *** for plug-ins: winscreencap ***" >&6;}
33692fi
33693NOUSE=
33694if test "x$USE_WINSCREENCAP" = "xno"; then
33695  NOUSE="yes"
33696fi
33697# Check whether --enable-winscreencap was given.
33698if test "${enable_winscreencap+set}" = set; then :
33699  enableval=$enable_winscreencap;  case "${enableval}" in
33700      yes) USE_WINSCREENCAP=yes;;
33701      no) USE_WINSCREENCAP=no;;
33702      *) as_fn_error $? "bad value ${enableval} for --enable-winscreencap" "$LINENO" 5 ;;
33703    esac
33704else
33705   USE_WINSCREENCAP=yes
33706fi
33707
33708if test "x$NOUSE" = "xyes"; then
33709  USE_WINSCREENCAP="no"
33710  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** winscreencap pre-configured not to be built" >&5
33711$as_echo "$as_me: WARNING: *** winscreencap pre-configured not to be built" >&2;}
33712fi
33713NOUSE=
33714
33715if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WINSCREENCAP " > /dev/null; then
33716  USE_WINSCREENCAP="no"
33717  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** winscreencap not ported" >&5
33718$as_echo "$as_me: WARNING: *** winscreencap not ported" >&2;}
33719fi
33720
33721
33722if test x$USE_WINSCREENCAP = xyes; then
33723
33724  gst_check_save_LIBS=$LIBS
33725  gst_check_save_LDFLAGS=$LDFLAGS
33726  gst_check_save_CFLAGS=$CFLAGS
33727  gst_check_save_CPPFLAGS=$CPPFLAGS
33728  gst_check_save_CXXFLAGS=$CXXFLAGS
33729
33730  HAVE_WINSCREENCAP=no
33731
33732  HAVE_WINSCREENCAP="no"
33733  save_CFLAGS="$CFLAGS"
33734  save_LDFLAGS="$LDFLAGS"
33735  save_LIBS="$LIBS"
33736  CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
33737  LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
33738  LIBS="$LIBS -ld3d9 -lgdi32"
33739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Direct3D LDFLAGS" >&5
33740$as_echo_n "checking for Direct3D LDFLAGS... " >&6; }
33741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33742/* end confdefs.h.  */
33743
33744#include <windows.h>
33745#include <d3d9.h>
33746
33747int
33748main ()
33749{
33750
33751  Direct3DCreate9(D3D_SDK_VERSION);
33752
33753  ;
33754  return 0;
33755}
33756_ACEOF
33757if ac_fn_c_try_link "$LINENO"; then :
33758  HAVE_WINSCREENCAP="yes"
33759else
33760  HAVE_WINSCREENCAP="no"
33761fi
33762rm -f core conftest.err conftest.$ac_objext \
33763    conftest$ac_exeext conftest.$ac_ext
33764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINSCREENCAP" >&5
33765$as_echo "$HAVE_WINSCREENCAP" >&6; }
33766  CFLAGS=$save_CFLAGS
33767  LDFLAGS=$save_LDFLAGS
33768  LIBS=$save_LIBS
33769
33770  if test "x$HAVE_WINSCREENCAP" = "xyes";  then
33771    WINSCREENCAP_LIBS="-ld3d9 -lgdi32"
33772
33773  fi
33774
33775
33776
33777  LIBS=$gst_check_save_LIBS
33778  LDFLAGS=$gst_check_save_LDFLAGS
33779  CFLAGS=$gst_check_save_CFLAGS
33780  CPPFLAGS=$gst_check_save_CPPFLAGS
33781  CXXFLAGS=$gst_check_save_CXXFLAGS
33782
33783    if test x$HAVE_WINSCREENCAP = xno; then
33784    USE_WINSCREENCAP=no
33785  else
33786    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: winscreencap" >&5
33787$as_echo "$as_me: *** These plugins will be built: winscreencap" >&6;}
33788  fi
33789fi
33790if test x$USE_WINSCREENCAP = xyes; then
33791  :
33792  if test "xwinscreencap" != "x"; then
33793    GST_PLUGINS_YES="\twinscreencap\n$GST_PLUGINS_YES"
33794  fi
33795
33796$as_echo "#define HAVE_WINSCREENCAP /**/" >>confdefs.h
33797
33798else
33799  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: winscreencap" >&5
33800$as_echo "$as_me: *** These plugins will not be built: winscreencap" >&6;}
33801  if test "xwinscreencap" != "x"; then
33802    GST_PLUGINS_NO="\twinscreencap\n$GST_PLUGINS_NO"
33803  fi
33804  :
33805fi
33806 if test x$USE_WINSCREENCAP = xyes; then
33807  USE_WINSCREENCAP_TRUE=
33808  USE_WINSCREENCAP_FALSE='#'
33809else
33810  USE_WINSCREENCAP_TRUE='#'
33811  USE_WINSCREENCAP_FALSE=
33812fi
33813
33814
33815
33816echo
33817{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Winks plug-in ***" >&5
33818$as_echo "$as_me: *** checking feature: Winks plug-in ***" >&6;}
33819if test "xwinks" != "x"
33820then
33821  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: winks ***" >&5
33822$as_echo "$as_me: *** for plug-ins: winks ***" >&6;}
33823fi
33824NOUSE=
33825if test "x$USE_WINKS" = "xno"; then
33826  NOUSE="yes"
33827fi
33828# Check whether --enable-winks was given.
33829if test "${enable_winks+set}" = set; then :
33830  enableval=$enable_winks;  case "${enableval}" in
33831      yes) USE_WINKS=yes;;
33832      no) USE_WINKS=no;;
33833      *) as_fn_error $? "bad value ${enableval} for --enable-winks" "$LINENO" 5 ;;
33834    esac
33835else
33836   USE_WINKS=yes
33837fi
33838
33839if test "x$NOUSE" = "xyes"; then
33840  USE_WINKS="no"
33841  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** winks pre-configured not to be built" >&5
33842$as_echo "$as_me: WARNING: *** winks pre-configured not to be built" >&2;}
33843fi
33844NOUSE=
33845
33846if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WINKS " > /dev/null; then
33847  USE_WINKS="no"
33848  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** winks not ported" >&5
33849$as_echo "$as_me: WARNING: *** winks not ported" >&2;}
33850fi
33851
33852
33853if test x$USE_WINKS = xyes; then
33854
33855  gst_check_save_LIBS=$LIBS
33856  gst_check_save_LDFLAGS=$LDFLAGS
33857  gst_check_save_CFLAGS=$CFLAGS
33858  gst_check_save_CPPFLAGS=$CPPFLAGS
33859  gst_check_save_CXXFLAGS=$CXXFLAGS
33860
33861  HAVE_WINKS=no
33862
33863  HAVE_WINKS="no"
33864  save_CFLAGS="$CFLAGS"
33865  save_LDFLAGS="$LDFLAGS"
33866  save_LIBS="$LIBS"
33867  CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
33868  LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
33869  LIBS="$LIBS -lole32 -luuid -lstrmiids"
33870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Winks LDFLAGS" >&5
33871$as_echo_n "checking for Winks LDFLAGS... " >&6; }
33872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33873/* end confdefs.h.  */
33874
33875#include <windows.h>
33876#include <strmif.h>
33877#include <uuids.h>
33878
33879int
33880main ()
33881{
33882
33883int main () {
33884  IGraphBuilder *pGraph = NULL;
33885  HRESULT hr = CoInitialize(NULL);
33886  hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
33887                        &IID_IGraphBuilder, (void **)&pGraph);
33888
33889  return 0;
33890}
33891
33892  ;
33893  return 0;
33894}
33895_ACEOF
33896if ac_fn_c_try_link "$LINENO"; then :
33897  HAVE_WINKS="yes"
33898else
33899  HAVE_WINKS="no"
33900fi
33901rm -f core conftest.err conftest.$ac_objext \
33902    conftest$ac_exeext conftest.$ac_ext
33903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINKS" >&5
33904$as_echo "$HAVE_WINKS" >&6; }
33905  CFLAGS=$save_CFLAGS
33906  LDFLAGS=$save_LDFLAGS
33907  LIBS=$save_LIBS
33908
33909  if test "x$HAVE_WINKS" = "xyes";  then
33910        WINKS_LIBS="-ldxguid -lole32 -luuid -lstrmiids -lksuser -lsetupapi"
33911
33912
33913
33914  fi
33915
33916
33917
33918  LIBS=$gst_check_save_LIBS
33919  LDFLAGS=$gst_check_save_LDFLAGS
33920  CFLAGS=$gst_check_save_CFLAGS
33921  CPPFLAGS=$gst_check_save_CPPFLAGS
33922  CXXFLAGS=$gst_check_save_CXXFLAGS
33923
33924    if test x$HAVE_WINKS = xno; then
33925    USE_WINKS=no
33926  else
33927    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: winks" >&5
33928$as_echo "$as_me: *** These plugins will be built: winks" >&6;}
33929  fi
33930fi
33931if test x$USE_WINKS = xyes; then
33932  :
33933  if test "xwinks" != "x"; then
33934    GST_PLUGINS_YES="\twinks\n$GST_PLUGINS_YES"
33935  fi
33936
33937$as_echo "#define HAVE_WINKS /**/" >>confdefs.h
33938
33939else
33940  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: winks" >&5
33941$as_echo "$as_me: *** These plugins will not be built: winks" >&6;}
33942  if test "xwinks" != "x"; then
33943    GST_PLUGINS_NO="\twinks\n$GST_PLUGINS_NO"
33944  fi
33945  :
33946fi
33947 if test x$USE_WINKS = xyes; then
33948  USE_WINKS_TRUE=
33949  USE_WINKS_FALSE='#'
33950else
33951  USE_WINKS_TRUE='#'
33952  USE_WINKS_FALSE=
33953fi
33954
33955
33956
33957HAVE_ANDROID_MEDIA="no"
33958echo
33959{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Android Media ***" >&5
33960$as_echo "$as_me: *** checking feature: Android Media ***" >&6;}
33961if test "xandroidmedia" != "x"
33962then
33963  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: androidmedia ***" >&5
33964$as_echo "$as_me: *** for plug-ins: androidmedia ***" >&6;}
33965fi
33966NOUSE=
33967if test "x$USE_ANDROID_MEDIA" = "xno"; then
33968  NOUSE="yes"
33969fi
33970# Check whether --enable-android_media was given.
33971if test "${enable_android_media+set}" = set; then :
33972  enableval=$enable_android_media;  case "${enableval}" in
33973      yes) USE_ANDROID_MEDIA=yes;;
33974      no) USE_ANDROID_MEDIA=no;;
33975      *) as_fn_error $? "bad value ${enableval} for --enable-android_media" "$LINENO" 5 ;;
33976    esac
33977else
33978   USE_ANDROID_MEDIA=yes
33979fi
33980
33981if test "x$NOUSE" = "xyes"; then
33982  USE_ANDROID_MEDIA="no"
33983  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** androidmedia pre-configured not to be built" >&5
33984$as_echo "$as_me: WARNING: *** androidmedia pre-configured not to be built" >&2;}
33985fi
33986NOUSE=
33987
33988if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ANDROID_MEDIA " > /dev/null; then
33989  USE_ANDROID_MEDIA="no"
33990  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** androidmedia not ported" >&5
33991$as_echo "$as_me: WARNING: *** androidmedia not ported" >&2;}
33992fi
33993
33994
33995if test x$USE_ANDROID_MEDIA = xyes; then
33996
33997  gst_check_save_LIBS=$LIBS
33998  gst_check_save_LDFLAGS=$LDFLAGS
33999  gst_check_save_CFLAGS=$CFLAGS
34000  gst_check_save_CPPFLAGS=$CPPFLAGS
34001  gst_check_save_CXXFLAGS=$CXXFLAGS
34002
34003  HAVE_ANDROID_MEDIA=no
34004
34005  case "$host" in
34006    *android*)
34007      ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
34008if test "x$ac_cv_header_jni_h" = xyes; then :
34009  HAVE_ANDROID_MEDIA="yes"
34010else
34011  HAVE_ANDROID_MEDIA="no"
34012fi
34013
34014
34015      ;;
34016    *)
34017      HAVE_ANDROID_MEDIA="no"
34018      ;;
34019  esac
34020
34021
34022  LIBS=$gst_check_save_LIBS
34023  LDFLAGS=$gst_check_save_LDFLAGS
34024  CFLAGS=$gst_check_save_CFLAGS
34025  CPPFLAGS=$gst_check_save_CPPFLAGS
34026  CXXFLAGS=$gst_check_save_CXXFLAGS
34027
34028    if test x$HAVE_ANDROID_MEDIA = xno; then
34029    USE_ANDROID_MEDIA=no
34030  else
34031    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: androidmedia" >&5
34032$as_echo "$as_me: *** These plugins will be built: androidmedia" >&6;}
34033  fi
34034fi
34035if test x$USE_ANDROID_MEDIA = xyes; then
34036  :
34037  if test "xandroidmedia" != "x"; then
34038    GST_PLUGINS_YES="\tandroidmedia\n$GST_PLUGINS_YES"
34039  fi
34040
34041$as_echo "#define HAVE_ANDROID_MEDIA /**/" >>confdefs.h
34042
34043else
34044  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: androidmedia" >&5
34045$as_echo "$as_me: *** These plugins will not be built: androidmedia" >&6;}
34046  if test "xandroidmedia" != "x"; then
34047    GST_PLUGINS_NO="\tandroidmedia\n$GST_PLUGINS_NO"
34048  fi
34049  :
34050fi
34051 if test x$USE_ANDROID_MEDIA = xyes; then
34052  USE_ANDROID_MEDIA_TRUE=
34053  USE_ANDROID_MEDIA_FALSE='#'
34054else
34055  USE_ANDROID_MEDIA_TRUE='#'
34056  USE_ANDROID_MEDIA_FALSE=
34057fi
34058
34059
34060
34061HAVE_APPLE_MEDIA="no"
34062echo
34063{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Apple video ***" >&5
34064$as_echo "$as_me: *** checking feature: Apple video ***" >&6;}
34065if test "xapplemedia" != "x"
34066then
34067  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: applemedia ***" >&5
34068$as_echo "$as_me: *** for plug-ins: applemedia ***" >&6;}
34069fi
34070NOUSE=
34071if test "x$USE_APPLE_MEDIA" = "xno"; then
34072  NOUSE="yes"
34073fi
34074# Check whether --enable-apple_media was given.
34075if test "${enable_apple_media+set}" = set; then :
34076  enableval=$enable_apple_media;  case "${enableval}" in
34077      yes) USE_APPLE_MEDIA=yes;;
34078      no) USE_APPLE_MEDIA=no;;
34079      *) as_fn_error $? "bad value ${enableval} for --enable-apple_media" "$LINENO" 5 ;;
34080    esac
34081else
34082   USE_APPLE_MEDIA=yes
34083fi
34084
34085if test "x$NOUSE" = "xyes"; then
34086  USE_APPLE_MEDIA="no"
34087  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** applemedia pre-configured not to be built" >&5
34088$as_echo "$as_me: WARNING: *** applemedia pre-configured not to be built" >&2;}
34089fi
34090NOUSE=
34091
34092if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " APPLE_MEDIA " > /dev/null; then
34093  USE_APPLE_MEDIA="no"
34094  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** applemedia not ported" >&5
34095$as_echo "$as_me: WARNING: *** applemedia not ported" >&2;}
34096fi
34097
34098
34099if test x$USE_APPLE_MEDIA = xyes; then
34100
34101  gst_check_save_LIBS=$LIBS
34102  gst_check_save_LDFLAGS=$LDFLAGS
34103  gst_check_save_CFLAGS=$CFLAGS
34104  gst_check_save_CPPFLAGS=$CPPFLAGS
34105  gst_check_save_CXXFLAGS=$CXXFLAGS
34106
34107  HAVE_APPLE_MEDIA=no
34108
34109  ac_fn_c_check_header_mongrel "$LINENO" "SystemConfiguration/SystemConfiguration.h" "ac_cv_header_SystemConfiguration_SystemConfiguration_h" "$ac_includes_default"
34110if test "x$ac_cv_header_SystemConfiguration_SystemConfiguration_h" = xyes; then :
34111  HAVE_APPLE_MEDIA="yes"
34112else
34113  HAVE_APPLE_MEDIA="no"
34114fi
34115
34116
34117    if test "x$HAVE_IOS" = "xno"; then
34118    ac_fn_c_check_header_mongrel "$LINENO" "VideoToolbox/VideoToolbox.h" "ac_cv_header_VideoToolbox_VideoToolbox_h" "$ac_includes_default"
34119if test "x$ac_cv_header_VideoToolbox_VideoToolbox_h" = xyes; then :
34120
34121else
34122  HAVE_APPLE_MEDIA="no"
34123fi
34124
34125
34126  fi
34127
34128
34129  LIBS=$gst_check_save_LIBS
34130  LDFLAGS=$gst_check_save_LDFLAGS
34131  CFLAGS=$gst_check_save_CFLAGS
34132  CPPFLAGS=$gst_check_save_CPPFLAGS
34133  CXXFLAGS=$gst_check_save_CXXFLAGS
34134
34135    if test x$HAVE_APPLE_MEDIA = xno; then
34136    USE_APPLE_MEDIA=no
34137  else
34138    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: applemedia" >&5
34139$as_echo "$as_me: *** These plugins will be built: applemedia" >&6;}
34140  fi
34141fi
34142if test x$USE_APPLE_MEDIA = xyes; then
34143  :
34144  if test "xapplemedia" != "x"; then
34145    GST_PLUGINS_YES="\tapplemedia\n$GST_PLUGINS_YES"
34146  fi
34147
34148$as_echo "#define HAVE_APPLE_MEDIA /**/" >>confdefs.h
34149
34150else
34151  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: applemedia" >&5
34152$as_echo "$as_me: *** These plugins will not be built: applemedia" >&6;}
34153  if test "xapplemedia" != "x"; then
34154    GST_PLUGINS_NO="\tapplemedia\n$GST_PLUGINS_NO"
34155  fi
34156  :
34157fi
34158 if test x$USE_APPLE_MEDIA = xyes; then
34159  USE_APPLE_MEDIA_TRUE=
34160  USE_APPLE_MEDIA_FALSE='#'
34161else
34162  USE_APPLE_MEDIA_TRUE='#'
34163  USE_APPLE_MEDIA_FALSE=
34164fi
34165
34166
34167
34168case "$host" in
34169  *-*darwin*)
34170    ;;
34171  *)
34172    HAVE_APPLE_MEDIA="no"
34173    ;;
34174esac
34175
34176echo
34177{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Bluez ***" >&5
34178$as_echo "$as_me: *** checking feature: Bluez ***" >&6;}
34179if test "xbluez" != "x"
34180then
34181  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: bluez ***" >&5
34182$as_echo "$as_me: *** for plug-ins: bluez ***" >&6;}
34183fi
34184NOUSE=
34185if test "x$USE_BLUEZ" = "xno"; then
34186  NOUSE="yes"
34187fi
34188# Check whether --enable-bluez was given.
34189if test "${enable_bluez+set}" = set; then :
34190  enableval=$enable_bluez;  case "${enableval}" in
34191      yes) USE_BLUEZ=yes;;
34192      no) USE_BLUEZ=no;;
34193      *) as_fn_error $? "bad value ${enableval} for --enable-bluez" "$LINENO" 5 ;;
34194    esac
34195else
34196   USE_BLUEZ=yes
34197fi
34198
34199if test "x$NOUSE" = "xyes"; then
34200  USE_BLUEZ="no"
34201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bluez pre-configured not to be built" >&5
34202$as_echo "$as_me: WARNING: *** bluez pre-configured not to be built" >&2;}
34203fi
34204NOUSE=
34205
34206if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " BLUEZ " > /dev/null; then
34207  USE_BLUEZ="no"
34208  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bluez not ported" >&5
34209$as_echo "$as_me: WARNING: *** bluez not ported" >&2;}
34210fi
34211
34212
34213if test x$USE_BLUEZ = xyes; then
34214
34215  gst_check_save_LIBS=$LIBS
34216  gst_check_save_LDFLAGS=$LDFLAGS
34217  gst_check_save_CFLAGS=$CFLAGS
34218  gst_check_save_CPPFLAGS=$CPPFLAGS
34219  gst_check_save_CXXFLAGS=$CXXFLAGS
34220
34221  HAVE_BLUEZ=no
34222
34223
34224pkg_failed=no
34225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BLUEZ5" >&5
34226$as_echo_n "checking for BLUEZ5... " >&6; }
34227
34228if test -n "$PKG_CONFIG"; then
34229    if test -n "$BLUEZ5_CFLAGS"; then
34230        pkg_cv_BLUEZ5_CFLAGS="$BLUEZ5_CFLAGS"
34231    else
34232        if test -n "$PKG_CONFIG" && \
34233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 5.0\""; } >&5
34234  ($PKG_CONFIG --exists --print-errors "bluez >= 5.0") 2>&5
34235  ac_status=$?
34236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34237  test $ac_status = 0; }; then
34238  pkg_cv_BLUEZ5_CFLAGS=`$PKG_CONFIG --cflags "bluez >= 5.0" 2>/dev/null`
34239else
34240  pkg_failed=yes
34241fi
34242    fi
34243else
34244	pkg_failed=untried
34245fi
34246if test -n "$PKG_CONFIG"; then
34247    if test -n "$BLUEZ5_LIBS"; then
34248        pkg_cv_BLUEZ5_LIBS="$BLUEZ5_LIBS"
34249    else
34250        if test -n "$PKG_CONFIG" && \
34251    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bluez >= 5.0\""; } >&5
34252  ($PKG_CONFIG --exists --print-errors "bluez >= 5.0") 2>&5
34253  ac_status=$?
34254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34255  test $ac_status = 0; }; then
34256  pkg_cv_BLUEZ5_LIBS=`$PKG_CONFIG --libs "bluez >= 5.0" 2>/dev/null`
34257else
34258  pkg_failed=yes
34259fi
34260    fi
34261else
34262	pkg_failed=untried
34263fi
34264
34265
34266
34267if test $pkg_failed = yes; then
34268
34269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34270        _pkg_short_errors_supported=yes
34271else
34272        _pkg_short_errors_supported=no
34273fi
34274        if test $_pkg_short_errors_supported = yes; then
34275	        BLUEZ5_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez >= 5.0"`
34276        else
34277	        BLUEZ5_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez >= 5.0"`
34278        fi
34279	# Put the nasty error message in config.log where it belongs
34280	echo "$BLUEZ5_PKG_ERRORS" >&5
34281
34282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34283$as_echo "no" >&6; }
34284
34285    HAVE_BLUEZ=no
34286
34287elif test $pkg_failed = untried; then
34288
34289    HAVE_BLUEZ=no
34290
34291else
34292	BLUEZ5_CFLAGS=$pkg_cv_BLUEZ5_CFLAGS
34293	BLUEZ5_LIBS=$pkg_cv_BLUEZ5_LIBS
34294        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34295$as_echo "yes" >&6; }
34296
34297
34298pkg_failed=no
34299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
34300$as_echo_n "checking for GIO_UNIX... " >&6; }
34301
34302if test -n "$PKG_CONFIG"; then
34303    if test -n "$GIO_UNIX_CFLAGS"; then
34304        pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
34305    else
34306        if test -n "$PKG_CONFIG" && \
34307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 > 2.24\""; } >&5
34308  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 > 2.24") 2>&5
34309  ac_status=$?
34310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34311  test $ac_status = 0; }; then
34312  pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0 > 2.24" 2>/dev/null`
34313else
34314  pkg_failed=yes
34315fi
34316    fi
34317else
34318	pkg_failed=untried
34319fi
34320if test -n "$PKG_CONFIG"; then
34321    if test -n "$GIO_UNIX_LIBS"; then
34322        pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
34323    else
34324        if test -n "$PKG_CONFIG" && \
34325    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 > 2.24\""; } >&5
34326  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 > 2.24") 2>&5
34327  ac_status=$?
34328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34329  test $ac_status = 0; }; then
34330  pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0 > 2.24" 2>/dev/null`
34331else
34332  pkg_failed=yes
34333fi
34334    fi
34335else
34336	pkg_failed=untried
34337fi
34338
34339
34340
34341if test $pkg_failed = yes; then
34342
34343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34344        _pkg_short_errors_supported=yes
34345else
34346        _pkg_short_errors_supported=no
34347fi
34348        if test $_pkg_short_errors_supported = yes; then
34349	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gio-unix-2.0 > 2.24"`
34350        else
34351	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-unix-2.0 > 2.24"`
34352        fi
34353	# Put the nasty error message in config.log where it belongs
34354	echo "$GIO_UNIX_PKG_ERRORS" >&5
34355
34356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34357$as_echo "no" >&6; }
34358
34359      HAVE_BLUEZ=no
34360
34361elif test $pkg_failed = untried; then
34362
34363      HAVE_BLUEZ=no
34364
34365else
34366	GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
34367	GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
34368        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34369$as_echo "yes" >&6; }
34370
34371      # Extract the first word of "gdbus-codegen", so it can be a program name with args.
34372set dummy gdbus-codegen; ac_word=$2
34373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34374$as_echo_n "checking for $ac_word... " >&6; }
34375if ${ac_cv_prog_GDBUS_CODEGEN+:} false; then :
34376  $as_echo_n "(cached) " >&6
34377else
34378  if test -n "$GDBUS_CODEGEN"; then
34379  ac_cv_prog_GDBUS_CODEGEN="$GDBUS_CODEGEN" # Let the user override the test.
34380else
34381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34382for as_dir in $PATH
34383do
34384  IFS=$as_save_IFS
34385  test -z "$as_dir" && as_dir=.
34386    for ac_exec_ext in '' $ac_executable_extensions; do
34387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34388    ac_cv_prog_GDBUS_CODEGEN="gdbus-codegen"
34389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34390    break 2
34391  fi
34392done
34393  done
34394IFS=$as_save_IFS
34395
34396fi
34397fi
34398GDBUS_CODEGEN=$ac_cv_prog_GDBUS_CODEGEN
34399if test -n "$GDBUS_CODEGEN"; then
34400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDBUS_CODEGEN" >&5
34401$as_echo "$GDBUS_CODEGEN" >&6; }
34402else
34403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34404$as_echo "no" >&6; }
34405fi
34406
34407
34408      HAVE_BLUEZ=yes
34409
34410$as_echo "#define HAVE_BLUEZ5 1" >>confdefs.h
34411
34412
34413fi
34414
34415fi
34416
34417
34418  LIBS=$gst_check_save_LIBS
34419  LDFLAGS=$gst_check_save_LDFLAGS
34420  CFLAGS=$gst_check_save_CFLAGS
34421  CPPFLAGS=$gst_check_save_CPPFLAGS
34422  CXXFLAGS=$gst_check_save_CXXFLAGS
34423
34424    if test x$HAVE_BLUEZ = xno; then
34425    USE_BLUEZ=no
34426  else
34427    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: bluez" >&5
34428$as_echo "$as_me: *** These plugins will be built: bluez" >&6;}
34429  fi
34430fi
34431if test x$USE_BLUEZ = xyes; then
34432  :
34433  if test "xbluez" != "x"; then
34434    GST_PLUGINS_YES="\tbluez\n$GST_PLUGINS_YES"
34435  fi
34436
34437$as_echo "#define HAVE_BLUEZ /**/" >>confdefs.h
34438
34439else
34440  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: bluez" >&5
34441$as_echo "$as_me: *** These plugins will not be built: bluez" >&6;}
34442  if test "xbluez" != "x"; then
34443    GST_PLUGINS_NO="\tbluez\n$GST_PLUGINS_NO"
34444  fi
34445  :
34446fi
34447 if test x$USE_BLUEZ = xyes; then
34448  USE_BLUEZ_TRUE=
34449  USE_BLUEZ_FALSE='#'
34450else
34451  USE_BLUEZ_TRUE='#'
34452  USE_BLUEZ_FALSE=
34453fi
34454
34455
34456
34457HAVE_AVC="no"
34458echo
34459{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: AVC Video Services ***" >&5
34460$as_echo "$as_me: *** checking feature: AVC Video Services ***" >&6;}
34461if test "xavcsrc" != "x"
34462then
34463  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: avcsrc ***" >&5
34464$as_echo "$as_me: *** for plug-ins: avcsrc ***" >&6;}
34465fi
34466NOUSE=
34467if test "x$USE_AVC" = "xno"; then
34468  NOUSE="yes"
34469fi
34470# Check whether --enable-avc was given.
34471if test "${enable_avc+set}" = set; then :
34472  enableval=$enable_avc;  case "${enableval}" in
34473      yes) USE_AVC=yes;;
34474      no) USE_AVC=no;;
34475      *) as_fn_error $? "bad value ${enableval} for --enable-avc" "$LINENO" 5 ;;
34476    esac
34477else
34478   USE_AVC=yes
34479fi
34480
34481if test "x$NOUSE" = "xyes"; then
34482  USE_AVC="no"
34483  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** avcsrc pre-configured not to be built" >&5
34484$as_echo "$as_me: WARNING: *** avcsrc pre-configured not to be built" >&2;}
34485fi
34486NOUSE=
34487
34488if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " AVC " > /dev/null; then
34489  USE_AVC="no"
34490  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** avcsrc not ported" >&5
34491$as_echo "$as_me: WARNING: *** avcsrc not ported" >&2;}
34492fi
34493
34494
34495if test x$USE_AVC = xyes; then
34496
34497  gst_check_save_LIBS=$LIBS
34498  gst_check_save_LDFLAGS=$LDFLAGS
34499  gst_check_save_CFLAGS=$CFLAGS
34500  gst_check_save_CPPFLAGS=$CPPFLAGS
34501  gst_check_save_CXXFLAGS=$CXXFLAGS
34502
34503  HAVE_AVC=no
34504
34505  ac_ext=cpp
34506ac_cpp='$CXXCPP $CPPFLAGS'
34507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34510
34511  save_CPPFLAGS="$CPPFLAGS"
34512  CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation"
34513  save_LIBS="$LIBS"
34514  LIBS="$LIBS -framework AVCVideoServices -framework CoreFoundation"
34515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34516/* end confdefs.h.  */
34517
34518int
34519main ()
34520{
34521
34522  ;
34523  return 0;
34524}
34525_ACEOF
34526if ac_fn_cxx_try_link "$LINENO"; then :
34527  HAVE_AVC=yes
34528else
34529  HAVE_AVC=no
34530fi
34531rm -f core conftest.err conftest.$ac_objext \
34532    conftest$ac_exeext conftest.$ac_ext
34533  LIBS=$save_LIBS
34534  CPPFLAGS=$save_CPPFLAGS
34535  ac_ext=c
34536ac_cpp='$CPP $CPPFLAGS'
34537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34539ac_compiler_gnu=$ac_cv_c_compiler_gnu
34540
34541
34542
34543  LIBS=$gst_check_save_LIBS
34544  LDFLAGS=$gst_check_save_LDFLAGS
34545  CFLAGS=$gst_check_save_CFLAGS
34546  CPPFLAGS=$gst_check_save_CPPFLAGS
34547  CXXFLAGS=$gst_check_save_CXXFLAGS
34548
34549    if test x$HAVE_AVC = xno; then
34550    USE_AVC=no
34551  else
34552    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: avcsrc" >&5
34553$as_echo "$as_me: *** These plugins will be built: avcsrc" >&6;}
34554  fi
34555fi
34556if test x$USE_AVC = xyes; then
34557  :
34558  if test "xavcsrc" != "x"; then
34559    GST_PLUGINS_YES="\tavcsrc\n$GST_PLUGINS_YES"
34560  fi
34561
34562$as_echo "#define HAVE_AVC /**/" >>confdefs.h
34563
34564else
34565  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: avcsrc" >&5
34566$as_echo "$as_me: *** These plugins will not be built: avcsrc" >&6;}
34567  if test "xavcsrc" != "x"; then
34568    GST_PLUGINS_NO="\tavcsrc\n$GST_PLUGINS_NO"
34569  fi
34570  :
34571fi
34572 if test x$USE_AVC = xyes; then
34573  USE_AVC_TRUE=
34574  USE_AVC_FALSE='#'
34575else
34576  USE_AVC_TRUE='#'
34577  USE_AVC_FALSE=
34578fi
34579
34580
34581case "$host" in
34582  *-*darwin*)
34583    ;;
34584  *)
34585    HAVE_AVC="no"
34586    ;;
34587esac
34588
34589echo
34590{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: POSIX shared memory source and sink ***" >&5
34591$as_echo "$as_me: *** checking feature: POSIX shared memory source and sink ***" >&6;}
34592if test "xshm" != "x"
34593then
34594  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: shm ***" >&5
34595$as_echo "$as_me: *** for plug-ins: shm ***" >&6;}
34596fi
34597NOUSE=
34598if test "x$USE_SHM" = "xno"; then
34599  NOUSE="yes"
34600fi
34601# Check whether --enable-shm was given.
34602if test "${enable_shm+set}" = set; then :
34603  enableval=$enable_shm;  case "${enableval}" in
34604      yes) USE_SHM=yes;;
34605      no) USE_SHM=no;;
34606      *) as_fn_error $? "bad value ${enableval} for --enable-shm" "$LINENO" 5 ;;
34607    esac
34608else
34609   USE_SHM=yes
34610fi
34611
34612if test "x$NOUSE" = "xyes"; then
34613  USE_SHM="no"
34614  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** shm pre-configured not to be built" >&5
34615$as_echo "$as_me: WARNING: *** shm pre-configured not to be built" >&2;}
34616fi
34617NOUSE=
34618
34619if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SHM " > /dev/null; then
34620  USE_SHM="no"
34621  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** shm not ported" >&5
34622$as_echo "$as_me: WARNING: *** shm not ported" >&2;}
34623fi
34624
34625
34626if test x$USE_SHM = xyes; then
34627
34628  gst_check_save_LIBS=$LIBS
34629  gst_check_save_LDFLAGS=$LDFLAGS
34630  gst_check_save_CFLAGS=$CFLAGS
34631  gst_check_save_CPPFLAGS=$CPPFLAGS
34632  gst_check_save_CXXFLAGS=$CXXFLAGS
34633
34634  HAVE_SHM=no
34635
34636    if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
34637        case $host in
34638        *-darwin* | *-macos10*)
34639
34640$as_echo "#define HAVE_OSX 1" >>confdefs.h
34641
34642            HAVE_SHM=yes
34643            ;;
34644        *-*-OpenBSD*)
34645            HAVE_SHM=yes
34646            ;;
34647        *)
34648            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
34649$as_echo_n "checking for shm_open in -lrt... " >&6; }
34650if ${ac_cv_lib_rt_shm_open+:} false; then :
34651  $as_echo_n "(cached) " >&6
34652else
34653  ac_check_lib_save_LIBS=$LIBS
34654LIBS="-lrt  $LIBS"
34655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34656/* end confdefs.h.  */
34657
34658/* Override any GCC internal prototype to avoid an error.
34659   Use char because int might match the return type of a GCC
34660   builtin and then its argument prototype would still apply.  */
34661#ifdef __cplusplus
34662extern "C"
34663#endif
34664char shm_open ();
34665int
34666main ()
34667{
34668return shm_open ();
34669  ;
34670  return 0;
34671}
34672_ACEOF
34673if ac_fn_c_try_link "$LINENO"; then :
34674  ac_cv_lib_rt_shm_open=yes
34675else
34676  ac_cv_lib_rt_shm_open=no
34677fi
34678rm -f core conftest.err conftest.$ac_objext \
34679    conftest$ac_exeext conftest.$ac_ext
34680LIBS=$ac_check_lib_save_LIBS
34681fi
34682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
34683$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
34684if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
34685  ac_fn_c_check_decl "$LINENO" "MSG_NOSIGNAL" "ac_cv_have_decl_MSG_NOSIGNAL" "
34686                #include <sys/socket.h>
34687
34688"
34689if test "x$ac_cv_have_decl_MSG_NOSIGNAL" = xyes; then :
34690  HAVE_SHM=yes
34691else
34692  HAVE_SHM=no
34693fi
34694
34695else
34696  HAVE_SHM=no
34697fi
34698
34699            SHM_LIBS="-lrt"
34700
34701            ;;
34702        esac
34703    else
34704        HAVE_SHM=no
34705    fi
34706
34707
34708  LIBS=$gst_check_save_LIBS
34709  LDFLAGS=$gst_check_save_LDFLAGS
34710  CFLAGS=$gst_check_save_CFLAGS
34711  CPPFLAGS=$gst_check_save_CPPFLAGS
34712  CXXFLAGS=$gst_check_save_CXXFLAGS
34713
34714    if test x$HAVE_SHM = xno; then
34715    USE_SHM=no
34716  else
34717    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: shm" >&5
34718$as_echo "$as_me: *** These plugins will be built: shm" >&6;}
34719  fi
34720fi
34721if test x$USE_SHM = xyes; then
34722  :
34723  if test "xshm" != "x"; then
34724    GST_PLUGINS_YES="\tshm\n$GST_PLUGINS_YES"
34725  fi
34726
34727$as_echo "#define HAVE_SHM /**/" >>confdefs.h
34728
34729else
34730  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: shm" >&5
34731$as_echo "$as_me: *** These plugins will not be built: shm" >&6;}
34732  if test "xshm" != "x"; then
34733    GST_PLUGINS_NO="\tshm\n$GST_PLUGINS_NO"
34734  fi
34735  :
34736fi
34737 if test x$USE_SHM = xyes; then
34738  USE_SHM_TRUE=
34739  USE_SHM_FALSE='#'
34740else
34741  USE_SHM_TRUE='#'
34742  USE_SHM_FALSE=
34743fi
34744
34745
34746
34747echo
34748{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Unix sockets ***" >&5
34749$as_echo "$as_me: *** checking feature: Unix sockets ***" >&6;}
34750if test "xipcpipeline" != "x"
34751then
34752  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ipcpipeline ***" >&5
34753$as_echo "$as_me: *** for plug-ins: ipcpipeline ***" >&6;}
34754fi
34755NOUSE=
34756if test "x$USE_IPCPIPELINE" = "xno"; then
34757  NOUSE="yes"
34758fi
34759# Check whether --enable-ipcpipeline was given.
34760if test "${enable_ipcpipeline+set}" = set; then :
34761  enableval=$enable_ipcpipeline;  case "${enableval}" in
34762      yes) USE_IPCPIPELINE=yes;;
34763      no) USE_IPCPIPELINE=no;;
34764      *) as_fn_error $? "bad value ${enableval} for --enable-ipcpipeline" "$LINENO" 5 ;;
34765    esac
34766else
34767   USE_IPCPIPELINE=yes
34768fi
34769
34770if test "x$NOUSE" = "xyes"; then
34771  USE_IPCPIPELINE="no"
34772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ipcpipeline pre-configured not to be built" >&5
34773$as_echo "$as_me: WARNING: *** ipcpipeline pre-configured not to be built" >&2;}
34774fi
34775NOUSE=
34776
34777if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " IPCPIPELINE " > /dev/null; then
34778  USE_IPCPIPELINE="no"
34779  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ipcpipeline not ported" >&5
34780$as_echo "$as_me: WARNING: *** ipcpipeline not ported" >&2;}
34781fi
34782
34783
34784if test x$USE_IPCPIPELINE = xyes; then
34785
34786  gst_check_save_LIBS=$LIBS
34787  gst_check_save_LDFLAGS=$LDFLAGS
34788  gst_check_save_CFLAGS=$CFLAGS
34789  gst_check_save_CPPFLAGS=$CPPFLAGS
34790  gst_check_save_CXXFLAGS=$CXXFLAGS
34791
34792  HAVE_IPCPIPELINE=no
34793
34794    if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
34795        ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
34796if test "x$ac_cv_func_pipe" = xyes; then :
34797
34798          ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
34799if test "x$ac_cv_func_socketpair" = xyes; then :
34800  HAVE_IPCPIPELINE=yes
34801else
34802  HAVE_IPCPIPELINE=no
34803fi
34804
34805
34806else
34807
34808          HAVE_IPCPIPELINE=no
34809
34810fi
34811
34812    else
34813        HAVE_IPCPIPELINE=no
34814    fi
34815
34816
34817  LIBS=$gst_check_save_LIBS
34818  LDFLAGS=$gst_check_save_LDFLAGS
34819  CFLAGS=$gst_check_save_CFLAGS
34820  CPPFLAGS=$gst_check_save_CPPFLAGS
34821  CXXFLAGS=$gst_check_save_CXXFLAGS
34822
34823    if test x$HAVE_IPCPIPELINE = xno; then
34824    USE_IPCPIPELINE=no
34825  else
34826    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ipcpipeline" >&5
34827$as_echo "$as_me: *** These plugins will be built: ipcpipeline" >&6;}
34828  fi
34829fi
34830if test x$USE_IPCPIPELINE = xyes; then
34831  :
34832  if test "xipcpipeline" != "x"; then
34833    GST_PLUGINS_YES="\tipcpipeline\n$GST_PLUGINS_YES"
34834  fi
34835
34836$as_echo "#define HAVE_IPCPIPELINE /**/" >>confdefs.h
34837
34838else
34839  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ipcpipeline" >&5
34840$as_echo "$as_me: *** These plugins will not be built: ipcpipeline" >&6;}
34841  if test "xipcpipeline" != "x"; then
34842    GST_PLUGINS_NO="\tipcpipeline\n$GST_PLUGINS_NO"
34843  fi
34844  :
34845fi
34846 if test x$USE_IPCPIPELINE = xyes; then
34847  USE_IPCPIPELINE_TRUE=
34848  USE_IPCPIPELINE_FALSE='#'
34849else
34850  USE_IPCPIPELINE_TRUE='#'
34851  USE_IPCPIPELINE_FALSE=
34852fi
34853
34854
34855
34856echo
34857{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: OpenSL ES ***" >&5
34858$as_echo "$as_me: *** checking feature: OpenSL ES ***" >&6;}
34859if test "xopensl" != "x"
34860then
34861  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: opensl ***" >&5
34862$as_echo "$as_me: *** for plug-ins: opensl ***" >&6;}
34863fi
34864NOUSE=
34865if test "x$USE_OPENSLES" = "xno"; then
34866  NOUSE="yes"
34867fi
34868# Check whether --enable-opensles was given.
34869if test "${enable_opensles+set}" = set; then :
34870  enableval=$enable_opensles;  case "${enableval}" in
34871      yes) USE_OPENSLES=yes;;
34872      no) USE_OPENSLES=no;;
34873      *) as_fn_error $? "bad value ${enableval} for --enable-opensles" "$LINENO" 5 ;;
34874    esac
34875else
34876   USE_OPENSLES=yes
34877fi
34878
34879if test "x$NOUSE" = "xyes"; then
34880  USE_OPENSLES="no"
34881  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opensl pre-configured not to be built" >&5
34882$as_echo "$as_me: WARNING: *** opensl pre-configured not to be built" >&2;}
34883fi
34884NOUSE=
34885
34886if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENSLES " > /dev/null; then
34887  USE_OPENSLES="no"
34888  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opensl not ported" >&5
34889$as_echo "$as_me: WARNING: *** opensl not ported" >&2;}
34890fi
34891
34892
34893if test x$USE_OPENSLES = xyes; then
34894
34895  gst_check_save_LIBS=$LIBS
34896  gst_check_save_LDFLAGS=$LDFLAGS
34897  gst_check_save_CFLAGS=$CFLAGS
34898  gst_check_save_CPPFLAGS=$CPPFLAGS
34899  gst_check_save_CXXFLAGS=$CXXFLAGS
34900
34901  HAVE_OPENSLES=no
34902
34903  ac_fn_c_check_header_mongrel "$LINENO" "SLES/OpenSLES.h" "ac_cv_header_SLES_OpenSLES_h" "$ac_includes_default"
34904if test "x$ac_cv_header_SLES_OpenSLES_h" = xyes; then :
34905  HAVE_OPENSLES="yes"
34906else
34907  HAVE_OPENSLES="no"
34908fi
34909
34910
34911
34912
34913  LIBS=$gst_check_save_LIBS
34914  LDFLAGS=$gst_check_save_LDFLAGS
34915  CFLAGS=$gst_check_save_CFLAGS
34916  CPPFLAGS=$gst_check_save_CPPFLAGS
34917  CXXFLAGS=$gst_check_save_CXXFLAGS
34918
34919    if test x$HAVE_OPENSLES = xno; then
34920    USE_OPENSLES=no
34921  else
34922    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: opensl" >&5
34923$as_echo "$as_me: *** These plugins will be built: opensl" >&6;}
34924  fi
34925fi
34926if test x$USE_OPENSLES = xyes; then
34927  :
34928  if test "xopensl" != "x"; then
34929    GST_PLUGINS_YES="\topensl\n$GST_PLUGINS_YES"
34930  fi
34931
34932$as_echo "#define HAVE_OPENSLES /**/" >>confdefs.h
34933
34934else
34935  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: opensl" >&5
34936$as_echo "$as_me: *** These plugins will not be built: opensl" >&6;}
34937  if test "xopensl" != "x"; then
34938    GST_PLUGINS_NO="\topensl\n$GST_PLUGINS_NO"
34939  fi
34940  :
34941fi
34942 if test x$USE_OPENSLES = xyes; then
34943  USE_OPENSLES_TRUE=
34944  USE_OPENSLES_FALSE='#'
34945else
34946  USE_OPENSLES_TRUE='#'
34947  USE_OPENSLES_FALSE=
34948fi
34949
34950
34951
34952echo
34953{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: UVC H264 ***" >&5
34954$as_echo "$as_me: *** checking feature: UVC H264 ***" >&6;}
34955if test "xuvch264" != "x"
34956then
34957  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: uvch264 ***" >&5
34958$as_echo "$as_me: *** for plug-ins: uvch264 ***" >&6;}
34959fi
34960NOUSE=
34961if test "x$USE_UVCH264" = "xno"; then
34962  NOUSE="yes"
34963fi
34964# Check whether --enable-uvch264 was given.
34965if test "${enable_uvch264+set}" = set; then :
34966  enableval=$enable_uvch264;  case "${enableval}" in
34967      yes) USE_UVCH264=yes;;
34968      no) USE_UVCH264=no;;
34969      *) as_fn_error $? "bad value ${enableval} for --enable-uvch264" "$LINENO" 5 ;;
34970    esac
34971else
34972   USE_UVCH264=yes
34973fi
34974
34975if test "x$NOUSE" = "xyes"; then
34976  USE_UVCH264="no"
34977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** uvch264 pre-configured not to be built" >&5
34978$as_echo "$as_me: WARNING: *** uvch264 pre-configured not to be built" >&2;}
34979fi
34980NOUSE=
34981
34982if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " UVCH264 " > /dev/null; then
34983  USE_UVCH264="no"
34984  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** uvch264 not ported" >&5
34985$as_echo "$as_me: WARNING: *** uvch264 not ported" >&2;}
34986fi
34987
34988
34989if test x$USE_UVCH264 = xyes; then
34990
34991  gst_check_save_LIBS=$LIBS
34992  gst_check_save_LDFLAGS=$LDFLAGS
34993  gst_check_save_CFLAGS=$CFLAGS
34994  gst_check_save_CPPFLAGS=$CPPFLAGS
34995  gst_check_save_CXXFLAGS=$CXXFLAGS
34996
34997  HAVE_UVCH264=no
34998
34999  ac_fn_c_check_header_mongrel "$LINENO" "linux/uvcvideo.h" "ac_cv_header_linux_uvcvideo_h" "$ac_includes_default"
35000if test "x$ac_cv_header_linux_uvcvideo_h" = xyes; then :
35001  HAVE_UVCVIDEO_H=yes
35002else
35003  HAVE_UVCVIDEO_H=no
35004fi
35005
35006
35007
35008pkg_failed=no
35009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_UDEV" >&5
35010$as_echo_n "checking for G_UDEV... " >&6; }
35011
35012if test -n "$PKG_CONFIG"; then
35013    if test -n "$G_UDEV_CFLAGS"; then
35014        pkg_cv_G_UDEV_CFLAGS="$G_UDEV_CFLAGS"
35015    else
35016        if test -n "$PKG_CONFIG" && \
35017    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
35018  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
35019  ac_status=$?
35020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35021  test $ac_status = 0; }; then
35022  pkg_cv_G_UDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 " 2>/dev/null`
35023else
35024  pkg_failed=yes
35025fi
35026    fi
35027else
35028	pkg_failed=untried
35029fi
35030if test -n "$PKG_CONFIG"; then
35031    if test -n "$G_UDEV_LIBS"; then
35032        pkg_cv_G_UDEV_LIBS="$G_UDEV_LIBS"
35033    else
35034        if test -n "$PKG_CONFIG" && \
35035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
35036  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
35037  ac_status=$?
35038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35039  test $ac_status = 0; }; then
35040  pkg_cv_G_UDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 " 2>/dev/null`
35041else
35042  pkg_failed=yes
35043fi
35044    fi
35045else
35046	pkg_failed=untried
35047fi
35048
35049
35050
35051if test $pkg_failed = yes; then
35052
35053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35054        _pkg_short_errors_supported=yes
35055else
35056        _pkg_short_errors_supported=no
35057fi
35058        if test $_pkg_short_errors_supported = yes; then
35059	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gudev-1.0 "`
35060        else
35061	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gudev-1.0 "`
35062        fi
35063	# Put the nasty error message in config.log where it belongs
35064	echo "$G_UDEV_PKG_ERRORS" >&5
35065
35066	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35067$as_echo "no" >&6; }
35068                HAVE_GUDEV="no"
35069elif test $pkg_failed = untried; then
35070	HAVE_GUDEV="no"
35071else
35072	G_UDEV_CFLAGS=$pkg_cv_G_UDEV_CFLAGS
35073	G_UDEV_LIBS=$pkg_cv_G_UDEV_LIBS
35074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075$as_echo "yes" >&6; }
35076
35077
35078$as_echo "#define HAVE_GUDEV 1" >>confdefs.h
35079
35080          HAVE_GUDEV="yes"
35081fi
35082
35083pkg_failed=no
35084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
35085$as_echo_n "checking for LIBUSB... " >&6; }
35086
35087if test -n "$PKG_CONFIG"; then
35088    if test -n "$LIBUSB_CFLAGS"; then
35089        pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
35090    else
35091        if test -n "$PKG_CONFIG" && \
35092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 \""; } >&5
35093  ($PKG_CONFIG --exists --print-errors "libusb-1.0 ") 2>&5
35094  ac_status=$?
35095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35096  test $ac_status = 0; }; then
35097  pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 " 2>/dev/null`
35098else
35099  pkg_failed=yes
35100fi
35101    fi
35102else
35103	pkg_failed=untried
35104fi
35105if test -n "$PKG_CONFIG"; then
35106    if test -n "$LIBUSB_LIBS"; then
35107        pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
35108    else
35109        if test -n "$PKG_CONFIG" && \
35110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 \""; } >&5
35111  ($PKG_CONFIG --exists --print-errors "libusb-1.0 ") 2>&5
35112  ac_status=$?
35113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35114  test $ac_status = 0; }; then
35115  pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 " 2>/dev/null`
35116else
35117  pkg_failed=yes
35118fi
35119    fi
35120else
35121	pkg_failed=untried
35122fi
35123
35124
35125
35126if test $pkg_failed = yes; then
35127
35128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35129        _pkg_short_errors_supported=yes
35130else
35131        _pkg_short_errors_supported=no
35132fi
35133        if test $_pkg_short_errors_supported = yes; then
35134	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb-1.0 "`
35135        else
35136	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb-1.0 "`
35137        fi
35138	# Put the nasty error message in config.log where it belongs
35139	echo "$LIBUSB_PKG_ERRORS" >&5
35140
35141	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35142$as_echo "no" >&6; }
35143                HAVE_LIBUSB="no"
35144elif test $pkg_failed = untried; then
35145	HAVE_LIBUSB="no"
35146else
35147	LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
35148	LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
35149        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35150$as_echo "yes" >&6; }
35151
35152
35153$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
35154
35155          HAVE_LIBUSB="yes"
35156fi
35157  if test "x$HAVE_UVCVIDEO_H" = "xyes" && \
35158     test "x$HAVE_GUDEV" = "xyes" && \
35159     test "x$HAVE_LIBUSB" = "xyes"; then
35160    HAVE_UVCH264=yes
35161  else
35162    HAVE_UVCH264=no
35163  fi
35164
35165
35166  LIBS=$gst_check_save_LIBS
35167  LDFLAGS=$gst_check_save_LDFLAGS
35168  CFLAGS=$gst_check_save_CFLAGS
35169  CPPFLAGS=$gst_check_save_CPPFLAGS
35170  CXXFLAGS=$gst_check_save_CXXFLAGS
35171
35172    if test x$HAVE_UVCH264 = xno; then
35173    USE_UVCH264=no
35174  else
35175    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: uvch264" >&5
35176$as_echo "$as_me: *** These plugins will be built: uvch264" >&6;}
35177  fi
35178fi
35179if test x$USE_UVCH264 = xyes; then
35180  :
35181  if test "xuvch264" != "x"; then
35182    GST_PLUGINS_YES="\tuvch264\n$GST_PLUGINS_YES"
35183  fi
35184
35185$as_echo "#define HAVE_UVCH264 /**/" >>confdefs.h
35186
35187else
35188  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: uvch264" >&5
35189$as_echo "$as_me: *** These plugins will not be built: uvch264" >&6;}
35190  if test "xuvch264" != "x"; then
35191    GST_PLUGINS_NO="\tuvch264\n$GST_PLUGINS_NO"
35192  fi
35193  :
35194fi
35195 if test x$USE_UVCH264 = xyes; then
35196  USE_UVCH264_TRUE=
35197  USE_UVCH264_FALSE='#'
35198else
35199  USE_UVCH264_TRUE='#'
35200  USE_UVCH264_FALSE=
35201fi
35202
35203
35204
35205
35206
35207
35208
35209echo
35210{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: NVIDIA CUDA API ***" >&5
35211$as_echo "$as_me: *** checking feature: NVIDIA CUDA API ***" >&6;}
35212if test "x" != "x"
35213then
35214  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
35215$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
35216fi
35217NOUSE=
35218if test "x$USE_CUDA" = "xno"; then
35219  NOUSE="yes"
35220fi
35221# Check whether --enable-cuda was given.
35222if test "${enable_cuda+set}" = set; then :
35223  enableval=$enable_cuda;  case "${enableval}" in
35224      yes) USE_CUDA=yes;;
35225      no) USE_CUDA=no;;
35226      *) as_fn_error $? "bad value ${enableval} for --enable-cuda" "$LINENO" 5 ;;
35227    esac
35228else
35229   USE_CUDA=yes
35230fi
35231
35232if test "x$NOUSE" = "xyes"; then
35233  USE_CUDA="no"
35234  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
35235$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
35236fi
35237NOUSE=
35238
35239if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " CUDA " > /dev/null; then
35240  USE_CUDA="no"
35241  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
35242$as_echo "$as_me: WARNING: ***  not ported" >&2;}
35243fi
35244
35245
35246if test x$USE_CUDA = xyes; then
35247
35248  gst_check_save_LIBS=$LIBS
35249  gst_check_save_LDFLAGS=$LDFLAGS
35250  gst_check_save_CFLAGS=$CFLAGS
35251  gst_check_save_CPPFLAGS=$CPPFLAGS
35252  gst_check_save_CXXFLAGS=$CXXFLAGS
35253
35254  HAVE_CUDA=no
35255
35256
35257# Check whether --with-cuda-prefix was given.
35258if test "${with_cuda_prefix+set}" = set; then :
35259  withval=$with_cuda_prefix; if test "x$with_cuda_prefix" != "x"; then :
35260  CUDA_PREFIX="$with_cuda_prefix"
35261fi
35262else
35263  CUDA_PREFIX=""
35264fi
35265
35266
35267  HAVE_CUDA="yes"
35268  if test "x$CUDA_PREFIX" != "x"; then
35269        if test "x$CUDA_CFLAGS" = "x" -a "x$CUDA_LIBS" = "x"; then
35270            CUDA_CFLAGS="-I$CUDA_PREFIX/include"
35271      CUDA_LIBS="-L$CUDA_PREFIX/lib -L$CUDA_PREFIX/lib64 -L$CUDA_PREFIX/lib/stubs -L$CUDA_PREFIX/lib64/stubs -lcuda -lcudart"
35272    fi
35273  else
35274
35275pkg_failed=no
35276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35277$as_echo_n "checking for CUDA... " >&6; }
35278
35279if test -n "$PKG_CONFIG"; then
35280    if test -n "$CUDA_CFLAGS"; then
35281        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35282    else
35283        if test -n "$PKG_CONFIG" && \
35284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.1 cudart-10.1\""; } >&5
35285  ($PKG_CONFIG --exists --print-errors "cuda-10.1 cudart-10.1") 2>&5
35286  ac_status=$?
35287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35288  test $ac_status = 0; }; then
35289  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-10.1 cudart-10.1" 2>/dev/null`
35290else
35291  pkg_failed=yes
35292fi
35293    fi
35294else
35295	pkg_failed=untried
35296fi
35297if test -n "$PKG_CONFIG"; then
35298    if test -n "$CUDA_LIBS"; then
35299        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35300    else
35301        if test -n "$PKG_CONFIG" && \
35302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.1 cudart-10.1\""; } >&5
35303  ($PKG_CONFIG --exists --print-errors "cuda-10.1 cudart-10.1") 2>&5
35304  ac_status=$?
35305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35306  test $ac_status = 0; }; then
35307  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-10.1 cudart-10.1" 2>/dev/null`
35308else
35309  pkg_failed=yes
35310fi
35311    fi
35312else
35313	pkg_failed=untried
35314fi
35315
35316
35317
35318if test $pkg_failed = yes; then
35319
35320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35321        _pkg_short_errors_supported=yes
35322else
35323        _pkg_short_errors_supported=no
35324fi
35325        if test $_pkg_short_errors_supported = yes; then
35326	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-10.1 cudart-10.1"`
35327        else
35328	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-10.1 cudart-10.1"`
35329        fi
35330	# Put the nasty error message in config.log where it belongs
35331	echo "$CUDA_PKG_ERRORS" >&5
35332
35333	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35334$as_echo "no" >&6; }
35335
35336
35337pkg_failed=no
35338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35339$as_echo_n "checking for CUDA... " >&6; }
35340
35341if test -n "$PKG_CONFIG"; then
35342    if test -n "$CUDA_CFLAGS"; then
35343        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35344    else
35345        if test -n "$PKG_CONFIG" && \
35346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.0 cudart-10.0\""; } >&5
35347  ($PKG_CONFIG --exists --print-errors "cuda-10.0 cudart-10.0") 2>&5
35348  ac_status=$?
35349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35350  test $ac_status = 0; }; then
35351  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-10.0 cudart-10.0" 2>/dev/null`
35352else
35353  pkg_failed=yes
35354fi
35355    fi
35356else
35357	pkg_failed=untried
35358fi
35359if test -n "$PKG_CONFIG"; then
35360    if test -n "$CUDA_LIBS"; then
35361        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35362    else
35363        if test -n "$PKG_CONFIG" && \
35364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.0 cudart-10.0\""; } >&5
35365  ($PKG_CONFIG --exists --print-errors "cuda-10.0 cudart-10.0") 2>&5
35366  ac_status=$?
35367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35368  test $ac_status = 0; }; then
35369  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-10.0 cudart-10.0" 2>/dev/null`
35370else
35371  pkg_failed=yes
35372fi
35373    fi
35374else
35375	pkg_failed=untried
35376fi
35377
35378
35379
35380if test $pkg_failed = yes; then
35381
35382if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35383        _pkg_short_errors_supported=yes
35384else
35385        _pkg_short_errors_supported=no
35386fi
35387        if test $_pkg_short_errors_supported = yes; then
35388	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-10.0 cudart-10.0"`
35389        else
35390	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-10.0 cudart-10.0"`
35391        fi
35392	# Put the nasty error message in config.log where it belongs
35393	echo "$CUDA_PKG_ERRORS" >&5
35394
35395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35396$as_echo "no" >&6; }
35397
35398
35399pkg_failed=no
35400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35401$as_echo_n "checking for CUDA... " >&6; }
35402
35403if test -n "$PKG_CONFIG"; then
35404    if test -n "$CUDA_CFLAGS"; then
35405        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35406    else
35407        if test -n "$PKG_CONFIG" && \
35408    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
35409  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
35410  ac_status=$?
35411  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35412  test $ac_status = 0; }; then
35413  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.2 cudart-9.2" 2>/dev/null`
35414else
35415  pkg_failed=yes
35416fi
35417    fi
35418else
35419	pkg_failed=untried
35420fi
35421if test -n "$PKG_CONFIG"; then
35422    if test -n "$CUDA_LIBS"; then
35423        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35424    else
35425        if test -n "$PKG_CONFIG" && \
35426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
35427  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
35428  ac_status=$?
35429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35430  test $ac_status = 0; }; then
35431  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.2 cudart-9.2" 2>/dev/null`
35432else
35433  pkg_failed=yes
35434fi
35435    fi
35436else
35437	pkg_failed=untried
35438fi
35439
35440
35441
35442if test $pkg_failed = yes; then
35443
35444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35445        _pkg_short_errors_supported=yes
35446else
35447        _pkg_short_errors_supported=no
35448fi
35449        if test $_pkg_short_errors_supported = yes; then
35450	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
35451        else
35452	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
35453        fi
35454	# Put the nasty error message in config.log where it belongs
35455	echo "$CUDA_PKG_ERRORS" >&5
35456
35457	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35458$as_echo "no" >&6; }
35459
35460
35461pkg_failed=no
35462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35463$as_echo_n "checking for CUDA... " >&6; }
35464
35465if test -n "$PKG_CONFIG"; then
35466    if test -n "$CUDA_CFLAGS"; then
35467        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35468    else
35469        if test -n "$PKG_CONFIG" && \
35470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
35471  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
35472  ac_status=$?
35473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35474  test $ac_status = 0; }; then
35475  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
35476else
35477  pkg_failed=yes
35478fi
35479    fi
35480else
35481	pkg_failed=untried
35482fi
35483if test -n "$PKG_CONFIG"; then
35484    if test -n "$CUDA_LIBS"; then
35485        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35486    else
35487        if test -n "$PKG_CONFIG" && \
35488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
35489  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
35490  ac_status=$?
35491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35492  test $ac_status = 0; }; then
35493  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
35494else
35495  pkg_failed=yes
35496fi
35497    fi
35498else
35499	pkg_failed=untried
35500fi
35501
35502
35503
35504if test $pkg_failed = yes; then
35505
35506if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35507        _pkg_short_errors_supported=yes
35508else
35509        _pkg_short_errors_supported=no
35510fi
35511        if test $_pkg_short_errors_supported = yes; then
35512	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
35513        else
35514	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
35515        fi
35516	# Put the nasty error message in config.log where it belongs
35517	echo "$CUDA_PKG_ERRORS" >&5
35518
35519	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35520$as_echo "no" >&6; }
35521
35522
35523pkg_failed=no
35524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35525$as_echo_n "checking for CUDA... " >&6; }
35526
35527if test -n "$PKG_CONFIG"; then
35528    if test -n "$CUDA_CFLAGS"; then
35529        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35530    else
35531        if test -n "$PKG_CONFIG" && \
35532    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
35533  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
35534  ac_status=$?
35535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35536  test $ac_status = 0; }; then
35537  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
35538else
35539  pkg_failed=yes
35540fi
35541    fi
35542else
35543	pkg_failed=untried
35544fi
35545if test -n "$PKG_CONFIG"; then
35546    if test -n "$CUDA_LIBS"; then
35547        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35548    else
35549        if test -n "$PKG_CONFIG" && \
35550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
35551  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
35552  ac_status=$?
35553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35554  test $ac_status = 0; }; then
35555  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
35556else
35557  pkg_failed=yes
35558fi
35559    fi
35560else
35561	pkg_failed=untried
35562fi
35563
35564
35565
35566if test $pkg_failed = yes; then
35567
35568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35569        _pkg_short_errors_supported=yes
35570else
35571        _pkg_short_errors_supported=no
35572fi
35573        if test $_pkg_short_errors_supported = yes; then
35574	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
35575        else
35576	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
35577        fi
35578	# Put the nasty error message in config.log where it belongs
35579	echo "$CUDA_PKG_ERRORS" >&5
35580
35581	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35582$as_echo "no" >&6; }
35583
35584
35585pkg_failed=no
35586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35587$as_echo_n "checking for CUDA... " >&6; }
35588
35589if test -n "$PKG_CONFIG"; then
35590    if test -n "$CUDA_CFLAGS"; then
35591        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35592    else
35593        if test -n "$PKG_CONFIG" && \
35594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
35595  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
35596  ac_status=$?
35597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35598  test $ac_status = 0; }; then
35599  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
35600else
35601  pkg_failed=yes
35602fi
35603    fi
35604else
35605	pkg_failed=untried
35606fi
35607if test -n "$PKG_CONFIG"; then
35608    if test -n "$CUDA_LIBS"; then
35609        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35610    else
35611        if test -n "$PKG_CONFIG" && \
35612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
35613  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
35614  ac_status=$?
35615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35616  test $ac_status = 0; }; then
35617  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
35618else
35619  pkg_failed=yes
35620fi
35621    fi
35622else
35623	pkg_failed=untried
35624fi
35625
35626
35627
35628if test $pkg_failed = yes; then
35629
35630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35631        _pkg_short_errors_supported=yes
35632else
35633        _pkg_short_errors_supported=no
35634fi
35635        if test $_pkg_short_errors_supported = yes; then
35636	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
35637        else
35638	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
35639        fi
35640	# Put the nasty error message in config.log where it belongs
35641	echo "$CUDA_PKG_ERRORS" >&5
35642
35643	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35644$as_echo "no" >&6; }
35645
35646
35647pkg_failed=no
35648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35649$as_echo_n "checking for CUDA... " >&6; }
35650
35651if test -n "$PKG_CONFIG"; then
35652    if test -n "$CUDA_CFLAGS"; then
35653        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35654    else
35655        if test -n "$PKG_CONFIG" && \
35656    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
35657  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
35658  ac_status=$?
35659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35660  test $ac_status = 0; }; then
35661  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
35662else
35663  pkg_failed=yes
35664fi
35665    fi
35666else
35667	pkg_failed=untried
35668fi
35669if test -n "$PKG_CONFIG"; then
35670    if test -n "$CUDA_LIBS"; then
35671        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35672    else
35673        if test -n "$PKG_CONFIG" && \
35674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
35675  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
35676  ac_status=$?
35677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35678  test $ac_status = 0; }; then
35679  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
35680else
35681  pkg_failed=yes
35682fi
35683    fi
35684else
35685	pkg_failed=untried
35686fi
35687
35688
35689
35690if test $pkg_failed = yes; then
35691
35692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35693        _pkg_short_errors_supported=yes
35694else
35695        _pkg_short_errors_supported=no
35696fi
35697        if test $_pkg_short_errors_supported = yes; then
35698	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
35699        else
35700	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
35701        fi
35702	# Put the nasty error message in config.log where it belongs
35703	echo "$CUDA_PKG_ERRORS" >&5
35704
35705	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706$as_echo "no" >&6; }
35707
35708
35709pkg_failed=no
35710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35711$as_echo_n "checking for CUDA... " >&6; }
35712
35713if test -n "$PKG_CONFIG"; then
35714    if test -n "$CUDA_CFLAGS"; then
35715        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35716    else
35717        if test -n "$PKG_CONFIG" && \
35718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
35719  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
35720  ac_status=$?
35721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35722  test $ac_status = 0; }; then
35723  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
35724else
35725  pkg_failed=yes
35726fi
35727    fi
35728else
35729	pkg_failed=untried
35730fi
35731if test -n "$PKG_CONFIG"; then
35732    if test -n "$CUDA_LIBS"; then
35733        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35734    else
35735        if test -n "$PKG_CONFIG" && \
35736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
35737  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
35738  ac_status=$?
35739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35740  test $ac_status = 0; }; then
35741  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
35742else
35743  pkg_failed=yes
35744fi
35745    fi
35746else
35747	pkg_failed=untried
35748fi
35749
35750
35751
35752if test $pkg_failed = yes; then
35753
35754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35755        _pkg_short_errors_supported=yes
35756else
35757        _pkg_short_errors_supported=no
35758fi
35759        if test $_pkg_short_errors_supported = yes; then
35760	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
35761        else
35762	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
35763        fi
35764	# Put the nasty error message in config.log where it belongs
35765	echo "$CUDA_PKG_ERRORS" >&5
35766
35767	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35768$as_echo "no" >&6; }
35769
35770
35771pkg_failed=no
35772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35773$as_echo_n "checking for CUDA... " >&6; }
35774
35775if test -n "$PKG_CONFIG"; then
35776    if test -n "$CUDA_CFLAGS"; then
35777        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35778    else
35779        if test -n "$PKG_CONFIG" && \
35780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
35781  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
35782  ac_status=$?
35783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35784  test $ac_status = 0; }; then
35785  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
35786else
35787  pkg_failed=yes
35788fi
35789    fi
35790else
35791	pkg_failed=untried
35792fi
35793if test -n "$PKG_CONFIG"; then
35794    if test -n "$CUDA_LIBS"; then
35795        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35796    else
35797        if test -n "$PKG_CONFIG" && \
35798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
35799  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
35800  ac_status=$?
35801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35802  test $ac_status = 0; }; then
35803  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
35804else
35805  pkg_failed=yes
35806fi
35807    fi
35808else
35809	pkg_failed=untried
35810fi
35811
35812
35813
35814if test $pkg_failed = yes; then
35815
35816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35817        _pkg_short_errors_supported=yes
35818else
35819        _pkg_short_errors_supported=no
35820fi
35821        if test $_pkg_short_errors_supported = yes; then
35822	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
35823        else
35824	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
35825        fi
35826	# Put the nasty error message in config.log where it belongs
35827	echo "$CUDA_PKG_ERRORS" >&5
35828
35829	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35830$as_echo "no" >&6; }
35831
35832                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
35833$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
35834elif test $pkg_failed = untried; then
35835
35836                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
35837$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
35838else
35839	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
35840	CUDA_LIBS=$pkg_cv_CUDA_LIBS
35841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35842$as_echo "yes" >&6; }
35843	:
35844fi
35845elif test $pkg_failed = untried; then
35846
35847
35848pkg_failed=no
35849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35850$as_echo_n "checking for CUDA... " >&6; }
35851
35852if test -n "$PKG_CONFIG"; then
35853    if test -n "$CUDA_CFLAGS"; then
35854        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35855    else
35856        if test -n "$PKG_CONFIG" && \
35857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
35858  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
35859  ac_status=$?
35860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35861  test $ac_status = 0; }; then
35862  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
35863else
35864  pkg_failed=yes
35865fi
35866    fi
35867else
35868	pkg_failed=untried
35869fi
35870if test -n "$PKG_CONFIG"; then
35871    if test -n "$CUDA_LIBS"; then
35872        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35873    else
35874        if test -n "$PKG_CONFIG" && \
35875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
35876  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
35877  ac_status=$?
35878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35879  test $ac_status = 0; }; then
35880  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
35881else
35882  pkg_failed=yes
35883fi
35884    fi
35885else
35886	pkg_failed=untried
35887fi
35888
35889
35890
35891if test $pkg_failed = yes; then
35892
35893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35894        _pkg_short_errors_supported=yes
35895else
35896        _pkg_short_errors_supported=no
35897fi
35898        if test $_pkg_short_errors_supported = yes; then
35899	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
35900        else
35901	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
35902        fi
35903	# Put the nasty error message in config.log where it belongs
35904	echo "$CUDA_PKG_ERRORS" >&5
35905
35906	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35907$as_echo "no" >&6; }
35908
35909                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
35910$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
35911elif test $pkg_failed = untried; then
35912
35913                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
35914$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
35915else
35916	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
35917	CUDA_LIBS=$pkg_cv_CUDA_LIBS
35918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35919$as_echo "yes" >&6; }
35920	:
35921fi
35922else
35923	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
35924	CUDA_LIBS=$pkg_cv_CUDA_LIBS
35925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35926$as_echo "yes" >&6; }
35927	:
35928fi
35929elif test $pkg_failed = untried; then
35930
35931
35932pkg_failed=no
35933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35934$as_echo_n "checking for CUDA... " >&6; }
35935
35936if test -n "$PKG_CONFIG"; then
35937    if test -n "$CUDA_CFLAGS"; then
35938        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
35939    else
35940        if test -n "$PKG_CONFIG" && \
35941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
35942  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
35943  ac_status=$?
35944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35945  test $ac_status = 0; }; then
35946  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
35947else
35948  pkg_failed=yes
35949fi
35950    fi
35951else
35952	pkg_failed=untried
35953fi
35954if test -n "$PKG_CONFIG"; then
35955    if test -n "$CUDA_LIBS"; then
35956        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
35957    else
35958        if test -n "$PKG_CONFIG" && \
35959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
35960  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
35961  ac_status=$?
35962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35963  test $ac_status = 0; }; then
35964  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
35965else
35966  pkg_failed=yes
35967fi
35968    fi
35969else
35970	pkg_failed=untried
35971fi
35972
35973
35974
35975if test $pkg_failed = yes; then
35976
35977if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35978        _pkg_short_errors_supported=yes
35979else
35980        _pkg_short_errors_supported=no
35981fi
35982        if test $_pkg_short_errors_supported = yes; then
35983	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
35984        else
35985	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
35986        fi
35987	# Put the nasty error message in config.log where it belongs
35988	echo "$CUDA_PKG_ERRORS" >&5
35989
35990	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35991$as_echo "no" >&6; }
35992
35993
35994pkg_failed=no
35995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
35996$as_echo_n "checking for CUDA... " >&6; }
35997
35998if test -n "$PKG_CONFIG"; then
35999    if test -n "$CUDA_CFLAGS"; then
36000        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36001    else
36002        if test -n "$PKG_CONFIG" && \
36003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36004  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36005  ac_status=$?
36006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36007  test $ac_status = 0; }; then
36008  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36009else
36010  pkg_failed=yes
36011fi
36012    fi
36013else
36014	pkg_failed=untried
36015fi
36016if test -n "$PKG_CONFIG"; then
36017    if test -n "$CUDA_LIBS"; then
36018        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36019    else
36020        if test -n "$PKG_CONFIG" && \
36021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36022  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36023  ac_status=$?
36024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36025  test $ac_status = 0; }; then
36026  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36027else
36028  pkg_failed=yes
36029fi
36030    fi
36031else
36032	pkg_failed=untried
36033fi
36034
36035
36036
36037if test $pkg_failed = yes; then
36038
36039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36040        _pkg_short_errors_supported=yes
36041else
36042        _pkg_short_errors_supported=no
36043fi
36044        if test $_pkg_short_errors_supported = yes; then
36045	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36046        else
36047	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36048        fi
36049	# Put the nasty error message in config.log where it belongs
36050	echo "$CUDA_PKG_ERRORS" >&5
36051
36052	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36053$as_echo "no" >&6; }
36054
36055                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36056$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36057elif test $pkg_failed = untried; then
36058
36059                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36060$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36061else
36062	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36063	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36064        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36065$as_echo "yes" >&6; }
36066	:
36067fi
36068elif test $pkg_failed = untried; then
36069
36070
36071pkg_failed=no
36072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36073$as_echo_n "checking for CUDA... " >&6; }
36074
36075if test -n "$PKG_CONFIG"; then
36076    if test -n "$CUDA_CFLAGS"; then
36077        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36078    else
36079        if test -n "$PKG_CONFIG" && \
36080    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36081  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36082  ac_status=$?
36083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36084  test $ac_status = 0; }; then
36085  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36086else
36087  pkg_failed=yes
36088fi
36089    fi
36090else
36091	pkg_failed=untried
36092fi
36093if test -n "$PKG_CONFIG"; then
36094    if test -n "$CUDA_LIBS"; then
36095        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36096    else
36097        if test -n "$PKG_CONFIG" && \
36098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36099  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36100  ac_status=$?
36101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36102  test $ac_status = 0; }; then
36103  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36104else
36105  pkg_failed=yes
36106fi
36107    fi
36108else
36109	pkg_failed=untried
36110fi
36111
36112
36113
36114if test $pkg_failed = yes; then
36115
36116if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36117        _pkg_short_errors_supported=yes
36118else
36119        _pkg_short_errors_supported=no
36120fi
36121        if test $_pkg_short_errors_supported = yes; then
36122	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36123        else
36124	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36125        fi
36126	# Put the nasty error message in config.log where it belongs
36127	echo "$CUDA_PKG_ERRORS" >&5
36128
36129	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36130$as_echo "no" >&6; }
36131
36132                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36133$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36134elif test $pkg_failed = untried; then
36135
36136                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36137$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36138else
36139	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36140	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36142$as_echo "yes" >&6; }
36143	:
36144fi
36145else
36146	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36147	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36148        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36149$as_echo "yes" >&6; }
36150	:
36151fi
36152else
36153	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36154	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36155        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36156$as_echo "yes" >&6; }
36157	:
36158fi
36159elif test $pkg_failed = untried; then
36160
36161
36162pkg_failed=no
36163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36164$as_echo_n "checking for CUDA... " >&6; }
36165
36166if test -n "$PKG_CONFIG"; then
36167    if test -n "$CUDA_CFLAGS"; then
36168        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36169    else
36170        if test -n "$PKG_CONFIG" && \
36171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
36172  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
36173  ac_status=$?
36174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36175  test $ac_status = 0; }; then
36176  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
36177else
36178  pkg_failed=yes
36179fi
36180    fi
36181else
36182	pkg_failed=untried
36183fi
36184if test -n "$PKG_CONFIG"; then
36185    if test -n "$CUDA_LIBS"; then
36186        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36187    else
36188        if test -n "$PKG_CONFIG" && \
36189    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
36190  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
36191  ac_status=$?
36192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36193  test $ac_status = 0; }; then
36194  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
36195else
36196  pkg_failed=yes
36197fi
36198    fi
36199else
36200	pkg_failed=untried
36201fi
36202
36203
36204
36205if test $pkg_failed = yes; then
36206
36207if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36208        _pkg_short_errors_supported=yes
36209else
36210        _pkg_short_errors_supported=no
36211fi
36212        if test $_pkg_short_errors_supported = yes; then
36213	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
36214        else
36215	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
36216        fi
36217	# Put the nasty error message in config.log where it belongs
36218	echo "$CUDA_PKG_ERRORS" >&5
36219
36220	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36221$as_echo "no" >&6; }
36222
36223
36224pkg_failed=no
36225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36226$as_echo_n "checking for CUDA... " >&6; }
36227
36228if test -n "$PKG_CONFIG"; then
36229    if test -n "$CUDA_CFLAGS"; then
36230        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36231    else
36232        if test -n "$PKG_CONFIG" && \
36233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36234  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36235  ac_status=$?
36236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36237  test $ac_status = 0; }; then
36238  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
36239else
36240  pkg_failed=yes
36241fi
36242    fi
36243else
36244	pkg_failed=untried
36245fi
36246if test -n "$PKG_CONFIG"; then
36247    if test -n "$CUDA_LIBS"; then
36248        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36249    else
36250        if test -n "$PKG_CONFIG" && \
36251    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36252  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36253  ac_status=$?
36254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36255  test $ac_status = 0; }; then
36256  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
36257else
36258  pkg_failed=yes
36259fi
36260    fi
36261else
36262	pkg_failed=untried
36263fi
36264
36265
36266
36267if test $pkg_failed = yes; then
36268
36269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36270        _pkg_short_errors_supported=yes
36271else
36272        _pkg_short_errors_supported=no
36273fi
36274        if test $_pkg_short_errors_supported = yes; then
36275	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36276        else
36277	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36278        fi
36279	# Put the nasty error message in config.log where it belongs
36280	echo "$CUDA_PKG_ERRORS" >&5
36281
36282	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36283$as_echo "no" >&6; }
36284
36285
36286pkg_failed=no
36287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36288$as_echo_n "checking for CUDA... " >&6; }
36289
36290if test -n "$PKG_CONFIG"; then
36291    if test -n "$CUDA_CFLAGS"; then
36292        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36293    else
36294        if test -n "$PKG_CONFIG" && \
36295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36296  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36297  ac_status=$?
36298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36299  test $ac_status = 0; }; then
36300  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36301else
36302  pkg_failed=yes
36303fi
36304    fi
36305else
36306	pkg_failed=untried
36307fi
36308if test -n "$PKG_CONFIG"; then
36309    if test -n "$CUDA_LIBS"; then
36310        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36311    else
36312        if test -n "$PKG_CONFIG" && \
36313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36314  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36315  ac_status=$?
36316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36317  test $ac_status = 0; }; then
36318  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36319else
36320  pkg_failed=yes
36321fi
36322    fi
36323else
36324	pkg_failed=untried
36325fi
36326
36327
36328
36329if test $pkg_failed = yes; then
36330
36331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36332        _pkg_short_errors_supported=yes
36333else
36334        _pkg_short_errors_supported=no
36335fi
36336        if test $_pkg_short_errors_supported = yes; then
36337	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36338        else
36339	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36340        fi
36341	# Put the nasty error message in config.log where it belongs
36342	echo "$CUDA_PKG_ERRORS" >&5
36343
36344	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36345$as_echo "no" >&6; }
36346
36347                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36348$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36349elif test $pkg_failed = untried; then
36350
36351                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36352$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36353else
36354	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36355	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36356        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357$as_echo "yes" >&6; }
36358	:
36359fi
36360elif test $pkg_failed = untried; then
36361
36362
36363pkg_failed=no
36364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36365$as_echo_n "checking for CUDA... " >&6; }
36366
36367if test -n "$PKG_CONFIG"; then
36368    if test -n "$CUDA_CFLAGS"; then
36369        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36370    else
36371        if test -n "$PKG_CONFIG" && \
36372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36373  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36374  ac_status=$?
36375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36376  test $ac_status = 0; }; then
36377  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36378else
36379  pkg_failed=yes
36380fi
36381    fi
36382else
36383	pkg_failed=untried
36384fi
36385if test -n "$PKG_CONFIG"; then
36386    if test -n "$CUDA_LIBS"; then
36387        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36388    else
36389        if test -n "$PKG_CONFIG" && \
36390    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36391  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36392  ac_status=$?
36393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36394  test $ac_status = 0; }; then
36395  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36396else
36397  pkg_failed=yes
36398fi
36399    fi
36400else
36401	pkg_failed=untried
36402fi
36403
36404
36405
36406if test $pkg_failed = yes; then
36407
36408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36409        _pkg_short_errors_supported=yes
36410else
36411        _pkg_short_errors_supported=no
36412fi
36413        if test $_pkg_short_errors_supported = yes; then
36414	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36415        else
36416	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36417        fi
36418	# Put the nasty error message in config.log where it belongs
36419	echo "$CUDA_PKG_ERRORS" >&5
36420
36421	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36422$as_echo "no" >&6; }
36423
36424                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36425$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36426elif test $pkg_failed = untried; then
36427
36428                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36429$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36430else
36431	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36432	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36433        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36434$as_echo "yes" >&6; }
36435	:
36436fi
36437else
36438	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36439	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36441$as_echo "yes" >&6; }
36442	:
36443fi
36444elif test $pkg_failed = untried; then
36445
36446
36447pkg_failed=no
36448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36449$as_echo_n "checking for CUDA... " >&6; }
36450
36451if test -n "$PKG_CONFIG"; then
36452    if test -n "$CUDA_CFLAGS"; then
36453        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36454    else
36455        if test -n "$PKG_CONFIG" && \
36456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36457  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36458  ac_status=$?
36459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36460  test $ac_status = 0; }; then
36461  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
36462else
36463  pkg_failed=yes
36464fi
36465    fi
36466else
36467	pkg_failed=untried
36468fi
36469if test -n "$PKG_CONFIG"; then
36470    if test -n "$CUDA_LIBS"; then
36471        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36472    else
36473        if test -n "$PKG_CONFIG" && \
36474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36475  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36476  ac_status=$?
36477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36478  test $ac_status = 0; }; then
36479  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
36480else
36481  pkg_failed=yes
36482fi
36483    fi
36484else
36485	pkg_failed=untried
36486fi
36487
36488
36489
36490if test $pkg_failed = yes; then
36491
36492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36493        _pkg_short_errors_supported=yes
36494else
36495        _pkg_short_errors_supported=no
36496fi
36497        if test $_pkg_short_errors_supported = yes; then
36498	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36499        else
36500	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36501        fi
36502	# Put the nasty error message in config.log where it belongs
36503	echo "$CUDA_PKG_ERRORS" >&5
36504
36505	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36506$as_echo "no" >&6; }
36507
36508
36509pkg_failed=no
36510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36511$as_echo_n "checking for CUDA... " >&6; }
36512
36513if test -n "$PKG_CONFIG"; then
36514    if test -n "$CUDA_CFLAGS"; then
36515        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36516    else
36517        if test -n "$PKG_CONFIG" && \
36518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36519  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36520  ac_status=$?
36521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36522  test $ac_status = 0; }; then
36523  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36524else
36525  pkg_failed=yes
36526fi
36527    fi
36528else
36529	pkg_failed=untried
36530fi
36531if test -n "$PKG_CONFIG"; then
36532    if test -n "$CUDA_LIBS"; then
36533        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36534    else
36535        if test -n "$PKG_CONFIG" && \
36536    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36537  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36538  ac_status=$?
36539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36540  test $ac_status = 0; }; then
36541  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36542else
36543  pkg_failed=yes
36544fi
36545    fi
36546else
36547	pkg_failed=untried
36548fi
36549
36550
36551
36552if test $pkg_failed = yes; then
36553
36554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36555        _pkg_short_errors_supported=yes
36556else
36557        _pkg_short_errors_supported=no
36558fi
36559        if test $_pkg_short_errors_supported = yes; then
36560	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36561        else
36562	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36563        fi
36564	# Put the nasty error message in config.log where it belongs
36565	echo "$CUDA_PKG_ERRORS" >&5
36566
36567	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568$as_echo "no" >&6; }
36569
36570                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36571$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36572elif test $pkg_failed = untried; then
36573
36574                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36575$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36576else
36577	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36578	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36579        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36580$as_echo "yes" >&6; }
36581	:
36582fi
36583elif test $pkg_failed = untried; then
36584
36585
36586pkg_failed=no
36587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36588$as_echo_n "checking for CUDA... " >&6; }
36589
36590if test -n "$PKG_CONFIG"; then
36591    if test -n "$CUDA_CFLAGS"; then
36592        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36593    else
36594        if test -n "$PKG_CONFIG" && \
36595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36596  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36597  ac_status=$?
36598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36599  test $ac_status = 0; }; then
36600  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36601else
36602  pkg_failed=yes
36603fi
36604    fi
36605else
36606	pkg_failed=untried
36607fi
36608if test -n "$PKG_CONFIG"; then
36609    if test -n "$CUDA_LIBS"; then
36610        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36611    else
36612        if test -n "$PKG_CONFIG" && \
36613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36614  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36615  ac_status=$?
36616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36617  test $ac_status = 0; }; then
36618  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36619else
36620  pkg_failed=yes
36621fi
36622    fi
36623else
36624	pkg_failed=untried
36625fi
36626
36627
36628
36629if test $pkg_failed = yes; then
36630
36631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36632        _pkg_short_errors_supported=yes
36633else
36634        _pkg_short_errors_supported=no
36635fi
36636        if test $_pkg_short_errors_supported = yes; then
36637	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36638        else
36639	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36640        fi
36641	# Put the nasty error message in config.log where it belongs
36642	echo "$CUDA_PKG_ERRORS" >&5
36643
36644	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36645$as_echo "no" >&6; }
36646
36647                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36648$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36649elif test $pkg_failed = untried; then
36650
36651                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36652$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36653else
36654	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36655	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36657$as_echo "yes" >&6; }
36658	:
36659fi
36660else
36661	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36662	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36664$as_echo "yes" >&6; }
36665	:
36666fi
36667else
36668	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36669	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36671$as_echo "yes" >&6; }
36672	:
36673fi
36674else
36675	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36676	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36678$as_echo "yes" >&6; }
36679	:
36680fi
36681elif test $pkg_failed = untried; then
36682
36683
36684pkg_failed=no
36685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36686$as_echo_n "checking for CUDA... " >&6; }
36687
36688if test -n "$PKG_CONFIG"; then
36689    if test -n "$CUDA_CFLAGS"; then
36690        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36691    else
36692        if test -n "$PKG_CONFIG" && \
36693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
36694  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
36695  ac_status=$?
36696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36697  test $ac_status = 0; }; then
36698  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
36699else
36700  pkg_failed=yes
36701fi
36702    fi
36703else
36704	pkg_failed=untried
36705fi
36706if test -n "$PKG_CONFIG"; then
36707    if test -n "$CUDA_LIBS"; then
36708        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36709    else
36710        if test -n "$PKG_CONFIG" && \
36711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
36712  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
36713  ac_status=$?
36714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36715  test $ac_status = 0; }; then
36716  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
36717else
36718  pkg_failed=yes
36719fi
36720    fi
36721else
36722	pkg_failed=untried
36723fi
36724
36725
36726
36727if test $pkg_failed = yes; then
36728
36729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36730        _pkg_short_errors_supported=yes
36731else
36732        _pkg_short_errors_supported=no
36733fi
36734        if test $_pkg_short_errors_supported = yes; then
36735	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
36736        else
36737	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
36738        fi
36739	# Put the nasty error message in config.log where it belongs
36740	echo "$CUDA_PKG_ERRORS" >&5
36741
36742	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36743$as_echo "no" >&6; }
36744
36745
36746pkg_failed=no
36747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36748$as_echo_n "checking for CUDA... " >&6; }
36749
36750if test -n "$PKG_CONFIG"; then
36751    if test -n "$CUDA_CFLAGS"; then
36752        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36753    else
36754        if test -n "$PKG_CONFIG" && \
36755    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
36756  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
36757  ac_status=$?
36758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36759  test $ac_status = 0; }; then
36760  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
36761else
36762  pkg_failed=yes
36763fi
36764    fi
36765else
36766	pkg_failed=untried
36767fi
36768if test -n "$PKG_CONFIG"; then
36769    if test -n "$CUDA_LIBS"; then
36770        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36771    else
36772        if test -n "$PKG_CONFIG" && \
36773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
36774  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
36775  ac_status=$?
36776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36777  test $ac_status = 0; }; then
36778  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
36779else
36780  pkg_failed=yes
36781fi
36782    fi
36783else
36784	pkg_failed=untried
36785fi
36786
36787
36788
36789if test $pkg_failed = yes; then
36790
36791if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36792        _pkg_short_errors_supported=yes
36793else
36794        _pkg_short_errors_supported=no
36795fi
36796        if test $_pkg_short_errors_supported = yes; then
36797	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
36798        else
36799	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
36800        fi
36801	# Put the nasty error message in config.log where it belongs
36802	echo "$CUDA_PKG_ERRORS" >&5
36803
36804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36805$as_echo "no" >&6; }
36806
36807
36808pkg_failed=no
36809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36810$as_echo_n "checking for CUDA... " >&6; }
36811
36812if test -n "$PKG_CONFIG"; then
36813    if test -n "$CUDA_CFLAGS"; then
36814        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36815    else
36816        if test -n "$PKG_CONFIG" && \
36817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36818  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36819  ac_status=$?
36820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36821  test $ac_status = 0; }; then
36822  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
36823else
36824  pkg_failed=yes
36825fi
36826    fi
36827else
36828	pkg_failed=untried
36829fi
36830if test -n "$PKG_CONFIG"; then
36831    if test -n "$CUDA_LIBS"; then
36832        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36833    else
36834        if test -n "$PKG_CONFIG" && \
36835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
36836  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
36837  ac_status=$?
36838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36839  test $ac_status = 0; }; then
36840  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
36841else
36842  pkg_failed=yes
36843fi
36844    fi
36845else
36846	pkg_failed=untried
36847fi
36848
36849
36850
36851if test $pkg_failed = yes; then
36852
36853if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36854        _pkg_short_errors_supported=yes
36855else
36856        _pkg_short_errors_supported=no
36857fi
36858        if test $_pkg_short_errors_supported = yes; then
36859	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36860        else
36861	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
36862        fi
36863	# Put the nasty error message in config.log where it belongs
36864	echo "$CUDA_PKG_ERRORS" >&5
36865
36866	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36867$as_echo "no" >&6; }
36868
36869
36870pkg_failed=no
36871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36872$as_echo_n "checking for CUDA... " >&6; }
36873
36874if test -n "$PKG_CONFIG"; then
36875    if test -n "$CUDA_CFLAGS"; then
36876        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36877    else
36878        if test -n "$PKG_CONFIG" && \
36879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36880  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36881  ac_status=$?
36882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36883  test $ac_status = 0; }; then
36884  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36885else
36886  pkg_failed=yes
36887fi
36888    fi
36889else
36890	pkg_failed=untried
36891fi
36892if test -n "$PKG_CONFIG"; then
36893    if test -n "$CUDA_LIBS"; then
36894        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36895    else
36896        if test -n "$PKG_CONFIG" && \
36897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36898  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36899  ac_status=$?
36900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36901  test $ac_status = 0; }; then
36902  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36903else
36904  pkg_failed=yes
36905fi
36906    fi
36907else
36908	pkg_failed=untried
36909fi
36910
36911
36912
36913if test $pkg_failed = yes; then
36914
36915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36916        _pkg_short_errors_supported=yes
36917else
36918        _pkg_short_errors_supported=no
36919fi
36920        if test $_pkg_short_errors_supported = yes; then
36921	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36922        else
36923	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36924        fi
36925	# Put the nasty error message in config.log where it belongs
36926	echo "$CUDA_PKG_ERRORS" >&5
36927
36928	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36929$as_echo "no" >&6; }
36930
36931                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36932$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36933elif test $pkg_failed = untried; then
36934
36935                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
36936$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
36937else
36938	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
36939	CUDA_LIBS=$pkg_cv_CUDA_LIBS
36940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941$as_echo "yes" >&6; }
36942	:
36943fi
36944elif test $pkg_failed = untried; then
36945
36946
36947pkg_failed=no
36948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
36949$as_echo_n "checking for CUDA... " >&6; }
36950
36951if test -n "$PKG_CONFIG"; then
36952    if test -n "$CUDA_CFLAGS"; then
36953        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
36954    else
36955        if test -n "$PKG_CONFIG" && \
36956    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36957  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36958  ac_status=$?
36959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36960  test $ac_status = 0; }; then
36961  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
36962else
36963  pkg_failed=yes
36964fi
36965    fi
36966else
36967	pkg_failed=untried
36968fi
36969if test -n "$PKG_CONFIG"; then
36970    if test -n "$CUDA_LIBS"; then
36971        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
36972    else
36973        if test -n "$PKG_CONFIG" && \
36974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
36975  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
36976  ac_status=$?
36977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36978  test $ac_status = 0; }; then
36979  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
36980else
36981  pkg_failed=yes
36982fi
36983    fi
36984else
36985	pkg_failed=untried
36986fi
36987
36988
36989
36990if test $pkg_failed = yes; then
36991
36992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36993        _pkg_short_errors_supported=yes
36994else
36995        _pkg_short_errors_supported=no
36996fi
36997        if test $_pkg_short_errors_supported = yes; then
36998	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
36999        else
37000	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37001        fi
37002	# Put the nasty error message in config.log where it belongs
37003	echo "$CUDA_PKG_ERRORS" >&5
37004
37005	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37006$as_echo "no" >&6; }
37007
37008                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37009$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37010elif test $pkg_failed = untried; then
37011
37012                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37013$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37014else
37015	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37016	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37018$as_echo "yes" >&6; }
37019	:
37020fi
37021else
37022	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37023	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37025$as_echo "yes" >&6; }
37026	:
37027fi
37028elif test $pkg_failed = untried; then
37029
37030
37031pkg_failed=no
37032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37033$as_echo_n "checking for CUDA... " >&6; }
37034
37035if test -n "$PKG_CONFIG"; then
37036    if test -n "$CUDA_CFLAGS"; then
37037        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37038    else
37039        if test -n "$PKG_CONFIG" && \
37040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37041  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37042  ac_status=$?
37043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37044  test $ac_status = 0; }; then
37045  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
37046else
37047  pkg_failed=yes
37048fi
37049    fi
37050else
37051	pkg_failed=untried
37052fi
37053if test -n "$PKG_CONFIG"; then
37054    if test -n "$CUDA_LIBS"; then
37055        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37056    else
37057        if test -n "$PKG_CONFIG" && \
37058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37059  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37060  ac_status=$?
37061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37062  test $ac_status = 0; }; then
37063  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
37064else
37065  pkg_failed=yes
37066fi
37067    fi
37068else
37069	pkg_failed=untried
37070fi
37071
37072
37073
37074if test $pkg_failed = yes; then
37075
37076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37077        _pkg_short_errors_supported=yes
37078else
37079        _pkg_short_errors_supported=no
37080fi
37081        if test $_pkg_short_errors_supported = yes; then
37082	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37083        else
37084	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37085        fi
37086	# Put the nasty error message in config.log where it belongs
37087	echo "$CUDA_PKG_ERRORS" >&5
37088
37089	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37090$as_echo "no" >&6; }
37091
37092
37093pkg_failed=no
37094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37095$as_echo_n "checking for CUDA... " >&6; }
37096
37097if test -n "$PKG_CONFIG"; then
37098    if test -n "$CUDA_CFLAGS"; then
37099        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37100    else
37101        if test -n "$PKG_CONFIG" && \
37102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37103  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37104  ac_status=$?
37105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37106  test $ac_status = 0; }; then
37107  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37108else
37109  pkg_failed=yes
37110fi
37111    fi
37112else
37113	pkg_failed=untried
37114fi
37115if test -n "$PKG_CONFIG"; then
37116    if test -n "$CUDA_LIBS"; then
37117        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37118    else
37119        if test -n "$PKG_CONFIG" && \
37120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37121  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37122  ac_status=$?
37123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37124  test $ac_status = 0; }; then
37125  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37126else
37127  pkg_failed=yes
37128fi
37129    fi
37130else
37131	pkg_failed=untried
37132fi
37133
37134
37135
37136if test $pkg_failed = yes; then
37137
37138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37139        _pkg_short_errors_supported=yes
37140else
37141        _pkg_short_errors_supported=no
37142fi
37143        if test $_pkg_short_errors_supported = yes; then
37144	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37145        else
37146	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37147        fi
37148	# Put the nasty error message in config.log where it belongs
37149	echo "$CUDA_PKG_ERRORS" >&5
37150
37151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37152$as_echo "no" >&6; }
37153
37154                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37155$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37156elif test $pkg_failed = untried; then
37157
37158                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37159$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37160else
37161	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37162	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37163        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37164$as_echo "yes" >&6; }
37165	:
37166fi
37167elif test $pkg_failed = untried; then
37168
37169
37170pkg_failed=no
37171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37172$as_echo_n "checking for CUDA... " >&6; }
37173
37174if test -n "$PKG_CONFIG"; then
37175    if test -n "$CUDA_CFLAGS"; then
37176        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37177    else
37178        if test -n "$PKG_CONFIG" && \
37179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37180  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37181  ac_status=$?
37182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37183  test $ac_status = 0; }; then
37184  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37185else
37186  pkg_failed=yes
37187fi
37188    fi
37189else
37190	pkg_failed=untried
37191fi
37192if test -n "$PKG_CONFIG"; then
37193    if test -n "$CUDA_LIBS"; then
37194        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37195    else
37196        if test -n "$PKG_CONFIG" && \
37197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37198  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37199  ac_status=$?
37200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37201  test $ac_status = 0; }; then
37202  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37203else
37204  pkg_failed=yes
37205fi
37206    fi
37207else
37208	pkg_failed=untried
37209fi
37210
37211
37212
37213if test $pkg_failed = yes; then
37214
37215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37216        _pkg_short_errors_supported=yes
37217else
37218        _pkg_short_errors_supported=no
37219fi
37220        if test $_pkg_short_errors_supported = yes; then
37221	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37222        else
37223	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37224        fi
37225	# Put the nasty error message in config.log where it belongs
37226	echo "$CUDA_PKG_ERRORS" >&5
37227
37228	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37229$as_echo "no" >&6; }
37230
37231                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37232$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37233elif test $pkg_failed = untried; then
37234
37235                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37236$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37237else
37238	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37239	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37241$as_echo "yes" >&6; }
37242	:
37243fi
37244else
37245	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37246	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37247        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37248$as_echo "yes" >&6; }
37249	:
37250fi
37251else
37252	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37253	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37254        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37255$as_echo "yes" >&6; }
37256	:
37257fi
37258elif test $pkg_failed = untried; then
37259
37260
37261pkg_failed=no
37262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37263$as_echo_n "checking for CUDA... " >&6; }
37264
37265if test -n "$PKG_CONFIG"; then
37266    if test -n "$CUDA_CFLAGS"; then
37267        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37268    else
37269        if test -n "$PKG_CONFIG" && \
37270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
37271  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
37272  ac_status=$?
37273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37274  test $ac_status = 0; }; then
37275  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
37276else
37277  pkg_failed=yes
37278fi
37279    fi
37280else
37281	pkg_failed=untried
37282fi
37283if test -n "$PKG_CONFIG"; then
37284    if test -n "$CUDA_LIBS"; then
37285        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37286    else
37287        if test -n "$PKG_CONFIG" && \
37288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
37289  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
37290  ac_status=$?
37291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37292  test $ac_status = 0; }; then
37293  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
37294else
37295  pkg_failed=yes
37296fi
37297    fi
37298else
37299	pkg_failed=untried
37300fi
37301
37302
37303
37304if test $pkg_failed = yes; then
37305
37306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37307        _pkg_short_errors_supported=yes
37308else
37309        _pkg_short_errors_supported=no
37310fi
37311        if test $_pkg_short_errors_supported = yes; then
37312	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
37313        else
37314	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
37315        fi
37316	# Put the nasty error message in config.log where it belongs
37317	echo "$CUDA_PKG_ERRORS" >&5
37318
37319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37320$as_echo "no" >&6; }
37321
37322
37323pkg_failed=no
37324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37325$as_echo_n "checking for CUDA... " >&6; }
37326
37327if test -n "$PKG_CONFIG"; then
37328    if test -n "$CUDA_CFLAGS"; then
37329        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37330    else
37331        if test -n "$PKG_CONFIG" && \
37332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37333  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37334  ac_status=$?
37335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37336  test $ac_status = 0; }; then
37337  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
37338else
37339  pkg_failed=yes
37340fi
37341    fi
37342else
37343	pkg_failed=untried
37344fi
37345if test -n "$PKG_CONFIG"; then
37346    if test -n "$CUDA_LIBS"; then
37347        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37348    else
37349        if test -n "$PKG_CONFIG" && \
37350    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37351  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37352  ac_status=$?
37353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37354  test $ac_status = 0; }; then
37355  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
37356else
37357  pkg_failed=yes
37358fi
37359    fi
37360else
37361	pkg_failed=untried
37362fi
37363
37364
37365
37366if test $pkg_failed = yes; then
37367
37368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37369        _pkg_short_errors_supported=yes
37370else
37371        _pkg_short_errors_supported=no
37372fi
37373        if test $_pkg_short_errors_supported = yes; then
37374	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37375        else
37376	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37377        fi
37378	# Put the nasty error message in config.log where it belongs
37379	echo "$CUDA_PKG_ERRORS" >&5
37380
37381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37382$as_echo "no" >&6; }
37383
37384
37385pkg_failed=no
37386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37387$as_echo_n "checking for CUDA... " >&6; }
37388
37389if test -n "$PKG_CONFIG"; then
37390    if test -n "$CUDA_CFLAGS"; then
37391        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37392    else
37393        if test -n "$PKG_CONFIG" && \
37394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37395  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37396  ac_status=$?
37397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37398  test $ac_status = 0; }; then
37399  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37400else
37401  pkg_failed=yes
37402fi
37403    fi
37404else
37405	pkg_failed=untried
37406fi
37407if test -n "$PKG_CONFIG"; then
37408    if test -n "$CUDA_LIBS"; then
37409        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37410    else
37411        if test -n "$PKG_CONFIG" && \
37412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37413  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37414  ac_status=$?
37415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37416  test $ac_status = 0; }; then
37417  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37418else
37419  pkg_failed=yes
37420fi
37421    fi
37422else
37423	pkg_failed=untried
37424fi
37425
37426
37427
37428if test $pkg_failed = yes; then
37429
37430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37431        _pkg_short_errors_supported=yes
37432else
37433        _pkg_short_errors_supported=no
37434fi
37435        if test $_pkg_short_errors_supported = yes; then
37436	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37437        else
37438	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37439        fi
37440	# Put the nasty error message in config.log where it belongs
37441	echo "$CUDA_PKG_ERRORS" >&5
37442
37443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37444$as_echo "no" >&6; }
37445
37446                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37447$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37448elif test $pkg_failed = untried; then
37449
37450                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37451$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37452else
37453	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37454	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37455        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37456$as_echo "yes" >&6; }
37457	:
37458fi
37459elif test $pkg_failed = untried; then
37460
37461
37462pkg_failed=no
37463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37464$as_echo_n "checking for CUDA... " >&6; }
37465
37466if test -n "$PKG_CONFIG"; then
37467    if test -n "$CUDA_CFLAGS"; then
37468        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37469    else
37470        if test -n "$PKG_CONFIG" && \
37471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37472  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37473  ac_status=$?
37474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37475  test $ac_status = 0; }; then
37476  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37477else
37478  pkg_failed=yes
37479fi
37480    fi
37481else
37482	pkg_failed=untried
37483fi
37484if test -n "$PKG_CONFIG"; then
37485    if test -n "$CUDA_LIBS"; then
37486        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37487    else
37488        if test -n "$PKG_CONFIG" && \
37489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37490  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37491  ac_status=$?
37492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37493  test $ac_status = 0; }; then
37494  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37495else
37496  pkg_failed=yes
37497fi
37498    fi
37499else
37500	pkg_failed=untried
37501fi
37502
37503
37504
37505if test $pkg_failed = yes; then
37506
37507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37508        _pkg_short_errors_supported=yes
37509else
37510        _pkg_short_errors_supported=no
37511fi
37512        if test $_pkg_short_errors_supported = yes; then
37513	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37514        else
37515	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37516        fi
37517	# Put the nasty error message in config.log where it belongs
37518	echo "$CUDA_PKG_ERRORS" >&5
37519
37520	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37521$as_echo "no" >&6; }
37522
37523                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37524$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37525elif test $pkg_failed = untried; then
37526
37527                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37528$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37529else
37530	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37531	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37532        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37533$as_echo "yes" >&6; }
37534	:
37535fi
37536else
37537	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37538	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37540$as_echo "yes" >&6; }
37541	:
37542fi
37543elif test $pkg_failed = untried; then
37544
37545
37546pkg_failed=no
37547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37548$as_echo_n "checking for CUDA... " >&6; }
37549
37550if test -n "$PKG_CONFIG"; then
37551    if test -n "$CUDA_CFLAGS"; then
37552        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37553    else
37554        if test -n "$PKG_CONFIG" && \
37555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37556  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37557  ac_status=$?
37558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37559  test $ac_status = 0; }; then
37560  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
37561else
37562  pkg_failed=yes
37563fi
37564    fi
37565else
37566	pkg_failed=untried
37567fi
37568if test -n "$PKG_CONFIG"; then
37569    if test -n "$CUDA_LIBS"; then
37570        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37571    else
37572        if test -n "$PKG_CONFIG" && \
37573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37574  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37575  ac_status=$?
37576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37577  test $ac_status = 0; }; then
37578  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
37579else
37580  pkg_failed=yes
37581fi
37582    fi
37583else
37584	pkg_failed=untried
37585fi
37586
37587
37588
37589if test $pkg_failed = yes; then
37590
37591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37592        _pkg_short_errors_supported=yes
37593else
37594        _pkg_short_errors_supported=no
37595fi
37596        if test $_pkg_short_errors_supported = yes; then
37597	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37598        else
37599	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
37600        fi
37601	# Put the nasty error message in config.log where it belongs
37602	echo "$CUDA_PKG_ERRORS" >&5
37603
37604	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37605$as_echo "no" >&6; }
37606
37607
37608pkg_failed=no
37609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37610$as_echo_n "checking for CUDA... " >&6; }
37611
37612if test -n "$PKG_CONFIG"; then
37613    if test -n "$CUDA_CFLAGS"; then
37614        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37615    else
37616        if test -n "$PKG_CONFIG" && \
37617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37618  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37619  ac_status=$?
37620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37621  test $ac_status = 0; }; then
37622  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37623else
37624  pkg_failed=yes
37625fi
37626    fi
37627else
37628	pkg_failed=untried
37629fi
37630if test -n "$PKG_CONFIG"; then
37631    if test -n "$CUDA_LIBS"; then
37632        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37633    else
37634        if test -n "$PKG_CONFIG" && \
37635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37636  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37637  ac_status=$?
37638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37639  test $ac_status = 0; }; then
37640  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37641else
37642  pkg_failed=yes
37643fi
37644    fi
37645else
37646	pkg_failed=untried
37647fi
37648
37649
37650
37651if test $pkg_failed = yes; then
37652
37653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37654        _pkg_short_errors_supported=yes
37655else
37656        _pkg_short_errors_supported=no
37657fi
37658        if test $_pkg_short_errors_supported = yes; then
37659	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37660        else
37661	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37662        fi
37663	# Put the nasty error message in config.log where it belongs
37664	echo "$CUDA_PKG_ERRORS" >&5
37665
37666	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37667$as_echo "no" >&6; }
37668
37669                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37670$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37671elif test $pkg_failed = untried; then
37672
37673                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37674$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37675else
37676	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37677	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37679$as_echo "yes" >&6; }
37680	:
37681fi
37682elif test $pkg_failed = untried; then
37683
37684
37685pkg_failed=no
37686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37687$as_echo_n "checking for CUDA... " >&6; }
37688
37689if test -n "$PKG_CONFIG"; then
37690    if test -n "$CUDA_CFLAGS"; then
37691        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37692    else
37693        if test -n "$PKG_CONFIG" && \
37694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37695  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37696  ac_status=$?
37697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37698  test $ac_status = 0; }; then
37699  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
37700else
37701  pkg_failed=yes
37702fi
37703    fi
37704else
37705	pkg_failed=untried
37706fi
37707if test -n "$PKG_CONFIG"; then
37708    if test -n "$CUDA_LIBS"; then
37709        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37710    else
37711        if test -n "$PKG_CONFIG" && \
37712    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
37713  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
37714  ac_status=$?
37715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37716  test $ac_status = 0; }; then
37717  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
37718else
37719  pkg_failed=yes
37720fi
37721    fi
37722else
37723	pkg_failed=untried
37724fi
37725
37726
37727
37728if test $pkg_failed = yes; then
37729
37730if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37731        _pkg_short_errors_supported=yes
37732else
37733        _pkg_short_errors_supported=no
37734fi
37735        if test $_pkg_short_errors_supported = yes; then
37736	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37737        else
37738	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
37739        fi
37740	# Put the nasty error message in config.log where it belongs
37741	echo "$CUDA_PKG_ERRORS" >&5
37742
37743	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37744$as_echo "no" >&6; }
37745
37746                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37747$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37748elif test $pkg_failed = untried; then
37749
37750                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
37751$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
37752else
37753	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37754	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37755        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37756$as_echo "yes" >&6; }
37757	:
37758fi
37759else
37760	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37761	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37763$as_echo "yes" >&6; }
37764	:
37765fi
37766else
37767	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37768	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37770$as_echo "yes" >&6; }
37771	:
37772fi
37773else
37774	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37775	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37777$as_echo "yes" >&6; }
37778	:
37779fi
37780else
37781	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
37782	CUDA_LIBS=$pkg_cv_CUDA_LIBS
37783        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37784$as_echo "yes" >&6; }
37785	:
37786fi
37787elif test $pkg_failed = untried; then
37788
37789
37790pkg_failed=no
37791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37792$as_echo_n "checking for CUDA... " >&6; }
37793
37794if test -n "$PKG_CONFIG"; then
37795    if test -n "$CUDA_CFLAGS"; then
37796        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37797    else
37798        if test -n "$PKG_CONFIG" && \
37799    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
37800  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
37801  ac_status=$?
37802  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37803  test $ac_status = 0; }; then
37804  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
37805else
37806  pkg_failed=yes
37807fi
37808    fi
37809else
37810	pkg_failed=untried
37811fi
37812if test -n "$PKG_CONFIG"; then
37813    if test -n "$CUDA_LIBS"; then
37814        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37815    else
37816        if test -n "$PKG_CONFIG" && \
37817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
37818  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
37819  ac_status=$?
37820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37821  test $ac_status = 0; }; then
37822  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
37823else
37824  pkg_failed=yes
37825fi
37826    fi
37827else
37828	pkg_failed=untried
37829fi
37830
37831
37832
37833if test $pkg_failed = yes; then
37834
37835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37836        _pkg_short_errors_supported=yes
37837else
37838        _pkg_short_errors_supported=no
37839fi
37840        if test $_pkg_short_errors_supported = yes; then
37841	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
37842        else
37843	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
37844        fi
37845	# Put the nasty error message in config.log where it belongs
37846	echo "$CUDA_PKG_ERRORS" >&5
37847
37848	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37849$as_echo "no" >&6; }
37850
37851
37852pkg_failed=no
37853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37854$as_echo_n "checking for CUDA... " >&6; }
37855
37856if test -n "$PKG_CONFIG"; then
37857    if test -n "$CUDA_CFLAGS"; then
37858        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37859    else
37860        if test -n "$PKG_CONFIG" && \
37861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
37862  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
37863  ac_status=$?
37864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37865  test $ac_status = 0; }; then
37866  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
37867else
37868  pkg_failed=yes
37869fi
37870    fi
37871else
37872	pkg_failed=untried
37873fi
37874if test -n "$PKG_CONFIG"; then
37875    if test -n "$CUDA_LIBS"; then
37876        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37877    else
37878        if test -n "$PKG_CONFIG" && \
37879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
37880  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
37881  ac_status=$?
37882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37883  test $ac_status = 0; }; then
37884  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
37885else
37886  pkg_failed=yes
37887fi
37888    fi
37889else
37890	pkg_failed=untried
37891fi
37892
37893
37894
37895if test $pkg_failed = yes; then
37896
37897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37898        _pkg_short_errors_supported=yes
37899else
37900        _pkg_short_errors_supported=no
37901fi
37902        if test $_pkg_short_errors_supported = yes; then
37903	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
37904        else
37905	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
37906        fi
37907	# Put the nasty error message in config.log where it belongs
37908	echo "$CUDA_PKG_ERRORS" >&5
37909
37910	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911$as_echo "no" >&6; }
37912
37913
37914pkg_failed=no
37915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37916$as_echo_n "checking for CUDA... " >&6; }
37917
37918if test -n "$PKG_CONFIG"; then
37919    if test -n "$CUDA_CFLAGS"; then
37920        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37921    else
37922        if test -n "$PKG_CONFIG" && \
37923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
37924  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
37925  ac_status=$?
37926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37927  test $ac_status = 0; }; then
37928  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
37929else
37930  pkg_failed=yes
37931fi
37932    fi
37933else
37934	pkg_failed=untried
37935fi
37936if test -n "$PKG_CONFIG"; then
37937    if test -n "$CUDA_LIBS"; then
37938        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
37939    else
37940        if test -n "$PKG_CONFIG" && \
37941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
37942  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
37943  ac_status=$?
37944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37945  test $ac_status = 0; }; then
37946  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
37947else
37948  pkg_failed=yes
37949fi
37950    fi
37951else
37952	pkg_failed=untried
37953fi
37954
37955
37956
37957if test $pkg_failed = yes; then
37958
37959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37960        _pkg_short_errors_supported=yes
37961else
37962        _pkg_short_errors_supported=no
37963fi
37964        if test $_pkg_short_errors_supported = yes; then
37965	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
37966        else
37967	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
37968        fi
37969	# Put the nasty error message in config.log where it belongs
37970	echo "$CUDA_PKG_ERRORS" >&5
37971
37972	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37973$as_echo "no" >&6; }
37974
37975
37976pkg_failed=no
37977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
37978$as_echo_n "checking for CUDA... " >&6; }
37979
37980if test -n "$PKG_CONFIG"; then
37981    if test -n "$CUDA_CFLAGS"; then
37982        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
37983    else
37984        if test -n "$PKG_CONFIG" && \
37985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
37986  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
37987  ac_status=$?
37988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37989  test $ac_status = 0; }; then
37990  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
37991else
37992  pkg_failed=yes
37993fi
37994    fi
37995else
37996	pkg_failed=untried
37997fi
37998if test -n "$PKG_CONFIG"; then
37999    if test -n "$CUDA_LIBS"; then
38000        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38001    else
38002        if test -n "$PKG_CONFIG" && \
38003    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38004  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38005  ac_status=$?
38006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38007  test $ac_status = 0; }; then
38008  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
38009else
38010  pkg_failed=yes
38011fi
38012    fi
38013else
38014	pkg_failed=untried
38015fi
38016
38017
38018
38019if test $pkg_failed = yes; then
38020
38021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38022        _pkg_short_errors_supported=yes
38023else
38024        _pkg_short_errors_supported=no
38025fi
38026        if test $_pkg_short_errors_supported = yes; then
38027	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38028        else
38029	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38030        fi
38031	# Put the nasty error message in config.log where it belongs
38032	echo "$CUDA_PKG_ERRORS" >&5
38033
38034	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38035$as_echo "no" >&6; }
38036
38037
38038pkg_failed=no
38039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38040$as_echo_n "checking for CUDA... " >&6; }
38041
38042if test -n "$PKG_CONFIG"; then
38043    if test -n "$CUDA_CFLAGS"; then
38044        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38045    else
38046        if test -n "$PKG_CONFIG" && \
38047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38048  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38049  ac_status=$?
38050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38051  test $ac_status = 0; }; then
38052  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38053else
38054  pkg_failed=yes
38055fi
38056    fi
38057else
38058	pkg_failed=untried
38059fi
38060if test -n "$PKG_CONFIG"; then
38061    if test -n "$CUDA_LIBS"; then
38062        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38063    else
38064        if test -n "$PKG_CONFIG" && \
38065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38066  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38067  ac_status=$?
38068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38069  test $ac_status = 0; }; then
38070  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38071else
38072  pkg_failed=yes
38073fi
38074    fi
38075else
38076	pkg_failed=untried
38077fi
38078
38079
38080
38081if test $pkg_failed = yes; then
38082
38083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38084        _pkg_short_errors_supported=yes
38085else
38086        _pkg_short_errors_supported=no
38087fi
38088        if test $_pkg_short_errors_supported = yes; then
38089	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38090        else
38091	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38092        fi
38093	# Put the nasty error message in config.log where it belongs
38094	echo "$CUDA_PKG_ERRORS" >&5
38095
38096	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38097$as_echo "no" >&6; }
38098
38099                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38100$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38101elif test $pkg_failed = untried; then
38102
38103                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38104$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38105else
38106	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38107	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38108        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38109$as_echo "yes" >&6; }
38110	:
38111fi
38112elif test $pkg_failed = untried; then
38113
38114
38115pkg_failed=no
38116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38117$as_echo_n "checking for CUDA... " >&6; }
38118
38119if test -n "$PKG_CONFIG"; then
38120    if test -n "$CUDA_CFLAGS"; then
38121        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38122    else
38123        if test -n "$PKG_CONFIG" && \
38124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38125  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38126  ac_status=$?
38127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38128  test $ac_status = 0; }; then
38129  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38130else
38131  pkg_failed=yes
38132fi
38133    fi
38134else
38135	pkg_failed=untried
38136fi
38137if test -n "$PKG_CONFIG"; then
38138    if test -n "$CUDA_LIBS"; then
38139        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38140    else
38141        if test -n "$PKG_CONFIG" && \
38142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38143  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38144  ac_status=$?
38145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38146  test $ac_status = 0; }; then
38147  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38148else
38149  pkg_failed=yes
38150fi
38151    fi
38152else
38153	pkg_failed=untried
38154fi
38155
38156
38157
38158if test $pkg_failed = yes; then
38159
38160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38161        _pkg_short_errors_supported=yes
38162else
38163        _pkg_short_errors_supported=no
38164fi
38165        if test $_pkg_short_errors_supported = yes; then
38166	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38167        else
38168	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38169        fi
38170	# Put the nasty error message in config.log where it belongs
38171	echo "$CUDA_PKG_ERRORS" >&5
38172
38173	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38174$as_echo "no" >&6; }
38175
38176                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38177$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38178elif test $pkg_failed = untried; then
38179
38180                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38181$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38182else
38183	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38184	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38186$as_echo "yes" >&6; }
38187	:
38188fi
38189else
38190	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38191	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38192        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38193$as_echo "yes" >&6; }
38194	:
38195fi
38196elif test $pkg_failed = untried; then
38197
38198
38199pkg_failed=no
38200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38201$as_echo_n "checking for CUDA... " >&6; }
38202
38203if test -n "$PKG_CONFIG"; then
38204    if test -n "$CUDA_CFLAGS"; then
38205        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38206    else
38207        if test -n "$PKG_CONFIG" && \
38208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38209  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38210  ac_status=$?
38211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38212  test $ac_status = 0; }; then
38213  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
38214else
38215  pkg_failed=yes
38216fi
38217    fi
38218else
38219	pkg_failed=untried
38220fi
38221if test -n "$PKG_CONFIG"; then
38222    if test -n "$CUDA_LIBS"; then
38223        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38224    else
38225        if test -n "$PKG_CONFIG" && \
38226    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38227  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38228  ac_status=$?
38229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38230  test $ac_status = 0; }; then
38231  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
38232else
38233  pkg_failed=yes
38234fi
38235    fi
38236else
38237	pkg_failed=untried
38238fi
38239
38240
38241
38242if test $pkg_failed = yes; then
38243
38244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38245        _pkg_short_errors_supported=yes
38246else
38247        _pkg_short_errors_supported=no
38248fi
38249        if test $_pkg_short_errors_supported = yes; then
38250	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38251        else
38252	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38253        fi
38254	# Put the nasty error message in config.log where it belongs
38255	echo "$CUDA_PKG_ERRORS" >&5
38256
38257	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38258$as_echo "no" >&6; }
38259
38260
38261pkg_failed=no
38262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38263$as_echo_n "checking for CUDA... " >&6; }
38264
38265if test -n "$PKG_CONFIG"; then
38266    if test -n "$CUDA_CFLAGS"; then
38267        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38268    else
38269        if test -n "$PKG_CONFIG" && \
38270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38271  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38272  ac_status=$?
38273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38274  test $ac_status = 0; }; then
38275  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38276else
38277  pkg_failed=yes
38278fi
38279    fi
38280else
38281	pkg_failed=untried
38282fi
38283if test -n "$PKG_CONFIG"; then
38284    if test -n "$CUDA_LIBS"; then
38285        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38286    else
38287        if test -n "$PKG_CONFIG" && \
38288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38289  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38290  ac_status=$?
38291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38292  test $ac_status = 0; }; then
38293  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38294else
38295  pkg_failed=yes
38296fi
38297    fi
38298else
38299	pkg_failed=untried
38300fi
38301
38302
38303
38304if test $pkg_failed = yes; then
38305
38306if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38307        _pkg_short_errors_supported=yes
38308else
38309        _pkg_short_errors_supported=no
38310fi
38311        if test $_pkg_short_errors_supported = yes; then
38312	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38313        else
38314	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38315        fi
38316	# Put the nasty error message in config.log where it belongs
38317	echo "$CUDA_PKG_ERRORS" >&5
38318
38319	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320$as_echo "no" >&6; }
38321
38322                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38323$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38324elif test $pkg_failed = untried; then
38325
38326                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38327$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38328else
38329	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38330	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38332$as_echo "yes" >&6; }
38333	:
38334fi
38335elif test $pkg_failed = untried; then
38336
38337
38338pkg_failed=no
38339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38340$as_echo_n "checking for CUDA... " >&6; }
38341
38342if test -n "$PKG_CONFIG"; then
38343    if test -n "$CUDA_CFLAGS"; then
38344        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38345    else
38346        if test -n "$PKG_CONFIG" && \
38347    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38348  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38349  ac_status=$?
38350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38351  test $ac_status = 0; }; then
38352  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38353else
38354  pkg_failed=yes
38355fi
38356    fi
38357else
38358	pkg_failed=untried
38359fi
38360if test -n "$PKG_CONFIG"; then
38361    if test -n "$CUDA_LIBS"; then
38362        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38363    else
38364        if test -n "$PKG_CONFIG" && \
38365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38366  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38367  ac_status=$?
38368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38369  test $ac_status = 0; }; then
38370  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38371else
38372  pkg_failed=yes
38373fi
38374    fi
38375else
38376	pkg_failed=untried
38377fi
38378
38379
38380
38381if test $pkg_failed = yes; then
38382
38383if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38384        _pkg_short_errors_supported=yes
38385else
38386        _pkg_short_errors_supported=no
38387fi
38388        if test $_pkg_short_errors_supported = yes; then
38389	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38390        else
38391	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38392        fi
38393	# Put the nasty error message in config.log where it belongs
38394	echo "$CUDA_PKG_ERRORS" >&5
38395
38396	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38397$as_echo "no" >&6; }
38398
38399                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38400$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38401elif test $pkg_failed = untried; then
38402
38403                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38404$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38405else
38406	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38407	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38408        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38409$as_echo "yes" >&6; }
38410	:
38411fi
38412else
38413	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38414	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38416$as_echo "yes" >&6; }
38417	:
38418fi
38419else
38420	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38421	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38423$as_echo "yes" >&6; }
38424	:
38425fi
38426elif test $pkg_failed = untried; then
38427
38428
38429pkg_failed=no
38430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38431$as_echo_n "checking for CUDA... " >&6; }
38432
38433if test -n "$PKG_CONFIG"; then
38434    if test -n "$CUDA_CFLAGS"; then
38435        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38436    else
38437        if test -n "$PKG_CONFIG" && \
38438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
38439  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
38440  ac_status=$?
38441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38442  test $ac_status = 0; }; then
38443  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
38444else
38445  pkg_failed=yes
38446fi
38447    fi
38448else
38449	pkg_failed=untried
38450fi
38451if test -n "$PKG_CONFIG"; then
38452    if test -n "$CUDA_LIBS"; then
38453        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38454    else
38455        if test -n "$PKG_CONFIG" && \
38456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
38457  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
38458  ac_status=$?
38459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38460  test $ac_status = 0; }; then
38461  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
38462else
38463  pkg_failed=yes
38464fi
38465    fi
38466else
38467	pkg_failed=untried
38468fi
38469
38470
38471
38472if test $pkg_failed = yes; then
38473
38474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38475        _pkg_short_errors_supported=yes
38476else
38477        _pkg_short_errors_supported=no
38478fi
38479        if test $_pkg_short_errors_supported = yes; then
38480	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
38481        else
38482	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
38483        fi
38484	# Put the nasty error message in config.log where it belongs
38485	echo "$CUDA_PKG_ERRORS" >&5
38486
38487	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38488$as_echo "no" >&6; }
38489
38490
38491pkg_failed=no
38492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38493$as_echo_n "checking for CUDA... " >&6; }
38494
38495if test -n "$PKG_CONFIG"; then
38496    if test -n "$CUDA_CFLAGS"; then
38497        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38498    else
38499        if test -n "$PKG_CONFIG" && \
38500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38501  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38502  ac_status=$?
38503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38504  test $ac_status = 0; }; then
38505  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
38506else
38507  pkg_failed=yes
38508fi
38509    fi
38510else
38511	pkg_failed=untried
38512fi
38513if test -n "$PKG_CONFIG"; then
38514    if test -n "$CUDA_LIBS"; then
38515        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38516    else
38517        if test -n "$PKG_CONFIG" && \
38518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38519  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38520  ac_status=$?
38521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38522  test $ac_status = 0; }; then
38523  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
38524else
38525  pkg_failed=yes
38526fi
38527    fi
38528else
38529	pkg_failed=untried
38530fi
38531
38532
38533
38534if test $pkg_failed = yes; then
38535
38536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38537        _pkg_short_errors_supported=yes
38538else
38539        _pkg_short_errors_supported=no
38540fi
38541        if test $_pkg_short_errors_supported = yes; then
38542	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38543        else
38544	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38545        fi
38546	# Put the nasty error message in config.log where it belongs
38547	echo "$CUDA_PKG_ERRORS" >&5
38548
38549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38550$as_echo "no" >&6; }
38551
38552
38553pkg_failed=no
38554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38555$as_echo_n "checking for CUDA... " >&6; }
38556
38557if test -n "$PKG_CONFIG"; then
38558    if test -n "$CUDA_CFLAGS"; then
38559        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38560    else
38561        if test -n "$PKG_CONFIG" && \
38562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38563  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38564  ac_status=$?
38565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38566  test $ac_status = 0; }; then
38567  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38568else
38569  pkg_failed=yes
38570fi
38571    fi
38572else
38573	pkg_failed=untried
38574fi
38575if test -n "$PKG_CONFIG"; then
38576    if test -n "$CUDA_LIBS"; then
38577        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38578    else
38579        if test -n "$PKG_CONFIG" && \
38580    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38581  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38582  ac_status=$?
38583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38584  test $ac_status = 0; }; then
38585  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38586else
38587  pkg_failed=yes
38588fi
38589    fi
38590else
38591	pkg_failed=untried
38592fi
38593
38594
38595
38596if test $pkg_failed = yes; then
38597
38598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38599        _pkg_short_errors_supported=yes
38600else
38601        _pkg_short_errors_supported=no
38602fi
38603        if test $_pkg_short_errors_supported = yes; then
38604	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38605        else
38606	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38607        fi
38608	# Put the nasty error message in config.log where it belongs
38609	echo "$CUDA_PKG_ERRORS" >&5
38610
38611	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38612$as_echo "no" >&6; }
38613
38614                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38615$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38616elif test $pkg_failed = untried; then
38617
38618                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38619$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38620else
38621	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38622	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38623        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38624$as_echo "yes" >&6; }
38625	:
38626fi
38627elif test $pkg_failed = untried; then
38628
38629
38630pkg_failed=no
38631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38632$as_echo_n "checking for CUDA... " >&6; }
38633
38634if test -n "$PKG_CONFIG"; then
38635    if test -n "$CUDA_CFLAGS"; then
38636        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38637    else
38638        if test -n "$PKG_CONFIG" && \
38639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38640  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38641  ac_status=$?
38642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38643  test $ac_status = 0; }; then
38644  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38645else
38646  pkg_failed=yes
38647fi
38648    fi
38649else
38650	pkg_failed=untried
38651fi
38652if test -n "$PKG_CONFIG"; then
38653    if test -n "$CUDA_LIBS"; then
38654        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38655    else
38656        if test -n "$PKG_CONFIG" && \
38657    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38658  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38659  ac_status=$?
38660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38661  test $ac_status = 0; }; then
38662  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38663else
38664  pkg_failed=yes
38665fi
38666    fi
38667else
38668	pkg_failed=untried
38669fi
38670
38671
38672
38673if test $pkg_failed = yes; then
38674
38675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38676        _pkg_short_errors_supported=yes
38677else
38678        _pkg_short_errors_supported=no
38679fi
38680        if test $_pkg_short_errors_supported = yes; then
38681	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38682        else
38683	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38684        fi
38685	# Put the nasty error message in config.log where it belongs
38686	echo "$CUDA_PKG_ERRORS" >&5
38687
38688	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38689$as_echo "no" >&6; }
38690
38691                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38692$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38693elif test $pkg_failed = untried; then
38694
38695                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38696$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38697else
38698	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38699	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38701$as_echo "yes" >&6; }
38702	:
38703fi
38704else
38705	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38706	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38708$as_echo "yes" >&6; }
38709	:
38710fi
38711elif test $pkg_failed = untried; then
38712
38713
38714pkg_failed=no
38715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38716$as_echo_n "checking for CUDA... " >&6; }
38717
38718if test -n "$PKG_CONFIG"; then
38719    if test -n "$CUDA_CFLAGS"; then
38720        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38721    else
38722        if test -n "$PKG_CONFIG" && \
38723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38724  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38725  ac_status=$?
38726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38727  test $ac_status = 0; }; then
38728  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
38729else
38730  pkg_failed=yes
38731fi
38732    fi
38733else
38734	pkg_failed=untried
38735fi
38736if test -n "$PKG_CONFIG"; then
38737    if test -n "$CUDA_LIBS"; then
38738        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38739    else
38740        if test -n "$PKG_CONFIG" && \
38741    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
38742  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
38743  ac_status=$?
38744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38745  test $ac_status = 0; }; then
38746  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
38747else
38748  pkg_failed=yes
38749fi
38750    fi
38751else
38752	pkg_failed=untried
38753fi
38754
38755
38756
38757if test $pkg_failed = yes; then
38758
38759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38760        _pkg_short_errors_supported=yes
38761else
38762        _pkg_short_errors_supported=no
38763fi
38764        if test $_pkg_short_errors_supported = yes; then
38765	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38766        else
38767	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
38768        fi
38769	# Put the nasty error message in config.log where it belongs
38770	echo "$CUDA_PKG_ERRORS" >&5
38771
38772	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38773$as_echo "no" >&6; }
38774
38775
38776pkg_failed=no
38777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38778$as_echo_n "checking for CUDA... " >&6; }
38779
38780if test -n "$PKG_CONFIG"; then
38781    if test -n "$CUDA_CFLAGS"; then
38782        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38783    else
38784        if test -n "$PKG_CONFIG" && \
38785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38786  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38787  ac_status=$?
38788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38789  test $ac_status = 0; }; then
38790  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38791else
38792  pkg_failed=yes
38793fi
38794    fi
38795else
38796	pkg_failed=untried
38797fi
38798if test -n "$PKG_CONFIG"; then
38799    if test -n "$CUDA_LIBS"; then
38800        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38801    else
38802        if test -n "$PKG_CONFIG" && \
38803    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38804  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38805  ac_status=$?
38806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38807  test $ac_status = 0; }; then
38808  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38809else
38810  pkg_failed=yes
38811fi
38812    fi
38813else
38814	pkg_failed=untried
38815fi
38816
38817
38818
38819if test $pkg_failed = yes; then
38820
38821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38822        _pkg_short_errors_supported=yes
38823else
38824        _pkg_short_errors_supported=no
38825fi
38826        if test $_pkg_short_errors_supported = yes; then
38827	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38828        else
38829	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38830        fi
38831	# Put the nasty error message in config.log where it belongs
38832	echo "$CUDA_PKG_ERRORS" >&5
38833
38834	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38835$as_echo "no" >&6; }
38836
38837                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38838$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38839elif test $pkg_failed = untried; then
38840
38841                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38842$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38843else
38844	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38845	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38846        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38847$as_echo "yes" >&6; }
38848	:
38849fi
38850elif test $pkg_failed = untried; then
38851
38852
38853pkg_failed=no
38854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38855$as_echo_n "checking for CUDA... " >&6; }
38856
38857if test -n "$PKG_CONFIG"; then
38858    if test -n "$CUDA_CFLAGS"; then
38859        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38860    else
38861        if test -n "$PKG_CONFIG" && \
38862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38863  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38864  ac_status=$?
38865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38866  test $ac_status = 0; }; then
38867  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
38868else
38869  pkg_failed=yes
38870fi
38871    fi
38872else
38873	pkg_failed=untried
38874fi
38875if test -n "$PKG_CONFIG"; then
38876    if test -n "$CUDA_LIBS"; then
38877        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38878    else
38879        if test -n "$PKG_CONFIG" && \
38880    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
38881  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
38882  ac_status=$?
38883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38884  test $ac_status = 0; }; then
38885  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
38886else
38887  pkg_failed=yes
38888fi
38889    fi
38890else
38891	pkg_failed=untried
38892fi
38893
38894
38895
38896if test $pkg_failed = yes; then
38897
38898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38899        _pkg_short_errors_supported=yes
38900else
38901        _pkg_short_errors_supported=no
38902fi
38903        if test $_pkg_short_errors_supported = yes; then
38904	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38905        else
38906	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
38907        fi
38908	# Put the nasty error message in config.log where it belongs
38909	echo "$CUDA_PKG_ERRORS" >&5
38910
38911	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38912$as_echo "no" >&6; }
38913
38914                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38915$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38916elif test $pkg_failed = untried; then
38917
38918                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
38919$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
38920else
38921	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38922	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38924$as_echo "yes" >&6; }
38925	:
38926fi
38927else
38928	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38929	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38931$as_echo "yes" >&6; }
38932	:
38933fi
38934else
38935	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38936	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38938$as_echo "yes" >&6; }
38939	:
38940fi
38941else
38942	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
38943	CUDA_LIBS=$pkg_cv_CUDA_LIBS
38944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38945$as_echo "yes" >&6; }
38946	:
38947fi
38948elif test $pkg_failed = untried; then
38949
38950
38951pkg_failed=no
38952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
38953$as_echo_n "checking for CUDA... " >&6; }
38954
38955if test -n "$PKG_CONFIG"; then
38956    if test -n "$CUDA_CFLAGS"; then
38957        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
38958    else
38959        if test -n "$PKG_CONFIG" && \
38960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
38961  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
38962  ac_status=$?
38963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38964  test $ac_status = 0; }; then
38965  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
38966else
38967  pkg_failed=yes
38968fi
38969    fi
38970else
38971	pkg_failed=untried
38972fi
38973if test -n "$PKG_CONFIG"; then
38974    if test -n "$CUDA_LIBS"; then
38975        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
38976    else
38977        if test -n "$PKG_CONFIG" && \
38978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
38979  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
38980  ac_status=$?
38981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38982  test $ac_status = 0; }; then
38983  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
38984else
38985  pkg_failed=yes
38986fi
38987    fi
38988else
38989	pkg_failed=untried
38990fi
38991
38992
38993
38994if test $pkg_failed = yes; then
38995
38996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38997        _pkg_short_errors_supported=yes
38998else
38999        _pkg_short_errors_supported=no
39000fi
39001        if test $_pkg_short_errors_supported = yes; then
39002	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
39003        else
39004	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
39005        fi
39006	# Put the nasty error message in config.log where it belongs
39007	echo "$CUDA_PKG_ERRORS" >&5
39008
39009	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39010$as_echo "no" >&6; }
39011
39012
39013pkg_failed=no
39014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39015$as_echo_n "checking for CUDA... " >&6; }
39016
39017if test -n "$PKG_CONFIG"; then
39018    if test -n "$CUDA_CFLAGS"; then
39019        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39020    else
39021        if test -n "$PKG_CONFIG" && \
39022    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
39023  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
39024  ac_status=$?
39025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39026  test $ac_status = 0; }; then
39027  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
39028else
39029  pkg_failed=yes
39030fi
39031    fi
39032else
39033	pkg_failed=untried
39034fi
39035if test -n "$PKG_CONFIG"; then
39036    if test -n "$CUDA_LIBS"; then
39037        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39038    else
39039        if test -n "$PKG_CONFIG" && \
39040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
39041  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
39042  ac_status=$?
39043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39044  test $ac_status = 0; }; then
39045  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
39046else
39047  pkg_failed=yes
39048fi
39049    fi
39050else
39051	pkg_failed=untried
39052fi
39053
39054
39055
39056if test $pkg_failed = yes; then
39057
39058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39059        _pkg_short_errors_supported=yes
39060else
39061        _pkg_short_errors_supported=no
39062fi
39063        if test $_pkg_short_errors_supported = yes; then
39064	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
39065        else
39066	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
39067        fi
39068	# Put the nasty error message in config.log where it belongs
39069	echo "$CUDA_PKG_ERRORS" >&5
39070
39071	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39072$as_echo "no" >&6; }
39073
39074
39075pkg_failed=no
39076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39077$as_echo_n "checking for CUDA... " >&6; }
39078
39079if test -n "$PKG_CONFIG"; then
39080    if test -n "$CUDA_CFLAGS"; then
39081        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39082    else
39083        if test -n "$PKG_CONFIG" && \
39084    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39085  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39086  ac_status=$?
39087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39088  test $ac_status = 0; }; then
39089  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
39090else
39091  pkg_failed=yes
39092fi
39093    fi
39094else
39095	pkg_failed=untried
39096fi
39097if test -n "$PKG_CONFIG"; then
39098    if test -n "$CUDA_LIBS"; then
39099        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39100    else
39101        if test -n "$PKG_CONFIG" && \
39102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39103  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39104  ac_status=$?
39105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39106  test $ac_status = 0; }; then
39107  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
39108else
39109  pkg_failed=yes
39110fi
39111    fi
39112else
39113	pkg_failed=untried
39114fi
39115
39116
39117
39118if test $pkg_failed = yes; then
39119
39120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39121        _pkg_short_errors_supported=yes
39122else
39123        _pkg_short_errors_supported=no
39124fi
39125        if test $_pkg_short_errors_supported = yes; then
39126	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39127        else
39128	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39129        fi
39130	# Put the nasty error message in config.log where it belongs
39131	echo "$CUDA_PKG_ERRORS" >&5
39132
39133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39134$as_echo "no" >&6; }
39135
39136
39137pkg_failed=no
39138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39139$as_echo_n "checking for CUDA... " >&6; }
39140
39141if test -n "$PKG_CONFIG"; then
39142    if test -n "$CUDA_CFLAGS"; then
39143        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39144    else
39145        if test -n "$PKG_CONFIG" && \
39146    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39147  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39148  ac_status=$?
39149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39150  test $ac_status = 0; }; then
39151  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39152else
39153  pkg_failed=yes
39154fi
39155    fi
39156else
39157	pkg_failed=untried
39158fi
39159if test -n "$PKG_CONFIG"; then
39160    if test -n "$CUDA_LIBS"; then
39161        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39162    else
39163        if test -n "$PKG_CONFIG" && \
39164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39165  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39166  ac_status=$?
39167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39168  test $ac_status = 0; }; then
39169  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39170else
39171  pkg_failed=yes
39172fi
39173    fi
39174else
39175	pkg_failed=untried
39176fi
39177
39178
39179
39180if test $pkg_failed = yes; then
39181
39182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39183        _pkg_short_errors_supported=yes
39184else
39185        _pkg_short_errors_supported=no
39186fi
39187        if test $_pkg_short_errors_supported = yes; then
39188	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39189        else
39190	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39191        fi
39192	# Put the nasty error message in config.log where it belongs
39193	echo "$CUDA_PKG_ERRORS" >&5
39194
39195	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39196$as_echo "no" >&6; }
39197
39198                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39199$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39200elif test $pkg_failed = untried; then
39201
39202                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39203$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39204else
39205	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39206	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39208$as_echo "yes" >&6; }
39209	:
39210fi
39211elif test $pkg_failed = untried; then
39212
39213
39214pkg_failed=no
39215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39216$as_echo_n "checking for CUDA... " >&6; }
39217
39218if test -n "$PKG_CONFIG"; then
39219    if test -n "$CUDA_CFLAGS"; then
39220        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39221    else
39222        if test -n "$PKG_CONFIG" && \
39223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39224  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39225  ac_status=$?
39226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39227  test $ac_status = 0; }; then
39228  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39229else
39230  pkg_failed=yes
39231fi
39232    fi
39233else
39234	pkg_failed=untried
39235fi
39236if test -n "$PKG_CONFIG"; then
39237    if test -n "$CUDA_LIBS"; then
39238        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39239    else
39240        if test -n "$PKG_CONFIG" && \
39241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39242  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39243  ac_status=$?
39244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39245  test $ac_status = 0; }; then
39246  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39247else
39248  pkg_failed=yes
39249fi
39250    fi
39251else
39252	pkg_failed=untried
39253fi
39254
39255
39256
39257if test $pkg_failed = yes; then
39258
39259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39260        _pkg_short_errors_supported=yes
39261else
39262        _pkg_short_errors_supported=no
39263fi
39264        if test $_pkg_short_errors_supported = yes; then
39265	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39266        else
39267	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39268        fi
39269	# Put the nasty error message in config.log where it belongs
39270	echo "$CUDA_PKG_ERRORS" >&5
39271
39272	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39273$as_echo "no" >&6; }
39274
39275                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39276$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39277elif test $pkg_failed = untried; then
39278
39279                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39280$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39281else
39282	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39283	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39284        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39285$as_echo "yes" >&6; }
39286	:
39287fi
39288else
39289	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39290	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39292$as_echo "yes" >&6; }
39293	:
39294fi
39295elif test $pkg_failed = untried; then
39296
39297
39298pkg_failed=no
39299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39300$as_echo_n "checking for CUDA... " >&6; }
39301
39302if test -n "$PKG_CONFIG"; then
39303    if test -n "$CUDA_CFLAGS"; then
39304        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39305    else
39306        if test -n "$PKG_CONFIG" && \
39307    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39308  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39309  ac_status=$?
39310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39311  test $ac_status = 0; }; then
39312  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
39313else
39314  pkg_failed=yes
39315fi
39316    fi
39317else
39318	pkg_failed=untried
39319fi
39320if test -n "$PKG_CONFIG"; then
39321    if test -n "$CUDA_LIBS"; then
39322        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39323    else
39324        if test -n "$PKG_CONFIG" && \
39325    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39326  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39327  ac_status=$?
39328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39329  test $ac_status = 0; }; then
39330  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
39331else
39332  pkg_failed=yes
39333fi
39334    fi
39335else
39336	pkg_failed=untried
39337fi
39338
39339
39340
39341if test $pkg_failed = yes; then
39342
39343if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39344        _pkg_short_errors_supported=yes
39345else
39346        _pkg_short_errors_supported=no
39347fi
39348        if test $_pkg_short_errors_supported = yes; then
39349	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39350        else
39351	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39352        fi
39353	# Put the nasty error message in config.log where it belongs
39354	echo "$CUDA_PKG_ERRORS" >&5
39355
39356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39357$as_echo "no" >&6; }
39358
39359
39360pkg_failed=no
39361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39362$as_echo_n "checking for CUDA... " >&6; }
39363
39364if test -n "$PKG_CONFIG"; then
39365    if test -n "$CUDA_CFLAGS"; then
39366        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39367    else
39368        if test -n "$PKG_CONFIG" && \
39369    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39370  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39371  ac_status=$?
39372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39373  test $ac_status = 0; }; then
39374  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39375else
39376  pkg_failed=yes
39377fi
39378    fi
39379else
39380	pkg_failed=untried
39381fi
39382if test -n "$PKG_CONFIG"; then
39383    if test -n "$CUDA_LIBS"; then
39384        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39385    else
39386        if test -n "$PKG_CONFIG" && \
39387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39388  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39389  ac_status=$?
39390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39391  test $ac_status = 0; }; then
39392  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39393else
39394  pkg_failed=yes
39395fi
39396    fi
39397else
39398	pkg_failed=untried
39399fi
39400
39401
39402
39403if test $pkg_failed = yes; then
39404
39405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39406        _pkg_short_errors_supported=yes
39407else
39408        _pkg_short_errors_supported=no
39409fi
39410        if test $_pkg_short_errors_supported = yes; then
39411	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39412        else
39413	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39414        fi
39415	# Put the nasty error message in config.log where it belongs
39416	echo "$CUDA_PKG_ERRORS" >&5
39417
39418	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39419$as_echo "no" >&6; }
39420
39421                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39422$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39423elif test $pkg_failed = untried; then
39424
39425                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39426$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39427else
39428	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39429	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39430        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39431$as_echo "yes" >&6; }
39432	:
39433fi
39434elif test $pkg_failed = untried; then
39435
39436
39437pkg_failed=no
39438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39439$as_echo_n "checking for CUDA... " >&6; }
39440
39441if test -n "$PKG_CONFIG"; then
39442    if test -n "$CUDA_CFLAGS"; then
39443        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39444    else
39445        if test -n "$PKG_CONFIG" && \
39446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39447  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39448  ac_status=$?
39449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39450  test $ac_status = 0; }; then
39451  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39452else
39453  pkg_failed=yes
39454fi
39455    fi
39456else
39457	pkg_failed=untried
39458fi
39459if test -n "$PKG_CONFIG"; then
39460    if test -n "$CUDA_LIBS"; then
39461        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39462    else
39463        if test -n "$PKG_CONFIG" && \
39464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39465  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39466  ac_status=$?
39467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39468  test $ac_status = 0; }; then
39469  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39470else
39471  pkg_failed=yes
39472fi
39473    fi
39474else
39475	pkg_failed=untried
39476fi
39477
39478
39479
39480if test $pkg_failed = yes; then
39481
39482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39483        _pkg_short_errors_supported=yes
39484else
39485        _pkg_short_errors_supported=no
39486fi
39487        if test $_pkg_short_errors_supported = yes; then
39488	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39489        else
39490	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39491        fi
39492	# Put the nasty error message in config.log where it belongs
39493	echo "$CUDA_PKG_ERRORS" >&5
39494
39495	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39496$as_echo "no" >&6; }
39497
39498                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39499$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39500elif test $pkg_failed = untried; then
39501
39502                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39503$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39504else
39505	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39506	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39507        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39508$as_echo "yes" >&6; }
39509	:
39510fi
39511else
39512	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39513	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39515$as_echo "yes" >&6; }
39516	:
39517fi
39518else
39519	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39520	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39522$as_echo "yes" >&6; }
39523	:
39524fi
39525elif test $pkg_failed = untried; then
39526
39527
39528pkg_failed=no
39529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39530$as_echo_n "checking for CUDA... " >&6; }
39531
39532if test -n "$PKG_CONFIG"; then
39533    if test -n "$CUDA_CFLAGS"; then
39534        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39535    else
39536        if test -n "$PKG_CONFIG" && \
39537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
39538  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
39539  ac_status=$?
39540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39541  test $ac_status = 0; }; then
39542  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
39543else
39544  pkg_failed=yes
39545fi
39546    fi
39547else
39548	pkg_failed=untried
39549fi
39550if test -n "$PKG_CONFIG"; then
39551    if test -n "$CUDA_LIBS"; then
39552        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39553    else
39554        if test -n "$PKG_CONFIG" && \
39555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
39556  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
39557  ac_status=$?
39558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39559  test $ac_status = 0; }; then
39560  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
39561else
39562  pkg_failed=yes
39563fi
39564    fi
39565else
39566	pkg_failed=untried
39567fi
39568
39569
39570
39571if test $pkg_failed = yes; then
39572
39573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39574        _pkg_short_errors_supported=yes
39575else
39576        _pkg_short_errors_supported=no
39577fi
39578        if test $_pkg_short_errors_supported = yes; then
39579	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
39580        else
39581	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
39582        fi
39583	# Put the nasty error message in config.log where it belongs
39584	echo "$CUDA_PKG_ERRORS" >&5
39585
39586	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39587$as_echo "no" >&6; }
39588
39589
39590pkg_failed=no
39591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39592$as_echo_n "checking for CUDA... " >&6; }
39593
39594if test -n "$PKG_CONFIG"; then
39595    if test -n "$CUDA_CFLAGS"; then
39596        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39597    else
39598        if test -n "$PKG_CONFIG" && \
39599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39600  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39601  ac_status=$?
39602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39603  test $ac_status = 0; }; then
39604  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
39605else
39606  pkg_failed=yes
39607fi
39608    fi
39609else
39610	pkg_failed=untried
39611fi
39612if test -n "$PKG_CONFIG"; then
39613    if test -n "$CUDA_LIBS"; then
39614        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39615    else
39616        if test -n "$PKG_CONFIG" && \
39617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39618  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39619  ac_status=$?
39620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39621  test $ac_status = 0; }; then
39622  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
39623else
39624  pkg_failed=yes
39625fi
39626    fi
39627else
39628	pkg_failed=untried
39629fi
39630
39631
39632
39633if test $pkg_failed = yes; then
39634
39635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39636        _pkg_short_errors_supported=yes
39637else
39638        _pkg_short_errors_supported=no
39639fi
39640        if test $_pkg_short_errors_supported = yes; then
39641	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39642        else
39643	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39644        fi
39645	# Put the nasty error message in config.log where it belongs
39646	echo "$CUDA_PKG_ERRORS" >&5
39647
39648	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39649$as_echo "no" >&6; }
39650
39651
39652pkg_failed=no
39653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39654$as_echo_n "checking for CUDA... " >&6; }
39655
39656if test -n "$PKG_CONFIG"; then
39657    if test -n "$CUDA_CFLAGS"; then
39658        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39659    else
39660        if test -n "$PKG_CONFIG" && \
39661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39662  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39663  ac_status=$?
39664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39665  test $ac_status = 0; }; then
39666  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39667else
39668  pkg_failed=yes
39669fi
39670    fi
39671else
39672	pkg_failed=untried
39673fi
39674if test -n "$PKG_CONFIG"; then
39675    if test -n "$CUDA_LIBS"; then
39676        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39677    else
39678        if test -n "$PKG_CONFIG" && \
39679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39680  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39681  ac_status=$?
39682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39683  test $ac_status = 0; }; then
39684  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39685else
39686  pkg_failed=yes
39687fi
39688    fi
39689else
39690	pkg_failed=untried
39691fi
39692
39693
39694
39695if test $pkg_failed = yes; then
39696
39697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39698        _pkg_short_errors_supported=yes
39699else
39700        _pkg_short_errors_supported=no
39701fi
39702        if test $_pkg_short_errors_supported = yes; then
39703	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39704        else
39705	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39706        fi
39707	# Put the nasty error message in config.log where it belongs
39708	echo "$CUDA_PKG_ERRORS" >&5
39709
39710	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39711$as_echo "no" >&6; }
39712
39713                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39714$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39715elif test $pkg_failed = untried; then
39716
39717                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39718$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39719else
39720	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39721	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39722        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39723$as_echo "yes" >&6; }
39724	:
39725fi
39726elif test $pkg_failed = untried; then
39727
39728
39729pkg_failed=no
39730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39731$as_echo_n "checking for CUDA... " >&6; }
39732
39733if test -n "$PKG_CONFIG"; then
39734    if test -n "$CUDA_CFLAGS"; then
39735        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39736    else
39737        if test -n "$PKG_CONFIG" && \
39738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39739  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39740  ac_status=$?
39741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39742  test $ac_status = 0; }; then
39743  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39744else
39745  pkg_failed=yes
39746fi
39747    fi
39748else
39749	pkg_failed=untried
39750fi
39751if test -n "$PKG_CONFIG"; then
39752    if test -n "$CUDA_LIBS"; then
39753        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39754    else
39755        if test -n "$PKG_CONFIG" && \
39756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39757  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39758  ac_status=$?
39759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39760  test $ac_status = 0; }; then
39761  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39762else
39763  pkg_failed=yes
39764fi
39765    fi
39766else
39767	pkg_failed=untried
39768fi
39769
39770
39771
39772if test $pkg_failed = yes; then
39773
39774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39775        _pkg_short_errors_supported=yes
39776else
39777        _pkg_short_errors_supported=no
39778fi
39779        if test $_pkg_short_errors_supported = yes; then
39780	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39781        else
39782	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39783        fi
39784	# Put the nasty error message in config.log where it belongs
39785	echo "$CUDA_PKG_ERRORS" >&5
39786
39787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39788$as_echo "no" >&6; }
39789
39790                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39791$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39792elif test $pkg_failed = untried; then
39793
39794                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39795$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39796else
39797	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39798	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39799        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39800$as_echo "yes" >&6; }
39801	:
39802fi
39803else
39804	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39805	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39806        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39807$as_echo "yes" >&6; }
39808	:
39809fi
39810elif test $pkg_failed = untried; then
39811
39812
39813pkg_failed=no
39814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39815$as_echo_n "checking for CUDA... " >&6; }
39816
39817if test -n "$PKG_CONFIG"; then
39818    if test -n "$CUDA_CFLAGS"; then
39819        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39820    else
39821        if test -n "$PKG_CONFIG" && \
39822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39823  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39824  ac_status=$?
39825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39826  test $ac_status = 0; }; then
39827  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
39828else
39829  pkg_failed=yes
39830fi
39831    fi
39832else
39833	pkg_failed=untried
39834fi
39835if test -n "$PKG_CONFIG"; then
39836    if test -n "$CUDA_LIBS"; then
39837        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39838    else
39839        if test -n "$PKG_CONFIG" && \
39840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
39841  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
39842  ac_status=$?
39843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39844  test $ac_status = 0; }; then
39845  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
39846else
39847  pkg_failed=yes
39848fi
39849    fi
39850else
39851	pkg_failed=untried
39852fi
39853
39854
39855
39856if test $pkg_failed = yes; then
39857
39858if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39859        _pkg_short_errors_supported=yes
39860else
39861        _pkg_short_errors_supported=no
39862fi
39863        if test $_pkg_short_errors_supported = yes; then
39864	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39865        else
39866	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
39867        fi
39868	# Put the nasty error message in config.log where it belongs
39869	echo "$CUDA_PKG_ERRORS" >&5
39870
39871	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39872$as_echo "no" >&6; }
39873
39874
39875pkg_failed=no
39876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39877$as_echo_n "checking for CUDA... " >&6; }
39878
39879if test -n "$PKG_CONFIG"; then
39880    if test -n "$CUDA_CFLAGS"; then
39881        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39882    else
39883        if test -n "$PKG_CONFIG" && \
39884    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39885  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39886  ac_status=$?
39887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39888  test $ac_status = 0; }; then
39889  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39890else
39891  pkg_failed=yes
39892fi
39893    fi
39894else
39895	pkg_failed=untried
39896fi
39897if test -n "$PKG_CONFIG"; then
39898    if test -n "$CUDA_LIBS"; then
39899        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39900    else
39901        if test -n "$PKG_CONFIG" && \
39902    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39903  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39904  ac_status=$?
39905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39906  test $ac_status = 0; }; then
39907  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39908else
39909  pkg_failed=yes
39910fi
39911    fi
39912else
39913	pkg_failed=untried
39914fi
39915
39916
39917
39918if test $pkg_failed = yes; then
39919
39920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39921        _pkg_short_errors_supported=yes
39922else
39923        _pkg_short_errors_supported=no
39924fi
39925        if test $_pkg_short_errors_supported = yes; then
39926	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39927        else
39928	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
39929        fi
39930	# Put the nasty error message in config.log where it belongs
39931	echo "$CUDA_PKG_ERRORS" >&5
39932
39933	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39934$as_echo "no" >&6; }
39935
39936                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39937$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39938elif test $pkg_failed = untried; then
39939
39940                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
39941$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
39942else
39943	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
39944	CUDA_LIBS=$pkg_cv_CUDA_LIBS
39945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39946$as_echo "yes" >&6; }
39947	:
39948fi
39949elif test $pkg_failed = untried; then
39950
39951
39952pkg_failed=no
39953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
39954$as_echo_n "checking for CUDA... " >&6; }
39955
39956if test -n "$PKG_CONFIG"; then
39957    if test -n "$CUDA_CFLAGS"; then
39958        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
39959    else
39960        if test -n "$PKG_CONFIG" && \
39961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39962  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39963  ac_status=$?
39964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39965  test $ac_status = 0; }; then
39966  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
39967else
39968  pkg_failed=yes
39969fi
39970    fi
39971else
39972	pkg_failed=untried
39973fi
39974if test -n "$PKG_CONFIG"; then
39975    if test -n "$CUDA_LIBS"; then
39976        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
39977    else
39978        if test -n "$PKG_CONFIG" && \
39979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
39980  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
39981  ac_status=$?
39982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39983  test $ac_status = 0; }; then
39984  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
39985else
39986  pkg_failed=yes
39987fi
39988    fi
39989else
39990	pkg_failed=untried
39991fi
39992
39993
39994
39995if test $pkg_failed = yes; then
39996
39997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39998        _pkg_short_errors_supported=yes
39999else
40000        _pkg_short_errors_supported=no
40001fi
40002        if test $_pkg_short_errors_supported = yes; then
40003	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40004        else
40005	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40006        fi
40007	# Put the nasty error message in config.log where it belongs
40008	echo "$CUDA_PKG_ERRORS" >&5
40009
40010	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40011$as_echo "no" >&6; }
40012
40013                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40014$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40015elif test $pkg_failed = untried; then
40016
40017                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40018$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40019else
40020	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40021	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40023$as_echo "yes" >&6; }
40024	:
40025fi
40026else
40027	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40028	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40029        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40030$as_echo "yes" >&6; }
40031	:
40032fi
40033else
40034	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40035	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40037$as_echo "yes" >&6; }
40038	:
40039fi
40040else
40041	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40042	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40044$as_echo "yes" >&6; }
40045	:
40046fi
40047else
40048	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40049	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40050        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40051$as_echo "yes" >&6; }
40052	:
40053fi
40054else
40055	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40056	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40057        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40058$as_echo "yes" >&6; }
40059	:
40060fi
40061elif test $pkg_failed = untried; then
40062
40063
40064pkg_failed=no
40065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40066$as_echo_n "checking for CUDA... " >&6; }
40067
40068if test -n "$PKG_CONFIG"; then
40069    if test -n "$CUDA_CFLAGS"; then
40070        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40071    else
40072        if test -n "$PKG_CONFIG" && \
40073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
40074  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
40075  ac_status=$?
40076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40077  test $ac_status = 0; }; then
40078  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
40079else
40080  pkg_failed=yes
40081fi
40082    fi
40083else
40084	pkg_failed=untried
40085fi
40086if test -n "$PKG_CONFIG"; then
40087    if test -n "$CUDA_LIBS"; then
40088        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40089    else
40090        if test -n "$PKG_CONFIG" && \
40091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
40092  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
40093  ac_status=$?
40094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40095  test $ac_status = 0; }; then
40096  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
40097else
40098  pkg_failed=yes
40099fi
40100    fi
40101else
40102	pkg_failed=untried
40103fi
40104
40105
40106
40107if test $pkg_failed = yes; then
40108
40109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40110        _pkg_short_errors_supported=yes
40111else
40112        _pkg_short_errors_supported=no
40113fi
40114        if test $_pkg_short_errors_supported = yes; then
40115	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
40116        else
40117	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
40118        fi
40119	# Put the nasty error message in config.log where it belongs
40120	echo "$CUDA_PKG_ERRORS" >&5
40121
40122	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40123$as_echo "no" >&6; }
40124
40125
40126pkg_failed=no
40127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40128$as_echo_n "checking for CUDA... " >&6; }
40129
40130if test -n "$PKG_CONFIG"; then
40131    if test -n "$CUDA_CFLAGS"; then
40132        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40133    else
40134        if test -n "$PKG_CONFIG" && \
40135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
40136  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
40137  ac_status=$?
40138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40139  test $ac_status = 0; }; then
40140  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
40141else
40142  pkg_failed=yes
40143fi
40144    fi
40145else
40146	pkg_failed=untried
40147fi
40148if test -n "$PKG_CONFIG"; then
40149    if test -n "$CUDA_LIBS"; then
40150        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40151    else
40152        if test -n "$PKG_CONFIG" && \
40153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
40154  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
40155  ac_status=$?
40156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40157  test $ac_status = 0; }; then
40158  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
40159else
40160  pkg_failed=yes
40161fi
40162    fi
40163else
40164	pkg_failed=untried
40165fi
40166
40167
40168
40169if test $pkg_failed = yes; then
40170
40171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40172        _pkg_short_errors_supported=yes
40173else
40174        _pkg_short_errors_supported=no
40175fi
40176        if test $_pkg_short_errors_supported = yes; then
40177	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
40178        else
40179	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
40180        fi
40181	# Put the nasty error message in config.log where it belongs
40182	echo "$CUDA_PKG_ERRORS" >&5
40183
40184	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40185$as_echo "no" >&6; }
40186
40187
40188pkg_failed=no
40189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40190$as_echo_n "checking for CUDA... " >&6; }
40191
40192if test -n "$PKG_CONFIG"; then
40193    if test -n "$CUDA_CFLAGS"; then
40194        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40195    else
40196        if test -n "$PKG_CONFIG" && \
40197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
40198  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
40199  ac_status=$?
40200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40201  test $ac_status = 0; }; then
40202  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
40203else
40204  pkg_failed=yes
40205fi
40206    fi
40207else
40208	pkg_failed=untried
40209fi
40210if test -n "$PKG_CONFIG"; then
40211    if test -n "$CUDA_LIBS"; then
40212        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40213    else
40214        if test -n "$PKG_CONFIG" && \
40215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
40216  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
40217  ac_status=$?
40218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40219  test $ac_status = 0; }; then
40220  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
40221else
40222  pkg_failed=yes
40223fi
40224    fi
40225else
40226	pkg_failed=untried
40227fi
40228
40229
40230
40231if test $pkg_failed = yes; then
40232
40233if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40234        _pkg_short_errors_supported=yes
40235else
40236        _pkg_short_errors_supported=no
40237fi
40238        if test $_pkg_short_errors_supported = yes; then
40239	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
40240        else
40241	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
40242        fi
40243	# Put the nasty error message in config.log where it belongs
40244	echo "$CUDA_PKG_ERRORS" >&5
40245
40246	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40247$as_echo "no" >&6; }
40248
40249
40250pkg_failed=no
40251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40252$as_echo_n "checking for CUDA... " >&6; }
40253
40254if test -n "$PKG_CONFIG"; then
40255    if test -n "$CUDA_CFLAGS"; then
40256        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40257    else
40258        if test -n "$PKG_CONFIG" && \
40259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
40260  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
40261  ac_status=$?
40262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40263  test $ac_status = 0; }; then
40264  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
40265else
40266  pkg_failed=yes
40267fi
40268    fi
40269else
40270	pkg_failed=untried
40271fi
40272if test -n "$PKG_CONFIG"; then
40273    if test -n "$CUDA_LIBS"; then
40274        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40275    else
40276        if test -n "$PKG_CONFIG" && \
40277    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
40278  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
40279  ac_status=$?
40280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40281  test $ac_status = 0; }; then
40282  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
40283else
40284  pkg_failed=yes
40285fi
40286    fi
40287else
40288	pkg_failed=untried
40289fi
40290
40291
40292
40293if test $pkg_failed = yes; then
40294
40295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40296        _pkg_short_errors_supported=yes
40297else
40298        _pkg_short_errors_supported=no
40299fi
40300        if test $_pkg_short_errors_supported = yes; then
40301	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
40302        else
40303	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
40304        fi
40305	# Put the nasty error message in config.log where it belongs
40306	echo "$CUDA_PKG_ERRORS" >&5
40307
40308	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40309$as_echo "no" >&6; }
40310
40311
40312pkg_failed=no
40313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40314$as_echo_n "checking for CUDA... " >&6; }
40315
40316if test -n "$PKG_CONFIG"; then
40317    if test -n "$CUDA_CFLAGS"; then
40318        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40319    else
40320        if test -n "$PKG_CONFIG" && \
40321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40322  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40323  ac_status=$?
40324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40325  test $ac_status = 0; }; then
40326  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
40327else
40328  pkg_failed=yes
40329fi
40330    fi
40331else
40332	pkg_failed=untried
40333fi
40334if test -n "$PKG_CONFIG"; then
40335    if test -n "$CUDA_LIBS"; then
40336        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40337    else
40338        if test -n "$PKG_CONFIG" && \
40339    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40340  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40341  ac_status=$?
40342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40343  test $ac_status = 0; }; then
40344  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
40345else
40346  pkg_failed=yes
40347fi
40348    fi
40349else
40350	pkg_failed=untried
40351fi
40352
40353
40354
40355if test $pkg_failed = yes; then
40356
40357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40358        _pkg_short_errors_supported=yes
40359else
40360        _pkg_short_errors_supported=no
40361fi
40362        if test $_pkg_short_errors_supported = yes; then
40363	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40364        else
40365	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40366        fi
40367	# Put the nasty error message in config.log where it belongs
40368	echo "$CUDA_PKG_ERRORS" >&5
40369
40370	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40371$as_echo "no" >&6; }
40372
40373
40374pkg_failed=no
40375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40376$as_echo_n "checking for CUDA... " >&6; }
40377
40378if test -n "$PKG_CONFIG"; then
40379    if test -n "$CUDA_CFLAGS"; then
40380        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40381    else
40382        if test -n "$PKG_CONFIG" && \
40383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40384  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40385  ac_status=$?
40386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40387  test $ac_status = 0; }; then
40388  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40389else
40390  pkg_failed=yes
40391fi
40392    fi
40393else
40394	pkg_failed=untried
40395fi
40396if test -n "$PKG_CONFIG"; then
40397    if test -n "$CUDA_LIBS"; then
40398        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40399    else
40400        if test -n "$PKG_CONFIG" && \
40401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40402  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40403  ac_status=$?
40404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40405  test $ac_status = 0; }; then
40406  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40407else
40408  pkg_failed=yes
40409fi
40410    fi
40411else
40412	pkg_failed=untried
40413fi
40414
40415
40416
40417if test $pkg_failed = yes; then
40418
40419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40420        _pkg_short_errors_supported=yes
40421else
40422        _pkg_short_errors_supported=no
40423fi
40424        if test $_pkg_short_errors_supported = yes; then
40425	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40426        else
40427	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40428        fi
40429	# Put the nasty error message in config.log where it belongs
40430	echo "$CUDA_PKG_ERRORS" >&5
40431
40432	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40433$as_echo "no" >&6; }
40434
40435                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40436$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40437elif test $pkg_failed = untried; then
40438
40439                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40440$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40441else
40442	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40443	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40445$as_echo "yes" >&6; }
40446	:
40447fi
40448elif test $pkg_failed = untried; then
40449
40450
40451pkg_failed=no
40452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40453$as_echo_n "checking for CUDA... " >&6; }
40454
40455if test -n "$PKG_CONFIG"; then
40456    if test -n "$CUDA_CFLAGS"; then
40457        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40458    else
40459        if test -n "$PKG_CONFIG" && \
40460    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40461  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40462  ac_status=$?
40463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40464  test $ac_status = 0; }; then
40465  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40466else
40467  pkg_failed=yes
40468fi
40469    fi
40470else
40471	pkg_failed=untried
40472fi
40473if test -n "$PKG_CONFIG"; then
40474    if test -n "$CUDA_LIBS"; then
40475        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40476    else
40477        if test -n "$PKG_CONFIG" && \
40478    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40479  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40480  ac_status=$?
40481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40482  test $ac_status = 0; }; then
40483  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40484else
40485  pkg_failed=yes
40486fi
40487    fi
40488else
40489	pkg_failed=untried
40490fi
40491
40492
40493
40494if test $pkg_failed = yes; then
40495
40496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40497        _pkg_short_errors_supported=yes
40498else
40499        _pkg_short_errors_supported=no
40500fi
40501        if test $_pkg_short_errors_supported = yes; then
40502	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40503        else
40504	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40505        fi
40506	# Put the nasty error message in config.log where it belongs
40507	echo "$CUDA_PKG_ERRORS" >&5
40508
40509	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40510$as_echo "no" >&6; }
40511
40512                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40513$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40514elif test $pkg_failed = untried; then
40515
40516                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40517$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40518else
40519	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40520	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40522$as_echo "yes" >&6; }
40523	:
40524fi
40525else
40526	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40527	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40528        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40529$as_echo "yes" >&6; }
40530	:
40531fi
40532elif test $pkg_failed = untried; then
40533
40534
40535pkg_failed=no
40536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40537$as_echo_n "checking for CUDA... " >&6; }
40538
40539if test -n "$PKG_CONFIG"; then
40540    if test -n "$CUDA_CFLAGS"; then
40541        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40542    else
40543        if test -n "$PKG_CONFIG" && \
40544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40545  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40546  ac_status=$?
40547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40548  test $ac_status = 0; }; then
40549  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
40550else
40551  pkg_failed=yes
40552fi
40553    fi
40554else
40555	pkg_failed=untried
40556fi
40557if test -n "$PKG_CONFIG"; then
40558    if test -n "$CUDA_LIBS"; then
40559        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40560    else
40561        if test -n "$PKG_CONFIG" && \
40562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40563  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40564  ac_status=$?
40565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40566  test $ac_status = 0; }; then
40567  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
40568else
40569  pkg_failed=yes
40570fi
40571    fi
40572else
40573	pkg_failed=untried
40574fi
40575
40576
40577
40578if test $pkg_failed = yes; then
40579
40580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40581        _pkg_short_errors_supported=yes
40582else
40583        _pkg_short_errors_supported=no
40584fi
40585        if test $_pkg_short_errors_supported = yes; then
40586	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40587        else
40588	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40589        fi
40590	# Put the nasty error message in config.log where it belongs
40591	echo "$CUDA_PKG_ERRORS" >&5
40592
40593	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40594$as_echo "no" >&6; }
40595
40596
40597pkg_failed=no
40598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40599$as_echo_n "checking for CUDA... " >&6; }
40600
40601if test -n "$PKG_CONFIG"; then
40602    if test -n "$CUDA_CFLAGS"; then
40603        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40604    else
40605        if test -n "$PKG_CONFIG" && \
40606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40607  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40608  ac_status=$?
40609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40610  test $ac_status = 0; }; then
40611  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40612else
40613  pkg_failed=yes
40614fi
40615    fi
40616else
40617	pkg_failed=untried
40618fi
40619if test -n "$PKG_CONFIG"; then
40620    if test -n "$CUDA_LIBS"; then
40621        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40622    else
40623        if test -n "$PKG_CONFIG" && \
40624    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40625  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40626  ac_status=$?
40627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40628  test $ac_status = 0; }; then
40629  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40630else
40631  pkg_failed=yes
40632fi
40633    fi
40634else
40635	pkg_failed=untried
40636fi
40637
40638
40639
40640if test $pkg_failed = yes; then
40641
40642if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40643        _pkg_short_errors_supported=yes
40644else
40645        _pkg_short_errors_supported=no
40646fi
40647        if test $_pkg_short_errors_supported = yes; then
40648	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40649        else
40650	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40651        fi
40652	# Put the nasty error message in config.log where it belongs
40653	echo "$CUDA_PKG_ERRORS" >&5
40654
40655	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40656$as_echo "no" >&6; }
40657
40658                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40659$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40660elif test $pkg_failed = untried; then
40661
40662                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40663$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40664else
40665	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40666	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40668$as_echo "yes" >&6; }
40669	:
40670fi
40671elif test $pkg_failed = untried; then
40672
40673
40674pkg_failed=no
40675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40676$as_echo_n "checking for CUDA... " >&6; }
40677
40678if test -n "$PKG_CONFIG"; then
40679    if test -n "$CUDA_CFLAGS"; then
40680        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40681    else
40682        if test -n "$PKG_CONFIG" && \
40683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40684  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40685  ac_status=$?
40686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40687  test $ac_status = 0; }; then
40688  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40689else
40690  pkg_failed=yes
40691fi
40692    fi
40693else
40694	pkg_failed=untried
40695fi
40696if test -n "$PKG_CONFIG"; then
40697    if test -n "$CUDA_LIBS"; then
40698        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40699    else
40700        if test -n "$PKG_CONFIG" && \
40701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40702  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40703  ac_status=$?
40704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40705  test $ac_status = 0; }; then
40706  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40707else
40708  pkg_failed=yes
40709fi
40710    fi
40711else
40712	pkg_failed=untried
40713fi
40714
40715
40716
40717if test $pkg_failed = yes; then
40718
40719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40720        _pkg_short_errors_supported=yes
40721else
40722        _pkg_short_errors_supported=no
40723fi
40724        if test $_pkg_short_errors_supported = yes; then
40725	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40726        else
40727	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40728        fi
40729	# Put the nasty error message in config.log where it belongs
40730	echo "$CUDA_PKG_ERRORS" >&5
40731
40732	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40733$as_echo "no" >&6; }
40734
40735                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40736$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40737elif test $pkg_failed = untried; then
40738
40739                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40740$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40741else
40742	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40743	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40745$as_echo "yes" >&6; }
40746	:
40747fi
40748else
40749	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40750	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40752$as_echo "yes" >&6; }
40753	:
40754fi
40755else
40756	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40757	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40758        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40759$as_echo "yes" >&6; }
40760	:
40761fi
40762elif test $pkg_failed = untried; then
40763
40764
40765pkg_failed=no
40766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40767$as_echo_n "checking for CUDA... " >&6; }
40768
40769if test -n "$PKG_CONFIG"; then
40770    if test -n "$CUDA_CFLAGS"; then
40771        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40772    else
40773        if test -n "$PKG_CONFIG" && \
40774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
40775  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
40776  ac_status=$?
40777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40778  test $ac_status = 0; }; then
40779  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
40780else
40781  pkg_failed=yes
40782fi
40783    fi
40784else
40785	pkg_failed=untried
40786fi
40787if test -n "$PKG_CONFIG"; then
40788    if test -n "$CUDA_LIBS"; then
40789        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40790    else
40791        if test -n "$PKG_CONFIG" && \
40792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
40793  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
40794  ac_status=$?
40795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40796  test $ac_status = 0; }; then
40797  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
40798else
40799  pkg_failed=yes
40800fi
40801    fi
40802else
40803	pkg_failed=untried
40804fi
40805
40806
40807
40808if test $pkg_failed = yes; then
40809
40810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40811        _pkg_short_errors_supported=yes
40812else
40813        _pkg_short_errors_supported=no
40814fi
40815        if test $_pkg_short_errors_supported = yes; then
40816	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
40817        else
40818	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
40819        fi
40820	# Put the nasty error message in config.log where it belongs
40821	echo "$CUDA_PKG_ERRORS" >&5
40822
40823	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40824$as_echo "no" >&6; }
40825
40826
40827pkg_failed=no
40828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40829$as_echo_n "checking for CUDA... " >&6; }
40830
40831if test -n "$PKG_CONFIG"; then
40832    if test -n "$CUDA_CFLAGS"; then
40833        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40834    else
40835        if test -n "$PKG_CONFIG" && \
40836    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40837  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40838  ac_status=$?
40839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40840  test $ac_status = 0; }; then
40841  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
40842else
40843  pkg_failed=yes
40844fi
40845    fi
40846else
40847	pkg_failed=untried
40848fi
40849if test -n "$PKG_CONFIG"; then
40850    if test -n "$CUDA_LIBS"; then
40851        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40852    else
40853        if test -n "$PKG_CONFIG" && \
40854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
40855  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
40856  ac_status=$?
40857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40858  test $ac_status = 0; }; then
40859  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
40860else
40861  pkg_failed=yes
40862fi
40863    fi
40864else
40865	pkg_failed=untried
40866fi
40867
40868
40869
40870if test $pkg_failed = yes; then
40871
40872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40873        _pkg_short_errors_supported=yes
40874else
40875        _pkg_short_errors_supported=no
40876fi
40877        if test $_pkg_short_errors_supported = yes; then
40878	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40879        else
40880	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
40881        fi
40882	# Put the nasty error message in config.log where it belongs
40883	echo "$CUDA_PKG_ERRORS" >&5
40884
40885	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40886$as_echo "no" >&6; }
40887
40888
40889pkg_failed=no
40890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40891$as_echo_n "checking for CUDA... " >&6; }
40892
40893if test -n "$PKG_CONFIG"; then
40894    if test -n "$CUDA_CFLAGS"; then
40895        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40896    else
40897        if test -n "$PKG_CONFIG" && \
40898    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40899  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40900  ac_status=$?
40901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40902  test $ac_status = 0; }; then
40903  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40904else
40905  pkg_failed=yes
40906fi
40907    fi
40908else
40909	pkg_failed=untried
40910fi
40911if test -n "$PKG_CONFIG"; then
40912    if test -n "$CUDA_LIBS"; then
40913        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40914    else
40915        if test -n "$PKG_CONFIG" && \
40916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40917  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40918  ac_status=$?
40919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40920  test $ac_status = 0; }; then
40921  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40922else
40923  pkg_failed=yes
40924fi
40925    fi
40926else
40927	pkg_failed=untried
40928fi
40929
40930
40931
40932if test $pkg_failed = yes; then
40933
40934if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40935        _pkg_short_errors_supported=yes
40936else
40937        _pkg_short_errors_supported=no
40938fi
40939        if test $_pkg_short_errors_supported = yes; then
40940	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40941        else
40942	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
40943        fi
40944	# Put the nasty error message in config.log where it belongs
40945	echo "$CUDA_PKG_ERRORS" >&5
40946
40947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40948$as_echo "no" >&6; }
40949
40950                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40951$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40952elif test $pkg_failed = untried; then
40953
40954                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
40955$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
40956else
40957	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
40958	CUDA_LIBS=$pkg_cv_CUDA_LIBS
40959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40960$as_echo "yes" >&6; }
40961	:
40962fi
40963elif test $pkg_failed = untried; then
40964
40965
40966pkg_failed=no
40967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
40968$as_echo_n "checking for CUDA... " >&6; }
40969
40970if test -n "$PKG_CONFIG"; then
40971    if test -n "$CUDA_CFLAGS"; then
40972        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
40973    else
40974        if test -n "$PKG_CONFIG" && \
40975    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40976  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40977  ac_status=$?
40978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40979  test $ac_status = 0; }; then
40980  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
40981else
40982  pkg_failed=yes
40983fi
40984    fi
40985else
40986	pkg_failed=untried
40987fi
40988if test -n "$PKG_CONFIG"; then
40989    if test -n "$CUDA_LIBS"; then
40990        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
40991    else
40992        if test -n "$PKG_CONFIG" && \
40993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
40994  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
40995  ac_status=$?
40996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40997  test $ac_status = 0; }; then
40998  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
40999else
41000  pkg_failed=yes
41001fi
41002    fi
41003else
41004	pkg_failed=untried
41005fi
41006
41007
41008
41009if test $pkg_failed = yes; then
41010
41011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41012        _pkg_short_errors_supported=yes
41013else
41014        _pkg_short_errors_supported=no
41015fi
41016        if test $_pkg_short_errors_supported = yes; then
41017	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41018        else
41019	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41020        fi
41021	# Put the nasty error message in config.log where it belongs
41022	echo "$CUDA_PKG_ERRORS" >&5
41023
41024	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41025$as_echo "no" >&6; }
41026
41027                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41028$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41029elif test $pkg_failed = untried; then
41030
41031                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41032$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41033else
41034	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41035	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037$as_echo "yes" >&6; }
41038	:
41039fi
41040else
41041	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41042	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41044$as_echo "yes" >&6; }
41045	:
41046fi
41047elif test $pkg_failed = untried; then
41048
41049
41050pkg_failed=no
41051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41052$as_echo_n "checking for CUDA... " >&6; }
41053
41054if test -n "$PKG_CONFIG"; then
41055    if test -n "$CUDA_CFLAGS"; then
41056        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41057    else
41058        if test -n "$PKG_CONFIG" && \
41059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41060  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41061  ac_status=$?
41062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41063  test $ac_status = 0; }; then
41064  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
41065else
41066  pkg_failed=yes
41067fi
41068    fi
41069else
41070	pkg_failed=untried
41071fi
41072if test -n "$PKG_CONFIG"; then
41073    if test -n "$CUDA_LIBS"; then
41074        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41075    else
41076        if test -n "$PKG_CONFIG" && \
41077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41078  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41079  ac_status=$?
41080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41081  test $ac_status = 0; }; then
41082  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
41083else
41084  pkg_failed=yes
41085fi
41086    fi
41087else
41088	pkg_failed=untried
41089fi
41090
41091
41092
41093if test $pkg_failed = yes; then
41094
41095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41096        _pkg_short_errors_supported=yes
41097else
41098        _pkg_short_errors_supported=no
41099fi
41100        if test $_pkg_short_errors_supported = yes; then
41101	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41102        else
41103	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41104        fi
41105	# Put the nasty error message in config.log where it belongs
41106	echo "$CUDA_PKG_ERRORS" >&5
41107
41108	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41109$as_echo "no" >&6; }
41110
41111
41112pkg_failed=no
41113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41114$as_echo_n "checking for CUDA... " >&6; }
41115
41116if test -n "$PKG_CONFIG"; then
41117    if test -n "$CUDA_CFLAGS"; then
41118        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41119    else
41120        if test -n "$PKG_CONFIG" && \
41121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41122  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41123  ac_status=$?
41124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41125  test $ac_status = 0; }; then
41126  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41127else
41128  pkg_failed=yes
41129fi
41130    fi
41131else
41132	pkg_failed=untried
41133fi
41134if test -n "$PKG_CONFIG"; then
41135    if test -n "$CUDA_LIBS"; then
41136        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41137    else
41138        if test -n "$PKG_CONFIG" && \
41139    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41140  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41141  ac_status=$?
41142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41143  test $ac_status = 0; }; then
41144  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41145else
41146  pkg_failed=yes
41147fi
41148    fi
41149else
41150	pkg_failed=untried
41151fi
41152
41153
41154
41155if test $pkg_failed = yes; then
41156
41157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41158        _pkg_short_errors_supported=yes
41159else
41160        _pkg_short_errors_supported=no
41161fi
41162        if test $_pkg_short_errors_supported = yes; then
41163	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41164        else
41165	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41166        fi
41167	# Put the nasty error message in config.log where it belongs
41168	echo "$CUDA_PKG_ERRORS" >&5
41169
41170	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41171$as_echo "no" >&6; }
41172
41173                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41174$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41175elif test $pkg_failed = untried; then
41176
41177                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41178$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41179else
41180	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41181	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41182        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41183$as_echo "yes" >&6; }
41184	:
41185fi
41186elif test $pkg_failed = untried; then
41187
41188
41189pkg_failed=no
41190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41191$as_echo_n "checking for CUDA... " >&6; }
41192
41193if test -n "$PKG_CONFIG"; then
41194    if test -n "$CUDA_CFLAGS"; then
41195        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41196    else
41197        if test -n "$PKG_CONFIG" && \
41198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41199  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41200  ac_status=$?
41201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41202  test $ac_status = 0; }; then
41203  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41204else
41205  pkg_failed=yes
41206fi
41207    fi
41208else
41209	pkg_failed=untried
41210fi
41211if test -n "$PKG_CONFIG"; then
41212    if test -n "$CUDA_LIBS"; then
41213        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41214    else
41215        if test -n "$PKG_CONFIG" && \
41216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41217  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41218  ac_status=$?
41219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41220  test $ac_status = 0; }; then
41221  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41222else
41223  pkg_failed=yes
41224fi
41225    fi
41226else
41227	pkg_failed=untried
41228fi
41229
41230
41231
41232if test $pkg_failed = yes; then
41233
41234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41235        _pkg_short_errors_supported=yes
41236else
41237        _pkg_short_errors_supported=no
41238fi
41239        if test $_pkg_short_errors_supported = yes; then
41240	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41241        else
41242	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41243        fi
41244	# Put the nasty error message in config.log where it belongs
41245	echo "$CUDA_PKG_ERRORS" >&5
41246
41247	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41248$as_echo "no" >&6; }
41249
41250                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41251$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41252elif test $pkg_failed = untried; then
41253
41254                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41255$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41256else
41257	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41258	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41260$as_echo "yes" >&6; }
41261	:
41262fi
41263else
41264	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41265	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41267$as_echo "yes" >&6; }
41268	:
41269fi
41270else
41271	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41272	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41273        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41274$as_echo "yes" >&6; }
41275	:
41276fi
41277else
41278	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41279	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41280        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41281$as_echo "yes" >&6; }
41282	:
41283fi
41284elif test $pkg_failed = untried; then
41285
41286
41287pkg_failed=no
41288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41289$as_echo_n "checking for CUDA... " >&6; }
41290
41291if test -n "$PKG_CONFIG"; then
41292    if test -n "$CUDA_CFLAGS"; then
41293        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41294    else
41295        if test -n "$PKG_CONFIG" && \
41296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
41297  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
41298  ac_status=$?
41299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41300  test $ac_status = 0; }; then
41301  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
41302else
41303  pkg_failed=yes
41304fi
41305    fi
41306else
41307	pkg_failed=untried
41308fi
41309if test -n "$PKG_CONFIG"; then
41310    if test -n "$CUDA_LIBS"; then
41311        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41312    else
41313        if test -n "$PKG_CONFIG" && \
41314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
41315  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
41316  ac_status=$?
41317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41318  test $ac_status = 0; }; then
41319  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
41320else
41321  pkg_failed=yes
41322fi
41323    fi
41324else
41325	pkg_failed=untried
41326fi
41327
41328
41329
41330if test $pkg_failed = yes; then
41331
41332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41333        _pkg_short_errors_supported=yes
41334else
41335        _pkg_short_errors_supported=no
41336fi
41337        if test $_pkg_short_errors_supported = yes; then
41338	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
41339        else
41340	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
41341        fi
41342	# Put the nasty error message in config.log where it belongs
41343	echo "$CUDA_PKG_ERRORS" >&5
41344
41345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41346$as_echo "no" >&6; }
41347
41348
41349pkg_failed=no
41350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41351$as_echo_n "checking for CUDA... " >&6; }
41352
41353if test -n "$PKG_CONFIG"; then
41354    if test -n "$CUDA_CFLAGS"; then
41355        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41356    else
41357        if test -n "$PKG_CONFIG" && \
41358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
41359  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
41360  ac_status=$?
41361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41362  test $ac_status = 0; }; then
41363  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
41364else
41365  pkg_failed=yes
41366fi
41367    fi
41368else
41369	pkg_failed=untried
41370fi
41371if test -n "$PKG_CONFIG"; then
41372    if test -n "$CUDA_LIBS"; then
41373        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41374    else
41375        if test -n "$PKG_CONFIG" && \
41376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
41377  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
41378  ac_status=$?
41379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41380  test $ac_status = 0; }; then
41381  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
41382else
41383  pkg_failed=yes
41384fi
41385    fi
41386else
41387	pkg_failed=untried
41388fi
41389
41390
41391
41392if test $pkg_failed = yes; then
41393
41394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41395        _pkg_short_errors_supported=yes
41396else
41397        _pkg_short_errors_supported=no
41398fi
41399        if test $_pkg_short_errors_supported = yes; then
41400	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
41401        else
41402	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
41403        fi
41404	# Put the nasty error message in config.log where it belongs
41405	echo "$CUDA_PKG_ERRORS" >&5
41406
41407	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41408$as_echo "no" >&6; }
41409
41410
41411pkg_failed=no
41412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41413$as_echo_n "checking for CUDA... " >&6; }
41414
41415if test -n "$PKG_CONFIG"; then
41416    if test -n "$CUDA_CFLAGS"; then
41417        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41418    else
41419        if test -n "$PKG_CONFIG" && \
41420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41421  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41422  ac_status=$?
41423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41424  test $ac_status = 0; }; then
41425  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
41426else
41427  pkg_failed=yes
41428fi
41429    fi
41430else
41431	pkg_failed=untried
41432fi
41433if test -n "$PKG_CONFIG"; then
41434    if test -n "$CUDA_LIBS"; then
41435        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41436    else
41437        if test -n "$PKG_CONFIG" && \
41438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41439  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41440  ac_status=$?
41441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41442  test $ac_status = 0; }; then
41443  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
41444else
41445  pkg_failed=yes
41446fi
41447    fi
41448else
41449	pkg_failed=untried
41450fi
41451
41452
41453
41454if test $pkg_failed = yes; then
41455
41456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41457        _pkg_short_errors_supported=yes
41458else
41459        _pkg_short_errors_supported=no
41460fi
41461        if test $_pkg_short_errors_supported = yes; then
41462	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41463        else
41464	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41465        fi
41466	# Put the nasty error message in config.log where it belongs
41467	echo "$CUDA_PKG_ERRORS" >&5
41468
41469	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41470$as_echo "no" >&6; }
41471
41472
41473pkg_failed=no
41474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41475$as_echo_n "checking for CUDA... " >&6; }
41476
41477if test -n "$PKG_CONFIG"; then
41478    if test -n "$CUDA_CFLAGS"; then
41479        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41480    else
41481        if test -n "$PKG_CONFIG" && \
41482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41483  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41484  ac_status=$?
41485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41486  test $ac_status = 0; }; then
41487  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41488else
41489  pkg_failed=yes
41490fi
41491    fi
41492else
41493	pkg_failed=untried
41494fi
41495if test -n "$PKG_CONFIG"; then
41496    if test -n "$CUDA_LIBS"; then
41497        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41498    else
41499        if test -n "$PKG_CONFIG" && \
41500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41501  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41502  ac_status=$?
41503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41504  test $ac_status = 0; }; then
41505  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41506else
41507  pkg_failed=yes
41508fi
41509    fi
41510else
41511	pkg_failed=untried
41512fi
41513
41514
41515
41516if test $pkg_failed = yes; then
41517
41518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41519        _pkg_short_errors_supported=yes
41520else
41521        _pkg_short_errors_supported=no
41522fi
41523        if test $_pkg_short_errors_supported = yes; then
41524	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41525        else
41526	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41527        fi
41528	# Put the nasty error message in config.log where it belongs
41529	echo "$CUDA_PKG_ERRORS" >&5
41530
41531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41532$as_echo "no" >&6; }
41533
41534                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41535$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41536elif test $pkg_failed = untried; then
41537
41538                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41539$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41540else
41541	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41542	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41544$as_echo "yes" >&6; }
41545	:
41546fi
41547elif test $pkg_failed = untried; then
41548
41549
41550pkg_failed=no
41551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41552$as_echo_n "checking for CUDA... " >&6; }
41553
41554if test -n "$PKG_CONFIG"; then
41555    if test -n "$CUDA_CFLAGS"; then
41556        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41557    else
41558        if test -n "$PKG_CONFIG" && \
41559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41560  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41561  ac_status=$?
41562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41563  test $ac_status = 0; }; then
41564  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41565else
41566  pkg_failed=yes
41567fi
41568    fi
41569else
41570	pkg_failed=untried
41571fi
41572if test -n "$PKG_CONFIG"; then
41573    if test -n "$CUDA_LIBS"; then
41574        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41575    else
41576        if test -n "$PKG_CONFIG" && \
41577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41578  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41579  ac_status=$?
41580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41581  test $ac_status = 0; }; then
41582  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41583else
41584  pkg_failed=yes
41585fi
41586    fi
41587else
41588	pkg_failed=untried
41589fi
41590
41591
41592
41593if test $pkg_failed = yes; then
41594
41595if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41596        _pkg_short_errors_supported=yes
41597else
41598        _pkg_short_errors_supported=no
41599fi
41600        if test $_pkg_short_errors_supported = yes; then
41601	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41602        else
41603	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41604        fi
41605	# Put the nasty error message in config.log where it belongs
41606	echo "$CUDA_PKG_ERRORS" >&5
41607
41608	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41609$as_echo "no" >&6; }
41610
41611                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41612$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41613elif test $pkg_failed = untried; then
41614
41615                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41616$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41617else
41618	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41619	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41621$as_echo "yes" >&6; }
41622	:
41623fi
41624else
41625	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41626	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41628$as_echo "yes" >&6; }
41629	:
41630fi
41631elif test $pkg_failed = untried; then
41632
41633
41634pkg_failed=no
41635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41636$as_echo_n "checking for CUDA... " >&6; }
41637
41638if test -n "$PKG_CONFIG"; then
41639    if test -n "$CUDA_CFLAGS"; then
41640        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41641    else
41642        if test -n "$PKG_CONFIG" && \
41643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41644  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41645  ac_status=$?
41646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41647  test $ac_status = 0; }; then
41648  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
41649else
41650  pkg_failed=yes
41651fi
41652    fi
41653else
41654	pkg_failed=untried
41655fi
41656if test -n "$PKG_CONFIG"; then
41657    if test -n "$CUDA_LIBS"; then
41658        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41659    else
41660        if test -n "$PKG_CONFIG" && \
41661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41662  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41663  ac_status=$?
41664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41665  test $ac_status = 0; }; then
41666  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
41667else
41668  pkg_failed=yes
41669fi
41670    fi
41671else
41672	pkg_failed=untried
41673fi
41674
41675
41676
41677if test $pkg_failed = yes; then
41678
41679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41680        _pkg_short_errors_supported=yes
41681else
41682        _pkg_short_errors_supported=no
41683fi
41684        if test $_pkg_short_errors_supported = yes; then
41685	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41686        else
41687	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41688        fi
41689	# Put the nasty error message in config.log where it belongs
41690	echo "$CUDA_PKG_ERRORS" >&5
41691
41692	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41693$as_echo "no" >&6; }
41694
41695
41696pkg_failed=no
41697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41698$as_echo_n "checking for CUDA... " >&6; }
41699
41700if test -n "$PKG_CONFIG"; then
41701    if test -n "$CUDA_CFLAGS"; then
41702        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41703    else
41704        if test -n "$PKG_CONFIG" && \
41705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41706  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41707  ac_status=$?
41708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41709  test $ac_status = 0; }; then
41710  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41711else
41712  pkg_failed=yes
41713fi
41714    fi
41715else
41716	pkg_failed=untried
41717fi
41718if test -n "$PKG_CONFIG"; then
41719    if test -n "$CUDA_LIBS"; then
41720        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41721    else
41722        if test -n "$PKG_CONFIG" && \
41723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41724  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41725  ac_status=$?
41726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41727  test $ac_status = 0; }; then
41728  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41729else
41730  pkg_failed=yes
41731fi
41732    fi
41733else
41734	pkg_failed=untried
41735fi
41736
41737
41738
41739if test $pkg_failed = yes; then
41740
41741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41742        _pkg_short_errors_supported=yes
41743else
41744        _pkg_short_errors_supported=no
41745fi
41746        if test $_pkg_short_errors_supported = yes; then
41747	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41748        else
41749	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41750        fi
41751	# Put the nasty error message in config.log where it belongs
41752	echo "$CUDA_PKG_ERRORS" >&5
41753
41754	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41755$as_echo "no" >&6; }
41756
41757                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41758$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41759elif test $pkg_failed = untried; then
41760
41761                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41762$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41763else
41764	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41765	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41767$as_echo "yes" >&6; }
41768	:
41769fi
41770elif test $pkg_failed = untried; then
41771
41772
41773pkg_failed=no
41774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41775$as_echo_n "checking for CUDA... " >&6; }
41776
41777if test -n "$PKG_CONFIG"; then
41778    if test -n "$CUDA_CFLAGS"; then
41779        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41780    else
41781        if test -n "$PKG_CONFIG" && \
41782    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41783  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41784  ac_status=$?
41785  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41786  test $ac_status = 0; }; then
41787  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
41788else
41789  pkg_failed=yes
41790fi
41791    fi
41792else
41793	pkg_failed=untried
41794fi
41795if test -n "$PKG_CONFIG"; then
41796    if test -n "$CUDA_LIBS"; then
41797        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41798    else
41799        if test -n "$PKG_CONFIG" && \
41800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41801  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41802  ac_status=$?
41803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41804  test $ac_status = 0; }; then
41805  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
41806else
41807  pkg_failed=yes
41808fi
41809    fi
41810else
41811	pkg_failed=untried
41812fi
41813
41814
41815
41816if test $pkg_failed = yes; then
41817
41818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41819        _pkg_short_errors_supported=yes
41820else
41821        _pkg_short_errors_supported=no
41822fi
41823        if test $_pkg_short_errors_supported = yes; then
41824	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41825        else
41826	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
41827        fi
41828	# Put the nasty error message in config.log where it belongs
41829	echo "$CUDA_PKG_ERRORS" >&5
41830
41831	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41832$as_echo "no" >&6; }
41833
41834                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41835$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41836elif test $pkg_failed = untried; then
41837
41838                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
41839$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
41840else
41841	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41842	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41844$as_echo "yes" >&6; }
41845	:
41846fi
41847else
41848	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41849	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41851$as_echo "yes" >&6; }
41852	:
41853fi
41854else
41855	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
41856	CUDA_LIBS=$pkg_cv_CUDA_LIBS
41857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41858$as_echo "yes" >&6; }
41859	:
41860fi
41861elif test $pkg_failed = untried; then
41862
41863
41864pkg_failed=no
41865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41866$as_echo_n "checking for CUDA... " >&6; }
41867
41868if test -n "$PKG_CONFIG"; then
41869    if test -n "$CUDA_CFLAGS"; then
41870        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41871    else
41872        if test -n "$PKG_CONFIG" && \
41873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
41874  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
41875  ac_status=$?
41876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41877  test $ac_status = 0; }; then
41878  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
41879else
41880  pkg_failed=yes
41881fi
41882    fi
41883else
41884	pkg_failed=untried
41885fi
41886if test -n "$PKG_CONFIG"; then
41887    if test -n "$CUDA_LIBS"; then
41888        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41889    else
41890        if test -n "$PKG_CONFIG" && \
41891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
41892  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
41893  ac_status=$?
41894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41895  test $ac_status = 0; }; then
41896  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
41897else
41898  pkg_failed=yes
41899fi
41900    fi
41901else
41902	pkg_failed=untried
41903fi
41904
41905
41906
41907if test $pkg_failed = yes; then
41908
41909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41910        _pkg_short_errors_supported=yes
41911else
41912        _pkg_short_errors_supported=no
41913fi
41914        if test $_pkg_short_errors_supported = yes; then
41915	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
41916        else
41917	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
41918        fi
41919	# Put the nasty error message in config.log where it belongs
41920	echo "$CUDA_PKG_ERRORS" >&5
41921
41922	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41923$as_echo "no" >&6; }
41924
41925
41926pkg_failed=no
41927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41928$as_echo_n "checking for CUDA... " >&6; }
41929
41930if test -n "$PKG_CONFIG"; then
41931    if test -n "$CUDA_CFLAGS"; then
41932        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41933    else
41934        if test -n "$PKG_CONFIG" && \
41935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41936  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41937  ac_status=$?
41938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41939  test $ac_status = 0; }; then
41940  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
41941else
41942  pkg_failed=yes
41943fi
41944    fi
41945else
41946	pkg_failed=untried
41947fi
41948if test -n "$PKG_CONFIG"; then
41949    if test -n "$CUDA_LIBS"; then
41950        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
41951    else
41952        if test -n "$PKG_CONFIG" && \
41953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
41954  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
41955  ac_status=$?
41956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41957  test $ac_status = 0; }; then
41958  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
41959else
41960  pkg_failed=yes
41961fi
41962    fi
41963else
41964	pkg_failed=untried
41965fi
41966
41967
41968
41969if test $pkg_failed = yes; then
41970
41971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41972        _pkg_short_errors_supported=yes
41973else
41974        _pkg_short_errors_supported=no
41975fi
41976        if test $_pkg_short_errors_supported = yes; then
41977	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41978        else
41979	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
41980        fi
41981	# Put the nasty error message in config.log where it belongs
41982	echo "$CUDA_PKG_ERRORS" >&5
41983
41984	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41985$as_echo "no" >&6; }
41986
41987
41988pkg_failed=no
41989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
41990$as_echo_n "checking for CUDA... " >&6; }
41991
41992if test -n "$PKG_CONFIG"; then
41993    if test -n "$CUDA_CFLAGS"; then
41994        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
41995    else
41996        if test -n "$PKG_CONFIG" && \
41997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
41998  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
41999  ac_status=$?
42000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42001  test $ac_status = 0; }; then
42002  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42003else
42004  pkg_failed=yes
42005fi
42006    fi
42007else
42008	pkg_failed=untried
42009fi
42010if test -n "$PKG_CONFIG"; then
42011    if test -n "$CUDA_LIBS"; then
42012        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42013    else
42014        if test -n "$PKG_CONFIG" && \
42015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42016  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42017  ac_status=$?
42018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42019  test $ac_status = 0; }; then
42020  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42021else
42022  pkg_failed=yes
42023fi
42024    fi
42025else
42026	pkg_failed=untried
42027fi
42028
42029
42030
42031if test $pkg_failed = yes; then
42032
42033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42034        _pkg_short_errors_supported=yes
42035else
42036        _pkg_short_errors_supported=no
42037fi
42038        if test $_pkg_short_errors_supported = yes; then
42039	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42040        else
42041	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42042        fi
42043	# Put the nasty error message in config.log where it belongs
42044	echo "$CUDA_PKG_ERRORS" >&5
42045
42046	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42047$as_echo "no" >&6; }
42048
42049                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42050$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42051elif test $pkg_failed = untried; then
42052
42053                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42054$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42055else
42056	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42057	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42059$as_echo "yes" >&6; }
42060	:
42061fi
42062elif test $pkg_failed = untried; then
42063
42064
42065pkg_failed=no
42066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42067$as_echo_n "checking for CUDA... " >&6; }
42068
42069if test -n "$PKG_CONFIG"; then
42070    if test -n "$CUDA_CFLAGS"; then
42071        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42072    else
42073        if test -n "$PKG_CONFIG" && \
42074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42075  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42076  ac_status=$?
42077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42078  test $ac_status = 0; }; then
42079  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42080else
42081  pkg_failed=yes
42082fi
42083    fi
42084else
42085	pkg_failed=untried
42086fi
42087if test -n "$PKG_CONFIG"; then
42088    if test -n "$CUDA_LIBS"; then
42089        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42090    else
42091        if test -n "$PKG_CONFIG" && \
42092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42093  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42094  ac_status=$?
42095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42096  test $ac_status = 0; }; then
42097  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42098else
42099  pkg_failed=yes
42100fi
42101    fi
42102else
42103	pkg_failed=untried
42104fi
42105
42106
42107
42108if test $pkg_failed = yes; then
42109
42110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42111        _pkg_short_errors_supported=yes
42112else
42113        _pkg_short_errors_supported=no
42114fi
42115        if test $_pkg_short_errors_supported = yes; then
42116	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42117        else
42118	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42119        fi
42120	# Put the nasty error message in config.log where it belongs
42121	echo "$CUDA_PKG_ERRORS" >&5
42122
42123	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42124$as_echo "no" >&6; }
42125
42126                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42127$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42128elif test $pkg_failed = untried; then
42129
42130                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42131$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42132else
42133	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42134	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42136$as_echo "yes" >&6; }
42137	:
42138fi
42139else
42140	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42141	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42142        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42143$as_echo "yes" >&6; }
42144	:
42145fi
42146elif test $pkg_failed = untried; then
42147
42148
42149pkg_failed=no
42150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42151$as_echo_n "checking for CUDA... " >&6; }
42152
42153if test -n "$PKG_CONFIG"; then
42154    if test -n "$CUDA_CFLAGS"; then
42155        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42156    else
42157        if test -n "$PKG_CONFIG" && \
42158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42159  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42160  ac_status=$?
42161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42162  test $ac_status = 0; }; then
42163  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
42164else
42165  pkg_failed=yes
42166fi
42167    fi
42168else
42169	pkg_failed=untried
42170fi
42171if test -n "$PKG_CONFIG"; then
42172    if test -n "$CUDA_LIBS"; then
42173        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42174    else
42175        if test -n "$PKG_CONFIG" && \
42176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42177  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42178  ac_status=$?
42179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42180  test $ac_status = 0; }; then
42181  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
42182else
42183  pkg_failed=yes
42184fi
42185    fi
42186else
42187	pkg_failed=untried
42188fi
42189
42190
42191
42192if test $pkg_failed = yes; then
42193
42194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42195        _pkg_short_errors_supported=yes
42196else
42197        _pkg_short_errors_supported=no
42198fi
42199        if test $_pkg_short_errors_supported = yes; then
42200	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42201        else
42202	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42203        fi
42204	# Put the nasty error message in config.log where it belongs
42205	echo "$CUDA_PKG_ERRORS" >&5
42206
42207	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42208$as_echo "no" >&6; }
42209
42210
42211pkg_failed=no
42212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42213$as_echo_n "checking for CUDA... " >&6; }
42214
42215if test -n "$PKG_CONFIG"; then
42216    if test -n "$CUDA_CFLAGS"; then
42217        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42218    else
42219        if test -n "$PKG_CONFIG" && \
42220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42221  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42222  ac_status=$?
42223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42224  test $ac_status = 0; }; then
42225  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42226else
42227  pkg_failed=yes
42228fi
42229    fi
42230else
42231	pkg_failed=untried
42232fi
42233if test -n "$PKG_CONFIG"; then
42234    if test -n "$CUDA_LIBS"; then
42235        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42236    else
42237        if test -n "$PKG_CONFIG" && \
42238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42239  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42240  ac_status=$?
42241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42242  test $ac_status = 0; }; then
42243  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42244else
42245  pkg_failed=yes
42246fi
42247    fi
42248else
42249	pkg_failed=untried
42250fi
42251
42252
42253
42254if test $pkg_failed = yes; then
42255
42256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42257        _pkg_short_errors_supported=yes
42258else
42259        _pkg_short_errors_supported=no
42260fi
42261        if test $_pkg_short_errors_supported = yes; then
42262	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42263        else
42264	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42265        fi
42266	# Put the nasty error message in config.log where it belongs
42267	echo "$CUDA_PKG_ERRORS" >&5
42268
42269	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42270$as_echo "no" >&6; }
42271
42272                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42273$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42274elif test $pkg_failed = untried; then
42275
42276                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42277$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42278else
42279	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42280	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42281        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42282$as_echo "yes" >&6; }
42283	:
42284fi
42285elif test $pkg_failed = untried; then
42286
42287
42288pkg_failed=no
42289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42290$as_echo_n "checking for CUDA... " >&6; }
42291
42292if test -n "$PKG_CONFIG"; then
42293    if test -n "$CUDA_CFLAGS"; then
42294        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42295    else
42296        if test -n "$PKG_CONFIG" && \
42297    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42298  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42299  ac_status=$?
42300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42301  test $ac_status = 0; }; then
42302  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42303else
42304  pkg_failed=yes
42305fi
42306    fi
42307else
42308	pkg_failed=untried
42309fi
42310if test -n "$PKG_CONFIG"; then
42311    if test -n "$CUDA_LIBS"; then
42312        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42313    else
42314        if test -n "$PKG_CONFIG" && \
42315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42316  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42317  ac_status=$?
42318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42319  test $ac_status = 0; }; then
42320  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42321else
42322  pkg_failed=yes
42323fi
42324    fi
42325else
42326	pkg_failed=untried
42327fi
42328
42329
42330
42331if test $pkg_failed = yes; then
42332
42333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42334        _pkg_short_errors_supported=yes
42335else
42336        _pkg_short_errors_supported=no
42337fi
42338        if test $_pkg_short_errors_supported = yes; then
42339	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42340        else
42341	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42342        fi
42343	# Put the nasty error message in config.log where it belongs
42344	echo "$CUDA_PKG_ERRORS" >&5
42345
42346	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42347$as_echo "no" >&6; }
42348
42349                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42350$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42351elif test $pkg_failed = untried; then
42352
42353                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42354$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42355else
42356	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42357	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42358        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42359$as_echo "yes" >&6; }
42360	:
42361fi
42362else
42363	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42364	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42365        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42366$as_echo "yes" >&6; }
42367	:
42368fi
42369else
42370	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42371	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42372        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42373$as_echo "yes" >&6; }
42374	:
42375fi
42376else
42377	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42378	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42380$as_echo "yes" >&6; }
42381	:
42382fi
42383else
42384	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42385	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42386        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42387$as_echo "yes" >&6; }
42388	:
42389fi
42390elif test $pkg_failed = untried; then
42391
42392
42393pkg_failed=no
42394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42395$as_echo_n "checking for CUDA... " >&6; }
42396
42397if test -n "$PKG_CONFIG"; then
42398    if test -n "$CUDA_CFLAGS"; then
42399        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42400    else
42401        if test -n "$PKG_CONFIG" && \
42402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
42403  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
42404  ac_status=$?
42405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42406  test $ac_status = 0; }; then
42407  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
42408else
42409  pkg_failed=yes
42410fi
42411    fi
42412else
42413	pkg_failed=untried
42414fi
42415if test -n "$PKG_CONFIG"; then
42416    if test -n "$CUDA_LIBS"; then
42417        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42418    else
42419        if test -n "$PKG_CONFIG" && \
42420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
42421  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
42422  ac_status=$?
42423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42424  test $ac_status = 0; }; then
42425  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
42426else
42427  pkg_failed=yes
42428fi
42429    fi
42430else
42431	pkg_failed=untried
42432fi
42433
42434
42435
42436if test $pkg_failed = yes; then
42437
42438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42439        _pkg_short_errors_supported=yes
42440else
42441        _pkg_short_errors_supported=no
42442fi
42443        if test $_pkg_short_errors_supported = yes; then
42444	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
42445        else
42446	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
42447        fi
42448	# Put the nasty error message in config.log where it belongs
42449	echo "$CUDA_PKG_ERRORS" >&5
42450
42451	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42452$as_echo "no" >&6; }
42453
42454
42455pkg_failed=no
42456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42457$as_echo_n "checking for CUDA... " >&6; }
42458
42459if test -n "$PKG_CONFIG"; then
42460    if test -n "$CUDA_CFLAGS"; then
42461        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42462    else
42463        if test -n "$PKG_CONFIG" && \
42464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
42465  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
42466  ac_status=$?
42467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42468  test $ac_status = 0; }; then
42469  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
42470else
42471  pkg_failed=yes
42472fi
42473    fi
42474else
42475	pkg_failed=untried
42476fi
42477if test -n "$PKG_CONFIG"; then
42478    if test -n "$CUDA_LIBS"; then
42479        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42480    else
42481        if test -n "$PKG_CONFIG" && \
42482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
42483  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
42484  ac_status=$?
42485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42486  test $ac_status = 0; }; then
42487  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
42488else
42489  pkg_failed=yes
42490fi
42491    fi
42492else
42493	pkg_failed=untried
42494fi
42495
42496
42497
42498if test $pkg_failed = yes; then
42499
42500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42501        _pkg_short_errors_supported=yes
42502else
42503        _pkg_short_errors_supported=no
42504fi
42505        if test $_pkg_short_errors_supported = yes; then
42506	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
42507        else
42508	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
42509        fi
42510	# Put the nasty error message in config.log where it belongs
42511	echo "$CUDA_PKG_ERRORS" >&5
42512
42513	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42514$as_echo "no" >&6; }
42515
42516
42517pkg_failed=no
42518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42519$as_echo_n "checking for CUDA... " >&6; }
42520
42521if test -n "$PKG_CONFIG"; then
42522    if test -n "$CUDA_CFLAGS"; then
42523        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42524    else
42525        if test -n "$PKG_CONFIG" && \
42526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
42527  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
42528  ac_status=$?
42529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42530  test $ac_status = 0; }; then
42531  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
42532else
42533  pkg_failed=yes
42534fi
42535    fi
42536else
42537	pkg_failed=untried
42538fi
42539if test -n "$PKG_CONFIG"; then
42540    if test -n "$CUDA_LIBS"; then
42541        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42542    else
42543        if test -n "$PKG_CONFIG" && \
42544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
42545  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
42546  ac_status=$?
42547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42548  test $ac_status = 0; }; then
42549  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
42550else
42551  pkg_failed=yes
42552fi
42553    fi
42554else
42555	pkg_failed=untried
42556fi
42557
42558
42559
42560if test $pkg_failed = yes; then
42561
42562if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42563        _pkg_short_errors_supported=yes
42564else
42565        _pkg_short_errors_supported=no
42566fi
42567        if test $_pkg_short_errors_supported = yes; then
42568	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
42569        else
42570	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
42571        fi
42572	# Put the nasty error message in config.log where it belongs
42573	echo "$CUDA_PKG_ERRORS" >&5
42574
42575	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42576$as_echo "no" >&6; }
42577
42578
42579pkg_failed=no
42580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42581$as_echo_n "checking for CUDA... " >&6; }
42582
42583if test -n "$PKG_CONFIG"; then
42584    if test -n "$CUDA_CFLAGS"; then
42585        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42586    else
42587        if test -n "$PKG_CONFIG" && \
42588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42589  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42590  ac_status=$?
42591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42592  test $ac_status = 0; }; then
42593  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
42594else
42595  pkg_failed=yes
42596fi
42597    fi
42598else
42599	pkg_failed=untried
42600fi
42601if test -n "$PKG_CONFIG"; then
42602    if test -n "$CUDA_LIBS"; then
42603        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42604    else
42605        if test -n "$PKG_CONFIG" && \
42606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42607  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42608  ac_status=$?
42609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42610  test $ac_status = 0; }; then
42611  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
42612else
42613  pkg_failed=yes
42614fi
42615    fi
42616else
42617	pkg_failed=untried
42618fi
42619
42620
42621
42622if test $pkg_failed = yes; then
42623
42624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42625        _pkg_short_errors_supported=yes
42626else
42627        _pkg_short_errors_supported=no
42628fi
42629        if test $_pkg_short_errors_supported = yes; then
42630	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42631        else
42632	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42633        fi
42634	# Put the nasty error message in config.log where it belongs
42635	echo "$CUDA_PKG_ERRORS" >&5
42636
42637	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42638$as_echo "no" >&6; }
42639
42640
42641pkg_failed=no
42642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42643$as_echo_n "checking for CUDA... " >&6; }
42644
42645if test -n "$PKG_CONFIG"; then
42646    if test -n "$CUDA_CFLAGS"; then
42647        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42648    else
42649        if test -n "$PKG_CONFIG" && \
42650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42651  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42652  ac_status=$?
42653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42654  test $ac_status = 0; }; then
42655  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42656else
42657  pkg_failed=yes
42658fi
42659    fi
42660else
42661	pkg_failed=untried
42662fi
42663if test -n "$PKG_CONFIG"; then
42664    if test -n "$CUDA_LIBS"; then
42665        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42666    else
42667        if test -n "$PKG_CONFIG" && \
42668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42669  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42670  ac_status=$?
42671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42672  test $ac_status = 0; }; then
42673  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42674else
42675  pkg_failed=yes
42676fi
42677    fi
42678else
42679	pkg_failed=untried
42680fi
42681
42682
42683
42684if test $pkg_failed = yes; then
42685
42686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42687        _pkg_short_errors_supported=yes
42688else
42689        _pkg_short_errors_supported=no
42690fi
42691        if test $_pkg_short_errors_supported = yes; then
42692	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42693        else
42694	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42695        fi
42696	# Put the nasty error message in config.log where it belongs
42697	echo "$CUDA_PKG_ERRORS" >&5
42698
42699	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42700$as_echo "no" >&6; }
42701
42702                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42703$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42704elif test $pkg_failed = untried; then
42705
42706                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42707$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42708else
42709	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42710	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42711        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42712$as_echo "yes" >&6; }
42713	:
42714fi
42715elif test $pkg_failed = untried; then
42716
42717
42718pkg_failed=no
42719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42720$as_echo_n "checking for CUDA... " >&6; }
42721
42722if test -n "$PKG_CONFIG"; then
42723    if test -n "$CUDA_CFLAGS"; then
42724        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42725    else
42726        if test -n "$PKG_CONFIG" && \
42727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42728  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42729  ac_status=$?
42730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42731  test $ac_status = 0; }; then
42732  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42733else
42734  pkg_failed=yes
42735fi
42736    fi
42737else
42738	pkg_failed=untried
42739fi
42740if test -n "$PKG_CONFIG"; then
42741    if test -n "$CUDA_LIBS"; then
42742        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42743    else
42744        if test -n "$PKG_CONFIG" && \
42745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42746  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42747  ac_status=$?
42748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42749  test $ac_status = 0; }; then
42750  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42751else
42752  pkg_failed=yes
42753fi
42754    fi
42755else
42756	pkg_failed=untried
42757fi
42758
42759
42760
42761if test $pkg_failed = yes; then
42762
42763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42764        _pkg_short_errors_supported=yes
42765else
42766        _pkg_short_errors_supported=no
42767fi
42768        if test $_pkg_short_errors_supported = yes; then
42769	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42770        else
42771	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42772        fi
42773	# Put the nasty error message in config.log where it belongs
42774	echo "$CUDA_PKG_ERRORS" >&5
42775
42776	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42777$as_echo "no" >&6; }
42778
42779                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42780$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42781elif test $pkg_failed = untried; then
42782
42783                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42784$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42785else
42786	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42787	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42789$as_echo "yes" >&6; }
42790	:
42791fi
42792else
42793	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42794	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42796$as_echo "yes" >&6; }
42797	:
42798fi
42799elif test $pkg_failed = untried; then
42800
42801
42802pkg_failed=no
42803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42804$as_echo_n "checking for CUDA... " >&6; }
42805
42806if test -n "$PKG_CONFIG"; then
42807    if test -n "$CUDA_CFLAGS"; then
42808        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42809    else
42810        if test -n "$PKG_CONFIG" && \
42811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42812  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42813  ac_status=$?
42814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42815  test $ac_status = 0; }; then
42816  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
42817else
42818  pkg_failed=yes
42819fi
42820    fi
42821else
42822	pkg_failed=untried
42823fi
42824if test -n "$PKG_CONFIG"; then
42825    if test -n "$CUDA_LIBS"; then
42826        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42827    else
42828        if test -n "$PKG_CONFIG" && \
42829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
42830  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
42831  ac_status=$?
42832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42833  test $ac_status = 0; }; then
42834  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
42835else
42836  pkg_failed=yes
42837fi
42838    fi
42839else
42840	pkg_failed=untried
42841fi
42842
42843
42844
42845if test $pkg_failed = yes; then
42846
42847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42848        _pkg_short_errors_supported=yes
42849else
42850        _pkg_short_errors_supported=no
42851fi
42852        if test $_pkg_short_errors_supported = yes; then
42853	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42854        else
42855	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
42856        fi
42857	# Put the nasty error message in config.log where it belongs
42858	echo "$CUDA_PKG_ERRORS" >&5
42859
42860	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42861$as_echo "no" >&6; }
42862
42863
42864pkg_failed=no
42865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42866$as_echo_n "checking for CUDA... " >&6; }
42867
42868if test -n "$PKG_CONFIG"; then
42869    if test -n "$CUDA_CFLAGS"; then
42870        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42871    else
42872        if test -n "$PKG_CONFIG" && \
42873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42874  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42875  ac_status=$?
42876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42877  test $ac_status = 0; }; then
42878  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42879else
42880  pkg_failed=yes
42881fi
42882    fi
42883else
42884	pkg_failed=untried
42885fi
42886if test -n "$PKG_CONFIG"; then
42887    if test -n "$CUDA_LIBS"; then
42888        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42889    else
42890        if test -n "$PKG_CONFIG" && \
42891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42892  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42893  ac_status=$?
42894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42895  test $ac_status = 0; }; then
42896  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42897else
42898  pkg_failed=yes
42899fi
42900    fi
42901else
42902	pkg_failed=untried
42903fi
42904
42905
42906
42907if test $pkg_failed = yes; then
42908
42909if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42910        _pkg_short_errors_supported=yes
42911else
42912        _pkg_short_errors_supported=no
42913fi
42914        if test $_pkg_short_errors_supported = yes; then
42915	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42916        else
42917	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42918        fi
42919	# Put the nasty error message in config.log where it belongs
42920	echo "$CUDA_PKG_ERRORS" >&5
42921
42922	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42923$as_echo "no" >&6; }
42924
42925                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42926$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42927elif test $pkg_failed = untried; then
42928
42929                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
42930$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
42931else
42932	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
42933	CUDA_LIBS=$pkg_cv_CUDA_LIBS
42934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42935$as_echo "yes" >&6; }
42936	:
42937fi
42938elif test $pkg_failed = untried; then
42939
42940
42941pkg_failed=no
42942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
42943$as_echo_n "checking for CUDA... " >&6; }
42944
42945if test -n "$PKG_CONFIG"; then
42946    if test -n "$CUDA_CFLAGS"; then
42947        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
42948    else
42949        if test -n "$PKG_CONFIG" && \
42950    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42951  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42952  ac_status=$?
42953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42954  test $ac_status = 0; }; then
42955  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
42956else
42957  pkg_failed=yes
42958fi
42959    fi
42960else
42961	pkg_failed=untried
42962fi
42963if test -n "$PKG_CONFIG"; then
42964    if test -n "$CUDA_LIBS"; then
42965        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
42966    else
42967        if test -n "$PKG_CONFIG" && \
42968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
42969  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
42970  ac_status=$?
42971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42972  test $ac_status = 0; }; then
42973  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
42974else
42975  pkg_failed=yes
42976fi
42977    fi
42978else
42979	pkg_failed=untried
42980fi
42981
42982
42983
42984if test $pkg_failed = yes; then
42985
42986if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42987        _pkg_short_errors_supported=yes
42988else
42989        _pkg_short_errors_supported=no
42990fi
42991        if test $_pkg_short_errors_supported = yes; then
42992	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42993        else
42994	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
42995        fi
42996	# Put the nasty error message in config.log where it belongs
42997	echo "$CUDA_PKG_ERRORS" >&5
42998
42999	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43000$as_echo "no" >&6; }
43001
43002                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43003$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43004elif test $pkg_failed = untried; then
43005
43006                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43007$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43008else
43009	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43010	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43012$as_echo "yes" >&6; }
43013	:
43014fi
43015else
43016	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43017	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43019$as_echo "yes" >&6; }
43020	:
43021fi
43022else
43023	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43024	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43026$as_echo "yes" >&6; }
43027	:
43028fi
43029elif test $pkg_failed = untried; then
43030
43031
43032pkg_failed=no
43033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43034$as_echo_n "checking for CUDA... " >&6; }
43035
43036if test -n "$PKG_CONFIG"; then
43037    if test -n "$CUDA_CFLAGS"; then
43038        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43039    else
43040        if test -n "$PKG_CONFIG" && \
43041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
43042  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
43043  ac_status=$?
43044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43045  test $ac_status = 0; }; then
43046  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
43047else
43048  pkg_failed=yes
43049fi
43050    fi
43051else
43052	pkg_failed=untried
43053fi
43054if test -n "$PKG_CONFIG"; then
43055    if test -n "$CUDA_LIBS"; then
43056        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43057    else
43058        if test -n "$PKG_CONFIG" && \
43059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
43060  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
43061  ac_status=$?
43062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43063  test $ac_status = 0; }; then
43064  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
43065else
43066  pkg_failed=yes
43067fi
43068    fi
43069else
43070	pkg_failed=untried
43071fi
43072
43073
43074
43075if test $pkg_failed = yes; then
43076
43077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43078        _pkg_short_errors_supported=yes
43079else
43080        _pkg_short_errors_supported=no
43081fi
43082        if test $_pkg_short_errors_supported = yes; then
43083	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
43084        else
43085	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
43086        fi
43087	# Put the nasty error message in config.log where it belongs
43088	echo "$CUDA_PKG_ERRORS" >&5
43089
43090	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43091$as_echo "no" >&6; }
43092
43093
43094pkg_failed=no
43095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43096$as_echo_n "checking for CUDA... " >&6; }
43097
43098if test -n "$PKG_CONFIG"; then
43099    if test -n "$CUDA_CFLAGS"; then
43100        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43101    else
43102        if test -n "$PKG_CONFIG" && \
43103    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43104  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43105  ac_status=$?
43106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43107  test $ac_status = 0; }; then
43108  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
43109else
43110  pkg_failed=yes
43111fi
43112    fi
43113else
43114	pkg_failed=untried
43115fi
43116if test -n "$PKG_CONFIG"; then
43117    if test -n "$CUDA_LIBS"; then
43118        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43119    else
43120        if test -n "$PKG_CONFIG" && \
43121    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43122  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43123  ac_status=$?
43124  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43125  test $ac_status = 0; }; then
43126  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
43127else
43128  pkg_failed=yes
43129fi
43130    fi
43131else
43132	pkg_failed=untried
43133fi
43134
43135
43136
43137if test $pkg_failed = yes; then
43138
43139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43140        _pkg_short_errors_supported=yes
43141else
43142        _pkg_short_errors_supported=no
43143fi
43144        if test $_pkg_short_errors_supported = yes; then
43145	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43146        else
43147	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43148        fi
43149	# Put the nasty error message in config.log where it belongs
43150	echo "$CUDA_PKG_ERRORS" >&5
43151
43152	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43153$as_echo "no" >&6; }
43154
43155
43156pkg_failed=no
43157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43158$as_echo_n "checking for CUDA... " >&6; }
43159
43160if test -n "$PKG_CONFIG"; then
43161    if test -n "$CUDA_CFLAGS"; then
43162        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43163    else
43164        if test -n "$PKG_CONFIG" && \
43165    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43166  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43167  ac_status=$?
43168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43169  test $ac_status = 0; }; then
43170  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43171else
43172  pkg_failed=yes
43173fi
43174    fi
43175else
43176	pkg_failed=untried
43177fi
43178if test -n "$PKG_CONFIG"; then
43179    if test -n "$CUDA_LIBS"; then
43180        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43181    else
43182        if test -n "$PKG_CONFIG" && \
43183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43184  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43185  ac_status=$?
43186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43187  test $ac_status = 0; }; then
43188  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43189else
43190  pkg_failed=yes
43191fi
43192    fi
43193else
43194	pkg_failed=untried
43195fi
43196
43197
43198
43199if test $pkg_failed = yes; then
43200
43201if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43202        _pkg_short_errors_supported=yes
43203else
43204        _pkg_short_errors_supported=no
43205fi
43206        if test $_pkg_short_errors_supported = yes; then
43207	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43208        else
43209	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43210        fi
43211	# Put the nasty error message in config.log where it belongs
43212	echo "$CUDA_PKG_ERRORS" >&5
43213
43214	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43215$as_echo "no" >&6; }
43216
43217                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43218$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43219elif test $pkg_failed = untried; then
43220
43221                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43222$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43223else
43224	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43225	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43226        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43227$as_echo "yes" >&6; }
43228	:
43229fi
43230elif test $pkg_failed = untried; then
43231
43232
43233pkg_failed=no
43234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43235$as_echo_n "checking for CUDA... " >&6; }
43236
43237if test -n "$PKG_CONFIG"; then
43238    if test -n "$CUDA_CFLAGS"; then
43239        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43240    else
43241        if test -n "$PKG_CONFIG" && \
43242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43243  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43244  ac_status=$?
43245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43246  test $ac_status = 0; }; then
43247  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43248else
43249  pkg_failed=yes
43250fi
43251    fi
43252else
43253	pkg_failed=untried
43254fi
43255if test -n "$PKG_CONFIG"; then
43256    if test -n "$CUDA_LIBS"; then
43257        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43258    else
43259        if test -n "$PKG_CONFIG" && \
43260    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43261  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43262  ac_status=$?
43263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43264  test $ac_status = 0; }; then
43265  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43266else
43267  pkg_failed=yes
43268fi
43269    fi
43270else
43271	pkg_failed=untried
43272fi
43273
43274
43275
43276if test $pkg_failed = yes; then
43277
43278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43279        _pkg_short_errors_supported=yes
43280else
43281        _pkg_short_errors_supported=no
43282fi
43283        if test $_pkg_short_errors_supported = yes; then
43284	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43285        else
43286	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43287        fi
43288	# Put the nasty error message in config.log where it belongs
43289	echo "$CUDA_PKG_ERRORS" >&5
43290
43291	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43292$as_echo "no" >&6; }
43293
43294                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43295$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43296elif test $pkg_failed = untried; then
43297
43298                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43299$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43300else
43301	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43302	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43304$as_echo "yes" >&6; }
43305	:
43306fi
43307else
43308	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43309	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43310        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43311$as_echo "yes" >&6; }
43312	:
43313fi
43314elif test $pkg_failed = untried; then
43315
43316
43317pkg_failed=no
43318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43319$as_echo_n "checking for CUDA... " >&6; }
43320
43321if test -n "$PKG_CONFIG"; then
43322    if test -n "$CUDA_CFLAGS"; then
43323        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43324    else
43325        if test -n "$PKG_CONFIG" && \
43326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43327  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43328  ac_status=$?
43329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43330  test $ac_status = 0; }; then
43331  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
43332else
43333  pkg_failed=yes
43334fi
43335    fi
43336else
43337	pkg_failed=untried
43338fi
43339if test -n "$PKG_CONFIG"; then
43340    if test -n "$CUDA_LIBS"; then
43341        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43342    else
43343        if test -n "$PKG_CONFIG" && \
43344    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43345  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43346  ac_status=$?
43347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43348  test $ac_status = 0; }; then
43349  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
43350else
43351  pkg_failed=yes
43352fi
43353    fi
43354else
43355	pkg_failed=untried
43356fi
43357
43358
43359
43360if test $pkg_failed = yes; then
43361
43362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43363        _pkg_short_errors_supported=yes
43364else
43365        _pkg_short_errors_supported=no
43366fi
43367        if test $_pkg_short_errors_supported = yes; then
43368	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43369        else
43370	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43371        fi
43372	# Put the nasty error message in config.log where it belongs
43373	echo "$CUDA_PKG_ERRORS" >&5
43374
43375	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43376$as_echo "no" >&6; }
43377
43378
43379pkg_failed=no
43380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43381$as_echo_n "checking for CUDA... " >&6; }
43382
43383if test -n "$PKG_CONFIG"; then
43384    if test -n "$CUDA_CFLAGS"; then
43385        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43386    else
43387        if test -n "$PKG_CONFIG" && \
43388    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43389  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43390  ac_status=$?
43391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43392  test $ac_status = 0; }; then
43393  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43394else
43395  pkg_failed=yes
43396fi
43397    fi
43398else
43399	pkg_failed=untried
43400fi
43401if test -n "$PKG_CONFIG"; then
43402    if test -n "$CUDA_LIBS"; then
43403        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43404    else
43405        if test -n "$PKG_CONFIG" && \
43406    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43407  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43408  ac_status=$?
43409  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43410  test $ac_status = 0; }; then
43411  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43412else
43413  pkg_failed=yes
43414fi
43415    fi
43416else
43417	pkg_failed=untried
43418fi
43419
43420
43421
43422if test $pkg_failed = yes; then
43423
43424if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43425        _pkg_short_errors_supported=yes
43426else
43427        _pkg_short_errors_supported=no
43428fi
43429        if test $_pkg_short_errors_supported = yes; then
43430	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43431        else
43432	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43433        fi
43434	# Put the nasty error message in config.log where it belongs
43435	echo "$CUDA_PKG_ERRORS" >&5
43436
43437	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43438$as_echo "no" >&6; }
43439
43440                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43441$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43442elif test $pkg_failed = untried; then
43443
43444                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43445$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43446else
43447	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43448	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43449        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43450$as_echo "yes" >&6; }
43451	:
43452fi
43453elif test $pkg_failed = untried; then
43454
43455
43456pkg_failed=no
43457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43458$as_echo_n "checking for CUDA... " >&6; }
43459
43460if test -n "$PKG_CONFIG"; then
43461    if test -n "$CUDA_CFLAGS"; then
43462        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43463    else
43464        if test -n "$PKG_CONFIG" && \
43465    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43466  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43467  ac_status=$?
43468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43469  test $ac_status = 0; }; then
43470  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43471else
43472  pkg_failed=yes
43473fi
43474    fi
43475else
43476	pkg_failed=untried
43477fi
43478if test -n "$PKG_CONFIG"; then
43479    if test -n "$CUDA_LIBS"; then
43480        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43481    else
43482        if test -n "$PKG_CONFIG" && \
43483    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43484  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43485  ac_status=$?
43486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43487  test $ac_status = 0; }; then
43488  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43489else
43490  pkg_failed=yes
43491fi
43492    fi
43493else
43494	pkg_failed=untried
43495fi
43496
43497
43498
43499if test $pkg_failed = yes; then
43500
43501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43502        _pkg_short_errors_supported=yes
43503else
43504        _pkg_short_errors_supported=no
43505fi
43506        if test $_pkg_short_errors_supported = yes; then
43507	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43508        else
43509	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43510        fi
43511	# Put the nasty error message in config.log where it belongs
43512	echo "$CUDA_PKG_ERRORS" >&5
43513
43514	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43515$as_echo "no" >&6; }
43516
43517                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43518$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43519elif test $pkg_failed = untried; then
43520
43521                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43522$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43523else
43524	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43525	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43527$as_echo "yes" >&6; }
43528	:
43529fi
43530else
43531	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43532	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43534$as_echo "yes" >&6; }
43535	:
43536fi
43537else
43538	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43539	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43541$as_echo "yes" >&6; }
43542	:
43543fi
43544else
43545	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43546	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43548$as_echo "yes" >&6; }
43549	:
43550fi
43551elif test $pkg_failed = untried; then
43552
43553
43554pkg_failed=no
43555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43556$as_echo_n "checking for CUDA... " >&6; }
43557
43558if test -n "$PKG_CONFIG"; then
43559    if test -n "$CUDA_CFLAGS"; then
43560        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43561    else
43562        if test -n "$PKG_CONFIG" && \
43563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
43564  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
43565  ac_status=$?
43566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43567  test $ac_status = 0; }; then
43568  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
43569else
43570  pkg_failed=yes
43571fi
43572    fi
43573else
43574	pkg_failed=untried
43575fi
43576if test -n "$PKG_CONFIG"; then
43577    if test -n "$CUDA_LIBS"; then
43578        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43579    else
43580        if test -n "$PKG_CONFIG" && \
43581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
43582  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
43583  ac_status=$?
43584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43585  test $ac_status = 0; }; then
43586  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
43587else
43588  pkg_failed=yes
43589fi
43590    fi
43591else
43592	pkg_failed=untried
43593fi
43594
43595
43596
43597if test $pkg_failed = yes; then
43598
43599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43600        _pkg_short_errors_supported=yes
43601else
43602        _pkg_short_errors_supported=no
43603fi
43604        if test $_pkg_short_errors_supported = yes; then
43605	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
43606        else
43607	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
43608        fi
43609	# Put the nasty error message in config.log where it belongs
43610	echo "$CUDA_PKG_ERRORS" >&5
43611
43612	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43613$as_echo "no" >&6; }
43614
43615
43616pkg_failed=no
43617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43618$as_echo_n "checking for CUDA... " >&6; }
43619
43620if test -n "$PKG_CONFIG"; then
43621    if test -n "$CUDA_CFLAGS"; then
43622        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43623    else
43624        if test -n "$PKG_CONFIG" && \
43625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
43626  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
43627  ac_status=$?
43628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43629  test $ac_status = 0; }; then
43630  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
43631else
43632  pkg_failed=yes
43633fi
43634    fi
43635else
43636	pkg_failed=untried
43637fi
43638if test -n "$PKG_CONFIG"; then
43639    if test -n "$CUDA_LIBS"; then
43640        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43641    else
43642        if test -n "$PKG_CONFIG" && \
43643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
43644  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
43645  ac_status=$?
43646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43647  test $ac_status = 0; }; then
43648  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
43649else
43650  pkg_failed=yes
43651fi
43652    fi
43653else
43654	pkg_failed=untried
43655fi
43656
43657
43658
43659if test $pkg_failed = yes; then
43660
43661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43662        _pkg_short_errors_supported=yes
43663else
43664        _pkg_short_errors_supported=no
43665fi
43666        if test $_pkg_short_errors_supported = yes; then
43667	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
43668        else
43669	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
43670        fi
43671	# Put the nasty error message in config.log where it belongs
43672	echo "$CUDA_PKG_ERRORS" >&5
43673
43674	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43675$as_echo "no" >&6; }
43676
43677
43678pkg_failed=no
43679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43680$as_echo_n "checking for CUDA... " >&6; }
43681
43682if test -n "$PKG_CONFIG"; then
43683    if test -n "$CUDA_CFLAGS"; then
43684        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43685    else
43686        if test -n "$PKG_CONFIG" && \
43687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43688  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43689  ac_status=$?
43690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43691  test $ac_status = 0; }; then
43692  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
43693else
43694  pkg_failed=yes
43695fi
43696    fi
43697else
43698	pkg_failed=untried
43699fi
43700if test -n "$PKG_CONFIG"; then
43701    if test -n "$CUDA_LIBS"; then
43702        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43703    else
43704        if test -n "$PKG_CONFIG" && \
43705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43706  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43707  ac_status=$?
43708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43709  test $ac_status = 0; }; then
43710  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
43711else
43712  pkg_failed=yes
43713fi
43714    fi
43715else
43716	pkg_failed=untried
43717fi
43718
43719
43720
43721if test $pkg_failed = yes; then
43722
43723if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43724        _pkg_short_errors_supported=yes
43725else
43726        _pkg_short_errors_supported=no
43727fi
43728        if test $_pkg_short_errors_supported = yes; then
43729	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43730        else
43731	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43732        fi
43733	# Put the nasty error message in config.log where it belongs
43734	echo "$CUDA_PKG_ERRORS" >&5
43735
43736	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43737$as_echo "no" >&6; }
43738
43739
43740pkg_failed=no
43741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43742$as_echo_n "checking for CUDA... " >&6; }
43743
43744if test -n "$PKG_CONFIG"; then
43745    if test -n "$CUDA_CFLAGS"; then
43746        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43747    else
43748        if test -n "$PKG_CONFIG" && \
43749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43750  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43751  ac_status=$?
43752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43753  test $ac_status = 0; }; then
43754  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43755else
43756  pkg_failed=yes
43757fi
43758    fi
43759else
43760	pkg_failed=untried
43761fi
43762if test -n "$PKG_CONFIG"; then
43763    if test -n "$CUDA_LIBS"; then
43764        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43765    else
43766        if test -n "$PKG_CONFIG" && \
43767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43768  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43769  ac_status=$?
43770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43771  test $ac_status = 0; }; then
43772  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43773else
43774  pkg_failed=yes
43775fi
43776    fi
43777else
43778	pkg_failed=untried
43779fi
43780
43781
43782
43783if test $pkg_failed = yes; then
43784
43785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43786        _pkg_short_errors_supported=yes
43787else
43788        _pkg_short_errors_supported=no
43789fi
43790        if test $_pkg_short_errors_supported = yes; then
43791	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43792        else
43793	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43794        fi
43795	# Put the nasty error message in config.log where it belongs
43796	echo "$CUDA_PKG_ERRORS" >&5
43797
43798	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43799$as_echo "no" >&6; }
43800
43801                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43802$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43803elif test $pkg_failed = untried; then
43804
43805                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43806$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43807else
43808	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43809	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43810        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43811$as_echo "yes" >&6; }
43812	:
43813fi
43814elif test $pkg_failed = untried; then
43815
43816
43817pkg_failed=no
43818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43819$as_echo_n "checking for CUDA... " >&6; }
43820
43821if test -n "$PKG_CONFIG"; then
43822    if test -n "$CUDA_CFLAGS"; then
43823        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43824    else
43825        if test -n "$PKG_CONFIG" && \
43826    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43827  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43828  ac_status=$?
43829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43830  test $ac_status = 0; }; then
43831  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43832else
43833  pkg_failed=yes
43834fi
43835    fi
43836else
43837	pkg_failed=untried
43838fi
43839if test -n "$PKG_CONFIG"; then
43840    if test -n "$CUDA_LIBS"; then
43841        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43842    else
43843        if test -n "$PKG_CONFIG" && \
43844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43845  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43846  ac_status=$?
43847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43848  test $ac_status = 0; }; then
43849  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43850else
43851  pkg_failed=yes
43852fi
43853    fi
43854else
43855	pkg_failed=untried
43856fi
43857
43858
43859
43860if test $pkg_failed = yes; then
43861
43862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43863        _pkg_short_errors_supported=yes
43864else
43865        _pkg_short_errors_supported=no
43866fi
43867        if test $_pkg_short_errors_supported = yes; then
43868	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43869        else
43870	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
43871        fi
43872	# Put the nasty error message in config.log where it belongs
43873	echo "$CUDA_PKG_ERRORS" >&5
43874
43875	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43876$as_echo "no" >&6; }
43877
43878                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43879$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43880elif test $pkg_failed = untried; then
43881
43882                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
43883$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
43884else
43885	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43886	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43887        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43888$as_echo "yes" >&6; }
43889	:
43890fi
43891else
43892	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
43893	CUDA_LIBS=$pkg_cv_CUDA_LIBS
43894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43895$as_echo "yes" >&6; }
43896	:
43897fi
43898elif test $pkg_failed = untried; then
43899
43900
43901pkg_failed=no
43902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43903$as_echo_n "checking for CUDA... " >&6; }
43904
43905if test -n "$PKG_CONFIG"; then
43906    if test -n "$CUDA_CFLAGS"; then
43907        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43908    else
43909        if test -n "$PKG_CONFIG" && \
43910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43911  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43912  ac_status=$?
43913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43914  test $ac_status = 0; }; then
43915  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
43916else
43917  pkg_failed=yes
43918fi
43919    fi
43920else
43921	pkg_failed=untried
43922fi
43923if test -n "$PKG_CONFIG"; then
43924    if test -n "$CUDA_LIBS"; then
43925        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43926    else
43927        if test -n "$PKG_CONFIG" && \
43928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
43929  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
43930  ac_status=$?
43931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43932  test $ac_status = 0; }; then
43933  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
43934else
43935  pkg_failed=yes
43936fi
43937    fi
43938else
43939	pkg_failed=untried
43940fi
43941
43942
43943
43944if test $pkg_failed = yes; then
43945
43946if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43947        _pkg_short_errors_supported=yes
43948else
43949        _pkg_short_errors_supported=no
43950fi
43951        if test $_pkg_short_errors_supported = yes; then
43952	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43953        else
43954	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
43955        fi
43956	# Put the nasty error message in config.log where it belongs
43957	echo "$CUDA_PKG_ERRORS" >&5
43958
43959	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43960$as_echo "no" >&6; }
43961
43962
43963pkg_failed=no
43964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
43965$as_echo_n "checking for CUDA... " >&6; }
43966
43967if test -n "$PKG_CONFIG"; then
43968    if test -n "$CUDA_CFLAGS"; then
43969        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
43970    else
43971        if test -n "$PKG_CONFIG" && \
43972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43973  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43974  ac_status=$?
43975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43976  test $ac_status = 0; }; then
43977  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
43978else
43979  pkg_failed=yes
43980fi
43981    fi
43982else
43983	pkg_failed=untried
43984fi
43985if test -n "$PKG_CONFIG"; then
43986    if test -n "$CUDA_LIBS"; then
43987        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
43988    else
43989        if test -n "$PKG_CONFIG" && \
43990    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
43991  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
43992  ac_status=$?
43993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43994  test $ac_status = 0; }; then
43995  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
43996else
43997  pkg_failed=yes
43998fi
43999    fi
44000else
44001	pkg_failed=untried
44002fi
44003
44004
44005
44006if test $pkg_failed = yes; then
44007
44008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44009        _pkg_short_errors_supported=yes
44010else
44011        _pkg_short_errors_supported=no
44012fi
44013        if test $_pkg_short_errors_supported = yes; then
44014	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44015        else
44016	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44017        fi
44018	# Put the nasty error message in config.log where it belongs
44019	echo "$CUDA_PKG_ERRORS" >&5
44020
44021	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44022$as_echo "no" >&6; }
44023
44024                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44025$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44026elif test $pkg_failed = untried; then
44027
44028                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44029$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44030else
44031	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44032	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44034$as_echo "yes" >&6; }
44035	:
44036fi
44037elif test $pkg_failed = untried; then
44038
44039
44040pkg_failed=no
44041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44042$as_echo_n "checking for CUDA... " >&6; }
44043
44044if test -n "$PKG_CONFIG"; then
44045    if test -n "$CUDA_CFLAGS"; then
44046        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44047    else
44048        if test -n "$PKG_CONFIG" && \
44049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44050  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44051  ac_status=$?
44052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44053  test $ac_status = 0; }; then
44054  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
44055else
44056  pkg_failed=yes
44057fi
44058    fi
44059else
44060	pkg_failed=untried
44061fi
44062if test -n "$PKG_CONFIG"; then
44063    if test -n "$CUDA_LIBS"; then
44064        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44065    else
44066        if test -n "$PKG_CONFIG" && \
44067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44068  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44069  ac_status=$?
44070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44071  test $ac_status = 0; }; then
44072  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
44073else
44074  pkg_failed=yes
44075fi
44076    fi
44077else
44078	pkg_failed=untried
44079fi
44080
44081
44082
44083if test $pkg_failed = yes; then
44084
44085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44086        _pkg_short_errors_supported=yes
44087else
44088        _pkg_short_errors_supported=no
44089fi
44090        if test $_pkg_short_errors_supported = yes; then
44091	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44092        else
44093	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44094        fi
44095	# Put the nasty error message in config.log where it belongs
44096	echo "$CUDA_PKG_ERRORS" >&5
44097
44098	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44099$as_echo "no" >&6; }
44100
44101                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44102$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44103elif test $pkg_failed = untried; then
44104
44105                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44106$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44107else
44108	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44109	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44110        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44111$as_echo "yes" >&6; }
44112	:
44113fi
44114else
44115	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44116	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44117        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44118$as_echo "yes" >&6; }
44119	:
44120fi
44121else
44122	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44123	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44124        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44125$as_echo "yes" >&6; }
44126	:
44127fi
44128elif test $pkg_failed = untried; then
44129
44130
44131pkg_failed=no
44132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44133$as_echo_n "checking for CUDA... " >&6; }
44134
44135if test -n "$PKG_CONFIG"; then
44136    if test -n "$CUDA_CFLAGS"; then
44137        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44138    else
44139        if test -n "$PKG_CONFIG" && \
44140    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
44141  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
44142  ac_status=$?
44143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44144  test $ac_status = 0; }; then
44145  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
44146else
44147  pkg_failed=yes
44148fi
44149    fi
44150else
44151	pkg_failed=untried
44152fi
44153if test -n "$PKG_CONFIG"; then
44154    if test -n "$CUDA_LIBS"; then
44155        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44156    else
44157        if test -n "$PKG_CONFIG" && \
44158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
44159  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
44160  ac_status=$?
44161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44162  test $ac_status = 0; }; then
44163  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
44164else
44165  pkg_failed=yes
44166fi
44167    fi
44168else
44169	pkg_failed=untried
44170fi
44171
44172
44173
44174if test $pkg_failed = yes; then
44175
44176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44177        _pkg_short_errors_supported=yes
44178else
44179        _pkg_short_errors_supported=no
44180fi
44181        if test $_pkg_short_errors_supported = yes; then
44182	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
44183        else
44184	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
44185        fi
44186	# Put the nasty error message in config.log where it belongs
44187	echo "$CUDA_PKG_ERRORS" >&5
44188
44189	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44190$as_echo "no" >&6; }
44191
44192
44193pkg_failed=no
44194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44195$as_echo_n "checking for CUDA... " >&6; }
44196
44197if test -n "$PKG_CONFIG"; then
44198    if test -n "$CUDA_CFLAGS"; then
44199        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44200    else
44201        if test -n "$PKG_CONFIG" && \
44202    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
44203  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
44204  ac_status=$?
44205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44206  test $ac_status = 0; }; then
44207  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
44208else
44209  pkg_failed=yes
44210fi
44211    fi
44212else
44213	pkg_failed=untried
44214fi
44215if test -n "$PKG_CONFIG"; then
44216    if test -n "$CUDA_LIBS"; then
44217        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44218    else
44219        if test -n "$PKG_CONFIG" && \
44220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
44221  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
44222  ac_status=$?
44223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44224  test $ac_status = 0; }; then
44225  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
44226else
44227  pkg_failed=yes
44228fi
44229    fi
44230else
44231	pkg_failed=untried
44232fi
44233
44234
44235
44236if test $pkg_failed = yes; then
44237
44238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44239        _pkg_short_errors_supported=yes
44240else
44241        _pkg_short_errors_supported=no
44242fi
44243        if test $_pkg_short_errors_supported = yes; then
44244	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
44245        else
44246	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
44247        fi
44248	# Put the nasty error message in config.log where it belongs
44249	echo "$CUDA_PKG_ERRORS" >&5
44250
44251	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44252$as_echo "no" >&6; }
44253
44254
44255pkg_failed=no
44256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44257$as_echo_n "checking for CUDA... " >&6; }
44258
44259if test -n "$PKG_CONFIG"; then
44260    if test -n "$CUDA_CFLAGS"; then
44261        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44262    else
44263        if test -n "$PKG_CONFIG" && \
44264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44265  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44266  ac_status=$?
44267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44268  test $ac_status = 0; }; then
44269  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
44270else
44271  pkg_failed=yes
44272fi
44273    fi
44274else
44275	pkg_failed=untried
44276fi
44277if test -n "$PKG_CONFIG"; then
44278    if test -n "$CUDA_LIBS"; then
44279        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44280    else
44281        if test -n "$PKG_CONFIG" && \
44282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44283  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44284  ac_status=$?
44285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44286  test $ac_status = 0; }; then
44287  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
44288else
44289  pkg_failed=yes
44290fi
44291    fi
44292else
44293	pkg_failed=untried
44294fi
44295
44296
44297
44298if test $pkg_failed = yes; then
44299
44300if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44301        _pkg_short_errors_supported=yes
44302else
44303        _pkg_short_errors_supported=no
44304fi
44305        if test $_pkg_short_errors_supported = yes; then
44306	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44307        else
44308	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44309        fi
44310	# Put the nasty error message in config.log where it belongs
44311	echo "$CUDA_PKG_ERRORS" >&5
44312
44313	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44314$as_echo "no" >&6; }
44315
44316                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44317$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44318elif test $pkg_failed = untried; then
44319
44320                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44321$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44322else
44323	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44324	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44326$as_echo "yes" >&6; }
44327	:
44328fi
44329elif test $pkg_failed = untried; then
44330
44331
44332pkg_failed=no
44333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44334$as_echo_n "checking for CUDA... " >&6; }
44335
44336if test -n "$PKG_CONFIG"; then
44337    if test -n "$CUDA_CFLAGS"; then
44338        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44339    else
44340        if test -n "$PKG_CONFIG" && \
44341    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44342  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44343  ac_status=$?
44344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44345  test $ac_status = 0; }; then
44346  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
44347else
44348  pkg_failed=yes
44349fi
44350    fi
44351else
44352	pkg_failed=untried
44353fi
44354if test -n "$PKG_CONFIG"; then
44355    if test -n "$CUDA_LIBS"; then
44356        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44357    else
44358        if test -n "$PKG_CONFIG" && \
44359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44360  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44361  ac_status=$?
44362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44363  test $ac_status = 0; }; then
44364  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
44365else
44366  pkg_failed=yes
44367fi
44368    fi
44369else
44370	pkg_failed=untried
44371fi
44372
44373
44374
44375if test $pkg_failed = yes; then
44376
44377if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44378        _pkg_short_errors_supported=yes
44379else
44380        _pkg_short_errors_supported=no
44381fi
44382        if test $_pkg_short_errors_supported = yes; then
44383	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44384        else
44385	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44386        fi
44387	# Put the nasty error message in config.log where it belongs
44388	echo "$CUDA_PKG_ERRORS" >&5
44389
44390	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44391$as_echo "no" >&6; }
44392
44393                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44394$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44395elif test $pkg_failed = untried; then
44396
44397                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44398$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44399else
44400	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44401	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44403$as_echo "yes" >&6; }
44404	:
44405fi
44406else
44407	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44408	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44410$as_echo "yes" >&6; }
44411	:
44412fi
44413elif test $pkg_failed = untried; then
44414
44415
44416pkg_failed=no
44417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44418$as_echo_n "checking for CUDA... " >&6; }
44419
44420if test -n "$PKG_CONFIG"; then
44421    if test -n "$CUDA_CFLAGS"; then
44422        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44423    else
44424        if test -n "$PKG_CONFIG" && \
44425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
44426  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
44427  ac_status=$?
44428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44429  test $ac_status = 0; }; then
44430  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
44431else
44432  pkg_failed=yes
44433fi
44434    fi
44435else
44436	pkg_failed=untried
44437fi
44438if test -n "$PKG_CONFIG"; then
44439    if test -n "$CUDA_LIBS"; then
44440        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44441    else
44442        if test -n "$PKG_CONFIG" && \
44443    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
44444  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
44445  ac_status=$?
44446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44447  test $ac_status = 0; }; then
44448  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
44449else
44450  pkg_failed=yes
44451fi
44452    fi
44453else
44454	pkg_failed=untried
44455fi
44456
44457
44458
44459if test $pkg_failed = yes; then
44460
44461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44462        _pkg_short_errors_supported=yes
44463else
44464        _pkg_short_errors_supported=no
44465fi
44466        if test $_pkg_short_errors_supported = yes; then
44467	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
44468        else
44469	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
44470        fi
44471	# Put the nasty error message in config.log where it belongs
44472	echo "$CUDA_PKG_ERRORS" >&5
44473
44474	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44475$as_echo "no" >&6; }
44476
44477
44478pkg_failed=no
44479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44480$as_echo_n "checking for CUDA... " >&6; }
44481
44482if test -n "$PKG_CONFIG"; then
44483    if test -n "$CUDA_CFLAGS"; then
44484        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44485    else
44486        if test -n "$PKG_CONFIG" && \
44487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44488  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44489  ac_status=$?
44490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44491  test $ac_status = 0; }; then
44492  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
44493else
44494  pkg_failed=yes
44495fi
44496    fi
44497else
44498	pkg_failed=untried
44499fi
44500if test -n "$PKG_CONFIG"; then
44501    if test -n "$CUDA_LIBS"; then
44502        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44503    else
44504        if test -n "$PKG_CONFIG" && \
44505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44506  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44507  ac_status=$?
44508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44509  test $ac_status = 0; }; then
44510  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
44511else
44512  pkg_failed=yes
44513fi
44514    fi
44515else
44516	pkg_failed=untried
44517fi
44518
44519
44520
44521if test $pkg_failed = yes; then
44522
44523if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44524        _pkg_short_errors_supported=yes
44525else
44526        _pkg_short_errors_supported=no
44527fi
44528        if test $_pkg_short_errors_supported = yes; then
44529	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44530        else
44531	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44532        fi
44533	# Put the nasty error message in config.log where it belongs
44534	echo "$CUDA_PKG_ERRORS" >&5
44535
44536	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44537$as_echo "no" >&6; }
44538
44539                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44540$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44541elif test $pkg_failed = untried; then
44542
44543                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44544$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44545else
44546	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44547	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44549$as_echo "yes" >&6; }
44550	:
44551fi
44552elif test $pkg_failed = untried; then
44553
44554
44555pkg_failed=no
44556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44557$as_echo_n "checking for CUDA... " >&6; }
44558
44559if test -n "$PKG_CONFIG"; then
44560    if test -n "$CUDA_CFLAGS"; then
44561        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44562    else
44563        if test -n "$PKG_CONFIG" && \
44564    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44565  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44566  ac_status=$?
44567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44568  test $ac_status = 0; }; then
44569  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
44570else
44571  pkg_failed=yes
44572fi
44573    fi
44574else
44575	pkg_failed=untried
44576fi
44577if test -n "$PKG_CONFIG"; then
44578    if test -n "$CUDA_LIBS"; then
44579        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44580    else
44581        if test -n "$PKG_CONFIG" && \
44582    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
44583  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
44584  ac_status=$?
44585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44586  test $ac_status = 0; }; then
44587  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
44588else
44589  pkg_failed=yes
44590fi
44591    fi
44592else
44593	pkg_failed=untried
44594fi
44595
44596
44597
44598if test $pkg_failed = yes; then
44599
44600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44601        _pkg_short_errors_supported=yes
44602else
44603        _pkg_short_errors_supported=no
44604fi
44605        if test $_pkg_short_errors_supported = yes; then
44606	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44607        else
44608	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
44609        fi
44610	# Put the nasty error message in config.log where it belongs
44611	echo "$CUDA_PKG_ERRORS" >&5
44612
44613	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44614$as_echo "no" >&6; }
44615
44616                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44617$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44618elif test $pkg_failed = untried; then
44619
44620                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
44621$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
44622else
44623	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44624	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44625        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44626$as_echo "yes" >&6; }
44627	:
44628fi
44629else
44630	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44631	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44633$as_echo "yes" >&6; }
44634	:
44635fi
44636else
44637	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44638	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44640$as_echo "yes" >&6; }
44641	:
44642fi
44643else
44644	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44645	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44646        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44647$as_echo "yes" >&6; }
44648	:
44649fi
44650else
44651	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44652	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44654$as_echo "yes" >&6; }
44655	:
44656fi
44657else
44658	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44659	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44661$as_echo "yes" >&6; }
44662	:
44663fi
44664else
44665	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
44666	CUDA_LIBS=$pkg_cv_CUDA_LIBS
44667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44668$as_echo "yes" >&6; }
44669	:
44670fi
44671elif test $pkg_failed = untried; then
44672
44673
44674pkg_failed=no
44675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44676$as_echo_n "checking for CUDA... " >&6; }
44677
44678if test -n "$PKG_CONFIG"; then
44679    if test -n "$CUDA_CFLAGS"; then
44680        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44681    else
44682        if test -n "$PKG_CONFIG" && \
44683    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
44684  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
44685  ac_status=$?
44686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44687  test $ac_status = 0; }; then
44688  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.2 cudart-9.2" 2>/dev/null`
44689else
44690  pkg_failed=yes
44691fi
44692    fi
44693else
44694	pkg_failed=untried
44695fi
44696if test -n "$PKG_CONFIG"; then
44697    if test -n "$CUDA_LIBS"; then
44698        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44699    else
44700        if test -n "$PKG_CONFIG" && \
44701    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
44702  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
44703  ac_status=$?
44704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44705  test $ac_status = 0; }; then
44706  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.2 cudart-9.2" 2>/dev/null`
44707else
44708  pkg_failed=yes
44709fi
44710    fi
44711else
44712	pkg_failed=untried
44713fi
44714
44715
44716
44717if test $pkg_failed = yes; then
44718
44719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44720        _pkg_short_errors_supported=yes
44721else
44722        _pkg_short_errors_supported=no
44723fi
44724        if test $_pkg_short_errors_supported = yes; then
44725	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
44726        else
44727	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
44728        fi
44729	# Put the nasty error message in config.log where it belongs
44730	echo "$CUDA_PKG_ERRORS" >&5
44731
44732	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44733$as_echo "no" >&6; }
44734
44735
44736pkg_failed=no
44737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44738$as_echo_n "checking for CUDA... " >&6; }
44739
44740if test -n "$PKG_CONFIG"; then
44741    if test -n "$CUDA_CFLAGS"; then
44742        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44743    else
44744        if test -n "$PKG_CONFIG" && \
44745    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
44746  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
44747  ac_status=$?
44748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44749  test $ac_status = 0; }; then
44750  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
44751else
44752  pkg_failed=yes
44753fi
44754    fi
44755else
44756	pkg_failed=untried
44757fi
44758if test -n "$PKG_CONFIG"; then
44759    if test -n "$CUDA_LIBS"; then
44760        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44761    else
44762        if test -n "$PKG_CONFIG" && \
44763    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
44764  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
44765  ac_status=$?
44766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44767  test $ac_status = 0; }; then
44768  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
44769else
44770  pkg_failed=yes
44771fi
44772    fi
44773else
44774	pkg_failed=untried
44775fi
44776
44777
44778
44779if test $pkg_failed = yes; then
44780
44781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44782        _pkg_short_errors_supported=yes
44783else
44784        _pkg_short_errors_supported=no
44785fi
44786        if test $_pkg_short_errors_supported = yes; then
44787	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
44788        else
44789	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
44790        fi
44791	# Put the nasty error message in config.log where it belongs
44792	echo "$CUDA_PKG_ERRORS" >&5
44793
44794	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44795$as_echo "no" >&6; }
44796
44797
44798pkg_failed=no
44799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44800$as_echo_n "checking for CUDA... " >&6; }
44801
44802if test -n "$PKG_CONFIG"; then
44803    if test -n "$CUDA_CFLAGS"; then
44804        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44805    else
44806        if test -n "$PKG_CONFIG" && \
44807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
44808  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
44809  ac_status=$?
44810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44811  test $ac_status = 0; }; then
44812  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
44813else
44814  pkg_failed=yes
44815fi
44816    fi
44817else
44818	pkg_failed=untried
44819fi
44820if test -n "$PKG_CONFIG"; then
44821    if test -n "$CUDA_LIBS"; then
44822        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44823    else
44824        if test -n "$PKG_CONFIG" && \
44825    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
44826  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
44827  ac_status=$?
44828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44829  test $ac_status = 0; }; then
44830  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
44831else
44832  pkg_failed=yes
44833fi
44834    fi
44835else
44836	pkg_failed=untried
44837fi
44838
44839
44840
44841if test $pkg_failed = yes; then
44842
44843if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44844        _pkg_short_errors_supported=yes
44845else
44846        _pkg_short_errors_supported=no
44847fi
44848        if test $_pkg_short_errors_supported = yes; then
44849	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
44850        else
44851	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
44852        fi
44853	# Put the nasty error message in config.log where it belongs
44854	echo "$CUDA_PKG_ERRORS" >&5
44855
44856	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44857$as_echo "no" >&6; }
44858
44859
44860pkg_failed=no
44861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44862$as_echo_n "checking for CUDA... " >&6; }
44863
44864if test -n "$PKG_CONFIG"; then
44865    if test -n "$CUDA_CFLAGS"; then
44866        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44867    else
44868        if test -n "$PKG_CONFIG" && \
44869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
44870  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
44871  ac_status=$?
44872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44873  test $ac_status = 0; }; then
44874  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
44875else
44876  pkg_failed=yes
44877fi
44878    fi
44879else
44880	pkg_failed=untried
44881fi
44882if test -n "$PKG_CONFIG"; then
44883    if test -n "$CUDA_LIBS"; then
44884        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44885    else
44886        if test -n "$PKG_CONFIG" && \
44887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
44888  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
44889  ac_status=$?
44890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44891  test $ac_status = 0; }; then
44892  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
44893else
44894  pkg_failed=yes
44895fi
44896    fi
44897else
44898	pkg_failed=untried
44899fi
44900
44901
44902
44903if test $pkg_failed = yes; then
44904
44905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44906        _pkg_short_errors_supported=yes
44907else
44908        _pkg_short_errors_supported=no
44909fi
44910        if test $_pkg_short_errors_supported = yes; then
44911	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
44912        else
44913	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
44914        fi
44915	# Put the nasty error message in config.log where it belongs
44916	echo "$CUDA_PKG_ERRORS" >&5
44917
44918	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44919$as_echo "no" >&6; }
44920
44921
44922pkg_failed=no
44923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44924$as_echo_n "checking for CUDA... " >&6; }
44925
44926if test -n "$PKG_CONFIG"; then
44927    if test -n "$CUDA_CFLAGS"; then
44928        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44929    else
44930        if test -n "$PKG_CONFIG" && \
44931    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
44932  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
44933  ac_status=$?
44934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44935  test $ac_status = 0; }; then
44936  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
44937else
44938  pkg_failed=yes
44939fi
44940    fi
44941else
44942	pkg_failed=untried
44943fi
44944if test -n "$PKG_CONFIG"; then
44945    if test -n "$CUDA_LIBS"; then
44946        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
44947    else
44948        if test -n "$PKG_CONFIG" && \
44949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
44950  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
44951  ac_status=$?
44952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44953  test $ac_status = 0; }; then
44954  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
44955else
44956  pkg_failed=yes
44957fi
44958    fi
44959else
44960	pkg_failed=untried
44961fi
44962
44963
44964
44965if test $pkg_failed = yes; then
44966
44967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44968        _pkg_short_errors_supported=yes
44969else
44970        _pkg_short_errors_supported=no
44971fi
44972        if test $_pkg_short_errors_supported = yes; then
44973	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
44974        else
44975	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
44976        fi
44977	# Put the nasty error message in config.log where it belongs
44978	echo "$CUDA_PKG_ERRORS" >&5
44979
44980	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44981$as_echo "no" >&6; }
44982
44983
44984pkg_failed=no
44985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
44986$as_echo_n "checking for CUDA... " >&6; }
44987
44988if test -n "$PKG_CONFIG"; then
44989    if test -n "$CUDA_CFLAGS"; then
44990        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
44991    else
44992        if test -n "$PKG_CONFIG" && \
44993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
44994  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
44995  ac_status=$?
44996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44997  test $ac_status = 0; }; then
44998  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
44999else
45000  pkg_failed=yes
45001fi
45002    fi
45003else
45004	pkg_failed=untried
45005fi
45006if test -n "$PKG_CONFIG"; then
45007    if test -n "$CUDA_LIBS"; then
45008        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45009    else
45010        if test -n "$PKG_CONFIG" && \
45011    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45012  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45013  ac_status=$?
45014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45015  test $ac_status = 0; }; then
45016  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
45017else
45018  pkg_failed=yes
45019fi
45020    fi
45021else
45022	pkg_failed=untried
45023fi
45024
45025
45026
45027if test $pkg_failed = yes; then
45028
45029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45030        _pkg_short_errors_supported=yes
45031else
45032        _pkg_short_errors_supported=no
45033fi
45034        if test $_pkg_short_errors_supported = yes; then
45035	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45036        else
45037	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45038        fi
45039	# Put the nasty error message in config.log where it belongs
45040	echo "$CUDA_PKG_ERRORS" >&5
45041
45042	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45043$as_echo "no" >&6; }
45044
45045
45046pkg_failed=no
45047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45048$as_echo_n "checking for CUDA... " >&6; }
45049
45050if test -n "$PKG_CONFIG"; then
45051    if test -n "$CUDA_CFLAGS"; then
45052        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45053    else
45054        if test -n "$PKG_CONFIG" && \
45055    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45056  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45057  ac_status=$?
45058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45059  test $ac_status = 0; }; then
45060  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45061else
45062  pkg_failed=yes
45063fi
45064    fi
45065else
45066	pkg_failed=untried
45067fi
45068if test -n "$PKG_CONFIG"; then
45069    if test -n "$CUDA_LIBS"; then
45070        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45071    else
45072        if test -n "$PKG_CONFIG" && \
45073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45074  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45075  ac_status=$?
45076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45077  test $ac_status = 0; }; then
45078  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45079else
45080  pkg_failed=yes
45081fi
45082    fi
45083else
45084	pkg_failed=untried
45085fi
45086
45087
45088
45089if test $pkg_failed = yes; then
45090
45091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45092        _pkg_short_errors_supported=yes
45093else
45094        _pkg_short_errors_supported=no
45095fi
45096        if test $_pkg_short_errors_supported = yes; then
45097	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45098        else
45099	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45100        fi
45101	# Put the nasty error message in config.log where it belongs
45102	echo "$CUDA_PKG_ERRORS" >&5
45103
45104	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45105$as_echo "no" >&6; }
45106
45107                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45108$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45109elif test $pkg_failed = untried; then
45110
45111                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45112$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45113else
45114	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45115	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45117$as_echo "yes" >&6; }
45118	:
45119fi
45120elif test $pkg_failed = untried; then
45121
45122
45123pkg_failed=no
45124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45125$as_echo_n "checking for CUDA... " >&6; }
45126
45127if test -n "$PKG_CONFIG"; then
45128    if test -n "$CUDA_CFLAGS"; then
45129        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45130    else
45131        if test -n "$PKG_CONFIG" && \
45132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45133  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45134  ac_status=$?
45135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45136  test $ac_status = 0; }; then
45137  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45138else
45139  pkg_failed=yes
45140fi
45141    fi
45142else
45143	pkg_failed=untried
45144fi
45145if test -n "$PKG_CONFIG"; then
45146    if test -n "$CUDA_LIBS"; then
45147        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45148    else
45149        if test -n "$PKG_CONFIG" && \
45150    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45151  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45152  ac_status=$?
45153  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45154  test $ac_status = 0; }; then
45155  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45156else
45157  pkg_failed=yes
45158fi
45159    fi
45160else
45161	pkg_failed=untried
45162fi
45163
45164
45165
45166if test $pkg_failed = yes; then
45167
45168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45169        _pkg_short_errors_supported=yes
45170else
45171        _pkg_short_errors_supported=no
45172fi
45173        if test $_pkg_short_errors_supported = yes; then
45174	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45175        else
45176	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45177        fi
45178	# Put the nasty error message in config.log where it belongs
45179	echo "$CUDA_PKG_ERRORS" >&5
45180
45181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45182$as_echo "no" >&6; }
45183
45184                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45185$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45186elif test $pkg_failed = untried; then
45187
45188                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45189$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45190else
45191	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45192	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45193        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45194$as_echo "yes" >&6; }
45195	:
45196fi
45197else
45198	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45199	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45200        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45201$as_echo "yes" >&6; }
45202	:
45203fi
45204elif test $pkg_failed = untried; then
45205
45206
45207pkg_failed=no
45208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45209$as_echo_n "checking for CUDA... " >&6; }
45210
45211if test -n "$PKG_CONFIG"; then
45212    if test -n "$CUDA_CFLAGS"; then
45213        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45214    else
45215        if test -n "$PKG_CONFIG" && \
45216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45217  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45218  ac_status=$?
45219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45220  test $ac_status = 0; }; then
45221  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
45222else
45223  pkg_failed=yes
45224fi
45225    fi
45226else
45227	pkg_failed=untried
45228fi
45229if test -n "$PKG_CONFIG"; then
45230    if test -n "$CUDA_LIBS"; then
45231        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45232    else
45233        if test -n "$PKG_CONFIG" && \
45234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45235  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45236  ac_status=$?
45237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45238  test $ac_status = 0; }; then
45239  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
45240else
45241  pkg_failed=yes
45242fi
45243    fi
45244else
45245	pkg_failed=untried
45246fi
45247
45248
45249
45250if test $pkg_failed = yes; then
45251
45252if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45253        _pkg_short_errors_supported=yes
45254else
45255        _pkg_short_errors_supported=no
45256fi
45257        if test $_pkg_short_errors_supported = yes; then
45258	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45259        else
45260	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45261        fi
45262	# Put the nasty error message in config.log where it belongs
45263	echo "$CUDA_PKG_ERRORS" >&5
45264
45265	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45266$as_echo "no" >&6; }
45267
45268
45269pkg_failed=no
45270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45271$as_echo_n "checking for CUDA... " >&6; }
45272
45273if test -n "$PKG_CONFIG"; then
45274    if test -n "$CUDA_CFLAGS"; then
45275        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45276    else
45277        if test -n "$PKG_CONFIG" && \
45278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45279  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45280  ac_status=$?
45281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45282  test $ac_status = 0; }; then
45283  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45284else
45285  pkg_failed=yes
45286fi
45287    fi
45288else
45289	pkg_failed=untried
45290fi
45291if test -n "$PKG_CONFIG"; then
45292    if test -n "$CUDA_LIBS"; then
45293        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45294    else
45295        if test -n "$PKG_CONFIG" && \
45296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45297  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45298  ac_status=$?
45299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45300  test $ac_status = 0; }; then
45301  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45302else
45303  pkg_failed=yes
45304fi
45305    fi
45306else
45307	pkg_failed=untried
45308fi
45309
45310
45311
45312if test $pkg_failed = yes; then
45313
45314if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45315        _pkg_short_errors_supported=yes
45316else
45317        _pkg_short_errors_supported=no
45318fi
45319        if test $_pkg_short_errors_supported = yes; then
45320	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45321        else
45322	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45323        fi
45324	# Put the nasty error message in config.log where it belongs
45325	echo "$CUDA_PKG_ERRORS" >&5
45326
45327	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45328$as_echo "no" >&6; }
45329
45330                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45331$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45332elif test $pkg_failed = untried; then
45333
45334                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45335$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45336else
45337	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45338	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45340$as_echo "yes" >&6; }
45341	:
45342fi
45343elif test $pkg_failed = untried; then
45344
45345
45346pkg_failed=no
45347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45348$as_echo_n "checking for CUDA... " >&6; }
45349
45350if test -n "$PKG_CONFIG"; then
45351    if test -n "$CUDA_CFLAGS"; then
45352        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45353    else
45354        if test -n "$PKG_CONFIG" && \
45355    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45356  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45357  ac_status=$?
45358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45359  test $ac_status = 0; }; then
45360  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45361else
45362  pkg_failed=yes
45363fi
45364    fi
45365else
45366	pkg_failed=untried
45367fi
45368if test -n "$PKG_CONFIG"; then
45369    if test -n "$CUDA_LIBS"; then
45370        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45371    else
45372        if test -n "$PKG_CONFIG" && \
45373    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45374  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45375  ac_status=$?
45376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45377  test $ac_status = 0; }; then
45378  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45379else
45380  pkg_failed=yes
45381fi
45382    fi
45383else
45384	pkg_failed=untried
45385fi
45386
45387
45388
45389if test $pkg_failed = yes; then
45390
45391if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45392        _pkg_short_errors_supported=yes
45393else
45394        _pkg_short_errors_supported=no
45395fi
45396        if test $_pkg_short_errors_supported = yes; then
45397	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45398        else
45399	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45400        fi
45401	# Put the nasty error message in config.log where it belongs
45402	echo "$CUDA_PKG_ERRORS" >&5
45403
45404	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45405$as_echo "no" >&6; }
45406
45407                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45408$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45409elif test $pkg_failed = untried; then
45410
45411                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45412$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45413else
45414	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45415	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45416        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45417$as_echo "yes" >&6; }
45418	:
45419fi
45420else
45421	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45422	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45423        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45424$as_echo "yes" >&6; }
45425	:
45426fi
45427else
45428	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45429	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45430        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45431$as_echo "yes" >&6; }
45432	:
45433fi
45434elif test $pkg_failed = untried; then
45435
45436
45437pkg_failed=no
45438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45439$as_echo_n "checking for CUDA... " >&6; }
45440
45441if test -n "$PKG_CONFIG"; then
45442    if test -n "$CUDA_CFLAGS"; then
45443        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45444    else
45445        if test -n "$PKG_CONFIG" && \
45446    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
45447  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
45448  ac_status=$?
45449  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45450  test $ac_status = 0; }; then
45451  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
45452else
45453  pkg_failed=yes
45454fi
45455    fi
45456else
45457	pkg_failed=untried
45458fi
45459if test -n "$PKG_CONFIG"; then
45460    if test -n "$CUDA_LIBS"; then
45461        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45462    else
45463        if test -n "$PKG_CONFIG" && \
45464    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
45465  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
45466  ac_status=$?
45467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45468  test $ac_status = 0; }; then
45469  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
45470else
45471  pkg_failed=yes
45472fi
45473    fi
45474else
45475	pkg_failed=untried
45476fi
45477
45478
45479
45480if test $pkg_failed = yes; then
45481
45482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45483        _pkg_short_errors_supported=yes
45484else
45485        _pkg_short_errors_supported=no
45486fi
45487        if test $_pkg_short_errors_supported = yes; then
45488	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
45489        else
45490	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
45491        fi
45492	# Put the nasty error message in config.log where it belongs
45493	echo "$CUDA_PKG_ERRORS" >&5
45494
45495	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45496$as_echo "no" >&6; }
45497
45498
45499pkg_failed=no
45500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45501$as_echo_n "checking for CUDA... " >&6; }
45502
45503if test -n "$PKG_CONFIG"; then
45504    if test -n "$CUDA_CFLAGS"; then
45505        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45506    else
45507        if test -n "$PKG_CONFIG" && \
45508    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45509  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45510  ac_status=$?
45511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45512  test $ac_status = 0; }; then
45513  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
45514else
45515  pkg_failed=yes
45516fi
45517    fi
45518else
45519	pkg_failed=untried
45520fi
45521if test -n "$PKG_CONFIG"; then
45522    if test -n "$CUDA_LIBS"; then
45523        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45524    else
45525        if test -n "$PKG_CONFIG" && \
45526    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45527  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45528  ac_status=$?
45529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45530  test $ac_status = 0; }; then
45531  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
45532else
45533  pkg_failed=yes
45534fi
45535    fi
45536else
45537	pkg_failed=untried
45538fi
45539
45540
45541
45542if test $pkg_failed = yes; then
45543
45544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45545        _pkg_short_errors_supported=yes
45546else
45547        _pkg_short_errors_supported=no
45548fi
45549        if test $_pkg_short_errors_supported = yes; then
45550	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45551        else
45552	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45553        fi
45554	# Put the nasty error message in config.log where it belongs
45555	echo "$CUDA_PKG_ERRORS" >&5
45556
45557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45558$as_echo "no" >&6; }
45559
45560
45561pkg_failed=no
45562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45563$as_echo_n "checking for CUDA... " >&6; }
45564
45565if test -n "$PKG_CONFIG"; then
45566    if test -n "$CUDA_CFLAGS"; then
45567        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45568    else
45569        if test -n "$PKG_CONFIG" && \
45570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45571  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45572  ac_status=$?
45573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45574  test $ac_status = 0; }; then
45575  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45576else
45577  pkg_failed=yes
45578fi
45579    fi
45580else
45581	pkg_failed=untried
45582fi
45583if test -n "$PKG_CONFIG"; then
45584    if test -n "$CUDA_LIBS"; then
45585        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45586    else
45587        if test -n "$PKG_CONFIG" && \
45588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45589  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45590  ac_status=$?
45591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45592  test $ac_status = 0; }; then
45593  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45594else
45595  pkg_failed=yes
45596fi
45597    fi
45598else
45599	pkg_failed=untried
45600fi
45601
45602
45603
45604if test $pkg_failed = yes; then
45605
45606if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45607        _pkg_short_errors_supported=yes
45608else
45609        _pkg_short_errors_supported=no
45610fi
45611        if test $_pkg_short_errors_supported = yes; then
45612	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45613        else
45614	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45615        fi
45616	# Put the nasty error message in config.log where it belongs
45617	echo "$CUDA_PKG_ERRORS" >&5
45618
45619	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45620$as_echo "no" >&6; }
45621
45622                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45623$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45624elif test $pkg_failed = untried; then
45625
45626                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45627$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45628else
45629	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45630	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45631        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45632$as_echo "yes" >&6; }
45633	:
45634fi
45635elif test $pkg_failed = untried; then
45636
45637
45638pkg_failed=no
45639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45640$as_echo_n "checking for CUDA... " >&6; }
45641
45642if test -n "$PKG_CONFIG"; then
45643    if test -n "$CUDA_CFLAGS"; then
45644        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45645    else
45646        if test -n "$PKG_CONFIG" && \
45647    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45648  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45649  ac_status=$?
45650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45651  test $ac_status = 0; }; then
45652  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45653else
45654  pkg_failed=yes
45655fi
45656    fi
45657else
45658	pkg_failed=untried
45659fi
45660if test -n "$PKG_CONFIG"; then
45661    if test -n "$CUDA_LIBS"; then
45662        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45663    else
45664        if test -n "$PKG_CONFIG" && \
45665    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45666  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45667  ac_status=$?
45668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45669  test $ac_status = 0; }; then
45670  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45671else
45672  pkg_failed=yes
45673fi
45674    fi
45675else
45676	pkg_failed=untried
45677fi
45678
45679
45680
45681if test $pkg_failed = yes; then
45682
45683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45684        _pkg_short_errors_supported=yes
45685else
45686        _pkg_short_errors_supported=no
45687fi
45688        if test $_pkg_short_errors_supported = yes; then
45689	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45690        else
45691	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45692        fi
45693	# Put the nasty error message in config.log where it belongs
45694	echo "$CUDA_PKG_ERRORS" >&5
45695
45696	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45697$as_echo "no" >&6; }
45698
45699                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45700$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45701elif test $pkg_failed = untried; then
45702
45703                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45704$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45705else
45706	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45707	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45709$as_echo "yes" >&6; }
45710	:
45711fi
45712else
45713	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45714	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45716$as_echo "yes" >&6; }
45717	:
45718fi
45719elif test $pkg_failed = untried; then
45720
45721
45722pkg_failed=no
45723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45724$as_echo_n "checking for CUDA... " >&6; }
45725
45726if test -n "$PKG_CONFIG"; then
45727    if test -n "$CUDA_CFLAGS"; then
45728        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45729    else
45730        if test -n "$PKG_CONFIG" && \
45731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45732  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45733  ac_status=$?
45734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45735  test $ac_status = 0; }; then
45736  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
45737else
45738  pkg_failed=yes
45739fi
45740    fi
45741else
45742	pkg_failed=untried
45743fi
45744if test -n "$PKG_CONFIG"; then
45745    if test -n "$CUDA_LIBS"; then
45746        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45747    else
45748        if test -n "$PKG_CONFIG" && \
45749    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
45750  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
45751  ac_status=$?
45752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45753  test $ac_status = 0; }; then
45754  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
45755else
45756  pkg_failed=yes
45757fi
45758    fi
45759else
45760	pkg_failed=untried
45761fi
45762
45763
45764
45765if test $pkg_failed = yes; then
45766
45767if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45768        _pkg_short_errors_supported=yes
45769else
45770        _pkg_short_errors_supported=no
45771fi
45772        if test $_pkg_short_errors_supported = yes; then
45773	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45774        else
45775	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
45776        fi
45777	# Put the nasty error message in config.log where it belongs
45778	echo "$CUDA_PKG_ERRORS" >&5
45779
45780	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45781$as_echo "no" >&6; }
45782
45783
45784pkg_failed=no
45785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45786$as_echo_n "checking for CUDA... " >&6; }
45787
45788if test -n "$PKG_CONFIG"; then
45789    if test -n "$CUDA_CFLAGS"; then
45790        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45791    else
45792        if test -n "$PKG_CONFIG" && \
45793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45794  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45795  ac_status=$?
45796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45797  test $ac_status = 0; }; then
45798  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45799else
45800  pkg_failed=yes
45801fi
45802    fi
45803else
45804	pkg_failed=untried
45805fi
45806if test -n "$PKG_CONFIG"; then
45807    if test -n "$CUDA_LIBS"; then
45808        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45809    else
45810        if test -n "$PKG_CONFIG" && \
45811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45812  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45813  ac_status=$?
45814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45815  test $ac_status = 0; }; then
45816  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45817else
45818  pkg_failed=yes
45819fi
45820    fi
45821else
45822	pkg_failed=untried
45823fi
45824
45825
45826
45827if test $pkg_failed = yes; then
45828
45829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45830        _pkg_short_errors_supported=yes
45831else
45832        _pkg_short_errors_supported=no
45833fi
45834        if test $_pkg_short_errors_supported = yes; then
45835	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45836        else
45837	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45838        fi
45839	# Put the nasty error message in config.log where it belongs
45840	echo "$CUDA_PKG_ERRORS" >&5
45841
45842	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45843$as_echo "no" >&6; }
45844
45845                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45846$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45847elif test $pkg_failed = untried; then
45848
45849                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45850$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45851else
45852	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45853	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45854        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45855$as_echo "yes" >&6; }
45856	:
45857fi
45858elif test $pkg_failed = untried; then
45859
45860
45861pkg_failed=no
45862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45863$as_echo_n "checking for CUDA... " >&6; }
45864
45865if test -n "$PKG_CONFIG"; then
45866    if test -n "$CUDA_CFLAGS"; then
45867        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45868    else
45869        if test -n "$PKG_CONFIG" && \
45870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45871  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45872  ac_status=$?
45873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45874  test $ac_status = 0; }; then
45875  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
45876else
45877  pkg_failed=yes
45878fi
45879    fi
45880else
45881	pkg_failed=untried
45882fi
45883if test -n "$PKG_CONFIG"; then
45884    if test -n "$CUDA_LIBS"; then
45885        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45886    else
45887        if test -n "$PKG_CONFIG" && \
45888    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
45889  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
45890  ac_status=$?
45891  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45892  test $ac_status = 0; }; then
45893  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
45894else
45895  pkg_failed=yes
45896fi
45897    fi
45898else
45899	pkg_failed=untried
45900fi
45901
45902
45903
45904if test $pkg_failed = yes; then
45905
45906if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45907        _pkg_short_errors_supported=yes
45908else
45909        _pkg_short_errors_supported=no
45910fi
45911        if test $_pkg_short_errors_supported = yes; then
45912	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45913        else
45914	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
45915        fi
45916	# Put the nasty error message in config.log where it belongs
45917	echo "$CUDA_PKG_ERRORS" >&5
45918
45919	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45920$as_echo "no" >&6; }
45921
45922                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45923$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45924elif test $pkg_failed = untried; then
45925
45926                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
45927$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
45928else
45929	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45930	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45932$as_echo "yes" >&6; }
45933	:
45934fi
45935else
45936	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45937	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45938        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45939$as_echo "yes" >&6; }
45940	:
45941fi
45942else
45943	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45944	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45946$as_echo "yes" >&6; }
45947	:
45948fi
45949else
45950	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
45951	CUDA_LIBS=$pkg_cv_CUDA_LIBS
45952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45953$as_echo "yes" >&6; }
45954	:
45955fi
45956elif test $pkg_failed = untried; then
45957
45958
45959pkg_failed=no
45960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
45961$as_echo_n "checking for CUDA... " >&6; }
45962
45963if test -n "$PKG_CONFIG"; then
45964    if test -n "$CUDA_CFLAGS"; then
45965        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
45966    else
45967        if test -n "$PKG_CONFIG" && \
45968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
45969  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
45970  ac_status=$?
45971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45972  test $ac_status = 0; }; then
45973  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
45974else
45975  pkg_failed=yes
45976fi
45977    fi
45978else
45979	pkg_failed=untried
45980fi
45981if test -n "$PKG_CONFIG"; then
45982    if test -n "$CUDA_LIBS"; then
45983        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
45984    else
45985        if test -n "$PKG_CONFIG" && \
45986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
45987  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
45988  ac_status=$?
45989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45990  test $ac_status = 0; }; then
45991  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
45992else
45993  pkg_failed=yes
45994fi
45995    fi
45996else
45997	pkg_failed=untried
45998fi
45999
46000
46001
46002if test $pkg_failed = yes; then
46003
46004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46005        _pkg_short_errors_supported=yes
46006else
46007        _pkg_short_errors_supported=no
46008fi
46009        if test $_pkg_short_errors_supported = yes; then
46010	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
46011        else
46012	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
46013        fi
46014	# Put the nasty error message in config.log where it belongs
46015	echo "$CUDA_PKG_ERRORS" >&5
46016
46017	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46018$as_echo "no" >&6; }
46019
46020
46021pkg_failed=no
46022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46023$as_echo_n "checking for CUDA... " >&6; }
46024
46025if test -n "$PKG_CONFIG"; then
46026    if test -n "$CUDA_CFLAGS"; then
46027        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46028    else
46029        if test -n "$PKG_CONFIG" && \
46030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
46031  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
46032  ac_status=$?
46033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46034  test $ac_status = 0; }; then
46035  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
46036else
46037  pkg_failed=yes
46038fi
46039    fi
46040else
46041	pkg_failed=untried
46042fi
46043if test -n "$PKG_CONFIG"; then
46044    if test -n "$CUDA_LIBS"; then
46045        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46046    else
46047        if test -n "$PKG_CONFIG" && \
46048    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
46049  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
46050  ac_status=$?
46051  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46052  test $ac_status = 0; }; then
46053  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
46054else
46055  pkg_failed=yes
46056fi
46057    fi
46058else
46059	pkg_failed=untried
46060fi
46061
46062
46063
46064if test $pkg_failed = yes; then
46065
46066if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46067        _pkg_short_errors_supported=yes
46068else
46069        _pkg_short_errors_supported=no
46070fi
46071        if test $_pkg_short_errors_supported = yes; then
46072	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
46073        else
46074	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
46075        fi
46076	# Put the nasty error message in config.log where it belongs
46077	echo "$CUDA_PKG_ERRORS" >&5
46078
46079	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46080$as_echo "no" >&6; }
46081
46082
46083pkg_failed=no
46084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46085$as_echo_n "checking for CUDA... " >&6; }
46086
46087if test -n "$PKG_CONFIG"; then
46088    if test -n "$CUDA_CFLAGS"; then
46089        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46090    else
46091        if test -n "$PKG_CONFIG" && \
46092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46093  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46094  ac_status=$?
46095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46096  test $ac_status = 0; }; then
46097  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
46098else
46099  pkg_failed=yes
46100fi
46101    fi
46102else
46103	pkg_failed=untried
46104fi
46105if test -n "$PKG_CONFIG"; then
46106    if test -n "$CUDA_LIBS"; then
46107        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46108    else
46109        if test -n "$PKG_CONFIG" && \
46110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46111  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46112  ac_status=$?
46113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46114  test $ac_status = 0; }; then
46115  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
46116else
46117  pkg_failed=yes
46118fi
46119    fi
46120else
46121	pkg_failed=untried
46122fi
46123
46124
46125
46126if test $pkg_failed = yes; then
46127
46128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46129        _pkg_short_errors_supported=yes
46130else
46131        _pkg_short_errors_supported=no
46132fi
46133        if test $_pkg_short_errors_supported = yes; then
46134	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46135        else
46136	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46137        fi
46138	# Put the nasty error message in config.log where it belongs
46139	echo "$CUDA_PKG_ERRORS" >&5
46140
46141	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46142$as_echo "no" >&6; }
46143
46144
46145pkg_failed=no
46146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46147$as_echo_n "checking for CUDA... " >&6; }
46148
46149if test -n "$PKG_CONFIG"; then
46150    if test -n "$CUDA_CFLAGS"; then
46151        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46152    else
46153        if test -n "$PKG_CONFIG" && \
46154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46155  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46156  ac_status=$?
46157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46158  test $ac_status = 0; }; then
46159  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46160else
46161  pkg_failed=yes
46162fi
46163    fi
46164else
46165	pkg_failed=untried
46166fi
46167if test -n "$PKG_CONFIG"; then
46168    if test -n "$CUDA_LIBS"; then
46169        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46170    else
46171        if test -n "$PKG_CONFIG" && \
46172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46173  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46174  ac_status=$?
46175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46176  test $ac_status = 0; }; then
46177  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46178else
46179  pkg_failed=yes
46180fi
46181    fi
46182else
46183	pkg_failed=untried
46184fi
46185
46186
46187
46188if test $pkg_failed = yes; then
46189
46190if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46191        _pkg_short_errors_supported=yes
46192else
46193        _pkg_short_errors_supported=no
46194fi
46195        if test $_pkg_short_errors_supported = yes; then
46196	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46197        else
46198	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46199        fi
46200	# Put the nasty error message in config.log where it belongs
46201	echo "$CUDA_PKG_ERRORS" >&5
46202
46203	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46204$as_echo "no" >&6; }
46205
46206                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46207$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46208elif test $pkg_failed = untried; then
46209
46210                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46211$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46212else
46213	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46214	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46215        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46216$as_echo "yes" >&6; }
46217	:
46218fi
46219elif test $pkg_failed = untried; then
46220
46221
46222pkg_failed=no
46223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46224$as_echo_n "checking for CUDA... " >&6; }
46225
46226if test -n "$PKG_CONFIG"; then
46227    if test -n "$CUDA_CFLAGS"; then
46228        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46229    else
46230        if test -n "$PKG_CONFIG" && \
46231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46232  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46233  ac_status=$?
46234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46235  test $ac_status = 0; }; then
46236  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46237else
46238  pkg_failed=yes
46239fi
46240    fi
46241else
46242	pkg_failed=untried
46243fi
46244if test -n "$PKG_CONFIG"; then
46245    if test -n "$CUDA_LIBS"; then
46246        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46247    else
46248        if test -n "$PKG_CONFIG" && \
46249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46250  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46251  ac_status=$?
46252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46253  test $ac_status = 0; }; then
46254  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46255else
46256  pkg_failed=yes
46257fi
46258    fi
46259else
46260	pkg_failed=untried
46261fi
46262
46263
46264
46265if test $pkg_failed = yes; then
46266
46267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46268        _pkg_short_errors_supported=yes
46269else
46270        _pkg_short_errors_supported=no
46271fi
46272        if test $_pkg_short_errors_supported = yes; then
46273	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46274        else
46275	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46276        fi
46277	# Put the nasty error message in config.log where it belongs
46278	echo "$CUDA_PKG_ERRORS" >&5
46279
46280	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46281$as_echo "no" >&6; }
46282
46283                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46284$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46285elif test $pkg_failed = untried; then
46286
46287                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46288$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46289else
46290	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46291	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46293$as_echo "yes" >&6; }
46294	:
46295fi
46296else
46297	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46298	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46300$as_echo "yes" >&6; }
46301	:
46302fi
46303elif test $pkg_failed = untried; then
46304
46305
46306pkg_failed=no
46307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46308$as_echo_n "checking for CUDA... " >&6; }
46309
46310if test -n "$PKG_CONFIG"; then
46311    if test -n "$CUDA_CFLAGS"; then
46312        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46313    else
46314        if test -n "$PKG_CONFIG" && \
46315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46316  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46317  ac_status=$?
46318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46319  test $ac_status = 0; }; then
46320  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
46321else
46322  pkg_failed=yes
46323fi
46324    fi
46325else
46326	pkg_failed=untried
46327fi
46328if test -n "$PKG_CONFIG"; then
46329    if test -n "$CUDA_LIBS"; then
46330        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46331    else
46332        if test -n "$PKG_CONFIG" && \
46333    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46334  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46335  ac_status=$?
46336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46337  test $ac_status = 0; }; then
46338  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
46339else
46340  pkg_failed=yes
46341fi
46342    fi
46343else
46344	pkg_failed=untried
46345fi
46346
46347
46348
46349if test $pkg_failed = yes; then
46350
46351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46352        _pkg_short_errors_supported=yes
46353else
46354        _pkg_short_errors_supported=no
46355fi
46356        if test $_pkg_short_errors_supported = yes; then
46357	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46358        else
46359	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46360        fi
46361	# Put the nasty error message in config.log where it belongs
46362	echo "$CUDA_PKG_ERRORS" >&5
46363
46364	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46365$as_echo "no" >&6; }
46366
46367
46368pkg_failed=no
46369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46370$as_echo_n "checking for CUDA... " >&6; }
46371
46372if test -n "$PKG_CONFIG"; then
46373    if test -n "$CUDA_CFLAGS"; then
46374        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46375    else
46376        if test -n "$PKG_CONFIG" && \
46377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46378  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46379  ac_status=$?
46380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46381  test $ac_status = 0; }; then
46382  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46383else
46384  pkg_failed=yes
46385fi
46386    fi
46387else
46388	pkg_failed=untried
46389fi
46390if test -n "$PKG_CONFIG"; then
46391    if test -n "$CUDA_LIBS"; then
46392        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46393    else
46394        if test -n "$PKG_CONFIG" && \
46395    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46396  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46397  ac_status=$?
46398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46399  test $ac_status = 0; }; then
46400  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46401else
46402  pkg_failed=yes
46403fi
46404    fi
46405else
46406	pkg_failed=untried
46407fi
46408
46409
46410
46411if test $pkg_failed = yes; then
46412
46413if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46414        _pkg_short_errors_supported=yes
46415else
46416        _pkg_short_errors_supported=no
46417fi
46418        if test $_pkg_short_errors_supported = yes; then
46419	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46420        else
46421	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46422        fi
46423	# Put the nasty error message in config.log where it belongs
46424	echo "$CUDA_PKG_ERRORS" >&5
46425
46426	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46427$as_echo "no" >&6; }
46428
46429                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46430$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46431elif test $pkg_failed = untried; then
46432
46433                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46434$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46435else
46436	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46437	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46438        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46439$as_echo "yes" >&6; }
46440	:
46441fi
46442elif test $pkg_failed = untried; then
46443
46444
46445pkg_failed=no
46446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46447$as_echo_n "checking for CUDA... " >&6; }
46448
46449if test -n "$PKG_CONFIG"; then
46450    if test -n "$CUDA_CFLAGS"; then
46451        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46452    else
46453        if test -n "$PKG_CONFIG" && \
46454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46455  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46456  ac_status=$?
46457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46458  test $ac_status = 0; }; then
46459  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46460else
46461  pkg_failed=yes
46462fi
46463    fi
46464else
46465	pkg_failed=untried
46466fi
46467if test -n "$PKG_CONFIG"; then
46468    if test -n "$CUDA_LIBS"; then
46469        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46470    else
46471        if test -n "$PKG_CONFIG" && \
46472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46473  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46474  ac_status=$?
46475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46476  test $ac_status = 0; }; then
46477  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46478else
46479  pkg_failed=yes
46480fi
46481    fi
46482else
46483	pkg_failed=untried
46484fi
46485
46486
46487
46488if test $pkg_failed = yes; then
46489
46490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46491        _pkg_short_errors_supported=yes
46492else
46493        _pkg_short_errors_supported=no
46494fi
46495        if test $_pkg_short_errors_supported = yes; then
46496	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46497        else
46498	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46499        fi
46500	# Put the nasty error message in config.log where it belongs
46501	echo "$CUDA_PKG_ERRORS" >&5
46502
46503	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46504$as_echo "no" >&6; }
46505
46506                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46507$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46508elif test $pkg_failed = untried; then
46509
46510                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46511$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46512else
46513	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46514	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46516$as_echo "yes" >&6; }
46517	:
46518fi
46519else
46520	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46521	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46523$as_echo "yes" >&6; }
46524	:
46525fi
46526else
46527	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46528	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46530$as_echo "yes" >&6; }
46531	:
46532fi
46533elif test $pkg_failed = untried; then
46534
46535
46536pkg_failed=no
46537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46538$as_echo_n "checking for CUDA... " >&6; }
46539
46540if test -n "$PKG_CONFIG"; then
46541    if test -n "$CUDA_CFLAGS"; then
46542        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46543    else
46544        if test -n "$PKG_CONFIG" && \
46545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
46546  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
46547  ac_status=$?
46548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46549  test $ac_status = 0; }; then
46550  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
46551else
46552  pkg_failed=yes
46553fi
46554    fi
46555else
46556	pkg_failed=untried
46557fi
46558if test -n "$PKG_CONFIG"; then
46559    if test -n "$CUDA_LIBS"; then
46560        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46561    else
46562        if test -n "$PKG_CONFIG" && \
46563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
46564  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
46565  ac_status=$?
46566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46567  test $ac_status = 0; }; then
46568  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
46569else
46570  pkg_failed=yes
46571fi
46572    fi
46573else
46574	pkg_failed=untried
46575fi
46576
46577
46578
46579if test $pkg_failed = yes; then
46580
46581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46582        _pkg_short_errors_supported=yes
46583else
46584        _pkg_short_errors_supported=no
46585fi
46586        if test $_pkg_short_errors_supported = yes; then
46587	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
46588        else
46589	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
46590        fi
46591	# Put the nasty error message in config.log where it belongs
46592	echo "$CUDA_PKG_ERRORS" >&5
46593
46594	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46595$as_echo "no" >&6; }
46596
46597
46598pkg_failed=no
46599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46600$as_echo_n "checking for CUDA... " >&6; }
46601
46602if test -n "$PKG_CONFIG"; then
46603    if test -n "$CUDA_CFLAGS"; then
46604        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46605    else
46606        if test -n "$PKG_CONFIG" && \
46607    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46608  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46609  ac_status=$?
46610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46611  test $ac_status = 0; }; then
46612  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
46613else
46614  pkg_failed=yes
46615fi
46616    fi
46617else
46618	pkg_failed=untried
46619fi
46620if test -n "$PKG_CONFIG"; then
46621    if test -n "$CUDA_LIBS"; then
46622        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46623    else
46624        if test -n "$PKG_CONFIG" && \
46625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46626  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46627  ac_status=$?
46628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46629  test $ac_status = 0; }; then
46630  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
46631else
46632  pkg_failed=yes
46633fi
46634    fi
46635else
46636	pkg_failed=untried
46637fi
46638
46639
46640
46641if test $pkg_failed = yes; then
46642
46643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46644        _pkg_short_errors_supported=yes
46645else
46646        _pkg_short_errors_supported=no
46647fi
46648        if test $_pkg_short_errors_supported = yes; then
46649	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46650        else
46651	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46652        fi
46653	# Put the nasty error message in config.log where it belongs
46654	echo "$CUDA_PKG_ERRORS" >&5
46655
46656	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46657$as_echo "no" >&6; }
46658
46659
46660pkg_failed=no
46661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46662$as_echo_n "checking for CUDA... " >&6; }
46663
46664if test -n "$PKG_CONFIG"; then
46665    if test -n "$CUDA_CFLAGS"; then
46666        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46667    else
46668        if test -n "$PKG_CONFIG" && \
46669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46670  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46671  ac_status=$?
46672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46673  test $ac_status = 0; }; then
46674  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46675else
46676  pkg_failed=yes
46677fi
46678    fi
46679else
46680	pkg_failed=untried
46681fi
46682if test -n "$PKG_CONFIG"; then
46683    if test -n "$CUDA_LIBS"; then
46684        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46685    else
46686        if test -n "$PKG_CONFIG" && \
46687    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46688  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46689  ac_status=$?
46690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46691  test $ac_status = 0; }; then
46692  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46693else
46694  pkg_failed=yes
46695fi
46696    fi
46697else
46698	pkg_failed=untried
46699fi
46700
46701
46702
46703if test $pkg_failed = yes; then
46704
46705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46706        _pkg_short_errors_supported=yes
46707else
46708        _pkg_short_errors_supported=no
46709fi
46710        if test $_pkg_short_errors_supported = yes; then
46711	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46712        else
46713	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46714        fi
46715	# Put the nasty error message in config.log where it belongs
46716	echo "$CUDA_PKG_ERRORS" >&5
46717
46718	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46719$as_echo "no" >&6; }
46720
46721                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46722$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46723elif test $pkg_failed = untried; then
46724
46725                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46726$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46727else
46728	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46729	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46731$as_echo "yes" >&6; }
46732	:
46733fi
46734elif test $pkg_failed = untried; then
46735
46736
46737pkg_failed=no
46738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46739$as_echo_n "checking for CUDA... " >&6; }
46740
46741if test -n "$PKG_CONFIG"; then
46742    if test -n "$CUDA_CFLAGS"; then
46743        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46744    else
46745        if test -n "$PKG_CONFIG" && \
46746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46747  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46748  ac_status=$?
46749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46750  test $ac_status = 0; }; then
46751  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46752else
46753  pkg_failed=yes
46754fi
46755    fi
46756else
46757	pkg_failed=untried
46758fi
46759if test -n "$PKG_CONFIG"; then
46760    if test -n "$CUDA_LIBS"; then
46761        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46762    else
46763        if test -n "$PKG_CONFIG" && \
46764    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46765  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46766  ac_status=$?
46767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46768  test $ac_status = 0; }; then
46769  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46770else
46771  pkg_failed=yes
46772fi
46773    fi
46774else
46775	pkg_failed=untried
46776fi
46777
46778
46779
46780if test $pkg_failed = yes; then
46781
46782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46783        _pkg_short_errors_supported=yes
46784else
46785        _pkg_short_errors_supported=no
46786fi
46787        if test $_pkg_short_errors_supported = yes; then
46788	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46789        else
46790	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46791        fi
46792	# Put the nasty error message in config.log where it belongs
46793	echo "$CUDA_PKG_ERRORS" >&5
46794
46795	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46796$as_echo "no" >&6; }
46797
46798                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46799$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46800elif test $pkg_failed = untried; then
46801
46802                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46803$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46804else
46805	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46806	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46808$as_echo "yes" >&6; }
46809	:
46810fi
46811else
46812	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46813	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46815$as_echo "yes" >&6; }
46816	:
46817fi
46818elif test $pkg_failed = untried; then
46819
46820
46821pkg_failed=no
46822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46823$as_echo_n "checking for CUDA... " >&6; }
46824
46825if test -n "$PKG_CONFIG"; then
46826    if test -n "$CUDA_CFLAGS"; then
46827        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46828    else
46829        if test -n "$PKG_CONFIG" && \
46830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46831  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46832  ac_status=$?
46833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46834  test $ac_status = 0; }; then
46835  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
46836else
46837  pkg_failed=yes
46838fi
46839    fi
46840else
46841	pkg_failed=untried
46842fi
46843if test -n "$PKG_CONFIG"; then
46844    if test -n "$CUDA_LIBS"; then
46845        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46846    else
46847        if test -n "$PKG_CONFIG" && \
46848    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
46849  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
46850  ac_status=$?
46851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46852  test $ac_status = 0; }; then
46853  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
46854else
46855  pkg_failed=yes
46856fi
46857    fi
46858else
46859	pkg_failed=untried
46860fi
46861
46862
46863
46864if test $pkg_failed = yes; then
46865
46866if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46867        _pkg_short_errors_supported=yes
46868else
46869        _pkg_short_errors_supported=no
46870fi
46871        if test $_pkg_short_errors_supported = yes; then
46872	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46873        else
46874	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
46875        fi
46876	# Put the nasty error message in config.log where it belongs
46877	echo "$CUDA_PKG_ERRORS" >&5
46878
46879	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46880$as_echo "no" >&6; }
46881
46882
46883pkg_failed=no
46884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46885$as_echo_n "checking for CUDA... " >&6; }
46886
46887if test -n "$PKG_CONFIG"; then
46888    if test -n "$CUDA_CFLAGS"; then
46889        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46890    else
46891        if test -n "$PKG_CONFIG" && \
46892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46893  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46894  ac_status=$?
46895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46896  test $ac_status = 0; }; then
46897  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46898else
46899  pkg_failed=yes
46900fi
46901    fi
46902else
46903	pkg_failed=untried
46904fi
46905if test -n "$PKG_CONFIG"; then
46906    if test -n "$CUDA_LIBS"; then
46907        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46908    else
46909        if test -n "$PKG_CONFIG" && \
46910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46911  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46912  ac_status=$?
46913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46914  test $ac_status = 0; }; then
46915  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46916else
46917  pkg_failed=yes
46918fi
46919    fi
46920else
46921	pkg_failed=untried
46922fi
46923
46924
46925
46926if test $pkg_failed = yes; then
46927
46928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46929        _pkg_short_errors_supported=yes
46930else
46931        _pkg_short_errors_supported=no
46932fi
46933        if test $_pkg_short_errors_supported = yes; then
46934	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46935        else
46936	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
46937        fi
46938	# Put the nasty error message in config.log where it belongs
46939	echo "$CUDA_PKG_ERRORS" >&5
46940
46941	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46942$as_echo "no" >&6; }
46943
46944                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46945$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46946elif test $pkg_failed = untried; then
46947
46948                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
46949$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
46950else
46951	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
46952	CUDA_LIBS=$pkg_cv_CUDA_LIBS
46953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46954$as_echo "yes" >&6; }
46955	:
46956fi
46957elif test $pkg_failed = untried; then
46958
46959
46960pkg_failed=no
46961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
46962$as_echo_n "checking for CUDA... " >&6; }
46963
46964if test -n "$PKG_CONFIG"; then
46965    if test -n "$CUDA_CFLAGS"; then
46966        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
46967    else
46968        if test -n "$PKG_CONFIG" && \
46969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46970  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46971  ac_status=$?
46972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46973  test $ac_status = 0; }; then
46974  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
46975else
46976  pkg_failed=yes
46977fi
46978    fi
46979else
46980	pkg_failed=untried
46981fi
46982if test -n "$PKG_CONFIG"; then
46983    if test -n "$CUDA_LIBS"; then
46984        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
46985    else
46986        if test -n "$PKG_CONFIG" && \
46987    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
46988  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
46989  ac_status=$?
46990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46991  test $ac_status = 0; }; then
46992  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
46993else
46994  pkg_failed=yes
46995fi
46996    fi
46997else
46998	pkg_failed=untried
46999fi
47000
47001
47002
47003if test $pkg_failed = yes; then
47004
47005if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47006        _pkg_short_errors_supported=yes
47007else
47008        _pkg_short_errors_supported=no
47009fi
47010        if test $_pkg_short_errors_supported = yes; then
47011	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47012        else
47013	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47014        fi
47015	# Put the nasty error message in config.log where it belongs
47016	echo "$CUDA_PKG_ERRORS" >&5
47017
47018	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47019$as_echo "no" >&6; }
47020
47021                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47022$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47023elif test $pkg_failed = untried; then
47024
47025                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47026$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47027else
47028	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47029	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47031$as_echo "yes" >&6; }
47032	:
47033fi
47034else
47035	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47036	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47037        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47038$as_echo "yes" >&6; }
47039	:
47040fi
47041else
47042	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47043	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47045$as_echo "yes" >&6; }
47046	:
47047fi
47048else
47049	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47050	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47052$as_echo "yes" >&6; }
47053	:
47054fi
47055else
47056	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47057	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47058        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47059$as_echo "yes" >&6; }
47060	:
47061fi
47062elif test $pkg_failed = untried; then
47063
47064
47065pkg_failed=no
47066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47067$as_echo_n "checking for CUDA... " >&6; }
47068
47069if test -n "$PKG_CONFIG"; then
47070    if test -n "$CUDA_CFLAGS"; then
47071        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47072    else
47073        if test -n "$PKG_CONFIG" && \
47074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
47075  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
47076  ac_status=$?
47077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47078  test $ac_status = 0; }; then
47079  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
47080else
47081  pkg_failed=yes
47082fi
47083    fi
47084else
47085	pkg_failed=untried
47086fi
47087if test -n "$PKG_CONFIG"; then
47088    if test -n "$CUDA_LIBS"; then
47089        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47090    else
47091        if test -n "$PKG_CONFIG" && \
47092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
47093  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
47094  ac_status=$?
47095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47096  test $ac_status = 0; }; then
47097  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
47098else
47099  pkg_failed=yes
47100fi
47101    fi
47102else
47103	pkg_failed=untried
47104fi
47105
47106
47107
47108if test $pkg_failed = yes; then
47109
47110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47111        _pkg_short_errors_supported=yes
47112else
47113        _pkg_short_errors_supported=no
47114fi
47115        if test $_pkg_short_errors_supported = yes; then
47116	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
47117        else
47118	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
47119        fi
47120	# Put the nasty error message in config.log where it belongs
47121	echo "$CUDA_PKG_ERRORS" >&5
47122
47123	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47124$as_echo "no" >&6; }
47125
47126
47127pkg_failed=no
47128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47129$as_echo_n "checking for CUDA... " >&6; }
47130
47131if test -n "$PKG_CONFIG"; then
47132    if test -n "$CUDA_CFLAGS"; then
47133        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47134    else
47135        if test -n "$PKG_CONFIG" && \
47136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
47137  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
47138  ac_status=$?
47139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47140  test $ac_status = 0; }; then
47141  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
47142else
47143  pkg_failed=yes
47144fi
47145    fi
47146else
47147	pkg_failed=untried
47148fi
47149if test -n "$PKG_CONFIG"; then
47150    if test -n "$CUDA_LIBS"; then
47151        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47152    else
47153        if test -n "$PKG_CONFIG" && \
47154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
47155  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
47156  ac_status=$?
47157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47158  test $ac_status = 0; }; then
47159  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
47160else
47161  pkg_failed=yes
47162fi
47163    fi
47164else
47165	pkg_failed=untried
47166fi
47167
47168
47169
47170if test $pkg_failed = yes; then
47171
47172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47173        _pkg_short_errors_supported=yes
47174else
47175        _pkg_short_errors_supported=no
47176fi
47177        if test $_pkg_short_errors_supported = yes; then
47178	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
47179        else
47180	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
47181        fi
47182	# Put the nasty error message in config.log where it belongs
47183	echo "$CUDA_PKG_ERRORS" >&5
47184
47185	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47186$as_echo "no" >&6; }
47187
47188
47189pkg_failed=no
47190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47191$as_echo_n "checking for CUDA... " >&6; }
47192
47193if test -n "$PKG_CONFIG"; then
47194    if test -n "$CUDA_CFLAGS"; then
47195        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47196    else
47197        if test -n "$PKG_CONFIG" && \
47198    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
47199  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
47200  ac_status=$?
47201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47202  test $ac_status = 0; }; then
47203  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
47204else
47205  pkg_failed=yes
47206fi
47207    fi
47208else
47209	pkg_failed=untried
47210fi
47211if test -n "$PKG_CONFIG"; then
47212    if test -n "$CUDA_LIBS"; then
47213        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47214    else
47215        if test -n "$PKG_CONFIG" && \
47216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
47217  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
47218  ac_status=$?
47219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47220  test $ac_status = 0; }; then
47221  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
47222else
47223  pkg_failed=yes
47224fi
47225    fi
47226else
47227	pkg_failed=untried
47228fi
47229
47230
47231
47232if test $pkg_failed = yes; then
47233
47234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47235        _pkg_short_errors_supported=yes
47236else
47237        _pkg_short_errors_supported=no
47238fi
47239        if test $_pkg_short_errors_supported = yes; then
47240	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
47241        else
47242	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
47243        fi
47244	# Put the nasty error message in config.log where it belongs
47245	echo "$CUDA_PKG_ERRORS" >&5
47246
47247	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47248$as_echo "no" >&6; }
47249
47250
47251pkg_failed=no
47252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47253$as_echo_n "checking for CUDA... " >&6; }
47254
47255if test -n "$PKG_CONFIG"; then
47256    if test -n "$CUDA_CFLAGS"; then
47257        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47258    else
47259        if test -n "$PKG_CONFIG" && \
47260    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47261  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47262  ac_status=$?
47263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47264  test $ac_status = 0; }; then
47265  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
47266else
47267  pkg_failed=yes
47268fi
47269    fi
47270else
47271	pkg_failed=untried
47272fi
47273if test -n "$PKG_CONFIG"; then
47274    if test -n "$CUDA_LIBS"; then
47275        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47276    else
47277        if test -n "$PKG_CONFIG" && \
47278    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47279  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47280  ac_status=$?
47281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47282  test $ac_status = 0; }; then
47283  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
47284else
47285  pkg_failed=yes
47286fi
47287    fi
47288else
47289	pkg_failed=untried
47290fi
47291
47292
47293
47294if test $pkg_failed = yes; then
47295
47296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47297        _pkg_short_errors_supported=yes
47298else
47299        _pkg_short_errors_supported=no
47300fi
47301        if test $_pkg_short_errors_supported = yes; then
47302	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47303        else
47304	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47305        fi
47306	# Put the nasty error message in config.log where it belongs
47307	echo "$CUDA_PKG_ERRORS" >&5
47308
47309	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47310$as_echo "no" >&6; }
47311
47312
47313pkg_failed=no
47314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47315$as_echo_n "checking for CUDA... " >&6; }
47316
47317if test -n "$PKG_CONFIG"; then
47318    if test -n "$CUDA_CFLAGS"; then
47319        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47320    else
47321        if test -n "$PKG_CONFIG" && \
47322    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47323  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47324  ac_status=$?
47325  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47326  test $ac_status = 0; }; then
47327  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47328else
47329  pkg_failed=yes
47330fi
47331    fi
47332else
47333	pkg_failed=untried
47334fi
47335if test -n "$PKG_CONFIG"; then
47336    if test -n "$CUDA_LIBS"; then
47337        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47338    else
47339        if test -n "$PKG_CONFIG" && \
47340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47341  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47342  ac_status=$?
47343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47344  test $ac_status = 0; }; then
47345  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47346else
47347  pkg_failed=yes
47348fi
47349    fi
47350else
47351	pkg_failed=untried
47352fi
47353
47354
47355
47356if test $pkg_failed = yes; then
47357
47358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47359        _pkg_short_errors_supported=yes
47360else
47361        _pkg_short_errors_supported=no
47362fi
47363        if test $_pkg_short_errors_supported = yes; then
47364	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47365        else
47366	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47367        fi
47368	# Put the nasty error message in config.log where it belongs
47369	echo "$CUDA_PKG_ERRORS" >&5
47370
47371	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47372$as_echo "no" >&6; }
47373
47374                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47375$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47376elif test $pkg_failed = untried; then
47377
47378                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47379$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47380else
47381	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47382	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47383        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47384$as_echo "yes" >&6; }
47385	:
47386fi
47387elif test $pkg_failed = untried; then
47388
47389
47390pkg_failed=no
47391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47392$as_echo_n "checking for CUDA... " >&6; }
47393
47394if test -n "$PKG_CONFIG"; then
47395    if test -n "$CUDA_CFLAGS"; then
47396        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47397    else
47398        if test -n "$PKG_CONFIG" && \
47399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47400  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47401  ac_status=$?
47402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47403  test $ac_status = 0; }; then
47404  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47405else
47406  pkg_failed=yes
47407fi
47408    fi
47409else
47410	pkg_failed=untried
47411fi
47412if test -n "$PKG_CONFIG"; then
47413    if test -n "$CUDA_LIBS"; then
47414        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47415    else
47416        if test -n "$PKG_CONFIG" && \
47417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47418  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47419  ac_status=$?
47420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47421  test $ac_status = 0; }; then
47422  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47423else
47424  pkg_failed=yes
47425fi
47426    fi
47427else
47428	pkg_failed=untried
47429fi
47430
47431
47432
47433if test $pkg_failed = yes; then
47434
47435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47436        _pkg_short_errors_supported=yes
47437else
47438        _pkg_short_errors_supported=no
47439fi
47440        if test $_pkg_short_errors_supported = yes; then
47441	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47442        else
47443	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47444        fi
47445	# Put the nasty error message in config.log where it belongs
47446	echo "$CUDA_PKG_ERRORS" >&5
47447
47448	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47449$as_echo "no" >&6; }
47450
47451                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47452$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47453elif test $pkg_failed = untried; then
47454
47455                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47456$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47457else
47458	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47459	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47461$as_echo "yes" >&6; }
47462	:
47463fi
47464else
47465	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47466	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47467        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47468$as_echo "yes" >&6; }
47469	:
47470fi
47471elif test $pkg_failed = untried; then
47472
47473
47474pkg_failed=no
47475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47476$as_echo_n "checking for CUDA... " >&6; }
47477
47478if test -n "$PKG_CONFIG"; then
47479    if test -n "$CUDA_CFLAGS"; then
47480        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47481    else
47482        if test -n "$PKG_CONFIG" && \
47483    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47484  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47485  ac_status=$?
47486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47487  test $ac_status = 0; }; then
47488  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
47489else
47490  pkg_failed=yes
47491fi
47492    fi
47493else
47494	pkg_failed=untried
47495fi
47496if test -n "$PKG_CONFIG"; then
47497    if test -n "$CUDA_LIBS"; then
47498        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47499    else
47500        if test -n "$PKG_CONFIG" && \
47501    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47502  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47503  ac_status=$?
47504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47505  test $ac_status = 0; }; then
47506  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
47507else
47508  pkg_failed=yes
47509fi
47510    fi
47511else
47512	pkg_failed=untried
47513fi
47514
47515
47516
47517if test $pkg_failed = yes; then
47518
47519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47520        _pkg_short_errors_supported=yes
47521else
47522        _pkg_short_errors_supported=no
47523fi
47524        if test $_pkg_short_errors_supported = yes; then
47525	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47526        else
47527	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47528        fi
47529	# Put the nasty error message in config.log where it belongs
47530	echo "$CUDA_PKG_ERRORS" >&5
47531
47532	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47533$as_echo "no" >&6; }
47534
47535
47536pkg_failed=no
47537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47538$as_echo_n "checking for CUDA... " >&6; }
47539
47540if test -n "$PKG_CONFIG"; then
47541    if test -n "$CUDA_CFLAGS"; then
47542        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47543    else
47544        if test -n "$PKG_CONFIG" && \
47545    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47546  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47547  ac_status=$?
47548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47549  test $ac_status = 0; }; then
47550  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47551else
47552  pkg_failed=yes
47553fi
47554    fi
47555else
47556	pkg_failed=untried
47557fi
47558if test -n "$PKG_CONFIG"; then
47559    if test -n "$CUDA_LIBS"; then
47560        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47561    else
47562        if test -n "$PKG_CONFIG" && \
47563    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47564  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47565  ac_status=$?
47566  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47567  test $ac_status = 0; }; then
47568  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47569else
47570  pkg_failed=yes
47571fi
47572    fi
47573else
47574	pkg_failed=untried
47575fi
47576
47577
47578
47579if test $pkg_failed = yes; then
47580
47581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47582        _pkg_short_errors_supported=yes
47583else
47584        _pkg_short_errors_supported=no
47585fi
47586        if test $_pkg_short_errors_supported = yes; then
47587	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47588        else
47589	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47590        fi
47591	# Put the nasty error message in config.log where it belongs
47592	echo "$CUDA_PKG_ERRORS" >&5
47593
47594	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47595$as_echo "no" >&6; }
47596
47597                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47598$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47599elif test $pkg_failed = untried; then
47600
47601                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47602$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47603else
47604	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47605	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47606        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47607$as_echo "yes" >&6; }
47608	:
47609fi
47610elif test $pkg_failed = untried; then
47611
47612
47613pkg_failed=no
47614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47615$as_echo_n "checking for CUDA... " >&6; }
47616
47617if test -n "$PKG_CONFIG"; then
47618    if test -n "$CUDA_CFLAGS"; then
47619        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47620    else
47621        if test -n "$PKG_CONFIG" && \
47622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47623  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47624  ac_status=$?
47625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47626  test $ac_status = 0; }; then
47627  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47628else
47629  pkg_failed=yes
47630fi
47631    fi
47632else
47633	pkg_failed=untried
47634fi
47635if test -n "$PKG_CONFIG"; then
47636    if test -n "$CUDA_LIBS"; then
47637        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47638    else
47639        if test -n "$PKG_CONFIG" && \
47640    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47641  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47642  ac_status=$?
47643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47644  test $ac_status = 0; }; then
47645  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47646else
47647  pkg_failed=yes
47648fi
47649    fi
47650else
47651	pkg_failed=untried
47652fi
47653
47654
47655
47656if test $pkg_failed = yes; then
47657
47658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47659        _pkg_short_errors_supported=yes
47660else
47661        _pkg_short_errors_supported=no
47662fi
47663        if test $_pkg_short_errors_supported = yes; then
47664	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47665        else
47666	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47667        fi
47668	# Put the nasty error message in config.log where it belongs
47669	echo "$CUDA_PKG_ERRORS" >&5
47670
47671	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47672$as_echo "no" >&6; }
47673
47674                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47675$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47676elif test $pkg_failed = untried; then
47677
47678                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47679$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47680else
47681	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47682	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47683        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47684$as_echo "yes" >&6; }
47685	:
47686fi
47687else
47688	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47689	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47691$as_echo "yes" >&6; }
47692	:
47693fi
47694else
47695	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47696	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47698$as_echo "yes" >&6; }
47699	:
47700fi
47701elif test $pkg_failed = untried; then
47702
47703
47704pkg_failed=no
47705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47706$as_echo_n "checking for CUDA... " >&6; }
47707
47708if test -n "$PKG_CONFIG"; then
47709    if test -n "$CUDA_CFLAGS"; then
47710        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47711    else
47712        if test -n "$PKG_CONFIG" && \
47713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
47714  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
47715  ac_status=$?
47716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47717  test $ac_status = 0; }; then
47718  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
47719else
47720  pkg_failed=yes
47721fi
47722    fi
47723else
47724	pkg_failed=untried
47725fi
47726if test -n "$PKG_CONFIG"; then
47727    if test -n "$CUDA_LIBS"; then
47728        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47729    else
47730        if test -n "$PKG_CONFIG" && \
47731    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
47732  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
47733  ac_status=$?
47734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47735  test $ac_status = 0; }; then
47736  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
47737else
47738  pkg_failed=yes
47739fi
47740    fi
47741else
47742	pkg_failed=untried
47743fi
47744
47745
47746
47747if test $pkg_failed = yes; then
47748
47749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47750        _pkg_short_errors_supported=yes
47751else
47752        _pkg_short_errors_supported=no
47753fi
47754        if test $_pkg_short_errors_supported = yes; then
47755	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
47756        else
47757	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
47758        fi
47759	# Put the nasty error message in config.log where it belongs
47760	echo "$CUDA_PKG_ERRORS" >&5
47761
47762	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47763$as_echo "no" >&6; }
47764
47765
47766pkg_failed=no
47767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47768$as_echo_n "checking for CUDA... " >&6; }
47769
47770if test -n "$PKG_CONFIG"; then
47771    if test -n "$CUDA_CFLAGS"; then
47772        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47773    else
47774        if test -n "$PKG_CONFIG" && \
47775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47776  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47777  ac_status=$?
47778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47779  test $ac_status = 0; }; then
47780  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
47781else
47782  pkg_failed=yes
47783fi
47784    fi
47785else
47786	pkg_failed=untried
47787fi
47788if test -n "$PKG_CONFIG"; then
47789    if test -n "$CUDA_LIBS"; then
47790        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47791    else
47792        if test -n "$PKG_CONFIG" && \
47793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47794  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
47795  ac_status=$?
47796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47797  test $ac_status = 0; }; then
47798  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
47799else
47800  pkg_failed=yes
47801fi
47802    fi
47803else
47804	pkg_failed=untried
47805fi
47806
47807
47808
47809if test $pkg_failed = yes; then
47810
47811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47812        _pkg_short_errors_supported=yes
47813else
47814        _pkg_short_errors_supported=no
47815fi
47816        if test $_pkg_short_errors_supported = yes; then
47817	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47818        else
47819	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
47820        fi
47821	# Put the nasty error message in config.log where it belongs
47822	echo "$CUDA_PKG_ERRORS" >&5
47823
47824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47825$as_echo "no" >&6; }
47826
47827
47828pkg_failed=no
47829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47830$as_echo_n "checking for CUDA... " >&6; }
47831
47832if test -n "$PKG_CONFIG"; then
47833    if test -n "$CUDA_CFLAGS"; then
47834        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47835    else
47836        if test -n "$PKG_CONFIG" && \
47837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47838  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47839  ac_status=$?
47840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47841  test $ac_status = 0; }; then
47842  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47843else
47844  pkg_failed=yes
47845fi
47846    fi
47847else
47848	pkg_failed=untried
47849fi
47850if test -n "$PKG_CONFIG"; then
47851    if test -n "$CUDA_LIBS"; then
47852        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47853    else
47854        if test -n "$PKG_CONFIG" && \
47855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47856  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47857  ac_status=$?
47858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47859  test $ac_status = 0; }; then
47860  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47861else
47862  pkg_failed=yes
47863fi
47864    fi
47865else
47866	pkg_failed=untried
47867fi
47868
47869
47870
47871if test $pkg_failed = yes; then
47872
47873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47874        _pkg_short_errors_supported=yes
47875else
47876        _pkg_short_errors_supported=no
47877fi
47878        if test $_pkg_short_errors_supported = yes; then
47879	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47880        else
47881	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47882        fi
47883	# Put the nasty error message in config.log where it belongs
47884	echo "$CUDA_PKG_ERRORS" >&5
47885
47886	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47887$as_echo "no" >&6; }
47888
47889                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47890$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47891elif test $pkg_failed = untried; then
47892
47893                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47894$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47895else
47896	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47897	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47898        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47899$as_echo "yes" >&6; }
47900	:
47901fi
47902elif test $pkg_failed = untried; then
47903
47904
47905pkg_failed=no
47906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47907$as_echo_n "checking for CUDA... " >&6; }
47908
47909if test -n "$PKG_CONFIG"; then
47910    if test -n "$CUDA_CFLAGS"; then
47911        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47912    else
47913        if test -n "$PKG_CONFIG" && \
47914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47915  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47916  ac_status=$?
47917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47918  test $ac_status = 0; }; then
47919  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
47920else
47921  pkg_failed=yes
47922fi
47923    fi
47924else
47925	pkg_failed=untried
47926fi
47927if test -n "$PKG_CONFIG"; then
47928    if test -n "$CUDA_LIBS"; then
47929        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
47930    else
47931        if test -n "$PKG_CONFIG" && \
47932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
47933  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
47934  ac_status=$?
47935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47936  test $ac_status = 0; }; then
47937  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
47938else
47939  pkg_failed=yes
47940fi
47941    fi
47942else
47943	pkg_failed=untried
47944fi
47945
47946
47947
47948if test $pkg_failed = yes; then
47949
47950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47951        _pkg_short_errors_supported=yes
47952else
47953        _pkg_short_errors_supported=no
47954fi
47955        if test $_pkg_short_errors_supported = yes; then
47956	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47957        else
47958	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
47959        fi
47960	# Put the nasty error message in config.log where it belongs
47961	echo "$CUDA_PKG_ERRORS" >&5
47962
47963	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47964$as_echo "no" >&6; }
47965
47966                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47967$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47968elif test $pkg_failed = untried; then
47969
47970                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
47971$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
47972else
47973	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47974	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47976$as_echo "yes" >&6; }
47977	:
47978fi
47979else
47980	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
47981	CUDA_LIBS=$pkg_cv_CUDA_LIBS
47982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47983$as_echo "yes" >&6; }
47984	:
47985fi
47986elif test $pkg_failed = untried; then
47987
47988
47989pkg_failed=no
47990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
47991$as_echo_n "checking for CUDA... " >&6; }
47992
47993if test -n "$PKG_CONFIG"; then
47994    if test -n "$CUDA_CFLAGS"; then
47995        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
47996    else
47997        if test -n "$PKG_CONFIG" && \
47998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
47999  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48000  ac_status=$?
48001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48002  test $ac_status = 0; }; then
48003  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
48004else
48005  pkg_failed=yes
48006fi
48007    fi
48008else
48009	pkg_failed=untried
48010fi
48011if test -n "$PKG_CONFIG"; then
48012    if test -n "$CUDA_LIBS"; then
48013        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48014    else
48015        if test -n "$PKG_CONFIG" && \
48016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48017  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48018  ac_status=$?
48019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48020  test $ac_status = 0; }; then
48021  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
48022else
48023  pkg_failed=yes
48024fi
48025    fi
48026else
48027	pkg_failed=untried
48028fi
48029
48030
48031
48032if test $pkg_failed = yes; then
48033
48034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48035        _pkg_short_errors_supported=yes
48036else
48037        _pkg_short_errors_supported=no
48038fi
48039        if test $_pkg_short_errors_supported = yes; then
48040	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48041        else
48042	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48043        fi
48044	# Put the nasty error message in config.log where it belongs
48045	echo "$CUDA_PKG_ERRORS" >&5
48046
48047	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48048$as_echo "no" >&6; }
48049
48050
48051pkg_failed=no
48052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48053$as_echo_n "checking for CUDA... " >&6; }
48054
48055if test -n "$PKG_CONFIG"; then
48056    if test -n "$CUDA_CFLAGS"; then
48057        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48058    else
48059        if test -n "$PKG_CONFIG" && \
48060    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48061  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48062  ac_status=$?
48063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48064  test $ac_status = 0; }; then
48065  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48066else
48067  pkg_failed=yes
48068fi
48069    fi
48070else
48071	pkg_failed=untried
48072fi
48073if test -n "$PKG_CONFIG"; then
48074    if test -n "$CUDA_LIBS"; then
48075        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48076    else
48077        if test -n "$PKG_CONFIG" && \
48078    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48079  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48080  ac_status=$?
48081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48082  test $ac_status = 0; }; then
48083  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48084else
48085  pkg_failed=yes
48086fi
48087    fi
48088else
48089	pkg_failed=untried
48090fi
48091
48092
48093
48094if test $pkg_failed = yes; then
48095
48096if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48097        _pkg_short_errors_supported=yes
48098else
48099        _pkg_short_errors_supported=no
48100fi
48101        if test $_pkg_short_errors_supported = yes; then
48102	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48103        else
48104	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48105        fi
48106	# Put the nasty error message in config.log where it belongs
48107	echo "$CUDA_PKG_ERRORS" >&5
48108
48109	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48110$as_echo "no" >&6; }
48111
48112                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48113$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48114elif test $pkg_failed = untried; then
48115
48116                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48117$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48118else
48119	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48120	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48121        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48122$as_echo "yes" >&6; }
48123	:
48124fi
48125elif test $pkg_failed = untried; then
48126
48127
48128pkg_failed=no
48129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48130$as_echo_n "checking for CUDA... " >&6; }
48131
48132if test -n "$PKG_CONFIG"; then
48133    if test -n "$CUDA_CFLAGS"; then
48134        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48135    else
48136        if test -n "$PKG_CONFIG" && \
48137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48138  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48139  ac_status=$?
48140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48141  test $ac_status = 0; }; then
48142  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48143else
48144  pkg_failed=yes
48145fi
48146    fi
48147else
48148	pkg_failed=untried
48149fi
48150if test -n "$PKG_CONFIG"; then
48151    if test -n "$CUDA_LIBS"; then
48152        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48153    else
48154        if test -n "$PKG_CONFIG" && \
48155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48156  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48157  ac_status=$?
48158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48159  test $ac_status = 0; }; then
48160  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48161else
48162  pkg_failed=yes
48163fi
48164    fi
48165else
48166	pkg_failed=untried
48167fi
48168
48169
48170
48171if test $pkg_failed = yes; then
48172
48173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48174        _pkg_short_errors_supported=yes
48175else
48176        _pkg_short_errors_supported=no
48177fi
48178        if test $_pkg_short_errors_supported = yes; then
48179	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48180        else
48181	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48182        fi
48183	# Put the nasty error message in config.log where it belongs
48184	echo "$CUDA_PKG_ERRORS" >&5
48185
48186	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48187$as_echo "no" >&6; }
48188
48189                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48190$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48191elif test $pkg_failed = untried; then
48192
48193                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48194$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48195else
48196	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48197	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48199$as_echo "yes" >&6; }
48200	:
48201fi
48202else
48203	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48204	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48205        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48206$as_echo "yes" >&6; }
48207	:
48208fi
48209else
48210	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48211	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48212        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48213$as_echo "yes" >&6; }
48214	:
48215fi
48216else
48217	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48218	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48220$as_echo "yes" >&6; }
48221	:
48222fi
48223elif test $pkg_failed = untried; then
48224
48225
48226pkg_failed=no
48227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48228$as_echo_n "checking for CUDA... " >&6; }
48229
48230if test -n "$PKG_CONFIG"; then
48231    if test -n "$CUDA_CFLAGS"; then
48232        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48233    else
48234        if test -n "$PKG_CONFIG" && \
48235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
48236  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
48237  ac_status=$?
48238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48239  test $ac_status = 0; }; then
48240  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
48241else
48242  pkg_failed=yes
48243fi
48244    fi
48245else
48246	pkg_failed=untried
48247fi
48248if test -n "$PKG_CONFIG"; then
48249    if test -n "$CUDA_LIBS"; then
48250        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48251    else
48252        if test -n "$PKG_CONFIG" && \
48253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
48254  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
48255  ac_status=$?
48256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48257  test $ac_status = 0; }; then
48258  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
48259else
48260  pkg_failed=yes
48261fi
48262    fi
48263else
48264	pkg_failed=untried
48265fi
48266
48267
48268
48269if test $pkg_failed = yes; then
48270
48271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48272        _pkg_short_errors_supported=yes
48273else
48274        _pkg_short_errors_supported=no
48275fi
48276        if test $_pkg_short_errors_supported = yes; then
48277	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
48278        else
48279	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
48280        fi
48281	# Put the nasty error message in config.log where it belongs
48282	echo "$CUDA_PKG_ERRORS" >&5
48283
48284	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48285$as_echo "no" >&6; }
48286
48287
48288pkg_failed=no
48289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48290$as_echo_n "checking for CUDA... " >&6; }
48291
48292if test -n "$PKG_CONFIG"; then
48293    if test -n "$CUDA_CFLAGS"; then
48294        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48295    else
48296        if test -n "$PKG_CONFIG" && \
48297    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
48298  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
48299  ac_status=$?
48300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48301  test $ac_status = 0; }; then
48302  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
48303else
48304  pkg_failed=yes
48305fi
48306    fi
48307else
48308	pkg_failed=untried
48309fi
48310if test -n "$PKG_CONFIG"; then
48311    if test -n "$CUDA_LIBS"; then
48312        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48313    else
48314        if test -n "$PKG_CONFIG" && \
48315    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
48316  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
48317  ac_status=$?
48318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48319  test $ac_status = 0; }; then
48320  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
48321else
48322  pkg_failed=yes
48323fi
48324    fi
48325else
48326	pkg_failed=untried
48327fi
48328
48329
48330
48331if test $pkg_failed = yes; then
48332
48333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48334        _pkg_short_errors_supported=yes
48335else
48336        _pkg_short_errors_supported=no
48337fi
48338        if test $_pkg_short_errors_supported = yes; then
48339	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
48340        else
48341	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
48342        fi
48343	# Put the nasty error message in config.log where it belongs
48344	echo "$CUDA_PKG_ERRORS" >&5
48345
48346	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48347$as_echo "no" >&6; }
48348
48349
48350pkg_failed=no
48351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48352$as_echo_n "checking for CUDA... " >&6; }
48353
48354if test -n "$PKG_CONFIG"; then
48355    if test -n "$CUDA_CFLAGS"; then
48356        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48357    else
48358        if test -n "$PKG_CONFIG" && \
48359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48360  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48361  ac_status=$?
48362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48363  test $ac_status = 0; }; then
48364  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
48365else
48366  pkg_failed=yes
48367fi
48368    fi
48369else
48370	pkg_failed=untried
48371fi
48372if test -n "$PKG_CONFIG"; then
48373    if test -n "$CUDA_LIBS"; then
48374        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48375    else
48376        if test -n "$PKG_CONFIG" && \
48377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48378  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48379  ac_status=$?
48380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48381  test $ac_status = 0; }; then
48382  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
48383else
48384  pkg_failed=yes
48385fi
48386    fi
48387else
48388	pkg_failed=untried
48389fi
48390
48391
48392
48393if test $pkg_failed = yes; then
48394
48395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48396        _pkg_short_errors_supported=yes
48397else
48398        _pkg_short_errors_supported=no
48399fi
48400        if test $_pkg_short_errors_supported = yes; then
48401	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48402        else
48403	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48404        fi
48405	# Put the nasty error message in config.log where it belongs
48406	echo "$CUDA_PKG_ERRORS" >&5
48407
48408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48409$as_echo "no" >&6; }
48410
48411
48412pkg_failed=no
48413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48414$as_echo_n "checking for CUDA... " >&6; }
48415
48416if test -n "$PKG_CONFIG"; then
48417    if test -n "$CUDA_CFLAGS"; then
48418        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48419    else
48420        if test -n "$PKG_CONFIG" && \
48421    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48422  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48423  ac_status=$?
48424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48425  test $ac_status = 0; }; then
48426  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48427else
48428  pkg_failed=yes
48429fi
48430    fi
48431else
48432	pkg_failed=untried
48433fi
48434if test -n "$PKG_CONFIG"; then
48435    if test -n "$CUDA_LIBS"; then
48436        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48437    else
48438        if test -n "$PKG_CONFIG" && \
48439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48440  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48441  ac_status=$?
48442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48443  test $ac_status = 0; }; then
48444  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48445else
48446  pkg_failed=yes
48447fi
48448    fi
48449else
48450	pkg_failed=untried
48451fi
48452
48453
48454
48455if test $pkg_failed = yes; then
48456
48457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48458        _pkg_short_errors_supported=yes
48459else
48460        _pkg_short_errors_supported=no
48461fi
48462        if test $_pkg_short_errors_supported = yes; then
48463	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48464        else
48465	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48466        fi
48467	# Put the nasty error message in config.log where it belongs
48468	echo "$CUDA_PKG_ERRORS" >&5
48469
48470	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48471$as_echo "no" >&6; }
48472
48473                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48474$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48475elif test $pkg_failed = untried; then
48476
48477                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48478$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48479else
48480	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48481	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48482        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48483$as_echo "yes" >&6; }
48484	:
48485fi
48486elif test $pkg_failed = untried; then
48487
48488
48489pkg_failed=no
48490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48491$as_echo_n "checking for CUDA... " >&6; }
48492
48493if test -n "$PKG_CONFIG"; then
48494    if test -n "$CUDA_CFLAGS"; then
48495        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48496    else
48497        if test -n "$PKG_CONFIG" && \
48498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48499  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48500  ac_status=$?
48501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48502  test $ac_status = 0; }; then
48503  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48504else
48505  pkg_failed=yes
48506fi
48507    fi
48508else
48509	pkg_failed=untried
48510fi
48511if test -n "$PKG_CONFIG"; then
48512    if test -n "$CUDA_LIBS"; then
48513        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48514    else
48515        if test -n "$PKG_CONFIG" && \
48516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48517  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48518  ac_status=$?
48519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48520  test $ac_status = 0; }; then
48521  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48522else
48523  pkg_failed=yes
48524fi
48525    fi
48526else
48527	pkg_failed=untried
48528fi
48529
48530
48531
48532if test $pkg_failed = yes; then
48533
48534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48535        _pkg_short_errors_supported=yes
48536else
48537        _pkg_short_errors_supported=no
48538fi
48539        if test $_pkg_short_errors_supported = yes; then
48540	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48541        else
48542	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48543        fi
48544	# Put the nasty error message in config.log where it belongs
48545	echo "$CUDA_PKG_ERRORS" >&5
48546
48547	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48548$as_echo "no" >&6; }
48549
48550                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48551$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48552elif test $pkg_failed = untried; then
48553
48554                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48555$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48556else
48557	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48558	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48559        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48560$as_echo "yes" >&6; }
48561	:
48562fi
48563else
48564	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48565	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48567$as_echo "yes" >&6; }
48568	:
48569fi
48570elif test $pkg_failed = untried; then
48571
48572
48573pkg_failed=no
48574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48575$as_echo_n "checking for CUDA... " >&6; }
48576
48577if test -n "$PKG_CONFIG"; then
48578    if test -n "$CUDA_CFLAGS"; then
48579        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48580    else
48581        if test -n "$PKG_CONFIG" && \
48582    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48583  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48584  ac_status=$?
48585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48586  test $ac_status = 0; }; then
48587  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
48588else
48589  pkg_failed=yes
48590fi
48591    fi
48592else
48593	pkg_failed=untried
48594fi
48595if test -n "$PKG_CONFIG"; then
48596    if test -n "$CUDA_LIBS"; then
48597        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48598    else
48599        if test -n "$PKG_CONFIG" && \
48600    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48601  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48602  ac_status=$?
48603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48604  test $ac_status = 0; }; then
48605  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
48606else
48607  pkg_failed=yes
48608fi
48609    fi
48610else
48611	pkg_failed=untried
48612fi
48613
48614
48615
48616if test $pkg_failed = yes; then
48617
48618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48619        _pkg_short_errors_supported=yes
48620else
48621        _pkg_short_errors_supported=no
48622fi
48623        if test $_pkg_short_errors_supported = yes; then
48624	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48625        else
48626	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48627        fi
48628	# Put the nasty error message in config.log where it belongs
48629	echo "$CUDA_PKG_ERRORS" >&5
48630
48631	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48632$as_echo "no" >&6; }
48633
48634
48635pkg_failed=no
48636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48637$as_echo_n "checking for CUDA... " >&6; }
48638
48639if test -n "$PKG_CONFIG"; then
48640    if test -n "$CUDA_CFLAGS"; then
48641        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48642    else
48643        if test -n "$PKG_CONFIG" && \
48644    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48645  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48646  ac_status=$?
48647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48648  test $ac_status = 0; }; then
48649  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48650else
48651  pkg_failed=yes
48652fi
48653    fi
48654else
48655	pkg_failed=untried
48656fi
48657if test -n "$PKG_CONFIG"; then
48658    if test -n "$CUDA_LIBS"; then
48659        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48660    else
48661        if test -n "$PKG_CONFIG" && \
48662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48663  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48664  ac_status=$?
48665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48666  test $ac_status = 0; }; then
48667  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48668else
48669  pkg_failed=yes
48670fi
48671    fi
48672else
48673	pkg_failed=untried
48674fi
48675
48676
48677
48678if test $pkg_failed = yes; then
48679
48680if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48681        _pkg_short_errors_supported=yes
48682else
48683        _pkg_short_errors_supported=no
48684fi
48685        if test $_pkg_short_errors_supported = yes; then
48686	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48687        else
48688	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48689        fi
48690	# Put the nasty error message in config.log where it belongs
48691	echo "$CUDA_PKG_ERRORS" >&5
48692
48693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48694$as_echo "no" >&6; }
48695
48696                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48697$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48698elif test $pkg_failed = untried; then
48699
48700                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48701$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48702else
48703	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48704	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48706$as_echo "yes" >&6; }
48707	:
48708fi
48709elif test $pkg_failed = untried; then
48710
48711
48712pkg_failed=no
48713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48714$as_echo_n "checking for CUDA... " >&6; }
48715
48716if test -n "$PKG_CONFIG"; then
48717    if test -n "$CUDA_CFLAGS"; then
48718        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48719    else
48720        if test -n "$PKG_CONFIG" && \
48721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48722  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48723  ac_status=$?
48724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48725  test $ac_status = 0; }; then
48726  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48727else
48728  pkg_failed=yes
48729fi
48730    fi
48731else
48732	pkg_failed=untried
48733fi
48734if test -n "$PKG_CONFIG"; then
48735    if test -n "$CUDA_LIBS"; then
48736        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48737    else
48738        if test -n "$PKG_CONFIG" && \
48739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48740  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48741  ac_status=$?
48742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48743  test $ac_status = 0; }; then
48744  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48745else
48746  pkg_failed=yes
48747fi
48748    fi
48749else
48750	pkg_failed=untried
48751fi
48752
48753
48754
48755if test $pkg_failed = yes; then
48756
48757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48758        _pkg_short_errors_supported=yes
48759else
48760        _pkg_short_errors_supported=no
48761fi
48762        if test $_pkg_short_errors_supported = yes; then
48763	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48764        else
48765	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48766        fi
48767	# Put the nasty error message in config.log where it belongs
48768	echo "$CUDA_PKG_ERRORS" >&5
48769
48770	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48771$as_echo "no" >&6; }
48772
48773                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48774$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48775elif test $pkg_failed = untried; then
48776
48777                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48778$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48779else
48780	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48781	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48782        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48783$as_echo "yes" >&6; }
48784	:
48785fi
48786else
48787	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48788	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48789        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48790$as_echo "yes" >&6; }
48791	:
48792fi
48793else
48794	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48795	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48796        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48797$as_echo "yes" >&6; }
48798	:
48799fi
48800elif test $pkg_failed = untried; then
48801
48802
48803pkg_failed=no
48804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48805$as_echo_n "checking for CUDA... " >&6; }
48806
48807if test -n "$PKG_CONFIG"; then
48808    if test -n "$CUDA_CFLAGS"; then
48809        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48810    else
48811        if test -n "$PKG_CONFIG" && \
48812    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
48813  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
48814  ac_status=$?
48815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48816  test $ac_status = 0; }; then
48817  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
48818else
48819  pkg_failed=yes
48820fi
48821    fi
48822else
48823	pkg_failed=untried
48824fi
48825if test -n "$PKG_CONFIG"; then
48826    if test -n "$CUDA_LIBS"; then
48827        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48828    else
48829        if test -n "$PKG_CONFIG" && \
48830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
48831  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
48832  ac_status=$?
48833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48834  test $ac_status = 0; }; then
48835  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
48836else
48837  pkg_failed=yes
48838fi
48839    fi
48840else
48841	pkg_failed=untried
48842fi
48843
48844
48845
48846if test $pkg_failed = yes; then
48847
48848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48849        _pkg_short_errors_supported=yes
48850else
48851        _pkg_short_errors_supported=no
48852fi
48853        if test $_pkg_short_errors_supported = yes; then
48854	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
48855        else
48856	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
48857        fi
48858	# Put the nasty error message in config.log where it belongs
48859	echo "$CUDA_PKG_ERRORS" >&5
48860
48861	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48862$as_echo "no" >&6; }
48863
48864
48865pkg_failed=no
48866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48867$as_echo_n "checking for CUDA... " >&6; }
48868
48869if test -n "$PKG_CONFIG"; then
48870    if test -n "$CUDA_CFLAGS"; then
48871        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48872    else
48873        if test -n "$PKG_CONFIG" && \
48874    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48875  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48876  ac_status=$?
48877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48878  test $ac_status = 0; }; then
48879  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
48880else
48881  pkg_failed=yes
48882fi
48883    fi
48884else
48885	pkg_failed=untried
48886fi
48887if test -n "$PKG_CONFIG"; then
48888    if test -n "$CUDA_LIBS"; then
48889        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48890    else
48891        if test -n "$PKG_CONFIG" && \
48892    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
48893  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
48894  ac_status=$?
48895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48896  test $ac_status = 0; }; then
48897  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
48898else
48899  pkg_failed=yes
48900fi
48901    fi
48902else
48903	pkg_failed=untried
48904fi
48905
48906
48907
48908if test $pkg_failed = yes; then
48909
48910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48911        _pkg_short_errors_supported=yes
48912else
48913        _pkg_short_errors_supported=no
48914fi
48915        if test $_pkg_short_errors_supported = yes; then
48916	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48917        else
48918	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
48919        fi
48920	# Put the nasty error message in config.log where it belongs
48921	echo "$CUDA_PKG_ERRORS" >&5
48922
48923	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48924$as_echo "no" >&6; }
48925
48926
48927pkg_failed=no
48928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
48929$as_echo_n "checking for CUDA... " >&6; }
48930
48931if test -n "$PKG_CONFIG"; then
48932    if test -n "$CUDA_CFLAGS"; then
48933        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
48934    else
48935        if test -n "$PKG_CONFIG" && \
48936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48937  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48938  ac_status=$?
48939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48940  test $ac_status = 0; }; then
48941  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
48942else
48943  pkg_failed=yes
48944fi
48945    fi
48946else
48947	pkg_failed=untried
48948fi
48949if test -n "$PKG_CONFIG"; then
48950    if test -n "$CUDA_LIBS"; then
48951        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
48952    else
48953        if test -n "$PKG_CONFIG" && \
48954    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
48955  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
48956  ac_status=$?
48957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48958  test $ac_status = 0; }; then
48959  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
48960else
48961  pkg_failed=yes
48962fi
48963    fi
48964else
48965	pkg_failed=untried
48966fi
48967
48968
48969
48970if test $pkg_failed = yes; then
48971
48972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48973        _pkg_short_errors_supported=yes
48974else
48975        _pkg_short_errors_supported=no
48976fi
48977        if test $_pkg_short_errors_supported = yes; then
48978	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48979        else
48980	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
48981        fi
48982	# Put the nasty error message in config.log where it belongs
48983	echo "$CUDA_PKG_ERRORS" >&5
48984
48985	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48986$as_echo "no" >&6; }
48987
48988                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48989$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48990elif test $pkg_failed = untried; then
48991
48992                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
48993$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
48994else
48995	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
48996	CUDA_LIBS=$pkg_cv_CUDA_LIBS
48997        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48998$as_echo "yes" >&6; }
48999	:
49000fi
49001elif test $pkg_failed = untried; then
49002
49003
49004pkg_failed=no
49005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49006$as_echo_n "checking for CUDA... " >&6; }
49007
49008if test -n "$PKG_CONFIG"; then
49009    if test -n "$CUDA_CFLAGS"; then
49010        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49011    else
49012        if test -n "$PKG_CONFIG" && \
49013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49014  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49015  ac_status=$?
49016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49017  test $ac_status = 0; }; then
49018  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49019else
49020  pkg_failed=yes
49021fi
49022    fi
49023else
49024	pkg_failed=untried
49025fi
49026if test -n "$PKG_CONFIG"; then
49027    if test -n "$CUDA_LIBS"; then
49028        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49029    else
49030        if test -n "$PKG_CONFIG" && \
49031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49032  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49033  ac_status=$?
49034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49035  test $ac_status = 0; }; then
49036  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49037else
49038  pkg_failed=yes
49039fi
49040    fi
49041else
49042	pkg_failed=untried
49043fi
49044
49045
49046
49047if test $pkg_failed = yes; then
49048
49049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49050        _pkg_short_errors_supported=yes
49051else
49052        _pkg_short_errors_supported=no
49053fi
49054        if test $_pkg_short_errors_supported = yes; then
49055	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49056        else
49057	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49058        fi
49059	# Put the nasty error message in config.log where it belongs
49060	echo "$CUDA_PKG_ERRORS" >&5
49061
49062	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49063$as_echo "no" >&6; }
49064
49065                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49066$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49067elif test $pkg_failed = untried; then
49068
49069                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49070$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49071else
49072	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49073	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49075$as_echo "yes" >&6; }
49076	:
49077fi
49078else
49079	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49080	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49081        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49082$as_echo "yes" >&6; }
49083	:
49084fi
49085elif test $pkg_failed = untried; then
49086
49087
49088pkg_failed=no
49089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49090$as_echo_n "checking for CUDA... " >&6; }
49091
49092if test -n "$PKG_CONFIG"; then
49093    if test -n "$CUDA_CFLAGS"; then
49094        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49095    else
49096        if test -n "$PKG_CONFIG" && \
49097    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49098  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49099  ac_status=$?
49100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49101  test $ac_status = 0; }; then
49102  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
49103else
49104  pkg_failed=yes
49105fi
49106    fi
49107else
49108	pkg_failed=untried
49109fi
49110if test -n "$PKG_CONFIG"; then
49111    if test -n "$CUDA_LIBS"; then
49112        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49113    else
49114        if test -n "$PKG_CONFIG" && \
49115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49116  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49117  ac_status=$?
49118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49119  test $ac_status = 0; }; then
49120  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
49121else
49122  pkg_failed=yes
49123fi
49124    fi
49125else
49126	pkg_failed=untried
49127fi
49128
49129
49130
49131if test $pkg_failed = yes; then
49132
49133if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49134        _pkg_short_errors_supported=yes
49135else
49136        _pkg_short_errors_supported=no
49137fi
49138        if test $_pkg_short_errors_supported = yes; then
49139	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49140        else
49141	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49142        fi
49143	# Put the nasty error message in config.log where it belongs
49144	echo "$CUDA_PKG_ERRORS" >&5
49145
49146	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49147$as_echo "no" >&6; }
49148
49149
49150pkg_failed=no
49151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49152$as_echo_n "checking for CUDA... " >&6; }
49153
49154if test -n "$PKG_CONFIG"; then
49155    if test -n "$CUDA_CFLAGS"; then
49156        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49157    else
49158        if test -n "$PKG_CONFIG" && \
49159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49160  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49161  ac_status=$?
49162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49163  test $ac_status = 0; }; then
49164  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49165else
49166  pkg_failed=yes
49167fi
49168    fi
49169else
49170	pkg_failed=untried
49171fi
49172if test -n "$PKG_CONFIG"; then
49173    if test -n "$CUDA_LIBS"; then
49174        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49175    else
49176        if test -n "$PKG_CONFIG" && \
49177    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49178  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49179  ac_status=$?
49180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49181  test $ac_status = 0; }; then
49182  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49183else
49184  pkg_failed=yes
49185fi
49186    fi
49187else
49188	pkg_failed=untried
49189fi
49190
49191
49192
49193if test $pkg_failed = yes; then
49194
49195if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49196        _pkg_short_errors_supported=yes
49197else
49198        _pkg_short_errors_supported=no
49199fi
49200        if test $_pkg_short_errors_supported = yes; then
49201	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49202        else
49203	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49204        fi
49205	# Put the nasty error message in config.log where it belongs
49206	echo "$CUDA_PKG_ERRORS" >&5
49207
49208	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49209$as_echo "no" >&6; }
49210
49211                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49212$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49213elif test $pkg_failed = untried; then
49214
49215                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49216$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49217else
49218	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49219	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49220        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49221$as_echo "yes" >&6; }
49222	:
49223fi
49224elif test $pkg_failed = untried; then
49225
49226
49227pkg_failed=no
49228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49229$as_echo_n "checking for CUDA... " >&6; }
49230
49231if test -n "$PKG_CONFIG"; then
49232    if test -n "$CUDA_CFLAGS"; then
49233        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49234    else
49235        if test -n "$PKG_CONFIG" && \
49236    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49237  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49238  ac_status=$?
49239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49240  test $ac_status = 0; }; then
49241  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49242else
49243  pkg_failed=yes
49244fi
49245    fi
49246else
49247	pkg_failed=untried
49248fi
49249if test -n "$PKG_CONFIG"; then
49250    if test -n "$CUDA_LIBS"; then
49251        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49252    else
49253        if test -n "$PKG_CONFIG" && \
49254    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49255  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49256  ac_status=$?
49257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49258  test $ac_status = 0; }; then
49259  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49260else
49261  pkg_failed=yes
49262fi
49263    fi
49264else
49265	pkg_failed=untried
49266fi
49267
49268
49269
49270if test $pkg_failed = yes; then
49271
49272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49273        _pkg_short_errors_supported=yes
49274else
49275        _pkg_short_errors_supported=no
49276fi
49277        if test $_pkg_short_errors_supported = yes; then
49278	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49279        else
49280	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49281        fi
49282	# Put the nasty error message in config.log where it belongs
49283	echo "$CUDA_PKG_ERRORS" >&5
49284
49285	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49286$as_echo "no" >&6; }
49287
49288                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49289$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49290elif test $pkg_failed = untried; then
49291
49292                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49293$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49294else
49295	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49296	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49297        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49298$as_echo "yes" >&6; }
49299	:
49300fi
49301else
49302	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49303	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49305$as_echo "yes" >&6; }
49306	:
49307fi
49308else
49309	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49310	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49312$as_echo "yes" >&6; }
49313	:
49314fi
49315else
49316	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49317	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49319$as_echo "yes" >&6; }
49320	:
49321fi
49322else
49323	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49324	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49325        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49326$as_echo "yes" >&6; }
49327	:
49328fi
49329else
49330	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49331	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49333$as_echo "yes" >&6; }
49334	:
49335fi
49336elif test $pkg_failed = untried; then
49337
49338
49339pkg_failed=no
49340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49341$as_echo_n "checking for CUDA... " >&6; }
49342
49343if test -n "$PKG_CONFIG"; then
49344    if test -n "$CUDA_CFLAGS"; then
49345        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49346    else
49347        if test -n "$PKG_CONFIG" && \
49348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
49349  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
49350  ac_status=$?
49351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49352  test $ac_status = 0; }; then
49353  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
49354else
49355  pkg_failed=yes
49356fi
49357    fi
49358else
49359	pkg_failed=untried
49360fi
49361if test -n "$PKG_CONFIG"; then
49362    if test -n "$CUDA_LIBS"; then
49363        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49364    else
49365        if test -n "$PKG_CONFIG" && \
49366    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
49367  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
49368  ac_status=$?
49369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49370  test $ac_status = 0; }; then
49371  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
49372else
49373  pkg_failed=yes
49374fi
49375    fi
49376else
49377	pkg_failed=untried
49378fi
49379
49380
49381
49382if test $pkg_failed = yes; then
49383
49384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49385        _pkg_short_errors_supported=yes
49386else
49387        _pkg_short_errors_supported=no
49388fi
49389        if test $_pkg_short_errors_supported = yes; then
49390	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
49391        else
49392	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
49393        fi
49394	# Put the nasty error message in config.log where it belongs
49395	echo "$CUDA_PKG_ERRORS" >&5
49396
49397	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49398$as_echo "no" >&6; }
49399
49400
49401pkg_failed=no
49402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49403$as_echo_n "checking for CUDA... " >&6; }
49404
49405if test -n "$PKG_CONFIG"; then
49406    if test -n "$CUDA_CFLAGS"; then
49407        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49408    else
49409        if test -n "$PKG_CONFIG" && \
49410    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
49411  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
49412  ac_status=$?
49413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49414  test $ac_status = 0; }; then
49415  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
49416else
49417  pkg_failed=yes
49418fi
49419    fi
49420else
49421	pkg_failed=untried
49422fi
49423if test -n "$PKG_CONFIG"; then
49424    if test -n "$CUDA_LIBS"; then
49425        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49426    else
49427        if test -n "$PKG_CONFIG" && \
49428    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
49429  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
49430  ac_status=$?
49431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49432  test $ac_status = 0; }; then
49433  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
49434else
49435  pkg_failed=yes
49436fi
49437    fi
49438else
49439	pkg_failed=untried
49440fi
49441
49442
49443
49444if test $pkg_failed = yes; then
49445
49446if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49447        _pkg_short_errors_supported=yes
49448else
49449        _pkg_short_errors_supported=no
49450fi
49451        if test $_pkg_short_errors_supported = yes; then
49452	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
49453        else
49454	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
49455        fi
49456	# Put the nasty error message in config.log where it belongs
49457	echo "$CUDA_PKG_ERRORS" >&5
49458
49459	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49460$as_echo "no" >&6; }
49461
49462
49463pkg_failed=no
49464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49465$as_echo_n "checking for CUDA... " >&6; }
49466
49467if test -n "$PKG_CONFIG"; then
49468    if test -n "$CUDA_CFLAGS"; then
49469        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49470    else
49471        if test -n "$PKG_CONFIG" && \
49472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
49473  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
49474  ac_status=$?
49475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49476  test $ac_status = 0; }; then
49477  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
49478else
49479  pkg_failed=yes
49480fi
49481    fi
49482else
49483	pkg_failed=untried
49484fi
49485if test -n "$PKG_CONFIG"; then
49486    if test -n "$CUDA_LIBS"; then
49487        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49488    else
49489        if test -n "$PKG_CONFIG" && \
49490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
49491  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
49492  ac_status=$?
49493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49494  test $ac_status = 0; }; then
49495  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
49496else
49497  pkg_failed=yes
49498fi
49499    fi
49500else
49501	pkg_failed=untried
49502fi
49503
49504
49505
49506if test $pkg_failed = yes; then
49507
49508if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49509        _pkg_short_errors_supported=yes
49510else
49511        _pkg_short_errors_supported=no
49512fi
49513        if test $_pkg_short_errors_supported = yes; then
49514	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
49515        else
49516	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
49517        fi
49518	# Put the nasty error message in config.log where it belongs
49519	echo "$CUDA_PKG_ERRORS" >&5
49520
49521	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49522$as_echo "no" >&6; }
49523
49524
49525pkg_failed=no
49526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49527$as_echo_n "checking for CUDA... " >&6; }
49528
49529if test -n "$PKG_CONFIG"; then
49530    if test -n "$CUDA_CFLAGS"; then
49531        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49532    else
49533        if test -n "$PKG_CONFIG" && \
49534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
49535  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
49536  ac_status=$?
49537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49538  test $ac_status = 0; }; then
49539  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
49540else
49541  pkg_failed=yes
49542fi
49543    fi
49544else
49545	pkg_failed=untried
49546fi
49547if test -n "$PKG_CONFIG"; then
49548    if test -n "$CUDA_LIBS"; then
49549        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49550    else
49551        if test -n "$PKG_CONFIG" && \
49552    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
49553  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
49554  ac_status=$?
49555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49556  test $ac_status = 0; }; then
49557  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
49558else
49559  pkg_failed=yes
49560fi
49561    fi
49562else
49563	pkg_failed=untried
49564fi
49565
49566
49567
49568if test $pkg_failed = yes; then
49569
49570if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49571        _pkg_short_errors_supported=yes
49572else
49573        _pkg_short_errors_supported=no
49574fi
49575        if test $_pkg_short_errors_supported = yes; then
49576	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
49577        else
49578	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
49579        fi
49580	# Put the nasty error message in config.log where it belongs
49581	echo "$CUDA_PKG_ERRORS" >&5
49582
49583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49584$as_echo "no" >&6; }
49585
49586
49587pkg_failed=no
49588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49589$as_echo_n "checking for CUDA... " >&6; }
49590
49591if test -n "$PKG_CONFIG"; then
49592    if test -n "$CUDA_CFLAGS"; then
49593        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49594    else
49595        if test -n "$PKG_CONFIG" && \
49596    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49597  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49598  ac_status=$?
49599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49600  test $ac_status = 0; }; then
49601  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
49602else
49603  pkg_failed=yes
49604fi
49605    fi
49606else
49607	pkg_failed=untried
49608fi
49609if test -n "$PKG_CONFIG"; then
49610    if test -n "$CUDA_LIBS"; then
49611        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49612    else
49613        if test -n "$PKG_CONFIG" && \
49614    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49615  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49616  ac_status=$?
49617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49618  test $ac_status = 0; }; then
49619  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
49620else
49621  pkg_failed=yes
49622fi
49623    fi
49624else
49625	pkg_failed=untried
49626fi
49627
49628
49629
49630if test $pkg_failed = yes; then
49631
49632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49633        _pkg_short_errors_supported=yes
49634else
49635        _pkg_short_errors_supported=no
49636fi
49637        if test $_pkg_short_errors_supported = yes; then
49638	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49639        else
49640	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49641        fi
49642	# Put the nasty error message in config.log where it belongs
49643	echo "$CUDA_PKG_ERRORS" >&5
49644
49645	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49646$as_echo "no" >&6; }
49647
49648
49649pkg_failed=no
49650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49651$as_echo_n "checking for CUDA... " >&6; }
49652
49653if test -n "$PKG_CONFIG"; then
49654    if test -n "$CUDA_CFLAGS"; then
49655        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49656    else
49657        if test -n "$PKG_CONFIG" && \
49658    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49659  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49660  ac_status=$?
49661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49662  test $ac_status = 0; }; then
49663  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49664else
49665  pkg_failed=yes
49666fi
49667    fi
49668else
49669	pkg_failed=untried
49670fi
49671if test -n "$PKG_CONFIG"; then
49672    if test -n "$CUDA_LIBS"; then
49673        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49674    else
49675        if test -n "$PKG_CONFIG" && \
49676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49677  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49678  ac_status=$?
49679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49680  test $ac_status = 0; }; then
49681  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49682else
49683  pkg_failed=yes
49684fi
49685    fi
49686else
49687	pkg_failed=untried
49688fi
49689
49690
49691
49692if test $pkg_failed = yes; then
49693
49694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49695        _pkg_short_errors_supported=yes
49696else
49697        _pkg_short_errors_supported=no
49698fi
49699        if test $_pkg_short_errors_supported = yes; then
49700	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49701        else
49702	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49703        fi
49704	# Put the nasty error message in config.log where it belongs
49705	echo "$CUDA_PKG_ERRORS" >&5
49706
49707	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49708$as_echo "no" >&6; }
49709
49710                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49711$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49712elif test $pkg_failed = untried; then
49713
49714                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49715$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49716else
49717	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49718	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49719        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49720$as_echo "yes" >&6; }
49721	:
49722fi
49723elif test $pkg_failed = untried; then
49724
49725
49726pkg_failed=no
49727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49728$as_echo_n "checking for CUDA... " >&6; }
49729
49730if test -n "$PKG_CONFIG"; then
49731    if test -n "$CUDA_CFLAGS"; then
49732        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49733    else
49734        if test -n "$PKG_CONFIG" && \
49735    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49736  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49737  ac_status=$?
49738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49739  test $ac_status = 0; }; then
49740  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49741else
49742  pkg_failed=yes
49743fi
49744    fi
49745else
49746	pkg_failed=untried
49747fi
49748if test -n "$PKG_CONFIG"; then
49749    if test -n "$CUDA_LIBS"; then
49750        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49751    else
49752        if test -n "$PKG_CONFIG" && \
49753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49754  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49755  ac_status=$?
49756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49757  test $ac_status = 0; }; then
49758  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49759else
49760  pkg_failed=yes
49761fi
49762    fi
49763else
49764	pkg_failed=untried
49765fi
49766
49767
49768
49769if test $pkg_failed = yes; then
49770
49771if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49772        _pkg_short_errors_supported=yes
49773else
49774        _pkg_short_errors_supported=no
49775fi
49776        if test $_pkg_short_errors_supported = yes; then
49777	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49778        else
49779	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49780        fi
49781	# Put the nasty error message in config.log where it belongs
49782	echo "$CUDA_PKG_ERRORS" >&5
49783
49784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49785$as_echo "no" >&6; }
49786
49787                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49788$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49789elif test $pkg_failed = untried; then
49790
49791                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49792$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49793else
49794	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49795	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49796        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49797$as_echo "yes" >&6; }
49798	:
49799fi
49800else
49801	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49802	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49803        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49804$as_echo "yes" >&6; }
49805	:
49806fi
49807elif test $pkg_failed = untried; then
49808
49809
49810pkg_failed=no
49811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49812$as_echo_n "checking for CUDA... " >&6; }
49813
49814if test -n "$PKG_CONFIG"; then
49815    if test -n "$CUDA_CFLAGS"; then
49816        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49817    else
49818        if test -n "$PKG_CONFIG" && \
49819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49820  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49821  ac_status=$?
49822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49823  test $ac_status = 0; }; then
49824  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
49825else
49826  pkg_failed=yes
49827fi
49828    fi
49829else
49830	pkg_failed=untried
49831fi
49832if test -n "$PKG_CONFIG"; then
49833    if test -n "$CUDA_LIBS"; then
49834        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49835    else
49836        if test -n "$PKG_CONFIG" && \
49837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
49838  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
49839  ac_status=$?
49840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49841  test $ac_status = 0; }; then
49842  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
49843else
49844  pkg_failed=yes
49845fi
49846    fi
49847else
49848	pkg_failed=untried
49849fi
49850
49851
49852
49853if test $pkg_failed = yes; then
49854
49855if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49856        _pkg_short_errors_supported=yes
49857else
49858        _pkg_short_errors_supported=no
49859fi
49860        if test $_pkg_short_errors_supported = yes; then
49861	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49862        else
49863	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
49864        fi
49865	# Put the nasty error message in config.log where it belongs
49866	echo "$CUDA_PKG_ERRORS" >&5
49867
49868	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49869$as_echo "no" >&6; }
49870
49871
49872pkg_failed=no
49873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49874$as_echo_n "checking for CUDA... " >&6; }
49875
49876if test -n "$PKG_CONFIG"; then
49877    if test -n "$CUDA_CFLAGS"; then
49878        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49879    else
49880        if test -n "$PKG_CONFIG" && \
49881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49882  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49883  ac_status=$?
49884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49885  test $ac_status = 0; }; then
49886  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49887else
49888  pkg_failed=yes
49889fi
49890    fi
49891else
49892	pkg_failed=untried
49893fi
49894if test -n "$PKG_CONFIG"; then
49895    if test -n "$CUDA_LIBS"; then
49896        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49897    else
49898        if test -n "$PKG_CONFIG" && \
49899    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49900  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49901  ac_status=$?
49902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49903  test $ac_status = 0; }; then
49904  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49905else
49906  pkg_failed=yes
49907fi
49908    fi
49909else
49910	pkg_failed=untried
49911fi
49912
49913
49914
49915if test $pkg_failed = yes; then
49916
49917if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49918        _pkg_short_errors_supported=yes
49919else
49920        _pkg_short_errors_supported=no
49921fi
49922        if test $_pkg_short_errors_supported = yes; then
49923	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49924        else
49925	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
49926        fi
49927	# Put the nasty error message in config.log where it belongs
49928	echo "$CUDA_PKG_ERRORS" >&5
49929
49930	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49931$as_echo "no" >&6; }
49932
49933                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49934$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49935elif test $pkg_failed = untried; then
49936
49937                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
49938$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
49939else
49940	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
49941	CUDA_LIBS=$pkg_cv_CUDA_LIBS
49942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49943$as_echo "yes" >&6; }
49944	:
49945fi
49946elif test $pkg_failed = untried; then
49947
49948
49949pkg_failed=no
49950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
49951$as_echo_n "checking for CUDA... " >&6; }
49952
49953if test -n "$PKG_CONFIG"; then
49954    if test -n "$CUDA_CFLAGS"; then
49955        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
49956    else
49957        if test -n "$PKG_CONFIG" && \
49958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49959  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49960  ac_status=$?
49961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49962  test $ac_status = 0; }; then
49963  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
49964else
49965  pkg_failed=yes
49966fi
49967    fi
49968else
49969	pkg_failed=untried
49970fi
49971if test -n "$PKG_CONFIG"; then
49972    if test -n "$CUDA_LIBS"; then
49973        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
49974    else
49975        if test -n "$PKG_CONFIG" && \
49976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
49977  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
49978  ac_status=$?
49979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49980  test $ac_status = 0; }; then
49981  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
49982else
49983  pkg_failed=yes
49984fi
49985    fi
49986else
49987	pkg_failed=untried
49988fi
49989
49990
49991
49992if test $pkg_failed = yes; then
49993
49994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49995        _pkg_short_errors_supported=yes
49996else
49997        _pkg_short_errors_supported=no
49998fi
49999        if test $_pkg_short_errors_supported = yes; then
50000	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50001        else
50002	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50003        fi
50004	# Put the nasty error message in config.log where it belongs
50005	echo "$CUDA_PKG_ERRORS" >&5
50006
50007	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50008$as_echo "no" >&6; }
50009
50010                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50011$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50012elif test $pkg_failed = untried; then
50013
50014                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50015$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50016else
50017	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50018	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50019        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50020$as_echo "yes" >&6; }
50021	:
50022fi
50023else
50024	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50025	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50027$as_echo "yes" >&6; }
50028	:
50029fi
50030else
50031	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50032	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50034$as_echo "yes" >&6; }
50035	:
50036fi
50037elif test $pkg_failed = untried; then
50038
50039
50040pkg_failed=no
50041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50042$as_echo_n "checking for CUDA... " >&6; }
50043
50044if test -n "$PKG_CONFIG"; then
50045    if test -n "$CUDA_CFLAGS"; then
50046        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50047    else
50048        if test -n "$PKG_CONFIG" && \
50049    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
50050  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
50051  ac_status=$?
50052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50053  test $ac_status = 0; }; then
50054  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
50055else
50056  pkg_failed=yes
50057fi
50058    fi
50059else
50060	pkg_failed=untried
50061fi
50062if test -n "$PKG_CONFIG"; then
50063    if test -n "$CUDA_LIBS"; then
50064        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50065    else
50066        if test -n "$PKG_CONFIG" && \
50067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
50068  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
50069  ac_status=$?
50070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50071  test $ac_status = 0; }; then
50072  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
50073else
50074  pkg_failed=yes
50075fi
50076    fi
50077else
50078	pkg_failed=untried
50079fi
50080
50081
50082
50083if test $pkg_failed = yes; then
50084
50085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50086        _pkg_short_errors_supported=yes
50087else
50088        _pkg_short_errors_supported=no
50089fi
50090        if test $_pkg_short_errors_supported = yes; then
50091	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
50092        else
50093	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
50094        fi
50095	# Put the nasty error message in config.log where it belongs
50096	echo "$CUDA_PKG_ERRORS" >&5
50097
50098	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50099$as_echo "no" >&6; }
50100
50101
50102pkg_failed=no
50103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50104$as_echo_n "checking for CUDA... " >&6; }
50105
50106if test -n "$PKG_CONFIG"; then
50107    if test -n "$CUDA_CFLAGS"; then
50108        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50109    else
50110        if test -n "$PKG_CONFIG" && \
50111    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50112  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50113  ac_status=$?
50114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50115  test $ac_status = 0; }; then
50116  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
50117else
50118  pkg_failed=yes
50119fi
50120    fi
50121else
50122	pkg_failed=untried
50123fi
50124if test -n "$PKG_CONFIG"; then
50125    if test -n "$CUDA_LIBS"; then
50126        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50127    else
50128        if test -n "$PKG_CONFIG" && \
50129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50130  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50131  ac_status=$?
50132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50133  test $ac_status = 0; }; then
50134  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
50135else
50136  pkg_failed=yes
50137fi
50138    fi
50139else
50140	pkg_failed=untried
50141fi
50142
50143
50144
50145if test $pkg_failed = yes; then
50146
50147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50148        _pkg_short_errors_supported=yes
50149else
50150        _pkg_short_errors_supported=no
50151fi
50152        if test $_pkg_short_errors_supported = yes; then
50153	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50154        else
50155	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50156        fi
50157	# Put the nasty error message in config.log where it belongs
50158	echo "$CUDA_PKG_ERRORS" >&5
50159
50160	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50161$as_echo "no" >&6; }
50162
50163
50164pkg_failed=no
50165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50166$as_echo_n "checking for CUDA... " >&6; }
50167
50168if test -n "$PKG_CONFIG"; then
50169    if test -n "$CUDA_CFLAGS"; then
50170        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50171    else
50172        if test -n "$PKG_CONFIG" && \
50173    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50174  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50175  ac_status=$?
50176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50177  test $ac_status = 0; }; then
50178  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50179else
50180  pkg_failed=yes
50181fi
50182    fi
50183else
50184	pkg_failed=untried
50185fi
50186if test -n "$PKG_CONFIG"; then
50187    if test -n "$CUDA_LIBS"; then
50188        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50189    else
50190        if test -n "$PKG_CONFIG" && \
50191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50192  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50193  ac_status=$?
50194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50195  test $ac_status = 0; }; then
50196  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50197else
50198  pkg_failed=yes
50199fi
50200    fi
50201else
50202	pkg_failed=untried
50203fi
50204
50205
50206
50207if test $pkg_failed = yes; then
50208
50209if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50210        _pkg_short_errors_supported=yes
50211else
50212        _pkg_short_errors_supported=no
50213fi
50214        if test $_pkg_short_errors_supported = yes; then
50215	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50216        else
50217	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50218        fi
50219	# Put the nasty error message in config.log where it belongs
50220	echo "$CUDA_PKG_ERRORS" >&5
50221
50222	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50223$as_echo "no" >&6; }
50224
50225                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50226$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50227elif test $pkg_failed = untried; then
50228
50229                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50230$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50231else
50232	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50233	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50235$as_echo "yes" >&6; }
50236	:
50237fi
50238elif test $pkg_failed = untried; then
50239
50240
50241pkg_failed=no
50242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50243$as_echo_n "checking for CUDA... " >&6; }
50244
50245if test -n "$PKG_CONFIG"; then
50246    if test -n "$CUDA_CFLAGS"; then
50247        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50248    else
50249        if test -n "$PKG_CONFIG" && \
50250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50251  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50252  ac_status=$?
50253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50254  test $ac_status = 0; }; then
50255  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50256else
50257  pkg_failed=yes
50258fi
50259    fi
50260else
50261	pkg_failed=untried
50262fi
50263if test -n "$PKG_CONFIG"; then
50264    if test -n "$CUDA_LIBS"; then
50265        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50266    else
50267        if test -n "$PKG_CONFIG" && \
50268    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50269  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50270  ac_status=$?
50271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50272  test $ac_status = 0; }; then
50273  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50274else
50275  pkg_failed=yes
50276fi
50277    fi
50278else
50279	pkg_failed=untried
50280fi
50281
50282
50283
50284if test $pkg_failed = yes; then
50285
50286if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50287        _pkg_short_errors_supported=yes
50288else
50289        _pkg_short_errors_supported=no
50290fi
50291        if test $_pkg_short_errors_supported = yes; then
50292	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50293        else
50294	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50295        fi
50296	# Put the nasty error message in config.log where it belongs
50297	echo "$CUDA_PKG_ERRORS" >&5
50298
50299	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50300$as_echo "no" >&6; }
50301
50302                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50303$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50304elif test $pkg_failed = untried; then
50305
50306                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50307$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50308else
50309	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50310	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50312$as_echo "yes" >&6; }
50313	:
50314fi
50315else
50316	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50317	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50319$as_echo "yes" >&6; }
50320	:
50321fi
50322elif test $pkg_failed = untried; then
50323
50324
50325pkg_failed=no
50326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50327$as_echo_n "checking for CUDA... " >&6; }
50328
50329if test -n "$PKG_CONFIG"; then
50330    if test -n "$CUDA_CFLAGS"; then
50331        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50332    else
50333        if test -n "$PKG_CONFIG" && \
50334    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50335  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50336  ac_status=$?
50337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50338  test $ac_status = 0; }; then
50339  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
50340else
50341  pkg_failed=yes
50342fi
50343    fi
50344else
50345	pkg_failed=untried
50346fi
50347if test -n "$PKG_CONFIG"; then
50348    if test -n "$CUDA_LIBS"; then
50349        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50350    else
50351        if test -n "$PKG_CONFIG" && \
50352    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50353  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50354  ac_status=$?
50355  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50356  test $ac_status = 0; }; then
50357  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
50358else
50359  pkg_failed=yes
50360fi
50361    fi
50362else
50363	pkg_failed=untried
50364fi
50365
50366
50367
50368if test $pkg_failed = yes; then
50369
50370if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50371        _pkg_short_errors_supported=yes
50372else
50373        _pkg_short_errors_supported=no
50374fi
50375        if test $_pkg_short_errors_supported = yes; then
50376	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50377        else
50378	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50379        fi
50380	# Put the nasty error message in config.log where it belongs
50381	echo "$CUDA_PKG_ERRORS" >&5
50382
50383	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50384$as_echo "no" >&6; }
50385
50386
50387pkg_failed=no
50388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50389$as_echo_n "checking for CUDA... " >&6; }
50390
50391if test -n "$PKG_CONFIG"; then
50392    if test -n "$CUDA_CFLAGS"; then
50393        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50394    else
50395        if test -n "$PKG_CONFIG" && \
50396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50397  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50398  ac_status=$?
50399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50400  test $ac_status = 0; }; then
50401  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50402else
50403  pkg_failed=yes
50404fi
50405    fi
50406else
50407	pkg_failed=untried
50408fi
50409if test -n "$PKG_CONFIG"; then
50410    if test -n "$CUDA_LIBS"; then
50411        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50412    else
50413        if test -n "$PKG_CONFIG" && \
50414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50415  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50416  ac_status=$?
50417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50418  test $ac_status = 0; }; then
50419  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50420else
50421  pkg_failed=yes
50422fi
50423    fi
50424else
50425	pkg_failed=untried
50426fi
50427
50428
50429
50430if test $pkg_failed = yes; then
50431
50432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50433        _pkg_short_errors_supported=yes
50434else
50435        _pkg_short_errors_supported=no
50436fi
50437        if test $_pkg_short_errors_supported = yes; then
50438	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50439        else
50440	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50441        fi
50442	# Put the nasty error message in config.log where it belongs
50443	echo "$CUDA_PKG_ERRORS" >&5
50444
50445	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50446$as_echo "no" >&6; }
50447
50448                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50449$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50450elif test $pkg_failed = untried; then
50451
50452                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50453$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50454else
50455	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50456	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50458$as_echo "yes" >&6; }
50459	:
50460fi
50461elif test $pkg_failed = untried; then
50462
50463
50464pkg_failed=no
50465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50466$as_echo_n "checking for CUDA... " >&6; }
50467
50468if test -n "$PKG_CONFIG"; then
50469    if test -n "$CUDA_CFLAGS"; then
50470        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50471    else
50472        if test -n "$PKG_CONFIG" && \
50473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50474  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50475  ac_status=$?
50476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50477  test $ac_status = 0; }; then
50478  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50479else
50480  pkg_failed=yes
50481fi
50482    fi
50483else
50484	pkg_failed=untried
50485fi
50486if test -n "$PKG_CONFIG"; then
50487    if test -n "$CUDA_LIBS"; then
50488        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50489    else
50490        if test -n "$PKG_CONFIG" && \
50491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50492  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50493  ac_status=$?
50494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50495  test $ac_status = 0; }; then
50496  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50497else
50498  pkg_failed=yes
50499fi
50500    fi
50501else
50502	pkg_failed=untried
50503fi
50504
50505
50506
50507if test $pkg_failed = yes; then
50508
50509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50510        _pkg_short_errors_supported=yes
50511else
50512        _pkg_short_errors_supported=no
50513fi
50514        if test $_pkg_short_errors_supported = yes; then
50515	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50516        else
50517	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50518        fi
50519	# Put the nasty error message in config.log where it belongs
50520	echo "$CUDA_PKG_ERRORS" >&5
50521
50522	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50523$as_echo "no" >&6; }
50524
50525                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50526$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50527elif test $pkg_failed = untried; then
50528
50529                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50530$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50531else
50532	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50533	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50535$as_echo "yes" >&6; }
50536	:
50537fi
50538else
50539	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50540	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50541        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50542$as_echo "yes" >&6; }
50543	:
50544fi
50545else
50546	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50547	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50549$as_echo "yes" >&6; }
50550	:
50551fi
50552else
50553	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50554	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50555        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50556$as_echo "yes" >&6; }
50557	:
50558fi
50559elif test $pkg_failed = untried; then
50560
50561
50562pkg_failed=no
50563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50564$as_echo_n "checking for CUDA... " >&6; }
50565
50566if test -n "$PKG_CONFIG"; then
50567    if test -n "$CUDA_CFLAGS"; then
50568        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50569    else
50570        if test -n "$PKG_CONFIG" && \
50571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
50572  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
50573  ac_status=$?
50574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50575  test $ac_status = 0; }; then
50576  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
50577else
50578  pkg_failed=yes
50579fi
50580    fi
50581else
50582	pkg_failed=untried
50583fi
50584if test -n "$PKG_CONFIG"; then
50585    if test -n "$CUDA_LIBS"; then
50586        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50587    else
50588        if test -n "$PKG_CONFIG" && \
50589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
50590  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
50591  ac_status=$?
50592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50593  test $ac_status = 0; }; then
50594  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
50595else
50596  pkg_failed=yes
50597fi
50598    fi
50599else
50600	pkg_failed=untried
50601fi
50602
50603
50604
50605if test $pkg_failed = yes; then
50606
50607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50608        _pkg_short_errors_supported=yes
50609else
50610        _pkg_short_errors_supported=no
50611fi
50612        if test $_pkg_short_errors_supported = yes; then
50613	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
50614        else
50615	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
50616        fi
50617	# Put the nasty error message in config.log where it belongs
50618	echo "$CUDA_PKG_ERRORS" >&5
50619
50620	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50621$as_echo "no" >&6; }
50622
50623
50624pkg_failed=no
50625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50626$as_echo_n "checking for CUDA... " >&6; }
50627
50628if test -n "$PKG_CONFIG"; then
50629    if test -n "$CUDA_CFLAGS"; then
50630        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50631    else
50632        if test -n "$PKG_CONFIG" && \
50633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
50634  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
50635  ac_status=$?
50636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50637  test $ac_status = 0; }; then
50638  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
50639else
50640  pkg_failed=yes
50641fi
50642    fi
50643else
50644	pkg_failed=untried
50645fi
50646if test -n "$PKG_CONFIG"; then
50647    if test -n "$CUDA_LIBS"; then
50648        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50649    else
50650        if test -n "$PKG_CONFIG" && \
50651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
50652  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
50653  ac_status=$?
50654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50655  test $ac_status = 0; }; then
50656  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
50657else
50658  pkg_failed=yes
50659fi
50660    fi
50661else
50662	pkg_failed=untried
50663fi
50664
50665
50666
50667if test $pkg_failed = yes; then
50668
50669if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50670        _pkg_short_errors_supported=yes
50671else
50672        _pkg_short_errors_supported=no
50673fi
50674        if test $_pkg_short_errors_supported = yes; then
50675	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
50676        else
50677	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
50678        fi
50679	# Put the nasty error message in config.log where it belongs
50680	echo "$CUDA_PKG_ERRORS" >&5
50681
50682	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50683$as_echo "no" >&6; }
50684
50685
50686pkg_failed=no
50687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50688$as_echo_n "checking for CUDA... " >&6; }
50689
50690if test -n "$PKG_CONFIG"; then
50691    if test -n "$CUDA_CFLAGS"; then
50692        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50693    else
50694        if test -n "$PKG_CONFIG" && \
50695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50696  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50697  ac_status=$?
50698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50699  test $ac_status = 0; }; then
50700  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
50701else
50702  pkg_failed=yes
50703fi
50704    fi
50705else
50706	pkg_failed=untried
50707fi
50708if test -n "$PKG_CONFIG"; then
50709    if test -n "$CUDA_LIBS"; then
50710        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50711    else
50712        if test -n "$PKG_CONFIG" && \
50713    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50714  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50715  ac_status=$?
50716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50717  test $ac_status = 0; }; then
50718  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
50719else
50720  pkg_failed=yes
50721fi
50722    fi
50723else
50724	pkg_failed=untried
50725fi
50726
50727
50728
50729if test $pkg_failed = yes; then
50730
50731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50732        _pkg_short_errors_supported=yes
50733else
50734        _pkg_short_errors_supported=no
50735fi
50736        if test $_pkg_short_errors_supported = yes; then
50737	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50738        else
50739	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50740        fi
50741	# Put the nasty error message in config.log where it belongs
50742	echo "$CUDA_PKG_ERRORS" >&5
50743
50744	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50745$as_echo "no" >&6; }
50746
50747
50748pkg_failed=no
50749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50750$as_echo_n "checking for CUDA... " >&6; }
50751
50752if test -n "$PKG_CONFIG"; then
50753    if test -n "$CUDA_CFLAGS"; then
50754        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50755    else
50756        if test -n "$PKG_CONFIG" && \
50757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50758  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50759  ac_status=$?
50760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50761  test $ac_status = 0; }; then
50762  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50763else
50764  pkg_failed=yes
50765fi
50766    fi
50767else
50768	pkg_failed=untried
50769fi
50770if test -n "$PKG_CONFIG"; then
50771    if test -n "$CUDA_LIBS"; then
50772        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50773    else
50774        if test -n "$PKG_CONFIG" && \
50775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50776  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50777  ac_status=$?
50778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50779  test $ac_status = 0; }; then
50780  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50781else
50782  pkg_failed=yes
50783fi
50784    fi
50785else
50786	pkg_failed=untried
50787fi
50788
50789
50790
50791if test $pkg_failed = yes; then
50792
50793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50794        _pkg_short_errors_supported=yes
50795else
50796        _pkg_short_errors_supported=no
50797fi
50798        if test $_pkg_short_errors_supported = yes; then
50799	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50800        else
50801	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50802        fi
50803	# Put the nasty error message in config.log where it belongs
50804	echo "$CUDA_PKG_ERRORS" >&5
50805
50806	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50807$as_echo "no" >&6; }
50808
50809                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50810$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50811elif test $pkg_failed = untried; then
50812
50813                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50814$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50815else
50816	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50817	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50819$as_echo "yes" >&6; }
50820	:
50821fi
50822elif test $pkg_failed = untried; then
50823
50824
50825pkg_failed=no
50826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50827$as_echo_n "checking for CUDA... " >&6; }
50828
50829if test -n "$PKG_CONFIG"; then
50830    if test -n "$CUDA_CFLAGS"; then
50831        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50832    else
50833        if test -n "$PKG_CONFIG" && \
50834    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50835  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50836  ac_status=$?
50837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50838  test $ac_status = 0; }; then
50839  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50840else
50841  pkg_failed=yes
50842fi
50843    fi
50844else
50845	pkg_failed=untried
50846fi
50847if test -n "$PKG_CONFIG"; then
50848    if test -n "$CUDA_LIBS"; then
50849        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50850    else
50851        if test -n "$PKG_CONFIG" && \
50852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50853  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50854  ac_status=$?
50855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50856  test $ac_status = 0; }; then
50857  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
50858else
50859  pkg_failed=yes
50860fi
50861    fi
50862else
50863	pkg_failed=untried
50864fi
50865
50866
50867
50868if test $pkg_failed = yes; then
50869
50870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50871        _pkg_short_errors_supported=yes
50872else
50873        _pkg_short_errors_supported=no
50874fi
50875        if test $_pkg_short_errors_supported = yes; then
50876	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50877        else
50878	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
50879        fi
50880	# Put the nasty error message in config.log where it belongs
50881	echo "$CUDA_PKG_ERRORS" >&5
50882
50883	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50884$as_echo "no" >&6; }
50885
50886                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50887$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50888elif test $pkg_failed = untried; then
50889
50890                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
50891$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
50892else
50893	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50894	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50895        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50896$as_echo "yes" >&6; }
50897	:
50898fi
50899else
50900	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
50901	CUDA_LIBS=$pkg_cv_CUDA_LIBS
50902        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50903$as_echo "yes" >&6; }
50904	:
50905fi
50906elif test $pkg_failed = untried; then
50907
50908
50909pkg_failed=no
50910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50911$as_echo_n "checking for CUDA... " >&6; }
50912
50913if test -n "$PKG_CONFIG"; then
50914    if test -n "$CUDA_CFLAGS"; then
50915        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50916    else
50917        if test -n "$PKG_CONFIG" && \
50918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50919  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50920  ac_status=$?
50921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50922  test $ac_status = 0; }; then
50923  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
50924else
50925  pkg_failed=yes
50926fi
50927    fi
50928else
50929	pkg_failed=untried
50930fi
50931if test -n "$PKG_CONFIG"; then
50932    if test -n "$CUDA_LIBS"; then
50933        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50934    else
50935        if test -n "$PKG_CONFIG" && \
50936    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
50937  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
50938  ac_status=$?
50939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50940  test $ac_status = 0; }; then
50941  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
50942else
50943  pkg_failed=yes
50944fi
50945    fi
50946else
50947	pkg_failed=untried
50948fi
50949
50950
50951
50952if test $pkg_failed = yes; then
50953
50954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50955        _pkg_short_errors_supported=yes
50956else
50957        _pkg_short_errors_supported=no
50958fi
50959        if test $_pkg_short_errors_supported = yes; then
50960	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50961        else
50962	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
50963        fi
50964	# Put the nasty error message in config.log where it belongs
50965	echo "$CUDA_PKG_ERRORS" >&5
50966
50967	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50968$as_echo "no" >&6; }
50969
50970
50971pkg_failed=no
50972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
50973$as_echo_n "checking for CUDA... " >&6; }
50974
50975if test -n "$PKG_CONFIG"; then
50976    if test -n "$CUDA_CFLAGS"; then
50977        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
50978    else
50979        if test -n "$PKG_CONFIG" && \
50980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50981  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
50982  ac_status=$?
50983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50984  test $ac_status = 0; }; then
50985  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
50986else
50987  pkg_failed=yes
50988fi
50989    fi
50990else
50991	pkg_failed=untried
50992fi
50993if test -n "$PKG_CONFIG"; then
50994    if test -n "$CUDA_LIBS"; then
50995        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
50996    else
50997        if test -n "$PKG_CONFIG" && \
50998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
50999  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51000  ac_status=$?
51001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51002  test $ac_status = 0; }; then
51003  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51004else
51005  pkg_failed=yes
51006fi
51007    fi
51008else
51009	pkg_failed=untried
51010fi
51011
51012
51013
51014if test $pkg_failed = yes; then
51015
51016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51017        _pkg_short_errors_supported=yes
51018else
51019        _pkg_short_errors_supported=no
51020fi
51021        if test $_pkg_short_errors_supported = yes; then
51022	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51023        else
51024	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51025        fi
51026	# Put the nasty error message in config.log where it belongs
51027	echo "$CUDA_PKG_ERRORS" >&5
51028
51029	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51030$as_echo "no" >&6; }
51031
51032                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51033$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51034elif test $pkg_failed = untried; then
51035
51036                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51037$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51038else
51039	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51040	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51041        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51042$as_echo "yes" >&6; }
51043	:
51044fi
51045elif test $pkg_failed = untried; then
51046
51047
51048pkg_failed=no
51049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51050$as_echo_n "checking for CUDA... " >&6; }
51051
51052if test -n "$PKG_CONFIG"; then
51053    if test -n "$CUDA_CFLAGS"; then
51054        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51055    else
51056        if test -n "$PKG_CONFIG" && \
51057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51058  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51059  ac_status=$?
51060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51061  test $ac_status = 0; }; then
51062  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51063else
51064  pkg_failed=yes
51065fi
51066    fi
51067else
51068	pkg_failed=untried
51069fi
51070if test -n "$PKG_CONFIG"; then
51071    if test -n "$CUDA_LIBS"; then
51072        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51073    else
51074        if test -n "$PKG_CONFIG" && \
51075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51076  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51077  ac_status=$?
51078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51079  test $ac_status = 0; }; then
51080  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51081else
51082  pkg_failed=yes
51083fi
51084    fi
51085else
51086	pkg_failed=untried
51087fi
51088
51089
51090
51091if test $pkg_failed = yes; then
51092
51093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51094        _pkg_short_errors_supported=yes
51095else
51096        _pkg_short_errors_supported=no
51097fi
51098        if test $_pkg_short_errors_supported = yes; then
51099	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51100        else
51101	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51102        fi
51103	# Put the nasty error message in config.log where it belongs
51104	echo "$CUDA_PKG_ERRORS" >&5
51105
51106	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51107$as_echo "no" >&6; }
51108
51109                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51110$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51111elif test $pkg_failed = untried; then
51112
51113                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51114$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51115else
51116	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51117	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51119$as_echo "yes" >&6; }
51120	:
51121fi
51122else
51123	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51124	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51126$as_echo "yes" >&6; }
51127	:
51128fi
51129else
51130	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51131	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51133$as_echo "yes" >&6; }
51134	:
51135fi
51136elif test $pkg_failed = untried; then
51137
51138
51139pkg_failed=no
51140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51141$as_echo_n "checking for CUDA... " >&6; }
51142
51143if test -n "$PKG_CONFIG"; then
51144    if test -n "$CUDA_CFLAGS"; then
51145        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51146    else
51147        if test -n "$PKG_CONFIG" && \
51148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
51149  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
51150  ac_status=$?
51151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51152  test $ac_status = 0; }; then
51153  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
51154else
51155  pkg_failed=yes
51156fi
51157    fi
51158else
51159	pkg_failed=untried
51160fi
51161if test -n "$PKG_CONFIG"; then
51162    if test -n "$CUDA_LIBS"; then
51163        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51164    else
51165        if test -n "$PKG_CONFIG" && \
51166    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
51167  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
51168  ac_status=$?
51169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51170  test $ac_status = 0; }; then
51171  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
51172else
51173  pkg_failed=yes
51174fi
51175    fi
51176else
51177	pkg_failed=untried
51178fi
51179
51180
51181
51182if test $pkg_failed = yes; then
51183
51184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51185        _pkg_short_errors_supported=yes
51186else
51187        _pkg_short_errors_supported=no
51188fi
51189        if test $_pkg_short_errors_supported = yes; then
51190	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
51191        else
51192	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
51193        fi
51194	# Put the nasty error message in config.log where it belongs
51195	echo "$CUDA_PKG_ERRORS" >&5
51196
51197	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51198$as_echo "no" >&6; }
51199
51200
51201pkg_failed=no
51202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51203$as_echo_n "checking for CUDA... " >&6; }
51204
51205if test -n "$PKG_CONFIG"; then
51206    if test -n "$CUDA_CFLAGS"; then
51207        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51208    else
51209        if test -n "$PKG_CONFIG" && \
51210    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51211  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51212  ac_status=$?
51213  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51214  test $ac_status = 0; }; then
51215  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
51216else
51217  pkg_failed=yes
51218fi
51219    fi
51220else
51221	pkg_failed=untried
51222fi
51223if test -n "$PKG_CONFIG"; then
51224    if test -n "$CUDA_LIBS"; then
51225        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51226    else
51227        if test -n "$PKG_CONFIG" && \
51228    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51229  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51230  ac_status=$?
51231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51232  test $ac_status = 0; }; then
51233  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
51234else
51235  pkg_failed=yes
51236fi
51237    fi
51238else
51239	pkg_failed=untried
51240fi
51241
51242
51243
51244if test $pkg_failed = yes; then
51245
51246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51247        _pkg_short_errors_supported=yes
51248else
51249        _pkg_short_errors_supported=no
51250fi
51251        if test $_pkg_short_errors_supported = yes; then
51252	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51253        else
51254	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51255        fi
51256	# Put the nasty error message in config.log where it belongs
51257	echo "$CUDA_PKG_ERRORS" >&5
51258
51259	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51260$as_echo "no" >&6; }
51261
51262
51263pkg_failed=no
51264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51265$as_echo_n "checking for CUDA... " >&6; }
51266
51267if test -n "$PKG_CONFIG"; then
51268    if test -n "$CUDA_CFLAGS"; then
51269        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51270    else
51271        if test -n "$PKG_CONFIG" && \
51272    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51273  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51274  ac_status=$?
51275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51276  test $ac_status = 0; }; then
51277  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51278else
51279  pkg_failed=yes
51280fi
51281    fi
51282else
51283	pkg_failed=untried
51284fi
51285if test -n "$PKG_CONFIG"; then
51286    if test -n "$CUDA_LIBS"; then
51287        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51288    else
51289        if test -n "$PKG_CONFIG" && \
51290    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51291  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51292  ac_status=$?
51293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51294  test $ac_status = 0; }; then
51295  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51296else
51297  pkg_failed=yes
51298fi
51299    fi
51300else
51301	pkg_failed=untried
51302fi
51303
51304
51305
51306if test $pkg_failed = yes; then
51307
51308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51309        _pkg_short_errors_supported=yes
51310else
51311        _pkg_short_errors_supported=no
51312fi
51313        if test $_pkg_short_errors_supported = yes; then
51314	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51315        else
51316	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51317        fi
51318	# Put the nasty error message in config.log where it belongs
51319	echo "$CUDA_PKG_ERRORS" >&5
51320
51321	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51322$as_echo "no" >&6; }
51323
51324                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51325$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51326elif test $pkg_failed = untried; then
51327
51328                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51329$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51330else
51331	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51332	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51334$as_echo "yes" >&6; }
51335	:
51336fi
51337elif test $pkg_failed = untried; then
51338
51339
51340pkg_failed=no
51341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51342$as_echo_n "checking for CUDA... " >&6; }
51343
51344if test -n "$PKG_CONFIG"; then
51345    if test -n "$CUDA_CFLAGS"; then
51346        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51347    else
51348        if test -n "$PKG_CONFIG" && \
51349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51350  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51351  ac_status=$?
51352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51353  test $ac_status = 0; }; then
51354  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51355else
51356  pkg_failed=yes
51357fi
51358    fi
51359else
51360	pkg_failed=untried
51361fi
51362if test -n "$PKG_CONFIG"; then
51363    if test -n "$CUDA_LIBS"; then
51364        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51365    else
51366        if test -n "$PKG_CONFIG" && \
51367    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51368  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51369  ac_status=$?
51370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51371  test $ac_status = 0; }; then
51372  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51373else
51374  pkg_failed=yes
51375fi
51376    fi
51377else
51378	pkg_failed=untried
51379fi
51380
51381
51382
51383if test $pkg_failed = yes; then
51384
51385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51386        _pkg_short_errors_supported=yes
51387else
51388        _pkg_short_errors_supported=no
51389fi
51390        if test $_pkg_short_errors_supported = yes; then
51391	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51392        else
51393	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51394        fi
51395	# Put the nasty error message in config.log where it belongs
51396	echo "$CUDA_PKG_ERRORS" >&5
51397
51398	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51399$as_echo "no" >&6; }
51400
51401                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51402$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51403elif test $pkg_failed = untried; then
51404
51405                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51406$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51407else
51408	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51409	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51410        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51411$as_echo "yes" >&6; }
51412	:
51413fi
51414else
51415	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51416	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51417        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51418$as_echo "yes" >&6; }
51419	:
51420fi
51421elif test $pkg_failed = untried; then
51422
51423
51424pkg_failed=no
51425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51426$as_echo_n "checking for CUDA... " >&6; }
51427
51428if test -n "$PKG_CONFIG"; then
51429    if test -n "$CUDA_CFLAGS"; then
51430        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51431    else
51432        if test -n "$PKG_CONFIG" && \
51433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51434  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51435  ac_status=$?
51436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51437  test $ac_status = 0; }; then
51438  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
51439else
51440  pkg_failed=yes
51441fi
51442    fi
51443else
51444	pkg_failed=untried
51445fi
51446if test -n "$PKG_CONFIG"; then
51447    if test -n "$CUDA_LIBS"; then
51448        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51449    else
51450        if test -n "$PKG_CONFIG" && \
51451    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51452  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51453  ac_status=$?
51454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51455  test $ac_status = 0; }; then
51456  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
51457else
51458  pkg_failed=yes
51459fi
51460    fi
51461else
51462	pkg_failed=untried
51463fi
51464
51465
51466
51467if test $pkg_failed = yes; then
51468
51469if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51470        _pkg_short_errors_supported=yes
51471else
51472        _pkg_short_errors_supported=no
51473fi
51474        if test $_pkg_short_errors_supported = yes; then
51475	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51476        else
51477	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51478        fi
51479	# Put the nasty error message in config.log where it belongs
51480	echo "$CUDA_PKG_ERRORS" >&5
51481
51482	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51483$as_echo "no" >&6; }
51484
51485
51486pkg_failed=no
51487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51488$as_echo_n "checking for CUDA... " >&6; }
51489
51490if test -n "$PKG_CONFIG"; then
51491    if test -n "$CUDA_CFLAGS"; then
51492        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51493    else
51494        if test -n "$PKG_CONFIG" && \
51495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51496  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51497  ac_status=$?
51498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51499  test $ac_status = 0; }; then
51500  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51501else
51502  pkg_failed=yes
51503fi
51504    fi
51505else
51506	pkg_failed=untried
51507fi
51508if test -n "$PKG_CONFIG"; then
51509    if test -n "$CUDA_LIBS"; then
51510        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51511    else
51512        if test -n "$PKG_CONFIG" && \
51513    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51514  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51515  ac_status=$?
51516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51517  test $ac_status = 0; }; then
51518  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51519else
51520  pkg_failed=yes
51521fi
51522    fi
51523else
51524	pkg_failed=untried
51525fi
51526
51527
51528
51529if test $pkg_failed = yes; then
51530
51531if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51532        _pkg_short_errors_supported=yes
51533else
51534        _pkg_short_errors_supported=no
51535fi
51536        if test $_pkg_short_errors_supported = yes; then
51537	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51538        else
51539	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51540        fi
51541	# Put the nasty error message in config.log where it belongs
51542	echo "$CUDA_PKG_ERRORS" >&5
51543
51544	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51545$as_echo "no" >&6; }
51546
51547                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51548$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51549elif test $pkg_failed = untried; then
51550
51551                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51552$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51553else
51554	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51555	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51557$as_echo "yes" >&6; }
51558	:
51559fi
51560elif test $pkg_failed = untried; then
51561
51562
51563pkg_failed=no
51564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51565$as_echo_n "checking for CUDA... " >&6; }
51566
51567if test -n "$PKG_CONFIG"; then
51568    if test -n "$CUDA_CFLAGS"; then
51569        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51570    else
51571        if test -n "$PKG_CONFIG" && \
51572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51573  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51574  ac_status=$?
51575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51576  test $ac_status = 0; }; then
51577  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51578else
51579  pkg_failed=yes
51580fi
51581    fi
51582else
51583	pkg_failed=untried
51584fi
51585if test -n "$PKG_CONFIG"; then
51586    if test -n "$CUDA_LIBS"; then
51587        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51588    else
51589        if test -n "$PKG_CONFIG" && \
51590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51591  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51592  ac_status=$?
51593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51594  test $ac_status = 0; }; then
51595  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51596else
51597  pkg_failed=yes
51598fi
51599    fi
51600else
51601	pkg_failed=untried
51602fi
51603
51604
51605
51606if test $pkg_failed = yes; then
51607
51608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51609        _pkg_short_errors_supported=yes
51610else
51611        _pkg_short_errors_supported=no
51612fi
51613        if test $_pkg_short_errors_supported = yes; then
51614	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51615        else
51616	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51617        fi
51618	# Put the nasty error message in config.log where it belongs
51619	echo "$CUDA_PKG_ERRORS" >&5
51620
51621	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51622$as_echo "no" >&6; }
51623
51624                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51625$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51626elif test $pkg_failed = untried; then
51627
51628                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51629$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51630else
51631	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51632	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51634$as_echo "yes" >&6; }
51635	:
51636fi
51637else
51638	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51639	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51641$as_echo "yes" >&6; }
51642	:
51643fi
51644else
51645	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51646	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51648$as_echo "yes" >&6; }
51649	:
51650fi
51651else
51652	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51653	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51654        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51655$as_echo "yes" >&6; }
51656	:
51657fi
51658else
51659	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51660	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51661        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51662$as_echo "yes" >&6; }
51663	:
51664fi
51665elif test $pkg_failed = untried; then
51666
51667
51668pkg_failed=no
51669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51670$as_echo_n "checking for CUDA... " >&6; }
51671
51672if test -n "$PKG_CONFIG"; then
51673    if test -n "$CUDA_CFLAGS"; then
51674        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51675    else
51676        if test -n "$PKG_CONFIG" && \
51677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
51678  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
51679  ac_status=$?
51680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51681  test $ac_status = 0; }; then
51682  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
51683else
51684  pkg_failed=yes
51685fi
51686    fi
51687else
51688	pkg_failed=untried
51689fi
51690if test -n "$PKG_CONFIG"; then
51691    if test -n "$CUDA_LIBS"; then
51692        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51693    else
51694        if test -n "$PKG_CONFIG" && \
51695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
51696  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
51697  ac_status=$?
51698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51699  test $ac_status = 0; }; then
51700  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
51701else
51702  pkg_failed=yes
51703fi
51704    fi
51705else
51706	pkg_failed=untried
51707fi
51708
51709
51710
51711if test $pkg_failed = yes; then
51712
51713if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51714        _pkg_short_errors_supported=yes
51715else
51716        _pkg_short_errors_supported=no
51717fi
51718        if test $_pkg_short_errors_supported = yes; then
51719	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
51720        else
51721	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
51722        fi
51723	# Put the nasty error message in config.log where it belongs
51724	echo "$CUDA_PKG_ERRORS" >&5
51725
51726	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51727$as_echo "no" >&6; }
51728
51729
51730pkg_failed=no
51731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51732$as_echo_n "checking for CUDA... " >&6; }
51733
51734if test -n "$PKG_CONFIG"; then
51735    if test -n "$CUDA_CFLAGS"; then
51736        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51737    else
51738        if test -n "$PKG_CONFIG" && \
51739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
51740  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
51741  ac_status=$?
51742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51743  test $ac_status = 0; }; then
51744  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
51745else
51746  pkg_failed=yes
51747fi
51748    fi
51749else
51750	pkg_failed=untried
51751fi
51752if test -n "$PKG_CONFIG"; then
51753    if test -n "$CUDA_LIBS"; then
51754        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51755    else
51756        if test -n "$PKG_CONFIG" && \
51757    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
51758  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
51759  ac_status=$?
51760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51761  test $ac_status = 0; }; then
51762  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
51763else
51764  pkg_failed=yes
51765fi
51766    fi
51767else
51768	pkg_failed=untried
51769fi
51770
51771
51772
51773if test $pkg_failed = yes; then
51774
51775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51776        _pkg_short_errors_supported=yes
51777else
51778        _pkg_short_errors_supported=no
51779fi
51780        if test $_pkg_short_errors_supported = yes; then
51781	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
51782        else
51783	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
51784        fi
51785	# Put the nasty error message in config.log where it belongs
51786	echo "$CUDA_PKG_ERRORS" >&5
51787
51788	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51789$as_echo "no" >&6; }
51790
51791
51792pkg_failed=no
51793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51794$as_echo_n "checking for CUDA... " >&6; }
51795
51796if test -n "$PKG_CONFIG"; then
51797    if test -n "$CUDA_CFLAGS"; then
51798        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51799    else
51800        if test -n "$PKG_CONFIG" && \
51801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
51802  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
51803  ac_status=$?
51804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51805  test $ac_status = 0; }; then
51806  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
51807else
51808  pkg_failed=yes
51809fi
51810    fi
51811else
51812	pkg_failed=untried
51813fi
51814if test -n "$PKG_CONFIG"; then
51815    if test -n "$CUDA_LIBS"; then
51816        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51817    else
51818        if test -n "$PKG_CONFIG" && \
51819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
51820  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
51821  ac_status=$?
51822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51823  test $ac_status = 0; }; then
51824  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
51825else
51826  pkg_failed=yes
51827fi
51828    fi
51829else
51830	pkg_failed=untried
51831fi
51832
51833
51834
51835if test $pkg_failed = yes; then
51836
51837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51838        _pkg_short_errors_supported=yes
51839else
51840        _pkg_short_errors_supported=no
51841fi
51842        if test $_pkg_short_errors_supported = yes; then
51843	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
51844        else
51845	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
51846        fi
51847	# Put the nasty error message in config.log where it belongs
51848	echo "$CUDA_PKG_ERRORS" >&5
51849
51850	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51851$as_echo "no" >&6; }
51852
51853
51854pkg_failed=no
51855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51856$as_echo_n "checking for CUDA... " >&6; }
51857
51858if test -n "$PKG_CONFIG"; then
51859    if test -n "$CUDA_CFLAGS"; then
51860        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51861    else
51862        if test -n "$PKG_CONFIG" && \
51863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51864  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51865  ac_status=$?
51866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51867  test $ac_status = 0; }; then
51868  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
51869else
51870  pkg_failed=yes
51871fi
51872    fi
51873else
51874	pkg_failed=untried
51875fi
51876if test -n "$PKG_CONFIG"; then
51877    if test -n "$CUDA_LIBS"; then
51878        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51879    else
51880        if test -n "$PKG_CONFIG" && \
51881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
51882  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
51883  ac_status=$?
51884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51885  test $ac_status = 0; }; then
51886  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
51887else
51888  pkg_failed=yes
51889fi
51890    fi
51891else
51892	pkg_failed=untried
51893fi
51894
51895
51896
51897if test $pkg_failed = yes; then
51898
51899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51900        _pkg_short_errors_supported=yes
51901else
51902        _pkg_short_errors_supported=no
51903fi
51904        if test $_pkg_short_errors_supported = yes; then
51905	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51906        else
51907	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
51908        fi
51909	# Put the nasty error message in config.log where it belongs
51910	echo "$CUDA_PKG_ERRORS" >&5
51911
51912	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51913$as_echo "no" >&6; }
51914
51915
51916pkg_failed=no
51917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51918$as_echo_n "checking for CUDA... " >&6; }
51919
51920if test -n "$PKG_CONFIG"; then
51921    if test -n "$CUDA_CFLAGS"; then
51922        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
51923    else
51924        if test -n "$PKG_CONFIG" && \
51925    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51926  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51927  ac_status=$?
51928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51929  test $ac_status = 0; }; then
51930  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
51931else
51932  pkg_failed=yes
51933fi
51934    fi
51935else
51936	pkg_failed=untried
51937fi
51938if test -n "$PKG_CONFIG"; then
51939    if test -n "$CUDA_LIBS"; then
51940        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
51941    else
51942        if test -n "$PKG_CONFIG" && \
51943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
51944  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
51945  ac_status=$?
51946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51947  test $ac_status = 0; }; then
51948  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
51949else
51950  pkg_failed=yes
51951fi
51952    fi
51953else
51954	pkg_failed=untried
51955fi
51956
51957
51958
51959if test $pkg_failed = yes; then
51960
51961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
51962        _pkg_short_errors_supported=yes
51963else
51964        _pkg_short_errors_supported=no
51965fi
51966        if test $_pkg_short_errors_supported = yes; then
51967	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51968        else
51969	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
51970        fi
51971	# Put the nasty error message in config.log where it belongs
51972	echo "$CUDA_PKG_ERRORS" >&5
51973
51974	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51975$as_echo "no" >&6; }
51976
51977                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51978$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51979elif test $pkg_failed = untried; then
51980
51981                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
51982$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
51983else
51984	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
51985	CUDA_LIBS=$pkg_cv_CUDA_LIBS
51986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51987$as_echo "yes" >&6; }
51988	:
51989fi
51990elif test $pkg_failed = untried; then
51991
51992
51993pkg_failed=no
51994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
51995$as_echo_n "checking for CUDA... " >&6; }
51996
51997if test -n "$PKG_CONFIG"; then
51998    if test -n "$CUDA_CFLAGS"; then
51999        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52000    else
52001        if test -n "$PKG_CONFIG" && \
52002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52003  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52004  ac_status=$?
52005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52006  test $ac_status = 0; }; then
52007  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52008else
52009  pkg_failed=yes
52010fi
52011    fi
52012else
52013	pkg_failed=untried
52014fi
52015if test -n "$PKG_CONFIG"; then
52016    if test -n "$CUDA_LIBS"; then
52017        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52018    else
52019        if test -n "$PKG_CONFIG" && \
52020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52021  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52022  ac_status=$?
52023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52024  test $ac_status = 0; }; then
52025  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52026else
52027  pkg_failed=yes
52028fi
52029    fi
52030else
52031	pkg_failed=untried
52032fi
52033
52034
52035
52036if test $pkg_failed = yes; then
52037
52038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52039        _pkg_short_errors_supported=yes
52040else
52041        _pkg_short_errors_supported=no
52042fi
52043        if test $_pkg_short_errors_supported = yes; then
52044	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52045        else
52046	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52047        fi
52048	# Put the nasty error message in config.log where it belongs
52049	echo "$CUDA_PKG_ERRORS" >&5
52050
52051	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52052$as_echo "no" >&6; }
52053
52054                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52055$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52056elif test $pkg_failed = untried; then
52057
52058                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52059$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52060else
52061	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52062	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52064$as_echo "yes" >&6; }
52065	:
52066fi
52067else
52068	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52069	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52071$as_echo "yes" >&6; }
52072	:
52073fi
52074elif test $pkg_failed = untried; then
52075
52076
52077pkg_failed=no
52078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52079$as_echo_n "checking for CUDA... " >&6; }
52080
52081if test -n "$PKG_CONFIG"; then
52082    if test -n "$CUDA_CFLAGS"; then
52083        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52084    else
52085        if test -n "$PKG_CONFIG" && \
52086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52087  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52088  ac_status=$?
52089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52090  test $ac_status = 0; }; then
52091  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
52092else
52093  pkg_failed=yes
52094fi
52095    fi
52096else
52097	pkg_failed=untried
52098fi
52099if test -n "$PKG_CONFIG"; then
52100    if test -n "$CUDA_LIBS"; then
52101        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52102    else
52103        if test -n "$PKG_CONFIG" && \
52104    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52105  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52106  ac_status=$?
52107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52108  test $ac_status = 0; }; then
52109  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
52110else
52111  pkg_failed=yes
52112fi
52113    fi
52114else
52115	pkg_failed=untried
52116fi
52117
52118
52119
52120if test $pkg_failed = yes; then
52121
52122if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52123        _pkg_short_errors_supported=yes
52124else
52125        _pkg_short_errors_supported=no
52126fi
52127        if test $_pkg_short_errors_supported = yes; then
52128	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52129        else
52130	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52131        fi
52132	# Put the nasty error message in config.log where it belongs
52133	echo "$CUDA_PKG_ERRORS" >&5
52134
52135	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52136$as_echo "no" >&6; }
52137
52138
52139pkg_failed=no
52140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52141$as_echo_n "checking for CUDA... " >&6; }
52142
52143if test -n "$PKG_CONFIG"; then
52144    if test -n "$CUDA_CFLAGS"; then
52145        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52146    else
52147        if test -n "$PKG_CONFIG" && \
52148    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52149  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52150  ac_status=$?
52151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52152  test $ac_status = 0; }; then
52153  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52154else
52155  pkg_failed=yes
52156fi
52157    fi
52158else
52159	pkg_failed=untried
52160fi
52161if test -n "$PKG_CONFIG"; then
52162    if test -n "$CUDA_LIBS"; then
52163        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52164    else
52165        if test -n "$PKG_CONFIG" && \
52166    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52167  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52168  ac_status=$?
52169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52170  test $ac_status = 0; }; then
52171  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52172else
52173  pkg_failed=yes
52174fi
52175    fi
52176else
52177	pkg_failed=untried
52178fi
52179
52180
52181
52182if test $pkg_failed = yes; then
52183
52184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52185        _pkg_short_errors_supported=yes
52186else
52187        _pkg_short_errors_supported=no
52188fi
52189        if test $_pkg_short_errors_supported = yes; then
52190	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52191        else
52192	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52193        fi
52194	# Put the nasty error message in config.log where it belongs
52195	echo "$CUDA_PKG_ERRORS" >&5
52196
52197	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52198$as_echo "no" >&6; }
52199
52200                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52201$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52202elif test $pkg_failed = untried; then
52203
52204                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52205$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52206else
52207	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52208	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52209        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52210$as_echo "yes" >&6; }
52211	:
52212fi
52213elif test $pkg_failed = untried; then
52214
52215
52216pkg_failed=no
52217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52218$as_echo_n "checking for CUDA... " >&6; }
52219
52220if test -n "$PKG_CONFIG"; then
52221    if test -n "$CUDA_CFLAGS"; then
52222        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52223    else
52224        if test -n "$PKG_CONFIG" && \
52225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52226  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52227  ac_status=$?
52228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52229  test $ac_status = 0; }; then
52230  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52231else
52232  pkg_failed=yes
52233fi
52234    fi
52235else
52236	pkg_failed=untried
52237fi
52238if test -n "$PKG_CONFIG"; then
52239    if test -n "$CUDA_LIBS"; then
52240        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52241    else
52242        if test -n "$PKG_CONFIG" && \
52243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52244  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52245  ac_status=$?
52246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52247  test $ac_status = 0; }; then
52248  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52249else
52250  pkg_failed=yes
52251fi
52252    fi
52253else
52254	pkg_failed=untried
52255fi
52256
52257
52258
52259if test $pkg_failed = yes; then
52260
52261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52262        _pkg_short_errors_supported=yes
52263else
52264        _pkg_short_errors_supported=no
52265fi
52266        if test $_pkg_short_errors_supported = yes; then
52267	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52268        else
52269	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52270        fi
52271	# Put the nasty error message in config.log where it belongs
52272	echo "$CUDA_PKG_ERRORS" >&5
52273
52274	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52275$as_echo "no" >&6; }
52276
52277                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52278$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52279elif test $pkg_failed = untried; then
52280
52281                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52282$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52283else
52284	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52285	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52287$as_echo "yes" >&6; }
52288	:
52289fi
52290else
52291	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52292	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52294$as_echo "yes" >&6; }
52295	:
52296fi
52297else
52298	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52299	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52301$as_echo "yes" >&6; }
52302	:
52303fi
52304elif test $pkg_failed = untried; then
52305
52306
52307pkg_failed=no
52308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52309$as_echo_n "checking for CUDA... " >&6; }
52310
52311if test -n "$PKG_CONFIG"; then
52312    if test -n "$CUDA_CFLAGS"; then
52313        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52314    else
52315        if test -n "$PKG_CONFIG" && \
52316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
52317  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
52318  ac_status=$?
52319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52320  test $ac_status = 0; }; then
52321  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
52322else
52323  pkg_failed=yes
52324fi
52325    fi
52326else
52327	pkg_failed=untried
52328fi
52329if test -n "$PKG_CONFIG"; then
52330    if test -n "$CUDA_LIBS"; then
52331        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52332    else
52333        if test -n "$PKG_CONFIG" && \
52334    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
52335  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
52336  ac_status=$?
52337  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52338  test $ac_status = 0; }; then
52339  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
52340else
52341  pkg_failed=yes
52342fi
52343    fi
52344else
52345	pkg_failed=untried
52346fi
52347
52348
52349
52350if test $pkg_failed = yes; then
52351
52352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52353        _pkg_short_errors_supported=yes
52354else
52355        _pkg_short_errors_supported=no
52356fi
52357        if test $_pkg_short_errors_supported = yes; then
52358	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
52359        else
52360	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
52361        fi
52362	# Put the nasty error message in config.log where it belongs
52363	echo "$CUDA_PKG_ERRORS" >&5
52364
52365	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52366$as_echo "no" >&6; }
52367
52368
52369pkg_failed=no
52370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52371$as_echo_n "checking for CUDA... " >&6; }
52372
52373if test -n "$PKG_CONFIG"; then
52374    if test -n "$CUDA_CFLAGS"; then
52375        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52376    else
52377        if test -n "$PKG_CONFIG" && \
52378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52379  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52380  ac_status=$?
52381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52382  test $ac_status = 0; }; then
52383  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
52384else
52385  pkg_failed=yes
52386fi
52387    fi
52388else
52389	pkg_failed=untried
52390fi
52391if test -n "$PKG_CONFIG"; then
52392    if test -n "$CUDA_LIBS"; then
52393        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52394    else
52395        if test -n "$PKG_CONFIG" && \
52396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52397  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52398  ac_status=$?
52399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52400  test $ac_status = 0; }; then
52401  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
52402else
52403  pkg_failed=yes
52404fi
52405    fi
52406else
52407	pkg_failed=untried
52408fi
52409
52410
52411
52412if test $pkg_failed = yes; then
52413
52414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52415        _pkg_short_errors_supported=yes
52416else
52417        _pkg_short_errors_supported=no
52418fi
52419        if test $_pkg_short_errors_supported = yes; then
52420	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52421        else
52422	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52423        fi
52424	# Put the nasty error message in config.log where it belongs
52425	echo "$CUDA_PKG_ERRORS" >&5
52426
52427	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52428$as_echo "no" >&6; }
52429
52430
52431pkg_failed=no
52432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52433$as_echo_n "checking for CUDA... " >&6; }
52434
52435if test -n "$PKG_CONFIG"; then
52436    if test -n "$CUDA_CFLAGS"; then
52437        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52438    else
52439        if test -n "$PKG_CONFIG" && \
52440    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52441  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52442  ac_status=$?
52443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52444  test $ac_status = 0; }; then
52445  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52446else
52447  pkg_failed=yes
52448fi
52449    fi
52450else
52451	pkg_failed=untried
52452fi
52453if test -n "$PKG_CONFIG"; then
52454    if test -n "$CUDA_LIBS"; then
52455        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52456    else
52457        if test -n "$PKG_CONFIG" && \
52458    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52459  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52460  ac_status=$?
52461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52462  test $ac_status = 0; }; then
52463  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52464else
52465  pkg_failed=yes
52466fi
52467    fi
52468else
52469	pkg_failed=untried
52470fi
52471
52472
52473
52474if test $pkg_failed = yes; then
52475
52476if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52477        _pkg_short_errors_supported=yes
52478else
52479        _pkg_short_errors_supported=no
52480fi
52481        if test $_pkg_short_errors_supported = yes; then
52482	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52483        else
52484	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52485        fi
52486	# Put the nasty error message in config.log where it belongs
52487	echo "$CUDA_PKG_ERRORS" >&5
52488
52489	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52490$as_echo "no" >&6; }
52491
52492                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52493$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52494elif test $pkg_failed = untried; then
52495
52496                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52497$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52498else
52499	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52500	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52501        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52502$as_echo "yes" >&6; }
52503	:
52504fi
52505elif test $pkg_failed = untried; then
52506
52507
52508pkg_failed=no
52509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52510$as_echo_n "checking for CUDA... " >&6; }
52511
52512if test -n "$PKG_CONFIG"; then
52513    if test -n "$CUDA_CFLAGS"; then
52514        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52515    else
52516        if test -n "$PKG_CONFIG" && \
52517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52518  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52519  ac_status=$?
52520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52521  test $ac_status = 0; }; then
52522  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52523else
52524  pkg_failed=yes
52525fi
52526    fi
52527else
52528	pkg_failed=untried
52529fi
52530if test -n "$PKG_CONFIG"; then
52531    if test -n "$CUDA_LIBS"; then
52532        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52533    else
52534        if test -n "$PKG_CONFIG" && \
52535    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52536  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52537  ac_status=$?
52538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52539  test $ac_status = 0; }; then
52540  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52541else
52542  pkg_failed=yes
52543fi
52544    fi
52545else
52546	pkg_failed=untried
52547fi
52548
52549
52550
52551if test $pkg_failed = yes; then
52552
52553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52554        _pkg_short_errors_supported=yes
52555else
52556        _pkg_short_errors_supported=no
52557fi
52558        if test $_pkg_short_errors_supported = yes; then
52559	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52560        else
52561	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52562        fi
52563	# Put the nasty error message in config.log where it belongs
52564	echo "$CUDA_PKG_ERRORS" >&5
52565
52566	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52567$as_echo "no" >&6; }
52568
52569                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52570$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52571elif test $pkg_failed = untried; then
52572
52573                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52574$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52575else
52576	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52577	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52579$as_echo "yes" >&6; }
52580	:
52581fi
52582else
52583	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52584	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52586$as_echo "yes" >&6; }
52587	:
52588fi
52589elif test $pkg_failed = untried; then
52590
52591
52592pkg_failed=no
52593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52594$as_echo_n "checking for CUDA... " >&6; }
52595
52596if test -n "$PKG_CONFIG"; then
52597    if test -n "$CUDA_CFLAGS"; then
52598        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52599    else
52600        if test -n "$PKG_CONFIG" && \
52601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52602  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52603  ac_status=$?
52604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52605  test $ac_status = 0; }; then
52606  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
52607else
52608  pkg_failed=yes
52609fi
52610    fi
52611else
52612	pkg_failed=untried
52613fi
52614if test -n "$PKG_CONFIG"; then
52615    if test -n "$CUDA_LIBS"; then
52616        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52617    else
52618        if test -n "$PKG_CONFIG" && \
52619    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52620  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52621  ac_status=$?
52622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52623  test $ac_status = 0; }; then
52624  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
52625else
52626  pkg_failed=yes
52627fi
52628    fi
52629else
52630	pkg_failed=untried
52631fi
52632
52633
52634
52635if test $pkg_failed = yes; then
52636
52637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52638        _pkg_short_errors_supported=yes
52639else
52640        _pkg_short_errors_supported=no
52641fi
52642        if test $_pkg_short_errors_supported = yes; then
52643	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52644        else
52645	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
52646        fi
52647	# Put the nasty error message in config.log where it belongs
52648	echo "$CUDA_PKG_ERRORS" >&5
52649
52650	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52651$as_echo "no" >&6; }
52652
52653
52654pkg_failed=no
52655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52656$as_echo_n "checking for CUDA... " >&6; }
52657
52658if test -n "$PKG_CONFIG"; then
52659    if test -n "$CUDA_CFLAGS"; then
52660        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52661    else
52662        if test -n "$PKG_CONFIG" && \
52663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52664  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52665  ac_status=$?
52666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52667  test $ac_status = 0; }; then
52668  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52669else
52670  pkg_failed=yes
52671fi
52672    fi
52673else
52674	pkg_failed=untried
52675fi
52676if test -n "$PKG_CONFIG"; then
52677    if test -n "$CUDA_LIBS"; then
52678        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52679    else
52680        if test -n "$PKG_CONFIG" && \
52681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52682  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52683  ac_status=$?
52684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52685  test $ac_status = 0; }; then
52686  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52687else
52688  pkg_failed=yes
52689fi
52690    fi
52691else
52692	pkg_failed=untried
52693fi
52694
52695
52696
52697if test $pkg_failed = yes; then
52698
52699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52700        _pkg_short_errors_supported=yes
52701else
52702        _pkg_short_errors_supported=no
52703fi
52704        if test $_pkg_short_errors_supported = yes; then
52705	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52706        else
52707	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52708        fi
52709	# Put the nasty error message in config.log where it belongs
52710	echo "$CUDA_PKG_ERRORS" >&5
52711
52712	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52713$as_echo "no" >&6; }
52714
52715                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52716$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52717elif test $pkg_failed = untried; then
52718
52719                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52720$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52721else
52722	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52723	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52725$as_echo "yes" >&6; }
52726	:
52727fi
52728elif test $pkg_failed = untried; then
52729
52730
52731pkg_failed=no
52732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52733$as_echo_n "checking for CUDA... " >&6; }
52734
52735if test -n "$PKG_CONFIG"; then
52736    if test -n "$CUDA_CFLAGS"; then
52737        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52738    else
52739        if test -n "$PKG_CONFIG" && \
52740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52741  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52742  ac_status=$?
52743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52744  test $ac_status = 0; }; then
52745  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
52746else
52747  pkg_failed=yes
52748fi
52749    fi
52750else
52751	pkg_failed=untried
52752fi
52753if test -n "$PKG_CONFIG"; then
52754    if test -n "$CUDA_LIBS"; then
52755        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52756    else
52757        if test -n "$PKG_CONFIG" && \
52758    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
52759  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
52760  ac_status=$?
52761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52762  test $ac_status = 0; }; then
52763  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
52764else
52765  pkg_failed=yes
52766fi
52767    fi
52768else
52769	pkg_failed=untried
52770fi
52771
52772
52773
52774if test $pkg_failed = yes; then
52775
52776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52777        _pkg_short_errors_supported=yes
52778else
52779        _pkg_short_errors_supported=no
52780fi
52781        if test $_pkg_short_errors_supported = yes; then
52782	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52783        else
52784	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
52785        fi
52786	# Put the nasty error message in config.log where it belongs
52787	echo "$CUDA_PKG_ERRORS" >&5
52788
52789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52790$as_echo "no" >&6; }
52791
52792                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52793$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52794elif test $pkg_failed = untried; then
52795
52796                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
52797$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
52798else
52799	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52800	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52802$as_echo "yes" >&6; }
52803	:
52804fi
52805else
52806	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52807	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52808        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52809$as_echo "yes" >&6; }
52810	:
52811fi
52812else
52813	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52814	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52815        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52816$as_echo "yes" >&6; }
52817	:
52818fi
52819else
52820	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
52821	CUDA_LIBS=$pkg_cv_CUDA_LIBS
52822        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52823$as_echo "yes" >&6; }
52824	:
52825fi
52826elif test $pkg_failed = untried; then
52827
52828
52829pkg_failed=no
52830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52831$as_echo_n "checking for CUDA... " >&6; }
52832
52833if test -n "$PKG_CONFIG"; then
52834    if test -n "$CUDA_CFLAGS"; then
52835        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52836    else
52837        if test -n "$PKG_CONFIG" && \
52838    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
52839  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
52840  ac_status=$?
52841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52842  test $ac_status = 0; }; then
52843  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
52844else
52845  pkg_failed=yes
52846fi
52847    fi
52848else
52849	pkg_failed=untried
52850fi
52851if test -n "$PKG_CONFIG"; then
52852    if test -n "$CUDA_LIBS"; then
52853        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52854    else
52855        if test -n "$PKG_CONFIG" && \
52856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
52857  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
52858  ac_status=$?
52859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52860  test $ac_status = 0; }; then
52861  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
52862else
52863  pkg_failed=yes
52864fi
52865    fi
52866else
52867	pkg_failed=untried
52868fi
52869
52870
52871
52872if test $pkg_failed = yes; then
52873
52874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52875        _pkg_short_errors_supported=yes
52876else
52877        _pkg_short_errors_supported=no
52878fi
52879        if test $_pkg_short_errors_supported = yes; then
52880	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
52881        else
52882	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
52883        fi
52884	# Put the nasty error message in config.log where it belongs
52885	echo "$CUDA_PKG_ERRORS" >&5
52886
52887	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52888$as_echo "no" >&6; }
52889
52890
52891pkg_failed=no
52892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52893$as_echo_n "checking for CUDA... " >&6; }
52894
52895if test -n "$PKG_CONFIG"; then
52896    if test -n "$CUDA_CFLAGS"; then
52897        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52898    else
52899        if test -n "$PKG_CONFIG" && \
52900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
52901  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
52902  ac_status=$?
52903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52904  test $ac_status = 0; }; then
52905  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
52906else
52907  pkg_failed=yes
52908fi
52909    fi
52910else
52911	pkg_failed=untried
52912fi
52913if test -n "$PKG_CONFIG"; then
52914    if test -n "$CUDA_LIBS"; then
52915        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52916    else
52917        if test -n "$PKG_CONFIG" && \
52918    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
52919  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
52920  ac_status=$?
52921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52922  test $ac_status = 0; }; then
52923  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
52924else
52925  pkg_failed=yes
52926fi
52927    fi
52928else
52929	pkg_failed=untried
52930fi
52931
52932
52933
52934if test $pkg_failed = yes; then
52935
52936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52937        _pkg_short_errors_supported=yes
52938else
52939        _pkg_short_errors_supported=no
52940fi
52941        if test $_pkg_short_errors_supported = yes; then
52942	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
52943        else
52944	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
52945        fi
52946	# Put the nasty error message in config.log where it belongs
52947	echo "$CUDA_PKG_ERRORS" >&5
52948
52949	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52950$as_echo "no" >&6; }
52951
52952
52953pkg_failed=no
52954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
52955$as_echo_n "checking for CUDA... " >&6; }
52956
52957if test -n "$PKG_CONFIG"; then
52958    if test -n "$CUDA_CFLAGS"; then
52959        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
52960    else
52961        if test -n "$PKG_CONFIG" && \
52962    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52963  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52964  ac_status=$?
52965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52966  test $ac_status = 0; }; then
52967  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
52968else
52969  pkg_failed=yes
52970fi
52971    fi
52972else
52973	pkg_failed=untried
52974fi
52975if test -n "$PKG_CONFIG"; then
52976    if test -n "$CUDA_LIBS"; then
52977        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
52978    else
52979        if test -n "$PKG_CONFIG" && \
52980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
52981  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
52982  ac_status=$?
52983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52984  test $ac_status = 0; }; then
52985  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
52986else
52987  pkg_failed=yes
52988fi
52989    fi
52990else
52991	pkg_failed=untried
52992fi
52993
52994
52995
52996if test $pkg_failed = yes; then
52997
52998if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52999        _pkg_short_errors_supported=yes
53000else
53001        _pkg_short_errors_supported=no
53002fi
53003        if test $_pkg_short_errors_supported = yes; then
53004	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53005        else
53006	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53007        fi
53008	# Put the nasty error message in config.log where it belongs
53009	echo "$CUDA_PKG_ERRORS" >&5
53010
53011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53012$as_echo "no" >&6; }
53013
53014
53015pkg_failed=no
53016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53017$as_echo_n "checking for CUDA... " >&6; }
53018
53019if test -n "$PKG_CONFIG"; then
53020    if test -n "$CUDA_CFLAGS"; then
53021        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53022    else
53023        if test -n "$PKG_CONFIG" && \
53024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53025  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53026  ac_status=$?
53027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53028  test $ac_status = 0; }; then
53029  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53030else
53031  pkg_failed=yes
53032fi
53033    fi
53034else
53035	pkg_failed=untried
53036fi
53037if test -n "$PKG_CONFIG"; then
53038    if test -n "$CUDA_LIBS"; then
53039        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53040    else
53041        if test -n "$PKG_CONFIG" && \
53042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53043  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53044  ac_status=$?
53045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53046  test $ac_status = 0; }; then
53047  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53048else
53049  pkg_failed=yes
53050fi
53051    fi
53052else
53053	pkg_failed=untried
53054fi
53055
53056
53057
53058if test $pkg_failed = yes; then
53059
53060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53061        _pkg_short_errors_supported=yes
53062else
53063        _pkg_short_errors_supported=no
53064fi
53065        if test $_pkg_short_errors_supported = yes; then
53066	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53067        else
53068	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53069        fi
53070	# Put the nasty error message in config.log where it belongs
53071	echo "$CUDA_PKG_ERRORS" >&5
53072
53073	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53074$as_echo "no" >&6; }
53075
53076                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53077$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53078elif test $pkg_failed = untried; then
53079
53080                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53081$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53082else
53083	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53084	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53085        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53086$as_echo "yes" >&6; }
53087	:
53088fi
53089elif test $pkg_failed = untried; then
53090
53091
53092pkg_failed=no
53093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53094$as_echo_n "checking for CUDA... " >&6; }
53095
53096if test -n "$PKG_CONFIG"; then
53097    if test -n "$CUDA_CFLAGS"; then
53098        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53099    else
53100        if test -n "$PKG_CONFIG" && \
53101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53102  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53103  ac_status=$?
53104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53105  test $ac_status = 0; }; then
53106  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53107else
53108  pkg_failed=yes
53109fi
53110    fi
53111else
53112	pkg_failed=untried
53113fi
53114if test -n "$PKG_CONFIG"; then
53115    if test -n "$CUDA_LIBS"; then
53116        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53117    else
53118        if test -n "$PKG_CONFIG" && \
53119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53120  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53121  ac_status=$?
53122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53123  test $ac_status = 0; }; then
53124  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53125else
53126  pkg_failed=yes
53127fi
53128    fi
53129else
53130	pkg_failed=untried
53131fi
53132
53133
53134
53135if test $pkg_failed = yes; then
53136
53137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53138        _pkg_short_errors_supported=yes
53139else
53140        _pkg_short_errors_supported=no
53141fi
53142        if test $_pkg_short_errors_supported = yes; then
53143	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53144        else
53145	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53146        fi
53147	# Put the nasty error message in config.log where it belongs
53148	echo "$CUDA_PKG_ERRORS" >&5
53149
53150	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53151$as_echo "no" >&6; }
53152
53153                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53154$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53155elif test $pkg_failed = untried; then
53156
53157                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53158$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53159else
53160	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53161	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53163$as_echo "yes" >&6; }
53164	:
53165fi
53166else
53167	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53168	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53170$as_echo "yes" >&6; }
53171	:
53172fi
53173elif test $pkg_failed = untried; then
53174
53175
53176pkg_failed=no
53177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53178$as_echo_n "checking for CUDA... " >&6; }
53179
53180if test -n "$PKG_CONFIG"; then
53181    if test -n "$CUDA_CFLAGS"; then
53182        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53183    else
53184        if test -n "$PKG_CONFIG" && \
53185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53186  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53187  ac_status=$?
53188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53189  test $ac_status = 0; }; then
53190  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
53191else
53192  pkg_failed=yes
53193fi
53194    fi
53195else
53196	pkg_failed=untried
53197fi
53198if test -n "$PKG_CONFIG"; then
53199    if test -n "$CUDA_LIBS"; then
53200        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53201    else
53202        if test -n "$PKG_CONFIG" && \
53203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53204  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53205  ac_status=$?
53206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53207  test $ac_status = 0; }; then
53208  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
53209else
53210  pkg_failed=yes
53211fi
53212    fi
53213else
53214	pkg_failed=untried
53215fi
53216
53217
53218
53219if test $pkg_failed = yes; then
53220
53221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53222        _pkg_short_errors_supported=yes
53223else
53224        _pkg_short_errors_supported=no
53225fi
53226        if test $_pkg_short_errors_supported = yes; then
53227	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53228        else
53229	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53230        fi
53231	# Put the nasty error message in config.log where it belongs
53232	echo "$CUDA_PKG_ERRORS" >&5
53233
53234	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53235$as_echo "no" >&6; }
53236
53237
53238pkg_failed=no
53239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53240$as_echo_n "checking for CUDA... " >&6; }
53241
53242if test -n "$PKG_CONFIG"; then
53243    if test -n "$CUDA_CFLAGS"; then
53244        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53245    else
53246        if test -n "$PKG_CONFIG" && \
53247    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53248  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53249  ac_status=$?
53250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53251  test $ac_status = 0; }; then
53252  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53253else
53254  pkg_failed=yes
53255fi
53256    fi
53257else
53258	pkg_failed=untried
53259fi
53260if test -n "$PKG_CONFIG"; then
53261    if test -n "$CUDA_LIBS"; then
53262        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53263    else
53264        if test -n "$PKG_CONFIG" && \
53265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53266  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53267  ac_status=$?
53268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53269  test $ac_status = 0; }; then
53270  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53271else
53272  pkg_failed=yes
53273fi
53274    fi
53275else
53276	pkg_failed=untried
53277fi
53278
53279
53280
53281if test $pkg_failed = yes; then
53282
53283if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53284        _pkg_short_errors_supported=yes
53285else
53286        _pkg_short_errors_supported=no
53287fi
53288        if test $_pkg_short_errors_supported = yes; then
53289	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53290        else
53291	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53292        fi
53293	# Put the nasty error message in config.log where it belongs
53294	echo "$CUDA_PKG_ERRORS" >&5
53295
53296	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53297$as_echo "no" >&6; }
53298
53299                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53300$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53301elif test $pkg_failed = untried; then
53302
53303                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53304$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53305else
53306	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53307	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53308        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53309$as_echo "yes" >&6; }
53310	:
53311fi
53312elif test $pkg_failed = untried; then
53313
53314
53315pkg_failed=no
53316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53317$as_echo_n "checking for CUDA... " >&6; }
53318
53319if test -n "$PKG_CONFIG"; then
53320    if test -n "$CUDA_CFLAGS"; then
53321        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53322    else
53323        if test -n "$PKG_CONFIG" && \
53324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53325  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53326  ac_status=$?
53327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53328  test $ac_status = 0; }; then
53329  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53330else
53331  pkg_failed=yes
53332fi
53333    fi
53334else
53335	pkg_failed=untried
53336fi
53337if test -n "$PKG_CONFIG"; then
53338    if test -n "$CUDA_LIBS"; then
53339        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53340    else
53341        if test -n "$PKG_CONFIG" && \
53342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53343  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53344  ac_status=$?
53345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53346  test $ac_status = 0; }; then
53347  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53348else
53349  pkg_failed=yes
53350fi
53351    fi
53352else
53353	pkg_failed=untried
53354fi
53355
53356
53357
53358if test $pkg_failed = yes; then
53359
53360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53361        _pkg_short_errors_supported=yes
53362else
53363        _pkg_short_errors_supported=no
53364fi
53365        if test $_pkg_short_errors_supported = yes; then
53366	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53367        else
53368	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53369        fi
53370	# Put the nasty error message in config.log where it belongs
53371	echo "$CUDA_PKG_ERRORS" >&5
53372
53373	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53374$as_echo "no" >&6; }
53375
53376                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53377$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53378elif test $pkg_failed = untried; then
53379
53380                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53381$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53382else
53383	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53384	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53386$as_echo "yes" >&6; }
53387	:
53388fi
53389else
53390	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53391	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53393$as_echo "yes" >&6; }
53394	:
53395fi
53396else
53397	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53398	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53399        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53400$as_echo "yes" >&6; }
53401	:
53402fi
53403elif test $pkg_failed = untried; then
53404
53405
53406pkg_failed=no
53407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53408$as_echo_n "checking for CUDA... " >&6; }
53409
53410if test -n "$PKG_CONFIG"; then
53411    if test -n "$CUDA_CFLAGS"; then
53412        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53413    else
53414        if test -n "$PKG_CONFIG" && \
53415    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
53416  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
53417  ac_status=$?
53418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53419  test $ac_status = 0; }; then
53420  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
53421else
53422  pkg_failed=yes
53423fi
53424    fi
53425else
53426	pkg_failed=untried
53427fi
53428if test -n "$PKG_CONFIG"; then
53429    if test -n "$CUDA_LIBS"; then
53430        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53431    else
53432        if test -n "$PKG_CONFIG" && \
53433    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
53434  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
53435  ac_status=$?
53436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53437  test $ac_status = 0; }; then
53438  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
53439else
53440  pkg_failed=yes
53441fi
53442    fi
53443else
53444	pkg_failed=untried
53445fi
53446
53447
53448
53449if test $pkg_failed = yes; then
53450
53451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53452        _pkg_short_errors_supported=yes
53453else
53454        _pkg_short_errors_supported=no
53455fi
53456        if test $_pkg_short_errors_supported = yes; then
53457	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
53458        else
53459	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
53460        fi
53461	# Put the nasty error message in config.log where it belongs
53462	echo "$CUDA_PKG_ERRORS" >&5
53463
53464	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53465$as_echo "no" >&6; }
53466
53467
53468pkg_failed=no
53469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53470$as_echo_n "checking for CUDA... " >&6; }
53471
53472if test -n "$PKG_CONFIG"; then
53473    if test -n "$CUDA_CFLAGS"; then
53474        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53475    else
53476        if test -n "$PKG_CONFIG" && \
53477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53478  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53479  ac_status=$?
53480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53481  test $ac_status = 0; }; then
53482  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
53483else
53484  pkg_failed=yes
53485fi
53486    fi
53487else
53488	pkg_failed=untried
53489fi
53490if test -n "$PKG_CONFIG"; then
53491    if test -n "$CUDA_LIBS"; then
53492        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53493    else
53494        if test -n "$PKG_CONFIG" && \
53495    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53496  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53497  ac_status=$?
53498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53499  test $ac_status = 0; }; then
53500  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
53501else
53502  pkg_failed=yes
53503fi
53504    fi
53505else
53506	pkg_failed=untried
53507fi
53508
53509
53510
53511if test $pkg_failed = yes; then
53512
53513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53514        _pkg_short_errors_supported=yes
53515else
53516        _pkg_short_errors_supported=no
53517fi
53518        if test $_pkg_short_errors_supported = yes; then
53519	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53520        else
53521	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53522        fi
53523	# Put the nasty error message in config.log where it belongs
53524	echo "$CUDA_PKG_ERRORS" >&5
53525
53526	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53527$as_echo "no" >&6; }
53528
53529
53530pkg_failed=no
53531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53532$as_echo_n "checking for CUDA... " >&6; }
53533
53534if test -n "$PKG_CONFIG"; then
53535    if test -n "$CUDA_CFLAGS"; then
53536        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53537    else
53538        if test -n "$PKG_CONFIG" && \
53539    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53540  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53541  ac_status=$?
53542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53543  test $ac_status = 0; }; then
53544  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53545else
53546  pkg_failed=yes
53547fi
53548    fi
53549else
53550	pkg_failed=untried
53551fi
53552if test -n "$PKG_CONFIG"; then
53553    if test -n "$CUDA_LIBS"; then
53554        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53555    else
53556        if test -n "$PKG_CONFIG" && \
53557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53558  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53559  ac_status=$?
53560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53561  test $ac_status = 0; }; then
53562  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53563else
53564  pkg_failed=yes
53565fi
53566    fi
53567else
53568	pkg_failed=untried
53569fi
53570
53571
53572
53573if test $pkg_failed = yes; then
53574
53575if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53576        _pkg_short_errors_supported=yes
53577else
53578        _pkg_short_errors_supported=no
53579fi
53580        if test $_pkg_short_errors_supported = yes; then
53581	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53582        else
53583	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53584        fi
53585	# Put the nasty error message in config.log where it belongs
53586	echo "$CUDA_PKG_ERRORS" >&5
53587
53588	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53589$as_echo "no" >&6; }
53590
53591                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53592$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53593elif test $pkg_failed = untried; then
53594
53595                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53596$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53597else
53598	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53599	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53601$as_echo "yes" >&6; }
53602	:
53603fi
53604elif test $pkg_failed = untried; then
53605
53606
53607pkg_failed=no
53608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53609$as_echo_n "checking for CUDA... " >&6; }
53610
53611if test -n "$PKG_CONFIG"; then
53612    if test -n "$CUDA_CFLAGS"; then
53613        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53614    else
53615        if test -n "$PKG_CONFIG" && \
53616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53617  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53618  ac_status=$?
53619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53620  test $ac_status = 0; }; then
53621  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53622else
53623  pkg_failed=yes
53624fi
53625    fi
53626else
53627	pkg_failed=untried
53628fi
53629if test -n "$PKG_CONFIG"; then
53630    if test -n "$CUDA_LIBS"; then
53631        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53632    else
53633        if test -n "$PKG_CONFIG" && \
53634    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53635  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53636  ac_status=$?
53637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53638  test $ac_status = 0; }; then
53639  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53640else
53641  pkg_failed=yes
53642fi
53643    fi
53644else
53645	pkg_failed=untried
53646fi
53647
53648
53649
53650if test $pkg_failed = yes; then
53651
53652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53653        _pkg_short_errors_supported=yes
53654else
53655        _pkg_short_errors_supported=no
53656fi
53657        if test $_pkg_short_errors_supported = yes; then
53658	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53659        else
53660	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53661        fi
53662	# Put the nasty error message in config.log where it belongs
53663	echo "$CUDA_PKG_ERRORS" >&5
53664
53665	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53666$as_echo "no" >&6; }
53667
53668                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53669$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53670elif test $pkg_failed = untried; then
53671
53672                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53673$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53674else
53675	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53676	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53678$as_echo "yes" >&6; }
53679	:
53680fi
53681else
53682	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53683	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53685$as_echo "yes" >&6; }
53686	:
53687fi
53688elif test $pkg_failed = untried; then
53689
53690
53691pkg_failed=no
53692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53693$as_echo_n "checking for CUDA... " >&6; }
53694
53695if test -n "$PKG_CONFIG"; then
53696    if test -n "$CUDA_CFLAGS"; then
53697        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53698    else
53699        if test -n "$PKG_CONFIG" && \
53700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53701  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53702  ac_status=$?
53703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53704  test $ac_status = 0; }; then
53705  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
53706else
53707  pkg_failed=yes
53708fi
53709    fi
53710else
53711	pkg_failed=untried
53712fi
53713if test -n "$PKG_CONFIG"; then
53714    if test -n "$CUDA_LIBS"; then
53715        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53716    else
53717        if test -n "$PKG_CONFIG" && \
53718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
53719  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
53720  ac_status=$?
53721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53722  test $ac_status = 0; }; then
53723  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
53724else
53725  pkg_failed=yes
53726fi
53727    fi
53728else
53729	pkg_failed=untried
53730fi
53731
53732
53733
53734if test $pkg_failed = yes; then
53735
53736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53737        _pkg_short_errors_supported=yes
53738else
53739        _pkg_short_errors_supported=no
53740fi
53741        if test $_pkg_short_errors_supported = yes; then
53742	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53743        else
53744	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
53745        fi
53746	# Put the nasty error message in config.log where it belongs
53747	echo "$CUDA_PKG_ERRORS" >&5
53748
53749	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53750$as_echo "no" >&6; }
53751
53752
53753pkg_failed=no
53754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53755$as_echo_n "checking for CUDA... " >&6; }
53756
53757if test -n "$PKG_CONFIG"; then
53758    if test -n "$CUDA_CFLAGS"; then
53759        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53760    else
53761        if test -n "$PKG_CONFIG" && \
53762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53763  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53764  ac_status=$?
53765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53766  test $ac_status = 0; }; then
53767  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53768else
53769  pkg_failed=yes
53770fi
53771    fi
53772else
53773	pkg_failed=untried
53774fi
53775if test -n "$PKG_CONFIG"; then
53776    if test -n "$CUDA_LIBS"; then
53777        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53778    else
53779        if test -n "$PKG_CONFIG" && \
53780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53781  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53782  ac_status=$?
53783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53784  test $ac_status = 0; }; then
53785  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53786else
53787  pkg_failed=yes
53788fi
53789    fi
53790else
53791	pkg_failed=untried
53792fi
53793
53794
53795
53796if test $pkg_failed = yes; then
53797
53798if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53799        _pkg_short_errors_supported=yes
53800else
53801        _pkg_short_errors_supported=no
53802fi
53803        if test $_pkg_short_errors_supported = yes; then
53804	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53805        else
53806	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53807        fi
53808	# Put the nasty error message in config.log where it belongs
53809	echo "$CUDA_PKG_ERRORS" >&5
53810
53811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53812$as_echo "no" >&6; }
53813
53814                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53815$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53816elif test $pkg_failed = untried; then
53817
53818                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53819$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53820else
53821	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53822	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53823        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53824$as_echo "yes" >&6; }
53825	:
53826fi
53827elif test $pkg_failed = untried; then
53828
53829
53830pkg_failed=no
53831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53832$as_echo_n "checking for CUDA... " >&6; }
53833
53834if test -n "$PKG_CONFIG"; then
53835    if test -n "$CUDA_CFLAGS"; then
53836        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53837    else
53838        if test -n "$PKG_CONFIG" && \
53839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53840  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53841  ac_status=$?
53842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53843  test $ac_status = 0; }; then
53844  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
53845else
53846  pkg_failed=yes
53847fi
53848    fi
53849else
53850	pkg_failed=untried
53851fi
53852if test -n "$PKG_CONFIG"; then
53853    if test -n "$CUDA_LIBS"; then
53854        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53855    else
53856        if test -n "$PKG_CONFIG" && \
53857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
53858  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
53859  ac_status=$?
53860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53861  test $ac_status = 0; }; then
53862  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
53863else
53864  pkg_failed=yes
53865fi
53866    fi
53867else
53868	pkg_failed=untried
53869fi
53870
53871
53872
53873if test $pkg_failed = yes; then
53874
53875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53876        _pkg_short_errors_supported=yes
53877else
53878        _pkg_short_errors_supported=no
53879fi
53880        if test $_pkg_short_errors_supported = yes; then
53881	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53882        else
53883	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
53884        fi
53885	# Put the nasty error message in config.log where it belongs
53886	echo "$CUDA_PKG_ERRORS" >&5
53887
53888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53889$as_echo "no" >&6; }
53890
53891                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53892$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53893elif test $pkg_failed = untried; then
53894
53895                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
53896$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
53897else
53898	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53899	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53901$as_echo "yes" >&6; }
53902	:
53903fi
53904else
53905	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53906	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53908$as_echo "yes" >&6; }
53909	:
53910fi
53911else
53912	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53913	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53915$as_echo "yes" >&6; }
53916	:
53917fi
53918else
53919	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53920	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53921        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53922$as_echo "yes" >&6; }
53923	:
53924fi
53925else
53926	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53927	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53928        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53929$as_echo "yes" >&6; }
53930	:
53931fi
53932else
53933	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53934	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53935        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53936$as_echo "yes" >&6; }
53937	:
53938fi
53939else
53940	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53941	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53943$as_echo "yes" >&6; }
53944	:
53945fi
53946else
53947	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
53948	CUDA_LIBS=$pkg_cv_CUDA_LIBS
53949        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53950$as_echo "yes" >&6; }
53951	:
53952fi
53953elif test $pkg_failed = untried; then
53954
53955
53956pkg_failed=no
53957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
53958$as_echo_n "checking for CUDA... " >&6; }
53959
53960if test -n "$PKG_CONFIG"; then
53961    if test -n "$CUDA_CFLAGS"; then
53962        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
53963    else
53964        if test -n "$PKG_CONFIG" && \
53965    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.0 cudart-10.0\""; } >&5
53966  ($PKG_CONFIG --exists --print-errors "cuda-10.0 cudart-10.0") 2>&5
53967  ac_status=$?
53968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53969  test $ac_status = 0; }; then
53970  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-10.0 cudart-10.0" 2>/dev/null`
53971else
53972  pkg_failed=yes
53973fi
53974    fi
53975else
53976	pkg_failed=untried
53977fi
53978if test -n "$PKG_CONFIG"; then
53979    if test -n "$CUDA_LIBS"; then
53980        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
53981    else
53982        if test -n "$PKG_CONFIG" && \
53983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-10.0 cudart-10.0\""; } >&5
53984  ($PKG_CONFIG --exists --print-errors "cuda-10.0 cudart-10.0") 2>&5
53985  ac_status=$?
53986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
53987  test $ac_status = 0; }; then
53988  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-10.0 cudart-10.0" 2>/dev/null`
53989else
53990  pkg_failed=yes
53991fi
53992    fi
53993else
53994	pkg_failed=untried
53995fi
53996
53997
53998
53999if test $pkg_failed = yes; then
54000
54001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54002        _pkg_short_errors_supported=yes
54003else
54004        _pkg_short_errors_supported=no
54005fi
54006        if test $_pkg_short_errors_supported = yes; then
54007	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-10.0 cudart-10.0"`
54008        else
54009	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-10.0 cudart-10.0"`
54010        fi
54011	# Put the nasty error message in config.log where it belongs
54012	echo "$CUDA_PKG_ERRORS" >&5
54013
54014	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54015$as_echo "no" >&6; }
54016
54017
54018pkg_failed=no
54019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54020$as_echo_n "checking for CUDA... " >&6; }
54021
54022if test -n "$PKG_CONFIG"; then
54023    if test -n "$CUDA_CFLAGS"; then
54024        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54025    else
54026        if test -n "$PKG_CONFIG" && \
54027    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
54028  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
54029  ac_status=$?
54030  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54031  test $ac_status = 0; }; then
54032  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.2 cudart-9.2" 2>/dev/null`
54033else
54034  pkg_failed=yes
54035fi
54036    fi
54037else
54038	pkg_failed=untried
54039fi
54040if test -n "$PKG_CONFIG"; then
54041    if test -n "$CUDA_LIBS"; then
54042        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54043    else
54044        if test -n "$PKG_CONFIG" && \
54045    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
54046  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
54047  ac_status=$?
54048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54049  test $ac_status = 0; }; then
54050  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.2 cudart-9.2" 2>/dev/null`
54051else
54052  pkg_failed=yes
54053fi
54054    fi
54055else
54056	pkg_failed=untried
54057fi
54058
54059
54060
54061if test $pkg_failed = yes; then
54062
54063if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54064        _pkg_short_errors_supported=yes
54065else
54066        _pkg_short_errors_supported=no
54067fi
54068        if test $_pkg_short_errors_supported = yes; then
54069	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
54070        else
54071	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
54072        fi
54073	# Put the nasty error message in config.log where it belongs
54074	echo "$CUDA_PKG_ERRORS" >&5
54075
54076	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54077$as_echo "no" >&6; }
54078
54079
54080pkg_failed=no
54081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54082$as_echo_n "checking for CUDA... " >&6; }
54083
54084if test -n "$PKG_CONFIG"; then
54085    if test -n "$CUDA_CFLAGS"; then
54086        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54087    else
54088        if test -n "$PKG_CONFIG" && \
54089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
54090  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
54091  ac_status=$?
54092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54093  test $ac_status = 0; }; then
54094  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
54095else
54096  pkg_failed=yes
54097fi
54098    fi
54099else
54100	pkg_failed=untried
54101fi
54102if test -n "$PKG_CONFIG"; then
54103    if test -n "$CUDA_LIBS"; then
54104        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54105    else
54106        if test -n "$PKG_CONFIG" && \
54107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
54108  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
54109  ac_status=$?
54110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54111  test $ac_status = 0; }; then
54112  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
54113else
54114  pkg_failed=yes
54115fi
54116    fi
54117else
54118	pkg_failed=untried
54119fi
54120
54121
54122
54123if test $pkg_failed = yes; then
54124
54125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54126        _pkg_short_errors_supported=yes
54127else
54128        _pkg_short_errors_supported=no
54129fi
54130        if test $_pkg_short_errors_supported = yes; then
54131	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
54132        else
54133	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
54134        fi
54135	# Put the nasty error message in config.log where it belongs
54136	echo "$CUDA_PKG_ERRORS" >&5
54137
54138	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54139$as_echo "no" >&6; }
54140
54141
54142pkg_failed=no
54143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54144$as_echo_n "checking for CUDA... " >&6; }
54145
54146if test -n "$PKG_CONFIG"; then
54147    if test -n "$CUDA_CFLAGS"; then
54148        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54149    else
54150        if test -n "$PKG_CONFIG" && \
54151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
54152  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
54153  ac_status=$?
54154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54155  test $ac_status = 0; }; then
54156  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
54157else
54158  pkg_failed=yes
54159fi
54160    fi
54161else
54162	pkg_failed=untried
54163fi
54164if test -n "$PKG_CONFIG"; then
54165    if test -n "$CUDA_LIBS"; then
54166        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54167    else
54168        if test -n "$PKG_CONFIG" && \
54169    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
54170  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
54171  ac_status=$?
54172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54173  test $ac_status = 0; }; then
54174  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
54175else
54176  pkg_failed=yes
54177fi
54178    fi
54179else
54180	pkg_failed=untried
54181fi
54182
54183
54184
54185if test $pkg_failed = yes; then
54186
54187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54188        _pkg_short_errors_supported=yes
54189else
54190        _pkg_short_errors_supported=no
54191fi
54192        if test $_pkg_short_errors_supported = yes; then
54193	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
54194        else
54195	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
54196        fi
54197	# Put the nasty error message in config.log where it belongs
54198	echo "$CUDA_PKG_ERRORS" >&5
54199
54200	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54201$as_echo "no" >&6; }
54202
54203
54204pkg_failed=no
54205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54206$as_echo_n "checking for CUDA... " >&6; }
54207
54208if test -n "$PKG_CONFIG"; then
54209    if test -n "$CUDA_CFLAGS"; then
54210        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54211    else
54212        if test -n "$PKG_CONFIG" && \
54213    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
54214  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
54215  ac_status=$?
54216  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54217  test $ac_status = 0; }; then
54218  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
54219else
54220  pkg_failed=yes
54221fi
54222    fi
54223else
54224	pkg_failed=untried
54225fi
54226if test -n "$PKG_CONFIG"; then
54227    if test -n "$CUDA_LIBS"; then
54228        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54229    else
54230        if test -n "$PKG_CONFIG" && \
54231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
54232  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
54233  ac_status=$?
54234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54235  test $ac_status = 0; }; then
54236  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
54237else
54238  pkg_failed=yes
54239fi
54240    fi
54241else
54242	pkg_failed=untried
54243fi
54244
54245
54246
54247if test $pkg_failed = yes; then
54248
54249if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54250        _pkg_short_errors_supported=yes
54251else
54252        _pkg_short_errors_supported=no
54253fi
54254        if test $_pkg_short_errors_supported = yes; then
54255	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
54256        else
54257	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
54258        fi
54259	# Put the nasty error message in config.log where it belongs
54260	echo "$CUDA_PKG_ERRORS" >&5
54261
54262	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54263$as_echo "no" >&6; }
54264
54265
54266pkg_failed=no
54267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54268$as_echo_n "checking for CUDA... " >&6; }
54269
54270if test -n "$PKG_CONFIG"; then
54271    if test -n "$CUDA_CFLAGS"; then
54272        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54273    else
54274        if test -n "$PKG_CONFIG" && \
54275    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
54276  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
54277  ac_status=$?
54278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54279  test $ac_status = 0; }; then
54280  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
54281else
54282  pkg_failed=yes
54283fi
54284    fi
54285else
54286	pkg_failed=untried
54287fi
54288if test -n "$PKG_CONFIG"; then
54289    if test -n "$CUDA_LIBS"; then
54290        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54291    else
54292        if test -n "$PKG_CONFIG" && \
54293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
54294  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
54295  ac_status=$?
54296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54297  test $ac_status = 0; }; then
54298  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
54299else
54300  pkg_failed=yes
54301fi
54302    fi
54303else
54304	pkg_failed=untried
54305fi
54306
54307
54308
54309if test $pkg_failed = yes; then
54310
54311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54312        _pkg_short_errors_supported=yes
54313else
54314        _pkg_short_errors_supported=no
54315fi
54316        if test $_pkg_short_errors_supported = yes; then
54317	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
54318        else
54319	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
54320        fi
54321	# Put the nasty error message in config.log where it belongs
54322	echo "$CUDA_PKG_ERRORS" >&5
54323
54324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54325$as_echo "no" >&6; }
54326
54327
54328pkg_failed=no
54329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54330$as_echo_n "checking for CUDA... " >&6; }
54331
54332if test -n "$PKG_CONFIG"; then
54333    if test -n "$CUDA_CFLAGS"; then
54334        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54335    else
54336        if test -n "$PKG_CONFIG" && \
54337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54338  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54339  ac_status=$?
54340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54341  test $ac_status = 0; }; then
54342  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
54343else
54344  pkg_failed=yes
54345fi
54346    fi
54347else
54348	pkg_failed=untried
54349fi
54350if test -n "$PKG_CONFIG"; then
54351    if test -n "$CUDA_LIBS"; then
54352        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54353    else
54354        if test -n "$PKG_CONFIG" && \
54355    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54356  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54357  ac_status=$?
54358  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54359  test $ac_status = 0; }; then
54360  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
54361else
54362  pkg_failed=yes
54363fi
54364    fi
54365else
54366	pkg_failed=untried
54367fi
54368
54369
54370
54371if test $pkg_failed = yes; then
54372
54373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54374        _pkg_short_errors_supported=yes
54375else
54376        _pkg_short_errors_supported=no
54377fi
54378        if test $_pkg_short_errors_supported = yes; then
54379	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54380        else
54381	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54382        fi
54383	# Put the nasty error message in config.log where it belongs
54384	echo "$CUDA_PKG_ERRORS" >&5
54385
54386	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54387$as_echo "no" >&6; }
54388
54389
54390pkg_failed=no
54391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54392$as_echo_n "checking for CUDA... " >&6; }
54393
54394if test -n "$PKG_CONFIG"; then
54395    if test -n "$CUDA_CFLAGS"; then
54396        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54397    else
54398        if test -n "$PKG_CONFIG" && \
54399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54400  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54401  ac_status=$?
54402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54403  test $ac_status = 0; }; then
54404  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54405else
54406  pkg_failed=yes
54407fi
54408    fi
54409else
54410	pkg_failed=untried
54411fi
54412if test -n "$PKG_CONFIG"; then
54413    if test -n "$CUDA_LIBS"; then
54414        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54415    else
54416        if test -n "$PKG_CONFIG" && \
54417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54418  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54419  ac_status=$?
54420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54421  test $ac_status = 0; }; then
54422  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
54423else
54424  pkg_failed=yes
54425fi
54426    fi
54427else
54428	pkg_failed=untried
54429fi
54430
54431
54432
54433if test $pkg_failed = yes; then
54434
54435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54436        _pkg_short_errors_supported=yes
54437else
54438        _pkg_short_errors_supported=no
54439fi
54440        if test $_pkg_short_errors_supported = yes; then
54441	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54442        else
54443	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54444        fi
54445	# Put the nasty error message in config.log where it belongs
54446	echo "$CUDA_PKG_ERRORS" >&5
54447
54448	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54449$as_echo "no" >&6; }
54450
54451                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54452$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54453elif test $pkg_failed = untried; then
54454
54455                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54456$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54457else
54458	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54459	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54460        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54461$as_echo "yes" >&6; }
54462	:
54463fi
54464elif test $pkg_failed = untried; then
54465
54466
54467pkg_failed=no
54468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54469$as_echo_n "checking for CUDA... " >&6; }
54470
54471if test -n "$PKG_CONFIG"; then
54472    if test -n "$CUDA_CFLAGS"; then
54473        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54474    else
54475        if test -n "$PKG_CONFIG" && \
54476    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54477  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54478  ac_status=$?
54479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54480  test $ac_status = 0; }; then
54481  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54482else
54483  pkg_failed=yes
54484fi
54485    fi
54486else
54487	pkg_failed=untried
54488fi
54489if test -n "$PKG_CONFIG"; then
54490    if test -n "$CUDA_LIBS"; then
54491        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54492    else
54493        if test -n "$PKG_CONFIG" && \
54494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54495  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54496  ac_status=$?
54497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54498  test $ac_status = 0; }; then
54499  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
54500else
54501  pkg_failed=yes
54502fi
54503    fi
54504else
54505	pkg_failed=untried
54506fi
54507
54508
54509
54510if test $pkg_failed = yes; then
54511
54512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54513        _pkg_short_errors_supported=yes
54514else
54515        _pkg_short_errors_supported=no
54516fi
54517        if test $_pkg_short_errors_supported = yes; then
54518	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54519        else
54520	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54521        fi
54522	# Put the nasty error message in config.log where it belongs
54523	echo "$CUDA_PKG_ERRORS" >&5
54524
54525	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54526$as_echo "no" >&6; }
54527
54528                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54529$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54530elif test $pkg_failed = untried; then
54531
54532                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54533$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54534else
54535	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54536	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54537        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54538$as_echo "yes" >&6; }
54539	:
54540fi
54541else
54542	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54543	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54544        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54545$as_echo "yes" >&6; }
54546	:
54547fi
54548elif test $pkg_failed = untried; then
54549
54550
54551pkg_failed=no
54552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54553$as_echo_n "checking for CUDA... " >&6; }
54554
54555if test -n "$PKG_CONFIG"; then
54556    if test -n "$CUDA_CFLAGS"; then
54557        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54558    else
54559        if test -n "$PKG_CONFIG" && \
54560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54561  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54562  ac_status=$?
54563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54564  test $ac_status = 0; }; then
54565  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
54566else
54567  pkg_failed=yes
54568fi
54569    fi
54570else
54571	pkg_failed=untried
54572fi
54573if test -n "$PKG_CONFIG"; then
54574    if test -n "$CUDA_LIBS"; then
54575        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54576    else
54577        if test -n "$PKG_CONFIG" && \
54578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54579  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54580  ac_status=$?
54581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54582  test $ac_status = 0; }; then
54583  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
54584else
54585  pkg_failed=yes
54586fi
54587    fi
54588else
54589	pkg_failed=untried
54590fi
54591
54592
54593
54594if test $pkg_failed = yes; then
54595
54596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54597        _pkg_short_errors_supported=yes
54598else
54599        _pkg_short_errors_supported=no
54600fi
54601        if test $_pkg_short_errors_supported = yes; then
54602	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54603        else
54604	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54605        fi
54606	# Put the nasty error message in config.log where it belongs
54607	echo "$CUDA_PKG_ERRORS" >&5
54608
54609	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54610$as_echo "no" >&6; }
54611
54612
54613pkg_failed=no
54614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54615$as_echo_n "checking for CUDA... " >&6; }
54616
54617if test -n "$PKG_CONFIG"; then
54618    if test -n "$CUDA_CFLAGS"; then
54619        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54620    else
54621        if test -n "$PKG_CONFIG" && \
54622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54623  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54624  ac_status=$?
54625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54626  test $ac_status = 0; }; then
54627  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54628else
54629  pkg_failed=yes
54630fi
54631    fi
54632else
54633	pkg_failed=untried
54634fi
54635if test -n "$PKG_CONFIG"; then
54636    if test -n "$CUDA_LIBS"; then
54637        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54638    else
54639        if test -n "$PKG_CONFIG" && \
54640    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54641  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54642  ac_status=$?
54643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54644  test $ac_status = 0; }; then
54645  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
54646else
54647  pkg_failed=yes
54648fi
54649    fi
54650else
54651	pkg_failed=untried
54652fi
54653
54654
54655
54656if test $pkg_failed = yes; then
54657
54658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54659        _pkg_short_errors_supported=yes
54660else
54661        _pkg_short_errors_supported=no
54662fi
54663        if test $_pkg_short_errors_supported = yes; then
54664	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54665        else
54666	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54667        fi
54668	# Put the nasty error message in config.log where it belongs
54669	echo "$CUDA_PKG_ERRORS" >&5
54670
54671	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54672$as_echo "no" >&6; }
54673
54674                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54675$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54676elif test $pkg_failed = untried; then
54677
54678                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54679$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54680else
54681	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54682	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54683        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54684$as_echo "yes" >&6; }
54685	:
54686fi
54687elif test $pkg_failed = untried; then
54688
54689
54690pkg_failed=no
54691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54692$as_echo_n "checking for CUDA... " >&6; }
54693
54694if test -n "$PKG_CONFIG"; then
54695    if test -n "$CUDA_CFLAGS"; then
54696        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54697    else
54698        if test -n "$PKG_CONFIG" && \
54699    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54700  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54701  ac_status=$?
54702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54703  test $ac_status = 0; }; then
54704  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54705else
54706  pkg_failed=yes
54707fi
54708    fi
54709else
54710	pkg_failed=untried
54711fi
54712if test -n "$PKG_CONFIG"; then
54713    if test -n "$CUDA_LIBS"; then
54714        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54715    else
54716        if test -n "$PKG_CONFIG" && \
54717    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54718  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54719  ac_status=$?
54720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54721  test $ac_status = 0; }; then
54722  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
54723else
54724  pkg_failed=yes
54725fi
54726    fi
54727else
54728	pkg_failed=untried
54729fi
54730
54731
54732
54733if test $pkg_failed = yes; then
54734
54735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54736        _pkg_short_errors_supported=yes
54737else
54738        _pkg_short_errors_supported=no
54739fi
54740        if test $_pkg_short_errors_supported = yes; then
54741	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54742        else
54743	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54744        fi
54745	# Put the nasty error message in config.log where it belongs
54746	echo "$CUDA_PKG_ERRORS" >&5
54747
54748	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54749$as_echo "no" >&6; }
54750
54751                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54752$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54753elif test $pkg_failed = untried; then
54754
54755                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54756$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54757else
54758	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54759	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54761$as_echo "yes" >&6; }
54762	:
54763fi
54764else
54765	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54766	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54767        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54768$as_echo "yes" >&6; }
54769	:
54770fi
54771else
54772	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54773	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54774        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54775$as_echo "yes" >&6; }
54776	:
54777fi
54778elif test $pkg_failed = untried; then
54779
54780
54781pkg_failed=no
54782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54783$as_echo_n "checking for CUDA... " >&6; }
54784
54785if test -n "$PKG_CONFIG"; then
54786    if test -n "$CUDA_CFLAGS"; then
54787        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54788    else
54789        if test -n "$PKG_CONFIG" && \
54790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
54791  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
54792  ac_status=$?
54793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54794  test $ac_status = 0; }; then
54795  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
54796else
54797  pkg_failed=yes
54798fi
54799    fi
54800else
54801	pkg_failed=untried
54802fi
54803if test -n "$PKG_CONFIG"; then
54804    if test -n "$CUDA_LIBS"; then
54805        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54806    else
54807        if test -n "$PKG_CONFIG" && \
54808    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
54809  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
54810  ac_status=$?
54811  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54812  test $ac_status = 0; }; then
54813  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
54814else
54815  pkg_failed=yes
54816fi
54817    fi
54818else
54819	pkg_failed=untried
54820fi
54821
54822
54823
54824if test $pkg_failed = yes; then
54825
54826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54827        _pkg_short_errors_supported=yes
54828else
54829        _pkg_short_errors_supported=no
54830fi
54831        if test $_pkg_short_errors_supported = yes; then
54832	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
54833        else
54834	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
54835        fi
54836	# Put the nasty error message in config.log where it belongs
54837	echo "$CUDA_PKG_ERRORS" >&5
54838
54839	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54840$as_echo "no" >&6; }
54841
54842
54843pkg_failed=no
54844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54845$as_echo_n "checking for CUDA... " >&6; }
54846
54847if test -n "$PKG_CONFIG"; then
54848    if test -n "$CUDA_CFLAGS"; then
54849        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54850    else
54851        if test -n "$PKG_CONFIG" && \
54852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54853  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54854  ac_status=$?
54855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54856  test $ac_status = 0; }; then
54857  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
54858else
54859  pkg_failed=yes
54860fi
54861    fi
54862else
54863	pkg_failed=untried
54864fi
54865if test -n "$PKG_CONFIG"; then
54866    if test -n "$CUDA_LIBS"; then
54867        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54868    else
54869        if test -n "$PKG_CONFIG" && \
54870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
54871  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
54872  ac_status=$?
54873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54874  test $ac_status = 0; }; then
54875  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
54876else
54877  pkg_failed=yes
54878fi
54879    fi
54880else
54881	pkg_failed=untried
54882fi
54883
54884
54885
54886if test $pkg_failed = yes; then
54887
54888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54889        _pkg_short_errors_supported=yes
54890else
54891        _pkg_short_errors_supported=no
54892fi
54893        if test $_pkg_short_errors_supported = yes; then
54894	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54895        else
54896	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
54897        fi
54898	# Put the nasty error message in config.log where it belongs
54899	echo "$CUDA_PKG_ERRORS" >&5
54900
54901	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54902$as_echo "no" >&6; }
54903
54904
54905pkg_failed=no
54906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54907$as_echo_n "checking for CUDA... " >&6; }
54908
54909if test -n "$PKG_CONFIG"; then
54910    if test -n "$CUDA_CFLAGS"; then
54911        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54912    else
54913        if test -n "$PKG_CONFIG" && \
54914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54915  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54916  ac_status=$?
54917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54918  test $ac_status = 0; }; then
54919  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54920else
54921  pkg_failed=yes
54922fi
54923    fi
54924else
54925	pkg_failed=untried
54926fi
54927if test -n "$PKG_CONFIG"; then
54928    if test -n "$CUDA_LIBS"; then
54929        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
54930    else
54931        if test -n "$PKG_CONFIG" && \
54932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54933  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54934  ac_status=$?
54935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54936  test $ac_status = 0; }; then
54937  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
54938else
54939  pkg_failed=yes
54940fi
54941    fi
54942else
54943	pkg_failed=untried
54944fi
54945
54946
54947
54948if test $pkg_failed = yes; then
54949
54950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
54951        _pkg_short_errors_supported=yes
54952else
54953        _pkg_short_errors_supported=no
54954fi
54955        if test $_pkg_short_errors_supported = yes; then
54956	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54957        else
54958	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
54959        fi
54960	# Put the nasty error message in config.log where it belongs
54961	echo "$CUDA_PKG_ERRORS" >&5
54962
54963	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54964$as_echo "no" >&6; }
54965
54966                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54967$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54968elif test $pkg_failed = untried; then
54969
54970                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
54971$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
54972else
54973	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
54974	CUDA_LIBS=$pkg_cv_CUDA_LIBS
54975        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54976$as_echo "yes" >&6; }
54977	:
54978fi
54979elif test $pkg_failed = untried; then
54980
54981
54982pkg_failed=no
54983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
54984$as_echo_n "checking for CUDA... " >&6; }
54985
54986if test -n "$PKG_CONFIG"; then
54987    if test -n "$CUDA_CFLAGS"; then
54988        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
54989    else
54990        if test -n "$PKG_CONFIG" && \
54991    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
54992  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
54993  ac_status=$?
54994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54995  test $ac_status = 0; }; then
54996  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
54997else
54998  pkg_failed=yes
54999fi
55000    fi
55001else
55002	pkg_failed=untried
55003fi
55004if test -n "$PKG_CONFIG"; then
55005    if test -n "$CUDA_LIBS"; then
55006        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55007    else
55008        if test -n "$PKG_CONFIG" && \
55009    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55010  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55011  ac_status=$?
55012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55013  test $ac_status = 0; }; then
55014  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55015else
55016  pkg_failed=yes
55017fi
55018    fi
55019else
55020	pkg_failed=untried
55021fi
55022
55023
55024
55025if test $pkg_failed = yes; then
55026
55027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55028        _pkg_short_errors_supported=yes
55029else
55030        _pkg_short_errors_supported=no
55031fi
55032        if test $_pkg_short_errors_supported = yes; then
55033	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55034        else
55035	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55036        fi
55037	# Put the nasty error message in config.log where it belongs
55038	echo "$CUDA_PKG_ERRORS" >&5
55039
55040	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55041$as_echo "no" >&6; }
55042
55043                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55044$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55045elif test $pkg_failed = untried; then
55046
55047                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55048$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55049else
55050	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55051	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55052        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55053$as_echo "yes" >&6; }
55054	:
55055fi
55056else
55057	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55058	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55060$as_echo "yes" >&6; }
55061	:
55062fi
55063elif test $pkg_failed = untried; then
55064
55065
55066pkg_failed=no
55067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55068$as_echo_n "checking for CUDA... " >&6; }
55069
55070if test -n "$PKG_CONFIG"; then
55071    if test -n "$CUDA_CFLAGS"; then
55072        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55073    else
55074        if test -n "$PKG_CONFIG" && \
55075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55076  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55077  ac_status=$?
55078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55079  test $ac_status = 0; }; then
55080  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
55081else
55082  pkg_failed=yes
55083fi
55084    fi
55085else
55086	pkg_failed=untried
55087fi
55088if test -n "$PKG_CONFIG"; then
55089    if test -n "$CUDA_LIBS"; then
55090        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55091    else
55092        if test -n "$PKG_CONFIG" && \
55093    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55094  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55095  ac_status=$?
55096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55097  test $ac_status = 0; }; then
55098  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
55099else
55100  pkg_failed=yes
55101fi
55102    fi
55103else
55104	pkg_failed=untried
55105fi
55106
55107
55108
55109if test $pkg_failed = yes; then
55110
55111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55112        _pkg_short_errors_supported=yes
55113else
55114        _pkg_short_errors_supported=no
55115fi
55116        if test $_pkg_short_errors_supported = yes; then
55117	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55118        else
55119	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55120        fi
55121	# Put the nasty error message in config.log where it belongs
55122	echo "$CUDA_PKG_ERRORS" >&5
55123
55124	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55125$as_echo "no" >&6; }
55126
55127
55128pkg_failed=no
55129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55130$as_echo_n "checking for CUDA... " >&6; }
55131
55132if test -n "$PKG_CONFIG"; then
55133    if test -n "$CUDA_CFLAGS"; then
55134        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55135    else
55136        if test -n "$PKG_CONFIG" && \
55137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55138  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55139  ac_status=$?
55140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55141  test $ac_status = 0; }; then
55142  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55143else
55144  pkg_failed=yes
55145fi
55146    fi
55147else
55148	pkg_failed=untried
55149fi
55150if test -n "$PKG_CONFIG"; then
55151    if test -n "$CUDA_LIBS"; then
55152        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55153    else
55154        if test -n "$PKG_CONFIG" && \
55155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55156  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55157  ac_status=$?
55158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55159  test $ac_status = 0; }; then
55160  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55161else
55162  pkg_failed=yes
55163fi
55164    fi
55165else
55166	pkg_failed=untried
55167fi
55168
55169
55170
55171if test $pkg_failed = yes; then
55172
55173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55174        _pkg_short_errors_supported=yes
55175else
55176        _pkg_short_errors_supported=no
55177fi
55178        if test $_pkg_short_errors_supported = yes; then
55179	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55180        else
55181	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55182        fi
55183	# Put the nasty error message in config.log where it belongs
55184	echo "$CUDA_PKG_ERRORS" >&5
55185
55186	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55187$as_echo "no" >&6; }
55188
55189                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55190$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55191elif test $pkg_failed = untried; then
55192
55193                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55194$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55195else
55196	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55197	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55199$as_echo "yes" >&6; }
55200	:
55201fi
55202elif test $pkg_failed = untried; then
55203
55204
55205pkg_failed=no
55206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55207$as_echo_n "checking for CUDA... " >&6; }
55208
55209if test -n "$PKG_CONFIG"; then
55210    if test -n "$CUDA_CFLAGS"; then
55211        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55212    else
55213        if test -n "$PKG_CONFIG" && \
55214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55215  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55216  ac_status=$?
55217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55218  test $ac_status = 0; }; then
55219  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55220else
55221  pkg_failed=yes
55222fi
55223    fi
55224else
55225	pkg_failed=untried
55226fi
55227if test -n "$PKG_CONFIG"; then
55228    if test -n "$CUDA_LIBS"; then
55229        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55230    else
55231        if test -n "$PKG_CONFIG" && \
55232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55233  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55234  ac_status=$?
55235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55236  test $ac_status = 0; }; then
55237  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55238else
55239  pkg_failed=yes
55240fi
55241    fi
55242else
55243	pkg_failed=untried
55244fi
55245
55246
55247
55248if test $pkg_failed = yes; then
55249
55250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55251        _pkg_short_errors_supported=yes
55252else
55253        _pkg_short_errors_supported=no
55254fi
55255        if test $_pkg_short_errors_supported = yes; then
55256	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55257        else
55258	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55259        fi
55260	# Put the nasty error message in config.log where it belongs
55261	echo "$CUDA_PKG_ERRORS" >&5
55262
55263	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55264$as_echo "no" >&6; }
55265
55266                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55267$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55268elif test $pkg_failed = untried; then
55269
55270                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55271$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55272else
55273	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55274	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55276$as_echo "yes" >&6; }
55277	:
55278fi
55279else
55280	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55281	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55283$as_echo "yes" >&6; }
55284	:
55285fi
55286else
55287	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55288	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55289        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55290$as_echo "yes" >&6; }
55291	:
55292fi
55293else
55294	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55295	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55296        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55297$as_echo "yes" >&6; }
55298	:
55299fi
55300elif test $pkg_failed = untried; then
55301
55302
55303pkg_failed=no
55304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55305$as_echo_n "checking for CUDA... " >&6; }
55306
55307if test -n "$PKG_CONFIG"; then
55308    if test -n "$CUDA_CFLAGS"; then
55309        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55310    else
55311        if test -n "$PKG_CONFIG" && \
55312    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
55313  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
55314  ac_status=$?
55315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55316  test $ac_status = 0; }; then
55317  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
55318else
55319  pkg_failed=yes
55320fi
55321    fi
55322else
55323	pkg_failed=untried
55324fi
55325if test -n "$PKG_CONFIG"; then
55326    if test -n "$CUDA_LIBS"; then
55327        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55328    else
55329        if test -n "$PKG_CONFIG" && \
55330    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
55331  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
55332  ac_status=$?
55333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55334  test $ac_status = 0; }; then
55335  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
55336else
55337  pkg_failed=yes
55338fi
55339    fi
55340else
55341	pkg_failed=untried
55342fi
55343
55344
55345
55346if test $pkg_failed = yes; then
55347
55348if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55349        _pkg_short_errors_supported=yes
55350else
55351        _pkg_short_errors_supported=no
55352fi
55353        if test $_pkg_short_errors_supported = yes; then
55354	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
55355        else
55356	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
55357        fi
55358	# Put the nasty error message in config.log where it belongs
55359	echo "$CUDA_PKG_ERRORS" >&5
55360
55361	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55362$as_echo "no" >&6; }
55363
55364
55365pkg_failed=no
55366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55367$as_echo_n "checking for CUDA... " >&6; }
55368
55369if test -n "$PKG_CONFIG"; then
55370    if test -n "$CUDA_CFLAGS"; then
55371        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55372    else
55373        if test -n "$PKG_CONFIG" && \
55374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
55375  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
55376  ac_status=$?
55377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55378  test $ac_status = 0; }; then
55379  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
55380else
55381  pkg_failed=yes
55382fi
55383    fi
55384else
55385	pkg_failed=untried
55386fi
55387if test -n "$PKG_CONFIG"; then
55388    if test -n "$CUDA_LIBS"; then
55389        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55390    else
55391        if test -n "$PKG_CONFIG" && \
55392    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
55393  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
55394  ac_status=$?
55395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55396  test $ac_status = 0; }; then
55397  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
55398else
55399  pkg_failed=yes
55400fi
55401    fi
55402else
55403	pkg_failed=untried
55404fi
55405
55406
55407
55408if test $pkg_failed = yes; then
55409
55410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55411        _pkg_short_errors_supported=yes
55412else
55413        _pkg_short_errors_supported=no
55414fi
55415        if test $_pkg_short_errors_supported = yes; then
55416	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
55417        else
55418	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
55419        fi
55420	# Put the nasty error message in config.log where it belongs
55421	echo "$CUDA_PKG_ERRORS" >&5
55422
55423	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55424$as_echo "no" >&6; }
55425
55426
55427pkg_failed=no
55428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55429$as_echo_n "checking for CUDA... " >&6; }
55430
55431if test -n "$PKG_CONFIG"; then
55432    if test -n "$CUDA_CFLAGS"; then
55433        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55434    else
55435        if test -n "$PKG_CONFIG" && \
55436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55437  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55438  ac_status=$?
55439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55440  test $ac_status = 0; }; then
55441  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
55442else
55443  pkg_failed=yes
55444fi
55445    fi
55446else
55447	pkg_failed=untried
55448fi
55449if test -n "$PKG_CONFIG"; then
55450    if test -n "$CUDA_LIBS"; then
55451        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55452    else
55453        if test -n "$PKG_CONFIG" && \
55454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55455  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55456  ac_status=$?
55457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55458  test $ac_status = 0; }; then
55459  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
55460else
55461  pkg_failed=yes
55462fi
55463    fi
55464else
55465	pkg_failed=untried
55466fi
55467
55468
55469
55470if test $pkg_failed = yes; then
55471
55472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55473        _pkg_short_errors_supported=yes
55474else
55475        _pkg_short_errors_supported=no
55476fi
55477        if test $_pkg_short_errors_supported = yes; then
55478	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55479        else
55480	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55481        fi
55482	# Put the nasty error message in config.log where it belongs
55483	echo "$CUDA_PKG_ERRORS" >&5
55484
55485	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55486$as_echo "no" >&6; }
55487
55488
55489pkg_failed=no
55490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55491$as_echo_n "checking for CUDA... " >&6; }
55492
55493if test -n "$PKG_CONFIG"; then
55494    if test -n "$CUDA_CFLAGS"; then
55495        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55496    else
55497        if test -n "$PKG_CONFIG" && \
55498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55499  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55500  ac_status=$?
55501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55502  test $ac_status = 0; }; then
55503  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55504else
55505  pkg_failed=yes
55506fi
55507    fi
55508else
55509	pkg_failed=untried
55510fi
55511if test -n "$PKG_CONFIG"; then
55512    if test -n "$CUDA_LIBS"; then
55513        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55514    else
55515        if test -n "$PKG_CONFIG" && \
55516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55517  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55518  ac_status=$?
55519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55520  test $ac_status = 0; }; then
55521  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55522else
55523  pkg_failed=yes
55524fi
55525    fi
55526else
55527	pkg_failed=untried
55528fi
55529
55530
55531
55532if test $pkg_failed = yes; then
55533
55534if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55535        _pkg_short_errors_supported=yes
55536else
55537        _pkg_short_errors_supported=no
55538fi
55539        if test $_pkg_short_errors_supported = yes; then
55540	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55541        else
55542	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55543        fi
55544	# Put the nasty error message in config.log where it belongs
55545	echo "$CUDA_PKG_ERRORS" >&5
55546
55547	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55548$as_echo "no" >&6; }
55549
55550                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55551$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55552elif test $pkg_failed = untried; then
55553
55554                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55555$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55556else
55557	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55558	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55559        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55560$as_echo "yes" >&6; }
55561	:
55562fi
55563elif test $pkg_failed = untried; then
55564
55565
55566pkg_failed=no
55567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55568$as_echo_n "checking for CUDA... " >&6; }
55569
55570if test -n "$PKG_CONFIG"; then
55571    if test -n "$CUDA_CFLAGS"; then
55572        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55573    else
55574        if test -n "$PKG_CONFIG" && \
55575    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55576  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55577  ac_status=$?
55578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55579  test $ac_status = 0; }; then
55580  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55581else
55582  pkg_failed=yes
55583fi
55584    fi
55585else
55586	pkg_failed=untried
55587fi
55588if test -n "$PKG_CONFIG"; then
55589    if test -n "$CUDA_LIBS"; then
55590        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55591    else
55592        if test -n "$PKG_CONFIG" && \
55593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55594  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55595  ac_status=$?
55596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55597  test $ac_status = 0; }; then
55598  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55599else
55600  pkg_failed=yes
55601fi
55602    fi
55603else
55604	pkg_failed=untried
55605fi
55606
55607
55608
55609if test $pkg_failed = yes; then
55610
55611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55612        _pkg_short_errors_supported=yes
55613else
55614        _pkg_short_errors_supported=no
55615fi
55616        if test $_pkg_short_errors_supported = yes; then
55617	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55618        else
55619	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55620        fi
55621	# Put the nasty error message in config.log where it belongs
55622	echo "$CUDA_PKG_ERRORS" >&5
55623
55624	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55625$as_echo "no" >&6; }
55626
55627                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55628$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55629elif test $pkg_failed = untried; then
55630
55631                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55632$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55633else
55634	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55635	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55637$as_echo "yes" >&6; }
55638	:
55639fi
55640else
55641	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55642	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55644$as_echo "yes" >&6; }
55645	:
55646fi
55647elif test $pkg_failed = untried; then
55648
55649
55650pkg_failed=no
55651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55652$as_echo_n "checking for CUDA... " >&6; }
55653
55654if test -n "$PKG_CONFIG"; then
55655    if test -n "$CUDA_CFLAGS"; then
55656        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55657    else
55658        if test -n "$PKG_CONFIG" && \
55659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55660  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55661  ac_status=$?
55662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55663  test $ac_status = 0; }; then
55664  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
55665else
55666  pkg_failed=yes
55667fi
55668    fi
55669else
55670	pkg_failed=untried
55671fi
55672if test -n "$PKG_CONFIG"; then
55673    if test -n "$CUDA_LIBS"; then
55674        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55675    else
55676        if test -n "$PKG_CONFIG" && \
55677    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55678  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55679  ac_status=$?
55680  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55681  test $ac_status = 0; }; then
55682  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
55683else
55684  pkg_failed=yes
55685fi
55686    fi
55687else
55688	pkg_failed=untried
55689fi
55690
55691
55692
55693if test $pkg_failed = yes; then
55694
55695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55696        _pkg_short_errors_supported=yes
55697else
55698        _pkg_short_errors_supported=no
55699fi
55700        if test $_pkg_short_errors_supported = yes; then
55701	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55702        else
55703	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55704        fi
55705	# Put the nasty error message in config.log where it belongs
55706	echo "$CUDA_PKG_ERRORS" >&5
55707
55708	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55709$as_echo "no" >&6; }
55710
55711
55712pkg_failed=no
55713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55714$as_echo_n "checking for CUDA... " >&6; }
55715
55716if test -n "$PKG_CONFIG"; then
55717    if test -n "$CUDA_CFLAGS"; then
55718        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55719    else
55720        if test -n "$PKG_CONFIG" && \
55721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55722  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55723  ac_status=$?
55724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55725  test $ac_status = 0; }; then
55726  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55727else
55728  pkg_failed=yes
55729fi
55730    fi
55731else
55732	pkg_failed=untried
55733fi
55734if test -n "$PKG_CONFIG"; then
55735    if test -n "$CUDA_LIBS"; then
55736        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55737    else
55738        if test -n "$PKG_CONFIG" && \
55739    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55740  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55741  ac_status=$?
55742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55743  test $ac_status = 0; }; then
55744  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55745else
55746  pkg_failed=yes
55747fi
55748    fi
55749else
55750	pkg_failed=untried
55751fi
55752
55753
55754
55755if test $pkg_failed = yes; then
55756
55757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55758        _pkg_short_errors_supported=yes
55759else
55760        _pkg_short_errors_supported=no
55761fi
55762        if test $_pkg_short_errors_supported = yes; then
55763	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55764        else
55765	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55766        fi
55767	# Put the nasty error message in config.log where it belongs
55768	echo "$CUDA_PKG_ERRORS" >&5
55769
55770	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55771$as_echo "no" >&6; }
55772
55773                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55774$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55775elif test $pkg_failed = untried; then
55776
55777                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55778$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55779else
55780	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55781	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55782        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55783$as_echo "yes" >&6; }
55784	:
55785fi
55786elif test $pkg_failed = untried; then
55787
55788
55789pkg_failed=no
55790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55791$as_echo_n "checking for CUDA... " >&6; }
55792
55793if test -n "$PKG_CONFIG"; then
55794    if test -n "$CUDA_CFLAGS"; then
55795        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55796    else
55797        if test -n "$PKG_CONFIG" && \
55798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55799  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55800  ac_status=$?
55801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55802  test $ac_status = 0; }; then
55803  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
55804else
55805  pkg_failed=yes
55806fi
55807    fi
55808else
55809	pkg_failed=untried
55810fi
55811if test -n "$PKG_CONFIG"; then
55812    if test -n "$CUDA_LIBS"; then
55813        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55814    else
55815        if test -n "$PKG_CONFIG" && \
55816    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
55817  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
55818  ac_status=$?
55819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55820  test $ac_status = 0; }; then
55821  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
55822else
55823  pkg_failed=yes
55824fi
55825    fi
55826else
55827	pkg_failed=untried
55828fi
55829
55830
55831
55832if test $pkg_failed = yes; then
55833
55834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55835        _pkg_short_errors_supported=yes
55836else
55837        _pkg_short_errors_supported=no
55838fi
55839        if test $_pkg_short_errors_supported = yes; then
55840	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55841        else
55842	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
55843        fi
55844	# Put the nasty error message in config.log where it belongs
55845	echo "$CUDA_PKG_ERRORS" >&5
55846
55847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55848$as_echo "no" >&6; }
55849
55850                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55851$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55852elif test $pkg_failed = untried; then
55853
55854                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
55855$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
55856else
55857	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55858	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55860$as_echo "yes" >&6; }
55861	:
55862fi
55863else
55864	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55865	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55866        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55867$as_echo "yes" >&6; }
55868	:
55869fi
55870else
55871	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
55872	CUDA_LIBS=$pkg_cv_CUDA_LIBS
55873        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55874$as_echo "yes" >&6; }
55875	:
55876fi
55877elif test $pkg_failed = untried; then
55878
55879
55880pkg_failed=no
55881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55882$as_echo_n "checking for CUDA... " >&6; }
55883
55884if test -n "$PKG_CONFIG"; then
55885    if test -n "$CUDA_CFLAGS"; then
55886        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55887    else
55888        if test -n "$PKG_CONFIG" && \
55889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
55890  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
55891  ac_status=$?
55892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55893  test $ac_status = 0; }; then
55894  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
55895else
55896  pkg_failed=yes
55897fi
55898    fi
55899else
55900	pkg_failed=untried
55901fi
55902if test -n "$PKG_CONFIG"; then
55903    if test -n "$CUDA_LIBS"; then
55904        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55905    else
55906        if test -n "$PKG_CONFIG" && \
55907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
55908  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
55909  ac_status=$?
55910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55911  test $ac_status = 0; }; then
55912  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
55913else
55914  pkg_failed=yes
55915fi
55916    fi
55917else
55918	pkg_failed=untried
55919fi
55920
55921
55922
55923if test $pkg_failed = yes; then
55924
55925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55926        _pkg_short_errors_supported=yes
55927else
55928        _pkg_short_errors_supported=no
55929fi
55930        if test $_pkg_short_errors_supported = yes; then
55931	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
55932        else
55933	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
55934        fi
55935	# Put the nasty error message in config.log where it belongs
55936	echo "$CUDA_PKG_ERRORS" >&5
55937
55938	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55939$as_echo "no" >&6; }
55940
55941
55942pkg_failed=no
55943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
55944$as_echo_n "checking for CUDA... " >&6; }
55945
55946if test -n "$PKG_CONFIG"; then
55947    if test -n "$CUDA_CFLAGS"; then
55948        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
55949    else
55950        if test -n "$PKG_CONFIG" && \
55951    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55952  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55953  ac_status=$?
55954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55955  test $ac_status = 0; }; then
55956  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
55957else
55958  pkg_failed=yes
55959fi
55960    fi
55961else
55962	pkg_failed=untried
55963fi
55964if test -n "$PKG_CONFIG"; then
55965    if test -n "$CUDA_LIBS"; then
55966        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
55967    else
55968        if test -n "$PKG_CONFIG" && \
55969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
55970  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
55971  ac_status=$?
55972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
55973  test $ac_status = 0; }; then
55974  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
55975else
55976  pkg_failed=yes
55977fi
55978    fi
55979else
55980	pkg_failed=untried
55981fi
55982
55983
55984
55985if test $pkg_failed = yes; then
55986
55987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
55988        _pkg_short_errors_supported=yes
55989else
55990        _pkg_short_errors_supported=no
55991fi
55992        if test $_pkg_short_errors_supported = yes; then
55993	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55994        else
55995	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
55996        fi
55997	# Put the nasty error message in config.log where it belongs
55998	echo "$CUDA_PKG_ERRORS" >&5
55999
56000	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56001$as_echo "no" >&6; }
56002
56003
56004pkg_failed=no
56005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56006$as_echo_n "checking for CUDA... " >&6; }
56007
56008if test -n "$PKG_CONFIG"; then
56009    if test -n "$CUDA_CFLAGS"; then
56010        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56011    else
56012        if test -n "$PKG_CONFIG" && \
56013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56014  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56015  ac_status=$?
56016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56017  test $ac_status = 0; }; then
56018  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56019else
56020  pkg_failed=yes
56021fi
56022    fi
56023else
56024	pkg_failed=untried
56025fi
56026if test -n "$PKG_CONFIG"; then
56027    if test -n "$CUDA_LIBS"; then
56028        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56029    else
56030        if test -n "$PKG_CONFIG" && \
56031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56032  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56033  ac_status=$?
56034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56035  test $ac_status = 0; }; then
56036  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56037else
56038  pkg_failed=yes
56039fi
56040    fi
56041else
56042	pkg_failed=untried
56043fi
56044
56045
56046
56047if test $pkg_failed = yes; then
56048
56049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56050        _pkg_short_errors_supported=yes
56051else
56052        _pkg_short_errors_supported=no
56053fi
56054        if test $_pkg_short_errors_supported = yes; then
56055	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56056        else
56057	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56058        fi
56059	# Put the nasty error message in config.log where it belongs
56060	echo "$CUDA_PKG_ERRORS" >&5
56061
56062	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56063$as_echo "no" >&6; }
56064
56065                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56066$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56067elif test $pkg_failed = untried; then
56068
56069                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56070$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56071else
56072	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56073	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56075$as_echo "yes" >&6; }
56076	:
56077fi
56078elif test $pkg_failed = untried; then
56079
56080
56081pkg_failed=no
56082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56083$as_echo_n "checking for CUDA... " >&6; }
56084
56085if test -n "$PKG_CONFIG"; then
56086    if test -n "$CUDA_CFLAGS"; then
56087        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56088    else
56089        if test -n "$PKG_CONFIG" && \
56090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56091  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56092  ac_status=$?
56093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56094  test $ac_status = 0; }; then
56095  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56096else
56097  pkg_failed=yes
56098fi
56099    fi
56100else
56101	pkg_failed=untried
56102fi
56103if test -n "$PKG_CONFIG"; then
56104    if test -n "$CUDA_LIBS"; then
56105        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56106    else
56107        if test -n "$PKG_CONFIG" && \
56108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56109  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56110  ac_status=$?
56111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56112  test $ac_status = 0; }; then
56113  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56114else
56115  pkg_failed=yes
56116fi
56117    fi
56118else
56119	pkg_failed=untried
56120fi
56121
56122
56123
56124if test $pkg_failed = yes; then
56125
56126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56127        _pkg_short_errors_supported=yes
56128else
56129        _pkg_short_errors_supported=no
56130fi
56131        if test $_pkg_short_errors_supported = yes; then
56132	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56133        else
56134	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56135        fi
56136	# Put the nasty error message in config.log where it belongs
56137	echo "$CUDA_PKG_ERRORS" >&5
56138
56139	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56140$as_echo "no" >&6; }
56141
56142                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56143$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56144elif test $pkg_failed = untried; then
56145
56146                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56147$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56148else
56149	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56150	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56152$as_echo "yes" >&6; }
56153	:
56154fi
56155else
56156	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56157	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56158        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56159$as_echo "yes" >&6; }
56160	:
56161fi
56162elif test $pkg_failed = untried; then
56163
56164
56165pkg_failed=no
56166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56167$as_echo_n "checking for CUDA... " >&6; }
56168
56169if test -n "$PKG_CONFIG"; then
56170    if test -n "$CUDA_CFLAGS"; then
56171        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56172    else
56173        if test -n "$PKG_CONFIG" && \
56174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56175  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56176  ac_status=$?
56177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56178  test $ac_status = 0; }; then
56179  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
56180else
56181  pkg_failed=yes
56182fi
56183    fi
56184else
56185	pkg_failed=untried
56186fi
56187if test -n "$PKG_CONFIG"; then
56188    if test -n "$CUDA_LIBS"; then
56189        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56190    else
56191        if test -n "$PKG_CONFIG" && \
56192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56193  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56194  ac_status=$?
56195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56196  test $ac_status = 0; }; then
56197  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
56198else
56199  pkg_failed=yes
56200fi
56201    fi
56202else
56203	pkg_failed=untried
56204fi
56205
56206
56207
56208if test $pkg_failed = yes; then
56209
56210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56211        _pkg_short_errors_supported=yes
56212else
56213        _pkg_short_errors_supported=no
56214fi
56215        if test $_pkg_short_errors_supported = yes; then
56216	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56217        else
56218	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56219        fi
56220	# Put the nasty error message in config.log where it belongs
56221	echo "$CUDA_PKG_ERRORS" >&5
56222
56223	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56224$as_echo "no" >&6; }
56225
56226
56227pkg_failed=no
56228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56229$as_echo_n "checking for CUDA... " >&6; }
56230
56231if test -n "$PKG_CONFIG"; then
56232    if test -n "$CUDA_CFLAGS"; then
56233        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56234    else
56235        if test -n "$PKG_CONFIG" && \
56236    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56237  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56238  ac_status=$?
56239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56240  test $ac_status = 0; }; then
56241  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56242else
56243  pkg_failed=yes
56244fi
56245    fi
56246else
56247	pkg_failed=untried
56248fi
56249if test -n "$PKG_CONFIG"; then
56250    if test -n "$CUDA_LIBS"; then
56251        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56252    else
56253        if test -n "$PKG_CONFIG" && \
56254    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56255  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56256  ac_status=$?
56257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56258  test $ac_status = 0; }; then
56259  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56260else
56261  pkg_failed=yes
56262fi
56263    fi
56264else
56265	pkg_failed=untried
56266fi
56267
56268
56269
56270if test $pkg_failed = yes; then
56271
56272if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56273        _pkg_short_errors_supported=yes
56274else
56275        _pkg_short_errors_supported=no
56276fi
56277        if test $_pkg_short_errors_supported = yes; then
56278	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56279        else
56280	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56281        fi
56282	# Put the nasty error message in config.log where it belongs
56283	echo "$CUDA_PKG_ERRORS" >&5
56284
56285	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56286$as_echo "no" >&6; }
56287
56288                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56289$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56290elif test $pkg_failed = untried; then
56291
56292                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56293$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56294else
56295	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56296	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56297        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56298$as_echo "yes" >&6; }
56299	:
56300fi
56301elif test $pkg_failed = untried; then
56302
56303
56304pkg_failed=no
56305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56306$as_echo_n "checking for CUDA... " >&6; }
56307
56308if test -n "$PKG_CONFIG"; then
56309    if test -n "$CUDA_CFLAGS"; then
56310        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56311    else
56312        if test -n "$PKG_CONFIG" && \
56313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56314  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56315  ac_status=$?
56316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56317  test $ac_status = 0; }; then
56318  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56319else
56320  pkg_failed=yes
56321fi
56322    fi
56323else
56324	pkg_failed=untried
56325fi
56326if test -n "$PKG_CONFIG"; then
56327    if test -n "$CUDA_LIBS"; then
56328        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56329    else
56330        if test -n "$PKG_CONFIG" && \
56331    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56332  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56333  ac_status=$?
56334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56335  test $ac_status = 0; }; then
56336  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56337else
56338  pkg_failed=yes
56339fi
56340    fi
56341else
56342	pkg_failed=untried
56343fi
56344
56345
56346
56347if test $pkg_failed = yes; then
56348
56349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56350        _pkg_short_errors_supported=yes
56351else
56352        _pkg_short_errors_supported=no
56353fi
56354        if test $_pkg_short_errors_supported = yes; then
56355	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56356        else
56357	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56358        fi
56359	# Put the nasty error message in config.log where it belongs
56360	echo "$CUDA_PKG_ERRORS" >&5
56361
56362	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56363$as_echo "no" >&6; }
56364
56365                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56366$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56367elif test $pkg_failed = untried; then
56368
56369                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56370$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56371else
56372	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56373	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56374        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56375$as_echo "yes" >&6; }
56376	:
56377fi
56378else
56379	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56380	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56381        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56382$as_echo "yes" >&6; }
56383	:
56384fi
56385else
56386	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56387	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56388        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56389$as_echo "yes" >&6; }
56390	:
56391fi
56392else
56393	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56394	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56395        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56396$as_echo "yes" >&6; }
56397	:
56398fi
56399else
56400	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56401	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56403$as_echo "yes" >&6; }
56404	:
56405fi
56406elif test $pkg_failed = untried; then
56407
56408
56409pkg_failed=no
56410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56411$as_echo_n "checking for CUDA... " >&6; }
56412
56413if test -n "$PKG_CONFIG"; then
56414    if test -n "$CUDA_CFLAGS"; then
56415        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56416    else
56417        if test -n "$PKG_CONFIG" && \
56418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
56419  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
56420  ac_status=$?
56421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56422  test $ac_status = 0; }; then
56423  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
56424else
56425  pkg_failed=yes
56426fi
56427    fi
56428else
56429	pkg_failed=untried
56430fi
56431if test -n "$PKG_CONFIG"; then
56432    if test -n "$CUDA_LIBS"; then
56433        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56434    else
56435        if test -n "$PKG_CONFIG" && \
56436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
56437  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
56438  ac_status=$?
56439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56440  test $ac_status = 0; }; then
56441  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
56442else
56443  pkg_failed=yes
56444fi
56445    fi
56446else
56447	pkg_failed=untried
56448fi
56449
56450
56451
56452if test $pkg_failed = yes; then
56453
56454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56455        _pkg_short_errors_supported=yes
56456else
56457        _pkg_short_errors_supported=no
56458fi
56459        if test $_pkg_short_errors_supported = yes; then
56460	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
56461        else
56462	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
56463        fi
56464	# Put the nasty error message in config.log where it belongs
56465	echo "$CUDA_PKG_ERRORS" >&5
56466
56467	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56468$as_echo "no" >&6; }
56469
56470
56471pkg_failed=no
56472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56473$as_echo_n "checking for CUDA... " >&6; }
56474
56475if test -n "$PKG_CONFIG"; then
56476    if test -n "$CUDA_CFLAGS"; then
56477        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56478    else
56479        if test -n "$PKG_CONFIG" && \
56480    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
56481  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
56482  ac_status=$?
56483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56484  test $ac_status = 0; }; then
56485  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
56486else
56487  pkg_failed=yes
56488fi
56489    fi
56490else
56491	pkg_failed=untried
56492fi
56493if test -n "$PKG_CONFIG"; then
56494    if test -n "$CUDA_LIBS"; then
56495        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56496    else
56497        if test -n "$PKG_CONFIG" && \
56498    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
56499  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
56500  ac_status=$?
56501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56502  test $ac_status = 0; }; then
56503  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
56504else
56505  pkg_failed=yes
56506fi
56507    fi
56508else
56509	pkg_failed=untried
56510fi
56511
56512
56513
56514if test $pkg_failed = yes; then
56515
56516if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56517        _pkg_short_errors_supported=yes
56518else
56519        _pkg_short_errors_supported=no
56520fi
56521        if test $_pkg_short_errors_supported = yes; then
56522	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
56523        else
56524	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
56525        fi
56526	# Put the nasty error message in config.log where it belongs
56527	echo "$CUDA_PKG_ERRORS" >&5
56528
56529	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56530$as_echo "no" >&6; }
56531
56532
56533pkg_failed=no
56534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56535$as_echo_n "checking for CUDA... " >&6; }
56536
56537if test -n "$PKG_CONFIG"; then
56538    if test -n "$CUDA_CFLAGS"; then
56539        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56540    else
56541        if test -n "$PKG_CONFIG" && \
56542    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
56543  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
56544  ac_status=$?
56545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56546  test $ac_status = 0; }; then
56547  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
56548else
56549  pkg_failed=yes
56550fi
56551    fi
56552else
56553	pkg_failed=untried
56554fi
56555if test -n "$PKG_CONFIG"; then
56556    if test -n "$CUDA_LIBS"; then
56557        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56558    else
56559        if test -n "$PKG_CONFIG" && \
56560    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
56561  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
56562  ac_status=$?
56563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56564  test $ac_status = 0; }; then
56565  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
56566else
56567  pkg_failed=yes
56568fi
56569    fi
56570else
56571	pkg_failed=untried
56572fi
56573
56574
56575
56576if test $pkg_failed = yes; then
56577
56578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56579        _pkg_short_errors_supported=yes
56580else
56581        _pkg_short_errors_supported=no
56582fi
56583        if test $_pkg_short_errors_supported = yes; then
56584	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
56585        else
56586	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
56587        fi
56588	# Put the nasty error message in config.log where it belongs
56589	echo "$CUDA_PKG_ERRORS" >&5
56590
56591	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56592$as_echo "no" >&6; }
56593
56594
56595pkg_failed=no
56596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56597$as_echo_n "checking for CUDA... " >&6; }
56598
56599if test -n "$PKG_CONFIG"; then
56600    if test -n "$CUDA_CFLAGS"; then
56601        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56602    else
56603        if test -n "$PKG_CONFIG" && \
56604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56605  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56606  ac_status=$?
56607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56608  test $ac_status = 0; }; then
56609  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
56610else
56611  pkg_failed=yes
56612fi
56613    fi
56614else
56615	pkg_failed=untried
56616fi
56617if test -n "$PKG_CONFIG"; then
56618    if test -n "$CUDA_LIBS"; then
56619        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56620    else
56621        if test -n "$PKG_CONFIG" && \
56622    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56623  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56624  ac_status=$?
56625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56626  test $ac_status = 0; }; then
56627  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
56628else
56629  pkg_failed=yes
56630fi
56631    fi
56632else
56633	pkg_failed=untried
56634fi
56635
56636
56637
56638if test $pkg_failed = yes; then
56639
56640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56641        _pkg_short_errors_supported=yes
56642else
56643        _pkg_short_errors_supported=no
56644fi
56645        if test $_pkg_short_errors_supported = yes; then
56646	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56647        else
56648	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56649        fi
56650	# Put the nasty error message in config.log where it belongs
56651	echo "$CUDA_PKG_ERRORS" >&5
56652
56653	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56654$as_echo "no" >&6; }
56655
56656
56657pkg_failed=no
56658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56659$as_echo_n "checking for CUDA... " >&6; }
56660
56661if test -n "$PKG_CONFIG"; then
56662    if test -n "$CUDA_CFLAGS"; then
56663        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56664    else
56665        if test -n "$PKG_CONFIG" && \
56666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56667  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56668  ac_status=$?
56669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56670  test $ac_status = 0; }; then
56671  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56672else
56673  pkg_failed=yes
56674fi
56675    fi
56676else
56677	pkg_failed=untried
56678fi
56679if test -n "$PKG_CONFIG"; then
56680    if test -n "$CUDA_LIBS"; then
56681        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56682    else
56683        if test -n "$PKG_CONFIG" && \
56684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56685  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56686  ac_status=$?
56687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56688  test $ac_status = 0; }; then
56689  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56690else
56691  pkg_failed=yes
56692fi
56693    fi
56694else
56695	pkg_failed=untried
56696fi
56697
56698
56699
56700if test $pkg_failed = yes; then
56701
56702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56703        _pkg_short_errors_supported=yes
56704else
56705        _pkg_short_errors_supported=no
56706fi
56707        if test $_pkg_short_errors_supported = yes; then
56708	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56709        else
56710	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56711        fi
56712	# Put the nasty error message in config.log where it belongs
56713	echo "$CUDA_PKG_ERRORS" >&5
56714
56715	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56716$as_echo "no" >&6; }
56717
56718                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56719$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56720elif test $pkg_failed = untried; then
56721
56722                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56723$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56724else
56725	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56726	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56727        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56728$as_echo "yes" >&6; }
56729	:
56730fi
56731elif test $pkg_failed = untried; then
56732
56733
56734pkg_failed=no
56735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56736$as_echo_n "checking for CUDA... " >&6; }
56737
56738if test -n "$PKG_CONFIG"; then
56739    if test -n "$CUDA_CFLAGS"; then
56740        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56741    else
56742        if test -n "$PKG_CONFIG" && \
56743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56744  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56745  ac_status=$?
56746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56747  test $ac_status = 0; }; then
56748  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56749else
56750  pkg_failed=yes
56751fi
56752    fi
56753else
56754	pkg_failed=untried
56755fi
56756if test -n "$PKG_CONFIG"; then
56757    if test -n "$CUDA_LIBS"; then
56758        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56759    else
56760        if test -n "$PKG_CONFIG" && \
56761    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56762  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56763  ac_status=$?
56764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56765  test $ac_status = 0; }; then
56766  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56767else
56768  pkg_failed=yes
56769fi
56770    fi
56771else
56772	pkg_failed=untried
56773fi
56774
56775
56776
56777if test $pkg_failed = yes; then
56778
56779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56780        _pkg_short_errors_supported=yes
56781else
56782        _pkg_short_errors_supported=no
56783fi
56784        if test $_pkg_short_errors_supported = yes; then
56785	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56786        else
56787	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56788        fi
56789	# Put the nasty error message in config.log where it belongs
56790	echo "$CUDA_PKG_ERRORS" >&5
56791
56792	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56793$as_echo "no" >&6; }
56794
56795                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56796$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56797elif test $pkg_failed = untried; then
56798
56799                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56800$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56801else
56802	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56803	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56805$as_echo "yes" >&6; }
56806	:
56807fi
56808else
56809	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56810	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56812$as_echo "yes" >&6; }
56813	:
56814fi
56815elif test $pkg_failed = untried; then
56816
56817
56818pkg_failed=no
56819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56820$as_echo_n "checking for CUDA... " >&6; }
56821
56822if test -n "$PKG_CONFIG"; then
56823    if test -n "$CUDA_CFLAGS"; then
56824        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56825    else
56826        if test -n "$PKG_CONFIG" && \
56827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56828  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56829  ac_status=$?
56830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56831  test $ac_status = 0; }; then
56832  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
56833else
56834  pkg_failed=yes
56835fi
56836    fi
56837else
56838	pkg_failed=untried
56839fi
56840if test -n "$PKG_CONFIG"; then
56841    if test -n "$CUDA_LIBS"; then
56842        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56843    else
56844        if test -n "$PKG_CONFIG" && \
56845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
56846  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
56847  ac_status=$?
56848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56849  test $ac_status = 0; }; then
56850  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
56851else
56852  pkg_failed=yes
56853fi
56854    fi
56855else
56856	pkg_failed=untried
56857fi
56858
56859
56860
56861if test $pkg_failed = yes; then
56862
56863if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56864        _pkg_short_errors_supported=yes
56865else
56866        _pkg_short_errors_supported=no
56867fi
56868        if test $_pkg_short_errors_supported = yes; then
56869	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56870        else
56871	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
56872        fi
56873	# Put the nasty error message in config.log where it belongs
56874	echo "$CUDA_PKG_ERRORS" >&5
56875
56876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56877$as_echo "no" >&6; }
56878
56879
56880pkg_failed=no
56881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56882$as_echo_n "checking for CUDA... " >&6; }
56883
56884if test -n "$PKG_CONFIG"; then
56885    if test -n "$CUDA_CFLAGS"; then
56886        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56887    else
56888        if test -n "$PKG_CONFIG" && \
56889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56890  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56891  ac_status=$?
56892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56893  test $ac_status = 0; }; then
56894  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56895else
56896  pkg_failed=yes
56897fi
56898    fi
56899else
56900	pkg_failed=untried
56901fi
56902if test -n "$PKG_CONFIG"; then
56903    if test -n "$CUDA_LIBS"; then
56904        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56905    else
56906        if test -n "$PKG_CONFIG" && \
56907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56908  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56909  ac_status=$?
56910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56911  test $ac_status = 0; }; then
56912  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56913else
56914  pkg_failed=yes
56915fi
56916    fi
56917else
56918	pkg_failed=untried
56919fi
56920
56921
56922
56923if test $pkg_failed = yes; then
56924
56925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
56926        _pkg_short_errors_supported=yes
56927else
56928        _pkg_short_errors_supported=no
56929fi
56930        if test $_pkg_short_errors_supported = yes; then
56931	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56932        else
56933	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
56934        fi
56935	# Put the nasty error message in config.log where it belongs
56936	echo "$CUDA_PKG_ERRORS" >&5
56937
56938	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56939$as_echo "no" >&6; }
56940
56941                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56942$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56943elif test $pkg_failed = untried; then
56944
56945                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
56946$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
56947else
56948	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
56949	CUDA_LIBS=$pkg_cv_CUDA_LIBS
56950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56951$as_echo "yes" >&6; }
56952	:
56953fi
56954elif test $pkg_failed = untried; then
56955
56956
56957pkg_failed=no
56958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
56959$as_echo_n "checking for CUDA... " >&6; }
56960
56961if test -n "$PKG_CONFIG"; then
56962    if test -n "$CUDA_CFLAGS"; then
56963        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
56964    else
56965        if test -n "$PKG_CONFIG" && \
56966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56967  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56968  ac_status=$?
56969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56970  test $ac_status = 0; }; then
56971  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
56972else
56973  pkg_failed=yes
56974fi
56975    fi
56976else
56977	pkg_failed=untried
56978fi
56979if test -n "$PKG_CONFIG"; then
56980    if test -n "$CUDA_LIBS"; then
56981        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
56982    else
56983        if test -n "$PKG_CONFIG" && \
56984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
56985  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
56986  ac_status=$?
56987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
56988  test $ac_status = 0; }; then
56989  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
56990else
56991  pkg_failed=yes
56992fi
56993    fi
56994else
56995	pkg_failed=untried
56996fi
56997
56998
56999
57000if test $pkg_failed = yes; then
57001
57002if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57003        _pkg_short_errors_supported=yes
57004else
57005        _pkg_short_errors_supported=no
57006fi
57007        if test $_pkg_short_errors_supported = yes; then
57008	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57009        else
57010	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57011        fi
57012	# Put the nasty error message in config.log where it belongs
57013	echo "$CUDA_PKG_ERRORS" >&5
57014
57015	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57016$as_echo "no" >&6; }
57017
57018                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57019$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57020elif test $pkg_failed = untried; then
57021
57022                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57023$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57024else
57025	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57026	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57027        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57028$as_echo "yes" >&6; }
57029	:
57030fi
57031else
57032	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57033	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57034        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57035$as_echo "yes" >&6; }
57036	:
57037fi
57038else
57039	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57040	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57041        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57042$as_echo "yes" >&6; }
57043	:
57044fi
57045elif test $pkg_failed = untried; then
57046
57047
57048pkg_failed=no
57049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57050$as_echo_n "checking for CUDA... " >&6; }
57051
57052if test -n "$PKG_CONFIG"; then
57053    if test -n "$CUDA_CFLAGS"; then
57054        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57055    else
57056        if test -n "$PKG_CONFIG" && \
57057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
57058  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
57059  ac_status=$?
57060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57061  test $ac_status = 0; }; then
57062  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
57063else
57064  pkg_failed=yes
57065fi
57066    fi
57067else
57068	pkg_failed=untried
57069fi
57070if test -n "$PKG_CONFIG"; then
57071    if test -n "$CUDA_LIBS"; then
57072        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57073    else
57074        if test -n "$PKG_CONFIG" && \
57075    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
57076  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
57077  ac_status=$?
57078  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57079  test $ac_status = 0; }; then
57080  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
57081else
57082  pkg_failed=yes
57083fi
57084    fi
57085else
57086	pkg_failed=untried
57087fi
57088
57089
57090
57091if test $pkg_failed = yes; then
57092
57093if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57094        _pkg_short_errors_supported=yes
57095else
57096        _pkg_short_errors_supported=no
57097fi
57098        if test $_pkg_short_errors_supported = yes; then
57099	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
57100        else
57101	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
57102        fi
57103	# Put the nasty error message in config.log where it belongs
57104	echo "$CUDA_PKG_ERRORS" >&5
57105
57106	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57107$as_echo "no" >&6; }
57108
57109
57110pkg_failed=no
57111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57112$as_echo_n "checking for CUDA... " >&6; }
57113
57114if test -n "$PKG_CONFIG"; then
57115    if test -n "$CUDA_CFLAGS"; then
57116        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57117    else
57118        if test -n "$PKG_CONFIG" && \
57119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57120  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57121  ac_status=$?
57122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57123  test $ac_status = 0; }; then
57124  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
57125else
57126  pkg_failed=yes
57127fi
57128    fi
57129else
57130	pkg_failed=untried
57131fi
57132if test -n "$PKG_CONFIG"; then
57133    if test -n "$CUDA_LIBS"; then
57134        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57135    else
57136        if test -n "$PKG_CONFIG" && \
57137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57138  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57139  ac_status=$?
57140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57141  test $ac_status = 0; }; then
57142  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
57143else
57144  pkg_failed=yes
57145fi
57146    fi
57147else
57148	pkg_failed=untried
57149fi
57150
57151
57152
57153if test $pkg_failed = yes; then
57154
57155if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57156        _pkg_short_errors_supported=yes
57157else
57158        _pkg_short_errors_supported=no
57159fi
57160        if test $_pkg_short_errors_supported = yes; then
57161	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57162        else
57163	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57164        fi
57165	# Put the nasty error message in config.log where it belongs
57166	echo "$CUDA_PKG_ERRORS" >&5
57167
57168	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57169$as_echo "no" >&6; }
57170
57171
57172pkg_failed=no
57173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57174$as_echo_n "checking for CUDA... " >&6; }
57175
57176if test -n "$PKG_CONFIG"; then
57177    if test -n "$CUDA_CFLAGS"; then
57178        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57179    else
57180        if test -n "$PKG_CONFIG" && \
57181    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57182  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57183  ac_status=$?
57184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57185  test $ac_status = 0; }; then
57186  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57187else
57188  pkg_failed=yes
57189fi
57190    fi
57191else
57192	pkg_failed=untried
57193fi
57194if test -n "$PKG_CONFIG"; then
57195    if test -n "$CUDA_LIBS"; then
57196        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57197    else
57198        if test -n "$PKG_CONFIG" && \
57199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57200  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57201  ac_status=$?
57202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57203  test $ac_status = 0; }; then
57204  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57205else
57206  pkg_failed=yes
57207fi
57208    fi
57209else
57210	pkg_failed=untried
57211fi
57212
57213
57214
57215if test $pkg_failed = yes; then
57216
57217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57218        _pkg_short_errors_supported=yes
57219else
57220        _pkg_short_errors_supported=no
57221fi
57222        if test $_pkg_short_errors_supported = yes; then
57223	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57224        else
57225	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57226        fi
57227	# Put the nasty error message in config.log where it belongs
57228	echo "$CUDA_PKG_ERRORS" >&5
57229
57230	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57231$as_echo "no" >&6; }
57232
57233                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57234$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57235elif test $pkg_failed = untried; then
57236
57237                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57238$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57239else
57240	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57241	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57242        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57243$as_echo "yes" >&6; }
57244	:
57245fi
57246elif test $pkg_failed = untried; then
57247
57248
57249pkg_failed=no
57250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57251$as_echo_n "checking for CUDA... " >&6; }
57252
57253if test -n "$PKG_CONFIG"; then
57254    if test -n "$CUDA_CFLAGS"; then
57255        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57256    else
57257        if test -n "$PKG_CONFIG" && \
57258    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57259  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57260  ac_status=$?
57261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57262  test $ac_status = 0; }; then
57263  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57264else
57265  pkg_failed=yes
57266fi
57267    fi
57268else
57269	pkg_failed=untried
57270fi
57271if test -n "$PKG_CONFIG"; then
57272    if test -n "$CUDA_LIBS"; then
57273        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57274    else
57275        if test -n "$PKG_CONFIG" && \
57276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57277  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57278  ac_status=$?
57279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57280  test $ac_status = 0; }; then
57281  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57282else
57283  pkg_failed=yes
57284fi
57285    fi
57286else
57287	pkg_failed=untried
57288fi
57289
57290
57291
57292if test $pkg_failed = yes; then
57293
57294if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57295        _pkg_short_errors_supported=yes
57296else
57297        _pkg_short_errors_supported=no
57298fi
57299        if test $_pkg_short_errors_supported = yes; then
57300	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57301        else
57302	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57303        fi
57304	# Put the nasty error message in config.log where it belongs
57305	echo "$CUDA_PKG_ERRORS" >&5
57306
57307	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57308$as_echo "no" >&6; }
57309
57310                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57311$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57312elif test $pkg_failed = untried; then
57313
57314                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57315$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57316else
57317	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57318	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57320$as_echo "yes" >&6; }
57321	:
57322fi
57323else
57324	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57325	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57327$as_echo "yes" >&6; }
57328	:
57329fi
57330elif test $pkg_failed = untried; then
57331
57332
57333pkg_failed=no
57334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57335$as_echo_n "checking for CUDA... " >&6; }
57336
57337if test -n "$PKG_CONFIG"; then
57338    if test -n "$CUDA_CFLAGS"; then
57339        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57340    else
57341        if test -n "$PKG_CONFIG" && \
57342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57343  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57344  ac_status=$?
57345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57346  test $ac_status = 0; }; then
57347  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
57348else
57349  pkg_failed=yes
57350fi
57351    fi
57352else
57353	pkg_failed=untried
57354fi
57355if test -n "$PKG_CONFIG"; then
57356    if test -n "$CUDA_LIBS"; then
57357        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57358    else
57359        if test -n "$PKG_CONFIG" && \
57360    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57361  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57362  ac_status=$?
57363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57364  test $ac_status = 0; }; then
57365  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
57366else
57367  pkg_failed=yes
57368fi
57369    fi
57370else
57371	pkg_failed=untried
57372fi
57373
57374
57375
57376if test $pkg_failed = yes; then
57377
57378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57379        _pkg_short_errors_supported=yes
57380else
57381        _pkg_short_errors_supported=no
57382fi
57383        if test $_pkg_short_errors_supported = yes; then
57384	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57385        else
57386	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57387        fi
57388	# Put the nasty error message in config.log where it belongs
57389	echo "$CUDA_PKG_ERRORS" >&5
57390
57391	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57392$as_echo "no" >&6; }
57393
57394
57395pkg_failed=no
57396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57397$as_echo_n "checking for CUDA... " >&6; }
57398
57399if test -n "$PKG_CONFIG"; then
57400    if test -n "$CUDA_CFLAGS"; then
57401        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57402    else
57403        if test -n "$PKG_CONFIG" && \
57404    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57405  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57406  ac_status=$?
57407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57408  test $ac_status = 0; }; then
57409  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57410else
57411  pkg_failed=yes
57412fi
57413    fi
57414else
57415	pkg_failed=untried
57416fi
57417if test -n "$PKG_CONFIG"; then
57418    if test -n "$CUDA_LIBS"; then
57419        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57420    else
57421        if test -n "$PKG_CONFIG" && \
57422    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57423  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57424  ac_status=$?
57425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57426  test $ac_status = 0; }; then
57427  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57428else
57429  pkg_failed=yes
57430fi
57431    fi
57432else
57433	pkg_failed=untried
57434fi
57435
57436
57437
57438if test $pkg_failed = yes; then
57439
57440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57441        _pkg_short_errors_supported=yes
57442else
57443        _pkg_short_errors_supported=no
57444fi
57445        if test $_pkg_short_errors_supported = yes; then
57446	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57447        else
57448	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57449        fi
57450	# Put the nasty error message in config.log where it belongs
57451	echo "$CUDA_PKG_ERRORS" >&5
57452
57453	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57454$as_echo "no" >&6; }
57455
57456                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57457$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57458elif test $pkg_failed = untried; then
57459
57460                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57461$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57462else
57463	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57464	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57465        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57466$as_echo "yes" >&6; }
57467	:
57468fi
57469elif test $pkg_failed = untried; then
57470
57471
57472pkg_failed=no
57473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57474$as_echo_n "checking for CUDA... " >&6; }
57475
57476if test -n "$PKG_CONFIG"; then
57477    if test -n "$CUDA_CFLAGS"; then
57478        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57479    else
57480        if test -n "$PKG_CONFIG" && \
57481    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57482  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57483  ac_status=$?
57484  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57485  test $ac_status = 0; }; then
57486  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57487else
57488  pkg_failed=yes
57489fi
57490    fi
57491else
57492	pkg_failed=untried
57493fi
57494if test -n "$PKG_CONFIG"; then
57495    if test -n "$CUDA_LIBS"; then
57496        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57497    else
57498        if test -n "$PKG_CONFIG" && \
57499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57500  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57501  ac_status=$?
57502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57503  test $ac_status = 0; }; then
57504  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57505else
57506  pkg_failed=yes
57507fi
57508    fi
57509else
57510	pkg_failed=untried
57511fi
57512
57513
57514
57515if test $pkg_failed = yes; then
57516
57517if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57518        _pkg_short_errors_supported=yes
57519else
57520        _pkg_short_errors_supported=no
57521fi
57522        if test $_pkg_short_errors_supported = yes; then
57523	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57524        else
57525	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57526        fi
57527	# Put the nasty error message in config.log where it belongs
57528	echo "$CUDA_PKG_ERRORS" >&5
57529
57530	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57531$as_echo "no" >&6; }
57532
57533                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57534$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57535elif test $pkg_failed = untried; then
57536
57537                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57538$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57539else
57540	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57541	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57542        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57543$as_echo "yes" >&6; }
57544	:
57545fi
57546else
57547	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57548	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57549        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57550$as_echo "yes" >&6; }
57551	:
57552fi
57553else
57554	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57555	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57557$as_echo "yes" >&6; }
57558	:
57559fi
57560else
57561	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57562	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57564$as_echo "yes" >&6; }
57565	:
57566fi
57567elif test $pkg_failed = untried; then
57568
57569
57570pkg_failed=no
57571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57572$as_echo_n "checking for CUDA... " >&6; }
57573
57574if test -n "$PKG_CONFIG"; then
57575    if test -n "$CUDA_CFLAGS"; then
57576        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57577    else
57578        if test -n "$PKG_CONFIG" && \
57579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
57580  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
57581  ac_status=$?
57582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57583  test $ac_status = 0; }; then
57584  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
57585else
57586  pkg_failed=yes
57587fi
57588    fi
57589else
57590	pkg_failed=untried
57591fi
57592if test -n "$PKG_CONFIG"; then
57593    if test -n "$CUDA_LIBS"; then
57594        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57595    else
57596        if test -n "$PKG_CONFIG" && \
57597    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
57598  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
57599  ac_status=$?
57600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57601  test $ac_status = 0; }; then
57602  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
57603else
57604  pkg_failed=yes
57605fi
57606    fi
57607else
57608	pkg_failed=untried
57609fi
57610
57611
57612
57613if test $pkg_failed = yes; then
57614
57615if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57616        _pkg_short_errors_supported=yes
57617else
57618        _pkg_short_errors_supported=no
57619fi
57620        if test $_pkg_short_errors_supported = yes; then
57621	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
57622        else
57623	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
57624        fi
57625	# Put the nasty error message in config.log where it belongs
57626	echo "$CUDA_PKG_ERRORS" >&5
57627
57628	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57629$as_echo "no" >&6; }
57630
57631
57632pkg_failed=no
57633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57634$as_echo_n "checking for CUDA... " >&6; }
57635
57636if test -n "$PKG_CONFIG"; then
57637    if test -n "$CUDA_CFLAGS"; then
57638        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57639    else
57640        if test -n "$PKG_CONFIG" && \
57641    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
57642  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
57643  ac_status=$?
57644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57645  test $ac_status = 0; }; then
57646  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
57647else
57648  pkg_failed=yes
57649fi
57650    fi
57651else
57652	pkg_failed=untried
57653fi
57654if test -n "$PKG_CONFIG"; then
57655    if test -n "$CUDA_LIBS"; then
57656        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57657    else
57658        if test -n "$PKG_CONFIG" && \
57659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
57660  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
57661  ac_status=$?
57662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57663  test $ac_status = 0; }; then
57664  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
57665else
57666  pkg_failed=yes
57667fi
57668    fi
57669else
57670	pkg_failed=untried
57671fi
57672
57673
57674
57675if test $pkg_failed = yes; then
57676
57677if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57678        _pkg_short_errors_supported=yes
57679else
57680        _pkg_short_errors_supported=no
57681fi
57682        if test $_pkg_short_errors_supported = yes; then
57683	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
57684        else
57685	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
57686        fi
57687	# Put the nasty error message in config.log where it belongs
57688	echo "$CUDA_PKG_ERRORS" >&5
57689
57690	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57691$as_echo "no" >&6; }
57692
57693
57694pkg_failed=no
57695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57696$as_echo_n "checking for CUDA... " >&6; }
57697
57698if test -n "$PKG_CONFIG"; then
57699    if test -n "$CUDA_CFLAGS"; then
57700        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57701    else
57702        if test -n "$PKG_CONFIG" && \
57703    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57704  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57705  ac_status=$?
57706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57707  test $ac_status = 0; }; then
57708  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
57709else
57710  pkg_failed=yes
57711fi
57712    fi
57713else
57714	pkg_failed=untried
57715fi
57716if test -n "$PKG_CONFIG"; then
57717    if test -n "$CUDA_LIBS"; then
57718        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57719    else
57720        if test -n "$PKG_CONFIG" && \
57721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57722  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57723  ac_status=$?
57724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57725  test $ac_status = 0; }; then
57726  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
57727else
57728  pkg_failed=yes
57729fi
57730    fi
57731else
57732	pkg_failed=untried
57733fi
57734
57735
57736
57737if test $pkg_failed = yes; then
57738
57739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57740        _pkg_short_errors_supported=yes
57741else
57742        _pkg_short_errors_supported=no
57743fi
57744        if test $_pkg_short_errors_supported = yes; then
57745	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57746        else
57747	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57748        fi
57749	# Put the nasty error message in config.log where it belongs
57750	echo "$CUDA_PKG_ERRORS" >&5
57751
57752	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57753$as_echo "no" >&6; }
57754
57755
57756pkg_failed=no
57757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57758$as_echo_n "checking for CUDA... " >&6; }
57759
57760if test -n "$PKG_CONFIG"; then
57761    if test -n "$CUDA_CFLAGS"; then
57762        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57763    else
57764        if test -n "$PKG_CONFIG" && \
57765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57766  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57767  ac_status=$?
57768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57769  test $ac_status = 0; }; then
57770  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57771else
57772  pkg_failed=yes
57773fi
57774    fi
57775else
57776	pkg_failed=untried
57777fi
57778if test -n "$PKG_CONFIG"; then
57779    if test -n "$CUDA_LIBS"; then
57780        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57781    else
57782        if test -n "$PKG_CONFIG" && \
57783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57784  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57785  ac_status=$?
57786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57787  test $ac_status = 0; }; then
57788  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57789else
57790  pkg_failed=yes
57791fi
57792    fi
57793else
57794	pkg_failed=untried
57795fi
57796
57797
57798
57799if test $pkg_failed = yes; then
57800
57801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57802        _pkg_short_errors_supported=yes
57803else
57804        _pkg_short_errors_supported=no
57805fi
57806        if test $_pkg_short_errors_supported = yes; then
57807	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57808        else
57809	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57810        fi
57811	# Put the nasty error message in config.log where it belongs
57812	echo "$CUDA_PKG_ERRORS" >&5
57813
57814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57815$as_echo "no" >&6; }
57816
57817                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57818$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57819elif test $pkg_failed = untried; then
57820
57821                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57822$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57823else
57824	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57825	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57827$as_echo "yes" >&6; }
57828	:
57829fi
57830elif test $pkg_failed = untried; then
57831
57832
57833pkg_failed=no
57834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57835$as_echo_n "checking for CUDA... " >&6; }
57836
57837if test -n "$PKG_CONFIG"; then
57838    if test -n "$CUDA_CFLAGS"; then
57839        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57840    else
57841        if test -n "$PKG_CONFIG" && \
57842    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57843  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57844  ac_status=$?
57845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57846  test $ac_status = 0; }; then
57847  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57848else
57849  pkg_failed=yes
57850fi
57851    fi
57852else
57853	pkg_failed=untried
57854fi
57855if test -n "$PKG_CONFIG"; then
57856    if test -n "$CUDA_LIBS"; then
57857        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57858    else
57859        if test -n "$PKG_CONFIG" && \
57860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57861  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57862  ac_status=$?
57863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57864  test $ac_status = 0; }; then
57865  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
57866else
57867  pkg_failed=yes
57868fi
57869    fi
57870else
57871	pkg_failed=untried
57872fi
57873
57874
57875
57876if test $pkg_failed = yes; then
57877
57878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57879        _pkg_short_errors_supported=yes
57880else
57881        _pkg_short_errors_supported=no
57882fi
57883        if test $_pkg_short_errors_supported = yes; then
57884	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57885        else
57886	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
57887        fi
57888	# Put the nasty error message in config.log where it belongs
57889	echo "$CUDA_PKG_ERRORS" >&5
57890
57891	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57892$as_echo "no" >&6; }
57893
57894                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57895$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57896elif test $pkg_failed = untried; then
57897
57898                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
57899$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
57900else
57901	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57902	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57903        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57904$as_echo "yes" >&6; }
57905	:
57906fi
57907else
57908	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
57909	CUDA_LIBS=$pkg_cv_CUDA_LIBS
57910        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57911$as_echo "yes" >&6; }
57912	:
57913fi
57914elif test $pkg_failed = untried; then
57915
57916
57917pkg_failed=no
57918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57919$as_echo_n "checking for CUDA... " >&6; }
57920
57921if test -n "$PKG_CONFIG"; then
57922    if test -n "$CUDA_CFLAGS"; then
57923        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57924    else
57925        if test -n "$PKG_CONFIG" && \
57926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57927  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57928  ac_status=$?
57929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57930  test $ac_status = 0; }; then
57931  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
57932else
57933  pkg_failed=yes
57934fi
57935    fi
57936else
57937	pkg_failed=untried
57938fi
57939if test -n "$PKG_CONFIG"; then
57940    if test -n "$CUDA_LIBS"; then
57941        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
57942    else
57943        if test -n "$PKG_CONFIG" && \
57944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
57945  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
57946  ac_status=$?
57947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57948  test $ac_status = 0; }; then
57949  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
57950else
57951  pkg_failed=yes
57952fi
57953    fi
57954else
57955	pkg_failed=untried
57956fi
57957
57958
57959
57960if test $pkg_failed = yes; then
57961
57962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
57963        _pkg_short_errors_supported=yes
57964else
57965        _pkg_short_errors_supported=no
57966fi
57967        if test $_pkg_short_errors_supported = yes; then
57968	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57969        else
57970	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
57971        fi
57972	# Put the nasty error message in config.log where it belongs
57973	echo "$CUDA_PKG_ERRORS" >&5
57974
57975	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57976$as_echo "no" >&6; }
57977
57978
57979pkg_failed=no
57980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
57981$as_echo_n "checking for CUDA... " >&6; }
57982
57983if test -n "$PKG_CONFIG"; then
57984    if test -n "$CUDA_CFLAGS"; then
57985        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
57986    else
57987        if test -n "$PKG_CONFIG" && \
57988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
57989  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
57990  ac_status=$?
57991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57992  test $ac_status = 0; }; then
57993  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
57994else
57995  pkg_failed=yes
57996fi
57997    fi
57998else
57999	pkg_failed=untried
58000fi
58001if test -n "$PKG_CONFIG"; then
58002    if test -n "$CUDA_LIBS"; then
58003        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58004    else
58005        if test -n "$PKG_CONFIG" && \
58006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58007  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58008  ac_status=$?
58009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58010  test $ac_status = 0; }; then
58011  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58012else
58013  pkg_failed=yes
58014fi
58015    fi
58016else
58017	pkg_failed=untried
58018fi
58019
58020
58021
58022if test $pkg_failed = yes; then
58023
58024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58025        _pkg_short_errors_supported=yes
58026else
58027        _pkg_short_errors_supported=no
58028fi
58029        if test $_pkg_short_errors_supported = yes; then
58030	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58031        else
58032	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58033        fi
58034	# Put the nasty error message in config.log where it belongs
58035	echo "$CUDA_PKG_ERRORS" >&5
58036
58037	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58038$as_echo "no" >&6; }
58039
58040                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58041$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58042elif test $pkg_failed = untried; then
58043
58044                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58045$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58046else
58047	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58048	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58050$as_echo "yes" >&6; }
58051	:
58052fi
58053elif test $pkg_failed = untried; then
58054
58055
58056pkg_failed=no
58057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58058$as_echo_n "checking for CUDA... " >&6; }
58059
58060if test -n "$PKG_CONFIG"; then
58061    if test -n "$CUDA_CFLAGS"; then
58062        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58063    else
58064        if test -n "$PKG_CONFIG" && \
58065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58066  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58067  ac_status=$?
58068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58069  test $ac_status = 0; }; then
58070  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
58071else
58072  pkg_failed=yes
58073fi
58074    fi
58075else
58076	pkg_failed=untried
58077fi
58078if test -n "$PKG_CONFIG"; then
58079    if test -n "$CUDA_LIBS"; then
58080        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58081    else
58082        if test -n "$PKG_CONFIG" && \
58083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58084  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58085  ac_status=$?
58086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58087  test $ac_status = 0; }; then
58088  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58089else
58090  pkg_failed=yes
58091fi
58092    fi
58093else
58094	pkg_failed=untried
58095fi
58096
58097
58098
58099if test $pkg_failed = yes; then
58100
58101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58102        _pkg_short_errors_supported=yes
58103else
58104        _pkg_short_errors_supported=no
58105fi
58106        if test $_pkg_short_errors_supported = yes; then
58107	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58108        else
58109	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58110        fi
58111	# Put the nasty error message in config.log where it belongs
58112	echo "$CUDA_PKG_ERRORS" >&5
58113
58114	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58115$as_echo "no" >&6; }
58116
58117                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58118$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58119elif test $pkg_failed = untried; then
58120
58121                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58122$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58123else
58124	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58125	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58127$as_echo "yes" >&6; }
58128	:
58129fi
58130else
58131	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58132	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58134$as_echo "yes" >&6; }
58135	:
58136fi
58137else
58138	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58139	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58141$as_echo "yes" >&6; }
58142	:
58143fi
58144elif test $pkg_failed = untried; then
58145
58146
58147pkg_failed=no
58148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58149$as_echo_n "checking for CUDA... " >&6; }
58150
58151if test -n "$PKG_CONFIG"; then
58152    if test -n "$CUDA_CFLAGS"; then
58153        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58154    else
58155        if test -n "$PKG_CONFIG" && \
58156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
58157  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
58158  ac_status=$?
58159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58160  test $ac_status = 0; }; then
58161  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
58162else
58163  pkg_failed=yes
58164fi
58165    fi
58166else
58167	pkg_failed=untried
58168fi
58169if test -n "$PKG_CONFIG"; then
58170    if test -n "$CUDA_LIBS"; then
58171        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58172    else
58173        if test -n "$PKG_CONFIG" && \
58174    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
58175  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
58176  ac_status=$?
58177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58178  test $ac_status = 0; }; then
58179  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
58180else
58181  pkg_failed=yes
58182fi
58183    fi
58184else
58185	pkg_failed=untried
58186fi
58187
58188
58189
58190if test $pkg_failed = yes; then
58191
58192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58193        _pkg_short_errors_supported=yes
58194else
58195        _pkg_short_errors_supported=no
58196fi
58197        if test $_pkg_short_errors_supported = yes; then
58198	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
58199        else
58200	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
58201        fi
58202	# Put the nasty error message in config.log where it belongs
58203	echo "$CUDA_PKG_ERRORS" >&5
58204
58205	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58206$as_echo "no" >&6; }
58207
58208
58209pkg_failed=no
58210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58211$as_echo_n "checking for CUDA... " >&6; }
58212
58213if test -n "$PKG_CONFIG"; then
58214    if test -n "$CUDA_CFLAGS"; then
58215        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58216    else
58217        if test -n "$PKG_CONFIG" && \
58218    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58219  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58220  ac_status=$?
58221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58222  test $ac_status = 0; }; then
58223  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
58224else
58225  pkg_failed=yes
58226fi
58227    fi
58228else
58229	pkg_failed=untried
58230fi
58231if test -n "$PKG_CONFIG"; then
58232    if test -n "$CUDA_LIBS"; then
58233        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58234    else
58235        if test -n "$PKG_CONFIG" && \
58236    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58237  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58238  ac_status=$?
58239  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58240  test $ac_status = 0; }; then
58241  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
58242else
58243  pkg_failed=yes
58244fi
58245    fi
58246else
58247	pkg_failed=untried
58248fi
58249
58250
58251
58252if test $pkg_failed = yes; then
58253
58254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58255        _pkg_short_errors_supported=yes
58256else
58257        _pkg_short_errors_supported=no
58258fi
58259        if test $_pkg_short_errors_supported = yes; then
58260	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58261        else
58262	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58263        fi
58264	# Put the nasty error message in config.log where it belongs
58265	echo "$CUDA_PKG_ERRORS" >&5
58266
58267	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58268$as_echo "no" >&6; }
58269
58270
58271pkg_failed=no
58272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58273$as_echo_n "checking for CUDA... " >&6; }
58274
58275if test -n "$PKG_CONFIG"; then
58276    if test -n "$CUDA_CFLAGS"; then
58277        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58278    else
58279        if test -n "$PKG_CONFIG" && \
58280    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58281  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58282  ac_status=$?
58283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58284  test $ac_status = 0; }; then
58285  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
58286else
58287  pkg_failed=yes
58288fi
58289    fi
58290else
58291	pkg_failed=untried
58292fi
58293if test -n "$PKG_CONFIG"; then
58294    if test -n "$CUDA_LIBS"; then
58295        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58296    else
58297        if test -n "$PKG_CONFIG" && \
58298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58299  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58300  ac_status=$?
58301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58302  test $ac_status = 0; }; then
58303  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58304else
58305  pkg_failed=yes
58306fi
58307    fi
58308else
58309	pkg_failed=untried
58310fi
58311
58312
58313
58314if test $pkg_failed = yes; then
58315
58316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58317        _pkg_short_errors_supported=yes
58318else
58319        _pkg_short_errors_supported=no
58320fi
58321        if test $_pkg_short_errors_supported = yes; then
58322	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58323        else
58324	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58325        fi
58326	# Put the nasty error message in config.log where it belongs
58327	echo "$CUDA_PKG_ERRORS" >&5
58328
58329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58330$as_echo "no" >&6; }
58331
58332                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58333$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58334elif test $pkg_failed = untried; then
58335
58336                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58337$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58338else
58339	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58340	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58342$as_echo "yes" >&6; }
58343	:
58344fi
58345elif test $pkg_failed = untried; then
58346
58347
58348pkg_failed=no
58349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58350$as_echo_n "checking for CUDA... " >&6; }
58351
58352if test -n "$PKG_CONFIG"; then
58353    if test -n "$CUDA_CFLAGS"; then
58354        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58355    else
58356        if test -n "$PKG_CONFIG" && \
58357    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58358  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58359  ac_status=$?
58360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58361  test $ac_status = 0; }; then
58362  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
58363else
58364  pkg_failed=yes
58365fi
58366    fi
58367else
58368	pkg_failed=untried
58369fi
58370if test -n "$PKG_CONFIG"; then
58371    if test -n "$CUDA_LIBS"; then
58372        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58373    else
58374        if test -n "$PKG_CONFIG" && \
58375    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58376  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58377  ac_status=$?
58378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58379  test $ac_status = 0; }; then
58380  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58381else
58382  pkg_failed=yes
58383fi
58384    fi
58385else
58386	pkg_failed=untried
58387fi
58388
58389
58390
58391if test $pkg_failed = yes; then
58392
58393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58394        _pkg_short_errors_supported=yes
58395else
58396        _pkg_short_errors_supported=no
58397fi
58398        if test $_pkg_short_errors_supported = yes; then
58399	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58400        else
58401	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58402        fi
58403	# Put the nasty error message in config.log where it belongs
58404	echo "$CUDA_PKG_ERRORS" >&5
58405
58406	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58407$as_echo "no" >&6; }
58408
58409                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58410$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58411elif test $pkg_failed = untried; then
58412
58413                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58414$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58415else
58416	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58417	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58418        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58419$as_echo "yes" >&6; }
58420	:
58421fi
58422else
58423	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58424	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58425        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58426$as_echo "yes" >&6; }
58427	:
58428fi
58429elif test $pkg_failed = untried; then
58430
58431
58432pkg_failed=no
58433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58434$as_echo_n "checking for CUDA... " >&6; }
58435
58436if test -n "$PKG_CONFIG"; then
58437    if test -n "$CUDA_CFLAGS"; then
58438        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58439    else
58440        if test -n "$PKG_CONFIG" && \
58441    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58442  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58443  ac_status=$?
58444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58445  test $ac_status = 0; }; then
58446  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
58447else
58448  pkg_failed=yes
58449fi
58450    fi
58451else
58452	pkg_failed=untried
58453fi
58454if test -n "$PKG_CONFIG"; then
58455    if test -n "$CUDA_LIBS"; then
58456        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58457    else
58458        if test -n "$PKG_CONFIG" && \
58459    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58460  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58461  ac_status=$?
58462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58463  test $ac_status = 0; }; then
58464  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
58465else
58466  pkg_failed=yes
58467fi
58468    fi
58469else
58470	pkg_failed=untried
58471fi
58472
58473
58474
58475if test $pkg_failed = yes; then
58476
58477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58478        _pkg_short_errors_supported=yes
58479else
58480        _pkg_short_errors_supported=no
58481fi
58482        if test $_pkg_short_errors_supported = yes; then
58483	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58484        else
58485	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58486        fi
58487	# Put the nasty error message in config.log where it belongs
58488	echo "$CUDA_PKG_ERRORS" >&5
58489
58490	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58491$as_echo "no" >&6; }
58492
58493
58494pkg_failed=no
58495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58496$as_echo_n "checking for CUDA... " >&6; }
58497
58498if test -n "$PKG_CONFIG"; then
58499    if test -n "$CUDA_CFLAGS"; then
58500        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58501    else
58502        if test -n "$PKG_CONFIG" && \
58503    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58504  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58505  ac_status=$?
58506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58507  test $ac_status = 0; }; then
58508  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
58509else
58510  pkg_failed=yes
58511fi
58512    fi
58513else
58514	pkg_failed=untried
58515fi
58516if test -n "$PKG_CONFIG"; then
58517    if test -n "$CUDA_LIBS"; then
58518        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58519    else
58520        if test -n "$PKG_CONFIG" && \
58521    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58522  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58523  ac_status=$?
58524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58525  test $ac_status = 0; }; then
58526  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58527else
58528  pkg_failed=yes
58529fi
58530    fi
58531else
58532	pkg_failed=untried
58533fi
58534
58535
58536
58537if test $pkg_failed = yes; then
58538
58539if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58540        _pkg_short_errors_supported=yes
58541else
58542        _pkg_short_errors_supported=no
58543fi
58544        if test $_pkg_short_errors_supported = yes; then
58545	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58546        else
58547	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58548        fi
58549	# Put the nasty error message in config.log where it belongs
58550	echo "$CUDA_PKG_ERRORS" >&5
58551
58552	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58553$as_echo "no" >&6; }
58554
58555                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58556$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58557elif test $pkg_failed = untried; then
58558
58559                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58560$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58561else
58562	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58563	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58565$as_echo "yes" >&6; }
58566	:
58567fi
58568elif test $pkg_failed = untried; then
58569
58570
58571pkg_failed=no
58572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58573$as_echo_n "checking for CUDA... " >&6; }
58574
58575if test -n "$PKG_CONFIG"; then
58576    if test -n "$CUDA_CFLAGS"; then
58577        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58578    else
58579        if test -n "$PKG_CONFIG" && \
58580    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58581  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58582  ac_status=$?
58583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58584  test $ac_status = 0; }; then
58585  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
58586else
58587  pkg_failed=yes
58588fi
58589    fi
58590else
58591	pkg_failed=untried
58592fi
58593if test -n "$PKG_CONFIG"; then
58594    if test -n "$CUDA_LIBS"; then
58595        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58596    else
58597        if test -n "$PKG_CONFIG" && \
58598    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
58599  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
58600  ac_status=$?
58601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58602  test $ac_status = 0; }; then
58603  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
58604else
58605  pkg_failed=yes
58606fi
58607    fi
58608else
58609	pkg_failed=untried
58610fi
58611
58612
58613
58614if test $pkg_failed = yes; then
58615
58616if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58617        _pkg_short_errors_supported=yes
58618else
58619        _pkg_short_errors_supported=no
58620fi
58621        if test $_pkg_short_errors_supported = yes; then
58622	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58623        else
58624	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
58625        fi
58626	# Put the nasty error message in config.log where it belongs
58627	echo "$CUDA_PKG_ERRORS" >&5
58628
58629	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58630$as_echo "no" >&6; }
58631
58632                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58633$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58634elif test $pkg_failed = untried; then
58635
58636                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
58637$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
58638else
58639	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58640	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58641        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58642$as_echo "yes" >&6; }
58643	:
58644fi
58645else
58646	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58647	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58649$as_echo "yes" >&6; }
58650	:
58651fi
58652else
58653	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58654	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58656$as_echo "yes" >&6; }
58657	:
58658fi
58659else
58660	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58661	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58663$as_echo "yes" >&6; }
58664	:
58665fi
58666else
58667	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58668	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58669        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58670$as_echo "yes" >&6; }
58671	:
58672fi
58673else
58674	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
58675	CUDA_LIBS=$pkg_cv_CUDA_LIBS
58676        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58677$as_echo "yes" >&6; }
58678	:
58679fi
58680elif test $pkg_failed = untried; then
58681
58682
58683pkg_failed=no
58684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58685$as_echo_n "checking for CUDA... " >&6; }
58686
58687if test -n "$PKG_CONFIG"; then
58688    if test -n "$CUDA_CFLAGS"; then
58689        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58690    else
58691        if test -n "$PKG_CONFIG" && \
58692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
58693  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
58694  ac_status=$?
58695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58696  test $ac_status = 0; }; then
58697  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
58698else
58699  pkg_failed=yes
58700fi
58701    fi
58702else
58703	pkg_failed=untried
58704fi
58705if test -n "$PKG_CONFIG"; then
58706    if test -n "$CUDA_LIBS"; then
58707        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58708    else
58709        if test -n "$PKG_CONFIG" && \
58710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
58711  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
58712  ac_status=$?
58713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58714  test $ac_status = 0; }; then
58715  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
58716else
58717  pkg_failed=yes
58718fi
58719    fi
58720else
58721	pkg_failed=untried
58722fi
58723
58724
58725
58726if test $pkg_failed = yes; then
58727
58728if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58729        _pkg_short_errors_supported=yes
58730else
58731        _pkg_short_errors_supported=no
58732fi
58733        if test $_pkg_short_errors_supported = yes; then
58734	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
58735        else
58736	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
58737        fi
58738	# Put the nasty error message in config.log where it belongs
58739	echo "$CUDA_PKG_ERRORS" >&5
58740
58741	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58742$as_echo "no" >&6; }
58743
58744
58745pkg_failed=no
58746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58747$as_echo_n "checking for CUDA... " >&6; }
58748
58749if test -n "$PKG_CONFIG"; then
58750    if test -n "$CUDA_CFLAGS"; then
58751        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58752    else
58753        if test -n "$PKG_CONFIG" && \
58754    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
58755  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
58756  ac_status=$?
58757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58758  test $ac_status = 0; }; then
58759  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
58760else
58761  pkg_failed=yes
58762fi
58763    fi
58764else
58765	pkg_failed=untried
58766fi
58767if test -n "$PKG_CONFIG"; then
58768    if test -n "$CUDA_LIBS"; then
58769        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58770    else
58771        if test -n "$PKG_CONFIG" && \
58772    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
58773  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
58774  ac_status=$?
58775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58776  test $ac_status = 0; }; then
58777  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
58778else
58779  pkg_failed=yes
58780fi
58781    fi
58782else
58783	pkg_failed=untried
58784fi
58785
58786
58787
58788if test $pkg_failed = yes; then
58789
58790if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58791        _pkg_short_errors_supported=yes
58792else
58793        _pkg_short_errors_supported=no
58794fi
58795        if test $_pkg_short_errors_supported = yes; then
58796	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
58797        else
58798	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
58799        fi
58800	# Put the nasty error message in config.log where it belongs
58801	echo "$CUDA_PKG_ERRORS" >&5
58802
58803	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58804$as_echo "no" >&6; }
58805
58806
58807pkg_failed=no
58808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58809$as_echo_n "checking for CUDA... " >&6; }
58810
58811if test -n "$PKG_CONFIG"; then
58812    if test -n "$CUDA_CFLAGS"; then
58813        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58814    else
58815        if test -n "$PKG_CONFIG" && \
58816    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
58817  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
58818  ac_status=$?
58819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58820  test $ac_status = 0; }; then
58821  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
58822else
58823  pkg_failed=yes
58824fi
58825    fi
58826else
58827	pkg_failed=untried
58828fi
58829if test -n "$PKG_CONFIG"; then
58830    if test -n "$CUDA_LIBS"; then
58831        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58832    else
58833        if test -n "$PKG_CONFIG" && \
58834    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
58835  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
58836  ac_status=$?
58837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58838  test $ac_status = 0; }; then
58839  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
58840else
58841  pkg_failed=yes
58842fi
58843    fi
58844else
58845	pkg_failed=untried
58846fi
58847
58848
58849
58850if test $pkg_failed = yes; then
58851
58852if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58853        _pkg_short_errors_supported=yes
58854else
58855        _pkg_short_errors_supported=no
58856fi
58857        if test $_pkg_short_errors_supported = yes; then
58858	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
58859        else
58860	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
58861        fi
58862	# Put the nasty error message in config.log where it belongs
58863	echo "$CUDA_PKG_ERRORS" >&5
58864
58865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58866$as_echo "no" >&6; }
58867
58868
58869pkg_failed=no
58870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58871$as_echo_n "checking for CUDA... " >&6; }
58872
58873if test -n "$PKG_CONFIG"; then
58874    if test -n "$CUDA_CFLAGS"; then
58875        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58876    else
58877        if test -n "$PKG_CONFIG" && \
58878    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
58879  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
58880  ac_status=$?
58881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58882  test $ac_status = 0; }; then
58883  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
58884else
58885  pkg_failed=yes
58886fi
58887    fi
58888else
58889	pkg_failed=untried
58890fi
58891if test -n "$PKG_CONFIG"; then
58892    if test -n "$CUDA_LIBS"; then
58893        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58894    else
58895        if test -n "$PKG_CONFIG" && \
58896    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
58897  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
58898  ac_status=$?
58899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58900  test $ac_status = 0; }; then
58901  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
58902else
58903  pkg_failed=yes
58904fi
58905    fi
58906else
58907	pkg_failed=untried
58908fi
58909
58910
58911
58912if test $pkg_failed = yes; then
58913
58914if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58915        _pkg_short_errors_supported=yes
58916else
58917        _pkg_short_errors_supported=no
58918fi
58919        if test $_pkg_short_errors_supported = yes; then
58920	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
58921        else
58922	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
58923        fi
58924	# Put the nasty error message in config.log where it belongs
58925	echo "$CUDA_PKG_ERRORS" >&5
58926
58927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58928$as_echo "no" >&6; }
58929
58930
58931pkg_failed=no
58932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58933$as_echo_n "checking for CUDA... " >&6; }
58934
58935if test -n "$PKG_CONFIG"; then
58936    if test -n "$CUDA_CFLAGS"; then
58937        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
58938    else
58939        if test -n "$PKG_CONFIG" && \
58940    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58941  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58942  ac_status=$?
58943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58944  test $ac_status = 0; }; then
58945  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
58946else
58947  pkg_failed=yes
58948fi
58949    fi
58950else
58951	pkg_failed=untried
58952fi
58953if test -n "$PKG_CONFIG"; then
58954    if test -n "$CUDA_LIBS"; then
58955        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
58956    else
58957        if test -n "$PKG_CONFIG" && \
58958    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
58959  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
58960  ac_status=$?
58961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
58962  test $ac_status = 0; }; then
58963  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
58964else
58965  pkg_failed=yes
58966fi
58967    fi
58968else
58969	pkg_failed=untried
58970fi
58971
58972
58973
58974if test $pkg_failed = yes; then
58975
58976if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
58977        _pkg_short_errors_supported=yes
58978else
58979        _pkg_short_errors_supported=no
58980fi
58981        if test $_pkg_short_errors_supported = yes; then
58982	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58983        else
58984	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
58985        fi
58986	# Put the nasty error message in config.log where it belongs
58987	echo "$CUDA_PKG_ERRORS" >&5
58988
58989	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58990$as_echo "no" >&6; }
58991
58992
58993pkg_failed=no
58994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
58995$as_echo_n "checking for CUDA... " >&6; }
58996
58997if test -n "$PKG_CONFIG"; then
58998    if test -n "$CUDA_CFLAGS"; then
58999        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59000    else
59001        if test -n "$PKG_CONFIG" && \
59002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59003  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59004  ac_status=$?
59005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59006  test $ac_status = 0; }; then
59007  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59008else
59009  pkg_failed=yes
59010fi
59011    fi
59012else
59013	pkg_failed=untried
59014fi
59015if test -n "$PKG_CONFIG"; then
59016    if test -n "$CUDA_LIBS"; then
59017        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59018    else
59019        if test -n "$PKG_CONFIG" && \
59020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59021  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59022  ac_status=$?
59023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59024  test $ac_status = 0; }; then
59025  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59026else
59027  pkg_failed=yes
59028fi
59029    fi
59030else
59031	pkg_failed=untried
59032fi
59033
59034
59035
59036if test $pkg_failed = yes; then
59037
59038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59039        _pkg_short_errors_supported=yes
59040else
59041        _pkg_short_errors_supported=no
59042fi
59043        if test $_pkg_short_errors_supported = yes; then
59044	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59045        else
59046	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59047        fi
59048	# Put the nasty error message in config.log where it belongs
59049	echo "$CUDA_PKG_ERRORS" >&5
59050
59051	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59052$as_echo "no" >&6; }
59053
59054                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59055$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59056elif test $pkg_failed = untried; then
59057
59058                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59059$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59060else
59061	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59062	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59064$as_echo "yes" >&6; }
59065	:
59066fi
59067elif test $pkg_failed = untried; then
59068
59069
59070pkg_failed=no
59071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59072$as_echo_n "checking for CUDA... " >&6; }
59073
59074if test -n "$PKG_CONFIG"; then
59075    if test -n "$CUDA_CFLAGS"; then
59076        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59077    else
59078        if test -n "$PKG_CONFIG" && \
59079    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59080  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59081  ac_status=$?
59082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59083  test $ac_status = 0; }; then
59084  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59085else
59086  pkg_failed=yes
59087fi
59088    fi
59089else
59090	pkg_failed=untried
59091fi
59092if test -n "$PKG_CONFIG"; then
59093    if test -n "$CUDA_LIBS"; then
59094        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59095    else
59096        if test -n "$PKG_CONFIG" && \
59097    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59098  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59099  ac_status=$?
59100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59101  test $ac_status = 0; }; then
59102  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59103else
59104  pkg_failed=yes
59105fi
59106    fi
59107else
59108	pkg_failed=untried
59109fi
59110
59111
59112
59113if test $pkg_failed = yes; then
59114
59115if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59116        _pkg_short_errors_supported=yes
59117else
59118        _pkg_short_errors_supported=no
59119fi
59120        if test $_pkg_short_errors_supported = yes; then
59121	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59122        else
59123	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59124        fi
59125	# Put the nasty error message in config.log where it belongs
59126	echo "$CUDA_PKG_ERRORS" >&5
59127
59128	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59129$as_echo "no" >&6; }
59130
59131                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59132$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59133elif test $pkg_failed = untried; then
59134
59135                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59136$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59137else
59138	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59139	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59140        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59141$as_echo "yes" >&6; }
59142	:
59143fi
59144else
59145	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59146	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59148$as_echo "yes" >&6; }
59149	:
59150fi
59151elif test $pkg_failed = untried; then
59152
59153
59154pkg_failed=no
59155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59156$as_echo_n "checking for CUDA... " >&6; }
59157
59158if test -n "$PKG_CONFIG"; then
59159    if test -n "$CUDA_CFLAGS"; then
59160        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59161    else
59162        if test -n "$PKG_CONFIG" && \
59163    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59164  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59165  ac_status=$?
59166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59167  test $ac_status = 0; }; then
59168  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
59169else
59170  pkg_failed=yes
59171fi
59172    fi
59173else
59174	pkg_failed=untried
59175fi
59176if test -n "$PKG_CONFIG"; then
59177    if test -n "$CUDA_LIBS"; then
59178        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59179    else
59180        if test -n "$PKG_CONFIG" && \
59181    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59182  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59183  ac_status=$?
59184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59185  test $ac_status = 0; }; then
59186  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
59187else
59188  pkg_failed=yes
59189fi
59190    fi
59191else
59192	pkg_failed=untried
59193fi
59194
59195
59196
59197if test $pkg_failed = yes; then
59198
59199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59200        _pkg_short_errors_supported=yes
59201else
59202        _pkg_short_errors_supported=no
59203fi
59204        if test $_pkg_short_errors_supported = yes; then
59205	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59206        else
59207	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59208        fi
59209	# Put the nasty error message in config.log where it belongs
59210	echo "$CUDA_PKG_ERRORS" >&5
59211
59212	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59213$as_echo "no" >&6; }
59214
59215
59216pkg_failed=no
59217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59218$as_echo_n "checking for CUDA... " >&6; }
59219
59220if test -n "$PKG_CONFIG"; then
59221    if test -n "$CUDA_CFLAGS"; then
59222        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59223    else
59224        if test -n "$PKG_CONFIG" && \
59225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59226  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59227  ac_status=$?
59228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59229  test $ac_status = 0; }; then
59230  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59231else
59232  pkg_failed=yes
59233fi
59234    fi
59235else
59236	pkg_failed=untried
59237fi
59238if test -n "$PKG_CONFIG"; then
59239    if test -n "$CUDA_LIBS"; then
59240        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59241    else
59242        if test -n "$PKG_CONFIG" && \
59243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59244  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59245  ac_status=$?
59246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59247  test $ac_status = 0; }; then
59248  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59249else
59250  pkg_failed=yes
59251fi
59252    fi
59253else
59254	pkg_failed=untried
59255fi
59256
59257
59258
59259if test $pkg_failed = yes; then
59260
59261if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59262        _pkg_short_errors_supported=yes
59263else
59264        _pkg_short_errors_supported=no
59265fi
59266        if test $_pkg_short_errors_supported = yes; then
59267	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59268        else
59269	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59270        fi
59271	# Put the nasty error message in config.log where it belongs
59272	echo "$CUDA_PKG_ERRORS" >&5
59273
59274	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59275$as_echo "no" >&6; }
59276
59277                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59278$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59279elif test $pkg_failed = untried; then
59280
59281                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59282$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59283else
59284	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59285	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59287$as_echo "yes" >&6; }
59288	:
59289fi
59290elif test $pkg_failed = untried; then
59291
59292
59293pkg_failed=no
59294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59295$as_echo_n "checking for CUDA... " >&6; }
59296
59297if test -n "$PKG_CONFIG"; then
59298    if test -n "$CUDA_CFLAGS"; then
59299        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59300    else
59301        if test -n "$PKG_CONFIG" && \
59302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59303  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59304  ac_status=$?
59305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59306  test $ac_status = 0; }; then
59307  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59308else
59309  pkg_failed=yes
59310fi
59311    fi
59312else
59313	pkg_failed=untried
59314fi
59315if test -n "$PKG_CONFIG"; then
59316    if test -n "$CUDA_LIBS"; then
59317        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59318    else
59319        if test -n "$PKG_CONFIG" && \
59320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59321  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59322  ac_status=$?
59323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59324  test $ac_status = 0; }; then
59325  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59326else
59327  pkg_failed=yes
59328fi
59329    fi
59330else
59331	pkg_failed=untried
59332fi
59333
59334
59335
59336if test $pkg_failed = yes; then
59337
59338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59339        _pkg_short_errors_supported=yes
59340else
59341        _pkg_short_errors_supported=no
59342fi
59343        if test $_pkg_short_errors_supported = yes; then
59344	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59345        else
59346	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59347        fi
59348	# Put the nasty error message in config.log where it belongs
59349	echo "$CUDA_PKG_ERRORS" >&5
59350
59351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59352$as_echo "no" >&6; }
59353
59354                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59355$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59356elif test $pkg_failed = untried; then
59357
59358                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59359$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59360else
59361	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59362	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59364$as_echo "yes" >&6; }
59365	:
59366fi
59367else
59368	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59369	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59371$as_echo "yes" >&6; }
59372	:
59373fi
59374else
59375	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59376	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59377        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59378$as_echo "yes" >&6; }
59379	:
59380fi
59381elif test $pkg_failed = untried; then
59382
59383
59384pkg_failed=no
59385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59386$as_echo_n "checking for CUDA... " >&6; }
59387
59388if test -n "$PKG_CONFIG"; then
59389    if test -n "$CUDA_CFLAGS"; then
59390        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59391    else
59392        if test -n "$PKG_CONFIG" && \
59393    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
59394  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
59395  ac_status=$?
59396  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59397  test $ac_status = 0; }; then
59398  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
59399else
59400  pkg_failed=yes
59401fi
59402    fi
59403else
59404	pkg_failed=untried
59405fi
59406if test -n "$PKG_CONFIG"; then
59407    if test -n "$CUDA_LIBS"; then
59408        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59409    else
59410        if test -n "$PKG_CONFIG" && \
59411    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
59412  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
59413  ac_status=$?
59414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59415  test $ac_status = 0; }; then
59416  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
59417else
59418  pkg_failed=yes
59419fi
59420    fi
59421else
59422	pkg_failed=untried
59423fi
59424
59425
59426
59427if test $pkg_failed = yes; then
59428
59429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59430        _pkg_short_errors_supported=yes
59431else
59432        _pkg_short_errors_supported=no
59433fi
59434        if test $_pkg_short_errors_supported = yes; then
59435	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
59436        else
59437	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
59438        fi
59439	# Put the nasty error message in config.log where it belongs
59440	echo "$CUDA_PKG_ERRORS" >&5
59441
59442	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59443$as_echo "no" >&6; }
59444
59445
59446pkg_failed=no
59447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59448$as_echo_n "checking for CUDA... " >&6; }
59449
59450if test -n "$PKG_CONFIG"; then
59451    if test -n "$CUDA_CFLAGS"; then
59452        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59453    else
59454        if test -n "$PKG_CONFIG" && \
59455    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59456  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59457  ac_status=$?
59458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59459  test $ac_status = 0; }; then
59460  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
59461else
59462  pkg_failed=yes
59463fi
59464    fi
59465else
59466	pkg_failed=untried
59467fi
59468if test -n "$PKG_CONFIG"; then
59469    if test -n "$CUDA_LIBS"; then
59470        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59471    else
59472        if test -n "$PKG_CONFIG" && \
59473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59474  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59475  ac_status=$?
59476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59477  test $ac_status = 0; }; then
59478  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
59479else
59480  pkg_failed=yes
59481fi
59482    fi
59483else
59484	pkg_failed=untried
59485fi
59486
59487
59488
59489if test $pkg_failed = yes; then
59490
59491if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59492        _pkg_short_errors_supported=yes
59493else
59494        _pkg_short_errors_supported=no
59495fi
59496        if test $_pkg_short_errors_supported = yes; then
59497	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59498        else
59499	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59500        fi
59501	# Put the nasty error message in config.log where it belongs
59502	echo "$CUDA_PKG_ERRORS" >&5
59503
59504	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59505$as_echo "no" >&6; }
59506
59507
59508pkg_failed=no
59509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59510$as_echo_n "checking for CUDA... " >&6; }
59511
59512if test -n "$PKG_CONFIG"; then
59513    if test -n "$CUDA_CFLAGS"; then
59514        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59515    else
59516        if test -n "$PKG_CONFIG" && \
59517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59518  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59519  ac_status=$?
59520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59521  test $ac_status = 0; }; then
59522  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59523else
59524  pkg_failed=yes
59525fi
59526    fi
59527else
59528	pkg_failed=untried
59529fi
59530if test -n "$PKG_CONFIG"; then
59531    if test -n "$CUDA_LIBS"; then
59532        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59533    else
59534        if test -n "$PKG_CONFIG" && \
59535    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59536  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59537  ac_status=$?
59538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59539  test $ac_status = 0; }; then
59540  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59541else
59542  pkg_failed=yes
59543fi
59544    fi
59545else
59546	pkg_failed=untried
59547fi
59548
59549
59550
59551if test $pkg_failed = yes; then
59552
59553if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59554        _pkg_short_errors_supported=yes
59555else
59556        _pkg_short_errors_supported=no
59557fi
59558        if test $_pkg_short_errors_supported = yes; then
59559	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59560        else
59561	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59562        fi
59563	# Put the nasty error message in config.log where it belongs
59564	echo "$CUDA_PKG_ERRORS" >&5
59565
59566	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59567$as_echo "no" >&6; }
59568
59569                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59570$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59571elif test $pkg_failed = untried; then
59572
59573                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59574$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59575else
59576	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59577	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59578        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59579$as_echo "yes" >&6; }
59580	:
59581fi
59582elif test $pkg_failed = untried; then
59583
59584
59585pkg_failed=no
59586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59587$as_echo_n "checking for CUDA... " >&6; }
59588
59589if test -n "$PKG_CONFIG"; then
59590    if test -n "$CUDA_CFLAGS"; then
59591        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59592    else
59593        if test -n "$PKG_CONFIG" && \
59594    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59595  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59596  ac_status=$?
59597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59598  test $ac_status = 0; }; then
59599  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59600else
59601  pkg_failed=yes
59602fi
59603    fi
59604else
59605	pkg_failed=untried
59606fi
59607if test -n "$PKG_CONFIG"; then
59608    if test -n "$CUDA_LIBS"; then
59609        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59610    else
59611        if test -n "$PKG_CONFIG" && \
59612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59613  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59614  ac_status=$?
59615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59616  test $ac_status = 0; }; then
59617  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59618else
59619  pkg_failed=yes
59620fi
59621    fi
59622else
59623	pkg_failed=untried
59624fi
59625
59626
59627
59628if test $pkg_failed = yes; then
59629
59630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59631        _pkg_short_errors_supported=yes
59632else
59633        _pkg_short_errors_supported=no
59634fi
59635        if test $_pkg_short_errors_supported = yes; then
59636	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59637        else
59638	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59639        fi
59640	# Put the nasty error message in config.log where it belongs
59641	echo "$CUDA_PKG_ERRORS" >&5
59642
59643	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59644$as_echo "no" >&6; }
59645
59646                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59647$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59648elif test $pkg_failed = untried; then
59649
59650                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59651$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59652else
59653	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59654	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59656$as_echo "yes" >&6; }
59657	:
59658fi
59659else
59660	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59661	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59663$as_echo "yes" >&6; }
59664	:
59665fi
59666elif test $pkg_failed = untried; then
59667
59668
59669pkg_failed=no
59670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59671$as_echo_n "checking for CUDA... " >&6; }
59672
59673if test -n "$PKG_CONFIG"; then
59674    if test -n "$CUDA_CFLAGS"; then
59675        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59676    else
59677        if test -n "$PKG_CONFIG" && \
59678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59679  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59680  ac_status=$?
59681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59682  test $ac_status = 0; }; then
59683  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
59684else
59685  pkg_failed=yes
59686fi
59687    fi
59688else
59689	pkg_failed=untried
59690fi
59691if test -n "$PKG_CONFIG"; then
59692    if test -n "$CUDA_LIBS"; then
59693        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59694    else
59695        if test -n "$PKG_CONFIG" && \
59696    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
59697  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
59698  ac_status=$?
59699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59700  test $ac_status = 0; }; then
59701  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
59702else
59703  pkg_failed=yes
59704fi
59705    fi
59706else
59707	pkg_failed=untried
59708fi
59709
59710
59711
59712if test $pkg_failed = yes; then
59713
59714if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59715        _pkg_short_errors_supported=yes
59716else
59717        _pkg_short_errors_supported=no
59718fi
59719        if test $_pkg_short_errors_supported = yes; then
59720	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59721        else
59722	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
59723        fi
59724	# Put the nasty error message in config.log where it belongs
59725	echo "$CUDA_PKG_ERRORS" >&5
59726
59727	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59728$as_echo "no" >&6; }
59729
59730
59731pkg_failed=no
59732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59733$as_echo_n "checking for CUDA... " >&6; }
59734
59735if test -n "$PKG_CONFIG"; then
59736    if test -n "$CUDA_CFLAGS"; then
59737        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59738    else
59739        if test -n "$PKG_CONFIG" && \
59740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59741  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59742  ac_status=$?
59743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59744  test $ac_status = 0; }; then
59745  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59746else
59747  pkg_failed=yes
59748fi
59749    fi
59750else
59751	pkg_failed=untried
59752fi
59753if test -n "$PKG_CONFIG"; then
59754    if test -n "$CUDA_LIBS"; then
59755        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59756    else
59757        if test -n "$PKG_CONFIG" && \
59758    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59759  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59760  ac_status=$?
59761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59762  test $ac_status = 0; }; then
59763  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59764else
59765  pkg_failed=yes
59766fi
59767    fi
59768else
59769	pkg_failed=untried
59770fi
59771
59772
59773
59774if test $pkg_failed = yes; then
59775
59776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59777        _pkg_short_errors_supported=yes
59778else
59779        _pkg_short_errors_supported=no
59780fi
59781        if test $_pkg_short_errors_supported = yes; then
59782	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59783        else
59784	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59785        fi
59786	# Put the nasty error message in config.log where it belongs
59787	echo "$CUDA_PKG_ERRORS" >&5
59788
59789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59790$as_echo "no" >&6; }
59791
59792                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59793$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59794elif test $pkg_failed = untried; then
59795
59796                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59797$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59798else
59799	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59800	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59801        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59802$as_echo "yes" >&6; }
59803	:
59804fi
59805elif test $pkg_failed = untried; then
59806
59807
59808pkg_failed=no
59809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59810$as_echo_n "checking for CUDA... " >&6; }
59811
59812if test -n "$PKG_CONFIG"; then
59813    if test -n "$CUDA_CFLAGS"; then
59814        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59815    else
59816        if test -n "$PKG_CONFIG" && \
59817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59818  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59819  ac_status=$?
59820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59821  test $ac_status = 0; }; then
59822  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
59823else
59824  pkg_failed=yes
59825fi
59826    fi
59827else
59828	pkg_failed=untried
59829fi
59830if test -n "$PKG_CONFIG"; then
59831    if test -n "$CUDA_LIBS"; then
59832        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59833    else
59834        if test -n "$PKG_CONFIG" && \
59835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
59836  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
59837  ac_status=$?
59838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59839  test $ac_status = 0; }; then
59840  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
59841else
59842  pkg_failed=yes
59843fi
59844    fi
59845else
59846	pkg_failed=untried
59847fi
59848
59849
59850
59851if test $pkg_failed = yes; then
59852
59853if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59854        _pkg_short_errors_supported=yes
59855else
59856        _pkg_short_errors_supported=no
59857fi
59858        if test $_pkg_short_errors_supported = yes; then
59859	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59860        else
59861	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
59862        fi
59863	# Put the nasty error message in config.log where it belongs
59864	echo "$CUDA_PKG_ERRORS" >&5
59865
59866	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59867$as_echo "no" >&6; }
59868
59869                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59870$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59871elif test $pkg_failed = untried; then
59872
59873                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
59874$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
59875else
59876	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59877	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59879$as_echo "yes" >&6; }
59880	:
59881fi
59882else
59883	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59884	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59886$as_echo "yes" >&6; }
59887	:
59888fi
59889else
59890	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59891	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59893$as_echo "yes" >&6; }
59894	:
59895fi
59896else
59897	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
59898	CUDA_LIBS=$pkg_cv_CUDA_LIBS
59899        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59900$as_echo "yes" >&6; }
59901	:
59902fi
59903elif test $pkg_failed = untried; then
59904
59905
59906pkg_failed=no
59907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59908$as_echo_n "checking for CUDA... " >&6; }
59909
59910if test -n "$PKG_CONFIG"; then
59911    if test -n "$CUDA_CFLAGS"; then
59912        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59913    else
59914        if test -n "$PKG_CONFIG" && \
59915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
59916  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
59917  ac_status=$?
59918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59919  test $ac_status = 0; }; then
59920  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
59921else
59922  pkg_failed=yes
59923fi
59924    fi
59925else
59926	pkg_failed=untried
59927fi
59928if test -n "$PKG_CONFIG"; then
59929    if test -n "$CUDA_LIBS"; then
59930        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59931    else
59932        if test -n "$PKG_CONFIG" && \
59933    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
59934  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
59935  ac_status=$?
59936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59937  test $ac_status = 0; }; then
59938  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
59939else
59940  pkg_failed=yes
59941fi
59942    fi
59943else
59944	pkg_failed=untried
59945fi
59946
59947
59948
59949if test $pkg_failed = yes; then
59950
59951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
59952        _pkg_short_errors_supported=yes
59953else
59954        _pkg_short_errors_supported=no
59955fi
59956        if test $_pkg_short_errors_supported = yes; then
59957	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
59958        else
59959	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
59960        fi
59961	# Put the nasty error message in config.log where it belongs
59962	echo "$CUDA_PKG_ERRORS" >&5
59963
59964	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59965$as_echo "no" >&6; }
59966
59967
59968pkg_failed=no
59969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
59970$as_echo_n "checking for CUDA... " >&6; }
59971
59972if test -n "$PKG_CONFIG"; then
59973    if test -n "$CUDA_CFLAGS"; then
59974        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
59975    else
59976        if test -n "$PKG_CONFIG" && \
59977    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
59978  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
59979  ac_status=$?
59980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59981  test $ac_status = 0; }; then
59982  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
59983else
59984  pkg_failed=yes
59985fi
59986    fi
59987else
59988	pkg_failed=untried
59989fi
59990if test -n "$PKG_CONFIG"; then
59991    if test -n "$CUDA_LIBS"; then
59992        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
59993    else
59994        if test -n "$PKG_CONFIG" && \
59995    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
59996  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
59997  ac_status=$?
59998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
59999  test $ac_status = 0; }; then
60000  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
60001else
60002  pkg_failed=yes
60003fi
60004    fi
60005else
60006	pkg_failed=untried
60007fi
60008
60009
60010
60011if test $pkg_failed = yes; then
60012
60013if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60014        _pkg_short_errors_supported=yes
60015else
60016        _pkg_short_errors_supported=no
60017fi
60018        if test $_pkg_short_errors_supported = yes; then
60019	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
60020        else
60021	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
60022        fi
60023	# Put the nasty error message in config.log where it belongs
60024	echo "$CUDA_PKG_ERRORS" >&5
60025
60026	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60027$as_echo "no" >&6; }
60028
60029
60030pkg_failed=no
60031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60032$as_echo_n "checking for CUDA... " >&6; }
60033
60034if test -n "$PKG_CONFIG"; then
60035    if test -n "$CUDA_CFLAGS"; then
60036        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60037    else
60038        if test -n "$PKG_CONFIG" && \
60039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60040  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60041  ac_status=$?
60042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60043  test $ac_status = 0; }; then
60044  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
60045else
60046  pkg_failed=yes
60047fi
60048    fi
60049else
60050	pkg_failed=untried
60051fi
60052if test -n "$PKG_CONFIG"; then
60053    if test -n "$CUDA_LIBS"; then
60054        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60055    else
60056        if test -n "$PKG_CONFIG" && \
60057    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60058  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60059  ac_status=$?
60060  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60061  test $ac_status = 0; }; then
60062  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
60063else
60064  pkg_failed=yes
60065fi
60066    fi
60067else
60068	pkg_failed=untried
60069fi
60070
60071
60072
60073if test $pkg_failed = yes; then
60074
60075if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60076        _pkg_short_errors_supported=yes
60077else
60078        _pkg_short_errors_supported=no
60079fi
60080        if test $_pkg_short_errors_supported = yes; then
60081	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60082        else
60083	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60084        fi
60085	# Put the nasty error message in config.log where it belongs
60086	echo "$CUDA_PKG_ERRORS" >&5
60087
60088	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60089$as_echo "no" >&6; }
60090
60091
60092pkg_failed=no
60093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60094$as_echo_n "checking for CUDA... " >&6; }
60095
60096if test -n "$PKG_CONFIG"; then
60097    if test -n "$CUDA_CFLAGS"; then
60098        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60099    else
60100        if test -n "$PKG_CONFIG" && \
60101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60102  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60103  ac_status=$?
60104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60105  test $ac_status = 0; }; then
60106  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60107else
60108  pkg_failed=yes
60109fi
60110    fi
60111else
60112	pkg_failed=untried
60113fi
60114if test -n "$PKG_CONFIG"; then
60115    if test -n "$CUDA_LIBS"; then
60116        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60117    else
60118        if test -n "$PKG_CONFIG" && \
60119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60120  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60121  ac_status=$?
60122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60123  test $ac_status = 0; }; then
60124  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60125else
60126  pkg_failed=yes
60127fi
60128    fi
60129else
60130	pkg_failed=untried
60131fi
60132
60133
60134
60135if test $pkg_failed = yes; then
60136
60137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60138        _pkg_short_errors_supported=yes
60139else
60140        _pkg_short_errors_supported=no
60141fi
60142        if test $_pkg_short_errors_supported = yes; then
60143	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60144        else
60145	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60146        fi
60147	# Put the nasty error message in config.log where it belongs
60148	echo "$CUDA_PKG_ERRORS" >&5
60149
60150	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60151$as_echo "no" >&6; }
60152
60153                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60154$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60155elif test $pkg_failed = untried; then
60156
60157                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60158$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60159else
60160	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60161	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60163$as_echo "yes" >&6; }
60164	:
60165fi
60166elif test $pkg_failed = untried; then
60167
60168
60169pkg_failed=no
60170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60171$as_echo_n "checking for CUDA... " >&6; }
60172
60173if test -n "$PKG_CONFIG"; then
60174    if test -n "$CUDA_CFLAGS"; then
60175        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60176    else
60177        if test -n "$PKG_CONFIG" && \
60178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60179  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60180  ac_status=$?
60181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60182  test $ac_status = 0; }; then
60183  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60184else
60185  pkg_failed=yes
60186fi
60187    fi
60188else
60189	pkg_failed=untried
60190fi
60191if test -n "$PKG_CONFIG"; then
60192    if test -n "$CUDA_LIBS"; then
60193        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60194    else
60195        if test -n "$PKG_CONFIG" && \
60196    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60197  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60198  ac_status=$?
60199  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60200  test $ac_status = 0; }; then
60201  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60202else
60203  pkg_failed=yes
60204fi
60205    fi
60206else
60207	pkg_failed=untried
60208fi
60209
60210
60211
60212if test $pkg_failed = yes; then
60213
60214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60215        _pkg_short_errors_supported=yes
60216else
60217        _pkg_short_errors_supported=no
60218fi
60219        if test $_pkg_short_errors_supported = yes; then
60220	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60221        else
60222	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60223        fi
60224	# Put the nasty error message in config.log where it belongs
60225	echo "$CUDA_PKG_ERRORS" >&5
60226
60227	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60228$as_echo "no" >&6; }
60229
60230                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60231$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60232elif test $pkg_failed = untried; then
60233
60234                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60235$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60236else
60237	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60238	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60239        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60240$as_echo "yes" >&6; }
60241	:
60242fi
60243else
60244	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60245	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60247$as_echo "yes" >&6; }
60248	:
60249fi
60250elif test $pkg_failed = untried; then
60251
60252
60253pkg_failed=no
60254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60255$as_echo_n "checking for CUDA... " >&6; }
60256
60257if test -n "$PKG_CONFIG"; then
60258    if test -n "$CUDA_CFLAGS"; then
60259        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60260    else
60261        if test -n "$PKG_CONFIG" && \
60262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60263  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60264  ac_status=$?
60265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60266  test $ac_status = 0; }; then
60267  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
60268else
60269  pkg_failed=yes
60270fi
60271    fi
60272else
60273	pkg_failed=untried
60274fi
60275if test -n "$PKG_CONFIG"; then
60276    if test -n "$CUDA_LIBS"; then
60277        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60278    else
60279        if test -n "$PKG_CONFIG" && \
60280    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60281  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60282  ac_status=$?
60283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60284  test $ac_status = 0; }; then
60285  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
60286else
60287  pkg_failed=yes
60288fi
60289    fi
60290else
60291	pkg_failed=untried
60292fi
60293
60294
60295
60296if test $pkg_failed = yes; then
60297
60298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60299        _pkg_short_errors_supported=yes
60300else
60301        _pkg_short_errors_supported=no
60302fi
60303        if test $_pkg_short_errors_supported = yes; then
60304	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60305        else
60306	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60307        fi
60308	# Put the nasty error message in config.log where it belongs
60309	echo "$CUDA_PKG_ERRORS" >&5
60310
60311	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60312$as_echo "no" >&6; }
60313
60314
60315pkg_failed=no
60316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60317$as_echo_n "checking for CUDA... " >&6; }
60318
60319if test -n "$PKG_CONFIG"; then
60320    if test -n "$CUDA_CFLAGS"; then
60321        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60322    else
60323        if test -n "$PKG_CONFIG" && \
60324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60325  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60326  ac_status=$?
60327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60328  test $ac_status = 0; }; then
60329  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60330else
60331  pkg_failed=yes
60332fi
60333    fi
60334else
60335	pkg_failed=untried
60336fi
60337if test -n "$PKG_CONFIG"; then
60338    if test -n "$CUDA_LIBS"; then
60339        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60340    else
60341        if test -n "$PKG_CONFIG" && \
60342    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60343  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60344  ac_status=$?
60345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60346  test $ac_status = 0; }; then
60347  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60348else
60349  pkg_failed=yes
60350fi
60351    fi
60352else
60353	pkg_failed=untried
60354fi
60355
60356
60357
60358if test $pkg_failed = yes; then
60359
60360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60361        _pkg_short_errors_supported=yes
60362else
60363        _pkg_short_errors_supported=no
60364fi
60365        if test $_pkg_short_errors_supported = yes; then
60366	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60367        else
60368	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60369        fi
60370	# Put the nasty error message in config.log where it belongs
60371	echo "$CUDA_PKG_ERRORS" >&5
60372
60373	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60374$as_echo "no" >&6; }
60375
60376                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60377$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60378elif test $pkg_failed = untried; then
60379
60380                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60381$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60382else
60383	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60384	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60386$as_echo "yes" >&6; }
60387	:
60388fi
60389elif test $pkg_failed = untried; then
60390
60391
60392pkg_failed=no
60393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60394$as_echo_n "checking for CUDA... " >&6; }
60395
60396if test -n "$PKG_CONFIG"; then
60397    if test -n "$CUDA_CFLAGS"; then
60398        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60399    else
60400        if test -n "$PKG_CONFIG" && \
60401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60402  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60403  ac_status=$?
60404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60405  test $ac_status = 0; }; then
60406  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60407else
60408  pkg_failed=yes
60409fi
60410    fi
60411else
60412	pkg_failed=untried
60413fi
60414if test -n "$PKG_CONFIG"; then
60415    if test -n "$CUDA_LIBS"; then
60416        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60417    else
60418        if test -n "$PKG_CONFIG" && \
60419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60420  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60421  ac_status=$?
60422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60423  test $ac_status = 0; }; then
60424  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60425else
60426  pkg_failed=yes
60427fi
60428    fi
60429else
60430	pkg_failed=untried
60431fi
60432
60433
60434
60435if test $pkg_failed = yes; then
60436
60437if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60438        _pkg_short_errors_supported=yes
60439else
60440        _pkg_short_errors_supported=no
60441fi
60442        if test $_pkg_short_errors_supported = yes; then
60443	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60444        else
60445	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60446        fi
60447	# Put the nasty error message in config.log where it belongs
60448	echo "$CUDA_PKG_ERRORS" >&5
60449
60450	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60451$as_echo "no" >&6; }
60452
60453                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60454$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60455elif test $pkg_failed = untried; then
60456
60457                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60458$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60459else
60460	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60461	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60463$as_echo "yes" >&6; }
60464	:
60465fi
60466else
60467	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60468	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60469        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60470$as_echo "yes" >&6; }
60471	:
60472fi
60473else
60474	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60475	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60477$as_echo "yes" >&6; }
60478	:
60479fi
60480elif test $pkg_failed = untried; then
60481
60482
60483pkg_failed=no
60484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60485$as_echo_n "checking for CUDA... " >&6; }
60486
60487if test -n "$PKG_CONFIG"; then
60488    if test -n "$CUDA_CFLAGS"; then
60489        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60490    else
60491        if test -n "$PKG_CONFIG" && \
60492    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
60493  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
60494  ac_status=$?
60495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60496  test $ac_status = 0; }; then
60497  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
60498else
60499  pkg_failed=yes
60500fi
60501    fi
60502else
60503	pkg_failed=untried
60504fi
60505if test -n "$PKG_CONFIG"; then
60506    if test -n "$CUDA_LIBS"; then
60507        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60508    else
60509        if test -n "$PKG_CONFIG" && \
60510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
60511  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
60512  ac_status=$?
60513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60514  test $ac_status = 0; }; then
60515  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
60516else
60517  pkg_failed=yes
60518fi
60519    fi
60520else
60521	pkg_failed=untried
60522fi
60523
60524
60525
60526if test $pkg_failed = yes; then
60527
60528if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60529        _pkg_short_errors_supported=yes
60530else
60531        _pkg_short_errors_supported=no
60532fi
60533        if test $_pkg_short_errors_supported = yes; then
60534	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
60535        else
60536	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
60537        fi
60538	# Put the nasty error message in config.log where it belongs
60539	echo "$CUDA_PKG_ERRORS" >&5
60540
60541	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60542$as_echo "no" >&6; }
60543
60544
60545pkg_failed=no
60546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60547$as_echo_n "checking for CUDA... " >&6; }
60548
60549if test -n "$PKG_CONFIG"; then
60550    if test -n "$CUDA_CFLAGS"; then
60551        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60552    else
60553        if test -n "$PKG_CONFIG" && \
60554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60555  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60556  ac_status=$?
60557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60558  test $ac_status = 0; }; then
60559  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
60560else
60561  pkg_failed=yes
60562fi
60563    fi
60564else
60565	pkg_failed=untried
60566fi
60567if test -n "$PKG_CONFIG"; then
60568    if test -n "$CUDA_LIBS"; then
60569        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60570    else
60571        if test -n "$PKG_CONFIG" && \
60572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60573  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60574  ac_status=$?
60575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60576  test $ac_status = 0; }; then
60577  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
60578else
60579  pkg_failed=yes
60580fi
60581    fi
60582else
60583	pkg_failed=untried
60584fi
60585
60586
60587
60588if test $pkg_failed = yes; then
60589
60590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60591        _pkg_short_errors_supported=yes
60592else
60593        _pkg_short_errors_supported=no
60594fi
60595        if test $_pkg_short_errors_supported = yes; then
60596	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60597        else
60598	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60599        fi
60600	# Put the nasty error message in config.log where it belongs
60601	echo "$CUDA_PKG_ERRORS" >&5
60602
60603	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60604$as_echo "no" >&6; }
60605
60606
60607pkg_failed=no
60608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60609$as_echo_n "checking for CUDA... " >&6; }
60610
60611if test -n "$PKG_CONFIG"; then
60612    if test -n "$CUDA_CFLAGS"; then
60613        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60614    else
60615        if test -n "$PKG_CONFIG" && \
60616    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60617  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60618  ac_status=$?
60619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60620  test $ac_status = 0; }; then
60621  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60622else
60623  pkg_failed=yes
60624fi
60625    fi
60626else
60627	pkg_failed=untried
60628fi
60629if test -n "$PKG_CONFIG"; then
60630    if test -n "$CUDA_LIBS"; then
60631        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60632    else
60633        if test -n "$PKG_CONFIG" && \
60634    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60635  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60636  ac_status=$?
60637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60638  test $ac_status = 0; }; then
60639  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60640else
60641  pkg_failed=yes
60642fi
60643    fi
60644else
60645	pkg_failed=untried
60646fi
60647
60648
60649
60650if test $pkg_failed = yes; then
60651
60652if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60653        _pkg_short_errors_supported=yes
60654else
60655        _pkg_short_errors_supported=no
60656fi
60657        if test $_pkg_short_errors_supported = yes; then
60658	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60659        else
60660	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60661        fi
60662	# Put the nasty error message in config.log where it belongs
60663	echo "$CUDA_PKG_ERRORS" >&5
60664
60665	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60666$as_echo "no" >&6; }
60667
60668                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60669$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60670elif test $pkg_failed = untried; then
60671
60672                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60673$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60674else
60675	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60676	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60678$as_echo "yes" >&6; }
60679	:
60680fi
60681elif test $pkg_failed = untried; then
60682
60683
60684pkg_failed=no
60685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60686$as_echo_n "checking for CUDA... " >&6; }
60687
60688if test -n "$PKG_CONFIG"; then
60689    if test -n "$CUDA_CFLAGS"; then
60690        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60691    else
60692        if test -n "$PKG_CONFIG" && \
60693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60694  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60695  ac_status=$?
60696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60697  test $ac_status = 0; }; then
60698  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60699else
60700  pkg_failed=yes
60701fi
60702    fi
60703else
60704	pkg_failed=untried
60705fi
60706if test -n "$PKG_CONFIG"; then
60707    if test -n "$CUDA_LIBS"; then
60708        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60709    else
60710        if test -n "$PKG_CONFIG" && \
60711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60712  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60713  ac_status=$?
60714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60715  test $ac_status = 0; }; then
60716  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60717else
60718  pkg_failed=yes
60719fi
60720    fi
60721else
60722	pkg_failed=untried
60723fi
60724
60725
60726
60727if test $pkg_failed = yes; then
60728
60729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60730        _pkg_short_errors_supported=yes
60731else
60732        _pkg_short_errors_supported=no
60733fi
60734        if test $_pkg_short_errors_supported = yes; then
60735	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60736        else
60737	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60738        fi
60739	# Put the nasty error message in config.log where it belongs
60740	echo "$CUDA_PKG_ERRORS" >&5
60741
60742	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60743$as_echo "no" >&6; }
60744
60745                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60746$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60747elif test $pkg_failed = untried; then
60748
60749                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60750$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60751else
60752	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60753	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60754        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60755$as_echo "yes" >&6; }
60756	:
60757fi
60758else
60759	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60760	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60762$as_echo "yes" >&6; }
60763	:
60764fi
60765elif test $pkg_failed = untried; then
60766
60767
60768pkg_failed=no
60769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60770$as_echo_n "checking for CUDA... " >&6; }
60771
60772if test -n "$PKG_CONFIG"; then
60773    if test -n "$CUDA_CFLAGS"; then
60774        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60775    else
60776        if test -n "$PKG_CONFIG" && \
60777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60778  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60779  ac_status=$?
60780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60781  test $ac_status = 0; }; then
60782  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
60783else
60784  pkg_failed=yes
60785fi
60786    fi
60787else
60788	pkg_failed=untried
60789fi
60790if test -n "$PKG_CONFIG"; then
60791    if test -n "$CUDA_LIBS"; then
60792        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60793    else
60794        if test -n "$PKG_CONFIG" && \
60795    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
60796  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
60797  ac_status=$?
60798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60799  test $ac_status = 0; }; then
60800  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
60801else
60802  pkg_failed=yes
60803fi
60804    fi
60805else
60806	pkg_failed=untried
60807fi
60808
60809
60810
60811if test $pkg_failed = yes; then
60812
60813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60814        _pkg_short_errors_supported=yes
60815else
60816        _pkg_short_errors_supported=no
60817fi
60818        if test $_pkg_short_errors_supported = yes; then
60819	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60820        else
60821	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
60822        fi
60823	# Put the nasty error message in config.log where it belongs
60824	echo "$CUDA_PKG_ERRORS" >&5
60825
60826	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60827$as_echo "no" >&6; }
60828
60829
60830pkg_failed=no
60831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60832$as_echo_n "checking for CUDA... " >&6; }
60833
60834if test -n "$PKG_CONFIG"; then
60835    if test -n "$CUDA_CFLAGS"; then
60836        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60837    else
60838        if test -n "$PKG_CONFIG" && \
60839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60840  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60841  ac_status=$?
60842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60843  test $ac_status = 0; }; then
60844  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60845else
60846  pkg_failed=yes
60847fi
60848    fi
60849else
60850	pkg_failed=untried
60851fi
60852if test -n "$PKG_CONFIG"; then
60853    if test -n "$CUDA_LIBS"; then
60854        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60855    else
60856        if test -n "$PKG_CONFIG" && \
60857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60858  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60859  ac_status=$?
60860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60861  test $ac_status = 0; }; then
60862  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60863else
60864  pkg_failed=yes
60865fi
60866    fi
60867else
60868	pkg_failed=untried
60869fi
60870
60871
60872
60873if test $pkg_failed = yes; then
60874
60875if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60876        _pkg_short_errors_supported=yes
60877else
60878        _pkg_short_errors_supported=no
60879fi
60880        if test $_pkg_short_errors_supported = yes; then
60881	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60882        else
60883	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60884        fi
60885	# Put the nasty error message in config.log where it belongs
60886	echo "$CUDA_PKG_ERRORS" >&5
60887
60888	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60889$as_echo "no" >&6; }
60890
60891                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60892$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60893elif test $pkg_failed = untried; then
60894
60895                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60896$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60897else
60898	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60899	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60901$as_echo "yes" >&6; }
60902	:
60903fi
60904elif test $pkg_failed = untried; then
60905
60906
60907pkg_failed=no
60908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
60909$as_echo_n "checking for CUDA... " >&6; }
60910
60911if test -n "$PKG_CONFIG"; then
60912    if test -n "$CUDA_CFLAGS"; then
60913        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
60914    else
60915        if test -n "$PKG_CONFIG" && \
60916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60917  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60918  ac_status=$?
60919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60920  test $ac_status = 0; }; then
60921  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
60922else
60923  pkg_failed=yes
60924fi
60925    fi
60926else
60927	pkg_failed=untried
60928fi
60929if test -n "$PKG_CONFIG"; then
60930    if test -n "$CUDA_LIBS"; then
60931        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
60932    else
60933        if test -n "$PKG_CONFIG" && \
60934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
60935  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
60936  ac_status=$?
60937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
60938  test $ac_status = 0; }; then
60939  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
60940else
60941  pkg_failed=yes
60942fi
60943    fi
60944else
60945	pkg_failed=untried
60946fi
60947
60948
60949
60950if test $pkg_failed = yes; then
60951
60952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
60953        _pkg_short_errors_supported=yes
60954else
60955        _pkg_short_errors_supported=no
60956fi
60957        if test $_pkg_short_errors_supported = yes; then
60958	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60959        else
60960	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
60961        fi
60962	# Put the nasty error message in config.log where it belongs
60963	echo "$CUDA_PKG_ERRORS" >&5
60964
60965	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60966$as_echo "no" >&6; }
60967
60968                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60969$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60970elif test $pkg_failed = untried; then
60971
60972                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
60973$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
60974else
60975	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60976	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60978$as_echo "yes" >&6; }
60979	:
60980fi
60981else
60982	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60983	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60984        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60985$as_echo "yes" >&6; }
60986	:
60987fi
60988else
60989	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60990	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60991        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60992$as_echo "yes" >&6; }
60993	:
60994fi
60995else
60996	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
60997	CUDA_LIBS=$pkg_cv_CUDA_LIBS
60998        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60999$as_echo "yes" >&6; }
61000	:
61001fi
61002else
61003	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61004	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61006$as_echo "yes" >&6; }
61007	:
61008fi
61009elif test $pkg_failed = untried; then
61010
61011
61012pkg_failed=no
61013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61014$as_echo_n "checking for CUDA... " >&6; }
61015
61016if test -n "$PKG_CONFIG"; then
61017    if test -n "$CUDA_CFLAGS"; then
61018        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61019    else
61020        if test -n "$PKG_CONFIG" && \
61021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
61022  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
61023  ac_status=$?
61024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61025  test $ac_status = 0; }; then
61026  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
61027else
61028  pkg_failed=yes
61029fi
61030    fi
61031else
61032	pkg_failed=untried
61033fi
61034if test -n "$PKG_CONFIG"; then
61035    if test -n "$CUDA_LIBS"; then
61036        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61037    else
61038        if test -n "$PKG_CONFIG" && \
61039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
61040  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
61041  ac_status=$?
61042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61043  test $ac_status = 0; }; then
61044  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
61045else
61046  pkg_failed=yes
61047fi
61048    fi
61049else
61050	pkg_failed=untried
61051fi
61052
61053
61054
61055if test $pkg_failed = yes; then
61056
61057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61058        _pkg_short_errors_supported=yes
61059else
61060        _pkg_short_errors_supported=no
61061fi
61062        if test $_pkg_short_errors_supported = yes; then
61063	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
61064        else
61065	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
61066        fi
61067	# Put the nasty error message in config.log where it belongs
61068	echo "$CUDA_PKG_ERRORS" >&5
61069
61070	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61071$as_echo "no" >&6; }
61072
61073
61074pkg_failed=no
61075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61076$as_echo_n "checking for CUDA... " >&6; }
61077
61078if test -n "$PKG_CONFIG"; then
61079    if test -n "$CUDA_CFLAGS"; then
61080        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61081    else
61082        if test -n "$PKG_CONFIG" && \
61083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
61084  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
61085  ac_status=$?
61086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61087  test $ac_status = 0; }; then
61088  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
61089else
61090  pkg_failed=yes
61091fi
61092    fi
61093else
61094	pkg_failed=untried
61095fi
61096if test -n "$PKG_CONFIG"; then
61097    if test -n "$CUDA_LIBS"; then
61098        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61099    else
61100        if test -n "$PKG_CONFIG" && \
61101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
61102  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
61103  ac_status=$?
61104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61105  test $ac_status = 0; }; then
61106  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
61107else
61108  pkg_failed=yes
61109fi
61110    fi
61111else
61112	pkg_failed=untried
61113fi
61114
61115
61116
61117if test $pkg_failed = yes; then
61118
61119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61120        _pkg_short_errors_supported=yes
61121else
61122        _pkg_short_errors_supported=no
61123fi
61124        if test $_pkg_short_errors_supported = yes; then
61125	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
61126        else
61127	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
61128        fi
61129	# Put the nasty error message in config.log where it belongs
61130	echo "$CUDA_PKG_ERRORS" >&5
61131
61132	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61133$as_echo "no" >&6; }
61134
61135
61136pkg_failed=no
61137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61138$as_echo_n "checking for CUDA... " >&6; }
61139
61140if test -n "$PKG_CONFIG"; then
61141    if test -n "$CUDA_CFLAGS"; then
61142        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61143    else
61144        if test -n "$PKG_CONFIG" && \
61145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
61146  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
61147  ac_status=$?
61148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61149  test $ac_status = 0; }; then
61150  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
61151else
61152  pkg_failed=yes
61153fi
61154    fi
61155else
61156	pkg_failed=untried
61157fi
61158if test -n "$PKG_CONFIG"; then
61159    if test -n "$CUDA_LIBS"; then
61160        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61161    else
61162        if test -n "$PKG_CONFIG" && \
61163    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
61164  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
61165  ac_status=$?
61166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61167  test $ac_status = 0; }; then
61168  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
61169else
61170  pkg_failed=yes
61171fi
61172    fi
61173else
61174	pkg_failed=untried
61175fi
61176
61177
61178
61179if test $pkg_failed = yes; then
61180
61181if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61182        _pkg_short_errors_supported=yes
61183else
61184        _pkg_short_errors_supported=no
61185fi
61186        if test $_pkg_short_errors_supported = yes; then
61187	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
61188        else
61189	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
61190        fi
61191	# Put the nasty error message in config.log where it belongs
61192	echo "$CUDA_PKG_ERRORS" >&5
61193
61194	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61195$as_echo "no" >&6; }
61196
61197
61198pkg_failed=no
61199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61200$as_echo_n "checking for CUDA... " >&6; }
61201
61202if test -n "$PKG_CONFIG"; then
61203    if test -n "$CUDA_CFLAGS"; then
61204        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61205    else
61206        if test -n "$PKG_CONFIG" && \
61207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61208  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61209  ac_status=$?
61210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61211  test $ac_status = 0; }; then
61212  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
61213else
61214  pkg_failed=yes
61215fi
61216    fi
61217else
61218	pkg_failed=untried
61219fi
61220if test -n "$PKG_CONFIG"; then
61221    if test -n "$CUDA_LIBS"; then
61222        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61223    else
61224        if test -n "$PKG_CONFIG" && \
61225    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61226  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61227  ac_status=$?
61228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61229  test $ac_status = 0; }; then
61230  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
61231else
61232  pkg_failed=yes
61233fi
61234    fi
61235else
61236	pkg_failed=untried
61237fi
61238
61239
61240
61241if test $pkg_failed = yes; then
61242
61243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61244        _pkg_short_errors_supported=yes
61245else
61246        _pkg_short_errors_supported=no
61247fi
61248        if test $_pkg_short_errors_supported = yes; then
61249	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61250        else
61251	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61252        fi
61253	# Put the nasty error message in config.log where it belongs
61254	echo "$CUDA_PKG_ERRORS" >&5
61255
61256	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61257$as_echo "no" >&6; }
61258
61259
61260pkg_failed=no
61261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61262$as_echo_n "checking for CUDA... " >&6; }
61263
61264if test -n "$PKG_CONFIG"; then
61265    if test -n "$CUDA_CFLAGS"; then
61266        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61267    else
61268        if test -n "$PKG_CONFIG" && \
61269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61270  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61271  ac_status=$?
61272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61273  test $ac_status = 0; }; then
61274  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61275else
61276  pkg_failed=yes
61277fi
61278    fi
61279else
61280	pkg_failed=untried
61281fi
61282if test -n "$PKG_CONFIG"; then
61283    if test -n "$CUDA_LIBS"; then
61284        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61285    else
61286        if test -n "$PKG_CONFIG" && \
61287    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61288  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61289  ac_status=$?
61290  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61291  test $ac_status = 0; }; then
61292  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61293else
61294  pkg_failed=yes
61295fi
61296    fi
61297else
61298	pkg_failed=untried
61299fi
61300
61301
61302
61303if test $pkg_failed = yes; then
61304
61305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61306        _pkg_short_errors_supported=yes
61307else
61308        _pkg_short_errors_supported=no
61309fi
61310        if test $_pkg_short_errors_supported = yes; then
61311	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61312        else
61313	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61314        fi
61315	# Put the nasty error message in config.log where it belongs
61316	echo "$CUDA_PKG_ERRORS" >&5
61317
61318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61319$as_echo "no" >&6; }
61320
61321                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61322$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61323elif test $pkg_failed = untried; then
61324
61325                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61326$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61327else
61328	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61329	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61330        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61331$as_echo "yes" >&6; }
61332	:
61333fi
61334elif test $pkg_failed = untried; then
61335
61336
61337pkg_failed=no
61338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61339$as_echo_n "checking for CUDA... " >&6; }
61340
61341if test -n "$PKG_CONFIG"; then
61342    if test -n "$CUDA_CFLAGS"; then
61343        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61344    else
61345        if test -n "$PKG_CONFIG" && \
61346    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61347  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61348  ac_status=$?
61349  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61350  test $ac_status = 0; }; then
61351  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61352else
61353  pkg_failed=yes
61354fi
61355    fi
61356else
61357	pkg_failed=untried
61358fi
61359if test -n "$PKG_CONFIG"; then
61360    if test -n "$CUDA_LIBS"; then
61361        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61362    else
61363        if test -n "$PKG_CONFIG" && \
61364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61365  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61366  ac_status=$?
61367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61368  test $ac_status = 0; }; then
61369  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61370else
61371  pkg_failed=yes
61372fi
61373    fi
61374else
61375	pkg_failed=untried
61376fi
61377
61378
61379
61380if test $pkg_failed = yes; then
61381
61382if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61383        _pkg_short_errors_supported=yes
61384else
61385        _pkg_short_errors_supported=no
61386fi
61387        if test $_pkg_short_errors_supported = yes; then
61388	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61389        else
61390	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61391        fi
61392	# Put the nasty error message in config.log where it belongs
61393	echo "$CUDA_PKG_ERRORS" >&5
61394
61395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61396$as_echo "no" >&6; }
61397
61398                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61399$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61400elif test $pkg_failed = untried; then
61401
61402                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61403$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61404else
61405	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61406	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61407        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61408$as_echo "yes" >&6; }
61409	:
61410fi
61411else
61412	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61413	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61414        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61415$as_echo "yes" >&6; }
61416	:
61417fi
61418elif test $pkg_failed = untried; then
61419
61420
61421pkg_failed=no
61422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61423$as_echo_n "checking for CUDA... " >&6; }
61424
61425if test -n "$PKG_CONFIG"; then
61426    if test -n "$CUDA_CFLAGS"; then
61427        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61428    else
61429        if test -n "$PKG_CONFIG" && \
61430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61431  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61432  ac_status=$?
61433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61434  test $ac_status = 0; }; then
61435  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
61436else
61437  pkg_failed=yes
61438fi
61439    fi
61440else
61441	pkg_failed=untried
61442fi
61443if test -n "$PKG_CONFIG"; then
61444    if test -n "$CUDA_LIBS"; then
61445        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61446    else
61447        if test -n "$PKG_CONFIG" && \
61448    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61449  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61450  ac_status=$?
61451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61452  test $ac_status = 0; }; then
61453  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
61454else
61455  pkg_failed=yes
61456fi
61457    fi
61458else
61459	pkg_failed=untried
61460fi
61461
61462
61463
61464if test $pkg_failed = yes; then
61465
61466if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61467        _pkg_short_errors_supported=yes
61468else
61469        _pkg_short_errors_supported=no
61470fi
61471        if test $_pkg_short_errors_supported = yes; then
61472	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61473        else
61474	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61475        fi
61476	# Put the nasty error message in config.log where it belongs
61477	echo "$CUDA_PKG_ERRORS" >&5
61478
61479	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61480$as_echo "no" >&6; }
61481
61482
61483pkg_failed=no
61484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61485$as_echo_n "checking for CUDA... " >&6; }
61486
61487if test -n "$PKG_CONFIG"; then
61488    if test -n "$CUDA_CFLAGS"; then
61489        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61490    else
61491        if test -n "$PKG_CONFIG" && \
61492    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61493  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61494  ac_status=$?
61495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61496  test $ac_status = 0; }; then
61497  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61498else
61499  pkg_failed=yes
61500fi
61501    fi
61502else
61503	pkg_failed=untried
61504fi
61505if test -n "$PKG_CONFIG"; then
61506    if test -n "$CUDA_LIBS"; then
61507        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61508    else
61509        if test -n "$PKG_CONFIG" && \
61510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61511  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61512  ac_status=$?
61513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61514  test $ac_status = 0; }; then
61515  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61516else
61517  pkg_failed=yes
61518fi
61519    fi
61520else
61521	pkg_failed=untried
61522fi
61523
61524
61525
61526if test $pkg_failed = yes; then
61527
61528if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61529        _pkg_short_errors_supported=yes
61530else
61531        _pkg_short_errors_supported=no
61532fi
61533        if test $_pkg_short_errors_supported = yes; then
61534	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61535        else
61536	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61537        fi
61538	# Put the nasty error message in config.log where it belongs
61539	echo "$CUDA_PKG_ERRORS" >&5
61540
61541	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61542$as_echo "no" >&6; }
61543
61544                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61545$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61546elif test $pkg_failed = untried; then
61547
61548                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61549$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61550else
61551	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61552	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61553        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61554$as_echo "yes" >&6; }
61555	:
61556fi
61557elif test $pkg_failed = untried; then
61558
61559
61560pkg_failed=no
61561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61562$as_echo_n "checking for CUDA... " >&6; }
61563
61564if test -n "$PKG_CONFIG"; then
61565    if test -n "$CUDA_CFLAGS"; then
61566        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61567    else
61568        if test -n "$PKG_CONFIG" && \
61569    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61570  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61571  ac_status=$?
61572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61573  test $ac_status = 0; }; then
61574  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61575else
61576  pkg_failed=yes
61577fi
61578    fi
61579else
61580	pkg_failed=untried
61581fi
61582if test -n "$PKG_CONFIG"; then
61583    if test -n "$CUDA_LIBS"; then
61584        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61585    else
61586        if test -n "$PKG_CONFIG" && \
61587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61588  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61589  ac_status=$?
61590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61591  test $ac_status = 0; }; then
61592  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61593else
61594  pkg_failed=yes
61595fi
61596    fi
61597else
61598	pkg_failed=untried
61599fi
61600
61601
61602
61603if test $pkg_failed = yes; then
61604
61605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61606        _pkg_short_errors_supported=yes
61607else
61608        _pkg_short_errors_supported=no
61609fi
61610        if test $_pkg_short_errors_supported = yes; then
61611	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61612        else
61613	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61614        fi
61615	# Put the nasty error message in config.log where it belongs
61616	echo "$CUDA_PKG_ERRORS" >&5
61617
61618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61619$as_echo "no" >&6; }
61620
61621                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61622$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61623elif test $pkg_failed = untried; then
61624
61625                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61626$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61627else
61628	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61629	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61630        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61631$as_echo "yes" >&6; }
61632	:
61633fi
61634else
61635	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61636	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61637        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61638$as_echo "yes" >&6; }
61639	:
61640fi
61641else
61642	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61643	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61645$as_echo "yes" >&6; }
61646	:
61647fi
61648elif test $pkg_failed = untried; then
61649
61650
61651pkg_failed=no
61652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61653$as_echo_n "checking for CUDA... " >&6; }
61654
61655if test -n "$PKG_CONFIG"; then
61656    if test -n "$CUDA_CFLAGS"; then
61657        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61658    else
61659        if test -n "$PKG_CONFIG" && \
61660    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
61661  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
61662  ac_status=$?
61663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61664  test $ac_status = 0; }; then
61665  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
61666else
61667  pkg_failed=yes
61668fi
61669    fi
61670else
61671	pkg_failed=untried
61672fi
61673if test -n "$PKG_CONFIG"; then
61674    if test -n "$CUDA_LIBS"; then
61675        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61676    else
61677        if test -n "$PKG_CONFIG" && \
61678    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
61679  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
61680  ac_status=$?
61681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61682  test $ac_status = 0; }; then
61683  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
61684else
61685  pkg_failed=yes
61686fi
61687    fi
61688else
61689	pkg_failed=untried
61690fi
61691
61692
61693
61694if test $pkg_failed = yes; then
61695
61696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61697        _pkg_short_errors_supported=yes
61698else
61699        _pkg_short_errors_supported=no
61700fi
61701        if test $_pkg_short_errors_supported = yes; then
61702	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
61703        else
61704	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
61705        fi
61706	# Put the nasty error message in config.log where it belongs
61707	echo "$CUDA_PKG_ERRORS" >&5
61708
61709	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61710$as_echo "no" >&6; }
61711
61712
61713pkg_failed=no
61714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61715$as_echo_n "checking for CUDA... " >&6; }
61716
61717if test -n "$PKG_CONFIG"; then
61718    if test -n "$CUDA_CFLAGS"; then
61719        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61720    else
61721        if test -n "$PKG_CONFIG" && \
61722    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61723  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61724  ac_status=$?
61725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61726  test $ac_status = 0; }; then
61727  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
61728else
61729  pkg_failed=yes
61730fi
61731    fi
61732else
61733	pkg_failed=untried
61734fi
61735if test -n "$PKG_CONFIG"; then
61736    if test -n "$CUDA_LIBS"; then
61737        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61738    else
61739        if test -n "$PKG_CONFIG" && \
61740    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61741  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61742  ac_status=$?
61743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61744  test $ac_status = 0; }; then
61745  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
61746else
61747  pkg_failed=yes
61748fi
61749    fi
61750else
61751	pkg_failed=untried
61752fi
61753
61754
61755
61756if test $pkg_failed = yes; then
61757
61758if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61759        _pkg_short_errors_supported=yes
61760else
61761        _pkg_short_errors_supported=no
61762fi
61763        if test $_pkg_short_errors_supported = yes; then
61764	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61765        else
61766	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61767        fi
61768	# Put the nasty error message in config.log where it belongs
61769	echo "$CUDA_PKG_ERRORS" >&5
61770
61771	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61772$as_echo "no" >&6; }
61773
61774
61775pkg_failed=no
61776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61777$as_echo_n "checking for CUDA... " >&6; }
61778
61779if test -n "$PKG_CONFIG"; then
61780    if test -n "$CUDA_CFLAGS"; then
61781        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61782    else
61783        if test -n "$PKG_CONFIG" && \
61784    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61785  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61786  ac_status=$?
61787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61788  test $ac_status = 0; }; then
61789  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61790else
61791  pkg_failed=yes
61792fi
61793    fi
61794else
61795	pkg_failed=untried
61796fi
61797if test -n "$PKG_CONFIG"; then
61798    if test -n "$CUDA_LIBS"; then
61799        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61800    else
61801        if test -n "$PKG_CONFIG" && \
61802    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61803  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61804  ac_status=$?
61805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61806  test $ac_status = 0; }; then
61807  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61808else
61809  pkg_failed=yes
61810fi
61811    fi
61812else
61813	pkg_failed=untried
61814fi
61815
61816
61817
61818if test $pkg_failed = yes; then
61819
61820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61821        _pkg_short_errors_supported=yes
61822else
61823        _pkg_short_errors_supported=no
61824fi
61825        if test $_pkg_short_errors_supported = yes; then
61826	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61827        else
61828	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61829        fi
61830	# Put the nasty error message in config.log where it belongs
61831	echo "$CUDA_PKG_ERRORS" >&5
61832
61833	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61834$as_echo "no" >&6; }
61835
61836                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61837$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61838elif test $pkg_failed = untried; then
61839
61840                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61841$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61842else
61843	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61844	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61846$as_echo "yes" >&6; }
61847	:
61848fi
61849elif test $pkg_failed = untried; then
61850
61851
61852pkg_failed=no
61853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61854$as_echo_n "checking for CUDA... " >&6; }
61855
61856if test -n "$PKG_CONFIG"; then
61857    if test -n "$CUDA_CFLAGS"; then
61858        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61859    else
61860        if test -n "$PKG_CONFIG" && \
61861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61862  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61863  ac_status=$?
61864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61865  test $ac_status = 0; }; then
61866  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
61867else
61868  pkg_failed=yes
61869fi
61870    fi
61871else
61872	pkg_failed=untried
61873fi
61874if test -n "$PKG_CONFIG"; then
61875    if test -n "$CUDA_LIBS"; then
61876        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61877    else
61878        if test -n "$PKG_CONFIG" && \
61879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
61880  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
61881  ac_status=$?
61882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61883  test $ac_status = 0; }; then
61884  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
61885else
61886  pkg_failed=yes
61887fi
61888    fi
61889else
61890	pkg_failed=untried
61891fi
61892
61893
61894
61895if test $pkg_failed = yes; then
61896
61897if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61898        _pkg_short_errors_supported=yes
61899else
61900        _pkg_short_errors_supported=no
61901fi
61902        if test $_pkg_short_errors_supported = yes; then
61903	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61904        else
61905	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
61906        fi
61907	# Put the nasty error message in config.log where it belongs
61908	echo "$CUDA_PKG_ERRORS" >&5
61909
61910	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61911$as_echo "no" >&6; }
61912
61913                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61914$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61915elif test $pkg_failed = untried; then
61916
61917                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
61918$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
61919else
61920	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61921	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61922        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61923$as_echo "yes" >&6; }
61924	:
61925fi
61926else
61927	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
61928	CUDA_LIBS=$pkg_cv_CUDA_LIBS
61929        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61930$as_echo "yes" >&6; }
61931	:
61932fi
61933elif test $pkg_failed = untried; then
61934
61935
61936pkg_failed=no
61937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
61938$as_echo_n "checking for CUDA... " >&6; }
61939
61940if test -n "$PKG_CONFIG"; then
61941    if test -n "$CUDA_CFLAGS"; then
61942        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
61943    else
61944        if test -n "$PKG_CONFIG" && \
61945    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61946  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61947  ac_status=$?
61948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61949  test $ac_status = 0; }; then
61950  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
61951else
61952  pkg_failed=yes
61953fi
61954    fi
61955else
61956	pkg_failed=untried
61957fi
61958if test -n "$PKG_CONFIG"; then
61959    if test -n "$CUDA_LIBS"; then
61960        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
61961    else
61962        if test -n "$PKG_CONFIG" && \
61963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
61964  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
61965  ac_status=$?
61966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61967  test $ac_status = 0; }; then
61968  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
61969else
61970  pkg_failed=yes
61971fi
61972    fi
61973else
61974	pkg_failed=untried
61975fi
61976
61977
61978
61979if test $pkg_failed = yes; then
61980
61981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
61982        _pkg_short_errors_supported=yes
61983else
61984        _pkg_short_errors_supported=no
61985fi
61986        if test $_pkg_short_errors_supported = yes; then
61987	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61988        else
61989	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
61990        fi
61991	# Put the nasty error message in config.log where it belongs
61992	echo "$CUDA_PKG_ERRORS" >&5
61993
61994	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61995$as_echo "no" >&6; }
61996
61997
61998pkg_failed=no
61999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62000$as_echo_n "checking for CUDA... " >&6; }
62001
62002if test -n "$PKG_CONFIG"; then
62003    if test -n "$CUDA_CFLAGS"; then
62004        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62005    else
62006        if test -n "$PKG_CONFIG" && \
62007    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62008  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62009  ac_status=$?
62010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62011  test $ac_status = 0; }; then
62012  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62013else
62014  pkg_failed=yes
62015fi
62016    fi
62017else
62018	pkg_failed=untried
62019fi
62020if test -n "$PKG_CONFIG"; then
62021    if test -n "$CUDA_LIBS"; then
62022        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62023    else
62024        if test -n "$PKG_CONFIG" && \
62025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62026  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62027  ac_status=$?
62028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62029  test $ac_status = 0; }; then
62030  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62031else
62032  pkg_failed=yes
62033fi
62034    fi
62035else
62036	pkg_failed=untried
62037fi
62038
62039
62040
62041if test $pkg_failed = yes; then
62042
62043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62044        _pkg_short_errors_supported=yes
62045else
62046        _pkg_short_errors_supported=no
62047fi
62048        if test $_pkg_short_errors_supported = yes; then
62049	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62050        else
62051	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62052        fi
62053	# Put the nasty error message in config.log where it belongs
62054	echo "$CUDA_PKG_ERRORS" >&5
62055
62056	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62057$as_echo "no" >&6; }
62058
62059                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62060$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62061elif test $pkg_failed = untried; then
62062
62063                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62064$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62065else
62066	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62067	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62068        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62069$as_echo "yes" >&6; }
62070	:
62071fi
62072elif test $pkg_failed = untried; then
62073
62074
62075pkg_failed=no
62076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62077$as_echo_n "checking for CUDA... " >&6; }
62078
62079if test -n "$PKG_CONFIG"; then
62080    if test -n "$CUDA_CFLAGS"; then
62081        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62082    else
62083        if test -n "$PKG_CONFIG" && \
62084    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62085  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62086  ac_status=$?
62087  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62088  test $ac_status = 0; }; then
62089  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62090else
62091  pkg_failed=yes
62092fi
62093    fi
62094else
62095	pkg_failed=untried
62096fi
62097if test -n "$PKG_CONFIG"; then
62098    if test -n "$CUDA_LIBS"; then
62099        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62100    else
62101        if test -n "$PKG_CONFIG" && \
62102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62103  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62104  ac_status=$?
62105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62106  test $ac_status = 0; }; then
62107  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62108else
62109  pkg_failed=yes
62110fi
62111    fi
62112else
62113	pkg_failed=untried
62114fi
62115
62116
62117
62118if test $pkg_failed = yes; then
62119
62120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62121        _pkg_short_errors_supported=yes
62122else
62123        _pkg_short_errors_supported=no
62124fi
62125        if test $_pkg_short_errors_supported = yes; then
62126	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62127        else
62128	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62129        fi
62130	# Put the nasty error message in config.log where it belongs
62131	echo "$CUDA_PKG_ERRORS" >&5
62132
62133	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62134$as_echo "no" >&6; }
62135
62136                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62137$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62138elif test $pkg_failed = untried; then
62139
62140                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62141$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62142else
62143	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62144	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62145        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62146$as_echo "yes" >&6; }
62147	:
62148fi
62149else
62150	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62151	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62153$as_echo "yes" >&6; }
62154	:
62155fi
62156else
62157	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62158	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62159        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62160$as_echo "yes" >&6; }
62161	:
62162fi
62163else
62164	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62165	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62167$as_echo "yes" >&6; }
62168	:
62169fi
62170elif test $pkg_failed = untried; then
62171
62172
62173pkg_failed=no
62174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62175$as_echo_n "checking for CUDA... " >&6; }
62176
62177if test -n "$PKG_CONFIG"; then
62178    if test -n "$CUDA_CFLAGS"; then
62179        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62180    else
62181        if test -n "$PKG_CONFIG" && \
62182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
62183  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
62184  ac_status=$?
62185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62186  test $ac_status = 0; }; then
62187  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
62188else
62189  pkg_failed=yes
62190fi
62191    fi
62192else
62193	pkg_failed=untried
62194fi
62195if test -n "$PKG_CONFIG"; then
62196    if test -n "$CUDA_LIBS"; then
62197        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62198    else
62199        if test -n "$PKG_CONFIG" && \
62200    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
62201  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
62202  ac_status=$?
62203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62204  test $ac_status = 0; }; then
62205  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
62206else
62207  pkg_failed=yes
62208fi
62209    fi
62210else
62211	pkg_failed=untried
62212fi
62213
62214
62215
62216if test $pkg_failed = yes; then
62217
62218if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62219        _pkg_short_errors_supported=yes
62220else
62221        _pkg_short_errors_supported=no
62222fi
62223        if test $_pkg_short_errors_supported = yes; then
62224	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
62225        else
62226	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
62227        fi
62228	# Put the nasty error message in config.log where it belongs
62229	echo "$CUDA_PKG_ERRORS" >&5
62230
62231	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62232$as_echo "no" >&6; }
62233
62234
62235pkg_failed=no
62236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62237$as_echo_n "checking for CUDA... " >&6; }
62238
62239if test -n "$PKG_CONFIG"; then
62240    if test -n "$CUDA_CFLAGS"; then
62241        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62242    else
62243        if test -n "$PKG_CONFIG" && \
62244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
62245  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
62246  ac_status=$?
62247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62248  test $ac_status = 0; }; then
62249  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
62250else
62251  pkg_failed=yes
62252fi
62253    fi
62254else
62255	pkg_failed=untried
62256fi
62257if test -n "$PKG_CONFIG"; then
62258    if test -n "$CUDA_LIBS"; then
62259        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62260    else
62261        if test -n "$PKG_CONFIG" && \
62262    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
62263  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
62264  ac_status=$?
62265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62266  test $ac_status = 0; }; then
62267  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
62268else
62269  pkg_failed=yes
62270fi
62271    fi
62272else
62273	pkg_failed=untried
62274fi
62275
62276
62277
62278if test $pkg_failed = yes; then
62279
62280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62281        _pkg_short_errors_supported=yes
62282else
62283        _pkg_short_errors_supported=no
62284fi
62285        if test $_pkg_short_errors_supported = yes; then
62286	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
62287        else
62288	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
62289        fi
62290	# Put the nasty error message in config.log where it belongs
62291	echo "$CUDA_PKG_ERRORS" >&5
62292
62293	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62294$as_echo "no" >&6; }
62295
62296
62297pkg_failed=no
62298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62299$as_echo_n "checking for CUDA... " >&6; }
62300
62301if test -n "$PKG_CONFIG"; then
62302    if test -n "$CUDA_CFLAGS"; then
62303        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62304    else
62305        if test -n "$PKG_CONFIG" && \
62306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62307  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62308  ac_status=$?
62309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62310  test $ac_status = 0; }; then
62311  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
62312else
62313  pkg_failed=yes
62314fi
62315    fi
62316else
62317	pkg_failed=untried
62318fi
62319if test -n "$PKG_CONFIG"; then
62320    if test -n "$CUDA_LIBS"; then
62321        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62322    else
62323        if test -n "$PKG_CONFIG" && \
62324    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62325  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62326  ac_status=$?
62327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62328  test $ac_status = 0; }; then
62329  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
62330else
62331  pkg_failed=yes
62332fi
62333    fi
62334else
62335	pkg_failed=untried
62336fi
62337
62338
62339
62340if test $pkg_failed = yes; then
62341
62342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62343        _pkg_short_errors_supported=yes
62344else
62345        _pkg_short_errors_supported=no
62346fi
62347        if test $_pkg_short_errors_supported = yes; then
62348	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62349        else
62350	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62351        fi
62352	# Put the nasty error message in config.log where it belongs
62353	echo "$CUDA_PKG_ERRORS" >&5
62354
62355	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62356$as_echo "no" >&6; }
62357
62358
62359pkg_failed=no
62360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62361$as_echo_n "checking for CUDA... " >&6; }
62362
62363if test -n "$PKG_CONFIG"; then
62364    if test -n "$CUDA_CFLAGS"; then
62365        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62366    else
62367        if test -n "$PKG_CONFIG" && \
62368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62369  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62370  ac_status=$?
62371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62372  test $ac_status = 0; }; then
62373  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62374else
62375  pkg_failed=yes
62376fi
62377    fi
62378else
62379	pkg_failed=untried
62380fi
62381if test -n "$PKG_CONFIG"; then
62382    if test -n "$CUDA_LIBS"; then
62383        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62384    else
62385        if test -n "$PKG_CONFIG" && \
62386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62387  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62388  ac_status=$?
62389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62390  test $ac_status = 0; }; then
62391  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62392else
62393  pkg_failed=yes
62394fi
62395    fi
62396else
62397	pkg_failed=untried
62398fi
62399
62400
62401
62402if test $pkg_failed = yes; then
62403
62404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62405        _pkg_short_errors_supported=yes
62406else
62407        _pkg_short_errors_supported=no
62408fi
62409        if test $_pkg_short_errors_supported = yes; then
62410	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62411        else
62412	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62413        fi
62414	# Put the nasty error message in config.log where it belongs
62415	echo "$CUDA_PKG_ERRORS" >&5
62416
62417	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62418$as_echo "no" >&6; }
62419
62420                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62421$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62422elif test $pkg_failed = untried; then
62423
62424                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62425$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62426else
62427	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62428	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62429        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62430$as_echo "yes" >&6; }
62431	:
62432fi
62433elif test $pkg_failed = untried; then
62434
62435
62436pkg_failed=no
62437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62438$as_echo_n "checking for CUDA... " >&6; }
62439
62440if test -n "$PKG_CONFIG"; then
62441    if test -n "$CUDA_CFLAGS"; then
62442        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62443    else
62444        if test -n "$PKG_CONFIG" && \
62445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62446  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62447  ac_status=$?
62448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62449  test $ac_status = 0; }; then
62450  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62451else
62452  pkg_failed=yes
62453fi
62454    fi
62455else
62456	pkg_failed=untried
62457fi
62458if test -n "$PKG_CONFIG"; then
62459    if test -n "$CUDA_LIBS"; then
62460        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62461    else
62462        if test -n "$PKG_CONFIG" && \
62463    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62464  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62465  ac_status=$?
62466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62467  test $ac_status = 0; }; then
62468  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62469else
62470  pkg_failed=yes
62471fi
62472    fi
62473else
62474	pkg_failed=untried
62475fi
62476
62477
62478
62479if test $pkg_failed = yes; then
62480
62481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62482        _pkg_short_errors_supported=yes
62483else
62484        _pkg_short_errors_supported=no
62485fi
62486        if test $_pkg_short_errors_supported = yes; then
62487	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62488        else
62489	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62490        fi
62491	# Put the nasty error message in config.log where it belongs
62492	echo "$CUDA_PKG_ERRORS" >&5
62493
62494	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62495$as_echo "no" >&6; }
62496
62497                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62498$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62499elif test $pkg_failed = untried; then
62500
62501                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62502$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62503else
62504	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62505	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62506        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62507$as_echo "yes" >&6; }
62508	:
62509fi
62510else
62511	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62512	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62513        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62514$as_echo "yes" >&6; }
62515	:
62516fi
62517elif test $pkg_failed = untried; then
62518
62519
62520pkg_failed=no
62521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62522$as_echo_n "checking for CUDA... " >&6; }
62523
62524if test -n "$PKG_CONFIG"; then
62525    if test -n "$CUDA_CFLAGS"; then
62526        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62527    else
62528        if test -n "$PKG_CONFIG" && \
62529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62530  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62531  ac_status=$?
62532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62533  test $ac_status = 0; }; then
62534  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
62535else
62536  pkg_failed=yes
62537fi
62538    fi
62539else
62540	pkg_failed=untried
62541fi
62542if test -n "$PKG_CONFIG"; then
62543    if test -n "$CUDA_LIBS"; then
62544        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62545    else
62546        if test -n "$PKG_CONFIG" && \
62547    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62548  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62549  ac_status=$?
62550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62551  test $ac_status = 0; }; then
62552  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
62553else
62554  pkg_failed=yes
62555fi
62556    fi
62557else
62558	pkg_failed=untried
62559fi
62560
62561
62562
62563if test $pkg_failed = yes; then
62564
62565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62566        _pkg_short_errors_supported=yes
62567else
62568        _pkg_short_errors_supported=no
62569fi
62570        if test $_pkg_short_errors_supported = yes; then
62571	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62572        else
62573	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62574        fi
62575	# Put the nasty error message in config.log where it belongs
62576	echo "$CUDA_PKG_ERRORS" >&5
62577
62578	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62579$as_echo "no" >&6; }
62580
62581
62582pkg_failed=no
62583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62584$as_echo_n "checking for CUDA... " >&6; }
62585
62586if test -n "$PKG_CONFIG"; then
62587    if test -n "$CUDA_CFLAGS"; then
62588        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62589    else
62590        if test -n "$PKG_CONFIG" && \
62591    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62592  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62593  ac_status=$?
62594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62595  test $ac_status = 0; }; then
62596  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62597else
62598  pkg_failed=yes
62599fi
62600    fi
62601else
62602	pkg_failed=untried
62603fi
62604if test -n "$PKG_CONFIG"; then
62605    if test -n "$CUDA_LIBS"; then
62606        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62607    else
62608        if test -n "$PKG_CONFIG" && \
62609    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62610  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62611  ac_status=$?
62612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62613  test $ac_status = 0; }; then
62614  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62615else
62616  pkg_failed=yes
62617fi
62618    fi
62619else
62620	pkg_failed=untried
62621fi
62622
62623
62624
62625if test $pkg_failed = yes; then
62626
62627if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62628        _pkg_short_errors_supported=yes
62629else
62630        _pkg_short_errors_supported=no
62631fi
62632        if test $_pkg_short_errors_supported = yes; then
62633	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62634        else
62635	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62636        fi
62637	# Put the nasty error message in config.log where it belongs
62638	echo "$CUDA_PKG_ERRORS" >&5
62639
62640	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62641$as_echo "no" >&6; }
62642
62643                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62644$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62645elif test $pkg_failed = untried; then
62646
62647                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62648$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62649else
62650	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62651	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62653$as_echo "yes" >&6; }
62654	:
62655fi
62656elif test $pkg_failed = untried; then
62657
62658
62659pkg_failed=no
62660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62661$as_echo_n "checking for CUDA... " >&6; }
62662
62663if test -n "$PKG_CONFIG"; then
62664    if test -n "$CUDA_CFLAGS"; then
62665        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62666    else
62667        if test -n "$PKG_CONFIG" && \
62668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62669  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62670  ac_status=$?
62671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62672  test $ac_status = 0; }; then
62673  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62674else
62675  pkg_failed=yes
62676fi
62677    fi
62678else
62679	pkg_failed=untried
62680fi
62681if test -n "$PKG_CONFIG"; then
62682    if test -n "$CUDA_LIBS"; then
62683        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62684    else
62685        if test -n "$PKG_CONFIG" && \
62686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62687  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62688  ac_status=$?
62689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62690  test $ac_status = 0; }; then
62691  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62692else
62693  pkg_failed=yes
62694fi
62695    fi
62696else
62697	pkg_failed=untried
62698fi
62699
62700
62701
62702if test $pkg_failed = yes; then
62703
62704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62705        _pkg_short_errors_supported=yes
62706else
62707        _pkg_short_errors_supported=no
62708fi
62709        if test $_pkg_short_errors_supported = yes; then
62710	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62711        else
62712	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62713        fi
62714	# Put the nasty error message in config.log where it belongs
62715	echo "$CUDA_PKG_ERRORS" >&5
62716
62717	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62718$as_echo "no" >&6; }
62719
62720                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62721$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62722elif test $pkg_failed = untried; then
62723
62724                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62725$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62726else
62727	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62728	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62730$as_echo "yes" >&6; }
62731	:
62732fi
62733else
62734	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62735	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62736        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62737$as_echo "yes" >&6; }
62738	:
62739fi
62740else
62741	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62742	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62744$as_echo "yes" >&6; }
62745	:
62746fi
62747elif test $pkg_failed = untried; then
62748
62749
62750pkg_failed=no
62751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62752$as_echo_n "checking for CUDA... " >&6; }
62753
62754if test -n "$PKG_CONFIG"; then
62755    if test -n "$CUDA_CFLAGS"; then
62756        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62757    else
62758        if test -n "$PKG_CONFIG" && \
62759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
62760  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
62761  ac_status=$?
62762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62763  test $ac_status = 0; }; then
62764  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
62765else
62766  pkg_failed=yes
62767fi
62768    fi
62769else
62770	pkg_failed=untried
62771fi
62772if test -n "$PKG_CONFIG"; then
62773    if test -n "$CUDA_LIBS"; then
62774        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62775    else
62776        if test -n "$PKG_CONFIG" && \
62777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
62778  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
62779  ac_status=$?
62780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62781  test $ac_status = 0; }; then
62782  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
62783else
62784  pkg_failed=yes
62785fi
62786    fi
62787else
62788	pkg_failed=untried
62789fi
62790
62791
62792
62793if test $pkg_failed = yes; then
62794
62795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62796        _pkg_short_errors_supported=yes
62797else
62798        _pkg_short_errors_supported=no
62799fi
62800        if test $_pkg_short_errors_supported = yes; then
62801	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
62802        else
62803	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
62804        fi
62805	# Put the nasty error message in config.log where it belongs
62806	echo "$CUDA_PKG_ERRORS" >&5
62807
62808	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62809$as_echo "no" >&6; }
62810
62811
62812pkg_failed=no
62813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62814$as_echo_n "checking for CUDA... " >&6; }
62815
62816if test -n "$PKG_CONFIG"; then
62817    if test -n "$CUDA_CFLAGS"; then
62818        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62819    else
62820        if test -n "$PKG_CONFIG" && \
62821    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62822  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62823  ac_status=$?
62824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62825  test $ac_status = 0; }; then
62826  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
62827else
62828  pkg_failed=yes
62829fi
62830    fi
62831else
62832	pkg_failed=untried
62833fi
62834if test -n "$PKG_CONFIG"; then
62835    if test -n "$CUDA_LIBS"; then
62836        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62837    else
62838        if test -n "$PKG_CONFIG" && \
62839    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
62840  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
62841  ac_status=$?
62842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62843  test $ac_status = 0; }; then
62844  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
62845else
62846  pkg_failed=yes
62847fi
62848    fi
62849else
62850	pkg_failed=untried
62851fi
62852
62853
62854
62855if test $pkg_failed = yes; then
62856
62857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62858        _pkg_short_errors_supported=yes
62859else
62860        _pkg_short_errors_supported=no
62861fi
62862        if test $_pkg_short_errors_supported = yes; then
62863	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62864        else
62865	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
62866        fi
62867	# Put the nasty error message in config.log where it belongs
62868	echo "$CUDA_PKG_ERRORS" >&5
62869
62870	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62871$as_echo "no" >&6; }
62872
62873
62874pkg_failed=no
62875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62876$as_echo_n "checking for CUDA... " >&6; }
62877
62878if test -n "$PKG_CONFIG"; then
62879    if test -n "$CUDA_CFLAGS"; then
62880        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62881    else
62882        if test -n "$PKG_CONFIG" && \
62883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62884  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62885  ac_status=$?
62886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62887  test $ac_status = 0; }; then
62888  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62889else
62890  pkg_failed=yes
62891fi
62892    fi
62893else
62894	pkg_failed=untried
62895fi
62896if test -n "$PKG_CONFIG"; then
62897    if test -n "$CUDA_LIBS"; then
62898        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62899    else
62900        if test -n "$PKG_CONFIG" && \
62901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62902  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62903  ac_status=$?
62904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62905  test $ac_status = 0; }; then
62906  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62907else
62908  pkg_failed=yes
62909fi
62910    fi
62911else
62912	pkg_failed=untried
62913fi
62914
62915
62916
62917if test $pkg_failed = yes; then
62918
62919if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62920        _pkg_short_errors_supported=yes
62921else
62922        _pkg_short_errors_supported=no
62923fi
62924        if test $_pkg_short_errors_supported = yes; then
62925	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62926        else
62927	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
62928        fi
62929	# Put the nasty error message in config.log where it belongs
62930	echo "$CUDA_PKG_ERRORS" >&5
62931
62932	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62933$as_echo "no" >&6; }
62934
62935                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62936$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62937elif test $pkg_failed = untried; then
62938
62939                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
62940$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
62941else
62942	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
62943	CUDA_LIBS=$pkg_cv_CUDA_LIBS
62944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62945$as_echo "yes" >&6; }
62946	:
62947fi
62948elif test $pkg_failed = untried; then
62949
62950
62951pkg_failed=no
62952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
62953$as_echo_n "checking for CUDA... " >&6; }
62954
62955if test -n "$PKG_CONFIG"; then
62956    if test -n "$CUDA_CFLAGS"; then
62957        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
62958    else
62959        if test -n "$PKG_CONFIG" && \
62960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62961  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62962  ac_status=$?
62963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62964  test $ac_status = 0; }; then
62965  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
62966else
62967  pkg_failed=yes
62968fi
62969    fi
62970else
62971	pkg_failed=untried
62972fi
62973if test -n "$PKG_CONFIG"; then
62974    if test -n "$CUDA_LIBS"; then
62975        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
62976    else
62977        if test -n "$PKG_CONFIG" && \
62978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
62979  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
62980  ac_status=$?
62981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62982  test $ac_status = 0; }; then
62983  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
62984else
62985  pkg_failed=yes
62986fi
62987    fi
62988else
62989	pkg_failed=untried
62990fi
62991
62992
62993
62994if test $pkg_failed = yes; then
62995
62996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
62997        _pkg_short_errors_supported=yes
62998else
62999        _pkg_short_errors_supported=no
63000fi
63001        if test $_pkg_short_errors_supported = yes; then
63002	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63003        else
63004	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63005        fi
63006	# Put the nasty error message in config.log where it belongs
63007	echo "$CUDA_PKG_ERRORS" >&5
63008
63009	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63010$as_echo "no" >&6; }
63011
63012                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63013$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63014elif test $pkg_failed = untried; then
63015
63016                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63017$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63018else
63019	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63020	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63021        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63022$as_echo "yes" >&6; }
63023	:
63024fi
63025else
63026	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63027	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63028        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63029$as_echo "yes" >&6; }
63030	:
63031fi
63032elif test $pkg_failed = untried; then
63033
63034
63035pkg_failed=no
63036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63037$as_echo_n "checking for CUDA... " >&6; }
63038
63039if test -n "$PKG_CONFIG"; then
63040    if test -n "$CUDA_CFLAGS"; then
63041        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63042    else
63043        if test -n "$PKG_CONFIG" && \
63044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63045  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63046  ac_status=$?
63047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63048  test $ac_status = 0; }; then
63049  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
63050else
63051  pkg_failed=yes
63052fi
63053    fi
63054else
63055	pkg_failed=untried
63056fi
63057if test -n "$PKG_CONFIG"; then
63058    if test -n "$CUDA_LIBS"; then
63059        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63060    else
63061        if test -n "$PKG_CONFIG" && \
63062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63063  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63064  ac_status=$?
63065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63066  test $ac_status = 0; }; then
63067  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
63068else
63069  pkg_failed=yes
63070fi
63071    fi
63072else
63073	pkg_failed=untried
63074fi
63075
63076
63077
63078if test $pkg_failed = yes; then
63079
63080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63081        _pkg_short_errors_supported=yes
63082else
63083        _pkg_short_errors_supported=no
63084fi
63085        if test $_pkg_short_errors_supported = yes; then
63086	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63087        else
63088	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63089        fi
63090	# Put the nasty error message in config.log where it belongs
63091	echo "$CUDA_PKG_ERRORS" >&5
63092
63093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63094$as_echo "no" >&6; }
63095
63096
63097pkg_failed=no
63098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63099$as_echo_n "checking for CUDA... " >&6; }
63100
63101if test -n "$PKG_CONFIG"; then
63102    if test -n "$CUDA_CFLAGS"; then
63103        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63104    else
63105        if test -n "$PKG_CONFIG" && \
63106    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63107  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63108  ac_status=$?
63109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63110  test $ac_status = 0; }; then
63111  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63112else
63113  pkg_failed=yes
63114fi
63115    fi
63116else
63117	pkg_failed=untried
63118fi
63119if test -n "$PKG_CONFIG"; then
63120    if test -n "$CUDA_LIBS"; then
63121        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63122    else
63123        if test -n "$PKG_CONFIG" && \
63124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63125  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63126  ac_status=$?
63127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63128  test $ac_status = 0; }; then
63129  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63130else
63131  pkg_failed=yes
63132fi
63133    fi
63134else
63135	pkg_failed=untried
63136fi
63137
63138
63139
63140if test $pkg_failed = yes; then
63141
63142if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63143        _pkg_short_errors_supported=yes
63144else
63145        _pkg_short_errors_supported=no
63146fi
63147        if test $_pkg_short_errors_supported = yes; then
63148	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63149        else
63150	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63151        fi
63152	# Put the nasty error message in config.log where it belongs
63153	echo "$CUDA_PKG_ERRORS" >&5
63154
63155	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63156$as_echo "no" >&6; }
63157
63158                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63159$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63160elif test $pkg_failed = untried; then
63161
63162                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63163$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63164else
63165	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63166	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63168$as_echo "yes" >&6; }
63169	:
63170fi
63171elif test $pkg_failed = untried; then
63172
63173
63174pkg_failed=no
63175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63176$as_echo_n "checking for CUDA... " >&6; }
63177
63178if test -n "$PKG_CONFIG"; then
63179    if test -n "$CUDA_CFLAGS"; then
63180        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63181    else
63182        if test -n "$PKG_CONFIG" && \
63183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63184  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63185  ac_status=$?
63186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63187  test $ac_status = 0; }; then
63188  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63189else
63190  pkg_failed=yes
63191fi
63192    fi
63193else
63194	pkg_failed=untried
63195fi
63196if test -n "$PKG_CONFIG"; then
63197    if test -n "$CUDA_LIBS"; then
63198        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63199    else
63200        if test -n "$PKG_CONFIG" && \
63201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63202  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63203  ac_status=$?
63204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63205  test $ac_status = 0; }; then
63206  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63207else
63208  pkg_failed=yes
63209fi
63210    fi
63211else
63212	pkg_failed=untried
63213fi
63214
63215
63216
63217if test $pkg_failed = yes; then
63218
63219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63220        _pkg_short_errors_supported=yes
63221else
63222        _pkg_short_errors_supported=no
63223fi
63224        if test $_pkg_short_errors_supported = yes; then
63225	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63226        else
63227	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63228        fi
63229	# Put the nasty error message in config.log where it belongs
63230	echo "$CUDA_PKG_ERRORS" >&5
63231
63232	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63233$as_echo "no" >&6; }
63234
63235                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63236$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63237elif test $pkg_failed = untried; then
63238
63239                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63240$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63241else
63242	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63243	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63244        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63245$as_echo "yes" >&6; }
63246	:
63247fi
63248else
63249	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63250	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63251        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63252$as_echo "yes" >&6; }
63253	:
63254fi
63255else
63256	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63257	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63258        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63259$as_echo "yes" >&6; }
63260	:
63261fi
63262else
63263	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63264	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63265        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63266$as_echo "yes" >&6; }
63267	:
63268fi
63269else
63270	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63271	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63272        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63273$as_echo "yes" >&6; }
63274	:
63275fi
63276else
63277	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63278	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63280$as_echo "yes" >&6; }
63281	:
63282fi
63283else
63284	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63285	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63286        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63287$as_echo "yes" >&6; }
63288	:
63289fi
63290elif test $pkg_failed = untried; then
63291
63292
63293pkg_failed=no
63294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63295$as_echo_n "checking for CUDA... " >&6; }
63296
63297if test -n "$PKG_CONFIG"; then
63298    if test -n "$CUDA_CFLAGS"; then
63299        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63300    else
63301        if test -n "$PKG_CONFIG" && \
63302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
63303  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
63304  ac_status=$?
63305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63306  test $ac_status = 0; }; then
63307  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.2 cudart-9.2" 2>/dev/null`
63308else
63309  pkg_failed=yes
63310fi
63311    fi
63312else
63313	pkg_failed=untried
63314fi
63315if test -n "$PKG_CONFIG"; then
63316    if test -n "$CUDA_LIBS"; then
63317        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63318    else
63319        if test -n "$PKG_CONFIG" && \
63320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.2 cudart-9.2\""; } >&5
63321  ($PKG_CONFIG --exists --print-errors "cuda-9.2 cudart-9.2") 2>&5
63322  ac_status=$?
63323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63324  test $ac_status = 0; }; then
63325  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.2 cudart-9.2" 2>/dev/null`
63326else
63327  pkg_failed=yes
63328fi
63329    fi
63330else
63331	pkg_failed=untried
63332fi
63333
63334
63335
63336if test $pkg_failed = yes; then
63337
63338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63339        _pkg_short_errors_supported=yes
63340else
63341        _pkg_short_errors_supported=no
63342fi
63343        if test $_pkg_short_errors_supported = yes; then
63344	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
63345        else
63346	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.2 cudart-9.2"`
63347        fi
63348	# Put the nasty error message in config.log where it belongs
63349	echo "$CUDA_PKG_ERRORS" >&5
63350
63351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63352$as_echo "no" >&6; }
63353
63354
63355pkg_failed=no
63356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63357$as_echo_n "checking for CUDA... " >&6; }
63358
63359if test -n "$PKG_CONFIG"; then
63360    if test -n "$CUDA_CFLAGS"; then
63361        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63362    else
63363        if test -n "$PKG_CONFIG" && \
63364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
63365  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
63366  ac_status=$?
63367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63368  test $ac_status = 0; }; then
63369  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
63370else
63371  pkg_failed=yes
63372fi
63373    fi
63374else
63375	pkg_failed=untried
63376fi
63377if test -n "$PKG_CONFIG"; then
63378    if test -n "$CUDA_LIBS"; then
63379        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63380    else
63381        if test -n "$PKG_CONFIG" && \
63382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
63383  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
63384  ac_status=$?
63385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63386  test $ac_status = 0; }; then
63387  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
63388else
63389  pkg_failed=yes
63390fi
63391    fi
63392else
63393	pkg_failed=untried
63394fi
63395
63396
63397
63398if test $pkg_failed = yes; then
63399
63400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63401        _pkg_short_errors_supported=yes
63402else
63403        _pkg_short_errors_supported=no
63404fi
63405        if test $_pkg_short_errors_supported = yes; then
63406	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
63407        else
63408	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
63409        fi
63410	# Put the nasty error message in config.log where it belongs
63411	echo "$CUDA_PKG_ERRORS" >&5
63412
63413	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63414$as_echo "no" >&6; }
63415
63416
63417pkg_failed=no
63418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63419$as_echo_n "checking for CUDA... " >&6; }
63420
63421if test -n "$PKG_CONFIG"; then
63422    if test -n "$CUDA_CFLAGS"; then
63423        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63424    else
63425        if test -n "$PKG_CONFIG" && \
63426    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
63427  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
63428  ac_status=$?
63429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63430  test $ac_status = 0; }; then
63431  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
63432else
63433  pkg_failed=yes
63434fi
63435    fi
63436else
63437	pkg_failed=untried
63438fi
63439if test -n "$PKG_CONFIG"; then
63440    if test -n "$CUDA_LIBS"; then
63441        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63442    else
63443        if test -n "$PKG_CONFIG" && \
63444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
63445  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
63446  ac_status=$?
63447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63448  test $ac_status = 0; }; then
63449  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
63450else
63451  pkg_failed=yes
63452fi
63453    fi
63454else
63455	pkg_failed=untried
63456fi
63457
63458
63459
63460if test $pkg_failed = yes; then
63461
63462if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63463        _pkg_short_errors_supported=yes
63464else
63465        _pkg_short_errors_supported=no
63466fi
63467        if test $_pkg_short_errors_supported = yes; then
63468	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
63469        else
63470	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
63471        fi
63472	# Put the nasty error message in config.log where it belongs
63473	echo "$CUDA_PKG_ERRORS" >&5
63474
63475	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63476$as_echo "no" >&6; }
63477
63478
63479pkg_failed=no
63480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63481$as_echo_n "checking for CUDA... " >&6; }
63482
63483if test -n "$PKG_CONFIG"; then
63484    if test -n "$CUDA_CFLAGS"; then
63485        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63486    else
63487        if test -n "$PKG_CONFIG" && \
63488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
63489  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
63490  ac_status=$?
63491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63492  test $ac_status = 0; }; then
63493  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
63494else
63495  pkg_failed=yes
63496fi
63497    fi
63498else
63499	pkg_failed=untried
63500fi
63501if test -n "$PKG_CONFIG"; then
63502    if test -n "$CUDA_LIBS"; then
63503        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63504    else
63505        if test -n "$PKG_CONFIG" && \
63506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
63507  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
63508  ac_status=$?
63509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63510  test $ac_status = 0; }; then
63511  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
63512else
63513  pkg_failed=yes
63514fi
63515    fi
63516else
63517	pkg_failed=untried
63518fi
63519
63520
63521
63522if test $pkg_failed = yes; then
63523
63524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63525        _pkg_short_errors_supported=yes
63526else
63527        _pkg_short_errors_supported=no
63528fi
63529        if test $_pkg_short_errors_supported = yes; then
63530	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
63531        else
63532	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
63533        fi
63534	# Put the nasty error message in config.log where it belongs
63535	echo "$CUDA_PKG_ERRORS" >&5
63536
63537	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63538$as_echo "no" >&6; }
63539
63540
63541pkg_failed=no
63542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63543$as_echo_n "checking for CUDA... " >&6; }
63544
63545if test -n "$PKG_CONFIG"; then
63546    if test -n "$CUDA_CFLAGS"; then
63547        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63548    else
63549        if test -n "$PKG_CONFIG" && \
63550    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
63551  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
63552  ac_status=$?
63553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63554  test $ac_status = 0; }; then
63555  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
63556else
63557  pkg_failed=yes
63558fi
63559    fi
63560else
63561	pkg_failed=untried
63562fi
63563if test -n "$PKG_CONFIG"; then
63564    if test -n "$CUDA_LIBS"; then
63565        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63566    else
63567        if test -n "$PKG_CONFIG" && \
63568    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
63569  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
63570  ac_status=$?
63571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63572  test $ac_status = 0; }; then
63573  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
63574else
63575  pkg_failed=yes
63576fi
63577    fi
63578else
63579	pkg_failed=untried
63580fi
63581
63582
63583
63584if test $pkg_failed = yes; then
63585
63586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63587        _pkg_short_errors_supported=yes
63588else
63589        _pkg_short_errors_supported=no
63590fi
63591        if test $_pkg_short_errors_supported = yes; then
63592	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
63593        else
63594	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
63595        fi
63596	# Put the nasty error message in config.log where it belongs
63597	echo "$CUDA_PKG_ERRORS" >&5
63598
63599	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63600$as_echo "no" >&6; }
63601
63602
63603pkg_failed=no
63604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63605$as_echo_n "checking for CUDA... " >&6; }
63606
63607if test -n "$PKG_CONFIG"; then
63608    if test -n "$CUDA_CFLAGS"; then
63609        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63610    else
63611        if test -n "$PKG_CONFIG" && \
63612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63613  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63614  ac_status=$?
63615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63616  test $ac_status = 0; }; then
63617  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
63618else
63619  pkg_failed=yes
63620fi
63621    fi
63622else
63623	pkg_failed=untried
63624fi
63625if test -n "$PKG_CONFIG"; then
63626    if test -n "$CUDA_LIBS"; then
63627        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63628    else
63629        if test -n "$PKG_CONFIG" && \
63630    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63631  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63632  ac_status=$?
63633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63634  test $ac_status = 0; }; then
63635  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
63636else
63637  pkg_failed=yes
63638fi
63639    fi
63640else
63641	pkg_failed=untried
63642fi
63643
63644
63645
63646if test $pkg_failed = yes; then
63647
63648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63649        _pkg_short_errors_supported=yes
63650else
63651        _pkg_short_errors_supported=no
63652fi
63653        if test $_pkg_short_errors_supported = yes; then
63654	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63655        else
63656	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63657        fi
63658	# Put the nasty error message in config.log where it belongs
63659	echo "$CUDA_PKG_ERRORS" >&5
63660
63661	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63662$as_echo "no" >&6; }
63663
63664
63665pkg_failed=no
63666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63667$as_echo_n "checking for CUDA... " >&6; }
63668
63669if test -n "$PKG_CONFIG"; then
63670    if test -n "$CUDA_CFLAGS"; then
63671        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63672    else
63673        if test -n "$PKG_CONFIG" && \
63674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63675  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63676  ac_status=$?
63677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63678  test $ac_status = 0; }; then
63679  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63680else
63681  pkg_failed=yes
63682fi
63683    fi
63684else
63685	pkg_failed=untried
63686fi
63687if test -n "$PKG_CONFIG"; then
63688    if test -n "$CUDA_LIBS"; then
63689        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63690    else
63691        if test -n "$PKG_CONFIG" && \
63692    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63693  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63694  ac_status=$?
63695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63696  test $ac_status = 0; }; then
63697  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63698else
63699  pkg_failed=yes
63700fi
63701    fi
63702else
63703	pkg_failed=untried
63704fi
63705
63706
63707
63708if test $pkg_failed = yes; then
63709
63710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63711        _pkg_short_errors_supported=yes
63712else
63713        _pkg_short_errors_supported=no
63714fi
63715        if test $_pkg_short_errors_supported = yes; then
63716	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63717        else
63718	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63719        fi
63720	# Put the nasty error message in config.log where it belongs
63721	echo "$CUDA_PKG_ERRORS" >&5
63722
63723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63724$as_echo "no" >&6; }
63725
63726                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63727$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63728elif test $pkg_failed = untried; then
63729
63730                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63731$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63732else
63733	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63734	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63736$as_echo "yes" >&6; }
63737	:
63738fi
63739elif test $pkg_failed = untried; then
63740
63741
63742pkg_failed=no
63743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63744$as_echo_n "checking for CUDA... " >&6; }
63745
63746if test -n "$PKG_CONFIG"; then
63747    if test -n "$CUDA_CFLAGS"; then
63748        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63749    else
63750        if test -n "$PKG_CONFIG" && \
63751    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63752  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63753  ac_status=$?
63754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63755  test $ac_status = 0; }; then
63756  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63757else
63758  pkg_failed=yes
63759fi
63760    fi
63761else
63762	pkg_failed=untried
63763fi
63764if test -n "$PKG_CONFIG"; then
63765    if test -n "$CUDA_LIBS"; then
63766        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63767    else
63768        if test -n "$PKG_CONFIG" && \
63769    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63770  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63771  ac_status=$?
63772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63773  test $ac_status = 0; }; then
63774  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63775else
63776  pkg_failed=yes
63777fi
63778    fi
63779else
63780	pkg_failed=untried
63781fi
63782
63783
63784
63785if test $pkg_failed = yes; then
63786
63787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63788        _pkg_short_errors_supported=yes
63789else
63790        _pkg_short_errors_supported=no
63791fi
63792        if test $_pkg_short_errors_supported = yes; then
63793	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63794        else
63795	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63796        fi
63797	# Put the nasty error message in config.log where it belongs
63798	echo "$CUDA_PKG_ERRORS" >&5
63799
63800	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63801$as_echo "no" >&6; }
63802
63803                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63804$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63805elif test $pkg_failed = untried; then
63806
63807                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63808$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63809else
63810	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63811	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63812        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63813$as_echo "yes" >&6; }
63814	:
63815fi
63816else
63817	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63818	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63819        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63820$as_echo "yes" >&6; }
63821	:
63822fi
63823elif test $pkg_failed = untried; then
63824
63825
63826pkg_failed=no
63827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63828$as_echo_n "checking for CUDA... " >&6; }
63829
63830if test -n "$PKG_CONFIG"; then
63831    if test -n "$CUDA_CFLAGS"; then
63832        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63833    else
63834        if test -n "$PKG_CONFIG" && \
63835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63836  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63837  ac_status=$?
63838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63839  test $ac_status = 0; }; then
63840  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
63841else
63842  pkg_failed=yes
63843fi
63844    fi
63845else
63846	pkg_failed=untried
63847fi
63848if test -n "$PKG_CONFIG"; then
63849    if test -n "$CUDA_LIBS"; then
63850        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63851    else
63852        if test -n "$PKG_CONFIG" && \
63853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
63854  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
63855  ac_status=$?
63856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63857  test $ac_status = 0; }; then
63858  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
63859else
63860  pkg_failed=yes
63861fi
63862    fi
63863else
63864	pkg_failed=untried
63865fi
63866
63867
63868
63869if test $pkg_failed = yes; then
63870
63871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63872        _pkg_short_errors_supported=yes
63873else
63874        _pkg_short_errors_supported=no
63875fi
63876        if test $_pkg_short_errors_supported = yes; then
63877	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63878        else
63879	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
63880        fi
63881	# Put the nasty error message in config.log where it belongs
63882	echo "$CUDA_PKG_ERRORS" >&5
63883
63884	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63885$as_echo "no" >&6; }
63886
63887
63888pkg_failed=no
63889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63890$as_echo_n "checking for CUDA... " >&6; }
63891
63892if test -n "$PKG_CONFIG"; then
63893    if test -n "$CUDA_CFLAGS"; then
63894        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63895    else
63896        if test -n "$PKG_CONFIG" && \
63897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63898  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63899  ac_status=$?
63900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63901  test $ac_status = 0; }; then
63902  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63903else
63904  pkg_failed=yes
63905fi
63906    fi
63907else
63908	pkg_failed=untried
63909fi
63910if test -n "$PKG_CONFIG"; then
63911    if test -n "$CUDA_LIBS"; then
63912        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63913    else
63914        if test -n "$PKG_CONFIG" && \
63915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63916  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63917  ac_status=$?
63918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63919  test $ac_status = 0; }; then
63920  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63921else
63922  pkg_failed=yes
63923fi
63924    fi
63925else
63926	pkg_failed=untried
63927fi
63928
63929
63930
63931if test $pkg_failed = yes; then
63932
63933if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
63934        _pkg_short_errors_supported=yes
63935else
63936        _pkg_short_errors_supported=no
63937fi
63938        if test $_pkg_short_errors_supported = yes; then
63939	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63940        else
63941	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
63942        fi
63943	# Put the nasty error message in config.log where it belongs
63944	echo "$CUDA_PKG_ERRORS" >&5
63945
63946	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63947$as_echo "no" >&6; }
63948
63949                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63950$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63951elif test $pkg_failed = untried; then
63952
63953                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
63954$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
63955else
63956	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
63957	CUDA_LIBS=$pkg_cv_CUDA_LIBS
63958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63959$as_echo "yes" >&6; }
63960	:
63961fi
63962elif test $pkg_failed = untried; then
63963
63964
63965pkg_failed=no
63966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
63967$as_echo_n "checking for CUDA... " >&6; }
63968
63969if test -n "$PKG_CONFIG"; then
63970    if test -n "$CUDA_CFLAGS"; then
63971        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
63972    else
63973        if test -n "$PKG_CONFIG" && \
63974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63975  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63976  ac_status=$?
63977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63978  test $ac_status = 0; }; then
63979  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
63980else
63981  pkg_failed=yes
63982fi
63983    fi
63984else
63985	pkg_failed=untried
63986fi
63987if test -n "$PKG_CONFIG"; then
63988    if test -n "$CUDA_LIBS"; then
63989        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
63990    else
63991        if test -n "$PKG_CONFIG" && \
63992    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
63993  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
63994  ac_status=$?
63995  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
63996  test $ac_status = 0; }; then
63997  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
63998else
63999  pkg_failed=yes
64000fi
64001    fi
64002else
64003	pkg_failed=untried
64004fi
64005
64006
64007
64008if test $pkg_failed = yes; then
64009
64010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64011        _pkg_short_errors_supported=yes
64012else
64013        _pkg_short_errors_supported=no
64014fi
64015        if test $_pkg_short_errors_supported = yes; then
64016	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64017        else
64018	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64019        fi
64020	# Put the nasty error message in config.log where it belongs
64021	echo "$CUDA_PKG_ERRORS" >&5
64022
64023	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64024$as_echo "no" >&6; }
64025
64026                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64027$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64028elif test $pkg_failed = untried; then
64029
64030                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64031$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64032else
64033	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64034	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64035        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64036$as_echo "yes" >&6; }
64037	:
64038fi
64039else
64040	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64041	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64042        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64043$as_echo "yes" >&6; }
64044	:
64045fi
64046else
64047	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64048	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64050$as_echo "yes" >&6; }
64051	:
64052fi
64053elif test $pkg_failed = untried; then
64054
64055
64056pkg_failed=no
64057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64058$as_echo_n "checking for CUDA... " >&6; }
64059
64060if test -n "$PKG_CONFIG"; then
64061    if test -n "$CUDA_CFLAGS"; then
64062        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64063    else
64064        if test -n "$PKG_CONFIG" && \
64065    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
64066  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
64067  ac_status=$?
64068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64069  test $ac_status = 0; }; then
64070  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
64071else
64072  pkg_failed=yes
64073fi
64074    fi
64075else
64076	pkg_failed=untried
64077fi
64078if test -n "$PKG_CONFIG"; then
64079    if test -n "$CUDA_LIBS"; then
64080        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64081    else
64082        if test -n "$PKG_CONFIG" && \
64083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
64084  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
64085  ac_status=$?
64086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64087  test $ac_status = 0; }; then
64088  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
64089else
64090  pkg_failed=yes
64091fi
64092    fi
64093else
64094	pkg_failed=untried
64095fi
64096
64097
64098
64099if test $pkg_failed = yes; then
64100
64101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64102        _pkg_short_errors_supported=yes
64103else
64104        _pkg_short_errors_supported=no
64105fi
64106        if test $_pkg_short_errors_supported = yes; then
64107	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
64108        else
64109	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
64110        fi
64111	# Put the nasty error message in config.log where it belongs
64112	echo "$CUDA_PKG_ERRORS" >&5
64113
64114	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64115$as_echo "no" >&6; }
64116
64117
64118pkg_failed=no
64119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64120$as_echo_n "checking for CUDA... " >&6; }
64121
64122if test -n "$PKG_CONFIG"; then
64123    if test -n "$CUDA_CFLAGS"; then
64124        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64125    else
64126        if test -n "$PKG_CONFIG" && \
64127    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64128  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64129  ac_status=$?
64130  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64131  test $ac_status = 0; }; then
64132  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
64133else
64134  pkg_failed=yes
64135fi
64136    fi
64137else
64138	pkg_failed=untried
64139fi
64140if test -n "$PKG_CONFIG"; then
64141    if test -n "$CUDA_LIBS"; then
64142        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64143    else
64144        if test -n "$PKG_CONFIG" && \
64145    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64146  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64147  ac_status=$?
64148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64149  test $ac_status = 0; }; then
64150  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
64151else
64152  pkg_failed=yes
64153fi
64154    fi
64155else
64156	pkg_failed=untried
64157fi
64158
64159
64160
64161if test $pkg_failed = yes; then
64162
64163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64164        _pkg_short_errors_supported=yes
64165else
64166        _pkg_short_errors_supported=no
64167fi
64168        if test $_pkg_short_errors_supported = yes; then
64169	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64170        else
64171	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64172        fi
64173	# Put the nasty error message in config.log where it belongs
64174	echo "$CUDA_PKG_ERRORS" >&5
64175
64176	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64177$as_echo "no" >&6; }
64178
64179
64180pkg_failed=no
64181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64182$as_echo_n "checking for CUDA... " >&6; }
64183
64184if test -n "$PKG_CONFIG"; then
64185    if test -n "$CUDA_CFLAGS"; then
64186        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64187    else
64188        if test -n "$PKG_CONFIG" && \
64189    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64190  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64191  ac_status=$?
64192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64193  test $ac_status = 0; }; then
64194  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64195else
64196  pkg_failed=yes
64197fi
64198    fi
64199else
64200	pkg_failed=untried
64201fi
64202if test -n "$PKG_CONFIG"; then
64203    if test -n "$CUDA_LIBS"; then
64204        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64205    else
64206        if test -n "$PKG_CONFIG" && \
64207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64208  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64209  ac_status=$?
64210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64211  test $ac_status = 0; }; then
64212  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64213else
64214  pkg_failed=yes
64215fi
64216    fi
64217else
64218	pkg_failed=untried
64219fi
64220
64221
64222
64223if test $pkg_failed = yes; then
64224
64225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64226        _pkg_short_errors_supported=yes
64227else
64228        _pkg_short_errors_supported=no
64229fi
64230        if test $_pkg_short_errors_supported = yes; then
64231	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64232        else
64233	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64234        fi
64235	# Put the nasty error message in config.log where it belongs
64236	echo "$CUDA_PKG_ERRORS" >&5
64237
64238	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64239$as_echo "no" >&6; }
64240
64241                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64242$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64243elif test $pkg_failed = untried; then
64244
64245                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64246$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64247else
64248	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64249	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64251$as_echo "yes" >&6; }
64252	:
64253fi
64254elif test $pkg_failed = untried; then
64255
64256
64257pkg_failed=no
64258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64259$as_echo_n "checking for CUDA... " >&6; }
64260
64261if test -n "$PKG_CONFIG"; then
64262    if test -n "$CUDA_CFLAGS"; then
64263        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64264    else
64265        if test -n "$PKG_CONFIG" && \
64266    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64267  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64268  ac_status=$?
64269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64270  test $ac_status = 0; }; then
64271  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64272else
64273  pkg_failed=yes
64274fi
64275    fi
64276else
64277	pkg_failed=untried
64278fi
64279if test -n "$PKG_CONFIG"; then
64280    if test -n "$CUDA_LIBS"; then
64281        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64282    else
64283        if test -n "$PKG_CONFIG" && \
64284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64285  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64286  ac_status=$?
64287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64288  test $ac_status = 0; }; then
64289  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64290else
64291  pkg_failed=yes
64292fi
64293    fi
64294else
64295	pkg_failed=untried
64296fi
64297
64298
64299
64300if test $pkg_failed = yes; then
64301
64302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64303        _pkg_short_errors_supported=yes
64304else
64305        _pkg_short_errors_supported=no
64306fi
64307        if test $_pkg_short_errors_supported = yes; then
64308	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64309        else
64310	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64311        fi
64312	# Put the nasty error message in config.log where it belongs
64313	echo "$CUDA_PKG_ERRORS" >&5
64314
64315	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64316$as_echo "no" >&6; }
64317
64318                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64319$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64320elif test $pkg_failed = untried; then
64321
64322                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64323$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64324else
64325	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64326	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64327        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64328$as_echo "yes" >&6; }
64329	:
64330fi
64331else
64332	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64333	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64334        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64335$as_echo "yes" >&6; }
64336	:
64337fi
64338elif test $pkg_failed = untried; then
64339
64340
64341pkg_failed=no
64342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64343$as_echo_n "checking for CUDA... " >&6; }
64344
64345if test -n "$PKG_CONFIG"; then
64346    if test -n "$CUDA_CFLAGS"; then
64347        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64348    else
64349        if test -n "$PKG_CONFIG" && \
64350    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64351  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64352  ac_status=$?
64353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64354  test $ac_status = 0; }; then
64355  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
64356else
64357  pkg_failed=yes
64358fi
64359    fi
64360else
64361	pkg_failed=untried
64362fi
64363if test -n "$PKG_CONFIG"; then
64364    if test -n "$CUDA_LIBS"; then
64365        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64366    else
64367        if test -n "$PKG_CONFIG" && \
64368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64369  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64370  ac_status=$?
64371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64372  test $ac_status = 0; }; then
64373  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
64374else
64375  pkg_failed=yes
64376fi
64377    fi
64378else
64379	pkg_failed=untried
64380fi
64381
64382
64383
64384if test $pkg_failed = yes; then
64385
64386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64387        _pkg_short_errors_supported=yes
64388else
64389        _pkg_short_errors_supported=no
64390fi
64391        if test $_pkg_short_errors_supported = yes; then
64392	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64393        else
64394	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64395        fi
64396	# Put the nasty error message in config.log where it belongs
64397	echo "$CUDA_PKG_ERRORS" >&5
64398
64399	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64400$as_echo "no" >&6; }
64401
64402
64403pkg_failed=no
64404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64405$as_echo_n "checking for CUDA... " >&6; }
64406
64407if test -n "$PKG_CONFIG"; then
64408    if test -n "$CUDA_CFLAGS"; then
64409        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64410    else
64411        if test -n "$PKG_CONFIG" && \
64412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64413  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64414  ac_status=$?
64415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64416  test $ac_status = 0; }; then
64417  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64418else
64419  pkg_failed=yes
64420fi
64421    fi
64422else
64423	pkg_failed=untried
64424fi
64425if test -n "$PKG_CONFIG"; then
64426    if test -n "$CUDA_LIBS"; then
64427        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64428    else
64429        if test -n "$PKG_CONFIG" && \
64430    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64431  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64432  ac_status=$?
64433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64434  test $ac_status = 0; }; then
64435  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64436else
64437  pkg_failed=yes
64438fi
64439    fi
64440else
64441	pkg_failed=untried
64442fi
64443
64444
64445
64446if test $pkg_failed = yes; then
64447
64448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64449        _pkg_short_errors_supported=yes
64450else
64451        _pkg_short_errors_supported=no
64452fi
64453        if test $_pkg_short_errors_supported = yes; then
64454	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64455        else
64456	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64457        fi
64458	# Put the nasty error message in config.log where it belongs
64459	echo "$CUDA_PKG_ERRORS" >&5
64460
64461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64462$as_echo "no" >&6; }
64463
64464                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64465$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64466elif test $pkg_failed = untried; then
64467
64468                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64469$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64470else
64471	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64472	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64474$as_echo "yes" >&6; }
64475	:
64476fi
64477elif test $pkg_failed = untried; then
64478
64479
64480pkg_failed=no
64481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64482$as_echo_n "checking for CUDA... " >&6; }
64483
64484if test -n "$PKG_CONFIG"; then
64485    if test -n "$CUDA_CFLAGS"; then
64486        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64487    else
64488        if test -n "$PKG_CONFIG" && \
64489    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64490  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64491  ac_status=$?
64492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64493  test $ac_status = 0; }; then
64494  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64495else
64496  pkg_failed=yes
64497fi
64498    fi
64499else
64500	pkg_failed=untried
64501fi
64502if test -n "$PKG_CONFIG"; then
64503    if test -n "$CUDA_LIBS"; then
64504        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64505    else
64506        if test -n "$PKG_CONFIG" && \
64507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64508  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64509  ac_status=$?
64510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64511  test $ac_status = 0; }; then
64512  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64513else
64514  pkg_failed=yes
64515fi
64516    fi
64517else
64518	pkg_failed=untried
64519fi
64520
64521
64522
64523if test $pkg_failed = yes; then
64524
64525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64526        _pkg_short_errors_supported=yes
64527else
64528        _pkg_short_errors_supported=no
64529fi
64530        if test $_pkg_short_errors_supported = yes; then
64531	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64532        else
64533	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64534        fi
64535	# Put the nasty error message in config.log where it belongs
64536	echo "$CUDA_PKG_ERRORS" >&5
64537
64538	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64539$as_echo "no" >&6; }
64540
64541                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64542$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64543elif test $pkg_failed = untried; then
64544
64545                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64546$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64547else
64548	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64549	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64550        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64551$as_echo "yes" >&6; }
64552	:
64553fi
64554else
64555	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64556	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64558$as_echo "yes" >&6; }
64559	:
64560fi
64561else
64562	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64563	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64565$as_echo "yes" >&6; }
64566	:
64567fi
64568else
64569	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64570	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64571        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64572$as_echo "yes" >&6; }
64573	:
64574fi
64575elif test $pkg_failed = untried; then
64576
64577
64578pkg_failed=no
64579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64580$as_echo_n "checking for CUDA... " >&6; }
64581
64582if test -n "$PKG_CONFIG"; then
64583    if test -n "$CUDA_CFLAGS"; then
64584        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64585    else
64586        if test -n "$PKG_CONFIG" && \
64587    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
64588  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
64589  ac_status=$?
64590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64591  test $ac_status = 0; }; then
64592  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
64593else
64594  pkg_failed=yes
64595fi
64596    fi
64597else
64598	pkg_failed=untried
64599fi
64600if test -n "$PKG_CONFIG"; then
64601    if test -n "$CUDA_LIBS"; then
64602        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64603    else
64604        if test -n "$PKG_CONFIG" && \
64605    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
64606  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
64607  ac_status=$?
64608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64609  test $ac_status = 0; }; then
64610  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
64611else
64612  pkg_failed=yes
64613fi
64614    fi
64615else
64616	pkg_failed=untried
64617fi
64618
64619
64620
64621if test $pkg_failed = yes; then
64622
64623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64624        _pkg_short_errors_supported=yes
64625else
64626        _pkg_short_errors_supported=no
64627fi
64628        if test $_pkg_short_errors_supported = yes; then
64629	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
64630        else
64631	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
64632        fi
64633	# Put the nasty error message in config.log where it belongs
64634	echo "$CUDA_PKG_ERRORS" >&5
64635
64636	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64637$as_echo "no" >&6; }
64638
64639
64640pkg_failed=no
64641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64642$as_echo_n "checking for CUDA... " >&6; }
64643
64644if test -n "$PKG_CONFIG"; then
64645    if test -n "$CUDA_CFLAGS"; then
64646        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64647    else
64648        if test -n "$PKG_CONFIG" && \
64649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
64650  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
64651  ac_status=$?
64652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64653  test $ac_status = 0; }; then
64654  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
64655else
64656  pkg_failed=yes
64657fi
64658    fi
64659else
64660	pkg_failed=untried
64661fi
64662if test -n "$PKG_CONFIG"; then
64663    if test -n "$CUDA_LIBS"; then
64664        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64665    else
64666        if test -n "$PKG_CONFIG" && \
64667    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
64668  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
64669  ac_status=$?
64670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64671  test $ac_status = 0; }; then
64672  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
64673else
64674  pkg_failed=yes
64675fi
64676    fi
64677else
64678	pkg_failed=untried
64679fi
64680
64681
64682
64683if test $pkg_failed = yes; then
64684
64685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64686        _pkg_short_errors_supported=yes
64687else
64688        _pkg_short_errors_supported=no
64689fi
64690        if test $_pkg_short_errors_supported = yes; then
64691	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
64692        else
64693	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
64694        fi
64695	# Put the nasty error message in config.log where it belongs
64696	echo "$CUDA_PKG_ERRORS" >&5
64697
64698	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64699$as_echo "no" >&6; }
64700
64701
64702pkg_failed=no
64703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64704$as_echo_n "checking for CUDA... " >&6; }
64705
64706if test -n "$PKG_CONFIG"; then
64707    if test -n "$CUDA_CFLAGS"; then
64708        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64709    else
64710        if test -n "$PKG_CONFIG" && \
64711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64712  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64713  ac_status=$?
64714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64715  test $ac_status = 0; }; then
64716  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
64717else
64718  pkg_failed=yes
64719fi
64720    fi
64721else
64722	pkg_failed=untried
64723fi
64724if test -n "$PKG_CONFIG"; then
64725    if test -n "$CUDA_LIBS"; then
64726        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64727    else
64728        if test -n "$PKG_CONFIG" && \
64729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64730  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64731  ac_status=$?
64732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64733  test $ac_status = 0; }; then
64734  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
64735else
64736  pkg_failed=yes
64737fi
64738    fi
64739else
64740	pkg_failed=untried
64741fi
64742
64743
64744
64745if test $pkg_failed = yes; then
64746
64747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64748        _pkg_short_errors_supported=yes
64749else
64750        _pkg_short_errors_supported=no
64751fi
64752        if test $_pkg_short_errors_supported = yes; then
64753	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64754        else
64755	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64756        fi
64757	# Put the nasty error message in config.log where it belongs
64758	echo "$CUDA_PKG_ERRORS" >&5
64759
64760	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64761$as_echo "no" >&6; }
64762
64763
64764pkg_failed=no
64765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64766$as_echo_n "checking for CUDA... " >&6; }
64767
64768if test -n "$PKG_CONFIG"; then
64769    if test -n "$CUDA_CFLAGS"; then
64770        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64771    else
64772        if test -n "$PKG_CONFIG" && \
64773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64774  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64775  ac_status=$?
64776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64777  test $ac_status = 0; }; then
64778  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64779else
64780  pkg_failed=yes
64781fi
64782    fi
64783else
64784	pkg_failed=untried
64785fi
64786if test -n "$PKG_CONFIG"; then
64787    if test -n "$CUDA_LIBS"; then
64788        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64789    else
64790        if test -n "$PKG_CONFIG" && \
64791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64792  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64793  ac_status=$?
64794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64795  test $ac_status = 0; }; then
64796  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64797else
64798  pkg_failed=yes
64799fi
64800    fi
64801else
64802	pkg_failed=untried
64803fi
64804
64805
64806
64807if test $pkg_failed = yes; then
64808
64809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64810        _pkg_short_errors_supported=yes
64811else
64812        _pkg_short_errors_supported=no
64813fi
64814        if test $_pkg_short_errors_supported = yes; then
64815	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64816        else
64817	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64818        fi
64819	# Put the nasty error message in config.log where it belongs
64820	echo "$CUDA_PKG_ERRORS" >&5
64821
64822	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64823$as_echo "no" >&6; }
64824
64825                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64826$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64827elif test $pkg_failed = untried; then
64828
64829                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64830$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64831else
64832	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64833	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64835$as_echo "yes" >&6; }
64836	:
64837fi
64838elif test $pkg_failed = untried; then
64839
64840
64841pkg_failed=no
64842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64843$as_echo_n "checking for CUDA... " >&6; }
64844
64845if test -n "$PKG_CONFIG"; then
64846    if test -n "$CUDA_CFLAGS"; then
64847        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64848    else
64849        if test -n "$PKG_CONFIG" && \
64850    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64851  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64852  ac_status=$?
64853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64854  test $ac_status = 0; }; then
64855  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
64856else
64857  pkg_failed=yes
64858fi
64859    fi
64860else
64861	pkg_failed=untried
64862fi
64863if test -n "$PKG_CONFIG"; then
64864    if test -n "$CUDA_LIBS"; then
64865        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64866    else
64867        if test -n "$PKG_CONFIG" && \
64868    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64869  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64870  ac_status=$?
64871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64872  test $ac_status = 0; }; then
64873  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
64874else
64875  pkg_failed=yes
64876fi
64877    fi
64878else
64879	pkg_failed=untried
64880fi
64881
64882
64883
64884if test $pkg_failed = yes; then
64885
64886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64887        _pkg_short_errors_supported=yes
64888else
64889        _pkg_short_errors_supported=no
64890fi
64891        if test $_pkg_short_errors_supported = yes; then
64892	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64893        else
64894	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
64895        fi
64896	# Put the nasty error message in config.log where it belongs
64897	echo "$CUDA_PKG_ERRORS" >&5
64898
64899	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64900$as_echo "no" >&6; }
64901
64902                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64903$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64904elif test $pkg_failed = untried; then
64905
64906                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
64907$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
64908else
64909	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64910	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64911        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64912$as_echo "yes" >&6; }
64913	:
64914fi
64915else
64916	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
64917	CUDA_LIBS=$pkg_cv_CUDA_LIBS
64918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64919$as_echo "yes" >&6; }
64920	:
64921fi
64922elif test $pkg_failed = untried; then
64923
64924
64925pkg_failed=no
64926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64927$as_echo_n "checking for CUDA... " >&6; }
64928
64929if test -n "$PKG_CONFIG"; then
64930    if test -n "$CUDA_CFLAGS"; then
64931        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64932    else
64933        if test -n "$PKG_CONFIG" && \
64934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64935  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64936  ac_status=$?
64937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64938  test $ac_status = 0; }; then
64939  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
64940else
64941  pkg_failed=yes
64942fi
64943    fi
64944else
64945	pkg_failed=untried
64946fi
64947if test -n "$PKG_CONFIG"; then
64948    if test -n "$CUDA_LIBS"; then
64949        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
64950    else
64951        if test -n "$PKG_CONFIG" && \
64952    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
64953  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
64954  ac_status=$?
64955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
64956  test $ac_status = 0; }; then
64957  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
64958else
64959  pkg_failed=yes
64960fi
64961    fi
64962else
64963	pkg_failed=untried
64964fi
64965
64966
64967
64968if test $pkg_failed = yes; then
64969
64970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
64971        _pkg_short_errors_supported=yes
64972else
64973        _pkg_short_errors_supported=no
64974fi
64975        if test $_pkg_short_errors_supported = yes; then
64976	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64977        else
64978	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
64979        fi
64980	# Put the nasty error message in config.log where it belongs
64981	echo "$CUDA_PKG_ERRORS" >&5
64982
64983	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64984$as_echo "no" >&6; }
64985
64986
64987pkg_failed=no
64988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
64989$as_echo_n "checking for CUDA... " >&6; }
64990
64991if test -n "$PKG_CONFIG"; then
64992    if test -n "$CUDA_CFLAGS"; then
64993        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
64994    else
64995        if test -n "$PKG_CONFIG" && \
64996    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
64997  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
64998  ac_status=$?
64999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65000  test $ac_status = 0; }; then
65001  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65002else
65003  pkg_failed=yes
65004fi
65005    fi
65006else
65007	pkg_failed=untried
65008fi
65009if test -n "$PKG_CONFIG"; then
65010    if test -n "$CUDA_LIBS"; then
65011        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65012    else
65013        if test -n "$PKG_CONFIG" && \
65014    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65015  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65016  ac_status=$?
65017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65018  test $ac_status = 0; }; then
65019  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65020else
65021  pkg_failed=yes
65022fi
65023    fi
65024else
65025	pkg_failed=untried
65026fi
65027
65028
65029
65030if test $pkg_failed = yes; then
65031
65032if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65033        _pkg_short_errors_supported=yes
65034else
65035        _pkg_short_errors_supported=no
65036fi
65037        if test $_pkg_short_errors_supported = yes; then
65038	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65039        else
65040	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65041        fi
65042	# Put the nasty error message in config.log where it belongs
65043	echo "$CUDA_PKG_ERRORS" >&5
65044
65045	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65046$as_echo "no" >&6; }
65047
65048                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65049$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65050elif test $pkg_failed = untried; then
65051
65052                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65053$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65054else
65055	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65056	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65057        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65058$as_echo "yes" >&6; }
65059	:
65060fi
65061elif test $pkg_failed = untried; then
65062
65063
65064pkg_failed=no
65065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65066$as_echo_n "checking for CUDA... " >&6; }
65067
65068if test -n "$PKG_CONFIG"; then
65069    if test -n "$CUDA_CFLAGS"; then
65070        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65071    else
65072        if test -n "$PKG_CONFIG" && \
65073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65074  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65075  ac_status=$?
65076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65077  test $ac_status = 0; }; then
65078  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65079else
65080  pkg_failed=yes
65081fi
65082    fi
65083else
65084	pkg_failed=untried
65085fi
65086if test -n "$PKG_CONFIG"; then
65087    if test -n "$CUDA_LIBS"; then
65088        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65089    else
65090        if test -n "$PKG_CONFIG" && \
65091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65092  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65093  ac_status=$?
65094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65095  test $ac_status = 0; }; then
65096  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65097else
65098  pkg_failed=yes
65099fi
65100    fi
65101else
65102	pkg_failed=untried
65103fi
65104
65105
65106
65107if test $pkg_failed = yes; then
65108
65109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65110        _pkg_short_errors_supported=yes
65111else
65112        _pkg_short_errors_supported=no
65113fi
65114        if test $_pkg_short_errors_supported = yes; then
65115	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65116        else
65117	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65118        fi
65119	# Put the nasty error message in config.log where it belongs
65120	echo "$CUDA_PKG_ERRORS" >&5
65121
65122	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65123$as_echo "no" >&6; }
65124
65125                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65126$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65127elif test $pkg_failed = untried; then
65128
65129                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65130$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65131else
65132	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65133	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65134        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65135$as_echo "yes" >&6; }
65136	:
65137fi
65138else
65139	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65140	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65142$as_echo "yes" >&6; }
65143	:
65144fi
65145else
65146	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65147	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65148        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65149$as_echo "yes" >&6; }
65150	:
65151fi
65152elif test $pkg_failed = untried; then
65153
65154
65155pkg_failed=no
65156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65157$as_echo_n "checking for CUDA... " >&6; }
65158
65159if test -n "$PKG_CONFIG"; then
65160    if test -n "$CUDA_CFLAGS"; then
65161        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65162    else
65163        if test -n "$PKG_CONFIG" && \
65164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
65165  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
65166  ac_status=$?
65167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65168  test $ac_status = 0; }; then
65169  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
65170else
65171  pkg_failed=yes
65172fi
65173    fi
65174else
65175	pkg_failed=untried
65176fi
65177if test -n "$PKG_CONFIG"; then
65178    if test -n "$CUDA_LIBS"; then
65179        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65180    else
65181        if test -n "$PKG_CONFIG" && \
65182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
65183  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
65184  ac_status=$?
65185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65186  test $ac_status = 0; }; then
65187  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
65188else
65189  pkg_failed=yes
65190fi
65191    fi
65192else
65193	pkg_failed=untried
65194fi
65195
65196
65197
65198if test $pkg_failed = yes; then
65199
65200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65201        _pkg_short_errors_supported=yes
65202else
65203        _pkg_short_errors_supported=no
65204fi
65205        if test $_pkg_short_errors_supported = yes; then
65206	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
65207        else
65208	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
65209        fi
65210	# Put the nasty error message in config.log where it belongs
65211	echo "$CUDA_PKG_ERRORS" >&5
65212
65213	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65214$as_echo "no" >&6; }
65215
65216
65217pkg_failed=no
65218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65219$as_echo_n "checking for CUDA... " >&6; }
65220
65221if test -n "$PKG_CONFIG"; then
65222    if test -n "$CUDA_CFLAGS"; then
65223        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65224    else
65225        if test -n "$PKG_CONFIG" && \
65226    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65227  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65228  ac_status=$?
65229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65230  test $ac_status = 0; }; then
65231  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
65232else
65233  pkg_failed=yes
65234fi
65235    fi
65236else
65237	pkg_failed=untried
65238fi
65239if test -n "$PKG_CONFIG"; then
65240    if test -n "$CUDA_LIBS"; then
65241        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65242    else
65243        if test -n "$PKG_CONFIG" && \
65244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65245  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65246  ac_status=$?
65247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65248  test $ac_status = 0; }; then
65249  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
65250else
65251  pkg_failed=yes
65252fi
65253    fi
65254else
65255	pkg_failed=untried
65256fi
65257
65258
65259
65260if test $pkg_failed = yes; then
65261
65262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65263        _pkg_short_errors_supported=yes
65264else
65265        _pkg_short_errors_supported=no
65266fi
65267        if test $_pkg_short_errors_supported = yes; then
65268	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65269        else
65270	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65271        fi
65272	# Put the nasty error message in config.log where it belongs
65273	echo "$CUDA_PKG_ERRORS" >&5
65274
65275	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65276$as_echo "no" >&6; }
65277
65278
65279pkg_failed=no
65280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65281$as_echo_n "checking for CUDA... " >&6; }
65282
65283if test -n "$PKG_CONFIG"; then
65284    if test -n "$CUDA_CFLAGS"; then
65285        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65286    else
65287        if test -n "$PKG_CONFIG" && \
65288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65289  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65290  ac_status=$?
65291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65292  test $ac_status = 0; }; then
65293  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65294else
65295  pkg_failed=yes
65296fi
65297    fi
65298else
65299	pkg_failed=untried
65300fi
65301if test -n "$PKG_CONFIG"; then
65302    if test -n "$CUDA_LIBS"; then
65303        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65304    else
65305        if test -n "$PKG_CONFIG" && \
65306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65307  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65308  ac_status=$?
65309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65310  test $ac_status = 0; }; then
65311  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65312else
65313  pkg_failed=yes
65314fi
65315    fi
65316else
65317	pkg_failed=untried
65318fi
65319
65320
65321
65322if test $pkg_failed = yes; then
65323
65324if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65325        _pkg_short_errors_supported=yes
65326else
65327        _pkg_short_errors_supported=no
65328fi
65329        if test $_pkg_short_errors_supported = yes; then
65330	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65331        else
65332	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65333        fi
65334	# Put the nasty error message in config.log where it belongs
65335	echo "$CUDA_PKG_ERRORS" >&5
65336
65337	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65338$as_echo "no" >&6; }
65339
65340                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65341$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65342elif test $pkg_failed = untried; then
65343
65344                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65345$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65346else
65347	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65348	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65350$as_echo "yes" >&6; }
65351	:
65352fi
65353elif test $pkg_failed = untried; then
65354
65355
65356pkg_failed=no
65357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65358$as_echo_n "checking for CUDA... " >&6; }
65359
65360if test -n "$PKG_CONFIG"; then
65361    if test -n "$CUDA_CFLAGS"; then
65362        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65363    else
65364        if test -n "$PKG_CONFIG" && \
65365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65366  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65367  ac_status=$?
65368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65369  test $ac_status = 0; }; then
65370  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65371else
65372  pkg_failed=yes
65373fi
65374    fi
65375else
65376	pkg_failed=untried
65377fi
65378if test -n "$PKG_CONFIG"; then
65379    if test -n "$CUDA_LIBS"; then
65380        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65381    else
65382        if test -n "$PKG_CONFIG" && \
65383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65384  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65385  ac_status=$?
65386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65387  test $ac_status = 0; }; then
65388  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65389else
65390  pkg_failed=yes
65391fi
65392    fi
65393else
65394	pkg_failed=untried
65395fi
65396
65397
65398
65399if test $pkg_failed = yes; then
65400
65401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65402        _pkg_short_errors_supported=yes
65403else
65404        _pkg_short_errors_supported=no
65405fi
65406        if test $_pkg_short_errors_supported = yes; then
65407	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65408        else
65409	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65410        fi
65411	# Put the nasty error message in config.log where it belongs
65412	echo "$CUDA_PKG_ERRORS" >&5
65413
65414	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65415$as_echo "no" >&6; }
65416
65417                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65418$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65419elif test $pkg_failed = untried; then
65420
65421                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65422$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65423else
65424	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65425	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65426        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65427$as_echo "yes" >&6; }
65428	:
65429fi
65430else
65431	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65432	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65433        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65434$as_echo "yes" >&6; }
65435	:
65436fi
65437elif test $pkg_failed = untried; then
65438
65439
65440pkg_failed=no
65441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65442$as_echo_n "checking for CUDA... " >&6; }
65443
65444if test -n "$PKG_CONFIG"; then
65445    if test -n "$CUDA_CFLAGS"; then
65446        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65447    else
65448        if test -n "$PKG_CONFIG" && \
65449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65450  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65451  ac_status=$?
65452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65453  test $ac_status = 0; }; then
65454  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
65455else
65456  pkg_failed=yes
65457fi
65458    fi
65459else
65460	pkg_failed=untried
65461fi
65462if test -n "$PKG_CONFIG"; then
65463    if test -n "$CUDA_LIBS"; then
65464        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65465    else
65466        if test -n "$PKG_CONFIG" && \
65467    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65468  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65469  ac_status=$?
65470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65471  test $ac_status = 0; }; then
65472  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
65473else
65474  pkg_failed=yes
65475fi
65476    fi
65477else
65478	pkg_failed=untried
65479fi
65480
65481
65482
65483if test $pkg_failed = yes; then
65484
65485if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65486        _pkg_short_errors_supported=yes
65487else
65488        _pkg_short_errors_supported=no
65489fi
65490        if test $_pkg_short_errors_supported = yes; then
65491	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65492        else
65493	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65494        fi
65495	# Put the nasty error message in config.log where it belongs
65496	echo "$CUDA_PKG_ERRORS" >&5
65497
65498	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65499$as_echo "no" >&6; }
65500
65501
65502pkg_failed=no
65503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65504$as_echo_n "checking for CUDA... " >&6; }
65505
65506if test -n "$PKG_CONFIG"; then
65507    if test -n "$CUDA_CFLAGS"; then
65508        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65509    else
65510        if test -n "$PKG_CONFIG" && \
65511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65512  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65513  ac_status=$?
65514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65515  test $ac_status = 0; }; then
65516  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65517else
65518  pkg_failed=yes
65519fi
65520    fi
65521else
65522	pkg_failed=untried
65523fi
65524if test -n "$PKG_CONFIG"; then
65525    if test -n "$CUDA_LIBS"; then
65526        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65527    else
65528        if test -n "$PKG_CONFIG" && \
65529    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65530  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65531  ac_status=$?
65532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65533  test $ac_status = 0; }; then
65534  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65535else
65536  pkg_failed=yes
65537fi
65538    fi
65539else
65540	pkg_failed=untried
65541fi
65542
65543
65544
65545if test $pkg_failed = yes; then
65546
65547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65548        _pkg_short_errors_supported=yes
65549else
65550        _pkg_short_errors_supported=no
65551fi
65552        if test $_pkg_short_errors_supported = yes; then
65553	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65554        else
65555	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65556        fi
65557	# Put the nasty error message in config.log where it belongs
65558	echo "$CUDA_PKG_ERRORS" >&5
65559
65560	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65561$as_echo "no" >&6; }
65562
65563                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65564$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65565elif test $pkg_failed = untried; then
65566
65567                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65568$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65569else
65570	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65571	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65572        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65573$as_echo "yes" >&6; }
65574	:
65575fi
65576elif test $pkg_failed = untried; then
65577
65578
65579pkg_failed=no
65580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65581$as_echo_n "checking for CUDA... " >&6; }
65582
65583if test -n "$PKG_CONFIG"; then
65584    if test -n "$CUDA_CFLAGS"; then
65585        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65586    else
65587        if test -n "$PKG_CONFIG" && \
65588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65589  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65590  ac_status=$?
65591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65592  test $ac_status = 0; }; then
65593  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65594else
65595  pkg_failed=yes
65596fi
65597    fi
65598else
65599	pkg_failed=untried
65600fi
65601if test -n "$PKG_CONFIG"; then
65602    if test -n "$CUDA_LIBS"; then
65603        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65604    else
65605        if test -n "$PKG_CONFIG" && \
65606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65607  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65608  ac_status=$?
65609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65610  test $ac_status = 0; }; then
65611  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65612else
65613  pkg_failed=yes
65614fi
65615    fi
65616else
65617	pkg_failed=untried
65618fi
65619
65620
65621
65622if test $pkg_failed = yes; then
65623
65624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65625        _pkg_short_errors_supported=yes
65626else
65627        _pkg_short_errors_supported=no
65628fi
65629        if test $_pkg_short_errors_supported = yes; then
65630	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65631        else
65632	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65633        fi
65634	# Put the nasty error message in config.log where it belongs
65635	echo "$CUDA_PKG_ERRORS" >&5
65636
65637	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65638$as_echo "no" >&6; }
65639
65640                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65641$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65642elif test $pkg_failed = untried; then
65643
65644                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65645$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65646else
65647	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65648	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65650$as_echo "yes" >&6; }
65651	:
65652fi
65653else
65654	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65655	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65656        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65657$as_echo "yes" >&6; }
65658	:
65659fi
65660else
65661	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65662	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65664$as_echo "yes" >&6; }
65665	:
65666fi
65667else
65668	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65669	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65671$as_echo "yes" >&6; }
65672	:
65673fi
65674else
65675	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
65676	CUDA_LIBS=$pkg_cv_CUDA_LIBS
65677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65678$as_echo "yes" >&6; }
65679	:
65680fi
65681elif test $pkg_failed = untried; then
65682
65683
65684pkg_failed=no
65685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65686$as_echo_n "checking for CUDA... " >&6; }
65687
65688if test -n "$PKG_CONFIG"; then
65689    if test -n "$CUDA_CFLAGS"; then
65690        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65691    else
65692        if test -n "$PKG_CONFIG" && \
65693    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
65694  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
65695  ac_status=$?
65696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65697  test $ac_status = 0; }; then
65698  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
65699else
65700  pkg_failed=yes
65701fi
65702    fi
65703else
65704	pkg_failed=untried
65705fi
65706if test -n "$PKG_CONFIG"; then
65707    if test -n "$CUDA_LIBS"; then
65708        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65709    else
65710        if test -n "$PKG_CONFIG" && \
65711    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
65712  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
65713  ac_status=$?
65714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65715  test $ac_status = 0; }; then
65716  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
65717else
65718  pkg_failed=yes
65719fi
65720    fi
65721else
65722	pkg_failed=untried
65723fi
65724
65725
65726
65727if test $pkg_failed = yes; then
65728
65729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65730        _pkg_short_errors_supported=yes
65731else
65732        _pkg_short_errors_supported=no
65733fi
65734        if test $_pkg_short_errors_supported = yes; then
65735	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
65736        else
65737	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
65738        fi
65739	# Put the nasty error message in config.log where it belongs
65740	echo "$CUDA_PKG_ERRORS" >&5
65741
65742	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65743$as_echo "no" >&6; }
65744
65745
65746pkg_failed=no
65747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65748$as_echo_n "checking for CUDA... " >&6; }
65749
65750if test -n "$PKG_CONFIG"; then
65751    if test -n "$CUDA_CFLAGS"; then
65752        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65753    else
65754        if test -n "$PKG_CONFIG" && \
65755    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
65756  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
65757  ac_status=$?
65758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65759  test $ac_status = 0; }; then
65760  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
65761else
65762  pkg_failed=yes
65763fi
65764    fi
65765else
65766	pkg_failed=untried
65767fi
65768if test -n "$PKG_CONFIG"; then
65769    if test -n "$CUDA_LIBS"; then
65770        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65771    else
65772        if test -n "$PKG_CONFIG" && \
65773    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
65774  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
65775  ac_status=$?
65776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65777  test $ac_status = 0; }; then
65778  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
65779else
65780  pkg_failed=yes
65781fi
65782    fi
65783else
65784	pkg_failed=untried
65785fi
65786
65787
65788
65789if test $pkg_failed = yes; then
65790
65791if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65792        _pkg_short_errors_supported=yes
65793else
65794        _pkg_short_errors_supported=no
65795fi
65796        if test $_pkg_short_errors_supported = yes; then
65797	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
65798        else
65799	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
65800        fi
65801	# Put the nasty error message in config.log where it belongs
65802	echo "$CUDA_PKG_ERRORS" >&5
65803
65804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65805$as_echo "no" >&6; }
65806
65807
65808pkg_failed=no
65809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65810$as_echo_n "checking for CUDA... " >&6; }
65811
65812if test -n "$PKG_CONFIG"; then
65813    if test -n "$CUDA_CFLAGS"; then
65814        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65815    else
65816        if test -n "$PKG_CONFIG" && \
65817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
65818  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
65819  ac_status=$?
65820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65821  test $ac_status = 0; }; then
65822  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
65823else
65824  pkg_failed=yes
65825fi
65826    fi
65827else
65828	pkg_failed=untried
65829fi
65830if test -n "$PKG_CONFIG"; then
65831    if test -n "$CUDA_LIBS"; then
65832        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65833    else
65834        if test -n "$PKG_CONFIG" && \
65835    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
65836  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
65837  ac_status=$?
65838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65839  test $ac_status = 0; }; then
65840  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
65841else
65842  pkg_failed=yes
65843fi
65844    fi
65845else
65846	pkg_failed=untried
65847fi
65848
65849
65850
65851if test $pkg_failed = yes; then
65852
65853if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65854        _pkg_short_errors_supported=yes
65855else
65856        _pkg_short_errors_supported=no
65857fi
65858        if test $_pkg_short_errors_supported = yes; then
65859	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
65860        else
65861	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
65862        fi
65863	# Put the nasty error message in config.log where it belongs
65864	echo "$CUDA_PKG_ERRORS" >&5
65865
65866	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65867$as_echo "no" >&6; }
65868
65869
65870pkg_failed=no
65871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65872$as_echo_n "checking for CUDA... " >&6; }
65873
65874if test -n "$PKG_CONFIG"; then
65875    if test -n "$CUDA_CFLAGS"; then
65876        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65877    else
65878        if test -n "$PKG_CONFIG" && \
65879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65880  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65881  ac_status=$?
65882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65883  test $ac_status = 0; }; then
65884  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
65885else
65886  pkg_failed=yes
65887fi
65888    fi
65889else
65890	pkg_failed=untried
65891fi
65892if test -n "$PKG_CONFIG"; then
65893    if test -n "$CUDA_LIBS"; then
65894        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65895    else
65896        if test -n "$PKG_CONFIG" && \
65897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
65898  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
65899  ac_status=$?
65900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65901  test $ac_status = 0; }; then
65902  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
65903else
65904  pkg_failed=yes
65905fi
65906    fi
65907else
65908	pkg_failed=untried
65909fi
65910
65911
65912
65913if test $pkg_failed = yes; then
65914
65915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65916        _pkg_short_errors_supported=yes
65917else
65918        _pkg_short_errors_supported=no
65919fi
65920        if test $_pkg_short_errors_supported = yes; then
65921	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65922        else
65923	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
65924        fi
65925	# Put the nasty error message in config.log where it belongs
65926	echo "$CUDA_PKG_ERRORS" >&5
65927
65928	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65929$as_echo "no" >&6; }
65930
65931
65932pkg_failed=no
65933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
65934$as_echo_n "checking for CUDA... " >&6; }
65935
65936if test -n "$PKG_CONFIG"; then
65937    if test -n "$CUDA_CFLAGS"; then
65938        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
65939    else
65940        if test -n "$PKG_CONFIG" && \
65941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65942  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65943  ac_status=$?
65944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65945  test $ac_status = 0; }; then
65946  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
65947else
65948  pkg_failed=yes
65949fi
65950    fi
65951else
65952	pkg_failed=untried
65953fi
65954if test -n "$PKG_CONFIG"; then
65955    if test -n "$CUDA_LIBS"; then
65956        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
65957    else
65958        if test -n "$PKG_CONFIG" && \
65959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
65960  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
65961  ac_status=$?
65962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65963  test $ac_status = 0; }; then
65964  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
65965else
65966  pkg_failed=yes
65967fi
65968    fi
65969else
65970	pkg_failed=untried
65971fi
65972
65973
65974
65975if test $pkg_failed = yes; then
65976
65977if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
65978        _pkg_short_errors_supported=yes
65979else
65980        _pkg_short_errors_supported=no
65981fi
65982        if test $_pkg_short_errors_supported = yes; then
65983	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65984        else
65985	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
65986        fi
65987	# Put the nasty error message in config.log where it belongs
65988	echo "$CUDA_PKG_ERRORS" >&5
65989
65990	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65991$as_echo "no" >&6; }
65992
65993                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65994$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65995elif test $pkg_failed = untried; then
65996
65997                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
65998$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
65999else
66000	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66001	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66002        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66003$as_echo "yes" >&6; }
66004	:
66005fi
66006elif test $pkg_failed = untried; then
66007
66008
66009pkg_failed=no
66010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66011$as_echo_n "checking for CUDA... " >&6; }
66012
66013if test -n "$PKG_CONFIG"; then
66014    if test -n "$CUDA_CFLAGS"; then
66015        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66016    else
66017        if test -n "$PKG_CONFIG" && \
66018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66019  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66020  ac_status=$?
66021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66022  test $ac_status = 0; }; then
66023  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66024else
66025  pkg_failed=yes
66026fi
66027    fi
66028else
66029	pkg_failed=untried
66030fi
66031if test -n "$PKG_CONFIG"; then
66032    if test -n "$CUDA_LIBS"; then
66033        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66034    else
66035        if test -n "$PKG_CONFIG" && \
66036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66037  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66038  ac_status=$?
66039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66040  test $ac_status = 0; }; then
66041  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66042else
66043  pkg_failed=yes
66044fi
66045    fi
66046else
66047	pkg_failed=untried
66048fi
66049
66050
66051
66052if test $pkg_failed = yes; then
66053
66054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66055        _pkg_short_errors_supported=yes
66056else
66057        _pkg_short_errors_supported=no
66058fi
66059        if test $_pkg_short_errors_supported = yes; then
66060	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66061        else
66062	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66063        fi
66064	# Put the nasty error message in config.log where it belongs
66065	echo "$CUDA_PKG_ERRORS" >&5
66066
66067	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66068$as_echo "no" >&6; }
66069
66070                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66071$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66072elif test $pkg_failed = untried; then
66073
66074                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66075$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66076else
66077	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66078	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66079        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66080$as_echo "yes" >&6; }
66081	:
66082fi
66083else
66084	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66085	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66087$as_echo "yes" >&6; }
66088	:
66089fi
66090elif test $pkg_failed = untried; then
66091
66092
66093pkg_failed=no
66094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66095$as_echo_n "checking for CUDA... " >&6; }
66096
66097if test -n "$PKG_CONFIG"; then
66098    if test -n "$CUDA_CFLAGS"; then
66099        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66100    else
66101        if test -n "$PKG_CONFIG" && \
66102    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66103  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66104  ac_status=$?
66105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66106  test $ac_status = 0; }; then
66107  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
66108else
66109  pkg_failed=yes
66110fi
66111    fi
66112else
66113	pkg_failed=untried
66114fi
66115if test -n "$PKG_CONFIG"; then
66116    if test -n "$CUDA_LIBS"; then
66117        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66118    else
66119        if test -n "$PKG_CONFIG" && \
66120    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66121  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66122  ac_status=$?
66123  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66124  test $ac_status = 0; }; then
66125  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
66126else
66127  pkg_failed=yes
66128fi
66129    fi
66130else
66131	pkg_failed=untried
66132fi
66133
66134
66135
66136if test $pkg_failed = yes; then
66137
66138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66139        _pkg_short_errors_supported=yes
66140else
66141        _pkg_short_errors_supported=no
66142fi
66143        if test $_pkg_short_errors_supported = yes; then
66144	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66145        else
66146	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66147        fi
66148	# Put the nasty error message in config.log where it belongs
66149	echo "$CUDA_PKG_ERRORS" >&5
66150
66151	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66152$as_echo "no" >&6; }
66153
66154
66155pkg_failed=no
66156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66157$as_echo_n "checking for CUDA... " >&6; }
66158
66159if test -n "$PKG_CONFIG"; then
66160    if test -n "$CUDA_CFLAGS"; then
66161        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66162    else
66163        if test -n "$PKG_CONFIG" && \
66164    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66165  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66166  ac_status=$?
66167  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66168  test $ac_status = 0; }; then
66169  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66170else
66171  pkg_failed=yes
66172fi
66173    fi
66174else
66175	pkg_failed=untried
66176fi
66177if test -n "$PKG_CONFIG"; then
66178    if test -n "$CUDA_LIBS"; then
66179        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66180    else
66181        if test -n "$PKG_CONFIG" && \
66182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66183  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66184  ac_status=$?
66185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66186  test $ac_status = 0; }; then
66187  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66188else
66189  pkg_failed=yes
66190fi
66191    fi
66192else
66193	pkg_failed=untried
66194fi
66195
66196
66197
66198if test $pkg_failed = yes; then
66199
66200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66201        _pkg_short_errors_supported=yes
66202else
66203        _pkg_short_errors_supported=no
66204fi
66205        if test $_pkg_short_errors_supported = yes; then
66206	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66207        else
66208	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66209        fi
66210	# Put the nasty error message in config.log where it belongs
66211	echo "$CUDA_PKG_ERRORS" >&5
66212
66213	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66214$as_echo "no" >&6; }
66215
66216                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66217$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66218elif test $pkg_failed = untried; then
66219
66220                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66221$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66222else
66223	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66224	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66225        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66226$as_echo "yes" >&6; }
66227	:
66228fi
66229elif test $pkg_failed = untried; then
66230
66231
66232pkg_failed=no
66233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66234$as_echo_n "checking for CUDA... " >&6; }
66235
66236if test -n "$PKG_CONFIG"; then
66237    if test -n "$CUDA_CFLAGS"; then
66238        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66239    else
66240        if test -n "$PKG_CONFIG" && \
66241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66242  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66243  ac_status=$?
66244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66245  test $ac_status = 0; }; then
66246  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66247else
66248  pkg_failed=yes
66249fi
66250    fi
66251else
66252	pkg_failed=untried
66253fi
66254if test -n "$PKG_CONFIG"; then
66255    if test -n "$CUDA_LIBS"; then
66256        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66257    else
66258        if test -n "$PKG_CONFIG" && \
66259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66260  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66261  ac_status=$?
66262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66263  test $ac_status = 0; }; then
66264  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66265else
66266  pkg_failed=yes
66267fi
66268    fi
66269else
66270	pkg_failed=untried
66271fi
66272
66273
66274
66275if test $pkg_failed = yes; then
66276
66277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66278        _pkg_short_errors_supported=yes
66279else
66280        _pkg_short_errors_supported=no
66281fi
66282        if test $_pkg_short_errors_supported = yes; then
66283	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66284        else
66285	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66286        fi
66287	# Put the nasty error message in config.log where it belongs
66288	echo "$CUDA_PKG_ERRORS" >&5
66289
66290	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66291$as_echo "no" >&6; }
66292
66293                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66294$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66295elif test $pkg_failed = untried; then
66296
66297                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66298$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66299else
66300	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66301	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66303$as_echo "yes" >&6; }
66304	:
66305fi
66306else
66307	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66308	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66309        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66310$as_echo "yes" >&6; }
66311	:
66312fi
66313else
66314	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66315	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66316        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66317$as_echo "yes" >&6; }
66318	:
66319fi
66320elif test $pkg_failed = untried; then
66321
66322
66323pkg_failed=no
66324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66325$as_echo_n "checking for CUDA... " >&6; }
66326
66327if test -n "$PKG_CONFIG"; then
66328    if test -n "$CUDA_CFLAGS"; then
66329        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66330    else
66331        if test -n "$PKG_CONFIG" && \
66332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
66333  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
66334  ac_status=$?
66335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66336  test $ac_status = 0; }; then
66337  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
66338else
66339  pkg_failed=yes
66340fi
66341    fi
66342else
66343	pkg_failed=untried
66344fi
66345if test -n "$PKG_CONFIG"; then
66346    if test -n "$CUDA_LIBS"; then
66347        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66348    else
66349        if test -n "$PKG_CONFIG" && \
66350    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
66351  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
66352  ac_status=$?
66353  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66354  test $ac_status = 0; }; then
66355  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
66356else
66357  pkg_failed=yes
66358fi
66359    fi
66360else
66361	pkg_failed=untried
66362fi
66363
66364
66365
66366if test $pkg_failed = yes; then
66367
66368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66369        _pkg_short_errors_supported=yes
66370else
66371        _pkg_short_errors_supported=no
66372fi
66373        if test $_pkg_short_errors_supported = yes; then
66374	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
66375        else
66376	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
66377        fi
66378	# Put the nasty error message in config.log where it belongs
66379	echo "$CUDA_PKG_ERRORS" >&5
66380
66381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66382$as_echo "no" >&6; }
66383
66384
66385pkg_failed=no
66386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66387$as_echo_n "checking for CUDA... " >&6; }
66388
66389if test -n "$PKG_CONFIG"; then
66390    if test -n "$CUDA_CFLAGS"; then
66391        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66392    else
66393        if test -n "$PKG_CONFIG" && \
66394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66395  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66396  ac_status=$?
66397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66398  test $ac_status = 0; }; then
66399  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
66400else
66401  pkg_failed=yes
66402fi
66403    fi
66404else
66405	pkg_failed=untried
66406fi
66407if test -n "$PKG_CONFIG"; then
66408    if test -n "$CUDA_LIBS"; then
66409        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66410    else
66411        if test -n "$PKG_CONFIG" && \
66412    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66413  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66414  ac_status=$?
66415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66416  test $ac_status = 0; }; then
66417  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
66418else
66419  pkg_failed=yes
66420fi
66421    fi
66422else
66423	pkg_failed=untried
66424fi
66425
66426
66427
66428if test $pkg_failed = yes; then
66429
66430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66431        _pkg_short_errors_supported=yes
66432else
66433        _pkg_short_errors_supported=no
66434fi
66435        if test $_pkg_short_errors_supported = yes; then
66436	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66437        else
66438	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66439        fi
66440	# Put the nasty error message in config.log where it belongs
66441	echo "$CUDA_PKG_ERRORS" >&5
66442
66443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66444$as_echo "no" >&6; }
66445
66446
66447pkg_failed=no
66448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66449$as_echo_n "checking for CUDA... " >&6; }
66450
66451if test -n "$PKG_CONFIG"; then
66452    if test -n "$CUDA_CFLAGS"; then
66453        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66454    else
66455        if test -n "$PKG_CONFIG" && \
66456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66457  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66458  ac_status=$?
66459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66460  test $ac_status = 0; }; then
66461  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66462else
66463  pkg_failed=yes
66464fi
66465    fi
66466else
66467	pkg_failed=untried
66468fi
66469if test -n "$PKG_CONFIG"; then
66470    if test -n "$CUDA_LIBS"; then
66471        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66472    else
66473        if test -n "$PKG_CONFIG" && \
66474    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66475  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66476  ac_status=$?
66477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66478  test $ac_status = 0; }; then
66479  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66480else
66481  pkg_failed=yes
66482fi
66483    fi
66484else
66485	pkg_failed=untried
66486fi
66487
66488
66489
66490if test $pkg_failed = yes; then
66491
66492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66493        _pkg_short_errors_supported=yes
66494else
66495        _pkg_short_errors_supported=no
66496fi
66497        if test $_pkg_short_errors_supported = yes; then
66498	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66499        else
66500	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66501        fi
66502	# Put the nasty error message in config.log where it belongs
66503	echo "$CUDA_PKG_ERRORS" >&5
66504
66505	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66506$as_echo "no" >&6; }
66507
66508                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66509$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66510elif test $pkg_failed = untried; then
66511
66512                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66513$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66514else
66515	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66516	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66517        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66518$as_echo "yes" >&6; }
66519	:
66520fi
66521elif test $pkg_failed = untried; then
66522
66523
66524pkg_failed=no
66525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66526$as_echo_n "checking for CUDA... " >&6; }
66527
66528if test -n "$PKG_CONFIG"; then
66529    if test -n "$CUDA_CFLAGS"; then
66530        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66531    else
66532        if test -n "$PKG_CONFIG" && \
66533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66534  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66535  ac_status=$?
66536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66537  test $ac_status = 0; }; then
66538  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66539else
66540  pkg_failed=yes
66541fi
66542    fi
66543else
66544	pkg_failed=untried
66545fi
66546if test -n "$PKG_CONFIG"; then
66547    if test -n "$CUDA_LIBS"; then
66548        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66549    else
66550        if test -n "$PKG_CONFIG" && \
66551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66552  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66553  ac_status=$?
66554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66555  test $ac_status = 0; }; then
66556  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66557else
66558  pkg_failed=yes
66559fi
66560    fi
66561else
66562	pkg_failed=untried
66563fi
66564
66565
66566
66567if test $pkg_failed = yes; then
66568
66569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66570        _pkg_short_errors_supported=yes
66571else
66572        _pkg_short_errors_supported=no
66573fi
66574        if test $_pkg_short_errors_supported = yes; then
66575	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66576        else
66577	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66578        fi
66579	# Put the nasty error message in config.log where it belongs
66580	echo "$CUDA_PKG_ERRORS" >&5
66581
66582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66583$as_echo "no" >&6; }
66584
66585                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66586$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66587elif test $pkg_failed = untried; then
66588
66589                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66590$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66591else
66592	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66593	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66594        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66595$as_echo "yes" >&6; }
66596	:
66597fi
66598else
66599	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66600	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66601        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66602$as_echo "yes" >&6; }
66603	:
66604fi
66605elif test $pkg_failed = untried; then
66606
66607
66608pkg_failed=no
66609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66610$as_echo_n "checking for CUDA... " >&6; }
66611
66612if test -n "$PKG_CONFIG"; then
66613    if test -n "$CUDA_CFLAGS"; then
66614        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66615    else
66616        if test -n "$PKG_CONFIG" && \
66617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66618  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66619  ac_status=$?
66620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66621  test $ac_status = 0; }; then
66622  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
66623else
66624  pkg_failed=yes
66625fi
66626    fi
66627else
66628	pkg_failed=untried
66629fi
66630if test -n "$PKG_CONFIG"; then
66631    if test -n "$CUDA_LIBS"; then
66632        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66633    else
66634        if test -n "$PKG_CONFIG" && \
66635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66636  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66637  ac_status=$?
66638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66639  test $ac_status = 0; }; then
66640  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
66641else
66642  pkg_failed=yes
66643fi
66644    fi
66645else
66646	pkg_failed=untried
66647fi
66648
66649
66650
66651if test $pkg_failed = yes; then
66652
66653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66654        _pkg_short_errors_supported=yes
66655else
66656        _pkg_short_errors_supported=no
66657fi
66658        if test $_pkg_short_errors_supported = yes; then
66659	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66660        else
66661	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
66662        fi
66663	# Put the nasty error message in config.log where it belongs
66664	echo "$CUDA_PKG_ERRORS" >&5
66665
66666	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66667$as_echo "no" >&6; }
66668
66669
66670pkg_failed=no
66671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66672$as_echo_n "checking for CUDA... " >&6; }
66673
66674if test -n "$PKG_CONFIG"; then
66675    if test -n "$CUDA_CFLAGS"; then
66676        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66677    else
66678        if test -n "$PKG_CONFIG" && \
66679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66680  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66681  ac_status=$?
66682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66683  test $ac_status = 0; }; then
66684  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66685else
66686  pkg_failed=yes
66687fi
66688    fi
66689else
66690	pkg_failed=untried
66691fi
66692if test -n "$PKG_CONFIG"; then
66693    if test -n "$CUDA_LIBS"; then
66694        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66695    else
66696        if test -n "$PKG_CONFIG" && \
66697    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66698  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66699  ac_status=$?
66700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66701  test $ac_status = 0; }; then
66702  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66703else
66704  pkg_failed=yes
66705fi
66706    fi
66707else
66708	pkg_failed=untried
66709fi
66710
66711
66712
66713if test $pkg_failed = yes; then
66714
66715if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66716        _pkg_short_errors_supported=yes
66717else
66718        _pkg_short_errors_supported=no
66719fi
66720        if test $_pkg_short_errors_supported = yes; then
66721	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66722        else
66723	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66724        fi
66725	# Put the nasty error message in config.log where it belongs
66726	echo "$CUDA_PKG_ERRORS" >&5
66727
66728	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66729$as_echo "no" >&6; }
66730
66731                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66732$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66733elif test $pkg_failed = untried; then
66734
66735                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66736$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66737else
66738	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66739	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66740        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66741$as_echo "yes" >&6; }
66742	:
66743fi
66744elif test $pkg_failed = untried; then
66745
66746
66747pkg_failed=no
66748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66749$as_echo_n "checking for CUDA... " >&6; }
66750
66751if test -n "$PKG_CONFIG"; then
66752    if test -n "$CUDA_CFLAGS"; then
66753        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66754    else
66755        if test -n "$PKG_CONFIG" && \
66756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66757  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66758  ac_status=$?
66759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66760  test $ac_status = 0; }; then
66761  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
66762else
66763  pkg_failed=yes
66764fi
66765    fi
66766else
66767	pkg_failed=untried
66768fi
66769if test -n "$PKG_CONFIG"; then
66770    if test -n "$CUDA_LIBS"; then
66771        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66772    else
66773        if test -n "$PKG_CONFIG" && \
66774    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
66775  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
66776  ac_status=$?
66777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66778  test $ac_status = 0; }; then
66779  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
66780else
66781  pkg_failed=yes
66782fi
66783    fi
66784else
66785	pkg_failed=untried
66786fi
66787
66788
66789
66790if test $pkg_failed = yes; then
66791
66792if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66793        _pkg_short_errors_supported=yes
66794else
66795        _pkg_short_errors_supported=no
66796fi
66797        if test $_pkg_short_errors_supported = yes; then
66798	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66799        else
66800	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
66801        fi
66802	# Put the nasty error message in config.log where it belongs
66803	echo "$CUDA_PKG_ERRORS" >&5
66804
66805	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66806$as_echo "no" >&6; }
66807
66808                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66809$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66810elif test $pkg_failed = untried; then
66811
66812                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
66813$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
66814else
66815	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66816	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66818$as_echo "yes" >&6; }
66819	:
66820fi
66821else
66822	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66823	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66825$as_echo "yes" >&6; }
66826	:
66827fi
66828else
66829	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66830	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66831        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66832$as_echo "yes" >&6; }
66833	:
66834fi
66835else
66836	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
66837	CUDA_LIBS=$pkg_cv_CUDA_LIBS
66838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
66839$as_echo "yes" >&6; }
66840	:
66841fi
66842elif test $pkg_failed = untried; then
66843
66844
66845pkg_failed=no
66846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66847$as_echo_n "checking for CUDA... " >&6; }
66848
66849if test -n "$PKG_CONFIG"; then
66850    if test -n "$CUDA_CFLAGS"; then
66851        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66852    else
66853        if test -n "$PKG_CONFIG" && \
66854    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
66855  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
66856  ac_status=$?
66857  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66858  test $ac_status = 0; }; then
66859  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
66860else
66861  pkg_failed=yes
66862fi
66863    fi
66864else
66865	pkg_failed=untried
66866fi
66867if test -n "$PKG_CONFIG"; then
66868    if test -n "$CUDA_LIBS"; then
66869        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66870    else
66871        if test -n "$PKG_CONFIG" && \
66872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
66873  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
66874  ac_status=$?
66875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66876  test $ac_status = 0; }; then
66877  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
66878else
66879  pkg_failed=yes
66880fi
66881    fi
66882else
66883	pkg_failed=untried
66884fi
66885
66886
66887
66888if test $pkg_failed = yes; then
66889
66890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66891        _pkg_short_errors_supported=yes
66892else
66893        _pkg_short_errors_supported=no
66894fi
66895        if test $_pkg_short_errors_supported = yes; then
66896	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
66897        else
66898	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
66899        fi
66900	# Put the nasty error message in config.log where it belongs
66901	echo "$CUDA_PKG_ERRORS" >&5
66902
66903	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66904$as_echo "no" >&6; }
66905
66906
66907pkg_failed=no
66908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66909$as_echo_n "checking for CUDA... " >&6; }
66910
66911if test -n "$PKG_CONFIG"; then
66912    if test -n "$CUDA_CFLAGS"; then
66913        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66914    else
66915        if test -n "$PKG_CONFIG" && \
66916    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
66917  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
66918  ac_status=$?
66919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66920  test $ac_status = 0; }; then
66921  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
66922else
66923  pkg_failed=yes
66924fi
66925    fi
66926else
66927	pkg_failed=untried
66928fi
66929if test -n "$PKG_CONFIG"; then
66930    if test -n "$CUDA_LIBS"; then
66931        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66932    else
66933        if test -n "$PKG_CONFIG" && \
66934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
66935  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
66936  ac_status=$?
66937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66938  test $ac_status = 0; }; then
66939  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
66940else
66941  pkg_failed=yes
66942fi
66943    fi
66944else
66945	pkg_failed=untried
66946fi
66947
66948
66949
66950if test $pkg_failed = yes; then
66951
66952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
66953        _pkg_short_errors_supported=yes
66954else
66955        _pkg_short_errors_supported=no
66956fi
66957        if test $_pkg_short_errors_supported = yes; then
66958	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
66959        else
66960	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
66961        fi
66962	# Put the nasty error message in config.log where it belongs
66963	echo "$CUDA_PKG_ERRORS" >&5
66964
66965	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
66966$as_echo "no" >&6; }
66967
66968
66969pkg_failed=no
66970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
66971$as_echo_n "checking for CUDA... " >&6; }
66972
66973if test -n "$PKG_CONFIG"; then
66974    if test -n "$CUDA_CFLAGS"; then
66975        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
66976    else
66977        if test -n "$PKG_CONFIG" && \
66978    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66979  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66980  ac_status=$?
66981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
66982  test $ac_status = 0; }; then
66983  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
66984else
66985  pkg_failed=yes
66986fi
66987    fi
66988else
66989	pkg_failed=untried
66990fi
66991if test -n "$PKG_CONFIG"; then
66992    if test -n "$CUDA_LIBS"; then
66993        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
66994    else
66995        if test -n "$PKG_CONFIG" && \
66996    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
66997  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
66998  ac_status=$?
66999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67000  test $ac_status = 0; }; then
67001  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
67002else
67003  pkg_failed=yes
67004fi
67005    fi
67006else
67007	pkg_failed=untried
67008fi
67009
67010
67011
67012if test $pkg_failed = yes; then
67013
67014if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67015        _pkg_short_errors_supported=yes
67016else
67017        _pkg_short_errors_supported=no
67018fi
67019        if test $_pkg_short_errors_supported = yes; then
67020	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67021        else
67022	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67023        fi
67024	# Put the nasty error message in config.log where it belongs
67025	echo "$CUDA_PKG_ERRORS" >&5
67026
67027	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67028$as_echo "no" >&6; }
67029
67030
67031pkg_failed=no
67032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67033$as_echo_n "checking for CUDA... " >&6; }
67034
67035if test -n "$PKG_CONFIG"; then
67036    if test -n "$CUDA_CFLAGS"; then
67037        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67038    else
67039        if test -n "$PKG_CONFIG" && \
67040    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67041  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67042  ac_status=$?
67043  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67044  test $ac_status = 0; }; then
67045  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67046else
67047  pkg_failed=yes
67048fi
67049    fi
67050else
67051	pkg_failed=untried
67052fi
67053if test -n "$PKG_CONFIG"; then
67054    if test -n "$CUDA_LIBS"; then
67055        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67056    else
67057        if test -n "$PKG_CONFIG" && \
67058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67059  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67060  ac_status=$?
67061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67062  test $ac_status = 0; }; then
67063  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67064else
67065  pkg_failed=yes
67066fi
67067    fi
67068else
67069	pkg_failed=untried
67070fi
67071
67072
67073
67074if test $pkg_failed = yes; then
67075
67076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67077        _pkg_short_errors_supported=yes
67078else
67079        _pkg_short_errors_supported=no
67080fi
67081        if test $_pkg_short_errors_supported = yes; then
67082	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67083        else
67084	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67085        fi
67086	# Put the nasty error message in config.log where it belongs
67087	echo "$CUDA_PKG_ERRORS" >&5
67088
67089	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67090$as_echo "no" >&6; }
67091
67092                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67093$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67094elif test $pkg_failed = untried; then
67095
67096                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67097$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67098else
67099	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67100	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67101        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67102$as_echo "yes" >&6; }
67103	:
67104fi
67105elif test $pkg_failed = untried; then
67106
67107
67108pkg_failed=no
67109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67110$as_echo_n "checking for CUDA... " >&6; }
67111
67112if test -n "$PKG_CONFIG"; then
67113    if test -n "$CUDA_CFLAGS"; then
67114        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67115    else
67116        if test -n "$PKG_CONFIG" && \
67117    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67118  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67119  ac_status=$?
67120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67121  test $ac_status = 0; }; then
67122  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67123else
67124  pkg_failed=yes
67125fi
67126    fi
67127else
67128	pkg_failed=untried
67129fi
67130if test -n "$PKG_CONFIG"; then
67131    if test -n "$CUDA_LIBS"; then
67132        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67133    else
67134        if test -n "$PKG_CONFIG" && \
67135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67136  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67137  ac_status=$?
67138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67139  test $ac_status = 0; }; then
67140  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67141else
67142  pkg_failed=yes
67143fi
67144    fi
67145else
67146	pkg_failed=untried
67147fi
67148
67149
67150
67151if test $pkg_failed = yes; then
67152
67153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67154        _pkg_short_errors_supported=yes
67155else
67156        _pkg_short_errors_supported=no
67157fi
67158        if test $_pkg_short_errors_supported = yes; then
67159	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67160        else
67161	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67162        fi
67163	# Put the nasty error message in config.log where it belongs
67164	echo "$CUDA_PKG_ERRORS" >&5
67165
67166	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67167$as_echo "no" >&6; }
67168
67169                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67170$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67171elif test $pkg_failed = untried; then
67172
67173                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67174$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67175else
67176	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67177	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67178        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67179$as_echo "yes" >&6; }
67180	:
67181fi
67182else
67183	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67184	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67185        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67186$as_echo "yes" >&6; }
67187	:
67188fi
67189elif test $pkg_failed = untried; then
67190
67191
67192pkg_failed=no
67193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67194$as_echo_n "checking for CUDA... " >&6; }
67195
67196if test -n "$PKG_CONFIG"; then
67197    if test -n "$CUDA_CFLAGS"; then
67198        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67199    else
67200        if test -n "$PKG_CONFIG" && \
67201    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67202  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67203  ac_status=$?
67204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67205  test $ac_status = 0; }; then
67206  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
67207else
67208  pkg_failed=yes
67209fi
67210    fi
67211else
67212	pkg_failed=untried
67213fi
67214if test -n "$PKG_CONFIG"; then
67215    if test -n "$CUDA_LIBS"; then
67216        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67217    else
67218        if test -n "$PKG_CONFIG" && \
67219    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67220  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67221  ac_status=$?
67222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67223  test $ac_status = 0; }; then
67224  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
67225else
67226  pkg_failed=yes
67227fi
67228    fi
67229else
67230	pkg_failed=untried
67231fi
67232
67233
67234
67235if test $pkg_failed = yes; then
67236
67237if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67238        _pkg_short_errors_supported=yes
67239else
67240        _pkg_short_errors_supported=no
67241fi
67242        if test $_pkg_short_errors_supported = yes; then
67243	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67244        else
67245	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67246        fi
67247	# Put the nasty error message in config.log where it belongs
67248	echo "$CUDA_PKG_ERRORS" >&5
67249
67250	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67251$as_echo "no" >&6; }
67252
67253
67254pkg_failed=no
67255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67256$as_echo_n "checking for CUDA... " >&6; }
67257
67258if test -n "$PKG_CONFIG"; then
67259    if test -n "$CUDA_CFLAGS"; then
67260        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67261    else
67262        if test -n "$PKG_CONFIG" && \
67263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67264  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67265  ac_status=$?
67266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67267  test $ac_status = 0; }; then
67268  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67269else
67270  pkg_failed=yes
67271fi
67272    fi
67273else
67274	pkg_failed=untried
67275fi
67276if test -n "$PKG_CONFIG"; then
67277    if test -n "$CUDA_LIBS"; then
67278        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67279    else
67280        if test -n "$PKG_CONFIG" && \
67281    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67282  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67283  ac_status=$?
67284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67285  test $ac_status = 0; }; then
67286  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67287else
67288  pkg_failed=yes
67289fi
67290    fi
67291else
67292	pkg_failed=untried
67293fi
67294
67295
67296
67297if test $pkg_failed = yes; then
67298
67299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67300        _pkg_short_errors_supported=yes
67301else
67302        _pkg_short_errors_supported=no
67303fi
67304        if test $_pkg_short_errors_supported = yes; then
67305	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67306        else
67307	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67308        fi
67309	# Put the nasty error message in config.log where it belongs
67310	echo "$CUDA_PKG_ERRORS" >&5
67311
67312	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67313$as_echo "no" >&6; }
67314
67315                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67316$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67317elif test $pkg_failed = untried; then
67318
67319                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67320$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67321else
67322	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67323	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67324        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67325$as_echo "yes" >&6; }
67326	:
67327fi
67328elif test $pkg_failed = untried; then
67329
67330
67331pkg_failed=no
67332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67333$as_echo_n "checking for CUDA... " >&6; }
67334
67335if test -n "$PKG_CONFIG"; then
67336    if test -n "$CUDA_CFLAGS"; then
67337        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67338    else
67339        if test -n "$PKG_CONFIG" && \
67340    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67341  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67342  ac_status=$?
67343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67344  test $ac_status = 0; }; then
67345  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67346else
67347  pkg_failed=yes
67348fi
67349    fi
67350else
67351	pkg_failed=untried
67352fi
67353if test -n "$PKG_CONFIG"; then
67354    if test -n "$CUDA_LIBS"; then
67355        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67356    else
67357        if test -n "$PKG_CONFIG" && \
67358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67359  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67360  ac_status=$?
67361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67362  test $ac_status = 0; }; then
67363  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67364else
67365  pkg_failed=yes
67366fi
67367    fi
67368else
67369	pkg_failed=untried
67370fi
67371
67372
67373
67374if test $pkg_failed = yes; then
67375
67376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67377        _pkg_short_errors_supported=yes
67378else
67379        _pkg_short_errors_supported=no
67380fi
67381        if test $_pkg_short_errors_supported = yes; then
67382	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67383        else
67384	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67385        fi
67386	# Put the nasty error message in config.log where it belongs
67387	echo "$CUDA_PKG_ERRORS" >&5
67388
67389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67390$as_echo "no" >&6; }
67391
67392                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67393$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67394elif test $pkg_failed = untried; then
67395
67396                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67397$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67398else
67399	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67400	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67401        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67402$as_echo "yes" >&6; }
67403	:
67404fi
67405else
67406	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67407	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67408        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67409$as_echo "yes" >&6; }
67410	:
67411fi
67412else
67413	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67414	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67416$as_echo "yes" >&6; }
67417	:
67418fi
67419elif test $pkg_failed = untried; then
67420
67421
67422pkg_failed=no
67423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67424$as_echo_n "checking for CUDA... " >&6; }
67425
67426if test -n "$PKG_CONFIG"; then
67427    if test -n "$CUDA_CFLAGS"; then
67428        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67429    else
67430        if test -n "$PKG_CONFIG" && \
67431    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
67432  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
67433  ac_status=$?
67434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67435  test $ac_status = 0; }; then
67436  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
67437else
67438  pkg_failed=yes
67439fi
67440    fi
67441else
67442	pkg_failed=untried
67443fi
67444if test -n "$PKG_CONFIG"; then
67445    if test -n "$CUDA_LIBS"; then
67446        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67447    else
67448        if test -n "$PKG_CONFIG" && \
67449    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
67450  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
67451  ac_status=$?
67452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67453  test $ac_status = 0; }; then
67454  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
67455else
67456  pkg_failed=yes
67457fi
67458    fi
67459else
67460	pkg_failed=untried
67461fi
67462
67463
67464
67465if test $pkg_failed = yes; then
67466
67467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67468        _pkg_short_errors_supported=yes
67469else
67470        _pkg_short_errors_supported=no
67471fi
67472        if test $_pkg_short_errors_supported = yes; then
67473	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
67474        else
67475	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
67476        fi
67477	# Put the nasty error message in config.log where it belongs
67478	echo "$CUDA_PKG_ERRORS" >&5
67479
67480	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67481$as_echo "no" >&6; }
67482
67483
67484pkg_failed=no
67485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67486$as_echo_n "checking for CUDA... " >&6; }
67487
67488if test -n "$PKG_CONFIG"; then
67489    if test -n "$CUDA_CFLAGS"; then
67490        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67491    else
67492        if test -n "$PKG_CONFIG" && \
67493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67494  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67495  ac_status=$?
67496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67497  test $ac_status = 0; }; then
67498  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
67499else
67500  pkg_failed=yes
67501fi
67502    fi
67503else
67504	pkg_failed=untried
67505fi
67506if test -n "$PKG_CONFIG"; then
67507    if test -n "$CUDA_LIBS"; then
67508        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67509    else
67510        if test -n "$PKG_CONFIG" && \
67511    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67512  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67513  ac_status=$?
67514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67515  test $ac_status = 0; }; then
67516  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
67517else
67518  pkg_failed=yes
67519fi
67520    fi
67521else
67522	pkg_failed=untried
67523fi
67524
67525
67526
67527if test $pkg_failed = yes; then
67528
67529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67530        _pkg_short_errors_supported=yes
67531else
67532        _pkg_short_errors_supported=no
67533fi
67534        if test $_pkg_short_errors_supported = yes; then
67535	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67536        else
67537	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67538        fi
67539	# Put the nasty error message in config.log where it belongs
67540	echo "$CUDA_PKG_ERRORS" >&5
67541
67542	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67543$as_echo "no" >&6; }
67544
67545
67546pkg_failed=no
67547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67548$as_echo_n "checking for CUDA... " >&6; }
67549
67550if test -n "$PKG_CONFIG"; then
67551    if test -n "$CUDA_CFLAGS"; then
67552        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67553    else
67554        if test -n "$PKG_CONFIG" && \
67555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67556  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67557  ac_status=$?
67558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67559  test $ac_status = 0; }; then
67560  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67561else
67562  pkg_failed=yes
67563fi
67564    fi
67565else
67566	pkg_failed=untried
67567fi
67568if test -n "$PKG_CONFIG"; then
67569    if test -n "$CUDA_LIBS"; then
67570        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67571    else
67572        if test -n "$PKG_CONFIG" && \
67573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67574  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67575  ac_status=$?
67576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67577  test $ac_status = 0; }; then
67578  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67579else
67580  pkg_failed=yes
67581fi
67582    fi
67583else
67584	pkg_failed=untried
67585fi
67586
67587
67588
67589if test $pkg_failed = yes; then
67590
67591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67592        _pkg_short_errors_supported=yes
67593else
67594        _pkg_short_errors_supported=no
67595fi
67596        if test $_pkg_short_errors_supported = yes; then
67597	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67598        else
67599	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67600        fi
67601	# Put the nasty error message in config.log where it belongs
67602	echo "$CUDA_PKG_ERRORS" >&5
67603
67604	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67605$as_echo "no" >&6; }
67606
67607                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67608$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67609elif test $pkg_failed = untried; then
67610
67611                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67612$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67613else
67614	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67615	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67617$as_echo "yes" >&6; }
67618	:
67619fi
67620elif test $pkg_failed = untried; then
67621
67622
67623pkg_failed=no
67624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67625$as_echo_n "checking for CUDA... " >&6; }
67626
67627if test -n "$PKG_CONFIG"; then
67628    if test -n "$CUDA_CFLAGS"; then
67629        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67630    else
67631        if test -n "$PKG_CONFIG" && \
67632    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67633  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67634  ac_status=$?
67635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67636  test $ac_status = 0; }; then
67637  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67638else
67639  pkg_failed=yes
67640fi
67641    fi
67642else
67643	pkg_failed=untried
67644fi
67645if test -n "$PKG_CONFIG"; then
67646    if test -n "$CUDA_LIBS"; then
67647        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67648    else
67649        if test -n "$PKG_CONFIG" && \
67650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67651  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67652  ac_status=$?
67653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67654  test $ac_status = 0; }; then
67655  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67656else
67657  pkg_failed=yes
67658fi
67659    fi
67660else
67661	pkg_failed=untried
67662fi
67663
67664
67665
67666if test $pkg_failed = yes; then
67667
67668if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67669        _pkg_short_errors_supported=yes
67670else
67671        _pkg_short_errors_supported=no
67672fi
67673        if test $_pkg_short_errors_supported = yes; then
67674	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67675        else
67676	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67677        fi
67678	# Put the nasty error message in config.log where it belongs
67679	echo "$CUDA_PKG_ERRORS" >&5
67680
67681	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67682$as_echo "no" >&6; }
67683
67684                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67685$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67686elif test $pkg_failed = untried; then
67687
67688                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67689$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67690else
67691	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67692	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67693        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67694$as_echo "yes" >&6; }
67695	:
67696fi
67697else
67698	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67699	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67701$as_echo "yes" >&6; }
67702	:
67703fi
67704elif test $pkg_failed = untried; then
67705
67706
67707pkg_failed=no
67708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67709$as_echo_n "checking for CUDA... " >&6; }
67710
67711if test -n "$PKG_CONFIG"; then
67712    if test -n "$CUDA_CFLAGS"; then
67713        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67714    else
67715        if test -n "$PKG_CONFIG" && \
67716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67717  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67718  ac_status=$?
67719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67720  test $ac_status = 0; }; then
67721  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
67722else
67723  pkg_failed=yes
67724fi
67725    fi
67726else
67727	pkg_failed=untried
67728fi
67729if test -n "$PKG_CONFIG"; then
67730    if test -n "$CUDA_LIBS"; then
67731        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67732    else
67733        if test -n "$PKG_CONFIG" && \
67734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
67735  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
67736  ac_status=$?
67737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67738  test $ac_status = 0; }; then
67739  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
67740else
67741  pkg_failed=yes
67742fi
67743    fi
67744else
67745	pkg_failed=untried
67746fi
67747
67748
67749
67750if test $pkg_failed = yes; then
67751
67752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67753        _pkg_short_errors_supported=yes
67754else
67755        _pkg_short_errors_supported=no
67756fi
67757        if test $_pkg_short_errors_supported = yes; then
67758	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67759        else
67760	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
67761        fi
67762	# Put the nasty error message in config.log where it belongs
67763	echo "$CUDA_PKG_ERRORS" >&5
67764
67765	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67766$as_echo "no" >&6; }
67767
67768
67769pkg_failed=no
67770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67771$as_echo_n "checking for CUDA... " >&6; }
67772
67773if test -n "$PKG_CONFIG"; then
67774    if test -n "$CUDA_CFLAGS"; then
67775        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67776    else
67777        if test -n "$PKG_CONFIG" && \
67778    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67779  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67780  ac_status=$?
67781  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67782  test $ac_status = 0; }; then
67783  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67784else
67785  pkg_failed=yes
67786fi
67787    fi
67788else
67789	pkg_failed=untried
67790fi
67791if test -n "$PKG_CONFIG"; then
67792    if test -n "$CUDA_LIBS"; then
67793        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67794    else
67795        if test -n "$PKG_CONFIG" && \
67796    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67797  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67798  ac_status=$?
67799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67800  test $ac_status = 0; }; then
67801  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67802else
67803  pkg_failed=yes
67804fi
67805    fi
67806else
67807	pkg_failed=untried
67808fi
67809
67810
67811
67812if test $pkg_failed = yes; then
67813
67814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67815        _pkg_short_errors_supported=yes
67816else
67817        _pkg_short_errors_supported=no
67818fi
67819        if test $_pkg_short_errors_supported = yes; then
67820	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67821        else
67822	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67823        fi
67824	# Put the nasty error message in config.log where it belongs
67825	echo "$CUDA_PKG_ERRORS" >&5
67826
67827	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67828$as_echo "no" >&6; }
67829
67830                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67831$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67832elif test $pkg_failed = untried; then
67833
67834                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67835$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67836else
67837	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67838	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67839        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67840$as_echo "yes" >&6; }
67841	:
67842fi
67843elif test $pkg_failed = untried; then
67844
67845
67846pkg_failed=no
67847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67848$as_echo_n "checking for CUDA... " >&6; }
67849
67850if test -n "$PKG_CONFIG"; then
67851    if test -n "$CUDA_CFLAGS"; then
67852        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67853    else
67854        if test -n "$PKG_CONFIG" && \
67855    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67856  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67857  ac_status=$?
67858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67859  test $ac_status = 0; }; then
67860  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
67861else
67862  pkg_failed=yes
67863fi
67864    fi
67865else
67866	pkg_failed=untried
67867fi
67868if test -n "$PKG_CONFIG"; then
67869    if test -n "$CUDA_LIBS"; then
67870        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67871    else
67872        if test -n "$PKG_CONFIG" && \
67873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
67874  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
67875  ac_status=$?
67876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67877  test $ac_status = 0; }; then
67878  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
67879else
67880  pkg_failed=yes
67881fi
67882    fi
67883else
67884	pkg_failed=untried
67885fi
67886
67887
67888
67889if test $pkg_failed = yes; then
67890
67891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
67892        _pkg_short_errors_supported=yes
67893else
67894        _pkg_short_errors_supported=no
67895fi
67896        if test $_pkg_short_errors_supported = yes; then
67897	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67898        else
67899	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
67900        fi
67901	# Put the nasty error message in config.log where it belongs
67902	echo "$CUDA_PKG_ERRORS" >&5
67903
67904	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
67905$as_echo "no" >&6; }
67906
67907                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67908$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67909elif test $pkg_failed = untried; then
67910
67911                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
67912$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
67913else
67914	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67915	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67916        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67917$as_echo "yes" >&6; }
67918	:
67919fi
67920else
67921	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67922	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67923        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67924$as_echo "yes" >&6; }
67925	:
67926fi
67927else
67928	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67929	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67931$as_echo "yes" >&6; }
67932	:
67933fi
67934else
67935	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67936	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67938$as_echo "yes" >&6; }
67939	:
67940fi
67941else
67942	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67943	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67945$as_echo "yes" >&6; }
67946	:
67947fi
67948else
67949	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
67950	CUDA_LIBS=$pkg_cv_CUDA_LIBS
67951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
67952$as_echo "yes" >&6; }
67953	:
67954fi
67955elif test $pkg_failed = untried; then
67956
67957
67958pkg_failed=no
67959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
67960$as_echo_n "checking for CUDA... " >&6; }
67961
67962if test -n "$PKG_CONFIG"; then
67963    if test -n "$CUDA_CFLAGS"; then
67964        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
67965    else
67966        if test -n "$PKG_CONFIG" && \
67967    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
67968  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
67969  ac_status=$?
67970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67971  test $ac_status = 0; }; then
67972  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.1 cudart-9.1" 2>/dev/null`
67973else
67974  pkg_failed=yes
67975fi
67976    fi
67977else
67978	pkg_failed=untried
67979fi
67980if test -n "$PKG_CONFIG"; then
67981    if test -n "$CUDA_LIBS"; then
67982        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
67983    else
67984        if test -n "$PKG_CONFIG" && \
67985    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.1 cudart-9.1\""; } >&5
67986  ($PKG_CONFIG --exists --print-errors "cuda-9.1 cudart-9.1") 2>&5
67987  ac_status=$?
67988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67989  test $ac_status = 0; }; then
67990  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.1 cudart-9.1" 2>/dev/null`
67991else
67992  pkg_failed=yes
67993fi
67994    fi
67995else
67996	pkg_failed=untried
67997fi
67998
67999
68000
68001if test $pkg_failed = yes; then
68002
68003if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68004        _pkg_short_errors_supported=yes
68005else
68006        _pkg_short_errors_supported=no
68007fi
68008        if test $_pkg_short_errors_supported = yes; then
68009	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
68010        else
68011	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.1 cudart-9.1"`
68012        fi
68013	# Put the nasty error message in config.log where it belongs
68014	echo "$CUDA_PKG_ERRORS" >&5
68015
68016	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68017$as_echo "no" >&6; }
68018
68019
68020pkg_failed=no
68021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68022$as_echo_n "checking for CUDA... " >&6; }
68023
68024if test -n "$PKG_CONFIG"; then
68025    if test -n "$CUDA_CFLAGS"; then
68026        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68027    else
68028        if test -n "$PKG_CONFIG" && \
68029    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
68030  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
68031  ac_status=$?
68032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68033  test $ac_status = 0; }; then
68034  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
68035else
68036  pkg_failed=yes
68037fi
68038    fi
68039else
68040	pkg_failed=untried
68041fi
68042if test -n "$PKG_CONFIG"; then
68043    if test -n "$CUDA_LIBS"; then
68044        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68045    else
68046        if test -n "$PKG_CONFIG" && \
68047    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
68048  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
68049  ac_status=$?
68050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68051  test $ac_status = 0; }; then
68052  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
68053else
68054  pkg_failed=yes
68055fi
68056    fi
68057else
68058	pkg_failed=untried
68059fi
68060
68061
68062
68063if test $pkg_failed = yes; then
68064
68065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68066        _pkg_short_errors_supported=yes
68067else
68068        _pkg_short_errors_supported=no
68069fi
68070        if test $_pkg_short_errors_supported = yes; then
68071	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
68072        else
68073	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
68074        fi
68075	# Put the nasty error message in config.log where it belongs
68076	echo "$CUDA_PKG_ERRORS" >&5
68077
68078	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68079$as_echo "no" >&6; }
68080
68081
68082pkg_failed=no
68083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68084$as_echo_n "checking for CUDA... " >&6; }
68085
68086if test -n "$PKG_CONFIG"; then
68087    if test -n "$CUDA_CFLAGS"; then
68088        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68089    else
68090        if test -n "$PKG_CONFIG" && \
68091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
68092  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
68093  ac_status=$?
68094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68095  test $ac_status = 0; }; then
68096  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
68097else
68098  pkg_failed=yes
68099fi
68100    fi
68101else
68102	pkg_failed=untried
68103fi
68104if test -n "$PKG_CONFIG"; then
68105    if test -n "$CUDA_LIBS"; then
68106        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68107    else
68108        if test -n "$PKG_CONFIG" && \
68109    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
68110  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
68111  ac_status=$?
68112  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68113  test $ac_status = 0; }; then
68114  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
68115else
68116  pkg_failed=yes
68117fi
68118    fi
68119else
68120	pkg_failed=untried
68121fi
68122
68123
68124
68125if test $pkg_failed = yes; then
68126
68127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68128        _pkg_short_errors_supported=yes
68129else
68130        _pkg_short_errors_supported=no
68131fi
68132        if test $_pkg_short_errors_supported = yes; then
68133	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
68134        else
68135	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
68136        fi
68137	# Put the nasty error message in config.log where it belongs
68138	echo "$CUDA_PKG_ERRORS" >&5
68139
68140	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68141$as_echo "no" >&6; }
68142
68143
68144pkg_failed=no
68145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68146$as_echo_n "checking for CUDA... " >&6; }
68147
68148if test -n "$PKG_CONFIG"; then
68149    if test -n "$CUDA_CFLAGS"; then
68150        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68151    else
68152        if test -n "$PKG_CONFIG" && \
68153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
68154  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
68155  ac_status=$?
68156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68157  test $ac_status = 0; }; then
68158  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
68159else
68160  pkg_failed=yes
68161fi
68162    fi
68163else
68164	pkg_failed=untried
68165fi
68166if test -n "$PKG_CONFIG"; then
68167    if test -n "$CUDA_LIBS"; then
68168        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68169    else
68170        if test -n "$PKG_CONFIG" && \
68171    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
68172  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
68173  ac_status=$?
68174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68175  test $ac_status = 0; }; then
68176  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
68177else
68178  pkg_failed=yes
68179fi
68180    fi
68181else
68182	pkg_failed=untried
68183fi
68184
68185
68186
68187if test $pkg_failed = yes; then
68188
68189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68190        _pkg_short_errors_supported=yes
68191else
68192        _pkg_short_errors_supported=no
68193fi
68194        if test $_pkg_short_errors_supported = yes; then
68195	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
68196        else
68197	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
68198        fi
68199	# Put the nasty error message in config.log where it belongs
68200	echo "$CUDA_PKG_ERRORS" >&5
68201
68202	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68203$as_echo "no" >&6; }
68204
68205
68206pkg_failed=no
68207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68208$as_echo_n "checking for CUDA... " >&6; }
68209
68210if test -n "$PKG_CONFIG"; then
68211    if test -n "$CUDA_CFLAGS"; then
68212        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68213    else
68214        if test -n "$PKG_CONFIG" && \
68215    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68216  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68217  ac_status=$?
68218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68219  test $ac_status = 0; }; then
68220  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
68221else
68222  pkg_failed=yes
68223fi
68224    fi
68225else
68226	pkg_failed=untried
68227fi
68228if test -n "$PKG_CONFIG"; then
68229    if test -n "$CUDA_LIBS"; then
68230        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68231    else
68232        if test -n "$PKG_CONFIG" && \
68233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68234  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68235  ac_status=$?
68236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68237  test $ac_status = 0; }; then
68238  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
68239else
68240  pkg_failed=yes
68241fi
68242    fi
68243else
68244	pkg_failed=untried
68245fi
68246
68247
68248
68249if test $pkg_failed = yes; then
68250
68251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68252        _pkg_short_errors_supported=yes
68253else
68254        _pkg_short_errors_supported=no
68255fi
68256        if test $_pkg_short_errors_supported = yes; then
68257	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68258        else
68259	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68260        fi
68261	# Put the nasty error message in config.log where it belongs
68262	echo "$CUDA_PKG_ERRORS" >&5
68263
68264	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68265$as_echo "no" >&6; }
68266
68267
68268pkg_failed=no
68269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68270$as_echo_n "checking for CUDA... " >&6; }
68271
68272if test -n "$PKG_CONFIG"; then
68273    if test -n "$CUDA_CFLAGS"; then
68274        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68275    else
68276        if test -n "$PKG_CONFIG" && \
68277    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68278  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68279  ac_status=$?
68280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68281  test $ac_status = 0; }; then
68282  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68283else
68284  pkg_failed=yes
68285fi
68286    fi
68287else
68288	pkg_failed=untried
68289fi
68290if test -n "$PKG_CONFIG"; then
68291    if test -n "$CUDA_LIBS"; then
68292        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68293    else
68294        if test -n "$PKG_CONFIG" && \
68295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68296  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68297  ac_status=$?
68298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68299  test $ac_status = 0; }; then
68300  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68301else
68302  pkg_failed=yes
68303fi
68304    fi
68305else
68306	pkg_failed=untried
68307fi
68308
68309
68310
68311if test $pkg_failed = yes; then
68312
68313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68314        _pkg_short_errors_supported=yes
68315else
68316        _pkg_short_errors_supported=no
68317fi
68318        if test $_pkg_short_errors_supported = yes; then
68319	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68320        else
68321	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68322        fi
68323	# Put the nasty error message in config.log where it belongs
68324	echo "$CUDA_PKG_ERRORS" >&5
68325
68326	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68327$as_echo "no" >&6; }
68328
68329                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68330$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68331elif test $pkg_failed = untried; then
68332
68333                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68334$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68335else
68336	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68337	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68338        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68339$as_echo "yes" >&6; }
68340	:
68341fi
68342elif test $pkg_failed = untried; then
68343
68344
68345pkg_failed=no
68346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68347$as_echo_n "checking for CUDA... " >&6; }
68348
68349if test -n "$PKG_CONFIG"; then
68350    if test -n "$CUDA_CFLAGS"; then
68351        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68352    else
68353        if test -n "$PKG_CONFIG" && \
68354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68355  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68356  ac_status=$?
68357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68358  test $ac_status = 0; }; then
68359  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68360else
68361  pkg_failed=yes
68362fi
68363    fi
68364else
68365	pkg_failed=untried
68366fi
68367if test -n "$PKG_CONFIG"; then
68368    if test -n "$CUDA_LIBS"; then
68369        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68370    else
68371        if test -n "$PKG_CONFIG" && \
68372    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68373  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68374  ac_status=$?
68375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68376  test $ac_status = 0; }; then
68377  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68378else
68379  pkg_failed=yes
68380fi
68381    fi
68382else
68383	pkg_failed=untried
68384fi
68385
68386
68387
68388if test $pkg_failed = yes; then
68389
68390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68391        _pkg_short_errors_supported=yes
68392else
68393        _pkg_short_errors_supported=no
68394fi
68395        if test $_pkg_short_errors_supported = yes; then
68396	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68397        else
68398	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68399        fi
68400	# Put the nasty error message in config.log where it belongs
68401	echo "$CUDA_PKG_ERRORS" >&5
68402
68403	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68404$as_echo "no" >&6; }
68405
68406                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68407$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68408elif test $pkg_failed = untried; then
68409
68410                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68411$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68412else
68413	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68414	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68415        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68416$as_echo "yes" >&6; }
68417	:
68418fi
68419else
68420	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68421	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68423$as_echo "yes" >&6; }
68424	:
68425fi
68426elif test $pkg_failed = untried; then
68427
68428
68429pkg_failed=no
68430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68431$as_echo_n "checking for CUDA... " >&6; }
68432
68433if test -n "$PKG_CONFIG"; then
68434    if test -n "$CUDA_CFLAGS"; then
68435        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68436    else
68437        if test -n "$PKG_CONFIG" && \
68438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68439  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68440  ac_status=$?
68441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68442  test $ac_status = 0; }; then
68443  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
68444else
68445  pkg_failed=yes
68446fi
68447    fi
68448else
68449	pkg_failed=untried
68450fi
68451if test -n "$PKG_CONFIG"; then
68452    if test -n "$CUDA_LIBS"; then
68453        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68454    else
68455        if test -n "$PKG_CONFIG" && \
68456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68457  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68458  ac_status=$?
68459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68460  test $ac_status = 0; }; then
68461  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
68462else
68463  pkg_failed=yes
68464fi
68465    fi
68466else
68467	pkg_failed=untried
68468fi
68469
68470
68471
68472if test $pkg_failed = yes; then
68473
68474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68475        _pkg_short_errors_supported=yes
68476else
68477        _pkg_short_errors_supported=no
68478fi
68479        if test $_pkg_short_errors_supported = yes; then
68480	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68481        else
68482	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68483        fi
68484	# Put the nasty error message in config.log where it belongs
68485	echo "$CUDA_PKG_ERRORS" >&5
68486
68487	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68488$as_echo "no" >&6; }
68489
68490
68491pkg_failed=no
68492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68493$as_echo_n "checking for CUDA... " >&6; }
68494
68495if test -n "$PKG_CONFIG"; then
68496    if test -n "$CUDA_CFLAGS"; then
68497        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68498    else
68499        if test -n "$PKG_CONFIG" && \
68500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68501  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68502  ac_status=$?
68503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68504  test $ac_status = 0; }; then
68505  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68506else
68507  pkg_failed=yes
68508fi
68509    fi
68510else
68511	pkg_failed=untried
68512fi
68513if test -n "$PKG_CONFIG"; then
68514    if test -n "$CUDA_LIBS"; then
68515        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68516    else
68517        if test -n "$PKG_CONFIG" && \
68518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68519  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68520  ac_status=$?
68521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68522  test $ac_status = 0; }; then
68523  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68524else
68525  pkg_failed=yes
68526fi
68527    fi
68528else
68529	pkg_failed=untried
68530fi
68531
68532
68533
68534if test $pkg_failed = yes; then
68535
68536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68537        _pkg_short_errors_supported=yes
68538else
68539        _pkg_short_errors_supported=no
68540fi
68541        if test $_pkg_short_errors_supported = yes; then
68542	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68543        else
68544	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68545        fi
68546	# Put the nasty error message in config.log where it belongs
68547	echo "$CUDA_PKG_ERRORS" >&5
68548
68549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68550$as_echo "no" >&6; }
68551
68552                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68553$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68554elif test $pkg_failed = untried; then
68555
68556                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68557$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68558else
68559	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68560	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68562$as_echo "yes" >&6; }
68563	:
68564fi
68565elif test $pkg_failed = untried; then
68566
68567
68568pkg_failed=no
68569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68570$as_echo_n "checking for CUDA... " >&6; }
68571
68572if test -n "$PKG_CONFIG"; then
68573    if test -n "$CUDA_CFLAGS"; then
68574        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68575    else
68576        if test -n "$PKG_CONFIG" && \
68577    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68578  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68579  ac_status=$?
68580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68581  test $ac_status = 0; }; then
68582  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68583else
68584  pkg_failed=yes
68585fi
68586    fi
68587else
68588	pkg_failed=untried
68589fi
68590if test -n "$PKG_CONFIG"; then
68591    if test -n "$CUDA_LIBS"; then
68592        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68593    else
68594        if test -n "$PKG_CONFIG" && \
68595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68596  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68597  ac_status=$?
68598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68599  test $ac_status = 0; }; then
68600  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68601else
68602  pkg_failed=yes
68603fi
68604    fi
68605else
68606	pkg_failed=untried
68607fi
68608
68609
68610
68611if test $pkg_failed = yes; then
68612
68613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68614        _pkg_short_errors_supported=yes
68615else
68616        _pkg_short_errors_supported=no
68617fi
68618        if test $_pkg_short_errors_supported = yes; then
68619	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68620        else
68621	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68622        fi
68623	# Put the nasty error message in config.log where it belongs
68624	echo "$CUDA_PKG_ERRORS" >&5
68625
68626	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68627$as_echo "no" >&6; }
68628
68629                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68630$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68631elif test $pkg_failed = untried; then
68632
68633                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68634$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68635else
68636	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68637	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68638        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68639$as_echo "yes" >&6; }
68640	:
68641fi
68642else
68643	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68644	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68646$as_echo "yes" >&6; }
68647	:
68648fi
68649else
68650	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68651	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68653$as_echo "yes" >&6; }
68654	:
68655fi
68656elif test $pkg_failed = untried; then
68657
68658
68659pkg_failed=no
68660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68661$as_echo_n "checking for CUDA... " >&6; }
68662
68663if test -n "$PKG_CONFIG"; then
68664    if test -n "$CUDA_CFLAGS"; then
68665        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68666    else
68667        if test -n "$PKG_CONFIG" && \
68668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
68669  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
68670  ac_status=$?
68671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68672  test $ac_status = 0; }; then
68673  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
68674else
68675  pkg_failed=yes
68676fi
68677    fi
68678else
68679	pkg_failed=untried
68680fi
68681if test -n "$PKG_CONFIG"; then
68682    if test -n "$CUDA_LIBS"; then
68683        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68684    else
68685        if test -n "$PKG_CONFIG" && \
68686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
68687  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
68688  ac_status=$?
68689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68690  test $ac_status = 0; }; then
68691  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
68692else
68693  pkg_failed=yes
68694fi
68695    fi
68696else
68697	pkg_failed=untried
68698fi
68699
68700
68701
68702if test $pkg_failed = yes; then
68703
68704if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68705        _pkg_short_errors_supported=yes
68706else
68707        _pkg_short_errors_supported=no
68708fi
68709        if test $_pkg_short_errors_supported = yes; then
68710	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
68711        else
68712	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
68713        fi
68714	# Put the nasty error message in config.log where it belongs
68715	echo "$CUDA_PKG_ERRORS" >&5
68716
68717	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68718$as_echo "no" >&6; }
68719
68720
68721pkg_failed=no
68722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68723$as_echo_n "checking for CUDA... " >&6; }
68724
68725if test -n "$PKG_CONFIG"; then
68726    if test -n "$CUDA_CFLAGS"; then
68727        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68728    else
68729        if test -n "$PKG_CONFIG" && \
68730    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68731  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68732  ac_status=$?
68733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68734  test $ac_status = 0; }; then
68735  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
68736else
68737  pkg_failed=yes
68738fi
68739    fi
68740else
68741	pkg_failed=untried
68742fi
68743if test -n "$PKG_CONFIG"; then
68744    if test -n "$CUDA_LIBS"; then
68745        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68746    else
68747        if test -n "$PKG_CONFIG" && \
68748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68749  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68750  ac_status=$?
68751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68752  test $ac_status = 0; }; then
68753  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
68754else
68755  pkg_failed=yes
68756fi
68757    fi
68758else
68759	pkg_failed=untried
68760fi
68761
68762
68763
68764if test $pkg_failed = yes; then
68765
68766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68767        _pkg_short_errors_supported=yes
68768else
68769        _pkg_short_errors_supported=no
68770fi
68771        if test $_pkg_short_errors_supported = yes; then
68772	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68773        else
68774	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68775        fi
68776	# Put the nasty error message in config.log where it belongs
68777	echo "$CUDA_PKG_ERRORS" >&5
68778
68779	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68780$as_echo "no" >&6; }
68781
68782
68783pkg_failed=no
68784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68785$as_echo_n "checking for CUDA... " >&6; }
68786
68787if test -n "$PKG_CONFIG"; then
68788    if test -n "$CUDA_CFLAGS"; then
68789        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68790    else
68791        if test -n "$PKG_CONFIG" && \
68792    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68793  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68794  ac_status=$?
68795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68796  test $ac_status = 0; }; then
68797  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68798else
68799  pkg_failed=yes
68800fi
68801    fi
68802else
68803	pkg_failed=untried
68804fi
68805if test -n "$PKG_CONFIG"; then
68806    if test -n "$CUDA_LIBS"; then
68807        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68808    else
68809        if test -n "$PKG_CONFIG" && \
68810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68811  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68812  ac_status=$?
68813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68814  test $ac_status = 0; }; then
68815  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68816else
68817  pkg_failed=yes
68818fi
68819    fi
68820else
68821	pkg_failed=untried
68822fi
68823
68824
68825
68826if test $pkg_failed = yes; then
68827
68828if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68829        _pkg_short_errors_supported=yes
68830else
68831        _pkg_short_errors_supported=no
68832fi
68833        if test $_pkg_short_errors_supported = yes; then
68834	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68835        else
68836	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68837        fi
68838	# Put the nasty error message in config.log where it belongs
68839	echo "$CUDA_PKG_ERRORS" >&5
68840
68841	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68842$as_echo "no" >&6; }
68843
68844                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68845$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68846elif test $pkg_failed = untried; then
68847
68848                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68849$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68850else
68851	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68852	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68854$as_echo "yes" >&6; }
68855	:
68856fi
68857elif test $pkg_failed = untried; then
68858
68859
68860pkg_failed=no
68861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68862$as_echo_n "checking for CUDA... " >&6; }
68863
68864if test -n "$PKG_CONFIG"; then
68865    if test -n "$CUDA_CFLAGS"; then
68866        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68867    else
68868        if test -n "$PKG_CONFIG" && \
68869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68870  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68871  ac_status=$?
68872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68873  test $ac_status = 0; }; then
68874  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
68875else
68876  pkg_failed=yes
68877fi
68878    fi
68879else
68880	pkg_failed=untried
68881fi
68882if test -n "$PKG_CONFIG"; then
68883    if test -n "$CUDA_LIBS"; then
68884        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68885    else
68886        if test -n "$PKG_CONFIG" && \
68887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
68888  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
68889  ac_status=$?
68890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68891  test $ac_status = 0; }; then
68892  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
68893else
68894  pkg_failed=yes
68895fi
68896    fi
68897else
68898	pkg_failed=untried
68899fi
68900
68901
68902
68903if test $pkg_failed = yes; then
68904
68905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68906        _pkg_short_errors_supported=yes
68907else
68908        _pkg_short_errors_supported=no
68909fi
68910        if test $_pkg_short_errors_supported = yes; then
68911	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68912        else
68913	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
68914        fi
68915	# Put the nasty error message in config.log where it belongs
68916	echo "$CUDA_PKG_ERRORS" >&5
68917
68918	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68919$as_echo "no" >&6; }
68920
68921                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68922$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68923elif test $pkg_failed = untried; then
68924
68925                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
68926$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
68927else
68928	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68929	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68931$as_echo "yes" >&6; }
68932	:
68933fi
68934else
68935	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
68936	CUDA_LIBS=$pkg_cv_CUDA_LIBS
68937        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68938$as_echo "yes" >&6; }
68939	:
68940fi
68941elif test $pkg_failed = untried; then
68942
68943
68944pkg_failed=no
68945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
68946$as_echo_n "checking for CUDA... " >&6; }
68947
68948if test -n "$PKG_CONFIG"; then
68949    if test -n "$CUDA_CFLAGS"; then
68950        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
68951    else
68952        if test -n "$PKG_CONFIG" && \
68953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68954  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68955  ac_status=$?
68956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68957  test $ac_status = 0; }; then
68958  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
68959else
68960  pkg_failed=yes
68961fi
68962    fi
68963else
68964	pkg_failed=untried
68965fi
68966if test -n "$PKG_CONFIG"; then
68967    if test -n "$CUDA_LIBS"; then
68968        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
68969    else
68970        if test -n "$PKG_CONFIG" && \
68971    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
68972  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
68973  ac_status=$?
68974  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
68975  test $ac_status = 0; }; then
68976  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
68977else
68978  pkg_failed=yes
68979fi
68980    fi
68981else
68982	pkg_failed=untried
68983fi
68984
68985
68986
68987if test $pkg_failed = yes; then
68988
68989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
68990        _pkg_short_errors_supported=yes
68991else
68992        _pkg_short_errors_supported=no
68993fi
68994        if test $_pkg_short_errors_supported = yes; then
68995	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68996        else
68997	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
68998        fi
68999	# Put the nasty error message in config.log where it belongs
69000	echo "$CUDA_PKG_ERRORS" >&5
69001
69002	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69003$as_echo "no" >&6; }
69004
69005
69006pkg_failed=no
69007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69008$as_echo_n "checking for CUDA... " >&6; }
69009
69010if test -n "$PKG_CONFIG"; then
69011    if test -n "$CUDA_CFLAGS"; then
69012        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69013    else
69014        if test -n "$PKG_CONFIG" && \
69015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69016  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69017  ac_status=$?
69018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69019  test $ac_status = 0; }; then
69020  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69021else
69022  pkg_failed=yes
69023fi
69024    fi
69025else
69026	pkg_failed=untried
69027fi
69028if test -n "$PKG_CONFIG"; then
69029    if test -n "$CUDA_LIBS"; then
69030        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69031    else
69032        if test -n "$PKG_CONFIG" && \
69033    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69034  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69035  ac_status=$?
69036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69037  test $ac_status = 0; }; then
69038  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69039else
69040  pkg_failed=yes
69041fi
69042    fi
69043else
69044	pkg_failed=untried
69045fi
69046
69047
69048
69049if test $pkg_failed = yes; then
69050
69051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69052        _pkg_short_errors_supported=yes
69053else
69054        _pkg_short_errors_supported=no
69055fi
69056        if test $_pkg_short_errors_supported = yes; then
69057	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69058        else
69059	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69060        fi
69061	# Put the nasty error message in config.log where it belongs
69062	echo "$CUDA_PKG_ERRORS" >&5
69063
69064	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69065$as_echo "no" >&6; }
69066
69067                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69068$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69069elif test $pkg_failed = untried; then
69070
69071                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69072$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69073else
69074	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69075	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69077$as_echo "yes" >&6; }
69078	:
69079fi
69080elif test $pkg_failed = untried; then
69081
69082
69083pkg_failed=no
69084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69085$as_echo_n "checking for CUDA... " >&6; }
69086
69087if test -n "$PKG_CONFIG"; then
69088    if test -n "$CUDA_CFLAGS"; then
69089        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69090    else
69091        if test -n "$PKG_CONFIG" && \
69092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69093  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69094  ac_status=$?
69095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69096  test $ac_status = 0; }; then
69097  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69098else
69099  pkg_failed=yes
69100fi
69101    fi
69102else
69103	pkg_failed=untried
69104fi
69105if test -n "$PKG_CONFIG"; then
69106    if test -n "$CUDA_LIBS"; then
69107        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69108    else
69109        if test -n "$PKG_CONFIG" && \
69110    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69111  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69112  ac_status=$?
69113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69114  test $ac_status = 0; }; then
69115  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69116else
69117  pkg_failed=yes
69118fi
69119    fi
69120else
69121	pkg_failed=untried
69122fi
69123
69124
69125
69126if test $pkg_failed = yes; then
69127
69128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69129        _pkg_short_errors_supported=yes
69130else
69131        _pkg_short_errors_supported=no
69132fi
69133        if test $_pkg_short_errors_supported = yes; then
69134	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69135        else
69136	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69137        fi
69138	# Put the nasty error message in config.log where it belongs
69139	echo "$CUDA_PKG_ERRORS" >&5
69140
69141	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69142$as_echo "no" >&6; }
69143
69144                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69145$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69146elif test $pkg_failed = untried; then
69147
69148                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69149$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69150else
69151	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69152	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69153        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69154$as_echo "yes" >&6; }
69155	:
69156fi
69157else
69158	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69159	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69160        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69161$as_echo "yes" >&6; }
69162	:
69163fi
69164else
69165	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69166	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69168$as_echo "yes" >&6; }
69169	:
69170fi
69171else
69172	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69173	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69174        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69175$as_echo "yes" >&6; }
69176	:
69177fi
69178elif test $pkg_failed = untried; then
69179
69180
69181pkg_failed=no
69182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69183$as_echo_n "checking for CUDA... " >&6; }
69184
69185if test -n "$PKG_CONFIG"; then
69186    if test -n "$CUDA_CFLAGS"; then
69187        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69188    else
69189        if test -n "$PKG_CONFIG" && \
69190    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
69191  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
69192  ac_status=$?
69193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69194  test $ac_status = 0; }; then
69195  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
69196else
69197  pkg_failed=yes
69198fi
69199    fi
69200else
69201	pkg_failed=untried
69202fi
69203if test -n "$PKG_CONFIG"; then
69204    if test -n "$CUDA_LIBS"; then
69205        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69206    else
69207        if test -n "$PKG_CONFIG" && \
69208    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
69209  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
69210  ac_status=$?
69211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69212  test $ac_status = 0; }; then
69213  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
69214else
69215  pkg_failed=yes
69216fi
69217    fi
69218else
69219	pkg_failed=untried
69220fi
69221
69222
69223
69224if test $pkg_failed = yes; then
69225
69226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69227        _pkg_short_errors_supported=yes
69228else
69229        _pkg_short_errors_supported=no
69230fi
69231        if test $_pkg_short_errors_supported = yes; then
69232	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
69233        else
69234	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
69235        fi
69236	# Put the nasty error message in config.log where it belongs
69237	echo "$CUDA_PKG_ERRORS" >&5
69238
69239	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69240$as_echo "no" >&6; }
69241
69242
69243pkg_failed=no
69244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69245$as_echo_n "checking for CUDA... " >&6; }
69246
69247if test -n "$PKG_CONFIG"; then
69248    if test -n "$CUDA_CFLAGS"; then
69249        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69250    else
69251        if test -n "$PKG_CONFIG" && \
69252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
69253  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
69254  ac_status=$?
69255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69256  test $ac_status = 0; }; then
69257  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
69258else
69259  pkg_failed=yes
69260fi
69261    fi
69262else
69263	pkg_failed=untried
69264fi
69265if test -n "$PKG_CONFIG"; then
69266    if test -n "$CUDA_LIBS"; then
69267        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69268    else
69269        if test -n "$PKG_CONFIG" && \
69270    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
69271  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
69272  ac_status=$?
69273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69274  test $ac_status = 0; }; then
69275  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
69276else
69277  pkg_failed=yes
69278fi
69279    fi
69280else
69281	pkg_failed=untried
69282fi
69283
69284
69285
69286if test $pkg_failed = yes; then
69287
69288if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69289        _pkg_short_errors_supported=yes
69290else
69291        _pkg_short_errors_supported=no
69292fi
69293        if test $_pkg_short_errors_supported = yes; then
69294	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
69295        else
69296	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
69297        fi
69298	# Put the nasty error message in config.log where it belongs
69299	echo "$CUDA_PKG_ERRORS" >&5
69300
69301	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69302$as_echo "no" >&6; }
69303
69304
69305pkg_failed=no
69306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69307$as_echo_n "checking for CUDA... " >&6; }
69308
69309if test -n "$PKG_CONFIG"; then
69310    if test -n "$CUDA_CFLAGS"; then
69311        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69312    else
69313        if test -n "$PKG_CONFIG" && \
69314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69315  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69316  ac_status=$?
69317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69318  test $ac_status = 0; }; then
69319  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
69320else
69321  pkg_failed=yes
69322fi
69323    fi
69324else
69325	pkg_failed=untried
69326fi
69327if test -n "$PKG_CONFIG"; then
69328    if test -n "$CUDA_LIBS"; then
69329        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69330    else
69331        if test -n "$PKG_CONFIG" && \
69332    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69333  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69334  ac_status=$?
69335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69336  test $ac_status = 0; }; then
69337  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
69338else
69339  pkg_failed=yes
69340fi
69341    fi
69342else
69343	pkg_failed=untried
69344fi
69345
69346
69347
69348if test $pkg_failed = yes; then
69349
69350if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69351        _pkg_short_errors_supported=yes
69352else
69353        _pkg_short_errors_supported=no
69354fi
69355        if test $_pkg_short_errors_supported = yes; then
69356	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69357        else
69358	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69359        fi
69360	# Put the nasty error message in config.log where it belongs
69361	echo "$CUDA_PKG_ERRORS" >&5
69362
69363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69364$as_echo "no" >&6; }
69365
69366
69367pkg_failed=no
69368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69369$as_echo_n "checking for CUDA... " >&6; }
69370
69371if test -n "$PKG_CONFIG"; then
69372    if test -n "$CUDA_CFLAGS"; then
69373        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69374    else
69375        if test -n "$PKG_CONFIG" && \
69376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69377  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69378  ac_status=$?
69379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69380  test $ac_status = 0; }; then
69381  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69382else
69383  pkg_failed=yes
69384fi
69385    fi
69386else
69387	pkg_failed=untried
69388fi
69389if test -n "$PKG_CONFIG"; then
69390    if test -n "$CUDA_LIBS"; then
69391        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69392    else
69393        if test -n "$PKG_CONFIG" && \
69394    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69395  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69396  ac_status=$?
69397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69398  test $ac_status = 0; }; then
69399  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69400else
69401  pkg_failed=yes
69402fi
69403    fi
69404else
69405	pkg_failed=untried
69406fi
69407
69408
69409
69410if test $pkg_failed = yes; then
69411
69412if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69413        _pkg_short_errors_supported=yes
69414else
69415        _pkg_short_errors_supported=no
69416fi
69417        if test $_pkg_short_errors_supported = yes; then
69418	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69419        else
69420	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69421        fi
69422	# Put the nasty error message in config.log where it belongs
69423	echo "$CUDA_PKG_ERRORS" >&5
69424
69425	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69426$as_echo "no" >&6; }
69427
69428                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69429$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69430elif test $pkg_failed = untried; then
69431
69432                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69433$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69434else
69435	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69436	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69437        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69438$as_echo "yes" >&6; }
69439	:
69440fi
69441elif test $pkg_failed = untried; then
69442
69443
69444pkg_failed=no
69445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69446$as_echo_n "checking for CUDA... " >&6; }
69447
69448if test -n "$PKG_CONFIG"; then
69449    if test -n "$CUDA_CFLAGS"; then
69450        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69451    else
69452        if test -n "$PKG_CONFIG" && \
69453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69454  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69455  ac_status=$?
69456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69457  test $ac_status = 0; }; then
69458  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69459else
69460  pkg_failed=yes
69461fi
69462    fi
69463else
69464	pkg_failed=untried
69465fi
69466if test -n "$PKG_CONFIG"; then
69467    if test -n "$CUDA_LIBS"; then
69468        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69469    else
69470        if test -n "$PKG_CONFIG" && \
69471    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69472  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69473  ac_status=$?
69474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69475  test $ac_status = 0; }; then
69476  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69477else
69478  pkg_failed=yes
69479fi
69480    fi
69481else
69482	pkg_failed=untried
69483fi
69484
69485
69486
69487if test $pkg_failed = yes; then
69488
69489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69490        _pkg_short_errors_supported=yes
69491else
69492        _pkg_short_errors_supported=no
69493fi
69494        if test $_pkg_short_errors_supported = yes; then
69495	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69496        else
69497	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69498        fi
69499	# Put the nasty error message in config.log where it belongs
69500	echo "$CUDA_PKG_ERRORS" >&5
69501
69502	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69503$as_echo "no" >&6; }
69504
69505                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69506$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69507elif test $pkg_failed = untried; then
69508
69509                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69510$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69511else
69512	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69513	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69514        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69515$as_echo "yes" >&6; }
69516	:
69517fi
69518else
69519	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69520	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69521        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69522$as_echo "yes" >&6; }
69523	:
69524fi
69525elif test $pkg_failed = untried; then
69526
69527
69528pkg_failed=no
69529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69530$as_echo_n "checking for CUDA... " >&6; }
69531
69532if test -n "$PKG_CONFIG"; then
69533    if test -n "$CUDA_CFLAGS"; then
69534        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69535    else
69536        if test -n "$PKG_CONFIG" && \
69537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69538  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69539  ac_status=$?
69540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69541  test $ac_status = 0; }; then
69542  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
69543else
69544  pkg_failed=yes
69545fi
69546    fi
69547else
69548	pkg_failed=untried
69549fi
69550if test -n "$PKG_CONFIG"; then
69551    if test -n "$CUDA_LIBS"; then
69552        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69553    else
69554        if test -n "$PKG_CONFIG" && \
69555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69556  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69557  ac_status=$?
69558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69559  test $ac_status = 0; }; then
69560  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
69561else
69562  pkg_failed=yes
69563fi
69564    fi
69565else
69566	pkg_failed=untried
69567fi
69568
69569
69570
69571if test $pkg_failed = yes; then
69572
69573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69574        _pkg_short_errors_supported=yes
69575else
69576        _pkg_short_errors_supported=no
69577fi
69578        if test $_pkg_short_errors_supported = yes; then
69579	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69580        else
69581	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69582        fi
69583	# Put the nasty error message in config.log where it belongs
69584	echo "$CUDA_PKG_ERRORS" >&5
69585
69586	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69587$as_echo "no" >&6; }
69588
69589
69590pkg_failed=no
69591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69592$as_echo_n "checking for CUDA... " >&6; }
69593
69594if test -n "$PKG_CONFIG"; then
69595    if test -n "$CUDA_CFLAGS"; then
69596        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69597    else
69598        if test -n "$PKG_CONFIG" && \
69599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69600  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69601  ac_status=$?
69602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69603  test $ac_status = 0; }; then
69604  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69605else
69606  pkg_failed=yes
69607fi
69608    fi
69609else
69610	pkg_failed=untried
69611fi
69612if test -n "$PKG_CONFIG"; then
69613    if test -n "$CUDA_LIBS"; then
69614        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69615    else
69616        if test -n "$PKG_CONFIG" && \
69617    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69618  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69619  ac_status=$?
69620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69621  test $ac_status = 0; }; then
69622  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69623else
69624  pkg_failed=yes
69625fi
69626    fi
69627else
69628	pkg_failed=untried
69629fi
69630
69631
69632
69633if test $pkg_failed = yes; then
69634
69635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69636        _pkg_short_errors_supported=yes
69637else
69638        _pkg_short_errors_supported=no
69639fi
69640        if test $_pkg_short_errors_supported = yes; then
69641	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69642        else
69643	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69644        fi
69645	# Put the nasty error message in config.log where it belongs
69646	echo "$CUDA_PKG_ERRORS" >&5
69647
69648	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69649$as_echo "no" >&6; }
69650
69651                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69652$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69653elif test $pkg_failed = untried; then
69654
69655                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69656$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69657else
69658	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69659	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69660        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69661$as_echo "yes" >&6; }
69662	:
69663fi
69664elif test $pkg_failed = untried; then
69665
69666
69667pkg_failed=no
69668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69669$as_echo_n "checking for CUDA... " >&6; }
69670
69671if test -n "$PKG_CONFIG"; then
69672    if test -n "$CUDA_CFLAGS"; then
69673        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69674    else
69675        if test -n "$PKG_CONFIG" && \
69676    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69677  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69678  ac_status=$?
69679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69680  test $ac_status = 0; }; then
69681  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69682else
69683  pkg_failed=yes
69684fi
69685    fi
69686else
69687	pkg_failed=untried
69688fi
69689if test -n "$PKG_CONFIG"; then
69690    if test -n "$CUDA_LIBS"; then
69691        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69692    else
69693        if test -n "$PKG_CONFIG" && \
69694    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69695  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69696  ac_status=$?
69697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69698  test $ac_status = 0; }; then
69699  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69700else
69701  pkg_failed=yes
69702fi
69703    fi
69704else
69705	pkg_failed=untried
69706fi
69707
69708
69709
69710if test $pkg_failed = yes; then
69711
69712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69713        _pkg_short_errors_supported=yes
69714else
69715        _pkg_short_errors_supported=no
69716fi
69717        if test $_pkg_short_errors_supported = yes; then
69718	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69719        else
69720	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69721        fi
69722	# Put the nasty error message in config.log where it belongs
69723	echo "$CUDA_PKG_ERRORS" >&5
69724
69725	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69726$as_echo "no" >&6; }
69727
69728                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69729$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69730elif test $pkg_failed = untried; then
69731
69732                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69733$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69734else
69735	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69736	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69737        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69738$as_echo "yes" >&6; }
69739	:
69740fi
69741else
69742	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69743	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69744        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69745$as_echo "yes" >&6; }
69746	:
69747fi
69748else
69749	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69750	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69752$as_echo "yes" >&6; }
69753	:
69754fi
69755elif test $pkg_failed = untried; then
69756
69757
69758pkg_failed=no
69759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69760$as_echo_n "checking for CUDA... " >&6; }
69761
69762if test -n "$PKG_CONFIG"; then
69763    if test -n "$CUDA_CFLAGS"; then
69764        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69765    else
69766        if test -n "$PKG_CONFIG" && \
69767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
69768  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
69769  ac_status=$?
69770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69771  test $ac_status = 0; }; then
69772  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
69773else
69774  pkg_failed=yes
69775fi
69776    fi
69777else
69778	pkg_failed=untried
69779fi
69780if test -n "$PKG_CONFIG"; then
69781    if test -n "$CUDA_LIBS"; then
69782        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69783    else
69784        if test -n "$PKG_CONFIG" && \
69785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
69786  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
69787  ac_status=$?
69788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69789  test $ac_status = 0; }; then
69790  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
69791else
69792  pkg_failed=yes
69793fi
69794    fi
69795else
69796	pkg_failed=untried
69797fi
69798
69799
69800
69801if test $pkg_failed = yes; then
69802
69803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69804        _pkg_short_errors_supported=yes
69805else
69806        _pkg_short_errors_supported=no
69807fi
69808        if test $_pkg_short_errors_supported = yes; then
69809	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
69810        else
69811	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
69812        fi
69813	# Put the nasty error message in config.log where it belongs
69814	echo "$CUDA_PKG_ERRORS" >&5
69815
69816	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69817$as_echo "no" >&6; }
69818
69819
69820pkg_failed=no
69821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69822$as_echo_n "checking for CUDA... " >&6; }
69823
69824if test -n "$PKG_CONFIG"; then
69825    if test -n "$CUDA_CFLAGS"; then
69826        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69827    else
69828        if test -n "$PKG_CONFIG" && \
69829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69830  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69831  ac_status=$?
69832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69833  test $ac_status = 0; }; then
69834  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
69835else
69836  pkg_failed=yes
69837fi
69838    fi
69839else
69840	pkg_failed=untried
69841fi
69842if test -n "$PKG_CONFIG"; then
69843    if test -n "$CUDA_LIBS"; then
69844        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69845    else
69846        if test -n "$PKG_CONFIG" && \
69847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
69848  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
69849  ac_status=$?
69850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69851  test $ac_status = 0; }; then
69852  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
69853else
69854  pkg_failed=yes
69855fi
69856    fi
69857else
69858	pkg_failed=untried
69859fi
69860
69861
69862
69863if test $pkg_failed = yes; then
69864
69865if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69866        _pkg_short_errors_supported=yes
69867else
69868        _pkg_short_errors_supported=no
69869fi
69870        if test $_pkg_short_errors_supported = yes; then
69871	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69872        else
69873	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
69874        fi
69875	# Put the nasty error message in config.log where it belongs
69876	echo "$CUDA_PKG_ERRORS" >&5
69877
69878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69879$as_echo "no" >&6; }
69880
69881
69882pkg_failed=no
69883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69884$as_echo_n "checking for CUDA... " >&6; }
69885
69886if test -n "$PKG_CONFIG"; then
69887    if test -n "$CUDA_CFLAGS"; then
69888        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69889    else
69890        if test -n "$PKG_CONFIG" && \
69891    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69892  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69893  ac_status=$?
69894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69895  test $ac_status = 0; }; then
69896  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69897else
69898  pkg_failed=yes
69899fi
69900    fi
69901else
69902	pkg_failed=untried
69903fi
69904if test -n "$PKG_CONFIG"; then
69905    if test -n "$CUDA_LIBS"; then
69906        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69907    else
69908        if test -n "$PKG_CONFIG" && \
69909    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69910  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69911  ac_status=$?
69912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69913  test $ac_status = 0; }; then
69914  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69915else
69916  pkg_failed=yes
69917fi
69918    fi
69919else
69920	pkg_failed=untried
69921fi
69922
69923
69924
69925if test $pkg_failed = yes; then
69926
69927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
69928        _pkg_short_errors_supported=yes
69929else
69930        _pkg_short_errors_supported=no
69931fi
69932        if test $_pkg_short_errors_supported = yes; then
69933	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69934        else
69935	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
69936        fi
69937	# Put the nasty error message in config.log where it belongs
69938	echo "$CUDA_PKG_ERRORS" >&5
69939
69940	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
69941$as_echo "no" >&6; }
69942
69943                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69944$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69945elif test $pkg_failed = untried; then
69946
69947                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
69948$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
69949else
69950	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
69951	CUDA_LIBS=$pkg_cv_CUDA_LIBS
69952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
69953$as_echo "yes" >&6; }
69954	:
69955fi
69956elif test $pkg_failed = untried; then
69957
69958
69959pkg_failed=no
69960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
69961$as_echo_n "checking for CUDA... " >&6; }
69962
69963if test -n "$PKG_CONFIG"; then
69964    if test -n "$CUDA_CFLAGS"; then
69965        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
69966    else
69967        if test -n "$PKG_CONFIG" && \
69968    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69969  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69970  ac_status=$?
69971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69972  test $ac_status = 0; }; then
69973  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
69974else
69975  pkg_failed=yes
69976fi
69977    fi
69978else
69979	pkg_failed=untried
69980fi
69981if test -n "$PKG_CONFIG"; then
69982    if test -n "$CUDA_LIBS"; then
69983        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
69984    else
69985        if test -n "$PKG_CONFIG" && \
69986    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
69987  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
69988  ac_status=$?
69989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69990  test $ac_status = 0; }; then
69991  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
69992else
69993  pkg_failed=yes
69994fi
69995    fi
69996else
69997	pkg_failed=untried
69998fi
69999
70000
70001
70002if test $pkg_failed = yes; then
70003
70004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70005        _pkg_short_errors_supported=yes
70006else
70007        _pkg_short_errors_supported=no
70008fi
70009        if test $_pkg_short_errors_supported = yes; then
70010	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70011        else
70012	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70013        fi
70014	# Put the nasty error message in config.log where it belongs
70015	echo "$CUDA_PKG_ERRORS" >&5
70016
70017	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70018$as_echo "no" >&6; }
70019
70020                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70021$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70022elif test $pkg_failed = untried; then
70023
70024                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70025$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70026else
70027	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70028	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70029        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70030$as_echo "yes" >&6; }
70031	:
70032fi
70033else
70034	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70035	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70037$as_echo "yes" >&6; }
70038	:
70039fi
70040elif test $pkg_failed = untried; then
70041
70042
70043pkg_failed=no
70044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70045$as_echo_n "checking for CUDA... " >&6; }
70046
70047if test -n "$PKG_CONFIG"; then
70048    if test -n "$CUDA_CFLAGS"; then
70049        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70050    else
70051        if test -n "$PKG_CONFIG" && \
70052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70053  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70054  ac_status=$?
70055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70056  test $ac_status = 0; }; then
70057  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
70058else
70059  pkg_failed=yes
70060fi
70061    fi
70062else
70063	pkg_failed=untried
70064fi
70065if test -n "$PKG_CONFIG"; then
70066    if test -n "$CUDA_LIBS"; then
70067        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70068    else
70069        if test -n "$PKG_CONFIG" && \
70070    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70071  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70072  ac_status=$?
70073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70074  test $ac_status = 0; }; then
70075  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
70076else
70077  pkg_failed=yes
70078fi
70079    fi
70080else
70081	pkg_failed=untried
70082fi
70083
70084
70085
70086if test $pkg_failed = yes; then
70087
70088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70089        _pkg_short_errors_supported=yes
70090else
70091        _pkg_short_errors_supported=no
70092fi
70093        if test $_pkg_short_errors_supported = yes; then
70094	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70095        else
70096	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70097        fi
70098	# Put the nasty error message in config.log where it belongs
70099	echo "$CUDA_PKG_ERRORS" >&5
70100
70101	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70102$as_echo "no" >&6; }
70103
70104
70105pkg_failed=no
70106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70107$as_echo_n "checking for CUDA... " >&6; }
70108
70109if test -n "$PKG_CONFIG"; then
70110    if test -n "$CUDA_CFLAGS"; then
70111        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70112    else
70113        if test -n "$PKG_CONFIG" && \
70114    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70115  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70116  ac_status=$?
70117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70118  test $ac_status = 0; }; then
70119  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70120else
70121  pkg_failed=yes
70122fi
70123    fi
70124else
70125	pkg_failed=untried
70126fi
70127if test -n "$PKG_CONFIG"; then
70128    if test -n "$CUDA_LIBS"; then
70129        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70130    else
70131        if test -n "$PKG_CONFIG" && \
70132    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70133  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70134  ac_status=$?
70135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70136  test $ac_status = 0; }; then
70137  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70138else
70139  pkg_failed=yes
70140fi
70141    fi
70142else
70143	pkg_failed=untried
70144fi
70145
70146
70147
70148if test $pkg_failed = yes; then
70149
70150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70151        _pkg_short_errors_supported=yes
70152else
70153        _pkg_short_errors_supported=no
70154fi
70155        if test $_pkg_short_errors_supported = yes; then
70156	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70157        else
70158	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70159        fi
70160	# Put the nasty error message in config.log where it belongs
70161	echo "$CUDA_PKG_ERRORS" >&5
70162
70163	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70164$as_echo "no" >&6; }
70165
70166                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70167$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70168elif test $pkg_failed = untried; then
70169
70170                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70171$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70172else
70173	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70174	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70175        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70176$as_echo "yes" >&6; }
70177	:
70178fi
70179elif test $pkg_failed = untried; then
70180
70181
70182pkg_failed=no
70183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70184$as_echo_n "checking for CUDA... " >&6; }
70185
70186if test -n "$PKG_CONFIG"; then
70187    if test -n "$CUDA_CFLAGS"; then
70188        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70189    else
70190        if test -n "$PKG_CONFIG" && \
70191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70192  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70193  ac_status=$?
70194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70195  test $ac_status = 0; }; then
70196  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70197else
70198  pkg_failed=yes
70199fi
70200    fi
70201else
70202	pkg_failed=untried
70203fi
70204if test -n "$PKG_CONFIG"; then
70205    if test -n "$CUDA_LIBS"; then
70206        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70207    else
70208        if test -n "$PKG_CONFIG" && \
70209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70210  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70211  ac_status=$?
70212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70213  test $ac_status = 0; }; then
70214  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70215else
70216  pkg_failed=yes
70217fi
70218    fi
70219else
70220	pkg_failed=untried
70221fi
70222
70223
70224
70225if test $pkg_failed = yes; then
70226
70227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70228        _pkg_short_errors_supported=yes
70229else
70230        _pkg_short_errors_supported=no
70231fi
70232        if test $_pkg_short_errors_supported = yes; then
70233	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70234        else
70235	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70236        fi
70237	# Put the nasty error message in config.log where it belongs
70238	echo "$CUDA_PKG_ERRORS" >&5
70239
70240	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70241$as_echo "no" >&6; }
70242
70243                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70244$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70245elif test $pkg_failed = untried; then
70246
70247                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70248$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70249else
70250	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70251	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70253$as_echo "yes" >&6; }
70254	:
70255fi
70256else
70257	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70258	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70260$as_echo "yes" >&6; }
70261	:
70262fi
70263else
70264	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70265	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70267$as_echo "yes" >&6; }
70268	:
70269fi
70270else
70271	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70272	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70273        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70274$as_echo "yes" >&6; }
70275	:
70276fi
70277else
70278	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70279	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70280        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70281$as_echo "yes" >&6; }
70282	:
70283fi
70284elif test $pkg_failed = untried; then
70285
70286
70287pkg_failed=no
70288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70289$as_echo_n "checking for CUDA... " >&6; }
70290
70291if test -n "$PKG_CONFIG"; then
70292    if test -n "$CUDA_CFLAGS"; then
70293        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70294    else
70295        if test -n "$PKG_CONFIG" && \
70296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
70297  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
70298  ac_status=$?
70299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70300  test $ac_status = 0; }; then
70301  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-9.0 cudart-9.0" 2>/dev/null`
70302else
70303  pkg_failed=yes
70304fi
70305    fi
70306else
70307	pkg_failed=untried
70308fi
70309if test -n "$PKG_CONFIG"; then
70310    if test -n "$CUDA_LIBS"; then
70311        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70312    else
70313        if test -n "$PKG_CONFIG" && \
70314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-9.0 cudart-9.0\""; } >&5
70315  ($PKG_CONFIG --exists --print-errors "cuda-9.0 cudart-9.0") 2>&5
70316  ac_status=$?
70317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70318  test $ac_status = 0; }; then
70319  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-9.0 cudart-9.0" 2>/dev/null`
70320else
70321  pkg_failed=yes
70322fi
70323    fi
70324else
70325	pkg_failed=untried
70326fi
70327
70328
70329
70330if test $pkg_failed = yes; then
70331
70332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70333        _pkg_short_errors_supported=yes
70334else
70335        _pkg_short_errors_supported=no
70336fi
70337        if test $_pkg_short_errors_supported = yes; then
70338	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
70339        else
70340	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-9.0 cudart-9.0"`
70341        fi
70342	# Put the nasty error message in config.log where it belongs
70343	echo "$CUDA_PKG_ERRORS" >&5
70344
70345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70346$as_echo "no" >&6; }
70347
70348
70349pkg_failed=no
70350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70351$as_echo_n "checking for CUDA... " >&6; }
70352
70353if test -n "$PKG_CONFIG"; then
70354    if test -n "$CUDA_CFLAGS"; then
70355        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70356    else
70357        if test -n "$PKG_CONFIG" && \
70358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
70359  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
70360  ac_status=$?
70361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70362  test $ac_status = 0; }; then
70363  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
70364else
70365  pkg_failed=yes
70366fi
70367    fi
70368else
70369	pkg_failed=untried
70370fi
70371if test -n "$PKG_CONFIG"; then
70372    if test -n "$CUDA_LIBS"; then
70373        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70374    else
70375        if test -n "$PKG_CONFIG" && \
70376    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
70377  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
70378  ac_status=$?
70379  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70380  test $ac_status = 0; }; then
70381  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
70382else
70383  pkg_failed=yes
70384fi
70385    fi
70386else
70387	pkg_failed=untried
70388fi
70389
70390
70391
70392if test $pkg_failed = yes; then
70393
70394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70395        _pkg_short_errors_supported=yes
70396else
70397        _pkg_short_errors_supported=no
70398fi
70399        if test $_pkg_short_errors_supported = yes; then
70400	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
70401        else
70402	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
70403        fi
70404	# Put the nasty error message in config.log where it belongs
70405	echo "$CUDA_PKG_ERRORS" >&5
70406
70407	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70408$as_echo "no" >&6; }
70409
70410
70411pkg_failed=no
70412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70413$as_echo_n "checking for CUDA... " >&6; }
70414
70415if test -n "$PKG_CONFIG"; then
70416    if test -n "$CUDA_CFLAGS"; then
70417        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70418    else
70419        if test -n "$PKG_CONFIG" && \
70420    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
70421  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
70422  ac_status=$?
70423  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70424  test $ac_status = 0; }; then
70425  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
70426else
70427  pkg_failed=yes
70428fi
70429    fi
70430else
70431	pkg_failed=untried
70432fi
70433if test -n "$PKG_CONFIG"; then
70434    if test -n "$CUDA_LIBS"; then
70435        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70436    else
70437        if test -n "$PKG_CONFIG" && \
70438    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
70439  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
70440  ac_status=$?
70441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70442  test $ac_status = 0; }; then
70443  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
70444else
70445  pkg_failed=yes
70446fi
70447    fi
70448else
70449	pkg_failed=untried
70450fi
70451
70452
70453
70454if test $pkg_failed = yes; then
70455
70456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70457        _pkg_short_errors_supported=yes
70458else
70459        _pkg_short_errors_supported=no
70460fi
70461        if test $_pkg_short_errors_supported = yes; then
70462	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
70463        else
70464	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
70465        fi
70466	# Put the nasty error message in config.log where it belongs
70467	echo "$CUDA_PKG_ERRORS" >&5
70468
70469	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70470$as_echo "no" >&6; }
70471
70472
70473pkg_failed=no
70474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70475$as_echo_n "checking for CUDA... " >&6; }
70476
70477if test -n "$PKG_CONFIG"; then
70478    if test -n "$CUDA_CFLAGS"; then
70479        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70480    else
70481        if test -n "$PKG_CONFIG" && \
70482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70483  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70484  ac_status=$?
70485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70486  test $ac_status = 0; }; then
70487  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
70488else
70489  pkg_failed=yes
70490fi
70491    fi
70492else
70493	pkg_failed=untried
70494fi
70495if test -n "$PKG_CONFIG"; then
70496    if test -n "$CUDA_LIBS"; then
70497        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70498    else
70499        if test -n "$PKG_CONFIG" && \
70500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70501  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70502  ac_status=$?
70503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70504  test $ac_status = 0; }; then
70505  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
70506else
70507  pkg_failed=yes
70508fi
70509    fi
70510else
70511	pkg_failed=untried
70512fi
70513
70514
70515
70516if test $pkg_failed = yes; then
70517
70518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70519        _pkg_short_errors_supported=yes
70520else
70521        _pkg_short_errors_supported=no
70522fi
70523        if test $_pkg_short_errors_supported = yes; then
70524	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70525        else
70526	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70527        fi
70528	# Put the nasty error message in config.log where it belongs
70529	echo "$CUDA_PKG_ERRORS" >&5
70530
70531	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70532$as_echo "no" >&6; }
70533
70534
70535pkg_failed=no
70536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70537$as_echo_n "checking for CUDA... " >&6; }
70538
70539if test -n "$PKG_CONFIG"; then
70540    if test -n "$CUDA_CFLAGS"; then
70541        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70542    else
70543        if test -n "$PKG_CONFIG" && \
70544    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70545  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70546  ac_status=$?
70547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70548  test $ac_status = 0; }; then
70549  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70550else
70551  pkg_failed=yes
70552fi
70553    fi
70554else
70555	pkg_failed=untried
70556fi
70557if test -n "$PKG_CONFIG"; then
70558    if test -n "$CUDA_LIBS"; then
70559        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70560    else
70561        if test -n "$PKG_CONFIG" && \
70562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70563  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70564  ac_status=$?
70565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70566  test $ac_status = 0; }; then
70567  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70568else
70569  pkg_failed=yes
70570fi
70571    fi
70572else
70573	pkg_failed=untried
70574fi
70575
70576
70577
70578if test $pkg_failed = yes; then
70579
70580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70581        _pkg_short_errors_supported=yes
70582else
70583        _pkg_short_errors_supported=no
70584fi
70585        if test $_pkg_short_errors_supported = yes; then
70586	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70587        else
70588	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70589        fi
70590	# Put the nasty error message in config.log where it belongs
70591	echo "$CUDA_PKG_ERRORS" >&5
70592
70593	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70594$as_echo "no" >&6; }
70595
70596                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70597$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70598elif test $pkg_failed = untried; then
70599
70600                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70601$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70602else
70603	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70604	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70605        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70606$as_echo "yes" >&6; }
70607	:
70608fi
70609elif test $pkg_failed = untried; then
70610
70611
70612pkg_failed=no
70613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70614$as_echo_n "checking for CUDA... " >&6; }
70615
70616if test -n "$PKG_CONFIG"; then
70617    if test -n "$CUDA_CFLAGS"; then
70618        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70619    else
70620        if test -n "$PKG_CONFIG" && \
70621    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70622  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70623  ac_status=$?
70624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70625  test $ac_status = 0; }; then
70626  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70627else
70628  pkg_failed=yes
70629fi
70630    fi
70631else
70632	pkg_failed=untried
70633fi
70634if test -n "$PKG_CONFIG"; then
70635    if test -n "$CUDA_LIBS"; then
70636        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70637    else
70638        if test -n "$PKG_CONFIG" && \
70639    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70640  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70641  ac_status=$?
70642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70643  test $ac_status = 0; }; then
70644  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70645else
70646  pkg_failed=yes
70647fi
70648    fi
70649else
70650	pkg_failed=untried
70651fi
70652
70653
70654
70655if test $pkg_failed = yes; then
70656
70657if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70658        _pkg_short_errors_supported=yes
70659else
70660        _pkg_short_errors_supported=no
70661fi
70662        if test $_pkg_short_errors_supported = yes; then
70663	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70664        else
70665	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70666        fi
70667	# Put the nasty error message in config.log where it belongs
70668	echo "$CUDA_PKG_ERRORS" >&5
70669
70670	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70671$as_echo "no" >&6; }
70672
70673                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70674$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70675elif test $pkg_failed = untried; then
70676
70677                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70678$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70679else
70680	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70681	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70682        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70683$as_echo "yes" >&6; }
70684	:
70685fi
70686else
70687	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70688	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70689        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70690$as_echo "yes" >&6; }
70691	:
70692fi
70693elif test $pkg_failed = untried; then
70694
70695
70696pkg_failed=no
70697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70698$as_echo_n "checking for CUDA... " >&6; }
70699
70700if test -n "$PKG_CONFIG"; then
70701    if test -n "$CUDA_CFLAGS"; then
70702        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70703    else
70704        if test -n "$PKG_CONFIG" && \
70705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70706  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70707  ac_status=$?
70708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70709  test $ac_status = 0; }; then
70710  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
70711else
70712  pkg_failed=yes
70713fi
70714    fi
70715else
70716	pkg_failed=untried
70717fi
70718if test -n "$PKG_CONFIG"; then
70719    if test -n "$CUDA_LIBS"; then
70720        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70721    else
70722        if test -n "$PKG_CONFIG" && \
70723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70724  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70725  ac_status=$?
70726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70727  test $ac_status = 0; }; then
70728  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
70729else
70730  pkg_failed=yes
70731fi
70732    fi
70733else
70734	pkg_failed=untried
70735fi
70736
70737
70738
70739if test $pkg_failed = yes; then
70740
70741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70742        _pkg_short_errors_supported=yes
70743else
70744        _pkg_short_errors_supported=no
70745fi
70746        if test $_pkg_short_errors_supported = yes; then
70747	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70748        else
70749	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
70750        fi
70751	# Put the nasty error message in config.log where it belongs
70752	echo "$CUDA_PKG_ERRORS" >&5
70753
70754	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70755$as_echo "no" >&6; }
70756
70757
70758pkg_failed=no
70759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70760$as_echo_n "checking for CUDA... " >&6; }
70761
70762if test -n "$PKG_CONFIG"; then
70763    if test -n "$CUDA_CFLAGS"; then
70764        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70765    else
70766        if test -n "$PKG_CONFIG" && \
70767    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70768  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70769  ac_status=$?
70770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70771  test $ac_status = 0; }; then
70772  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70773else
70774  pkg_failed=yes
70775fi
70776    fi
70777else
70778	pkg_failed=untried
70779fi
70780if test -n "$PKG_CONFIG"; then
70781    if test -n "$CUDA_LIBS"; then
70782        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70783    else
70784        if test -n "$PKG_CONFIG" && \
70785    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70786  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70787  ac_status=$?
70788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70789  test $ac_status = 0; }; then
70790  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70791else
70792  pkg_failed=yes
70793fi
70794    fi
70795else
70796	pkg_failed=untried
70797fi
70798
70799
70800
70801if test $pkg_failed = yes; then
70802
70803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70804        _pkg_short_errors_supported=yes
70805else
70806        _pkg_short_errors_supported=no
70807fi
70808        if test $_pkg_short_errors_supported = yes; then
70809	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70810        else
70811	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70812        fi
70813	# Put the nasty error message in config.log where it belongs
70814	echo "$CUDA_PKG_ERRORS" >&5
70815
70816	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70817$as_echo "no" >&6; }
70818
70819                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70820$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70821elif test $pkg_failed = untried; then
70822
70823                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70824$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70825else
70826	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70827	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70829$as_echo "yes" >&6; }
70830	:
70831fi
70832elif test $pkg_failed = untried; then
70833
70834
70835pkg_failed=no
70836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70837$as_echo_n "checking for CUDA... " >&6; }
70838
70839if test -n "$PKG_CONFIG"; then
70840    if test -n "$CUDA_CFLAGS"; then
70841        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70842    else
70843        if test -n "$PKG_CONFIG" && \
70844    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70845  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70846  ac_status=$?
70847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70848  test $ac_status = 0; }; then
70849  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
70850else
70851  pkg_failed=yes
70852fi
70853    fi
70854else
70855	pkg_failed=untried
70856fi
70857if test -n "$PKG_CONFIG"; then
70858    if test -n "$CUDA_LIBS"; then
70859        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70860    else
70861        if test -n "$PKG_CONFIG" && \
70862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
70863  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
70864  ac_status=$?
70865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70866  test $ac_status = 0; }; then
70867  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
70868else
70869  pkg_failed=yes
70870fi
70871    fi
70872else
70873	pkg_failed=untried
70874fi
70875
70876
70877
70878if test $pkg_failed = yes; then
70879
70880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70881        _pkg_short_errors_supported=yes
70882else
70883        _pkg_short_errors_supported=no
70884fi
70885        if test $_pkg_short_errors_supported = yes; then
70886	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70887        else
70888	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
70889        fi
70890	# Put the nasty error message in config.log where it belongs
70891	echo "$CUDA_PKG_ERRORS" >&5
70892
70893	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70894$as_echo "no" >&6; }
70895
70896                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70897$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70898elif test $pkg_failed = untried; then
70899
70900                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
70901$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
70902else
70903	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70904	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70905        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70906$as_echo "yes" >&6; }
70907	:
70908fi
70909else
70910	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70911	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70912        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70913$as_echo "yes" >&6; }
70914	:
70915fi
70916else
70917	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
70918	CUDA_LIBS=$pkg_cv_CUDA_LIBS
70919        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
70920$as_echo "yes" >&6; }
70921	:
70922fi
70923elif test $pkg_failed = untried; then
70924
70925
70926pkg_failed=no
70927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70928$as_echo_n "checking for CUDA... " >&6; }
70929
70930if test -n "$PKG_CONFIG"; then
70931    if test -n "$CUDA_CFLAGS"; then
70932        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70933    else
70934        if test -n "$PKG_CONFIG" && \
70935    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
70936  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
70937  ac_status=$?
70938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70939  test $ac_status = 0; }; then
70940  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
70941else
70942  pkg_failed=yes
70943fi
70944    fi
70945else
70946	pkg_failed=untried
70947fi
70948if test -n "$PKG_CONFIG"; then
70949    if test -n "$CUDA_LIBS"; then
70950        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
70951    else
70952        if test -n "$PKG_CONFIG" && \
70953    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
70954  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
70955  ac_status=$?
70956  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
70957  test $ac_status = 0; }; then
70958  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
70959else
70960  pkg_failed=yes
70961fi
70962    fi
70963else
70964	pkg_failed=untried
70965fi
70966
70967
70968
70969if test $pkg_failed = yes; then
70970
70971if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
70972        _pkg_short_errors_supported=yes
70973else
70974        _pkg_short_errors_supported=no
70975fi
70976        if test $_pkg_short_errors_supported = yes; then
70977	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
70978        else
70979	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
70980        fi
70981	# Put the nasty error message in config.log where it belongs
70982	echo "$CUDA_PKG_ERRORS" >&5
70983
70984	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70985$as_echo "no" >&6; }
70986
70987
70988pkg_failed=no
70989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
70990$as_echo_n "checking for CUDA... " >&6; }
70991
70992if test -n "$PKG_CONFIG"; then
70993    if test -n "$CUDA_CFLAGS"; then
70994        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
70995    else
70996        if test -n "$PKG_CONFIG" && \
70997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
70998  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
70999  ac_status=$?
71000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71001  test $ac_status = 0; }; then
71002  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
71003else
71004  pkg_failed=yes
71005fi
71006    fi
71007else
71008	pkg_failed=untried
71009fi
71010if test -n "$PKG_CONFIG"; then
71011    if test -n "$CUDA_LIBS"; then
71012        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71013    else
71014        if test -n "$PKG_CONFIG" && \
71015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71016  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71017  ac_status=$?
71018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71019  test $ac_status = 0; }; then
71020  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
71021else
71022  pkg_failed=yes
71023fi
71024    fi
71025else
71026	pkg_failed=untried
71027fi
71028
71029
71030
71031if test $pkg_failed = yes; then
71032
71033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71034        _pkg_short_errors_supported=yes
71035else
71036        _pkg_short_errors_supported=no
71037fi
71038        if test $_pkg_short_errors_supported = yes; then
71039	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71040        else
71041	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71042        fi
71043	# Put the nasty error message in config.log where it belongs
71044	echo "$CUDA_PKG_ERRORS" >&5
71045
71046	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71047$as_echo "no" >&6; }
71048
71049
71050pkg_failed=no
71051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71052$as_echo_n "checking for CUDA... " >&6; }
71053
71054if test -n "$PKG_CONFIG"; then
71055    if test -n "$CUDA_CFLAGS"; then
71056        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71057    else
71058        if test -n "$PKG_CONFIG" && \
71059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71060  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71061  ac_status=$?
71062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71063  test $ac_status = 0; }; then
71064  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71065else
71066  pkg_failed=yes
71067fi
71068    fi
71069else
71070	pkg_failed=untried
71071fi
71072if test -n "$PKG_CONFIG"; then
71073    if test -n "$CUDA_LIBS"; then
71074        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71075    else
71076        if test -n "$PKG_CONFIG" && \
71077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71078  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71079  ac_status=$?
71080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71081  test $ac_status = 0; }; then
71082  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71083else
71084  pkg_failed=yes
71085fi
71086    fi
71087else
71088	pkg_failed=untried
71089fi
71090
71091
71092
71093if test $pkg_failed = yes; then
71094
71095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71096        _pkg_short_errors_supported=yes
71097else
71098        _pkg_short_errors_supported=no
71099fi
71100        if test $_pkg_short_errors_supported = yes; then
71101	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71102        else
71103	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71104        fi
71105	# Put the nasty error message in config.log where it belongs
71106	echo "$CUDA_PKG_ERRORS" >&5
71107
71108	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71109$as_echo "no" >&6; }
71110
71111                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71112$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71113elif test $pkg_failed = untried; then
71114
71115                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71116$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71117else
71118	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71119	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71121$as_echo "yes" >&6; }
71122	:
71123fi
71124elif test $pkg_failed = untried; then
71125
71126
71127pkg_failed=no
71128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71129$as_echo_n "checking for CUDA... " >&6; }
71130
71131if test -n "$PKG_CONFIG"; then
71132    if test -n "$CUDA_CFLAGS"; then
71133        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71134    else
71135        if test -n "$PKG_CONFIG" && \
71136    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71137  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71138  ac_status=$?
71139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71140  test $ac_status = 0; }; then
71141  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71142else
71143  pkg_failed=yes
71144fi
71145    fi
71146else
71147	pkg_failed=untried
71148fi
71149if test -n "$PKG_CONFIG"; then
71150    if test -n "$CUDA_LIBS"; then
71151        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71152    else
71153        if test -n "$PKG_CONFIG" && \
71154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71155  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71156  ac_status=$?
71157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71158  test $ac_status = 0; }; then
71159  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71160else
71161  pkg_failed=yes
71162fi
71163    fi
71164else
71165	pkg_failed=untried
71166fi
71167
71168
71169
71170if test $pkg_failed = yes; then
71171
71172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71173        _pkg_short_errors_supported=yes
71174else
71175        _pkg_short_errors_supported=no
71176fi
71177        if test $_pkg_short_errors_supported = yes; then
71178	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71179        else
71180	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71181        fi
71182	# Put the nasty error message in config.log where it belongs
71183	echo "$CUDA_PKG_ERRORS" >&5
71184
71185	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71186$as_echo "no" >&6; }
71187
71188                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71189$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71190elif test $pkg_failed = untried; then
71191
71192                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71193$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71194else
71195	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71196	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71197        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71198$as_echo "yes" >&6; }
71199	:
71200fi
71201else
71202	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71203	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71204        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71205$as_echo "yes" >&6; }
71206	:
71207fi
71208elif test $pkg_failed = untried; then
71209
71210
71211pkg_failed=no
71212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71213$as_echo_n "checking for CUDA... " >&6; }
71214
71215if test -n "$PKG_CONFIG"; then
71216    if test -n "$CUDA_CFLAGS"; then
71217        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71218    else
71219        if test -n "$PKG_CONFIG" && \
71220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71221  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71222  ac_status=$?
71223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71224  test $ac_status = 0; }; then
71225  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
71226else
71227  pkg_failed=yes
71228fi
71229    fi
71230else
71231	pkg_failed=untried
71232fi
71233if test -n "$PKG_CONFIG"; then
71234    if test -n "$CUDA_LIBS"; then
71235        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71236    else
71237        if test -n "$PKG_CONFIG" && \
71238    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71239  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71240  ac_status=$?
71241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71242  test $ac_status = 0; }; then
71243  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
71244else
71245  pkg_failed=yes
71246fi
71247    fi
71248else
71249	pkg_failed=untried
71250fi
71251
71252
71253
71254if test $pkg_failed = yes; then
71255
71256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71257        _pkg_short_errors_supported=yes
71258else
71259        _pkg_short_errors_supported=no
71260fi
71261        if test $_pkg_short_errors_supported = yes; then
71262	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71263        else
71264	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71265        fi
71266	# Put the nasty error message in config.log where it belongs
71267	echo "$CUDA_PKG_ERRORS" >&5
71268
71269	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71270$as_echo "no" >&6; }
71271
71272
71273pkg_failed=no
71274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71275$as_echo_n "checking for CUDA... " >&6; }
71276
71277if test -n "$PKG_CONFIG"; then
71278    if test -n "$CUDA_CFLAGS"; then
71279        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71280    else
71281        if test -n "$PKG_CONFIG" && \
71282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71283  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71284  ac_status=$?
71285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71286  test $ac_status = 0; }; then
71287  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71288else
71289  pkg_failed=yes
71290fi
71291    fi
71292else
71293	pkg_failed=untried
71294fi
71295if test -n "$PKG_CONFIG"; then
71296    if test -n "$CUDA_LIBS"; then
71297        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71298    else
71299        if test -n "$PKG_CONFIG" && \
71300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71301  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71302  ac_status=$?
71303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71304  test $ac_status = 0; }; then
71305  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71306else
71307  pkg_failed=yes
71308fi
71309    fi
71310else
71311	pkg_failed=untried
71312fi
71313
71314
71315
71316if test $pkg_failed = yes; then
71317
71318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71319        _pkg_short_errors_supported=yes
71320else
71321        _pkg_short_errors_supported=no
71322fi
71323        if test $_pkg_short_errors_supported = yes; then
71324	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71325        else
71326	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71327        fi
71328	# Put the nasty error message in config.log where it belongs
71329	echo "$CUDA_PKG_ERRORS" >&5
71330
71331	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71332$as_echo "no" >&6; }
71333
71334                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71335$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71336elif test $pkg_failed = untried; then
71337
71338                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71339$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71340else
71341	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71342	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71344$as_echo "yes" >&6; }
71345	:
71346fi
71347elif test $pkg_failed = untried; then
71348
71349
71350pkg_failed=no
71351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71352$as_echo_n "checking for CUDA... " >&6; }
71353
71354if test -n "$PKG_CONFIG"; then
71355    if test -n "$CUDA_CFLAGS"; then
71356        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71357    else
71358        if test -n "$PKG_CONFIG" && \
71359    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71360  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71361  ac_status=$?
71362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71363  test $ac_status = 0; }; then
71364  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71365else
71366  pkg_failed=yes
71367fi
71368    fi
71369else
71370	pkg_failed=untried
71371fi
71372if test -n "$PKG_CONFIG"; then
71373    if test -n "$CUDA_LIBS"; then
71374        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71375    else
71376        if test -n "$PKG_CONFIG" && \
71377    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71378  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71379  ac_status=$?
71380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71381  test $ac_status = 0; }; then
71382  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71383else
71384  pkg_failed=yes
71385fi
71386    fi
71387else
71388	pkg_failed=untried
71389fi
71390
71391
71392
71393if test $pkg_failed = yes; then
71394
71395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71396        _pkg_short_errors_supported=yes
71397else
71398        _pkg_short_errors_supported=no
71399fi
71400        if test $_pkg_short_errors_supported = yes; then
71401	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71402        else
71403	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71404        fi
71405	# Put the nasty error message in config.log where it belongs
71406	echo "$CUDA_PKG_ERRORS" >&5
71407
71408	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71409$as_echo "no" >&6; }
71410
71411                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71412$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71413elif test $pkg_failed = untried; then
71414
71415                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71416$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71417else
71418	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71419	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71421$as_echo "yes" >&6; }
71422	:
71423fi
71424else
71425	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71426	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71427        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71428$as_echo "yes" >&6; }
71429	:
71430fi
71431else
71432	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71433	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71435$as_echo "yes" >&6; }
71436	:
71437fi
71438else
71439	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71440	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71441        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71442$as_echo "yes" >&6; }
71443	:
71444fi
71445elif test $pkg_failed = untried; then
71446
71447
71448pkg_failed=no
71449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71450$as_echo_n "checking for CUDA... " >&6; }
71451
71452if test -n "$PKG_CONFIG"; then
71453    if test -n "$CUDA_CFLAGS"; then
71454        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71455    else
71456        if test -n "$PKG_CONFIG" && \
71457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
71458  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
71459  ac_status=$?
71460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71461  test $ac_status = 0; }; then
71462  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-8.0 cudart-8.0" 2>/dev/null`
71463else
71464  pkg_failed=yes
71465fi
71466    fi
71467else
71468	pkg_failed=untried
71469fi
71470if test -n "$PKG_CONFIG"; then
71471    if test -n "$CUDA_LIBS"; then
71472        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71473    else
71474        if test -n "$PKG_CONFIG" && \
71475    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-8.0 cudart-8.0\""; } >&5
71476  ($PKG_CONFIG --exists --print-errors "cuda-8.0 cudart-8.0") 2>&5
71477  ac_status=$?
71478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71479  test $ac_status = 0; }; then
71480  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-8.0 cudart-8.0" 2>/dev/null`
71481else
71482  pkg_failed=yes
71483fi
71484    fi
71485else
71486	pkg_failed=untried
71487fi
71488
71489
71490
71491if test $pkg_failed = yes; then
71492
71493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71494        _pkg_short_errors_supported=yes
71495else
71496        _pkg_short_errors_supported=no
71497fi
71498        if test $_pkg_short_errors_supported = yes; then
71499	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
71500        else
71501	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-8.0 cudart-8.0"`
71502        fi
71503	# Put the nasty error message in config.log where it belongs
71504	echo "$CUDA_PKG_ERRORS" >&5
71505
71506	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71507$as_echo "no" >&6; }
71508
71509
71510pkg_failed=no
71511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71512$as_echo_n "checking for CUDA... " >&6; }
71513
71514if test -n "$PKG_CONFIG"; then
71515    if test -n "$CUDA_CFLAGS"; then
71516        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71517    else
71518        if test -n "$PKG_CONFIG" && \
71519    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
71520  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
71521  ac_status=$?
71522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71523  test $ac_status = 0; }; then
71524  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
71525else
71526  pkg_failed=yes
71527fi
71528    fi
71529else
71530	pkg_failed=untried
71531fi
71532if test -n "$PKG_CONFIG"; then
71533    if test -n "$CUDA_LIBS"; then
71534        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71535    else
71536        if test -n "$PKG_CONFIG" && \
71537    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
71538  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
71539  ac_status=$?
71540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71541  test $ac_status = 0; }; then
71542  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
71543else
71544  pkg_failed=yes
71545fi
71546    fi
71547else
71548	pkg_failed=untried
71549fi
71550
71551
71552
71553if test $pkg_failed = yes; then
71554
71555if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71556        _pkg_short_errors_supported=yes
71557else
71558        _pkg_short_errors_supported=no
71559fi
71560        if test $_pkg_short_errors_supported = yes; then
71561	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
71562        else
71563	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
71564        fi
71565	# Put the nasty error message in config.log where it belongs
71566	echo "$CUDA_PKG_ERRORS" >&5
71567
71568	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71569$as_echo "no" >&6; }
71570
71571
71572pkg_failed=no
71573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71574$as_echo_n "checking for CUDA... " >&6; }
71575
71576if test -n "$PKG_CONFIG"; then
71577    if test -n "$CUDA_CFLAGS"; then
71578        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71579    else
71580        if test -n "$PKG_CONFIG" && \
71581    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71582  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71583  ac_status=$?
71584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71585  test $ac_status = 0; }; then
71586  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
71587else
71588  pkg_failed=yes
71589fi
71590    fi
71591else
71592	pkg_failed=untried
71593fi
71594if test -n "$PKG_CONFIG"; then
71595    if test -n "$CUDA_LIBS"; then
71596        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71597    else
71598        if test -n "$PKG_CONFIG" && \
71599    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71600  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71601  ac_status=$?
71602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71603  test $ac_status = 0; }; then
71604  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
71605else
71606  pkg_failed=yes
71607fi
71608    fi
71609else
71610	pkg_failed=untried
71611fi
71612
71613
71614
71615if test $pkg_failed = yes; then
71616
71617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71618        _pkg_short_errors_supported=yes
71619else
71620        _pkg_short_errors_supported=no
71621fi
71622        if test $_pkg_short_errors_supported = yes; then
71623	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71624        else
71625	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71626        fi
71627	# Put the nasty error message in config.log where it belongs
71628	echo "$CUDA_PKG_ERRORS" >&5
71629
71630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71631$as_echo "no" >&6; }
71632
71633
71634pkg_failed=no
71635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71636$as_echo_n "checking for CUDA... " >&6; }
71637
71638if test -n "$PKG_CONFIG"; then
71639    if test -n "$CUDA_CFLAGS"; then
71640        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71641    else
71642        if test -n "$PKG_CONFIG" && \
71643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71644  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71645  ac_status=$?
71646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71647  test $ac_status = 0; }; then
71648  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71649else
71650  pkg_failed=yes
71651fi
71652    fi
71653else
71654	pkg_failed=untried
71655fi
71656if test -n "$PKG_CONFIG"; then
71657    if test -n "$CUDA_LIBS"; then
71658        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71659    else
71660        if test -n "$PKG_CONFIG" && \
71661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71662  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71663  ac_status=$?
71664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71665  test $ac_status = 0; }; then
71666  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71667else
71668  pkg_failed=yes
71669fi
71670    fi
71671else
71672	pkg_failed=untried
71673fi
71674
71675
71676
71677if test $pkg_failed = yes; then
71678
71679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71680        _pkg_short_errors_supported=yes
71681else
71682        _pkg_short_errors_supported=no
71683fi
71684        if test $_pkg_short_errors_supported = yes; then
71685	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71686        else
71687	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71688        fi
71689	# Put the nasty error message in config.log where it belongs
71690	echo "$CUDA_PKG_ERRORS" >&5
71691
71692	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71693$as_echo "no" >&6; }
71694
71695                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71696$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71697elif test $pkg_failed = untried; then
71698
71699                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71700$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71701else
71702	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71703	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71704        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71705$as_echo "yes" >&6; }
71706	:
71707fi
71708elif test $pkg_failed = untried; then
71709
71710
71711pkg_failed=no
71712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71713$as_echo_n "checking for CUDA... " >&6; }
71714
71715if test -n "$PKG_CONFIG"; then
71716    if test -n "$CUDA_CFLAGS"; then
71717        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71718    else
71719        if test -n "$PKG_CONFIG" && \
71720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71721  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71722  ac_status=$?
71723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71724  test $ac_status = 0; }; then
71725  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71726else
71727  pkg_failed=yes
71728fi
71729    fi
71730else
71731	pkg_failed=untried
71732fi
71733if test -n "$PKG_CONFIG"; then
71734    if test -n "$CUDA_LIBS"; then
71735        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71736    else
71737        if test -n "$PKG_CONFIG" && \
71738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71739  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71740  ac_status=$?
71741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71742  test $ac_status = 0; }; then
71743  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71744else
71745  pkg_failed=yes
71746fi
71747    fi
71748else
71749	pkg_failed=untried
71750fi
71751
71752
71753
71754if test $pkg_failed = yes; then
71755
71756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71757        _pkg_short_errors_supported=yes
71758else
71759        _pkg_short_errors_supported=no
71760fi
71761        if test $_pkg_short_errors_supported = yes; then
71762	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71763        else
71764	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71765        fi
71766	# Put the nasty error message in config.log where it belongs
71767	echo "$CUDA_PKG_ERRORS" >&5
71768
71769	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71770$as_echo "no" >&6; }
71771
71772                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71773$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71774elif test $pkg_failed = untried; then
71775
71776                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71777$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71778else
71779	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71780	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71782$as_echo "yes" >&6; }
71783	:
71784fi
71785else
71786	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71787	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71789$as_echo "yes" >&6; }
71790	:
71791fi
71792elif test $pkg_failed = untried; then
71793
71794
71795pkg_failed=no
71796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71797$as_echo_n "checking for CUDA... " >&6; }
71798
71799if test -n "$PKG_CONFIG"; then
71800    if test -n "$CUDA_CFLAGS"; then
71801        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71802    else
71803        if test -n "$PKG_CONFIG" && \
71804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71805  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71806  ac_status=$?
71807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71808  test $ac_status = 0; }; then
71809  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
71810else
71811  pkg_failed=yes
71812fi
71813    fi
71814else
71815	pkg_failed=untried
71816fi
71817if test -n "$PKG_CONFIG"; then
71818    if test -n "$CUDA_LIBS"; then
71819        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71820    else
71821        if test -n "$PKG_CONFIG" && \
71822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
71823  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
71824  ac_status=$?
71825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71826  test $ac_status = 0; }; then
71827  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
71828else
71829  pkg_failed=yes
71830fi
71831    fi
71832else
71833	pkg_failed=untried
71834fi
71835
71836
71837
71838if test $pkg_failed = yes; then
71839
71840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71841        _pkg_short_errors_supported=yes
71842else
71843        _pkg_short_errors_supported=no
71844fi
71845        if test $_pkg_short_errors_supported = yes; then
71846	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71847        else
71848	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
71849        fi
71850	# Put the nasty error message in config.log where it belongs
71851	echo "$CUDA_PKG_ERRORS" >&5
71852
71853	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71854$as_echo "no" >&6; }
71855
71856
71857pkg_failed=no
71858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71859$as_echo_n "checking for CUDA... " >&6; }
71860
71861if test -n "$PKG_CONFIG"; then
71862    if test -n "$CUDA_CFLAGS"; then
71863        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71864    else
71865        if test -n "$PKG_CONFIG" && \
71866    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71867  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71868  ac_status=$?
71869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71870  test $ac_status = 0; }; then
71871  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71872else
71873  pkg_failed=yes
71874fi
71875    fi
71876else
71877	pkg_failed=untried
71878fi
71879if test -n "$PKG_CONFIG"; then
71880    if test -n "$CUDA_LIBS"; then
71881        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71882    else
71883        if test -n "$PKG_CONFIG" && \
71884    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71885  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71886  ac_status=$?
71887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71888  test $ac_status = 0; }; then
71889  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71890else
71891  pkg_failed=yes
71892fi
71893    fi
71894else
71895	pkg_failed=untried
71896fi
71897
71898
71899
71900if test $pkg_failed = yes; then
71901
71902if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71903        _pkg_short_errors_supported=yes
71904else
71905        _pkg_short_errors_supported=no
71906fi
71907        if test $_pkg_short_errors_supported = yes; then
71908	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71909        else
71910	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71911        fi
71912	# Put the nasty error message in config.log where it belongs
71913	echo "$CUDA_PKG_ERRORS" >&5
71914
71915	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71916$as_echo "no" >&6; }
71917
71918                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71919$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71920elif test $pkg_failed = untried; then
71921
71922                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71923$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71924else
71925	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
71926	CUDA_LIBS=$pkg_cv_CUDA_LIBS
71927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
71928$as_echo "yes" >&6; }
71929	:
71930fi
71931elif test $pkg_failed = untried; then
71932
71933
71934pkg_failed=no
71935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
71936$as_echo_n "checking for CUDA... " >&6; }
71937
71938if test -n "$PKG_CONFIG"; then
71939    if test -n "$CUDA_CFLAGS"; then
71940        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
71941    else
71942        if test -n "$PKG_CONFIG" && \
71943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71944  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71945  ac_status=$?
71946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71947  test $ac_status = 0; }; then
71948  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
71949else
71950  pkg_failed=yes
71951fi
71952    fi
71953else
71954	pkg_failed=untried
71955fi
71956if test -n "$PKG_CONFIG"; then
71957    if test -n "$CUDA_LIBS"; then
71958        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
71959    else
71960        if test -n "$PKG_CONFIG" && \
71961    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
71962  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
71963  ac_status=$?
71964  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
71965  test $ac_status = 0; }; then
71966  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
71967else
71968  pkg_failed=yes
71969fi
71970    fi
71971else
71972	pkg_failed=untried
71973fi
71974
71975
71976
71977if test $pkg_failed = yes; then
71978
71979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
71980        _pkg_short_errors_supported=yes
71981else
71982        _pkg_short_errors_supported=no
71983fi
71984        if test $_pkg_short_errors_supported = yes; then
71985	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71986        else
71987	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
71988        fi
71989	# Put the nasty error message in config.log where it belongs
71990	echo "$CUDA_PKG_ERRORS" >&5
71991
71992	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71993$as_echo "no" >&6; }
71994
71995                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
71996$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
71997elif test $pkg_failed = untried; then
71998
71999                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72000$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72001else
72002	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72003	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72005$as_echo "yes" >&6; }
72006	:
72007fi
72008else
72009	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72010	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72012$as_echo "yes" >&6; }
72013	:
72014fi
72015else
72016	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72017	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72019$as_echo "yes" >&6; }
72020	:
72021fi
72022elif test $pkg_failed = untried; then
72023
72024
72025pkg_failed=no
72026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72027$as_echo_n "checking for CUDA... " >&6; }
72028
72029if test -n "$PKG_CONFIG"; then
72030    if test -n "$CUDA_CFLAGS"; then
72031        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72032    else
72033        if test -n "$PKG_CONFIG" && \
72034    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
72035  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
72036  ac_status=$?
72037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72038  test $ac_status = 0; }; then
72039  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.5 cudart-7.5" 2>/dev/null`
72040else
72041  pkg_failed=yes
72042fi
72043    fi
72044else
72045	pkg_failed=untried
72046fi
72047if test -n "$PKG_CONFIG"; then
72048    if test -n "$CUDA_LIBS"; then
72049        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72050    else
72051        if test -n "$PKG_CONFIG" && \
72052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.5 cudart-7.5\""; } >&5
72053  ($PKG_CONFIG --exists --print-errors "cuda-7.5 cudart-7.5") 2>&5
72054  ac_status=$?
72055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72056  test $ac_status = 0; }; then
72057  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.5 cudart-7.5" 2>/dev/null`
72058else
72059  pkg_failed=yes
72060fi
72061    fi
72062else
72063	pkg_failed=untried
72064fi
72065
72066
72067
72068if test $pkg_failed = yes; then
72069
72070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72071        _pkg_short_errors_supported=yes
72072else
72073        _pkg_short_errors_supported=no
72074fi
72075        if test $_pkg_short_errors_supported = yes; then
72076	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
72077        else
72078	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.5 cudart-7.5"`
72079        fi
72080	# Put the nasty error message in config.log where it belongs
72081	echo "$CUDA_PKG_ERRORS" >&5
72082
72083	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72084$as_echo "no" >&6; }
72085
72086
72087pkg_failed=no
72088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72089$as_echo_n "checking for CUDA... " >&6; }
72090
72091if test -n "$PKG_CONFIG"; then
72092    if test -n "$CUDA_CFLAGS"; then
72093        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72094    else
72095        if test -n "$PKG_CONFIG" && \
72096    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
72097  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
72098  ac_status=$?
72099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72100  test $ac_status = 0; }; then
72101  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
72102else
72103  pkg_failed=yes
72104fi
72105    fi
72106else
72107	pkg_failed=untried
72108fi
72109if test -n "$PKG_CONFIG"; then
72110    if test -n "$CUDA_LIBS"; then
72111        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72112    else
72113        if test -n "$PKG_CONFIG" && \
72114    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
72115  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
72116  ac_status=$?
72117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72118  test $ac_status = 0; }; then
72119  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
72120else
72121  pkg_failed=yes
72122fi
72123    fi
72124else
72125	pkg_failed=untried
72126fi
72127
72128
72129
72130if test $pkg_failed = yes; then
72131
72132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72133        _pkg_short_errors_supported=yes
72134else
72135        _pkg_short_errors_supported=no
72136fi
72137        if test $_pkg_short_errors_supported = yes; then
72138	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
72139        else
72140	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
72141        fi
72142	# Put the nasty error message in config.log where it belongs
72143	echo "$CUDA_PKG_ERRORS" >&5
72144
72145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72146$as_echo "no" >&6; }
72147
72148
72149pkg_failed=no
72150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72151$as_echo_n "checking for CUDA... " >&6; }
72152
72153if test -n "$PKG_CONFIG"; then
72154    if test -n "$CUDA_CFLAGS"; then
72155        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72156    else
72157        if test -n "$PKG_CONFIG" && \
72158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72159  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72160  ac_status=$?
72161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72162  test $ac_status = 0; }; then
72163  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
72164else
72165  pkg_failed=yes
72166fi
72167    fi
72168else
72169	pkg_failed=untried
72170fi
72171if test -n "$PKG_CONFIG"; then
72172    if test -n "$CUDA_LIBS"; then
72173        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72174    else
72175        if test -n "$PKG_CONFIG" && \
72176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72177  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72178  ac_status=$?
72179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72180  test $ac_status = 0; }; then
72181  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
72182else
72183  pkg_failed=yes
72184fi
72185    fi
72186else
72187	pkg_failed=untried
72188fi
72189
72190
72191
72192if test $pkg_failed = yes; then
72193
72194if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72195        _pkg_short_errors_supported=yes
72196else
72197        _pkg_short_errors_supported=no
72198fi
72199        if test $_pkg_short_errors_supported = yes; then
72200	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72201        else
72202	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72203        fi
72204	# Put the nasty error message in config.log where it belongs
72205	echo "$CUDA_PKG_ERRORS" >&5
72206
72207	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72208$as_echo "no" >&6; }
72209
72210                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72211$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72212elif test $pkg_failed = untried; then
72213
72214                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72215$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72216else
72217	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72218	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72220$as_echo "yes" >&6; }
72221	:
72222fi
72223elif test $pkg_failed = untried; then
72224
72225
72226pkg_failed=no
72227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72228$as_echo_n "checking for CUDA... " >&6; }
72229
72230if test -n "$PKG_CONFIG"; then
72231    if test -n "$CUDA_CFLAGS"; then
72232        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72233    else
72234        if test -n "$PKG_CONFIG" && \
72235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72236  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72237  ac_status=$?
72238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72239  test $ac_status = 0; }; then
72240  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
72241else
72242  pkg_failed=yes
72243fi
72244    fi
72245else
72246	pkg_failed=untried
72247fi
72248if test -n "$PKG_CONFIG"; then
72249    if test -n "$CUDA_LIBS"; then
72250        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72251    else
72252        if test -n "$PKG_CONFIG" && \
72253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72254  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72255  ac_status=$?
72256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72257  test $ac_status = 0; }; then
72258  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
72259else
72260  pkg_failed=yes
72261fi
72262    fi
72263else
72264	pkg_failed=untried
72265fi
72266
72267
72268
72269if test $pkg_failed = yes; then
72270
72271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72272        _pkg_short_errors_supported=yes
72273else
72274        _pkg_short_errors_supported=no
72275fi
72276        if test $_pkg_short_errors_supported = yes; then
72277	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72278        else
72279	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72280        fi
72281	# Put the nasty error message in config.log where it belongs
72282	echo "$CUDA_PKG_ERRORS" >&5
72283
72284	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72285$as_echo "no" >&6; }
72286
72287                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72288$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72289elif test $pkg_failed = untried; then
72290
72291                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72292$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72293else
72294	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72295	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72296        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72297$as_echo "yes" >&6; }
72298	:
72299fi
72300else
72301	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72302	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72304$as_echo "yes" >&6; }
72305	:
72306fi
72307elif test $pkg_failed = untried; then
72308
72309
72310pkg_failed=no
72311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72312$as_echo_n "checking for CUDA... " >&6; }
72313
72314if test -n "$PKG_CONFIG"; then
72315    if test -n "$CUDA_CFLAGS"; then
72316        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72317    else
72318        if test -n "$PKG_CONFIG" && \
72319    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
72320  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
72321  ac_status=$?
72322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72323  test $ac_status = 0; }; then
72324  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-7.0 cudart-7.0" 2>/dev/null`
72325else
72326  pkg_failed=yes
72327fi
72328    fi
72329else
72330	pkg_failed=untried
72331fi
72332if test -n "$PKG_CONFIG"; then
72333    if test -n "$CUDA_LIBS"; then
72334        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72335    else
72336        if test -n "$PKG_CONFIG" && \
72337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-7.0 cudart-7.0\""; } >&5
72338  ($PKG_CONFIG --exists --print-errors "cuda-7.0 cudart-7.0") 2>&5
72339  ac_status=$?
72340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72341  test $ac_status = 0; }; then
72342  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-7.0 cudart-7.0" 2>/dev/null`
72343else
72344  pkg_failed=yes
72345fi
72346    fi
72347else
72348	pkg_failed=untried
72349fi
72350
72351
72352
72353if test $pkg_failed = yes; then
72354
72355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72356        _pkg_short_errors_supported=yes
72357else
72358        _pkg_short_errors_supported=no
72359fi
72360        if test $_pkg_short_errors_supported = yes; then
72361	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
72362        else
72363	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-7.0 cudart-7.0"`
72364        fi
72365	# Put the nasty error message in config.log where it belongs
72366	echo "$CUDA_PKG_ERRORS" >&5
72367
72368	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72369$as_echo "no" >&6; }
72370
72371
72372pkg_failed=no
72373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72374$as_echo_n "checking for CUDA... " >&6; }
72375
72376if test -n "$PKG_CONFIG"; then
72377    if test -n "$CUDA_CFLAGS"; then
72378        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72379    else
72380        if test -n "$PKG_CONFIG" && \
72381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72382  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72383  ac_status=$?
72384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72385  test $ac_status = 0; }; then
72386  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
72387else
72388  pkg_failed=yes
72389fi
72390    fi
72391else
72392	pkg_failed=untried
72393fi
72394if test -n "$PKG_CONFIG"; then
72395    if test -n "$CUDA_LIBS"; then
72396        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72397    else
72398        if test -n "$PKG_CONFIG" && \
72399    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72400  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72401  ac_status=$?
72402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72403  test $ac_status = 0; }; then
72404  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
72405else
72406  pkg_failed=yes
72407fi
72408    fi
72409else
72410	pkg_failed=untried
72411fi
72412
72413
72414
72415if test $pkg_failed = yes; then
72416
72417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72418        _pkg_short_errors_supported=yes
72419else
72420        _pkg_short_errors_supported=no
72421fi
72422        if test $_pkg_short_errors_supported = yes; then
72423	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72424        else
72425	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72426        fi
72427	# Put the nasty error message in config.log where it belongs
72428	echo "$CUDA_PKG_ERRORS" >&5
72429
72430	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72431$as_echo "no" >&6; }
72432
72433                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72434$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72435elif test $pkg_failed = untried; then
72436
72437                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72438$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72439else
72440	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72441	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72443$as_echo "yes" >&6; }
72444	:
72445fi
72446elif test $pkg_failed = untried; then
72447
72448
72449pkg_failed=no
72450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUDA" >&5
72451$as_echo_n "checking for CUDA... " >&6; }
72452
72453if test -n "$PKG_CONFIG"; then
72454    if test -n "$CUDA_CFLAGS"; then
72455        pkg_cv_CUDA_CFLAGS="$CUDA_CFLAGS"
72456    else
72457        if test -n "$PKG_CONFIG" && \
72458    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72459  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72460  ac_status=$?
72461  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72462  test $ac_status = 0; }; then
72463  pkg_cv_CUDA_CFLAGS=`$PKG_CONFIG --cflags "cuda-6.5 cudart-6.5" 2>/dev/null`
72464else
72465  pkg_failed=yes
72466fi
72467    fi
72468else
72469	pkg_failed=untried
72470fi
72471if test -n "$PKG_CONFIG"; then
72472    if test -n "$CUDA_LIBS"; then
72473        pkg_cv_CUDA_LIBS="$CUDA_LIBS"
72474    else
72475        if test -n "$PKG_CONFIG" && \
72476    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cuda-6.5 cudart-6.5\""; } >&5
72477  ($PKG_CONFIG --exists --print-errors "cuda-6.5 cudart-6.5") 2>&5
72478  ac_status=$?
72479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
72480  test $ac_status = 0; }; then
72481  pkg_cv_CUDA_LIBS=`$PKG_CONFIG --libs "cuda-6.5 cudart-6.5" 2>/dev/null`
72482else
72483  pkg_failed=yes
72484fi
72485    fi
72486else
72487	pkg_failed=untried
72488fi
72489
72490
72491
72492if test $pkg_failed = yes; then
72493
72494if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
72495        _pkg_short_errors_supported=yes
72496else
72497        _pkg_short_errors_supported=no
72498fi
72499        if test $_pkg_short_errors_supported = yes; then
72500	        CUDA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72501        else
72502	        CUDA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cuda-6.5 cudart-6.5"`
72503        fi
72504	# Put the nasty error message in config.log where it belongs
72505	echo "$CUDA_PKG_ERRORS" >&5
72506
72507	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
72508$as_echo "no" >&6; }
72509
72510                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72511$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72512elif test $pkg_failed = untried; then
72513
72514                      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda headers/libraries" >&5
72515$as_echo "$as_me: WARNING: Could not find cuda headers/libraries" >&2;}
72516else
72517	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72518	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72520$as_echo "yes" >&6; }
72521	:
72522fi
72523else
72524	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72525	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72526        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72527$as_echo "yes" >&6; }
72528	:
72529fi
72530else
72531	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72532	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72534$as_echo "yes" >&6; }
72535	:
72536fi
72537else
72538	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72539	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72541$as_echo "yes" >&6; }
72542	:
72543fi
72544else
72545	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72546	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72547        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72548$as_echo "yes" >&6; }
72549	:
72550fi
72551else
72552	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72553	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72555$as_echo "yes" >&6; }
72556	:
72557fi
72558else
72559	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72560	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72561        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72562$as_echo "yes" >&6; }
72563	:
72564fi
72565else
72566	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72567	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72569$as_echo "yes" >&6; }
72570	:
72571fi
72572else
72573	CUDA_CFLAGS=$pkg_cv_CUDA_CFLAGS
72574	CUDA_LIBS=$pkg_cv_CUDA_LIBS
72575        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
72576$as_echo "yes" >&6; }
72577	:
72578fi
72579  fi
72580
72581  HAVE_CUDA_H=no
72582  HAVE_CUDART_H=no
72583  save_CPPFLAGS="$CPPFLAGS"
72584  CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS "
72585  ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
72586if test "x$ac_cv_header_cuda_h" = xyes; then :
72587  HAVE_CUDA_H=yes
72588else
72589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda.h" >&5
72590$as_echo "$as_me: WARNING: Could not find cuda.h" >&2;}
72591fi
72592
72593
72594  ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
72595if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then :
72596  HAVE_CUDART_H=yes
72597else
72598  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda_runtime_api.h" >&5
72599$as_echo "$as_me: WARNING: Could not find cuda_runtime_api.h" >&2;}
72600fi
72601
72602
72603  CPPFLAGS=$save_CPPFLAGS
72604
72605    save_LIBS="$LIBS"
72606  LIBS="$CUDA_LIBS $save_LIBS"
72607  HAVE_CUDART_LIB="no"
72608  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaGetErrorString in -lcudart" >&5
72609$as_echo_n "checking for cudaGetErrorString in -lcudart... " >&6; }
72610if ${ac_cv_lib_cudart_cudaGetErrorString+:} false; then :
72611  $as_echo_n "(cached) " >&6
72612else
72613  ac_check_lib_save_LIBS=$LIBS
72614LIBS="-lcudart  $LIBS"
72615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72616/* end confdefs.h.  */
72617
72618/* Override any GCC internal prototype to avoid an error.
72619   Use char because int might match the return type of a GCC
72620   builtin and then its argument prototype would still apply.  */
72621#ifdef __cplusplus
72622extern "C"
72623#endif
72624char cudaGetErrorString ();
72625int
72626main ()
72627{
72628return cudaGetErrorString ();
72629  ;
72630  return 0;
72631}
72632_ACEOF
72633if ac_fn_c_try_link "$LINENO"; then :
72634  ac_cv_lib_cudart_cudaGetErrorString=yes
72635else
72636  ac_cv_lib_cudart_cudaGetErrorString=no
72637fi
72638rm -f core conftest.err conftest.$ac_objext \
72639    conftest$ac_exeext conftest.$ac_ext
72640LIBS=$ac_check_lib_save_LIBS
72641fi
72642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetErrorString" >&5
72643$as_echo "$ac_cv_lib_cudart_cudaGetErrorString" >&6; }
72644if test "x$ac_cv_lib_cudart_cudaGetErrorString" = xyes; then :
72645  HAVE_CUDART_LIB="yes"
72646else
72647
72648      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cudart library" >&5
72649$as_echo "$as_me: WARNING: Could not find cudart library" >&2;}
72650fi
72651
72652  HAVE_CUDA_LIB="no"
72653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5
72654$as_echo_n "checking for cuInit in -lcuda... " >&6; }
72655if ${ac_cv_lib_cuda_cuInit+:} false; then :
72656  $as_echo_n "(cached) " >&6
72657else
72658  ac_check_lib_save_LIBS=$LIBS
72659LIBS="-lcuda  $LIBS"
72660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72661/* end confdefs.h.  */
72662
72663/* Override any GCC internal prototype to avoid an error.
72664   Use char because int might match the return type of a GCC
72665   builtin and then its argument prototype would still apply.  */
72666#ifdef __cplusplus
72667extern "C"
72668#endif
72669char cuInit ();
72670int
72671main ()
72672{
72673return cuInit ();
72674  ;
72675  return 0;
72676}
72677_ACEOF
72678if ac_fn_c_try_link "$LINENO"; then :
72679  ac_cv_lib_cuda_cuInit=yes
72680else
72681  ac_cv_lib_cuda_cuInit=no
72682fi
72683rm -f core conftest.err conftest.$ac_objext \
72684    conftest$ac_exeext conftest.$ac_ext
72685LIBS=$ac_check_lib_save_LIBS
72686fi
72687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5
72688$as_echo "$ac_cv_lib_cuda_cuInit" >&6; }
72689if test "x$ac_cv_lib_cuda_cuInit" = xyes; then :
72690  HAVE_CUDA_LIB="yes"
72691else
72692
72693      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find cuda library" >&5
72694$as_echo "$as_me: WARNING: Could not find cuda library" >&2;}
72695fi
72696
72697  LIBS="$save_LIBS"
72698
72699
72700  LIBS=$gst_check_save_LIBS
72701  LDFLAGS=$gst_check_save_LDFLAGS
72702  CFLAGS=$gst_check_save_CFLAGS
72703  CPPFLAGS=$gst_check_save_CPPFLAGS
72704  CXXFLAGS=$gst_check_save_CXXFLAGS
72705
72706    if test x$HAVE_CUDA = xno; then
72707    USE_CUDA=no
72708  else
72709    :
72710  fi
72711fi
72712if test x$USE_CUDA = xyes; then
72713  :
72714  if test "x" != "x"; then
72715    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
72716  fi
72717
72718$as_echo "#define HAVE_CUDA /**/" >>confdefs.h
72719
72720else
72721  :
72722  if test "x" != "x"; then
72723    GST_PLUGINS_NO="\t\n$GST_PLUGINS_NO"
72724  fi
72725  :
72726fi
72727 if test x$USE_CUDA = xyes; then
72728  USE_CUDA_TRUE=
72729  USE_CUDA_FALSE='#'
72730else
72731  USE_CUDA_TRUE='#'
72732  USE_CUDA_FALSE=
72733fi
72734
72735
72736
72737echo
72738{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: nvdec ***" >&5
72739$as_echo "$as_me: *** checking feature: nvdec ***" >&6;}
72740if test "xnvdec" != "x"
72741then
72742  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: nvdec ***" >&5
72743$as_echo "$as_me: *** for plug-ins: nvdec ***" >&6;}
72744fi
72745NOUSE=
72746if test "x$USE_NVDEC" = "xno"; then
72747  NOUSE="yes"
72748fi
72749# Check whether --enable-nvdec was given.
72750if test "${enable_nvdec+set}" = set; then :
72751  enableval=$enable_nvdec;  case "${enableval}" in
72752      yes) USE_NVDEC=yes;;
72753      no) USE_NVDEC=no;;
72754      *) as_fn_error $? "bad value ${enableval} for --enable-nvdec" "$LINENO" 5 ;;
72755    esac
72756else
72757   USE_NVDEC=yes
72758fi
72759
72760if test "x$NOUSE" = "xyes"; then
72761  USE_NVDEC="no"
72762  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** nvdec pre-configured not to be built" >&5
72763$as_echo "$as_me: WARNING: *** nvdec pre-configured not to be built" >&2;}
72764fi
72765NOUSE=
72766
72767if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " NVDEC " > /dev/null; then
72768  USE_NVDEC="no"
72769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** nvdec not ported" >&5
72770$as_echo "$as_me: WARNING: *** nvdec not ported" >&2;}
72771fi
72772
72773
72774if test x$USE_NVDEC = xyes; then
72775
72776  gst_check_save_LIBS=$LIBS
72777  gst_check_save_LDFLAGS=$LDFLAGS
72778  gst_check_save_CFLAGS=$CFLAGS
72779  gst_check_save_CPPFLAGS=$CPPFLAGS
72780  gst_check_save_CXXFLAGS=$CXXFLAGS
72781
72782  HAVE_NVDEC=no
72783
72784  save_CPPFLAGS="$CPPFLAGS"
72785  CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS"
72786  CPPFLAGS=$save_CPPFLAGS
72787
72788  HAVE_NVCUVID=no
72789  save_LIBS="$LIBS"
72790  LIBS="$CUDA_LIBS $save_LIBS"
72791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuvidCtxLock in -lnvcuvid" >&5
72792$as_echo_n "checking for cuvidCtxLock in -lnvcuvid... " >&6; }
72793if ${ac_cv_lib_nvcuvid_cuvidCtxLock+:} false; then :
72794  $as_echo_n "(cached) " >&6
72795else
72796  ac_check_lib_save_LIBS=$LIBS
72797LIBS="-lnvcuvid  $LIBS"
72798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72799/* end confdefs.h.  */
72800
72801/* Override any GCC internal prototype to avoid an error.
72802   Use char because int might match the return type of a GCC
72803   builtin and then its argument prototype would still apply.  */
72804#ifdef __cplusplus
72805extern "C"
72806#endif
72807char cuvidCtxLock ();
72808int
72809main ()
72810{
72811return cuvidCtxLock ();
72812  ;
72813  return 0;
72814}
72815_ACEOF
72816if ac_fn_c_try_link "$LINENO"; then :
72817  ac_cv_lib_nvcuvid_cuvidCtxLock=yes
72818else
72819  ac_cv_lib_nvcuvid_cuvidCtxLock=no
72820fi
72821rm -f core conftest.err conftest.$ac_objext \
72822    conftest$ac_exeext conftest.$ac_ext
72823LIBS=$ac_check_lib_save_LIBS
72824fi
72825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvcuvid_cuvidCtxLock" >&5
72826$as_echo "$ac_cv_lib_nvcuvid_cuvidCtxLock" >&6; }
72827if test "x$ac_cv_lib_nvcuvid_cuvidCtxLock" = xyes; then :
72828  HAVE_NVCUVID=yes
72829else
72830  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find library nvcuvid" >&5
72831$as_echo "$as_me: WARNING: Could not find library nvcuvid" >&2;}
72832fi
72833
72834  LIBS="$save_LIBS"
72835
72836  if test "x$HAVE_NVCUVID" = "xyes"; then
72837    HAVE_NVDEC=yes
72838  else
72839    HAVE_NVDEC=no
72840  fi
72841
72842
72843  LIBS=$gst_check_save_LIBS
72844  LDFLAGS=$gst_check_save_LDFLAGS
72845  CFLAGS=$gst_check_save_CFLAGS
72846  CPPFLAGS=$gst_check_save_CPPFLAGS
72847  CXXFLAGS=$gst_check_save_CXXFLAGS
72848
72849    if test x$HAVE_NVDEC = xno; then
72850    USE_NVDEC=no
72851  else
72852    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: nvdec" >&5
72853$as_echo "$as_me: *** These plugins will be built: nvdec" >&6;}
72854  fi
72855fi
72856if test x$USE_NVDEC = xyes; then
72857  :
72858  if test "xnvdec" != "x"; then
72859    GST_PLUGINS_YES="\tnvdec\n$GST_PLUGINS_YES"
72860  fi
72861
72862$as_echo "#define HAVE_NVDEC /**/" >>confdefs.h
72863
72864else
72865  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: nvdec" >&5
72866$as_echo "$as_me: *** These plugins will not be built: nvdec" >&6;}
72867  if test "xnvdec" != "x"; then
72868    GST_PLUGINS_NO="\tnvdec\n$GST_PLUGINS_NO"
72869  fi
72870  :
72871fi
72872 if test x$USE_NVDEC = xyes; then
72873  USE_NVDEC_TRUE=
72874  USE_NVDEC_FALSE='#'
72875else
72876  USE_NVDEC_TRUE='#'
72877  USE_NVDEC_FALSE=
72878fi
72879
72880
72881
72882echo
72883{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: NVIDIA Encode API ***" >&5
72884$as_echo "$as_me: *** checking feature: NVIDIA Encode API ***" >&6;}
72885if test "xnvenc" != "x"
72886then
72887  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: nvenc ***" >&5
72888$as_echo "$as_me: *** for plug-ins: nvenc ***" >&6;}
72889fi
72890NOUSE=
72891if test "x$USE_NVENC" = "xno"; then
72892  NOUSE="yes"
72893fi
72894# Check whether --enable-nvenc was given.
72895if test "${enable_nvenc+set}" = set; then :
72896  enableval=$enable_nvenc;  case "${enableval}" in
72897      yes) USE_NVENC=yes;;
72898      no) USE_NVENC=no;;
72899      *) as_fn_error $? "bad value ${enableval} for --enable-nvenc" "$LINENO" 5 ;;
72900    esac
72901else
72902   USE_NVENC=yes
72903fi
72904
72905if test "x$NOUSE" = "xyes"; then
72906  USE_NVENC="no"
72907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** nvenc pre-configured not to be built" >&5
72908$as_echo "$as_me: WARNING: *** nvenc pre-configured not to be built" >&2;}
72909fi
72910NOUSE=
72911
72912if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " NVENC " > /dev/null; then
72913  USE_NVENC="no"
72914  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** nvenc not ported" >&5
72915$as_echo "$as_me: WARNING: *** nvenc not ported" >&2;}
72916fi
72917
72918
72919if test x$USE_NVENC = xyes; then
72920
72921  gst_check_save_LIBS=$LIBS
72922  gst_check_save_LDFLAGS=$LDFLAGS
72923  gst_check_save_CFLAGS=$CFLAGS
72924  gst_check_save_CPPFLAGS=$CPPFLAGS
72925  gst_check_save_CXXFLAGS=$CXXFLAGS
72926
72927  HAVE_NVENC=no
72928
72929    HAVE_NVENCODE_LIB=no
72930
72931  saved_LIBS="$LIBS"
72932  LIBS="$NVENCODE_LIBS $saved_LIBS"
72933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NvEncodeAPICreateInstance in -lnvidia-encode" >&5
72934$as_echo_n "checking for NvEncodeAPICreateInstance in -lnvidia-encode... " >&6; }
72935if ${ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance+:} false; then :
72936  $as_echo_n "(cached) " >&6
72937else
72938  ac_check_lib_save_LIBS=$LIBS
72939LIBS="-lnvidia-encode  $LIBS"
72940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72941/* end confdefs.h.  */
72942
72943/* Override any GCC internal prototype to avoid an error.
72944   Use char because int might match the return type of a GCC
72945   builtin and then its argument prototype would still apply.  */
72946#ifdef __cplusplus
72947extern "C"
72948#endif
72949char NvEncodeAPICreateInstance ();
72950int
72951main ()
72952{
72953return NvEncodeAPICreateInstance ();
72954  ;
72955  return 0;
72956}
72957_ACEOF
72958if ac_fn_c_try_link "$LINENO"; then :
72959  ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance=yes
72960else
72961  ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance=no
72962fi
72963rm -f core conftest.err conftest.$ac_objext \
72964    conftest$ac_exeext conftest.$ac_ext
72965LIBS=$ac_check_lib_save_LIBS
72966fi
72967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance" >&5
72968$as_echo "$ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance" >&6; }
72969if test "x$ac_cv_lib_nvidia_encode_NvEncodeAPICreateInstance" = xyes; then :
72970  HAVE_NVENCODE_LIB="yes"
72971else
72972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find library nvidia-encode" >&5
72973$as_echo "$as_me: WARNING: Could not find library nvidia-encode" >&2;}
72974fi
72975
72976  NVENCODE_LIBS="$NVENCODE_LIBS -lnvidia-encode"
72977
72978  LIBS="$saved_LIBS"
72979
72980  USE_NVENC_GST_GL=no
72981  if test "x$HAVE_CUDA_H" = "xyes" \
72982      -a "x$HAVE_CUDART_H" = "xyes" \
72983      -a "x$HAVE_CUDA_LIB" = "xyes" \
72984      -a "x$HAVE_CUDART_LIB" = "xyes" \
72985      -a "x$HAVE_NVENCODE_LIB" = "xyes"; then
72986    HAVE_NVENC="yes"
72987    if test "x$GST_GL_HAVE_API_GL" = "x1"; then
72988            save_CPPFLAGS="$CPPFLAGS"
72989      CPPFLAGS="$save_CPPFLAGS $CUDA_CFLAGS"
72990      ac_fn_c_check_header_mongrel "$LINENO" "cuda_gl_interop.h" "ac_cv_header_cuda_gl_interop_h" "$ac_includes_default"
72991if test "x$ac_cv_header_cuda_gl_interop_h" = xyes; then :
72992
72993        USE_NVENC_GST_GL="yes"
72994
72995$as_echo "#define HAVE_NVENC_GST_GL 1 " >>confdefs.h
72996
72997
72998fi
72999
73000
73001      CPPFLAGS="$save_CPPFLAGS"
73002    fi
73003  else
73004    HAVE_NVENC="no"
73005  fi
73006
73007
73008  LIBS=$gst_check_save_LIBS
73009  LDFLAGS=$gst_check_save_LDFLAGS
73010  CFLAGS=$gst_check_save_CFLAGS
73011  CPPFLAGS=$gst_check_save_CPPFLAGS
73012  CXXFLAGS=$gst_check_save_CXXFLAGS
73013
73014    if test x$HAVE_NVENC = xno; then
73015    USE_NVENC=no
73016  else
73017    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: nvenc" >&5
73018$as_echo "$as_me: *** These plugins will be built: nvenc" >&6;}
73019  fi
73020fi
73021if test x$USE_NVENC = xyes; then
73022  :
73023  if test "xnvenc" != "x"; then
73024    GST_PLUGINS_YES="\tnvenc\n$GST_PLUGINS_YES"
73025  fi
73026
73027$as_echo "#define HAVE_NVENC /**/" >>confdefs.h
73028
73029else
73030  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: nvenc" >&5
73031$as_echo "$as_me: *** These plugins will not be built: nvenc" >&6;}
73032  if test "xnvenc" != "x"; then
73033    GST_PLUGINS_NO="\tnvenc\n$GST_PLUGINS_NO"
73034  fi
73035  :
73036fi
73037 if test x$USE_NVENC = xyes; then
73038  USE_NVENC_TRUE=
73039  USE_NVENC_FALSE='#'
73040else
73041  USE_NVENC_TRUE='#'
73042  USE_NVENC_FALSE=
73043fi
73044
73045
73046 if test "x$USE_NVENC_GST_GL" = "xyes"; then
73047  USE_NVENC_GST_GL_TRUE=
73048  USE_NVENC_GST_GL_FALSE='#'
73049else
73050  USE_NVENC_GST_GL_TRUE='#'
73051  USE_NVENC_GST_GL_FALSE=
73052fi
73053
73054
73055echo
73056{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: tinyalsa ***" >&5
73057$as_echo "$as_me: *** checking feature: tinyalsa ***" >&6;}
73058if test "xtinyalsa" != "x"
73059then
73060  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: tinyalsa ***" >&5
73061$as_echo "$as_me: *** for plug-ins: tinyalsa ***" >&6;}
73062fi
73063NOUSE=
73064if test "x$USE_TINYALSA" = "xno"; then
73065  NOUSE="yes"
73066fi
73067# Check whether --enable-tinyalsa was given.
73068if test "${enable_tinyalsa+set}" = set; then :
73069  enableval=$enable_tinyalsa;  case "${enableval}" in
73070      yes) USE_TINYALSA=yes;;
73071      no) USE_TINYALSA=no;;
73072      *) as_fn_error $? "bad value ${enableval} for --enable-tinyalsa" "$LINENO" 5 ;;
73073    esac
73074else
73075   USE_TINYALSA=yes
73076fi
73077
73078if test "x$NOUSE" = "xyes"; then
73079  USE_TINYALSA="no"
73080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** tinyalsa pre-configured not to be built" >&5
73081$as_echo "$as_me: WARNING: *** tinyalsa pre-configured not to be built" >&2;}
73082fi
73083NOUSE=
73084
73085if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " TINYALSA " > /dev/null; then
73086  USE_TINYALSA="no"
73087  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** tinyalsa not ported" >&5
73088$as_echo "$as_me: WARNING: *** tinyalsa not ported" >&2;}
73089fi
73090
73091
73092if test x$USE_TINYALSA = xyes; then
73093
73094  gst_check_save_LIBS=$LIBS
73095  gst_check_save_LDFLAGS=$LDFLAGS
73096  gst_check_save_CFLAGS=$CFLAGS
73097  gst_check_save_CPPFLAGS=$CPPFLAGS
73098  gst_check_save_CXXFLAGS=$CXXFLAGS
73099
73100  HAVE_TINYALSA=no
73101
73102  ac_fn_c_check_header_mongrel "$LINENO" "tinyalsa/asoundlib.h" "ac_cv_header_tinyalsa_asoundlib_h" "$ac_includes_default"
73103if test "x$ac_cv_header_tinyalsa_asoundlib_h" = xyes; then :
73104  HAVE_TINYALSA="yes"
73105else
73106  HAVE_TINYALSA="no"
73107fi
73108
73109
73110
73111
73112  LIBS=$gst_check_save_LIBS
73113  LDFLAGS=$gst_check_save_LDFLAGS
73114  CFLAGS=$gst_check_save_CFLAGS
73115  CPPFLAGS=$gst_check_save_CPPFLAGS
73116  CXXFLAGS=$gst_check_save_CXXFLAGS
73117
73118    if test x$HAVE_TINYALSA = xno; then
73119    USE_TINYALSA=no
73120  else
73121    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: tinyalsa" >&5
73122$as_echo "$as_me: *** These plugins will be built: tinyalsa" >&6;}
73123  fi
73124fi
73125if test x$USE_TINYALSA = xyes; then
73126  :
73127  if test "xtinyalsa" != "x"; then
73128    GST_PLUGINS_YES="\ttinyalsa\n$GST_PLUGINS_YES"
73129  fi
73130
73131$as_echo "#define HAVE_TINYALSA /**/" >>confdefs.h
73132
73133else
73134  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: tinyalsa" >&5
73135$as_echo "$as_me: *** These plugins will not be built: tinyalsa" >&6;}
73136  if test "xtinyalsa" != "x"; then
73137    GST_PLUGINS_NO="\ttinyalsa\n$GST_PLUGINS_NO"
73138  fi
73139  :
73140fi
73141 if test x$USE_TINYALSA = xyes; then
73142  USE_TINYALSA_TRUE=
73143  USE_TINYALSA_FALSE='#'
73144else
73145  USE_TINYALSA_TRUE='#'
73146  USE_TINYALSA_FALSE=
73147fi
73148
73149
73150
73151echo
73152{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Intel MediaSDK ***" >&5
73153$as_echo "$as_me: *** checking feature: Intel MediaSDK ***" >&6;}
73154if test "xmsdk" != "x"
73155then
73156  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: msdk ***" >&5
73157$as_echo "$as_me: *** for plug-ins: msdk ***" >&6;}
73158fi
73159NOUSE=
73160if test "x$USE_MSDK" = "xno"; then
73161  NOUSE="yes"
73162fi
73163# Check whether --enable-msdk was given.
73164if test "${enable_msdk+set}" = set; then :
73165  enableval=$enable_msdk;  case "${enableval}" in
73166      yes) USE_MSDK=yes;;
73167      no) USE_MSDK=no;;
73168      *) as_fn_error $? "bad value ${enableval} for --enable-msdk" "$LINENO" 5 ;;
73169    esac
73170else
73171   USE_MSDK=yes
73172fi
73173
73174if test "x$NOUSE" = "xyes"; then
73175  USE_MSDK="no"
73176  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** msdk pre-configured not to be built" >&5
73177$as_echo "$as_me: WARNING: *** msdk pre-configured not to be built" >&2;}
73178fi
73179NOUSE=
73180
73181if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " MSDK " > /dev/null; then
73182  USE_MSDK="no"
73183  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** msdk not ported" >&5
73184$as_echo "$as_me: WARNING: *** msdk not ported" >&2;}
73185fi
73186
73187
73188if test x$USE_MSDK = xyes; then
73189
73190  gst_check_save_LIBS=$LIBS
73191  gst_check_save_LDFLAGS=$LDFLAGS
73192  gst_check_save_CFLAGS=$CFLAGS
73193  gst_check_save_CPPFLAGS=$CPPFLAGS
73194  gst_check_save_CXXFLAGS=$CXXFLAGS
73195
73196  HAVE_MSDK=no
73197
73198
73199  which="gstreamer-allocators-1.0"
73200    required="no"
73201
73202
73203pkg_failed=no
73204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_ALLOCATORS" >&5
73205$as_echo_n "checking for GST_ALLOCATORS... " >&6; }
73206
73207if test -n "$PKG_CONFIG"; then
73208    if test -n "$GST_ALLOCATORS_CFLAGS"; then
73209        pkg_cv_GST_ALLOCATORS_CFLAGS="$GST_ALLOCATORS_CFLAGS"
73210    else
73211        if test -n "$PKG_CONFIG" && \
73212    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
73213  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
73214  ac_status=$?
73215  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73216  test $ac_status = 0; }; then
73217  pkg_cv_GST_ALLOCATORS_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
73218else
73219  pkg_failed=yes
73220fi
73221    fi
73222else
73223	pkg_failed=untried
73224fi
73225if test -n "$PKG_CONFIG"; then
73226    if test -n "$GST_ALLOCATORS_LIBS"; then
73227        pkg_cv_GST_ALLOCATORS_LIBS="$GST_ALLOCATORS_LIBS"
73228    else
73229        if test -n "$PKG_CONFIG" && \
73230    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
73231  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
73232  ac_status=$?
73233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73234  test $ac_status = 0; }; then
73235  pkg_cv_GST_ALLOCATORS_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
73236else
73237  pkg_failed=yes
73238fi
73239    fi
73240else
73241	pkg_failed=untried
73242fi
73243
73244
73245
73246if test $pkg_failed = yes; then
73247
73248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73249        _pkg_short_errors_supported=yes
73250else
73251        _pkg_short_errors_supported=no
73252fi
73253        if test $_pkg_short_errors_supported = yes; then
73254	        GST_ALLOCATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
73255        else
73256	        GST_ALLOCATORS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
73257        fi
73258	# Put the nasty error message in config.log where it belongs
73259	echo "$GST_ALLOCATORS_PKG_ERRORS" >&5
73260
73261	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73262$as_echo "no" >&6; }
73263
73264      HAVE_GST_ALLOCATORS="no"
73265      if test "x$required" = "xyes"; then
73266        as_fn_error $? "$GST_ALLOCATORS_PKG_ERRORS" "$LINENO" 5
73267      else
73268        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_ALLOCATORS_PKG_ERRORS" >&5
73269$as_echo "$as_me: $GST_ALLOCATORS_PKG_ERRORS" >&6;}
73270      fi
73271
73272elif test $pkg_failed = untried; then
73273
73274      HAVE_GST_ALLOCATORS="no"
73275      if test "x$required" = "xyes"; then
73276        as_fn_error $? "$GST_ALLOCATORS_PKG_ERRORS" "$LINENO" 5
73277      else
73278        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_ALLOCATORS_PKG_ERRORS" >&5
73279$as_echo "$as_me: $GST_ALLOCATORS_PKG_ERRORS" >&6;}
73280      fi
73281
73282else
73283	GST_ALLOCATORS_CFLAGS=$pkg_cv_GST_ALLOCATORS_CFLAGS
73284	GST_ALLOCATORS_LIBS=$pkg_cv_GST_ALLOCATORS_LIBS
73285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73286$as_echo "yes" >&6; }
73287
73288      HAVE_GST_ALLOCATORS="yes"
73289
73290fi
73291
73292
73293
73294pkg_failed=no
73295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_UDEV" >&5
73296$as_echo_n "checking for G_UDEV... " >&6; }
73297
73298if test -n "$PKG_CONFIG"; then
73299    if test -n "$G_UDEV_CFLAGS"; then
73300        pkg_cv_G_UDEV_CFLAGS="$G_UDEV_CFLAGS"
73301    else
73302        if test -n "$PKG_CONFIG" && \
73303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
73304  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
73305  ac_status=$?
73306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73307  test $ac_status = 0; }; then
73308  pkg_cv_G_UDEV_CFLAGS=`$PKG_CONFIG --cflags "gudev-1.0 " 2>/dev/null`
73309else
73310  pkg_failed=yes
73311fi
73312    fi
73313else
73314	pkg_failed=untried
73315fi
73316if test -n "$PKG_CONFIG"; then
73317    if test -n "$G_UDEV_LIBS"; then
73318        pkg_cv_G_UDEV_LIBS="$G_UDEV_LIBS"
73319    else
73320        if test -n "$PKG_CONFIG" && \
73321    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gudev-1.0 \""; } >&5
73322  ($PKG_CONFIG --exists --print-errors "gudev-1.0 ") 2>&5
73323  ac_status=$?
73324  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73325  test $ac_status = 0; }; then
73326  pkg_cv_G_UDEV_LIBS=`$PKG_CONFIG --libs "gudev-1.0 " 2>/dev/null`
73327else
73328  pkg_failed=yes
73329fi
73330    fi
73331else
73332	pkg_failed=untried
73333fi
73334
73335
73336
73337if test $pkg_failed = yes; then
73338
73339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73340        _pkg_short_errors_supported=yes
73341else
73342        _pkg_short_errors_supported=no
73343fi
73344        if test $_pkg_short_errors_supported = yes; then
73345	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gudev-1.0 "`
73346        else
73347	        G_UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gudev-1.0 "`
73348        fi
73349	# Put the nasty error message in config.log where it belongs
73350	echo "$G_UDEV_PKG_ERRORS" >&5
73351
73352	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73353$as_echo "no" >&6; }
73354                HAVE_GUDEV="no"
73355elif test $pkg_failed = untried; then
73356	HAVE_GUDEV="no"
73357else
73358	G_UDEV_CFLAGS=$pkg_cv_G_UDEV_CFLAGS
73359	G_UDEV_LIBS=$pkg_cv_G_UDEV_LIBS
73360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73361$as_echo "yes" >&6; }
73362
73363
73364$as_echo "#define HAVE_GUDEV 1" >>confdefs.h
73365
73366          HAVE_GUDEV="yes"
73367fi
73368
73369pkg_failed=no
73370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMFX" >&5
73371$as_echo_n "checking for LIBMFX... " >&6; }
73372
73373if test -n "$PKG_CONFIG"; then
73374    if test -n "$LIBMFX_CFLAGS"; then
73375        pkg_cv_LIBMFX_CFLAGS="$LIBMFX_CFLAGS"
73376    else
73377        if test -n "$PKG_CONFIG" && \
73378    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmfx\""; } >&5
73379  ($PKG_CONFIG --exists --print-errors "libmfx") 2>&5
73380  ac_status=$?
73381  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73382  test $ac_status = 0; }; then
73383  pkg_cv_LIBMFX_CFLAGS=`$PKG_CONFIG --cflags "libmfx" 2>/dev/null`
73384else
73385  pkg_failed=yes
73386fi
73387    fi
73388else
73389	pkg_failed=untried
73390fi
73391if test -n "$PKG_CONFIG"; then
73392    if test -n "$LIBMFX_LIBS"; then
73393        pkg_cv_LIBMFX_LIBS="$LIBMFX_LIBS"
73394    else
73395        if test -n "$PKG_CONFIG" && \
73396    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmfx\""; } >&5
73397  ($PKG_CONFIG --exists --print-errors "libmfx") 2>&5
73398  ac_status=$?
73399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73400  test $ac_status = 0; }; then
73401  pkg_cv_LIBMFX_LIBS=`$PKG_CONFIG --libs "libmfx" 2>/dev/null`
73402else
73403  pkg_failed=yes
73404fi
73405    fi
73406else
73407	pkg_failed=untried
73408fi
73409
73410
73411
73412if test $pkg_failed = yes; then
73413
73414if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73415        _pkg_short_errors_supported=yes
73416else
73417        _pkg_short_errors_supported=no
73418fi
73419        if test $_pkg_short_errors_supported = yes; then
73420	        LIBMFX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmfx"`
73421        else
73422	        LIBMFX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmfx"`
73423        fi
73424	# Put the nasty error message in config.log where it belongs
73425	echo "$LIBMFX_PKG_ERRORS" >&5
73426
73427	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73428$as_echo "no" >&6; }
73429
73430
73431# Check whether --with-msdk-prefix was given.
73432if test "${with_msdk_prefix+set}" = set; then :
73433  withval=$with_msdk_prefix; if test "x$with_msdk_prefix" != "x"; then :
73434  MSDK_PREFIX="$with_msdk_prefix"
73435fi
73436else
73437  if test "x$MFX_HOME" != "x"; then :
73438  MSDK_PREFIX="$MFX_HOME"
73439else
73440  MSDK_PREFIX="/opt/intel/media"
73441fi
73442fi
73443
73444    MSDK_CFLAGS="-I$MSDK_PREFIX/include -I$MSDK_PREFIX/include/mfx"
73445    MSDK_LIBS="-L$MSDK_PREFIX/lib/lin_x64 -L$MSDK_PREFIX/lib/x64 -L$MSDK_PREFIX/lib64 -L$MSDK_PREFIX/lib -lmfx -ldl"
73446
73447
73448
73449    save_CPPFLAGS="$CPPFLAGS"
73450    CPPFLAGS="$MSDK_CFLAGS $save_CPPFLAGS"
73451    ac_fn_c_check_header_mongrel "$LINENO" "mfxdefs.h" "ac_cv_header_mfxdefs_h" "$ac_includes_default"
73452if test "x$ac_cv_header_mfxdefs_h" = xyes; then :
73453  HAVE_MFXDEFS_H="yes"
73454else
73455  HAVE_MFXDEFS_H="no"
73456fi
73457
73458
73459    CPPFLAGS="$save_CPPFLAGS"
73460
73461    save_LIBS="$LIBS"
73462    LIBS="$MSDK_LIBS $LIBS"
73463    ac_ext=cpp
73464ac_cpp='$CXXCPP $CPPFLAGS'
73465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73468
73469    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MFXInit in -lmfx" >&5
73470$as_echo_n "checking for MFXInit in -lmfx... " >&6; }
73471if ${ac_cv_lib_mfx_MFXInit+:} false; then :
73472  $as_echo_n "(cached) " >&6
73473else
73474  ac_check_lib_save_LIBS=$LIBS
73475LIBS="-lmfx  $LIBS"
73476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73477/* end confdefs.h.  */
73478
73479/* Override any GCC internal prototype to avoid an error.
73480   Use char because int might match the return type of a GCC
73481   builtin and then its argument prototype would still apply.  */
73482#ifdef __cplusplus
73483extern "C"
73484#endif
73485char MFXInit ();
73486int
73487main ()
73488{
73489return MFXInit ();
73490  ;
73491  return 0;
73492}
73493_ACEOF
73494if ac_fn_cxx_try_link "$LINENO"; then :
73495  ac_cv_lib_mfx_MFXInit=yes
73496else
73497  ac_cv_lib_mfx_MFXInit=no
73498fi
73499rm -f core conftest.err conftest.$ac_objext \
73500    conftest$ac_exeext conftest.$ac_ext
73501LIBS=$ac_check_lib_save_LIBS
73502fi
73503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfx_MFXInit" >&5
73504$as_echo "$ac_cv_lib_mfx_MFXInit" >&6; }
73505if test "x$ac_cv_lib_mfx_MFXInit" = xyes; then :
73506  HAVE_MFX_LIB="yes"
73507else
73508  HAVE_MFX_LIB="no"
73509fi
73510
73511    ac_ext=c
73512ac_cpp='$CPP $CPPFLAGS'
73513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73515ac_compiler_gnu=$ac_cv_c_compiler_gnu
73516
73517    LIBS="$save_LIBS"
73518
73519    if test "x$HAVE_MFXDEFS_H" = "xyes" \
73520        -a "x$HAVE_MFX_LIB" = "xyes"; then
73521      HAVE_MSDK="yes"
73522    else
73523      HAVE_MSDK="no"
73524    fi
73525
73526elif test $pkg_failed = untried; then
73527
73528
73529# Check whether --with-msdk-prefix was given.
73530if test "${with_msdk_prefix+set}" = set; then :
73531  withval=$with_msdk_prefix; if test "x$with_msdk_prefix" != "x"; then :
73532  MSDK_PREFIX="$with_msdk_prefix"
73533fi
73534else
73535  if test "x$MFX_HOME" != "x"; then :
73536  MSDK_PREFIX="$MFX_HOME"
73537else
73538  MSDK_PREFIX="/opt/intel/media"
73539fi
73540fi
73541
73542    MSDK_CFLAGS="-I$MSDK_PREFIX/include -I$MSDK_PREFIX/include/mfx"
73543    MSDK_LIBS="-L$MSDK_PREFIX/lib/lin_x64 -L$MSDK_PREFIX/lib/x64 -L$MSDK_PREFIX/lib64 -L$MSDK_PREFIX/lib -lmfx -ldl"
73544
73545
73546
73547    save_CPPFLAGS="$CPPFLAGS"
73548    CPPFLAGS="$MSDK_CFLAGS $save_CPPFLAGS"
73549    ac_fn_c_check_header_mongrel "$LINENO" "mfxdefs.h" "ac_cv_header_mfxdefs_h" "$ac_includes_default"
73550if test "x$ac_cv_header_mfxdefs_h" = xyes; then :
73551  HAVE_MFXDEFS_H="yes"
73552else
73553  HAVE_MFXDEFS_H="no"
73554fi
73555
73556
73557    CPPFLAGS="$save_CPPFLAGS"
73558
73559    save_LIBS="$LIBS"
73560    LIBS="$MSDK_LIBS $LIBS"
73561    ac_ext=cpp
73562ac_cpp='$CXXCPP $CPPFLAGS'
73563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73566
73567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MFXInit in -lmfx" >&5
73568$as_echo_n "checking for MFXInit in -lmfx... " >&6; }
73569if ${ac_cv_lib_mfx_MFXInit+:} false; then :
73570  $as_echo_n "(cached) " >&6
73571else
73572  ac_check_lib_save_LIBS=$LIBS
73573LIBS="-lmfx  $LIBS"
73574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73575/* end confdefs.h.  */
73576
73577/* Override any GCC internal prototype to avoid an error.
73578   Use char because int might match the return type of a GCC
73579   builtin and then its argument prototype would still apply.  */
73580#ifdef __cplusplus
73581extern "C"
73582#endif
73583char MFXInit ();
73584int
73585main ()
73586{
73587return MFXInit ();
73588  ;
73589  return 0;
73590}
73591_ACEOF
73592if ac_fn_cxx_try_link "$LINENO"; then :
73593  ac_cv_lib_mfx_MFXInit=yes
73594else
73595  ac_cv_lib_mfx_MFXInit=no
73596fi
73597rm -f core conftest.err conftest.$ac_objext \
73598    conftest$ac_exeext conftest.$ac_ext
73599LIBS=$ac_check_lib_save_LIBS
73600fi
73601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mfx_MFXInit" >&5
73602$as_echo "$ac_cv_lib_mfx_MFXInit" >&6; }
73603if test "x$ac_cv_lib_mfx_MFXInit" = xyes; then :
73604  HAVE_MFX_LIB="yes"
73605else
73606  HAVE_MFX_LIB="no"
73607fi
73608
73609    ac_ext=c
73610ac_cpp='$CPP $CPPFLAGS'
73611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
73612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
73613ac_compiler_gnu=$ac_cv_c_compiler_gnu
73614
73615    LIBS="$save_LIBS"
73616
73617    if test "x$HAVE_MFXDEFS_H" = "xyes" \
73618        -a "x$HAVE_MFX_LIB" = "xyes"; then
73619      HAVE_MSDK="yes"
73620    else
73621      HAVE_MSDK="no"
73622    fi
73623
73624else
73625	LIBMFX_CFLAGS=$pkg_cv_LIBMFX_CFLAGS
73626	LIBMFX_LIBS=$pkg_cv_LIBMFX_LIBS
73627        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73628$as_echo "yes" >&6; }
73629
73630
73631$as_echo "#define HAVE_LIBMFX 1" >>confdefs.h
73632
73633    HAVE_MSDK="yes"
73634        save_CPPFLAGS="$CPPFLAGS"
73635    CPPFLAGS="$LIBMFX_CFLAGS $save_CPPFLAGS"
73636    ac_fn_c_check_header_mongrel "$LINENO" "mfx/mfxdefs.h" "ac_cv_header_mfx_mfxdefs_h" "$ac_includes_default"
73637if test "x$ac_cv_header_mfx_mfxdefs_h" = xyes; then :
73638  HAVE_MFX_MFXDEFS_H=1
73639else
73640  HAVE_MFX_MFXDEFS_H=0
73641fi
73642
73643
73644    if test $HAVE_MFX_MFXDEFS_H -eq 1; then
73645      MFX_INCDIR="`$PKG_CONFIG --variable=includedir libmfx`"
73646      MSDK_CFLAGS="-I$MFX_INCDIR/mfx"
73647
73648    fi
73649    CPPFLAGS="$save_CPPFLAGS"
73650
73651fi
73652
73653
73654pkg_failed=no
73655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA_DRM" >&5
73656$as_echo_n "checking for LIBVA_DRM... " >&6; }
73657
73658if test -n "$PKG_CONFIG"; then
73659    if test -n "$LIBVA_DRM_CFLAGS"; then
73660        pkg_cv_LIBVA_DRM_CFLAGS="$LIBVA_DRM_CFLAGS"
73661    else
73662        if test -n "$PKG_CONFIG" && \
73663    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
73664  ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
73665  ac_status=$?
73666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73667  test $ac_status = 0; }; then
73668  pkg_cv_LIBVA_DRM_CFLAGS=`$PKG_CONFIG --cflags "libva-drm" 2>/dev/null`
73669else
73670  pkg_failed=yes
73671fi
73672    fi
73673else
73674	pkg_failed=untried
73675fi
73676if test -n "$PKG_CONFIG"; then
73677    if test -n "$LIBVA_DRM_LIBS"; then
73678        pkg_cv_LIBVA_DRM_LIBS="$LIBVA_DRM_LIBS"
73679    else
73680        if test -n "$PKG_CONFIG" && \
73681    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-drm\""; } >&5
73682  ($PKG_CONFIG --exists --print-errors "libva-drm") 2>&5
73683  ac_status=$?
73684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73685  test $ac_status = 0; }; then
73686  pkg_cv_LIBVA_DRM_LIBS=`$PKG_CONFIG --libs "libva-drm" 2>/dev/null`
73687else
73688  pkg_failed=yes
73689fi
73690    fi
73691else
73692	pkg_failed=untried
73693fi
73694
73695
73696
73697if test $pkg_failed = yes; then
73698
73699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73700        _pkg_short_errors_supported=yes
73701else
73702        _pkg_short_errors_supported=no
73703fi
73704        if test $_pkg_short_errors_supported = yes; then
73705	        LIBVA_DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libva-drm"`
73706        else
73707	        LIBVA_DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libva-drm"`
73708        fi
73709	# Put the nasty error message in config.log where it belongs
73710	echo "$LIBVA_DRM_PKG_ERRORS" >&5
73711
73712	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73713$as_echo "no" >&6; }
73714                HAVE_LIBVA_DRM="no"
73715elif test $pkg_failed = untried; then
73716	HAVE_LIBVA_DRM="no"
73717else
73718	LIBVA_DRM_CFLAGS=$pkg_cv_LIBVA_DRM_CFLAGS
73719	LIBVA_DRM_LIBS=$pkg_cv_LIBVA_DRM_LIBS
73720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73721$as_echo "yes" >&6; }
73722	HAVE_LIBVA_DRM="yes"
73723fi
73724
73725  if test "x$HAVE_GUDEV" = "xyes" \
73726     -a  "x$HAVE_MSDK" = "xyes" \
73727     -a "x$HAVE_LIBVA_DRM" = "xyes"; then
73728    HAVE_MSDK="yes"
73729  else
73730    HAVE_MSDK="no"
73731  fi
73732
73733
73734  LIBS=$gst_check_save_LIBS
73735  LDFLAGS=$gst_check_save_LDFLAGS
73736  CFLAGS=$gst_check_save_CFLAGS
73737  CPPFLAGS=$gst_check_save_CPPFLAGS
73738  CXXFLAGS=$gst_check_save_CXXFLAGS
73739
73740    if test x$HAVE_MSDK = xno; then
73741    USE_MSDK=no
73742  else
73743    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: msdk" >&5
73744$as_echo "$as_me: *** These plugins will be built: msdk" >&6;}
73745  fi
73746fi
73747if test x$USE_MSDK = xyes; then
73748
73749    USE_MSDK_VP9_DEC=0
73750  save_CPPFLAGS="$CPPFLAGS"
73751  CPPFLAGS="$LIBMFX_CFLAGS $MSDK_CFLAGS $save_CPPFLAGS"
73752  ac_fn_c_check_header_compile "$LINENO" "mfxvp9.h" "ac_cv_header_mfxvp9_h" "
73753    #include <mfxplugin.h>
73754
73755"
73756if test "x$ac_cv_header_mfxvp9_h" = xyes; then :
73757  HAVE_MFXVP9_H=1
73758else
73759  HAVE_MFXVP9_H=0
73760fi
73761
73762
73763
73764  if test $HAVE_MFXVP9_H -eq 1; then
73765      USE_MSDK_VP9_DEC=1
73766
73767$as_echo "#define USE_MSDK_VP9_DEC 1" >>confdefs.h
73768
73769  fi
73770
73771  if test "xmsdk" != "x"; then
73772    GST_PLUGINS_YES="\tmsdk\n$GST_PLUGINS_YES"
73773  fi
73774
73775$as_echo "#define HAVE_MSDK /**/" >>confdefs.h
73776
73777else
73778  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: msdk" >&5
73779$as_echo "$as_me: *** These plugins will not be built: msdk" >&6;}
73780  if test "xmsdk" != "x"; then
73781    GST_PLUGINS_NO="\tmsdk\n$GST_PLUGINS_NO"
73782  fi
73783  USE_MSDK_VP9_DEC=0
73784fi
73785 if test x$USE_MSDK = xyes; then
73786  USE_MSDK_TRUE=
73787  USE_MSDK_FALSE='#'
73788else
73789  USE_MSDK_TRUE='#'
73790  USE_MSDK_FALSE=
73791fi
73792
73793
73794 if test "x$HAVE_MSDK" = "xyes" -a "x$HAVE_LIBVA_DRM" = "xyes"; then
73795  USE_MSDK_LIBVA_TRUE=
73796  USE_MSDK_LIBVA_FALSE='#'
73797else
73798  USE_MSDK_LIBVA_TRUE='#'
73799  USE_MSDK_LIBVA_FALSE=
73800fi
73801
73802 if test $USE_MSDK_VP9_DEC -eq 1; then
73803  USE_MSDK_VP9_DEC_TRUE=
73804  USE_MSDK_VP9_DEC_FALSE='#'
73805else
73806  USE_MSDK_VP9_DEC_TRUE='#'
73807  USE_MSDK_VP9_DEC_FALSE=
73808fi
73809
73810
73811
73812if test "x$BUILD_EXTERNAL" = "xyes"; then
73813
73814echo
73815{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: ASS/SSA renderer ***" >&5
73816$as_echo "$as_me: *** checking feature: ASS/SSA renderer ***" >&6;}
73817if test "xassrender" != "x"
73818then
73819  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: assrender ***" >&5
73820$as_echo "$as_me: *** for plug-ins: assrender ***" >&6;}
73821fi
73822NOUSE=
73823if test "x$USE_ASSRENDER" = "xno"; then
73824  NOUSE="yes"
73825fi
73826# Check whether --enable-assrender was given.
73827if test "${enable_assrender+set}" = set; then :
73828  enableval=$enable_assrender;  case "${enableval}" in
73829      yes) USE_ASSRENDER=yes;;
73830      no) USE_ASSRENDER=no;;
73831      *) as_fn_error $? "bad value ${enableval} for --enable-assrender" "$LINENO" 5 ;;
73832    esac
73833else
73834   USE_ASSRENDER=yes
73835fi
73836
73837if test "x$NOUSE" = "xyes"; then
73838  USE_ASSRENDER="no"
73839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** assrender pre-configured not to be built" >&5
73840$as_echo "$as_me: WARNING: *** assrender pre-configured not to be built" >&2;}
73841fi
73842NOUSE=
73843
73844if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ASSRENDER " > /dev/null; then
73845  USE_ASSRENDER="no"
73846  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** assrender not ported" >&5
73847$as_echo "$as_me: WARNING: *** assrender not ported" >&2;}
73848fi
73849
73850
73851if test x$USE_ASSRENDER = xyes; then
73852
73853  gst_check_save_LIBS=$LIBS
73854  gst_check_save_LDFLAGS=$LDFLAGS
73855  gst_check_save_CFLAGS=$CFLAGS
73856  gst_check_save_CPPFLAGS=$CPPFLAGS
73857  gst_check_save_CXXFLAGS=$CXXFLAGS
73858
73859  HAVE_ASSRENDER=no
73860
73861
73862pkg_failed=no
73863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASSRENDER" >&5
73864$as_echo_n "checking for ASSRENDER... " >&6; }
73865
73866if test -n "$PKG_CONFIG"; then
73867    if test -n "$ASSRENDER_CFLAGS"; then
73868        pkg_cv_ASSRENDER_CFLAGS="$ASSRENDER_CFLAGS"
73869    else
73870        if test -n "$PKG_CONFIG" && \
73871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libass >= 0.10.2\""; } >&5
73872  ($PKG_CONFIG --exists --print-errors "libass >= 0.10.2") 2>&5
73873  ac_status=$?
73874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73875  test $ac_status = 0; }; then
73876  pkg_cv_ASSRENDER_CFLAGS=`$PKG_CONFIG --cflags "libass >= 0.10.2" 2>/dev/null`
73877else
73878  pkg_failed=yes
73879fi
73880    fi
73881else
73882	pkg_failed=untried
73883fi
73884if test -n "$PKG_CONFIG"; then
73885    if test -n "$ASSRENDER_LIBS"; then
73886        pkg_cv_ASSRENDER_LIBS="$ASSRENDER_LIBS"
73887    else
73888        if test -n "$PKG_CONFIG" && \
73889    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libass >= 0.10.2\""; } >&5
73890  ($PKG_CONFIG --exists --print-errors "libass >= 0.10.2") 2>&5
73891  ac_status=$?
73892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73893  test $ac_status = 0; }; then
73894  pkg_cv_ASSRENDER_LIBS=`$PKG_CONFIG --libs "libass >= 0.10.2" 2>/dev/null`
73895else
73896  pkg_failed=yes
73897fi
73898    fi
73899else
73900	pkg_failed=untried
73901fi
73902
73903
73904
73905if test $pkg_failed = yes; then
73906
73907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
73908        _pkg_short_errors_supported=yes
73909else
73910        _pkg_short_errors_supported=no
73911fi
73912        if test $_pkg_short_errors_supported = yes; then
73913	        ASSRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libass >= 0.10.2"`
73914        else
73915	        ASSRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libass >= 0.10.2"`
73916        fi
73917	# Put the nasty error message in config.log where it belongs
73918	echo "$ASSRENDER_PKG_ERRORS" >&5
73919
73920	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
73921$as_echo "no" >&6; }
73922
73923    HAVE_ASSRENDER="no"
73924
73925elif test $pkg_failed = untried; then
73926
73927    HAVE_ASSRENDER="no"
73928
73929else
73930	ASSRENDER_CFLAGS=$pkg_cv_ASSRENDER_CFLAGS
73931	ASSRENDER_LIBS=$pkg_cv_ASSRENDER_LIBS
73932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
73933$as_echo "yes" >&6; }
73934
73935    HAVE_ASSRENDER="yes"
73936fi
73937
73938
73939  LIBS=$gst_check_save_LIBS
73940  LDFLAGS=$gst_check_save_LDFLAGS
73941  CFLAGS=$gst_check_save_CFLAGS
73942  CPPFLAGS=$gst_check_save_CPPFLAGS
73943  CXXFLAGS=$gst_check_save_CXXFLAGS
73944
73945    if test x$HAVE_ASSRENDER = xno; then
73946    USE_ASSRENDER=no
73947  else
73948    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: assrender" >&5
73949$as_echo "$as_me: *** These plugins will be built: assrender" >&6;}
73950  fi
73951fi
73952if test x$USE_ASSRENDER = xyes; then
73953  :
73954  if test "xassrender" != "x"; then
73955    GST_PLUGINS_YES="\tassrender\n$GST_PLUGINS_YES"
73956  fi
73957
73958$as_echo "#define HAVE_ASSRENDER /**/" >>confdefs.h
73959
73960else
73961  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: assrender" >&5
73962$as_echo "$as_me: *** These plugins will not be built: assrender" >&6;}
73963  if test "xassrender" != "x"; then
73964    GST_PLUGINS_NO="\tassrender\n$GST_PLUGINS_NO"
73965  fi
73966  :
73967fi
73968 if test x$USE_ASSRENDER = xyes; then
73969  USE_ASSRENDER_TRUE=
73970  USE_ASSRENDER_FALSE='#'
73971else
73972  USE_ASSRENDER_TRUE='#'
73973  USE_ASSRENDER_FALSE=
73974fi
73975
73976
73977
73978
73979
73980echo
73981{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: AV1 encoder/decoder ***" >&5
73982$as_echo "$as_me: *** checking feature: AV1 encoder/decoder ***" >&6;}
73983if test "xaom" != "x"
73984then
73985  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: aom ***" >&5
73986$as_echo "$as_me: *** for plug-ins: aom ***" >&6;}
73987fi
73988NOUSE=
73989if test "x$USE_AOM" = "xno"; then
73990  NOUSE="yes"
73991fi
73992# Check whether --enable-aom was given.
73993if test "${enable_aom+set}" = set; then :
73994  enableval=$enable_aom;  case "${enableval}" in
73995      yes) USE_AOM=yes;;
73996      no) USE_AOM=no;;
73997      *) as_fn_error $? "bad value ${enableval} for --enable-aom" "$LINENO" 5 ;;
73998    esac
73999else
74000   USE_AOM=yes
74001fi
74002
74003if test "x$NOUSE" = "xyes"; then
74004  USE_AOM="no"
74005  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** aom pre-configured not to be built" >&5
74006$as_echo "$as_me: WARNING: *** aom pre-configured not to be built" >&2;}
74007fi
74008NOUSE=
74009
74010if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " AOM " > /dev/null; then
74011  USE_AOM="no"
74012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** aom not ported" >&5
74013$as_echo "$as_me: WARNING: *** aom not ported" >&2;}
74014fi
74015
74016
74017if test x$USE_AOM = xyes; then
74018
74019  gst_check_save_LIBS=$LIBS
74020  gst_check_save_LDFLAGS=$LDFLAGS
74021  gst_check_save_CFLAGS=$CFLAGS
74022  gst_check_save_CPPFLAGS=$CPPFLAGS
74023  gst_check_save_CXXFLAGS=$CXXFLAGS
74024
74025  HAVE_AOM=no
74026
74027
74028  which="aom"
74029    required="no"
74030
74031
74032pkg_failed=no
74033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AOM" >&5
74034$as_echo_n "checking for AOM... " >&6; }
74035
74036if test -n "$PKG_CONFIG"; then
74037    if test -n "$AOM_CFLAGS"; then
74038        pkg_cv_AOM_CFLAGS="$AOM_CFLAGS"
74039    else
74040        if test -n "$PKG_CONFIG" && \
74041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74042  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74043  ac_status=$?
74044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74045  test $ac_status = 0; }; then
74046  pkg_cv_AOM_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
74047else
74048  pkg_failed=yes
74049fi
74050    fi
74051else
74052	pkg_failed=untried
74053fi
74054if test -n "$PKG_CONFIG"; then
74055    if test -n "$AOM_LIBS"; then
74056        pkg_cv_AOM_LIBS="$AOM_LIBS"
74057    else
74058        if test -n "$PKG_CONFIG" && \
74059    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74060  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74061  ac_status=$?
74062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74063  test $ac_status = 0; }; then
74064  pkg_cv_AOM_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
74065else
74066  pkg_failed=yes
74067fi
74068    fi
74069else
74070	pkg_failed=untried
74071fi
74072
74073
74074
74075if test $pkg_failed = yes; then
74076
74077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74078        _pkg_short_errors_supported=yes
74079else
74080        _pkg_short_errors_supported=no
74081fi
74082        if test $_pkg_short_errors_supported = yes; then
74083	        AOM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
74084        else
74085	        AOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
74086        fi
74087	# Put the nasty error message in config.log where it belongs
74088	echo "$AOM_PKG_ERRORS" >&5
74089
74090	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74091$as_echo "no" >&6; }
74092
74093      HAVE_AOM="no"
74094      if test "x$required" = "xyes"; then
74095        as_fn_error $? "$AOM_PKG_ERRORS" "$LINENO" 5
74096      else
74097        { $as_echo "$as_me:${as_lineno-$LINENO}: $AOM_PKG_ERRORS" >&5
74098$as_echo "$as_me: $AOM_PKG_ERRORS" >&6;}
74099      fi
74100
74101elif test $pkg_failed = untried; then
74102
74103      HAVE_AOM="no"
74104      if test "x$required" = "xyes"; then
74105        as_fn_error $? "$AOM_PKG_ERRORS" "$LINENO" 5
74106      else
74107        { $as_echo "$as_me:${as_lineno-$LINENO}: $AOM_PKG_ERRORS" >&5
74108$as_echo "$as_me: $AOM_PKG_ERRORS" >&6;}
74109      fi
74110
74111else
74112	AOM_CFLAGS=$pkg_cv_AOM_CFLAGS
74113	AOM_LIBS=$pkg_cv_AOM_LIBS
74114        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74115$as_echo "yes" >&6; }
74116
74117      HAVE_AOM="yes"
74118
74119fi
74120
74121
74122
74123
74124  LIBS=$gst_check_save_LIBS
74125  LDFLAGS=$gst_check_save_LDFLAGS
74126  CFLAGS=$gst_check_save_CFLAGS
74127  CPPFLAGS=$gst_check_save_CPPFLAGS
74128  CXXFLAGS=$gst_check_save_CXXFLAGS
74129
74130    if test x$HAVE_AOM = xno; then
74131    USE_AOM=no
74132  else
74133    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: aom" >&5
74134$as_echo "$as_me: *** These plugins will be built: aom" >&6;}
74135  fi
74136fi
74137if test x$USE_AOM = xyes; then
74138  :
74139  if test "xaom" != "x"; then
74140    GST_PLUGINS_YES="\taom\n$GST_PLUGINS_YES"
74141  fi
74142
74143$as_echo "#define HAVE_AOM /**/" >>confdefs.h
74144
74145else
74146  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: aom" >&5
74147$as_echo "$as_me: *** These plugins will not be built: aom" >&6;}
74148  if test "xaom" != "x"; then
74149    GST_PLUGINS_NO="\taom\n$GST_PLUGINS_NO"
74150  fi
74151  :
74152fi
74153 if test x$USE_AOM = xyes; then
74154  USE_AOM_TRUE=
74155  USE_AOM_FALSE='#'
74156else
74157  USE_AOM_TRUE='#'
74158  USE_AOM_FALSE=
74159fi
74160
74161
74162
74163echo
74164{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: vo-amrwbenc library ***" >&5
74165$as_echo "$as_me: *** checking feature: vo-amrwbenc library ***" >&6;}
74166if test "xvo-amrwbenc" != "x"
74167then
74168  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vo-amrwbenc ***" >&5
74169$as_echo "$as_me: *** for plug-ins: vo-amrwbenc ***" >&6;}
74170fi
74171NOUSE=
74172if test "x$USE_VOAMRWBENC" = "xno"; then
74173  NOUSE="yes"
74174fi
74175# Check whether --enable-voamrwbenc was given.
74176if test "${enable_voamrwbenc+set}" = set; then :
74177  enableval=$enable_voamrwbenc;  case "${enableval}" in
74178      yes) USE_VOAMRWBENC=yes;;
74179      no) USE_VOAMRWBENC=no;;
74180      *) as_fn_error $? "bad value ${enableval} for --enable-voamrwbenc" "$LINENO" 5 ;;
74181    esac
74182else
74183   USE_VOAMRWBENC=yes
74184fi
74185
74186if test "x$NOUSE" = "xyes"; then
74187  USE_VOAMRWBENC="no"
74188  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vo-amrwbenc pre-configured not to be built" >&5
74189$as_echo "$as_me: WARNING: *** vo-amrwbenc pre-configured not to be built" >&2;}
74190fi
74191NOUSE=
74192
74193if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VOAMRWBENC " > /dev/null; then
74194  USE_VOAMRWBENC="no"
74195  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vo-amrwbenc not ported" >&5
74196$as_echo "$as_me: WARNING: *** vo-amrwbenc not ported" >&2;}
74197fi
74198
74199
74200if test x$USE_VOAMRWBENC = xyes; then
74201
74202  gst_check_save_LIBS=$LIBS
74203  gst_check_save_LDFLAGS=$LDFLAGS
74204  gst_check_save_CFLAGS=$CFLAGS
74205  gst_check_save_CPPFLAGS=$CPPFLAGS
74206  gst_check_save_CXXFLAGS=$CXXFLAGS
74207
74208  HAVE_VOAMRWBENC=no
74209
74210
74211  which="vo-amrwbenc >= 0.1.0"
74212    required="no"
74213
74214
74215pkg_failed=no
74216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VOAMRWBENC" >&5
74217$as_echo_n "checking for VOAMRWBENC... " >&6; }
74218
74219if test -n "$PKG_CONFIG"; then
74220    if test -n "$VOAMRWBENC_CFLAGS"; then
74221        pkg_cv_VOAMRWBENC_CFLAGS="$VOAMRWBENC_CFLAGS"
74222    else
74223        if test -n "$PKG_CONFIG" && \
74224    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74225  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74226  ac_status=$?
74227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74228  test $ac_status = 0; }; then
74229  pkg_cv_VOAMRWBENC_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
74230else
74231  pkg_failed=yes
74232fi
74233    fi
74234else
74235	pkg_failed=untried
74236fi
74237if test -n "$PKG_CONFIG"; then
74238    if test -n "$VOAMRWBENC_LIBS"; then
74239        pkg_cv_VOAMRWBENC_LIBS="$VOAMRWBENC_LIBS"
74240    else
74241        if test -n "$PKG_CONFIG" && \
74242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74243  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74244  ac_status=$?
74245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74246  test $ac_status = 0; }; then
74247  pkg_cv_VOAMRWBENC_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
74248else
74249  pkg_failed=yes
74250fi
74251    fi
74252else
74253	pkg_failed=untried
74254fi
74255
74256
74257
74258if test $pkg_failed = yes; then
74259
74260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74261        _pkg_short_errors_supported=yes
74262else
74263        _pkg_short_errors_supported=no
74264fi
74265        if test $_pkg_short_errors_supported = yes; then
74266	        VOAMRWBENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
74267        else
74268	        VOAMRWBENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
74269        fi
74270	# Put the nasty error message in config.log where it belongs
74271	echo "$VOAMRWBENC_PKG_ERRORS" >&5
74272
74273	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74274$as_echo "no" >&6; }
74275
74276      HAVE_VOAMRWBENC="no"
74277      if test "x$required" = "xyes"; then
74278        as_fn_error $? "$VOAMRWBENC_PKG_ERRORS" "$LINENO" 5
74279      else
74280        { $as_echo "$as_me:${as_lineno-$LINENO}: $VOAMRWBENC_PKG_ERRORS" >&5
74281$as_echo "$as_me: $VOAMRWBENC_PKG_ERRORS" >&6;}
74282      fi
74283
74284elif test $pkg_failed = untried; then
74285
74286      HAVE_VOAMRWBENC="no"
74287      if test "x$required" = "xyes"; then
74288        as_fn_error $? "$VOAMRWBENC_PKG_ERRORS" "$LINENO" 5
74289      else
74290        { $as_echo "$as_me:${as_lineno-$LINENO}: $VOAMRWBENC_PKG_ERRORS" >&5
74291$as_echo "$as_me: $VOAMRWBENC_PKG_ERRORS" >&6;}
74292      fi
74293
74294else
74295	VOAMRWBENC_CFLAGS=$pkg_cv_VOAMRWBENC_CFLAGS
74296	VOAMRWBENC_LIBS=$pkg_cv_VOAMRWBENC_LIBS
74297        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74298$as_echo "yes" >&6; }
74299
74300      HAVE_VOAMRWBENC="yes"
74301
74302fi
74303
74304
74305
74306
74307  LIBS=$gst_check_save_LIBS
74308  LDFLAGS=$gst_check_save_LDFLAGS
74309  CFLAGS=$gst_check_save_CFLAGS
74310  CPPFLAGS=$gst_check_save_CPPFLAGS
74311  CXXFLAGS=$gst_check_save_CXXFLAGS
74312
74313    if test x$HAVE_VOAMRWBENC = xno; then
74314    USE_VOAMRWBENC=no
74315  else
74316    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vo-amrwbenc" >&5
74317$as_echo "$as_me: *** These plugins will be built: vo-amrwbenc" >&6;}
74318  fi
74319fi
74320if test x$USE_VOAMRWBENC = xyes; then
74321  :
74322  if test "xvo-amrwbenc" != "x"; then
74323    GST_PLUGINS_YES="\tvo-amrwbenc\n$GST_PLUGINS_YES"
74324  fi
74325
74326$as_echo "#define HAVE_VOAMRWBENC /**/" >>confdefs.h
74327
74328else
74329  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vo-amrwbenc" >&5
74330$as_echo "$as_me: *** These plugins will not be built: vo-amrwbenc" >&6;}
74331  if test "xvo-amrwbenc" != "x"; then
74332    GST_PLUGINS_NO="\tvo-amrwbenc\n$GST_PLUGINS_NO"
74333  fi
74334  :
74335fi
74336 if test x$USE_VOAMRWBENC = xyes; then
74337  USE_VOAMRWBENC_TRUE=
74338  USE_VOAMRWBENC_FALSE='#'
74339else
74340  USE_VOAMRWBENC_TRUE='#'
74341  USE_VOAMRWBENC_FALSE=
74342fi
74343
74344
74345
74346echo
74347{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: vo-aacenc library ***" >&5
74348$as_echo "$as_me: *** checking feature: vo-aacenc library ***" >&6;}
74349if test "xvo-aacenc" != "x"
74350then
74351  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vo-aacenc ***" >&5
74352$as_echo "$as_me: *** for plug-ins: vo-aacenc ***" >&6;}
74353fi
74354NOUSE=
74355if test "x$USE_VOAACENC" = "xno"; then
74356  NOUSE="yes"
74357fi
74358# Check whether --enable-voaacenc was given.
74359if test "${enable_voaacenc+set}" = set; then :
74360  enableval=$enable_voaacenc;  case "${enableval}" in
74361      yes) USE_VOAACENC=yes;;
74362      no) USE_VOAACENC=no;;
74363      *) as_fn_error $? "bad value ${enableval} for --enable-voaacenc" "$LINENO" 5 ;;
74364    esac
74365else
74366   USE_VOAACENC=yes
74367fi
74368
74369if test "x$NOUSE" = "xyes"; then
74370  USE_VOAACENC="no"
74371  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vo-aacenc pre-configured not to be built" >&5
74372$as_echo "$as_me: WARNING: *** vo-aacenc pre-configured not to be built" >&2;}
74373fi
74374NOUSE=
74375
74376if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VOAACENC " > /dev/null; then
74377  USE_VOAACENC="no"
74378  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vo-aacenc not ported" >&5
74379$as_echo "$as_me: WARNING: *** vo-aacenc not ported" >&2;}
74380fi
74381
74382
74383if test x$USE_VOAACENC = xyes; then
74384
74385  gst_check_save_LIBS=$LIBS
74386  gst_check_save_LDFLAGS=$LDFLAGS
74387  gst_check_save_CFLAGS=$CFLAGS
74388  gst_check_save_CPPFLAGS=$CPPFLAGS
74389  gst_check_save_CXXFLAGS=$CXXFLAGS
74390
74391  HAVE_VOAACENC=no
74392
74393
74394  which="vo-aacenc >= 0.1.0"
74395    required="no"
74396
74397
74398pkg_failed=no
74399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VOAACENC" >&5
74400$as_echo_n "checking for VOAACENC... " >&6; }
74401
74402if test -n "$PKG_CONFIG"; then
74403    if test -n "$VOAACENC_CFLAGS"; then
74404        pkg_cv_VOAACENC_CFLAGS="$VOAACENC_CFLAGS"
74405    else
74406        if test -n "$PKG_CONFIG" && \
74407    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74408  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74409  ac_status=$?
74410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74411  test $ac_status = 0; }; then
74412  pkg_cv_VOAACENC_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
74413else
74414  pkg_failed=yes
74415fi
74416    fi
74417else
74418	pkg_failed=untried
74419fi
74420if test -n "$PKG_CONFIG"; then
74421    if test -n "$VOAACENC_LIBS"; then
74422        pkg_cv_VOAACENC_LIBS="$VOAACENC_LIBS"
74423    else
74424        if test -n "$PKG_CONFIG" && \
74425    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
74426  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
74427  ac_status=$?
74428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74429  test $ac_status = 0; }; then
74430  pkg_cv_VOAACENC_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
74431else
74432  pkg_failed=yes
74433fi
74434    fi
74435else
74436	pkg_failed=untried
74437fi
74438
74439
74440
74441if test $pkg_failed = yes; then
74442
74443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74444        _pkg_short_errors_supported=yes
74445else
74446        _pkg_short_errors_supported=no
74447fi
74448        if test $_pkg_short_errors_supported = yes; then
74449	        VOAACENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
74450        else
74451	        VOAACENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
74452        fi
74453	# Put the nasty error message in config.log where it belongs
74454	echo "$VOAACENC_PKG_ERRORS" >&5
74455
74456	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74457$as_echo "no" >&6; }
74458
74459      HAVE_VOAACENC="no"
74460      if test "x$required" = "xyes"; then
74461        as_fn_error $? "$VOAACENC_PKG_ERRORS" "$LINENO" 5
74462      else
74463        { $as_echo "$as_me:${as_lineno-$LINENO}: $VOAACENC_PKG_ERRORS" >&5
74464$as_echo "$as_me: $VOAACENC_PKG_ERRORS" >&6;}
74465      fi
74466
74467elif test $pkg_failed = untried; then
74468
74469      HAVE_VOAACENC="no"
74470      if test "x$required" = "xyes"; then
74471        as_fn_error $? "$VOAACENC_PKG_ERRORS" "$LINENO" 5
74472      else
74473        { $as_echo "$as_me:${as_lineno-$LINENO}: $VOAACENC_PKG_ERRORS" >&5
74474$as_echo "$as_me: $VOAACENC_PKG_ERRORS" >&6;}
74475      fi
74476
74477else
74478	VOAACENC_CFLAGS=$pkg_cv_VOAACENC_CFLAGS
74479	VOAACENC_LIBS=$pkg_cv_VOAACENC_LIBS
74480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74481$as_echo "yes" >&6; }
74482
74483      HAVE_VOAACENC="yes"
74484
74485fi
74486
74487
74488
74489
74490  LIBS=$gst_check_save_LIBS
74491  LDFLAGS=$gst_check_save_LDFLAGS
74492  CFLAGS=$gst_check_save_CFLAGS
74493  CPPFLAGS=$gst_check_save_CPPFLAGS
74494  CXXFLAGS=$gst_check_save_CXXFLAGS
74495
74496    if test x$HAVE_VOAACENC = xno; then
74497    USE_VOAACENC=no
74498  else
74499    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vo-aacenc" >&5
74500$as_echo "$as_me: *** These plugins will be built: vo-aacenc" >&6;}
74501  fi
74502fi
74503if test x$USE_VOAACENC = xyes; then
74504  :
74505  if test "xvo-aacenc" != "x"; then
74506    GST_PLUGINS_YES="\tvo-aacenc\n$GST_PLUGINS_YES"
74507  fi
74508
74509$as_echo "#define HAVE_VOAACENC /**/" >>confdefs.h
74510
74511else
74512  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vo-aacenc" >&5
74513$as_echo "$as_me: *** These plugins will not be built: vo-aacenc" >&6;}
74514  if test "xvo-aacenc" != "x"; then
74515    GST_PLUGINS_NO="\tvo-aacenc\n$GST_PLUGINS_NO"
74516  fi
74517  :
74518fi
74519 if test x$USE_VOAACENC = xyes; then
74520  USE_VOAACENC_TRUE=
74521  USE_VOAACENC_FALSE='#'
74522else
74523  USE_VOAACENC_TRUE='#'
74524  USE_VOAACENC_FALSE=
74525fi
74526
74527
74528
74529echo
74530{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: bs2b ***" >&5
74531$as_echo "$as_me: *** checking feature: bs2b ***" >&6;}
74532if test "xbs2b" != "x"
74533then
74534  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: bs2b ***" >&5
74535$as_echo "$as_me: *** for plug-ins: bs2b ***" >&6;}
74536fi
74537NOUSE=
74538if test "x$USE_BS2B" = "xno"; then
74539  NOUSE="yes"
74540fi
74541# Check whether --enable-bs2b was given.
74542if test "${enable_bs2b+set}" = set; then :
74543  enableval=$enable_bs2b;  case "${enableval}" in
74544      yes) USE_BS2B=yes;;
74545      no) USE_BS2B=no;;
74546      *) as_fn_error $? "bad value ${enableval} for --enable-bs2b" "$LINENO" 5 ;;
74547    esac
74548else
74549   USE_BS2B=yes
74550fi
74551
74552if test "x$NOUSE" = "xyes"; then
74553  USE_BS2B="no"
74554  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bs2b pre-configured not to be built" >&5
74555$as_echo "$as_me: WARNING: *** bs2b pre-configured not to be built" >&2;}
74556fi
74557NOUSE=
74558
74559if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " BS2B " > /dev/null; then
74560  USE_BS2B="no"
74561  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bs2b not ported" >&5
74562$as_echo "$as_me: WARNING: *** bs2b not ported" >&2;}
74563fi
74564
74565
74566if test x$USE_BS2B = xyes; then
74567
74568  gst_check_save_LIBS=$LIBS
74569  gst_check_save_LDFLAGS=$LDFLAGS
74570  gst_check_save_CFLAGS=$CFLAGS
74571  gst_check_save_CPPFLAGS=$CPPFLAGS
74572  gst_check_save_CXXFLAGS=$CXXFLAGS
74573
74574  HAVE_BS2B=no
74575
74576
74577pkg_failed=no
74578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BS2B" >&5
74579$as_echo_n "checking for BS2B... " >&6; }
74580
74581if test -n "$PKG_CONFIG"; then
74582    if test -n "$BS2B_CFLAGS"; then
74583        pkg_cv_BS2B_CFLAGS="$BS2B_CFLAGS"
74584    else
74585        if test -n "$PKG_CONFIG" && \
74586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbs2b >= 3.1.0\""; } >&5
74587  ($PKG_CONFIG --exists --print-errors "libbs2b >= 3.1.0") 2>&5
74588  ac_status=$?
74589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74590  test $ac_status = 0; }; then
74591  pkg_cv_BS2B_CFLAGS=`$PKG_CONFIG --cflags "libbs2b >= 3.1.0" 2>/dev/null`
74592else
74593  pkg_failed=yes
74594fi
74595    fi
74596else
74597	pkg_failed=untried
74598fi
74599if test -n "$PKG_CONFIG"; then
74600    if test -n "$BS2B_LIBS"; then
74601        pkg_cv_BS2B_LIBS="$BS2B_LIBS"
74602    else
74603        if test -n "$PKG_CONFIG" && \
74604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbs2b >= 3.1.0\""; } >&5
74605  ($PKG_CONFIG --exists --print-errors "libbs2b >= 3.1.0") 2>&5
74606  ac_status=$?
74607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74608  test $ac_status = 0; }; then
74609  pkg_cv_BS2B_LIBS=`$PKG_CONFIG --libs "libbs2b >= 3.1.0" 2>/dev/null`
74610else
74611  pkg_failed=yes
74612fi
74613    fi
74614else
74615	pkg_failed=untried
74616fi
74617
74618
74619
74620if test $pkg_failed = yes; then
74621
74622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74623        _pkg_short_errors_supported=yes
74624else
74625        _pkg_short_errors_supported=no
74626fi
74627        if test $_pkg_short_errors_supported = yes; then
74628	        BS2B_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbs2b >= 3.1.0"`
74629        else
74630	        BS2B_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbs2b >= 3.1.0"`
74631        fi
74632	# Put the nasty error message in config.log where it belongs
74633	echo "$BS2B_PKG_ERRORS" >&5
74634
74635	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74636$as_echo "no" >&6; }
74637
74638    HAVE_BS2B="no"
74639
74640elif test $pkg_failed = untried; then
74641
74642    HAVE_BS2B="no"
74643
74644else
74645	BS2B_CFLAGS=$pkg_cv_BS2B_CFLAGS
74646	BS2B_LIBS=$pkg_cv_BS2B_LIBS
74647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74648$as_echo "yes" >&6; }
74649	HAVE_BS2B="yes"
74650fi
74651
74652
74653
74654
74655  LIBS=$gst_check_save_LIBS
74656  LDFLAGS=$gst_check_save_LDFLAGS
74657  CFLAGS=$gst_check_save_CFLAGS
74658  CPPFLAGS=$gst_check_save_CPPFLAGS
74659  CXXFLAGS=$gst_check_save_CXXFLAGS
74660
74661    if test x$HAVE_BS2B = xno; then
74662    USE_BS2B=no
74663  else
74664    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: bs2b" >&5
74665$as_echo "$as_me: *** These plugins will be built: bs2b" >&6;}
74666  fi
74667fi
74668if test x$USE_BS2B = xyes; then
74669  :
74670  if test "xbs2b" != "x"; then
74671    GST_PLUGINS_YES="\tbs2b\n$GST_PLUGINS_YES"
74672  fi
74673
74674$as_echo "#define HAVE_BS2B /**/" >>confdefs.h
74675
74676else
74677  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: bs2b" >&5
74678$as_echo "$as_me: *** These plugins will not be built: bs2b" >&6;}
74679  if test "xbs2b" != "x"; then
74680    GST_PLUGINS_NO="\tbs2b\n$GST_PLUGINS_NO"
74681  fi
74682  :
74683fi
74684 if test x$USE_BS2B = xyes; then
74685  USE_BS2B_TRUE=
74686  USE_BS2B_FALSE='#'
74687else
74688  USE_BS2B_TRUE='#'
74689  USE_BS2B_FALSE=
74690fi
74691
74692
74693
74694echo
74695{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: bz2 library ***" >&5
74696$as_echo "$as_me: *** checking feature: bz2 library ***" >&6;}
74697if test "xbz2" != "x"
74698then
74699  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: bz2 ***" >&5
74700$as_echo "$as_me: *** for plug-ins: bz2 ***" >&6;}
74701fi
74702NOUSE=
74703if test "x$USE_BZ2" = "xno"; then
74704  NOUSE="yes"
74705fi
74706# Check whether --enable-bz2 was given.
74707if test "${enable_bz2+set}" = set; then :
74708  enableval=$enable_bz2;  case "${enableval}" in
74709      yes) USE_BZ2=yes;;
74710      no) USE_BZ2=no;;
74711      *) as_fn_error $? "bad value ${enableval} for --enable-bz2" "$LINENO" 5 ;;
74712    esac
74713else
74714   USE_BZ2=yes
74715fi
74716
74717if test "x$NOUSE" = "xyes"; then
74718  USE_BZ2="no"
74719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bz2 pre-configured not to be built" >&5
74720$as_echo "$as_me: WARNING: *** bz2 pre-configured not to be built" >&2;}
74721fi
74722NOUSE=
74723
74724if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " BZ2 " > /dev/null; then
74725  USE_BZ2="no"
74726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** bz2 not ported" >&5
74727$as_echo "$as_me: WARNING: *** bz2 not ported" >&2;}
74728fi
74729
74730
74731if test x$USE_BZ2 = xyes; then
74732
74733  gst_check_save_LIBS=$LIBS
74734  gst_check_save_LDFLAGS=$LDFLAGS
74735  gst_check_save_CFLAGS=$CFLAGS
74736  gst_check_save_CPPFLAGS=$CPPFLAGS
74737  gst_check_save_CXXFLAGS=$CXXFLAGS
74738
74739  HAVE_BZ2=no
74740
74741  save_LIBS=$LIBS
74742  LIBS="$LIBS -lbz2"
74743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5
74744$as_echo_n "checking for BZ2_bzlibVersion in -lbz2... " >&6; }
74745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74746/* end confdefs.h.  */
74747#include <bzlib.h>
74748int
74749main ()
74750{
74751const char *version = BZ2_bzlibVersion ();
74752  ;
74753  return 0;
74754}
74755_ACEOF
74756if ac_fn_c_try_link "$LINENO"; then :
74757  HAVE_BZ2=yes
74758else
74759  HAVE_BZ2=no
74760fi
74761rm -f core conftest.err conftest.$ac_objext \
74762    conftest$ac_exeext conftest.$ac_ext
74763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_BZ2" >&5
74764$as_echo "$HAVE_BZ2" >&6; }
74765  LIBS=$save_LIBS
74766  if test "x$HAVE_BZ2" = "xyes"; then
74767    BZ2_LIBS="-lbz2"
74768  fi
74769
74770
74771
74772
74773  LIBS=$gst_check_save_LIBS
74774  LDFLAGS=$gst_check_save_LDFLAGS
74775  CFLAGS=$gst_check_save_CFLAGS
74776  CPPFLAGS=$gst_check_save_CPPFLAGS
74777  CXXFLAGS=$gst_check_save_CXXFLAGS
74778
74779    if test x$HAVE_BZ2 = xno; then
74780    USE_BZ2=no
74781  else
74782    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: bz2" >&5
74783$as_echo "$as_me: *** These plugins will be built: bz2" >&6;}
74784  fi
74785fi
74786if test x$USE_BZ2 = xyes; then
74787  :
74788  if test "xbz2" != "x"; then
74789    GST_PLUGINS_YES="\tbz2\n$GST_PLUGINS_YES"
74790  fi
74791
74792$as_echo "#define HAVE_BZ2 /**/" >>confdefs.h
74793
74794else
74795  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: bz2" >&5
74796$as_echo "$as_me: *** These plugins will not be built: bz2" >&6;}
74797  if test "xbz2" != "x"; then
74798    GST_PLUGINS_NO="\tbz2\n$GST_PLUGINS_NO"
74799  fi
74800  :
74801fi
74802 if test x$USE_BZ2 = xyes; then
74803  USE_BZ2_TRUE=
74804  USE_BZ2_FALSE='#'
74805else
74806  USE_BZ2_TRUE='#'
74807  USE_BZ2_FALSE=
74808fi
74809
74810
74811
74812#dnl *** cairo ***
74813#translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
74814#AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
74815#  PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
74816#    HAVE_CAIRO=no
74817#  ])
74818#  AC_SUBST(CAIRO_CFLAGS)
74819#  AC_SUBST(CAIRO_LIBS)
74820#])
74821
74822echo
74823{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: chromaprint ***" >&5
74824$as_echo "$as_me: *** checking feature: chromaprint ***" >&6;}
74825if test "xchromaprint" != "x"
74826then
74827  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: chromaprint ***" >&5
74828$as_echo "$as_me: *** for plug-ins: chromaprint ***" >&6;}
74829fi
74830NOUSE=
74831if test "x$USE_CHROMAPRINT" = "xno"; then
74832  NOUSE="yes"
74833fi
74834# Check whether --enable-chromaprint was given.
74835if test "${enable_chromaprint+set}" = set; then :
74836  enableval=$enable_chromaprint;  case "${enableval}" in
74837      yes) USE_CHROMAPRINT=yes;;
74838      no) USE_CHROMAPRINT=no;;
74839      *) as_fn_error $? "bad value ${enableval} for --enable-chromaprint" "$LINENO" 5 ;;
74840    esac
74841else
74842   USE_CHROMAPRINT=yes
74843fi
74844
74845if test "x$NOUSE" = "xyes"; then
74846  USE_CHROMAPRINT="no"
74847  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chromaprint pre-configured not to be built" >&5
74848$as_echo "$as_me: WARNING: *** chromaprint pre-configured not to be built" >&2;}
74849fi
74850NOUSE=
74851
74852if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " CHROMAPRINT " > /dev/null; then
74853  USE_CHROMAPRINT="no"
74854  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** chromaprint not ported" >&5
74855$as_echo "$as_me: WARNING: *** chromaprint not ported" >&2;}
74856fi
74857
74858
74859if test x$USE_CHROMAPRINT = xyes; then
74860
74861  gst_check_save_LIBS=$LIBS
74862  gst_check_save_LDFLAGS=$LDFLAGS
74863  gst_check_save_CFLAGS=$CFLAGS
74864  gst_check_save_CPPFLAGS=$CPPFLAGS
74865  gst_check_save_CXXFLAGS=$CXXFLAGS
74866
74867  HAVE_CHROMAPRINT=no
74868
74869
74870pkg_failed=no
74871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHROMAPRINT" >&5
74872$as_echo_n "checking for CHROMAPRINT... " >&6; }
74873
74874if test -n "$PKG_CONFIG"; then
74875    if test -n "$CHROMAPRINT_CFLAGS"; then
74876        pkg_cv_CHROMAPRINT_CFLAGS="$CHROMAPRINT_CFLAGS"
74877    else
74878        if test -n "$PKG_CONFIG" && \
74879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libchromaprint\""; } >&5
74880  ($PKG_CONFIG --exists --print-errors "libchromaprint") 2>&5
74881  ac_status=$?
74882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74883  test $ac_status = 0; }; then
74884  pkg_cv_CHROMAPRINT_CFLAGS=`$PKG_CONFIG --cflags "libchromaprint" 2>/dev/null`
74885else
74886  pkg_failed=yes
74887fi
74888    fi
74889else
74890	pkg_failed=untried
74891fi
74892if test -n "$PKG_CONFIG"; then
74893    if test -n "$CHROMAPRINT_LIBS"; then
74894        pkg_cv_CHROMAPRINT_LIBS="$CHROMAPRINT_LIBS"
74895    else
74896        if test -n "$PKG_CONFIG" && \
74897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libchromaprint\""; } >&5
74898  ($PKG_CONFIG --exists --print-errors "libchromaprint") 2>&5
74899  ac_status=$?
74900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74901  test $ac_status = 0; }; then
74902  pkg_cv_CHROMAPRINT_LIBS=`$PKG_CONFIG --libs "libchromaprint" 2>/dev/null`
74903else
74904  pkg_failed=yes
74905fi
74906    fi
74907else
74908	pkg_failed=untried
74909fi
74910
74911
74912
74913if test $pkg_failed = yes; then
74914
74915if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
74916        _pkg_short_errors_supported=yes
74917else
74918        _pkg_short_errors_supported=no
74919fi
74920        if test $_pkg_short_errors_supported = yes; then
74921	        CHROMAPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libchromaprint"`
74922        else
74923	        CHROMAPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libchromaprint"`
74924        fi
74925	# Put the nasty error message in config.log where it belongs
74926	echo "$CHROMAPRINT_PKG_ERRORS" >&5
74927
74928	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
74929$as_echo "no" >&6; }
74930
74931    HAVE_CHROMAPRINT="no"
74932
74933elif test $pkg_failed = untried; then
74934
74935    HAVE_CHROMAPRINT="no"
74936
74937else
74938	CHROMAPRINT_CFLAGS=$pkg_cv_CHROMAPRINT_CFLAGS
74939	CHROMAPRINT_LIBS=$pkg_cv_CHROMAPRINT_LIBS
74940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
74941$as_echo "yes" >&6; }
74942	HAVE_CHROMAPRINT="yes"
74943fi
74944
74945
74946
74947
74948  LIBS=$gst_check_save_LIBS
74949  LDFLAGS=$gst_check_save_LDFLAGS
74950  CFLAGS=$gst_check_save_CFLAGS
74951  CPPFLAGS=$gst_check_save_CPPFLAGS
74952  CXXFLAGS=$gst_check_save_CXXFLAGS
74953
74954    if test x$HAVE_CHROMAPRINT = xno; then
74955    USE_CHROMAPRINT=no
74956  else
74957    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: chromaprint" >&5
74958$as_echo "$as_me: *** These plugins will be built: chromaprint" >&6;}
74959  fi
74960fi
74961if test x$USE_CHROMAPRINT = xyes; then
74962  :
74963  if test "xchromaprint" != "x"; then
74964    GST_PLUGINS_YES="\tchromaprint\n$GST_PLUGINS_YES"
74965  fi
74966
74967$as_echo "#define HAVE_CHROMAPRINT /**/" >>confdefs.h
74968
74969else
74970  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: chromaprint" >&5
74971$as_echo "$as_me: *** These plugins will not be built: chromaprint" >&6;}
74972  if test "xchromaprint" != "x"; then
74973    GST_PLUGINS_NO="\tchromaprint\n$GST_PLUGINS_NO"
74974  fi
74975  :
74976fi
74977 if test x$USE_CHROMAPRINT = xyes; then
74978  USE_CHROMAPRINT_TRUE=
74979  USE_CHROMAPRINT_FALSE='#'
74980else
74981  USE_CHROMAPRINT_TRUE='#'
74982  USE_CHROMAPRINT_FALSE=
74983fi
74984
74985
74986
74987echo
74988{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Curl plugin ***" >&5
74989$as_echo "$as_me: *** checking feature: Curl plugin ***" >&6;}
74990if test "xcurl" != "x"
74991then
74992  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: curl ***" >&5
74993$as_echo "$as_me: *** for plug-ins: curl ***" >&6;}
74994fi
74995NOUSE=
74996if test "x$USE_CURL" = "xno"; then
74997  NOUSE="yes"
74998fi
74999# Check whether --enable-curl was given.
75000if test "${enable_curl+set}" = set; then :
75001  enableval=$enable_curl;  case "${enableval}" in
75002      yes) USE_CURL=yes;;
75003      no) USE_CURL=no;;
75004      *) as_fn_error $? "bad value ${enableval} for --enable-curl" "$LINENO" 5 ;;
75005    esac
75006else
75007   USE_CURL=yes
75008fi
75009
75010if test "x$NOUSE" = "xyes"; then
75011  USE_CURL="no"
75012  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** curl pre-configured not to be built" >&5
75013$as_echo "$as_me: WARNING: *** curl pre-configured not to be built" >&2;}
75014fi
75015NOUSE=
75016
75017if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " CURL " > /dev/null; then
75018  USE_CURL="no"
75019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** curl not ported" >&5
75020$as_echo "$as_me: WARNING: *** curl not ported" >&2;}
75021fi
75022
75023
75024if test x$USE_CURL = xyes; then
75025
75026  gst_check_save_LIBS=$LIBS
75027  gst_check_save_LDFLAGS=$LDFLAGS
75028  gst_check_save_CFLAGS=$CFLAGS
75029  gst_check_save_CPPFLAGS=$CPPFLAGS
75030  gst_check_save_CXXFLAGS=$CXXFLAGS
75031
75032  HAVE_CURL=no
75033
75034
75035pkg_failed=no
75036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
75037$as_echo_n "checking for CURL... " >&6; }
75038
75039if test -n "$PKG_CONFIG"; then
75040    if test -n "$CURL_CFLAGS"; then
75041        pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
75042    else
75043        if test -n "$PKG_CONFIG" && \
75044    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.35.0\""; } >&5
75045  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.35.0") 2>&5
75046  ac_status=$?
75047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75048  test $ac_status = 0; }; then
75049  pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.35.0" 2>/dev/null`
75050else
75051  pkg_failed=yes
75052fi
75053    fi
75054else
75055	pkg_failed=untried
75056fi
75057if test -n "$PKG_CONFIG"; then
75058    if test -n "$CURL_LIBS"; then
75059        pkg_cv_CURL_LIBS="$CURL_LIBS"
75060    else
75061        if test -n "$PKG_CONFIG" && \
75062    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.35.0\""; } >&5
75063  ($PKG_CONFIG --exists --print-errors "libcurl >= 7.35.0") 2>&5
75064  ac_status=$?
75065  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75066  test $ac_status = 0; }; then
75067  pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.35.0" 2>/dev/null`
75068else
75069  pkg_failed=yes
75070fi
75071    fi
75072else
75073	pkg_failed=untried
75074fi
75075
75076
75077
75078if test $pkg_failed = yes; then
75079
75080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75081        _pkg_short_errors_supported=yes
75082else
75083        _pkg_short_errors_supported=no
75084fi
75085        if test $_pkg_short_errors_supported = yes; then
75086	        CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl >= 7.35.0"`
75087        else
75088	        CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl >= 7.35.0"`
75089        fi
75090	# Put the nasty error message in config.log where it belongs
75091	echo "$CURL_PKG_ERRORS" >&5
75092
75093	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75094$as_echo "no" >&6; }
75095
75096    HAVE_CURL="no"
75097
75098elif test $pkg_failed = untried; then
75099
75100    HAVE_CURL="no"
75101
75102else
75103	CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
75104	CURL_LIBS=$pkg_cv_CURL_LIBS
75105        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75106$as_echo "yes" >&6; }
75107
75108    HAVE_CURL="yes"
75109    for ac_header in unistd.h sys/socket.h sys/types.h netinet/in.h netinet/tcp.h fcntl.h
75110do :
75111  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
75112ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
75113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
75114  cat >>confdefs.h <<_ACEOF
75115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
75116_ACEOF
75117
75118else
75119
75120      for ac_header in unistd.h sys/types.h winsock2.h ws2tcpip.h fcntl.h
75121do :
75122  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
75123ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
75124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
75125  cat >>confdefs.h <<_ACEOF
75126#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
75127_ACEOF
75128
75129else
75130  HAVE_CURL="no"
75131fi
75132
75133done
75134
75135
75136fi
75137
75138done
75139
75140    for ac_header in netinet/ip.h
75141do :
75142  ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#ifdef HAVE_SYS_TYPES_H
75143     # include <sys/types.h>
75144     #endif
75145     #ifdef HAVE_NETINET_IN_H
75146     # include <netinet/in.h>
75147     #endif
75148
75149"
75150if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
75151  cat >>confdefs.h <<_ACEOF
75152#define HAVE_NETINET_IP_H 1
75153_ACEOF
75154
75155else
75156  HAVE_CURL="no"
75157fi
75158
75159done
75160
75161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket support needed by curlsink" >&5
75162$as_echo_n "checking for socket support needed by curlsink... " >&6; }
75163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CURL" >&5
75164$as_echo "$HAVE_CURL" >&6; }
75165
75166fi
75167
75168
75169
75170pkg_failed=no
75171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSH2" >&5
75172$as_echo_n "checking for SSH2... " >&6; }
75173
75174if test -n "$PKG_CONFIG"; then
75175    if test -n "$SSH2_CFLAGS"; then
75176        pkg_cv_SSH2_CFLAGS="$SSH2_CFLAGS"
75177    else
75178        if test -n "$PKG_CONFIG" && \
75179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh2 >= 1.4.3\""; } >&5
75180  ($PKG_CONFIG --exists --print-errors "libssh2 >= 1.4.3") 2>&5
75181  ac_status=$?
75182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75183  test $ac_status = 0; }; then
75184  pkg_cv_SSH2_CFLAGS=`$PKG_CONFIG --cflags "libssh2 >= 1.4.3" 2>/dev/null`
75185else
75186  pkg_failed=yes
75187fi
75188    fi
75189else
75190	pkg_failed=untried
75191fi
75192if test -n "$PKG_CONFIG"; then
75193    if test -n "$SSH2_LIBS"; then
75194        pkg_cv_SSH2_LIBS="$SSH2_LIBS"
75195    else
75196        if test -n "$PKG_CONFIG" && \
75197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh2 >= 1.4.3\""; } >&5
75198  ($PKG_CONFIG --exists --print-errors "libssh2 >= 1.4.3") 2>&5
75199  ac_status=$?
75200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75201  test $ac_status = 0; }; then
75202  pkg_cv_SSH2_LIBS=`$PKG_CONFIG --libs "libssh2 >= 1.4.3" 2>/dev/null`
75203else
75204  pkg_failed=yes
75205fi
75206    fi
75207else
75208	pkg_failed=untried
75209fi
75210
75211
75212
75213if test $pkg_failed = yes; then
75214
75215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75216        _pkg_short_errors_supported=yes
75217else
75218        _pkg_short_errors_supported=no
75219fi
75220        if test $_pkg_short_errors_supported = yes; then
75221	        SSH2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libssh2 >= 1.4.3"`
75222        else
75223	        SSH2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libssh2 >= 1.4.3"`
75224        fi
75225	# Put the nasty error message in config.log where it belongs
75226	echo "$SSH2_PKG_ERRORS" >&5
75227
75228	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75229$as_echo "no" >&6; }
75230
75231    HAVE_SSH2="no"
75232
75233elif test $pkg_failed = untried; then
75234
75235    HAVE_SSH2="no"
75236
75237else
75238	SSH2_CFLAGS=$pkg_cv_SSH2_CFLAGS
75239	SSH2_LIBS=$pkg_cv_SSH2_LIBS
75240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75241$as_echo "yes" >&6; }
75242
75243    HAVE_SSH2="yes"
75244
75245$as_echo "#define HAVE_SSH2 1" >>confdefs.h
75246
75247
75248fi
75249   if test "x$HAVE_SSH2" = "xyes"; then
75250  USE_SSH2_TRUE=
75251  USE_SSH2_FALSE='#'
75252else
75253  USE_SSH2_TRUE='#'
75254  USE_SSH2_FALSE=
75255fi
75256
75257
75258
75259
75260
75261  LIBS=$gst_check_save_LIBS
75262  LDFLAGS=$gst_check_save_LDFLAGS
75263  CFLAGS=$gst_check_save_CFLAGS
75264  CPPFLAGS=$gst_check_save_CPPFLAGS
75265  CXXFLAGS=$gst_check_save_CXXFLAGS
75266
75267    if test x$HAVE_CURL = xno; then
75268    USE_CURL=no
75269  else
75270    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: curl" >&5
75271$as_echo "$as_me: *** These plugins will be built: curl" >&6;}
75272  fi
75273fi
75274if test x$USE_CURL = xyes; then
75275  :
75276  if test "xcurl" != "x"; then
75277    GST_PLUGINS_YES="\tcurl\n$GST_PLUGINS_YES"
75278  fi
75279
75280$as_echo "#define HAVE_CURL /**/" >>confdefs.h
75281
75282else
75283  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: curl" >&5
75284$as_echo "$as_me: *** These plugins will not be built: curl" >&6;}
75285  if test "xcurl" != "x"; then
75286    GST_PLUGINS_NO="\tcurl\n$GST_PLUGINS_NO"
75287  fi
75288   if false; then
75289  USE_SSH2_TRUE=
75290  USE_SSH2_FALSE='#'
75291else
75292  USE_SSH2_TRUE='#'
75293  USE_SSH2_FALSE=
75294fi
75295
75296fi
75297 if test x$USE_CURL = xyes; then
75298  USE_CURL_TRUE=
75299  USE_CURL_FALSE='#'
75300else
75301  USE_CURL_TRUE='#'
75302  USE_CURL_FALSE=
75303fi
75304
75305
75306
75307echo
75308{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: DASH plug-in ***" >&5
75309$as_echo "$as_me: *** checking feature: DASH plug-in ***" >&6;}
75310if test "xdash" != "x"
75311then
75312  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dash ***" >&5
75313$as_echo "$as_me: *** for plug-ins: dash ***" >&6;}
75314fi
75315NOUSE=
75316if test "x$USE_DASH" = "xno"; then
75317  NOUSE="yes"
75318fi
75319# Check whether --enable-dash was given.
75320if test "${enable_dash+set}" = set; then :
75321  enableval=$enable_dash;  case "${enableval}" in
75322      yes) USE_DASH=yes;;
75323      no) USE_DASH=no;;
75324      *) as_fn_error $? "bad value ${enableval} for --enable-dash" "$LINENO" 5 ;;
75325    esac
75326else
75327   USE_DASH=yes
75328fi
75329
75330if test "x$NOUSE" = "xyes"; then
75331  USE_DASH="no"
75332  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dash pre-configured not to be built" >&5
75333$as_echo "$as_me: WARNING: *** dash pre-configured not to be built" >&2;}
75334fi
75335NOUSE=
75336
75337if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DASH " > /dev/null; then
75338  USE_DASH="no"
75339  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dash not ported" >&5
75340$as_echo "$as_me: WARNING: *** dash not ported" >&2;}
75341fi
75342
75343
75344if test x$USE_DASH = xyes; then
75345
75346  gst_check_save_LIBS=$LIBS
75347  gst_check_save_LDFLAGS=$LDFLAGS
75348  gst_check_save_CFLAGS=$CFLAGS
75349  gst_check_save_CPPFLAGS=$CPPFLAGS
75350  gst_check_save_CXXFLAGS=$CXXFLAGS
75351
75352  HAVE_DASH=no
75353
75354
75355pkg_failed=no
75356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
75357$as_echo_n "checking for LIBXML2... " >&6; }
75358
75359if test -n "$PKG_CONFIG"; then
75360    if test -n "$LIBXML2_CFLAGS"; then
75361        pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
75362    else
75363        if test -n "$PKG_CONFIG" && \
75364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.8\""; } >&5
75365  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.8") 2>&5
75366  ac_status=$?
75367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75368  test $ac_status = 0; }; then
75369  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.8" 2>/dev/null`
75370else
75371  pkg_failed=yes
75372fi
75373    fi
75374else
75375	pkg_failed=untried
75376fi
75377if test -n "$PKG_CONFIG"; then
75378    if test -n "$LIBXML2_LIBS"; then
75379        pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
75380    else
75381        if test -n "$PKG_CONFIG" && \
75382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.8\""; } >&5
75383  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.8") 2>&5
75384  ac_status=$?
75385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75386  test $ac_status = 0; }; then
75387  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.8" 2>/dev/null`
75388else
75389  pkg_failed=yes
75390fi
75391    fi
75392else
75393	pkg_failed=untried
75394fi
75395
75396
75397
75398if test $pkg_failed = yes; then
75399
75400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75401        _pkg_short_errors_supported=yes
75402else
75403        _pkg_short_errors_supported=no
75404fi
75405        if test $_pkg_short_errors_supported = yes; then
75406	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.8"`
75407        else
75408	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.8"`
75409        fi
75410	# Put the nasty error message in config.log where it belongs
75411	echo "$LIBXML2_PKG_ERRORS" >&5
75412
75413	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75414$as_echo "no" >&6; }
75415                HAVE_LIBXML2="no"
75416    HAVE_DASH="no"
75417elif test $pkg_failed = untried; then
75418	HAVE_LIBXML2="no"
75419    HAVE_DASH="no"
75420else
75421	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
75422	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
75423        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75424$as_echo "yes" >&6; }
75425	HAVE_LIBXML2="yes"
75426    HAVE_DASH="yes"
75427fi
75428
75429
75430
75431
75432  LIBS=$gst_check_save_LIBS
75433  LDFLAGS=$gst_check_save_LDFLAGS
75434  CFLAGS=$gst_check_save_CFLAGS
75435  CPPFLAGS=$gst_check_save_CPPFLAGS
75436  CXXFLAGS=$gst_check_save_CXXFLAGS
75437
75438    if test x$HAVE_DASH = xno; then
75439    USE_DASH=no
75440  else
75441    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dash" >&5
75442$as_echo "$as_me: *** These plugins will be built: dash" >&6;}
75443  fi
75444fi
75445if test x$USE_DASH = xyes; then
75446  :
75447  if test "xdash" != "x"; then
75448    GST_PLUGINS_YES="\tdash\n$GST_PLUGINS_YES"
75449  fi
75450
75451$as_echo "#define HAVE_DASH /**/" >>confdefs.h
75452
75453else
75454  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dash" >&5
75455$as_echo "$as_me: *** These plugins will not be built: dash" >&6;}
75456  if test "xdash" != "x"; then
75457    GST_PLUGINS_NO="\tdash\n$GST_PLUGINS_NO"
75458  fi
75459  :
75460fi
75461 if test x$USE_DASH = xyes; then
75462  USE_DASH_TRUE=
75463  USE_DASH_FALSE='#'
75464else
75465  USE_DASH_TRUE='#'
75466  USE_DASH_FALSE=
75467fi
75468
75469
75470
75471echo
75472{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: libdc1394 ***" >&5
75473$as_echo "$as_me: *** checking feature: libdc1394 ***" >&6;}
75474if test "xdc1394" != "x"
75475then
75476  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dc1394 ***" >&5
75477$as_echo "$as_me: *** for plug-ins: dc1394 ***" >&6;}
75478fi
75479NOUSE=
75480if test "x$USE_DC1394" = "xno"; then
75481  NOUSE="yes"
75482fi
75483# Check whether --enable-dc1394 was given.
75484if test "${enable_dc1394+set}" = set; then :
75485  enableval=$enable_dc1394;  case "${enableval}" in
75486      yes) USE_DC1394=yes;;
75487      no) USE_DC1394=no;;
75488      *) as_fn_error $? "bad value ${enableval} for --enable-dc1394" "$LINENO" 5 ;;
75489    esac
75490else
75491   USE_DC1394=yes
75492fi
75493
75494if test "x$NOUSE" = "xyes"; then
75495  USE_DC1394="no"
75496  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dc1394 pre-configured not to be built" >&5
75497$as_echo "$as_me: WARNING: *** dc1394 pre-configured not to be built" >&2;}
75498fi
75499NOUSE=
75500
75501if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DC1394 " > /dev/null; then
75502  USE_DC1394="no"
75503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dc1394 not ported" >&5
75504$as_echo "$as_me: WARNING: *** dc1394 not ported" >&2;}
75505fi
75506
75507
75508if test x$USE_DC1394 = xyes; then
75509
75510  gst_check_save_LIBS=$LIBS
75511  gst_check_save_LDFLAGS=$LDFLAGS
75512  gst_check_save_CFLAGS=$CFLAGS
75513  gst_check_save_CPPFLAGS=$CPPFLAGS
75514  gst_check_save_CXXFLAGS=$CXXFLAGS
75515
75516  HAVE_DC1394=no
75517
75518
75519pkg_failed=no
75520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDC1394" >&5
75521$as_echo_n "checking for LIBDC1394... " >&6; }
75522
75523if test -n "$PKG_CONFIG"; then
75524    if test -n "$LIBDC1394_CFLAGS"; then
75525        pkg_cv_LIBDC1394_CFLAGS="$LIBDC1394_CFLAGS"
75526    else
75527        if test -n "$PKG_CONFIG" && \
75528    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdc1394-2 >= 2.0.0\""; } >&5
75529  ($PKG_CONFIG --exists --print-errors "libdc1394-2 >= 2.0.0") 2>&5
75530  ac_status=$?
75531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75532  test $ac_status = 0; }; then
75533  pkg_cv_LIBDC1394_CFLAGS=`$PKG_CONFIG --cflags "libdc1394-2 >= 2.0.0" 2>/dev/null`
75534else
75535  pkg_failed=yes
75536fi
75537    fi
75538else
75539	pkg_failed=untried
75540fi
75541if test -n "$PKG_CONFIG"; then
75542    if test -n "$LIBDC1394_LIBS"; then
75543        pkg_cv_LIBDC1394_LIBS="$LIBDC1394_LIBS"
75544    else
75545        if test -n "$PKG_CONFIG" && \
75546    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdc1394-2 >= 2.0.0\""; } >&5
75547  ($PKG_CONFIG --exists --print-errors "libdc1394-2 >= 2.0.0") 2>&5
75548  ac_status=$?
75549  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75550  test $ac_status = 0; }; then
75551  pkg_cv_LIBDC1394_LIBS=`$PKG_CONFIG --libs "libdc1394-2 >= 2.0.0" 2>/dev/null`
75552else
75553  pkg_failed=yes
75554fi
75555    fi
75556else
75557	pkg_failed=untried
75558fi
75559
75560
75561
75562if test $pkg_failed = yes; then
75563
75564if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75565        _pkg_short_errors_supported=yes
75566else
75567        _pkg_short_errors_supported=no
75568fi
75569        if test $_pkg_short_errors_supported = yes; then
75570	        LIBDC1394_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdc1394-2 >= 2.0.0"`
75571        else
75572	        LIBDC1394_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdc1394-2 >= 2.0.0"`
75573        fi
75574	# Put the nasty error message in config.log where it belongs
75575	echo "$LIBDC1394_PKG_ERRORS" >&5
75576
75577	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75578$as_echo "no" >&6; }
75579
75580        HAVE_DC1394="no"
75581	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75582$as_echo "no" >&6; }
75583
75584elif test $pkg_failed = untried; then
75585
75586        HAVE_DC1394="no"
75587	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75588$as_echo "no" >&6; }
75589
75590else
75591	LIBDC1394_CFLAGS=$pkg_cv_LIBDC1394_CFLAGS
75592	LIBDC1394_LIBS=$pkg_cv_LIBDC1394_LIBS
75593        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75594$as_echo "yes" >&6; }
75595
75596   	if test -z "`$PKG_CONFIG --modversion libdc1394-2 | grep 2.0.0-rc`"; then
75597		HAVE_DC1394="yes"
75598	else
75599		HAVE_DC1394="no"
75600	fi
75601
75602fi
75603
75604
75605
75606
75607  LIBS=$gst_check_save_LIBS
75608  LDFLAGS=$gst_check_save_LDFLAGS
75609  CFLAGS=$gst_check_save_CFLAGS
75610  CPPFLAGS=$gst_check_save_CPPFLAGS
75611  CXXFLAGS=$gst_check_save_CXXFLAGS
75612
75613    if test x$HAVE_DC1394 = xno; then
75614    USE_DC1394=no
75615  else
75616    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dc1394" >&5
75617$as_echo "$as_me: *** These plugins will be built: dc1394" >&6;}
75618  fi
75619fi
75620if test x$USE_DC1394 = xyes; then
75621  :
75622  if test "xdc1394" != "x"; then
75623    GST_PLUGINS_YES="\tdc1394\n$GST_PLUGINS_YES"
75624  fi
75625
75626$as_echo "#define HAVE_DC1394 /**/" >>confdefs.h
75627
75628else
75629  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dc1394" >&5
75630$as_echo "$as_me: *** These plugins will not be built: dc1394" >&6;}
75631  if test "xdc1394" != "x"; then
75632    GST_PLUGINS_NO="\tdc1394\n$GST_PLUGINS_NO"
75633  fi
75634  :
75635fi
75636 if test x$USE_DC1394 = xyes; then
75637  USE_DC1394_TRUE=
75638  USE_DC1394_FALSE='#'
75639else
75640  USE_DC1394_TRUE='#'
75641  USE_DC1394_FALSE=
75642fi
75643
75644
75645
75646echo
75647{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: decklink ***" >&5
75648$as_echo "$as_me: *** checking feature: decklink ***" >&6;}
75649if test "xdecklink" != "x"
75650then
75651  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: decklink ***" >&5
75652$as_echo "$as_me: *** for plug-ins: decklink ***" >&6;}
75653fi
75654NOUSE=
75655if test "x$USE_DECKLINK" = "xno"; then
75656  NOUSE="yes"
75657fi
75658# Check whether --enable-decklink was given.
75659if test "${enable_decklink+set}" = set; then :
75660  enableval=$enable_decklink;  case "${enableval}" in
75661      yes) USE_DECKLINK=yes;;
75662      no) USE_DECKLINK=no;;
75663      *) as_fn_error $? "bad value ${enableval} for --enable-decklink" "$LINENO" 5 ;;
75664    esac
75665else
75666   USE_DECKLINK=yes
75667fi
75668
75669if test "x$NOUSE" = "xyes"; then
75670  USE_DECKLINK="no"
75671  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** decklink pre-configured not to be built" >&5
75672$as_echo "$as_me: WARNING: *** decklink pre-configured not to be built" >&2;}
75673fi
75674NOUSE=
75675
75676if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DECKLINK " > /dev/null; then
75677  USE_DECKLINK="no"
75678  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** decklink not ported" >&5
75679$as_echo "$as_me: WARNING: *** decklink not ported" >&2;}
75680fi
75681
75682
75683if test x$USE_DECKLINK = xyes; then
75684
75685  gst_check_save_LIBS=$LIBS
75686  gst_check_save_LDFLAGS=$LDFLAGS
75687  gst_check_save_CFLAGS=$CFLAGS
75688  gst_check_save_CPPFLAGS=$CPPFLAGS
75689  gst_check_save_CXXFLAGS=$CXXFLAGS
75690
75691  HAVE_DECKLINK=no
75692
75693   HAVE_DECKLINK=no
75694   case "$host" in
75695     *android*)
75696       HAVE_DECKLINK=no
75697       ;;
75698     *-*linux*)
75699       if test "x$HAVE_PTHREAD_H" = "xyes"; then
75700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
75701$as_echo_n "checking for dlopen in -ldl... " >&6; }
75702if ${ac_cv_lib_dl_dlopen+:} false; then :
75703  $as_echo_n "(cached) " >&6
75704else
75705  ac_check_lib_save_LIBS=$LIBS
75706LIBS="-ldl  $LIBS"
75707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75708/* end confdefs.h.  */
75709
75710/* Override any GCC internal prototype to avoid an error.
75711   Use char because int might match the return type of a GCC
75712   builtin and then its argument prototype would still apply.  */
75713#ifdef __cplusplus
75714extern "C"
75715#endif
75716char dlopen ();
75717int
75718main ()
75719{
75720return dlopen ();
75721  ;
75722  return 0;
75723}
75724_ACEOF
75725if ac_fn_c_try_link "$LINENO"; then :
75726  ac_cv_lib_dl_dlopen=yes
75727else
75728  ac_cv_lib_dl_dlopen=no
75729fi
75730rm -f core conftest.err conftest.$ac_objext \
75731    conftest$ac_exeext conftest.$ac_ext
75732LIBS=$ac_check_lib_save_LIBS
75733fi
75734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
75735$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
75736if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
75737
75738            HAVE_DECKLINK=yes
75739            DECKLINK_CXXFLAGS=
75740            DECKLINK_LIBS="-lpthread -ldl"
75741
75742fi
75743
75744       fi
75745       ;;
75746     *-*darwin*)
75747       if test "x$HAVE_PTHREAD_H" = "xyes"; then
75748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
75749$as_echo_n "checking for dlopen in -ldl... " >&6; }
75750if ${ac_cv_lib_dl_dlopen+:} false; then :
75751  $as_echo_n "(cached) " >&6
75752else
75753  ac_check_lib_save_LIBS=$LIBS
75754LIBS="-ldl  $LIBS"
75755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75756/* end confdefs.h.  */
75757
75758/* Override any GCC internal prototype to avoid an error.
75759   Use char because int might match the return type of a GCC
75760   builtin and then its argument prototype would still apply.  */
75761#ifdef __cplusplus
75762extern "C"
75763#endif
75764char dlopen ();
75765int
75766main ()
75767{
75768return dlopen ();
75769  ;
75770  return 0;
75771}
75772_ACEOF
75773if ac_fn_c_try_link "$LINENO"; then :
75774  ac_cv_lib_dl_dlopen=yes
75775else
75776  ac_cv_lib_dl_dlopen=no
75777fi
75778rm -f core conftest.err conftest.$ac_objext \
75779    conftest$ac_exeext conftest.$ac_ext
75780LIBS=$ac_check_lib_save_LIBS
75781fi
75782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
75783$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
75784if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
75785
75786            HAVE_DECKLINK=yes
75787            DECKLINK_CXXFLAGS=
75788            DECKLINK_LIBS="-lpthread -ldl"
75789            HAVE_DECKLINK_OSX=yes
75790
75791fi
75792
75793       fi
75794       ;;
75795     *-mingw*)
75796       HAVE_DECKLINK=yes
75797       DECKLINK_CXXFLAGS=
75798       DECKLINK_LIBS="-lole32 -loleaut32"
75799       HAVE_DECKLINK_WIN=yes
75800       ;;
75801     *)
75802       HAVE_DECKLINK=no
75803       ;;
75804   esac
75805
75806
75807
75808
75809
75810  LIBS=$gst_check_save_LIBS
75811  LDFLAGS=$gst_check_save_LDFLAGS
75812  CFLAGS=$gst_check_save_CFLAGS
75813  CPPFLAGS=$gst_check_save_CPPFLAGS
75814  CXXFLAGS=$gst_check_save_CXXFLAGS
75815
75816    if test x$HAVE_DECKLINK = xno; then
75817    USE_DECKLINK=no
75818  else
75819    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: decklink" >&5
75820$as_echo "$as_me: *** These plugins will be built: decklink" >&6;}
75821  fi
75822fi
75823if test x$USE_DECKLINK = xyes; then
75824  :
75825  if test "xdecklink" != "x"; then
75826    GST_PLUGINS_YES="\tdecklink\n$GST_PLUGINS_YES"
75827  fi
75828
75829$as_echo "#define HAVE_DECKLINK /**/" >>confdefs.h
75830
75831else
75832  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: decklink" >&5
75833$as_echo "$as_me: *** These plugins will not be built: decklink" >&6;}
75834  if test "xdecklink" != "x"; then
75835    GST_PLUGINS_NO="\tdecklink\n$GST_PLUGINS_NO"
75836  fi
75837  :
75838fi
75839 if test x$USE_DECKLINK = xyes; then
75840  USE_DECKLINK_TRUE=
75841  USE_DECKLINK_FALSE='#'
75842else
75843  USE_DECKLINK_TRUE='#'
75844  USE_DECKLINK_FALSE=
75845fi
75846
75847
75848 if test "x$HAVE_DECKLINK_OSX" = xyes; then
75849  DECKLINK_OSX_TRUE=
75850  DECKLINK_OSX_FALSE='#'
75851else
75852  DECKLINK_OSX_TRUE='#'
75853  DECKLINK_OSX_FALSE=
75854fi
75855
75856 if test "x$HAVE_DECKLINK_WIN" = xyes; then
75857  DECKLINK_WIN_TRUE=
75858  DECKLINK_WIN_FALSE='#'
75859else
75860  DECKLINK_WIN_TRUE='#'
75861  DECKLINK_WIN_FALSE=
75862fi
75863
75864
75865echo
75866{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: directfb ***" >&5
75867$as_echo "$as_me: *** checking feature: directfb ***" >&6;}
75868if test "xdfbvideosink " != "x"
75869then
75870  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dfbvideosink  ***" >&5
75871$as_echo "$as_me: *** for plug-ins: dfbvideosink  ***" >&6;}
75872fi
75873NOUSE=
75874if test "x$USE_DIRECTFB" = "xno"; then
75875  NOUSE="yes"
75876fi
75877# Check whether --enable-directfb was given.
75878if test "${enable_directfb+set}" = set; then :
75879  enableval=$enable_directfb;  case "${enableval}" in
75880      yes) USE_DIRECTFB=yes;;
75881      no) USE_DIRECTFB=no;;
75882      *) as_fn_error $? "bad value ${enableval} for --enable-directfb" "$LINENO" 5 ;;
75883    esac
75884else
75885   USE_DIRECTFB=yes
75886fi
75887
75888if test "x$NOUSE" = "xyes"; then
75889  USE_DIRECTFB="no"
75890  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dfbvideosink  pre-configured not to be built" >&5
75891$as_echo "$as_me: WARNING: *** dfbvideosink  pre-configured not to be built" >&2;}
75892fi
75893NOUSE=
75894
75895if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DIRECTFB " > /dev/null; then
75896  USE_DIRECTFB="no"
75897  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dfbvideosink  not ported" >&5
75898$as_echo "$as_me: WARNING: *** dfbvideosink  not ported" >&2;}
75899fi
75900
75901
75902if test x$USE_DIRECTFB = xyes; then
75903
75904  gst_check_save_LIBS=$LIBS
75905  gst_check_save_LDFLAGS=$LDFLAGS
75906  gst_check_save_CFLAGS=$CFLAGS
75907  gst_check_save_CPPFLAGS=$CPPFLAGS
75908  gst_check_save_CXXFLAGS=$CXXFLAGS
75909
75910  HAVE_DIRECTFB=no
75911
75912
75913pkg_failed=no
75914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
75915$as_echo_n "checking for DIRECTFB... " >&6; }
75916
75917if test -n "$PKG_CONFIG"; then
75918    if test -n "$DIRECTFB_CFLAGS"; then
75919        pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
75920    else
75921        if test -n "$PKG_CONFIG" && \
75922    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.24\""; } >&5
75923  ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.24") 2>&5
75924  ac_status=$?
75925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75926  test $ac_status = 0; }; then
75927  pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.24" 2>/dev/null`
75928else
75929  pkg_failed=yes
75930fi
75931    fi
75932else
75933	pkg_failed=untried
75934fi
75935if test -n "$PKG_CONFIG"; then
75936    if test -n "$DIRECTFB_LIBS"; then
75937        pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
75938    else
75939        if test -n "$PKG_CONFIG" && \
75940    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.24\""; } >&5
75941  ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.24") 2>&5
75942  ac_status=$?
75943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
75944  test $ac_status = 0; }; then
75945  pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.24" 2>/dev/null`
75946else
75947  pkg_failed=yes
75948fi
75949    fi
75950else
75951	pkg_failed=untried
75952fi
75953
75954
75955
75956if test $pkg_failed = yes; then
75957
75958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
75959        _pkg_short_errors_supported=yes
75960else
75961        _pkg_short_errors_supported=no
75962fi
75963        if test $_pkg_short_errors_supported = yes; then
75964	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.24"`
75965        else
75966	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.24"`
75967        fi
75968	# Put the nasty error message in config.log where it belongs
75969	echo "$DIRECTFB_PKG_ERRORS" >&5
75970
75971	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
75972$as_echo "no" >&6; }
75973
75974    HAVE_DIRECTFB="no"
75975
75976elif test $pkg_failed = untried; then
75977
75978    HAVE_DIRECTFB="no"
75979
75980else
75981	DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
75982	DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
75983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
75984$as_echo "yes" >&6; }
75985	HAVE_DIRECTFB="yes"
75986fi
75987
75988
75989  LIBS=$gst_check_save_LIBS
75990  LDFLAGS=$gst_check_save_LDFLAGS
75991  CFLAGS=$gst_check_save_CFLAGS
75992  CPPFLAGS=$gst_check_save_CPPFLAGS
75993  CXXFLAGS=$gst_check_save_CXXFLAGS
75994
75995    if test x$HAVE_DIRECTFB = xno; then
75996    USE_DIRECTFB=no
75997  else
75998    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dfbvideosink " >&5
75999$as_echo "$as_me: *** These plugins will be built: dfbvideosink " >&6;}
76000  fi
76001fi
76002if test x$USE_DIRECTFB = xyes; then
76003  :
76004  if test "xdfbvideosink " != "x"; then
76005    GST_PLUGINS_YES="\tdfbvideosink \n$GST_PLUGINS_YES"
76006  fi
76007
76008$as_echo "#define HAVE_DIRECTFB /**/" >>confdefs.h
76009
76010else
76011  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dfbvideosink " >&5
76012$as_echo "$as_me: *** These plugins will not be built: dfbvideosink " >&6;}
76013  if test "xdfbvideosink " != "x"; then
76014    GST_PLUGINS_NO="\tdfbvideosink \n$GST_PLUGINS_NO"
76015  fi
76016  :
76017fi
76018 if test x$USE_DIRECTFB = xyes; then
76019  USE_DIRECTFB_TRUE=
76020  USE_DIRECTFB_FALSE='#'
76021else
76022  USE_DIRECTFB_TRUE='#'
76023  USE_DIRECTFB_FALSE=
76024fi
76025
76026
76027
76028# Extract the first word of "wayland-scanner", so it can be a program name with args.
76029set dummy wayland-scanner; ac_word=$2
76030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
76031$as_echo_n "checking for $ac_word... " >&6; }
76032if ${ac_cv_path_wayland_scanner+:} false; then :
76033  $as_echo_n "(cached) " >&6
76034else
76035  case $wayland_scanner in
76036  [\\/]* | ?:[\\/]*)
76037  ac_cv_path_wayland_scanner="$wayland_scanner" # Let the user override the test with a path.
76038  ;;
76039  *)
76040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76041for as_dir in $PATH
76042do
76043  IFS=$as_save_IFS
76044  test -z "$as_dir" && as_dir=.
76045    for ac_exec_ext in '' $ac_executable_extensions; do
76046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
76047    ac_cv_path_wayland_scanner="$as_dir/$ac_word$ac_exec_ext"
76048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
76049    break 2
76050  fi
76051done
76052  done
76053IFS=$as_save_IFS
76054
76055  ;;
76056esac
76057fi
76058wayland_scanner=$ac_cv_path_wayland_scanner
76059if test -n "$wayland_scanner"; then
76060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wayland_scanner" >&5
76061$as_echo "$wayland_scanner" >&6; }
76062else
76063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76064$as_echo "no" >&6; }
76065fi
76066
76067
76068echo
76069{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: wayland sink ***" >&5
76070$as_echo "$as_me: *** checking feature: wayland sink ***" >&6;}
76071if test "xwayland " != "x"
76072then
76073  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: wayland  ***" >&5
76074$as_echo "$as_me: *** for plug-ins: wayland  ***" >&6;}
76075fi
76076NOUSE=
76077if test "x$USE_WAYLAND" = "xno"; then
76078  NOUSE="yes"
76079fi
76080# Check whether --enable-wayland was given.
76081if test "${enable_wayland+set}" = set; then :
76082  enableval=$enable_wayland;  case "${enableval}" in
76083      yes) USE_WAYLAND=yes;;
76084      no) USE_WAYLAND=no;;
76085      *) as_fn_error $? "bad value ${enableval} for --enable-wayland" "$LINENO" 5 ;;
76086    esac
76087else
76088   USE_WAYLAND=yes
76089fi
76090
76091if test "x$NOUSE" = "xyes"; then
76092  USE_WAYLAND="no"
76093  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wayland  pre-configured not to be built" >&5
76094$as_echo "$as_me: WARNING: *** wayland  pre-configured not to be built" >&2;}
76095fi
76096NOUSE=
76097
76098if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WAYLAND " > /dev/null; then
76099  USE_WAYLAND="no"
76100  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wayland  not ported" >&5
76101$as_echo "$as_me: WARNING: *** wayland  not ported" >&2;}
76102fi
76103
76104
76105if test x$USE_WAYLAND = xyes; then
76106
76107  gst_check_save_LIBS=$LIBS
76108  gst_check_save_LDFLAGS=$LDFLAGS
76109  gst_check_save_CFLAGS=$CFLAGS
76110  gst_check_save_CPPFLAGS=$CPPFLAGS
76111  gst_check_save_CXXFLAGS=$CXXFLAGS
76112
76113  HAVE_WAYLAND=no
76114
76115
76116pkg_failed=no
76117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
76118$as_echo_n "checking for WAYLAND... " >&6; }
76119
76120if test -n "$PKG_CONFIG"; then
76121    if test -n "$WAYLAND_CFLAGS"; then
76122        pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
76123    else
76124        if test -n "$PKG_CONFIG" && \
76125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15\""; } >&5
76126  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15") 2>&5
76127  ac_status=$?
76128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76129  test $ac_status = 0; }; then
76130  pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15" 2>/dev/null`
76131else
76132  pkg_failed=yes
76133fi
76134    fi
76135else
76136	pkg_failed=untried
76137fi
76138if test -n "$PKG_CONFIG"; then
76139    if test -n "$WAYLAND_LIBS"; then
76140        pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
76141    else
76142        if test -n "$PKG_CONFIG" && \
76143    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15\""; } >&5
76144  ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15") 2>&5
76145  ac_status=$?
76146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76147  test $ac_status = 0; }; then
76148  pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15" 2>/dev/null`
76149else
76150  pkg_failed=yes
76151fi
76152    fi
76153else
76154	pkg_failed=untried
76155fi
76156
76157
76158
76159if test $pkg_failed = yes; then
76160
76161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76162        _pkg_short_errors_supported=yes
76163else
76164        _pkg_short_errors_supported=no
76165fi
76166        if test $_pkg_short_errors_supported = yes; then
76167	        WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15"`
76168        else
76169	        WAYLAND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "wayland-client >= 1.11.0 libdrm >= 2.4.55 wayland-protocols >= 1.15"`
76170        fi
76171	# Put the nasty error message in config.log where it belongs
76172	echo "$WAYLAND_PKG_ERRORS" >&5
76173
76174	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76175$as_echo "no" >&6; }
76176                 HAVE_WAYLAND="no"
76177
76178elif test $pkg_failed = untried; then
76179	 HAVE_WAYLAND="no"
76180
76181else
76182	WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
76183	WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
76184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76185$as_echo "yes" >&6; }
76186
76187    if test "x$wayland_scanner" != "x"; then
76188      HAVE_WAYLAND="yes"
76189      WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
76190
76191    else
76192      { $as_echo "$as_me:${as_lineno-$LINENO}: result: wayland-scanner is required to build the wayland plugin" >&5
76193$as_echo "wayland-scanner is required to build the wayland plugin" >&6; }
76194      HAVE_WAYLAND="no"
76195    fi
76196
76197fi
76198
76199
76200  LIBS=$gst_check_save_LIBS
76201  LDFLAGS=$gst_check_save_LDFLAGS
76202  CFLAGS=$gst_check_save_CFLAGS
76203  CPPFLAGS=$gst_check_save_CPPFLAGS
76204  CXXFLAGS=$gst_check_save_CXXFLAGS
76205
76206    if test x$HAVE_WAYLAND = xno; then
76207    USE_WAYLAND=no
76208  else
76209    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: wayland " >&5
76210$as_echo "$as_me: *** These plugins will be built: wayland " >&6;}
76211  fi
76212fi
76213if test x$USE_WAYLAND = xyes; then
76214  :
76215  if test "xwayland " != "x"; then
76216    GST_PLUGINS_YES="\twayland \n$GST_PLUGINS_YES"
76217  fi
76218
76219$as_echo "#define HAVE_WAYLAND /**/" >>confdefs.h
76220
76221else
76222  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: wayland " >&5
76223$as_echo "$as_me: *** These plugins will not be built: wayland " >&6;}
76224  if test "xwayland " != "x"; then
76225    GST_PLUGINS_NO="\twayland \n$GST_PLUGINS_NO"
76226  fi
76227  :
76228fi
76229 if test x$USE_WAYLAND = xyes; then
76230  USE_WAYLAND_TRUE=
76231  USE_WAYLAND_FALSE='#'
76232else
76233  USE_WAYLAND_TRUE='#'
76234  USE_WAYLAND_FALSE=
76235fi
76236
76237
76238
76239echo
76240{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: WebP ***" >&5
76241$as_echo "$as_me: *** checking feature: WebP ***" >&6;}
76242if test "xwebp " != "x"
76243then
76244  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: webp  ***" >&5
76245$as_echo "$as_me: *** for plug-ins: webp  ***" >&6;}
76246fi
76247NOUSE=
76248if test "x$USE_WEBP" = "xno"; then
76249  NOUSE="yes"
76250fi
76251# Check whether --enable-webp was given.
76252if test "${enable_webp+set}" = set; then :
76253  enableval=$enable_webp;  case "${enableval}" in
76254      yes) USE_WEBP=yes;;
76255      no) USE_WEBP=no;;
76256      *) as_fn_error $? "bad value ${enableval} for --enable-webp" "$LINENO" 5 ;;
76257    esac
76258else
76259   USE_WEBP=yes
76260fi
76261
76262if test "x$NOUSE" = "xyes"; then
76263  USE_WEBP="no"
76264  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webp  pre-configured not to be built" >&5
76265$as_echo "$as_me: WARNING: *** webp  pre-configured not to be built" >&2;}
76266fi
76267NOUSE=
76268
76269if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WEBP " > /dev/null; then
76270  USE_WEBP="no"
76271  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webp  not ported" >&5
76272$as_echo "$as_me: WARNING: *** webp  not ported" >&2;}
76273fi
76274
76275
76276if test x$USE_WEBP = xyes; then
76277
76278  gst_check_save_LIBS=$LIBS
76279  gst_check_save_LDFLAGS=$LDFLAGS
76280  gst_check_save_CFLAGS=$CFLAGS
76281  gst_check_save_CPPFLAGS=$CPPFLAGS
76282  gst_check_save_CXXFLAGS=$CXXFLAGS
76283
76284  HAVE_WEBP=no
76285
76286
76287pkg_failed=no
76288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
76289$as_echo_n "checking for WEBP... " >&6; }
76290
76291if test -n "$PKG_CONFIG"; then
76292    if test -n "$WEBP_CFLAGS"; then
76293        pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
76294    else
76295        if test -n "$PKG_CONFIG" && \
76296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.1\""; } >&5
76297  ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.1") 2>&5
76298  ac_status=$?
76299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76300  test $ac_status = 0; }; then
76301  pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp >= 0.2.1" 2>/dev/null`
76302else
76303  pkg_failed=yes
76304fi
76305    fi
76306else
76307	pkg_failed=untried
76308fi
76309if test -n "$PKG_CONFIG"; then
76310    if test -n "$WEBP_LIBS"; then
76311        pkg_cv_WEBP_LIBS="$WEBP_LIBS"
76312    else
76313        if test -n "$PKG_CONFIG" && \
76314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp >= 0.2.1\""; } >&5
76315  ($PKG_CONFIG --exists --print-errors "libwebp >= 0.2.1") 2>&5
76316  ac_status=$?
76317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76318  test $ac_status = 0; }; then
76319  pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp >= 0.2.1" 2>/dev/null`
76320else
76321  pkg_failed=yes
76322fi
76323    fi
76324else
76325	pkg_failed=untried
76326fi
76327
76328
76329
76330if test $pkg_failed = yes; then
76331
76332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76333        _pkg_short_errors_supported=yes
76334else
76335        _pkg_short_errors_supported=no
76336fi
76337        if test $_pkg_short_errors_supported = yes; then
76338	        WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libwebp >= 0.2.1"`
76339        else
76340	        WEBP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwebp >= 0.2.1"`
76341        fi
76342	# Put the nasty error message in config.log where it belongs
76343	echo "$WEBP_PKG_ERRORS" >&5
76344
76345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76346$as_echo "no" >&6; }
76347                 HAVE_WEBP="no"
76348
76349elif test $pkg_failed = untried; then
76350	 HAVE_WEBP="no"
76351
76352else
76353	WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
76354	WEBP_LIBS=$pkg_cv_WEBP_LIBS
76355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76356$as_echo "yes" >&6; }
76357
76358    HAVE_WEBP="yes"
76359fi
76360
76361
76362
76363
76364  LIBS=$gst_check_save_LIBS
76365  LDFLAGS=$gst_check_save_LDFLAGS
76366  CFLAGS=$gst_check_save_CFLAGS
76367  CPPFLAGS=$gst_check_save_CPPFLAGS
76368  CXXFLAGS=$gst_check_save_CXXFLAGS
76369
76370    if test x$HAVE_WEBP = xno; then
76371    USE_WEBP=no
76372  else
76373    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: webp " >&5
76374$as_echo "$as_me: *** These plugins will be built: webp " >&6;}
76375  fi
76376fi
76377if test x$USE_WEBP = xyes; then
76378  :
76379  if test "xwebp " != "x"; then
76380    GST_PLUGINS_YES="\twebp \n$GST_PLUGINS_YES"
76381  fi
76382
76383$as_echo "#define HAVE_WEBP /**/" >>confdefs.h
76384
76385else
76386  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: webp " >&5
76387$as_echo "$as_me: *** These plugins will not be built: webp " >&6;}
76388  if test "xwebp " != "x"; then
76389    GST_PLUGINS_NO="\twebp \n$GST_PLUGINS_NO"
76390  fi
76391  :
76392fi
76393 if test x$USE_WEBP = xyes; then
76394  USE_WEBP_TRUE=
76395  USE_WEBP_FALSE='#'
76396else
76397  USE_WEBP_TRUE='#'
76398  USE_WEBP_FALSE=
76399fi
76400
76401
76402
76403echo
76404{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: dts library ***" >&5
76405$as_echo "$as_me: *** checking feature: dts library ***" >&6;}
76406if test "xdtsdec" != "x"
76407then
76408  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dtsdec ***" >&5
76409$as_echo "$as_me: *** for plug-ins: dtsdec ***" >&6;}
76410fi
76411NOUSE=
76412if test "x$USE_DTS" = "xno"; then
76413  NOUSE="yes"
76414fi
76415# Check whether --enable-dts was given.
76416if test "${enable_dts+set}" = set; then :
76417  enableval=$enable_dts;  case "${enableval}" in
76418      yes) USE_DTS=yes;;
76419      no) USE_DTS=no;;
76420      *) as_fn_error $? "bad value ${enableval} for --enable-dts" "$LINENO" 5 ;;
76421    esac
76422else
76423   USE_DTS=yes
76424fi
76425
76426if test "x$NOUSE" = "xyes"; then
76427  USE_DTS="no"
76428  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dtsdec pre-configured not to be built" >&5
76429$as_echo "$as_me: WARNING: *** dtsdec pre-configured not to be built" >&2;}
76430fi
76431NOUSE=
76432
76433if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DTS " > /dev/null; then
76434  USE_DTS="no"
76435  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dtsdec not ported" >&5
76436$as_echo "$as_me: WARNING: *** dtsdec not ported" >&2;}
76437fi
76438
76439
76440if test x$USE_DTS = xyes; then
76441
76442  gst_check_save_LIBS=$LIBS
76443  gst_check_save_LDFLAGS=$LDFLAGS
76444  gst_check_save_CFLAGS=$CFLAGS
76445  gst_check_save_CPPFLAGS=$CPPFLAGS
76446  gst_check_save_CXXFLAGS=$CXXFLAGS
76447
76448  HAVE_DTS=no
76449
76450  HAVE_DTS="yes"
76451
76452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dca_init in -ldca" >&5
76453$as_echo_n "checking for dca_init in -ldca... " >&6; }
76454if ${ac_cv_lib_dca_dca_init+:} false; then :
76455  $as_echo_n "(cached) " >&6
76456else
76457  ac_check_lib_save_LIBS=$LIBS
76458LIBS="-ldca $LIBM $LIBS"
76459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76460/* end confdefs.h.  */
76461
76462/* Override any GCC internal prototype to avoid an error.
76463   Use char because int might match the return type of a GCC
76464   builtin and then its argument prototype would still apply.  */
76465#ifdef __cplusplus
76466extern "C"
76467#endif
76468char dca_init ();
76469int
76470main ()
76471{
76472return dca_init ();
76473  ;
76474  return 0;
76475}
76476_ACEOF
76477if ac_fn_c_try_link "$LINENO"; then :
76478  ac_cv_lib_dca_dca_init=yes
76479else
76480  ac_cv_lib_dca_dca_init=no
76481fi
76482rm -f core conftest.err conftest.$ac_objext \
76483    conftest$ac_exeext conftest.$ac_ext
76484LIBS=$ac_check_lib_save_LIBS
76485fi
76486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dca_dca_init" >&5
76487$as_echo "$ac_cv_lib_dca_dca_init" >&6; }
76488if test "x$ac_cv_lib_dca_dca_init" = xyes; then :
76489  HAVE_DTS=yes
76490else
76491  HAVE_DTS=no
76492fi
76493
76494  if test "x$HAVE_DTS" = "xyes"; then
76495    ac_fn_c_check_header_mongrel "$LINENO" "dca.h" "ac_cv_header_dca_h" "$ac_includes_default"
76496if test "x$ac_cv_header_dca_h" = xyes; then :
76497  :
76498else
76499  HAVE_DTS=no
76500fi
76501
76502
76503    if test "x$HAVE_DTS" = "xyes"; then
76504            DTS_LIBS="-ldca $LIBM"
76505    else
76506      HAVE_DTS="no"
76507    fi
76508  else
76509    HAVE_DTS="no"
76510  fi
76511
76512
76513
76514  if test $HAVE_DTS = "no"; then
76515
76516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dts_init in -ldts_pic" >&5
76517$as_echo_n "checking for dts_init in -ldts_pic... " >&6; }
76518if ${ac_cv_lib_dts_pic_dts_init+:} false; then :
76519  $as_echo_n "(cached) " >&6
76520else
76521  ac_check_lib_save_LIBS=$LIBS
76522LIBS="-ldts_pic $LIBM $LIBS"
76523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76524/* end confdefs.h.  */
76525
76526/* Override any GCC internal prototype to avoid an error.
76527   Use char because int might match the return type of a GCC
76528   builtin and then its argument prototype would still apply.  */
76529#ifdef __cplusplus
76530extern "C"
76531#endif
76532char dts_init ();
76533int
76534main ()
76535{
76536return dts_init ();
76537  ;
76538  return 0;
76539}
76540_ACEOF
76541if ac_fn_c_try_link "$LINENO"; then :
76542  ac_cv_lib_dts_pic_dts_init=yes
76543else
76544  ac_cv_lib_dts_pic_dts_init=no
76545fi
76546rm -f core conftest.err conftest.$ac_objext \
76547    conftest$ac_exeext conftest.$ac_ext
76548LIBS=$ac_check_lib_save_LIBS
76549fi
76550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dts_pic_dts_init" >&5
76551$as_echo "$ac_cv_lib_dts_pic_dts_init" >&6; }
76552if test "x$ac_cv_lib_dts_pic_dts_init" = xyes; then :
76553  HAVE_DTS=yes
76554else
76555  HAVE_DTS=no
76556fi
76557
76558  if test "x$HAVE_DTS" = "xyes"; then
76559    ac_fn_c_check_header_mongrel "$LINENO" "dts.h" "ac_cv_header_dts_h" "$ac_includes_default"
76560if test "x$ac_cv_header_dts_h" = xyes; then :
76561  :
76562else
76563  HAVE_DTS=no
76564fi
76565
76566
76567    if test "x$HAVE_DTS" = "xyes"; then
76568             DTS_LIBS="-ldts_pic $LIBM"
76569
76570$as_echo "#define DTS_OLD 1" >>confdefs.h
76571
76572
76573    else
76574      :
76575    fi
76576  else
76577    :
76578  fi
76579
76580
76581
76582  fi
76583
76584
76585
76586  LIBS=$gst_check_save_LIBS
76587  LDFLAGS=$gst_check_save_LDFLAGS
76588  CFLAGS=$gst_check_save_CFLAGS
76589  CPPFLAGS=$gst_check_save_CPPFLAGS
76590  CXXFLAGS=$gst_check_save_CXXFLAGS
76591
76592    if test x$HAVE_DTS = xno; then
76593    USE_DTS=no
76594  else
76595    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dtsdec" >&5
76596$as_echo "$as_me: *** These plugins will be built: dtsdec" >&6;}
76597  fi
76598fi
76599if test x$USE_DTS = xyes; then
76600  :
76601  if test "xdtsdec" != "x"; then
76602    GST_PLUGINS_YES="\tdtsdec\n$GST_PLUGINS_YES"
76603  fi
76604
76605$as_echo "#define HAVE_DTS /**/" >>confdefs.h
76606
76607else
76608  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dtsdec" >&5
76609$as_echo "$as_me: *** These plugins will not be built: dtsdec" >&6;}
76610  if test "xdtsdec" != "x"; then
76611    GST_PLUGINS_NO="\tdtsdec\n$GST_PLUGINS_NO"
76612  fi
76613  :
76614fi
76615 if test x$USE_DTS = xyes; then
76616  USE_DTS_TRUE=
76617  USE_DTS_FALSE='#'
76618else
76619  USE_DTS_TRUE='#'
76620  USE_DTS_FALSE=
76621fi
76622
76623
76624
76625echo
76626{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: resindvd plugin ***" >&5
76627$as_echo "$as_me: *** checking feature: resindvd plugin ***" >&6;}
76628if test "xresindvd" != "x"
76629then
76630  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: resindvd ***" >&5
76631$as_echo "$as_me: *** for plug-ins: resindvd ***" >&6;}
76632fi
76633NOUSE=
76634if test "x$USE_RESINDVD" = "xno"; then
76635  NOUSE="yes"
76636fi
76637# Check whether --enable-resindvd was given.
76638if test "${enable_resindvd+set}" = set; then :
76639  enableval=$enable_resindvd;  case "${enableval}" in
76640      yes) USE_RESINDVD=yes;;
76641      no) USE_RESINDVD=no;;
76642      *) as_fn_error $? "bad value ${enableval} for --enable-resindvd" "$LINENO" 5 ;;
76643    esac
76644else
76645   USE_RESINDVD=yes
76646fi
76647
76648if test "x$NOUSE" = "xyes"; then
76649  USE_RESINDVD="no"
76650  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** resindvd pre-configured not to be built" >&5
76651$as_echo "$as_me: WARNING: *** resindvd pre-configured not to be built" >&2;}
76652fi
76653NOUSE=
76654
76655if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " RESINDVD " > /dev/null; then
76656  USE_RESINDVD="no"
76657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** resindvd not ported" >&5
76658$as_echo "$as_me: WARNING: *** resindvd not ported" >&2;}
76659fi
76660
76661
76662if test x$USE_RESINDVD = xyes; then
76663
76664  gst_check_save_LIBS=$LIBS
76665  gst_check_save_LDFLAGS=$LDFLAGS
76666  gst_check_save_CFLAGS=$CFLAGS
76667  gst_check_save_CPPFLAGS=$CPPFLAGS
76668  gst_check_save_CXXFLAGS=$CXXFLAGS
76669
76670  HAVE_RESINDVD=no
76671
76672
76673pkg_failed=no
76674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DVDNAV" >&5
76675$as_echo_n "checking for DVDNAV... " >&6; }
76676
76677if test -n "$PKG_CONFIG"; then
76678    if test -n "$DVDNAV_CFLAGS"; then
76679        pkg_cv_DVDNAV_CFLAGS="$DVDNAV_CFLAGS"
76680    else
76681        if test -n "$PKG_CONFIG" && \
76682    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dvdnav >= 4.1.2 dvdread >= 4.1.2\""; } >&5
76683  ($PKG_CONFIG --exists --print-errors "dvdnav >= 4.1.2 dvdread >= 4.1.2") 2>&5
76684  ac_status=$?
76685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76686  test $ac_status = 0; }; then
76687  pkg_cv_DVDNAV_CFLAGS=`$PKG_CONFIG --cflags "dvdnav >= 4.1.2 dvdread >= 4.1.2" 2>/dev/null`
76688else
76689  pkg_failed=yes
76690fi
76691    fi
76692else
76693	pkg_failed=untried
76694fi
76695if test -n "$PKG_CONFIG"; then
76696    if test -n "$DVDNAV_LIBS"; then
76697        pkg_cv_DVDNAV_LIBS="$DVDNAV_LIBS"
76698    else
76699        if test -n "$PKG_CONFIG" && \
76700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dvdnav >= 4.1.2 dvdread >= 4.1.2\""; } >&5
76701  ($PKG_CONFIG --exists --print-errors "dvdnav >= 4.1.2 dvdread >= 4.1.2") 2>&5
76702  ac_status=$?
76703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
76704  test $ac_status = 0; }; then
76705  pkg_cv_DVDNAV_LIBS=`$PKG_CONFIG --libs "dvdnav >= 4.1.2 dvdread >= 4.1.2" 2>/dev/null`
76706else
76707  pkg_failed=yes
76708fi
76709    fi
76710else
76711	pkg_failed=untried
76712fi
76713
76714
76715
76716if test $pkg_failed = yes; then
76717
76718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
76719        _pkg_short_errors_supported=yes
76720else
76721        _pkg_short_errors_supported=no
76722fi
76723        if test $_pkg_short_errors_supported = yes; then
76724	        DVDNAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dvdnav >= 4.1.2 dvdread >= 4.1.2"`
76725        else
76726	        DVDNAV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dvdnav >= 4.1.2 dvdread >= 4.1.2"`
76727        fi
76728	# Put the nasty error message in config.log where it belongs
76729	echo "$DVDNAV_PKG_ERRORS" >&5
76730
76731	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
76732$as_echo "no" >&6; }
76733
76734    HAVE_RESINDVD="no"
76735
76736elif test $pkg_failed = untried; then
76737
76738    HAVE_RESINDVD="no"
76739
76740else
76741	DVDNAV_CFLAGS=$pkg_cv_DVDNAV_CFLAGS
76742	DVDNAV_LIBS=$pkg_cv_DVDNAV_LIBS
76743        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
76744$as_echo "yes" >&6; }
76745	HAVE_RESINDVD="yes"
76746fi
76747
76748
76749  LIBS=$gst_check_save_LIBS
76750  LDFLAGS=$gst_check_save_LDFLAGS
76751  CFLAGS=$gst_check_save_CFLAGS
76752  CPPFLAGS=$gst_check_save_CPPFLAGS
76753  CXXFLAGS=$gst_check_save_CXXFLAGS
76754
76755    if test x$HAVE_RESINDVD = xno; then
76756    USE_RESINDVD=no
76757  else
76758    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: resindvd" >&5
76759$as_echo "$as_me: *** These plugins will be built: resindvd" >&6;}
76760  fi
76761fi
76762if test x$USE_RESINDVD = xyes; then
76763  :
76764  if test "xresindvd" != "x"; then
76765    GST_PLUGINS_YES="\tresindvd\n$GST_PLUGINS_YES"
76766  fi
76767
76768$as_echo "#define HAVE_RESINDVD /**/" >>confdefs.h
76769
76770else
76771  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: resindvd" >&5
76772$as_echo "$as_me: *** These plugins will not be built: resindvd" >&6;}
76773  if test "xresindvd" != "x"; then
76774    GST_PLUGINS_NO="\tresindvd\n$GST_PLUGINS_NO"
76775  fi
76776  :
76777fi
76778 if test x$USE_RESINDVD = xyes; then
76779  USE_RESINDVD_TRUE=
76780  USE_RESINDVD_FALSE='#'
76781else
76782  USE_RESINDVD_TRUE='#'
76783  USE_RESINDVD_FALSE=
76784fi
76785
76786
76787
76788echo
76789{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: AAC encoder plug-in ***" >&5
76790$as_echo "$as_me: *** checking feature: AAC encoder plug-in ***" >&6;}
76791if test "xfaac" != "x"
76792then
76793  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: faac ***" >&5
76794$as_echo "$as_me: *** for plug-ins: faac ***" >&6;}
76795fi
76796NOUSE=
76797if test "x$USE_FAAC" = "xno"; then
76798  NOUSE="yes"
76799fi
76800# Check whether --enable-faac was given.
76801if test "${enable_faac+set}" = set; then :
76802  enableval=$enable_faac;  case "${enableval}" in
76803      yes) USE_FAAC=yes;;
76804      no) USE_FAAC=no;;
76805      *) as_fn_error $? "bad value ${enableval} for --enable-faac" "$LINENO" 5 ;;
76806    esac
76807else
76808   USE_FAAC=yes
76809fi
76810
76811if test "x$NOUSE" = "xyes"; then
76812  USE_FAAC="no"
76813  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** faac pre-configured not to be built" >&5
76814$as_echo "$as_me: WARNING: *** faac pre-configured not to be built" >&2;}
76815fi
76816NOUSE=
76817
76818if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FAAC " > /dev/null; then
76819  USE_FAAC="no"
76820  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** faac not ported" >&5
76821$as_echo "$as_me: WARNING: *** faac not ported" >&2;}
76822fi
76823
76824
76825if test x$USE_FAAC = xyes; then
76826
76827  gst_check_save_LIBS=$LIBS
76828  gst_check_save_LDFLAGS=$LDFLAGS
76829  gst_check_save_CFLAGS=$CFLAGS
76830  gst_check_save_CPPFLAGS=$CPPFLAGS
76831  gst_check_save_CXXFLAGS=$CXXFLAGS
76832
76833  HAVE_FAAC=no
76834
76835
76836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for faacEncOpen in -lfaac" >&5
76837$as_echo_n "checking for faacEncOpen in -lfaac... " >&6; }
76838if ${ac_cv_lib_faac_faacEncOpen+:} false; then :
76839  $as_echo_n "(cached) " >&6
76840else
76841  ac_check_lib_save_LIBS=$LIBS
76842LIBS="-lfaac $LIBM $LIBS"
76843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76844/* end confdefs.h.  */
76845
76846/* Override any GCC internal prototype to avoid an error.
76847   Use char because int might match the return type of a GCC
76848   builtin and then its argument prototype would still apply.  */
76849#ifdef __cplusplus
76850extern "C"
76851#endif
76852char faacEncOpen ();
76853int
76854main ()
76855{
76856return faacEncOpen ();
76857  ;
76858  return 0;
76859}
76860_ACEOF
76861if ac_fn_c_try_link "$LINENO"; then :
76862  ac_cv_lib_faac_faacEncOpen=yes
76863else
76864  ac_cv_lib_faac_faacEncOpen=no
76865fi
76866rm -f core conftest.err conftest.$ac_objext \
76867    conftest$ac_exeext conftest.$ac_ext
76868LIBS=$ac_check_lib_save_LIBS
76869fi
76870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_faac_faacEncOpen" >&5
76871$as_echo "$ac_cv_lib_faac_faacEncOpen" >&6; }
76872if test "x$ac_cv_lib_faac_faacEncOpen" = xyes; then :
76873  HAVE_FAAC=yes
76874else
76875  HAVE_FAAC=no
76876fi
76877
76878  if test "x$HAVE_FAAC" = "xyes"; then
76879    ac_fn_c_check_header_mongrel "$LINENO" "faac.h" "ac_cv_header_faac_h" "$ac_includes_default"
76880if test "x$ac_cv_header_faac_h" = xyes; then :
76881  :
76882else
76883  HAVE_FAAC=no
76884fi
76885
76886
76887    if test "x$HAVE_FAAC" = "xyes"; then
76888            FAAC_LIBS="-lfaac $LIBM"
76889    else
76890      :
76891    fi
76892  else
76893    :
76894  fi
76895
76896
76897
76898
76899
76900
76901  LIBS=$gst_check_save_LIBS
76902  LDFLAGS=$gst_check_save_LDFLAGS
76903  CFLAGS=$gst_check_save_CFLAGS
76904  CPPFLAGS=$gst_check_save_CPPFLAGS
76905  CXXFLAGS=$gst_check_save_CXXFLAGS
76906
76907    if test x$HAVE_FAAC = xno; then
76908    USE_FAAC=no
76909  else
76910    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: faac" >&5
76911$as_echo "$as_me: *** These plugins will be built: faac" >&6;}
76912  fi
76913fi
76914if test x$USE_FAAC = xyes; then
76915  :
76916  if test "xfaac" != "x"; then
76917    GST_PLUGINS_YES="\tfaac\n$GST_PLUGINS_YES"
76918  fi
76919
76920$as_echo "#define HAVE_FAAC /**/" >>confdefs.h
76921
76922else
76923  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: faac" >&5
76924$as_echo "$as_me: *** These plugins will not be built: faac" >&6;}
76925  if test "xfaac" != "x"; then
76926    GST_PLUGINS_NO="\tfaac\n$GST_PLUGINS_NO"
76927  fi
76928  :
76929fi
76930 if test x$USE_FAAC = xyes; then
76931  USE_FAAC_TRUE=
76932  USE_FAAC_FALSE='#'
76933else
76934  USE_FAAC_TRUE='#'
76935  USE_FAAC_FALSE=
76936fi
76937
76938
76939
76940echo
76941{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: FAAD2 AAC decoder plug-in ***" >&5
76942$as_echo "$as_me: *** checking feature: FAAD2 AAC decoder plug-in ***" >&6;}
76943if test "xfaad" != "x"
76944then
76945  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: faad ***" >&5
76946$as_echo "$as_me: *** for plug-ins: faad ***" >&6;}
76947fi
76948NOUSE=
76949if test "x$USE_FAAD" = "xno"; then
76950  NOUSE="yes"
76951fi
76952# Check whether --enable-faad was given.
76953if test "${enable_faad+set}" = set; then :
76954  enableval=$enable_faad;  case "${enableval}" in
76955      yes) USE_FAAD=yes;;
76956      no) USE_FAAD=no;;
76957      *) as_fn_error $? "bad value ${enableval} for --enable-faad" "$LINENO" 5 ;;
76958    esac
76959else
76960   USE_FAAD=yes
76961fi
76962
76963if test "x$NOUSE" = "xyes"; then
76964  USE_FAAD="no"
76965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** faad pre-configured not to be built" >&5
76966$as_echo "$as_me: WARNING: *** faad pre-configured not to be built" >&2;}
76967fi
76968NOUSE=
76969
76970if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FAAD " > /dev/null; then
76971  USE_FAAD="no"
76972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** faad not ported" >&5
76973$as_echo "$as_me: WARNING: *** faad not ported" >&2;}
76974fi
76975
76976
76977if test x$USE_FAAD = xyes; then
76978
76979  gst_check_save_LIBS=$LIBS
76980  gst_check_save_LDFLAGS=$LDFLAGS
76981  gst_check_save_CFLAGS=$CFLAGS
76982  gst_check_save_CPPFLAGS=$CPPFLAGS
76983  gst_check_save_CXXFLAGS=$CXXFLAGS
76984
76985  HAVE_FAAD=no
76986
76987
76988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeAACDecOpen in -lfaad" >&5
76989$as_echo_n "checking for NeAACDecOpen in -lfaad... " >&6; }
76990if ${ac_cv_lib_faad_NeAACDecOpen+:} false; then :
76991  $as_echo_n "(cached) " >&6
76992else
76993  ac_check_lib_save_LIBS=$LIBS
76994LIBS="-lfaad $LIBM $LIBS"
76995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76996/* end confdefs.h.  */
76997
76998/* Override any GCC internal prototype to avoid an error.
76999   Use char because int might match the return type of a GCC
77000   builtin and then its argument prototype would still apply.  */
77001#ifdef __cplusplus
77002extern "C"
77003#endif
77004char NeAACDecOpen ();
77005int
77006main ()
77007{
77008return NeAACDecOpen ();
77009  ;
77010  return 0;
77011}
77012_ACEOF
77013if ac_fn_c_try_link "$LINENO"; then :
77014  ac_cv_lib_faad_NeAACDecOpen=yes
77015else
77016  ac_cv_lib_faad_NeAACDecOpen=no
77017fi
77018rm -f core conftest.err conftest.$ac_objext \
77019    conftest$ac_exeext conftest.$ac_ext
77020LIBS=$ac_check_lib_save_LIBS
77021fi
77022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_faad_NeAACDecOpen" >&5
77023$as_echo "$ac_cv_lib_faad_NeAACDecOpen" >&6; }
77024if test "x$ac_cv_lib_faad_NeAACDecOpen" = xyes; then :
77025  HAVE_FAAD=yes
77026else
77027  HAVE_FAAD=no
77028fi
77029
77030  if test "x$HAVE_FAAD" = "xyes"; then
77031    ac_fn_c_check_header_mongrel "$LINENO" "neaacdec.h" "ac_cv_header_neaacdec_h" "$ac_includes_default"
77032if test "x$ac_cv_header_neaacdec_h" = xyes; then :
77033  :
77034else
77035  HAVE_FAAD=no
77036fi
77037
77038
77039    if test "x$HAVE_FAAD" = "xyes"; then
77040
77041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77042/* end confdefs.h.  */
77043#include <faad.h>
77044int
77045main ()
77046{
77047
77048      #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
77049      #error Not faad2
77050      #elif !defined(LATM)
77051      #error Not faad2 >= 2.7
77052      #endif
77053
77054  ;
77055  return 0;
77056}
77057_ACEOF
77058if ac_fn_c_try_compile "$LINENO"; then :
77059
77060      HAVE_FAAD="yes"
77061      FAAD_LIBS="-lfaad"
77062
77063else
77064
77065      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found libfaad, but version not recent enough. Need faad2 >= 2.7" >&5
77066$as_echo "$as_me: WARNING: Found libfaad, but version not recent enough. Need faad2 >= 2.7" >&2;}
77067      HAVE_FAAD="no"
77068
77069fi
77070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
77071
77072    else
77073
77074      HAVE_FAAD="no"
77075
77076    fi
77077  else
77078
77079      HAVE_FAAD="no"
77080
77081  fi
77082
77083
77084
77085
77086
77087
77088  LIBS=$gst_check_save_LIBS
77089  LDFLAGS=$gst_check_save_LDFLAGS
77090  CFLAGS=$gst_check_save_CFLAGS
77091  CPPFLAGS=$gst_check_save_CPPFLAGS
77092  CXXFLAGS=$gst_check_save_CXXFLAGS
77093
77094    if test x$HAVE_FAAD = xno; then
77095    USE_FAAD=no
77096  else
77097    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: faad" >&5
77098$as_echo "$as_me: *** These plugins will be built: faad" >&6;}
77099  fi
77100fi
77101if test x$USE_FAAD = xyes; then
77102  :
77103  if test "xfaad" != "x"; then
77104    GST_PLUGINS_YES="\tfaad\n$GST_PLUGINS_YES"
77105  fi
77106
77107$as_echo "#define HAVE_FAAD /**/" >>confdefs.h
77108
77109else
77110  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: faad" >&5
77111$as_echo "$as_me: *** These plugins will not be built: faad" >&6;}
77112  if test "xfaad" != "x"; then
77113    GST_PLUGINS_NO="\tfaad\n$GST_PLUGINS_NO"
77114  fi
77115  :
77116fi
77117 if test x$USE_FAAD = xyes; then
77118  USE_FAAD_TRUE=
77119  USE_FAAD_FALSE='#'
77120else
77121  USE_FAAD_TRUE='#'
77122  USE_FAAD_FALSE=
77123fi
77124
77125
77126
77127echo
77128{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: linux framebuffer ***" >&5
77129$as_echo "$as_me: *** checking feature: linux framebuffer ***" >&6;}
77130if test "xfbdevsink" != "x"
77131then
77132  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: fbdevsink ***" >&5
77133$as_echo "$as_me: *** for plug-ins: fbdevsink ***" >&6;}
77134fi
77135NOUSE=
77136if test "x$USE_FBDEV" = "xno"; then
77137  NOUSE="yes"
77138fi
77139# Check whether --enable-fbdev was given.
77140if test "${enable_fbdev+set}" = set; then :
77141  enableval=$enable_fbdev;  case "${enableval}" in
77142      yes) USE_FBDEV=yes;;
77143      no) USE_FBDEV=no;;
77144      *) as_fn_error $? "bad value ${enableval} for --enable-fbdev" "$LINENO" 5 ;;
77145    esac
77146else
77147   USE_FBDEV=yes
77148fi
77149
77150if test "x$NOUSE" = "xyes"; then
77151  USE_FBDEV="no"
77152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fbdevsink pre-configured not to be built" >&5
77153$as_echo "$as_me: WARNING: *** fbdevsink pre-configured not to be built" >&2;}
77154fi
77155NOUSE=
77156
77157if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FBDEV " > /dev/null; then
77158  USE_FBDEV="no"
77159  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fbdevsink not ported" >&5
77160$as_echo "$as_me: WARNING: *** fbdevsink not ported" >&2;}
77161fi
77162
77163
77164if test x$USE_FBDEV = xyes; then
77165
77166  gst_check_save_LIBS=$LIBS
77167  gst_check_save_LDFLAGS=$LDFLAGS
77168  gst_check_save_CFLAGS=$CFLAGS
77169  gst_check_save_CPPFLAGS=$CPPFLAGS
77170  gst_check_save_CXXFLAGS=$CXXFLAGS
77171
77172  HAVE_FBDEV=no
77173
77174  if test "x$HAVE_FBDEV" != "xyes"; then
77175    ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
77176if test "x$ac_cv_header_linux_fb_h" = xyes; then :
77177  HAVE_FBDEV=yes
77178else
77179  HAVE_FBDEV=no
77180fi
77181
77182
77183  fi
77184
77185
77186  LIBS=$gst_check_save_LIBS
77187  LDFLAGS=$gst_check_save_LDFLAGS
77188  CFLAGS=$gst_check_save_CFLAGS
77189  CPPFLAGS=$gst_check_save_CPPFLAGS
77190  CXXFLAGS=$gst_check_save_CXXFLAGS
77191
77192    if test x$HAVE_FBDEV = xno; then
77193    USE_FBDEV=no
77194  else
77195    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: fbdevsink" >&5
77196$as_echo "$as_me: *** These plugins will be built: fbdevsink" >&6;}
77197  fi
77198fi
77199if test x$USE_FBDEV = xyes; then
77200  :
77201  if test "xfbdevsink" != "x"; then
77202    GST_PLUGINS_YES="\tfbdevsink\n$GST_PLUGINS_YES"
77203  fi
77204
77205$as_echo "#define HAVE_FBDEV /**/" >>confdefs.h
77206
77207else
77208  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: fbdevsink" >&5
77209$as_echo "$as_me: *** These plugins will not be built: fbdevsink" >&6;}
77210  if test "xfbdevsink" != "x"; then
77211    GST_PLUGINS_NO="\tfbdevsink\n$GST_PLUGINS_NO"
77212  fi
77213  :
77214fi
77215 if test x$USE_FBDEV = xyes; then
77216  USE_FBDEV_TRUE=
77217  USE_FBDEV_FALSE='#'
77218else
77219  USE_FBDEV_TRUE='#'
77220  USE_FBDEV_FALSE=
77221fi
77222
77223
77224
77225echo
77226{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: fdkaac plugin ***" >&5
77227$as_echo "$as_me: *** checking feature: fdkaac plugin ***" >&6;}
77228if test "xfdkaac" != "x"
77229then
77230  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: fdkaac ***" >&5
77231$as_echo "$as_me: *** for plug-ins: fdkaac ***" >&6;}
77232fi
77233NOUSE=
77234if test "x$USE_FDK_AAC" = "xno"; then
77235  NOUSE="yes"
77236fi
77237# Check whether --enable-fdk_aac was given.
77238if test "${enable_fdk_aac+set}" = set; then :
77239  enableval=$enable_fdk_aac;  case "${enableval}" in
77240      yes) USE_FDK_AAC=yes;;
77241      no) USE_FDK_AAC=no;;
77242      *) as_fn_error $? "bad value ${enableval} for --enable-fdk_aac" "$LINENO" 5 ;;
77243    esac
77244else
77245   USE_FDK_AAC=yes
77246fi
77247
77248if test "x$NOUSE" = "xyes"; then
77249  USE_FDK_AAC="no"
77250  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fdkaac pre-configured not to be built" >&5
77251$as_echo "$as_me: WARNING: *** fdkaac pre-configured not to be built" >&2;}
77252fi
77253NOUSE=
77254
77255if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FDK_AAC " > /dev/null; then
77256  USE_FDK_AAC="no"
77257  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fdkaac not ported" >&5
77258$as_echo "$as_me: WARNING: *** fdkaac not ported" >&2;}
77259fi
77260
77261
77262if test x$USE_FDK_AAC = xyes; then
77263
77264  gst_check_save_LIBS=$LIBS
77265  gst_check_save_LDFLAGS=$LDFLAGS
77266  gst_check_save_CFLAGS=$CFLAGS
77267  gst_check_save_CPPFLAGS=$CPPFLAGS
77268  gst_check_save_CXXFLAGS=$CXXFLAGS
77269
77270  HAVE_FDK_AAC=no
77271
77272
77273pkg_failed=no
77274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FDK_AAC" >&5
77275$as_echo_n "checking for FDK_AAC... " >&6; }
77276
77277if test -n "$PKG_CONFIG"; then
77278    if test -n "$FDK_AAC_CFLAGS"; then
77279        pkg_cv_FDK_AAC_CFLAGS="$FDK_AAC_CFLAGS"
77280    else
77281        if test -n "$PKG_CONFIG" && \
77282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fdk-aac\""; } >&5
77283  ($PKG_CONFIG --exists --print-errors "fdk-aac") 2>&5
77284  ac_status=$?
77285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77286  test $ac_status = 0; }; then
77287  pkg_cv_FDK_AAC_CFLAGS=`$PKG_CONFIG --cflags "fdk-aac" 2>/dev/null`
77288else
77289  pkg_failed=yes
77290fi
77291    fi
77292else
77293	pkg_failed=untried
77294fi
77295if test -n "$PKG_CONFIG"; then
77296    if test -n "$FDK_AAC_LIBS"; then
77297        pkg_cv_FDK_AAC_LIBS="$FDK_AAC_LIBS"
77298    else
77299        if test -n "$PKG_CONFIG" && \
77300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fdk-aac\""; } >&5
77301  ($PKG_CONFIG --exists --print-errors "fdk-aac") 2>&5
77302  ac_status=$?
77303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77304  test $ac_status = 0; }; then
77305  pkg_cv_FDK_AAC_LIBS=`$PKG_CONFIG --libs "fdk-aac" 2>/dev/null`
77306else
77307  pkg_failed=yes
77308fi
77309    fi
77310else
77311	pkg_failed=untried
77312fi
77313
77314
77315
77316if test $pkg_failed = yes; then
77317
77318if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77319        _pkg_short_errors_supported=yes
77320else
77321        _pkg_short_errors_supported=no
77322fi
77323        if test $_pkg_short_errors_supported = yes; then
77324	        FDK_AAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fdk-aac"`
77325        else
77326	        FDK_AAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fdk-aac"`
77327        fi
77328	# Put the nasty error message in config.log where it belongs
77329	echo "$FDK_AAC_PKG_ERRORS" >&5
77330
77331	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77332$as_echo "no" >&6; }
77333                HAVE_FDK_AAC="no"
77334elif test $pkg_failed = untried; then
77335	HAVE_FDK_AAC="no"
77336else
77337	FDK_AAC_CFLAGS=$pkg_cv_FDK_AAC_CFLAGS
77338	FDK_AAC_LIBS=$pkg_cv_FDK_AAC_LIBS
77339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77340$as_echo "yes" >&6; }
77341	HAVE_FDK_AAC="yes"
77342fi
77343
77344  if test -n "$PKG_CONFIG" && \
77345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fdk-aac >= 2.0.0\""; } >&5
77346  ($PKG_CONFIG --exists --print-errors "fdk-aac >= 2.0.0") 2>&5
77347  ac_status=$?
77348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77349  test $ac_status = 0; }; then
77350
77351
77352$as_echo "#define HAVE_FDK_AAC_2_0_0 1" >>confdefs.h
77353
77354
77355fi
77356
77357  if test -n "$PKG_CONFIG" && \
77358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fdk-aac >= 0.1.4\""; } >&5
77359  ($PKG_CONFIG --exists --print-errors "fdk-aac >= 0.1.4") 2>&5
77360  ac_status=$?
77361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77362  test $ac_status = 0; }; then
77363
77364
77365$as_echo "#define HAVE_FDK_AAC_0_1_4 1" >>confdefs.h
77366
77367
77368fi
77369
77370
77371  LIBS=$gst_check_save_LIBS
77372  LDFLAGS=$gst_check_save_LDFLAGS
77373  CFLAGS=$gst_check_save_CFLAGS
77374  CPPFLAGS=$gst_check_save_CPPFLAGS
77375  CXXFLAGS=$gst_check_save_CXXFLAGS
77376
77377    if test x$HAVE_FDK_AAC = xno; then
77378    USE_FDK_AAC=no
77379  else
77380    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: fdkaac" >&5
77381$as_echo "$as_me: *** These plugins will be built: fdkaac" >&6;}
77382  fi
77383fi
77384if test x$USE_FDK_AAC = xyes; then
77385  :
77386  if test "xfdkaac" != "x"; then
77387    GST_PLUGINS_YES="\tfdkaac\n$GST_PLUGINS_YES"
77388  fi
77389
77390$as_echo "#define HAVE_FDK_AAC /**/" >>confdefs.h
77391
77392else
77393  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: fdkaac" >&5
77394$as_echo "$as_me: *** These plugins will not be built: fdkaac" >&6;}
77395  if test "xfdkaac" != "x"; then
77396    GST_PLUGINS_NO="\tfdkaac\n$GST_PLUGINS_NO"
77397  fi
77398  :
77399fi
77400 if test x$USE_FDK_AAC = xyes; then
77401  USE_FDK_AAC_TRUE=
77402  USE_FDK_AAC_FALSE='#'
77403else
77404  USE_FDK_AAC_TRUE='#'
77405  USE_FDK_AAC_FALSE=
77406fi
77407
77408
77409
77410echo
77411{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Flite plugin ***" >&5
77412$as_echo "$as_me: *** checking feature: Flite plugin ***" >&6;}
77413if test "xflite" != "x"
77414then
77415  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: flite ***" >&5
77416$as_echo "$as_me: *** for plug-ins: flite ***" >&6;}
77417fi
77418NOUSE=
77419if test "x$USE_FLITE" = "xno"; then
77420  NOUSE="yes"
77421fi
77422# Check whether --enable-flite was given.
77423if test "${enable_flite+set}" = set; then :
77424  enableval=$enable_flite;  case "${enableval}" in
77425      yes) USE_FLITE=yes;;
77426      no) USE_FLITE=no;;
77427      *) as_fn_error $? "bad value ${enableval} for --enable-flite" "$LINENO" 5 ;;
77428    esac
77429else
77430   USE_FLITE=yes
77431fi
77432
77433if test "x$NOUSE" = "xyes"; then
77434  USE_FLITE="no"
77435  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** flite pre-configured not to be built" >&5
77436$as_echo "$as_me: WARNING: *** flite pre-configured not to be built" >&2;}
77437fi
77438NOUSE=
77439
77440if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FLITE " > /dev/null; then
77441  USE_FLITE="no"
77442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** flite not ported" >&5
77443$as_echo "$as_me: WARNING: *** flite not ported" >&2;}
77444fi
77445
77446
77447if test x$USE_FLITE = xyes; then
77448
77449  gst_check_save_LIBS=$LIBS
77450  gst_check_save_LDFLAGS=$LDFLAGS
77451  gst_check_save_CFLAGS=$CFLAGS
77452  gst_check_save_CPPFLAGS=$CPPFLAGS
77453  gst_check_save_CXXFLAGS=$CXXFLAGS
77454
77455  HAVE_FLITE=no
77456
77457
77458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flite_init in -lflite" >&5
77459$as_echo_n "checking for flite_init in -lflite... " >&6; }
77460if ${ac_cv_lib_flite_flite_init+:} false; then :
77461  $as_echo_n "(cached) " >&6
77462else
77463  ac_check_lib_save_LIBS=$LIBS
77464LIBS="-lflite $LIBM $LIBS"
77465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77466/* end confdefs.h.  */
77467
77468/* Override any GCC internal prototype to avoid an error.
77469   Use char because int might match the return type of a GCC
77470   builtin and then its argument prototype would still apply.  */
77471#ifdef __cplusplus
77472extern "C"
77473#endif
77474char flite_init ();
77475int
77476main ()
77477{
77478return flite_init ();
77479  ;
77480  return 0;
77481}
77482_ACEOF
77483if ac_fn_c_try_link "$LINENO"; then :
77484  ac_cv_lib_flite_flite_init=yes
77485else
77486  ac_cv_lib_flite_flite_init=no
77487fi
77488rm -f core conftest.err conftest.$ac_objext \
77489    conftest$ac_exeext conftest.$ac_ext
77490LIBS=$ac_check_lib_save_LIBS
77491fi
77492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flite_flite_init" >&5
77493$as_echo "$ac_cv_lib_flite_flite_init" >&6; }
77494if test "x$ac_cv_lib_flite_flite_init" = xyes; then :
77495  HAVE_FLITE=yes
77496else
77497  HAVE_FLITE=no
77498fi
77499
77500  if test "x$HAVE_FLITE" = "xyes"; then
77501    ac_fn_c_check_header_mongrel "$LINENO" "flite/flite.h" "ac_cv_header_flite_flite_h" "$ac_includes_default"
77502if test "x$ac_cv_header_flite_flite_h" = xyes; then :
77503  :
77504else
77505  HAVE_FLITE=no
77506fi
77507
77508
77509    if test "x$HAVE_FLITE" = "xyes"; then
77510            FLITE_LIBS="-lflite -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex $LIBM"
77511    else
77512      :
77513    fi
77514  else
77515    :
77516  fi
77517
77518
77519
77520
77521
77522
77523
77524
77525  LIBS=$gst_check_save_LIBS
77526  LDFLAGS=$gst_check_save_LDFLAGS
77527  CFLAGS=$gst_check_save_CFLAGS
77528  CPPFLAGS=$gst_check_save_CPPFLAGS
77529  CXXFLAGS=$gst_check_save_CXXFLAGS
77530
77531    if test x$HAVE_FLITE = xno; then
77532    USE_FLITE=no
77533  else
77534    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: flite" >&5
77535$as_echo "$as_me: *** These plugins will be built: flite" >&6;}
77536  fi
77537fi
77538if test x$USE_FLITE = xyes; then
77539  :
77540  if test "xflite" != "x"; then
77541    GST_PLUGINS_YES="\tflite\n$GST_PLUGINS_YES"
77542  fi
77543
77544$as_echo "#define HAVE_FLITE /**/" >>confdefs.h
77545
77546else
77547  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: flite" >&5
77548$as_echo "$as_me: *** These plugins will not be built: flite" >&6;}
77549  if test "xflite" != "x"; then
77550    GST_PLUGINS_NO="\tflite\n$GST_PLUGINS_NO"
77551  fi
77552  :
77553fi
77554 if test x$USE_FLITE = xyes; then
77555  USE_FLITE_TRUE=
77556  USE_FLITE_FALSE='#'
77557else
77558  USE_FLITE_TRUE='#'
77559  USE_FLITE_FALSE=
77560fi
77561
77562
77563
77564echo
77565{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: GSM library ***" >&5
77566$as_echo "$as_me: *** checking feature: GSM library ***" >&6;}
77567if test "xgsmenc gsmdec" != "x"
77568then
77569  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: gsmenc gsmdec ***" >&5
77570$as_echo "$as_me: *** for plug-ins: gsmenc gsmdec ***" >&6;}
77571fi
77572NOUSE=
77573if test "x$USE_GSM" = "xno"; then
77574  NOUSE="yes"
77575fi
77576# Check whether --enable-gsm was given.
77577if test "${enable_gsm+set}" = set; then :
77578  enableval=$enable_gsm;  case "${enableval}" in
77579      yes) USE_GSM=yes;;
77580      no) USE_GSM=no;;
77581      *) as_fn_error $? "bad value ${enableval} for --enable-gsm" "$LINENO" 5 ;;
77582    esac
77583else
77584   USE_GSM=yes
77585fi
77586
77587if test "x$NOUSE" = "xyes"; then
77588  USE_GSM="no"
77589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gsmenc gsmdec pre-configured not to be built" >&5
77590$as_echo "$as_me: WARNING: *** gsmenc gsmdec pre-configured not to be built" >&2;}
77591fi
77592NOUSE=
77593
77594if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " GSM " > /dev/null; then
77595  USE_GSM="no"
77596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gsmenc gsmdec not ported" >&5
77597$as_echo "$as_me: WARNING: *** gsmenc gsmdec not ported" >&2;}
77598fi
77599
77600
77601if test x$USE_GSM = xyes; then
77602
77603  gst_check_save_LIBS=$LIBS
77604  gst_check_save_LDFLAGS=$LDFLAGS
77605  gst_check_save_CFLAGS=$CFLAGS
77606  gst_check_save_CPPFLAGS=$CPPFLAGS
77607  gst_check_save_CXXFLAGS=$CXXFLAGS
77608
77609  HAVE_GSM=no
77610
77611
77612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
77613$as_echo_n "checking for gsm_create in -lgsm... " >&6; }
77614if ${ac_cv_lib_gsm_gsm_create+:} false; then :
77615  $as_echo_n "(cached) " >&6
77616else
77617  ac_check_lib_save_LIBS=$LIBS
77618LIBS="-lgsm  $LIBS"
77619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77620/* end confdefs.h.  */
77621
77622/* Override any GCC internal prototype to avoid an error.
77623   Use char because int might match the return type of a GCC
77624   builtin and then its argument prototype would still apply.  */
77625#ifdef __cplusplus
77626extern "C"
77627#endif
77628char gsm_create ();
77629int
77630main ()
77631{
77632return gsm_create ();
77633  ;
77634  return 0;
77635}
77636_ACEOF
77637if ac_fn_c_try_link "$LINENO"; then :
77638  ac_cv_lib_gsm_gsm_create=yes
77639else
77640  ac_cv_lib_gsm_gsm_create=no
77641fi
77642rm -f core conftest.err conftest.$ac_objext \
77643    conftest$ac_exeext conftest.$ac_ext
77644LIBS=$ac_check_lib_save_LIBS
77645fi
77646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
77647$as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
77648if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
77649  HAVE_GSM=yes
77650else
77651  HAVE_GSM=no
77652fi
77653
77654  if test "x$HAVE_GSM" = "xyes"; then
77655    ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
77656if test "x$ac_cv_header_gsm_h" = xyes; then :
77657  :
77658else
77659  HAVE_GSM=no
77660fi
77661
77662
77663    if test "x$HAVE_GSM" = "xyes"; then
77664            GSM_LIBS="-lgsm"
77665    else
77666      :
77667    fi
77668  else
77669    :
77670  fi
77671
77672
77673
77674  if test $HAVE_GSM != "yes"; then
77675
77676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
77677$as_echo_n "checking for gsm_create in -lgsm... " >&6; }
77678if ${ac_cv_lib_gsm_gsm_create+:} false; then :
77679  $as_echo_n "(cached) " >&6
77680else
77681  ac_check_lib_save_LIBS=$LIBS
77682LIBS="-lgsm  $LIBS"
77683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77684/* end confdefs.h.  */
77685
77686/* Override any GCC internal prototype to avoid an error.
77687   Use char because int might match the return type of a GCC
77688   builtin and then its argument prototype would still apply.  */
77689#ifdef __cplusplus
77690extern "C"
77691#endif
77692char gsm_create ();
77693int
77694main ()
77695{
77696return gsm_create ();
77697  ;
77698  return 0;
77699}
77700_ACEOF
77701if ac_fn_c_try_link "$LINENO"; then :
77702  ac_cv_lib_gsm_gsm_create=yes
77703else
77704  ac_cv_lib_gsm_gsm_create=no
77705fi
77706rm -f core conftest.err conftest.$ac_objext \
77707    conftest$ac_exeext conftest.$ac_ext
77708LIBS=$ac_check_lib_save_LIBS
77709fi
77710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
77711$as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
77712if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
77713  HAVE_GSM=yes
77714else
77715  HAVE_GSM=no
77716fi
77717
77718  if test "x$HAVE_GSM" = "xyes"; then
77719    ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
77720if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
77721  :
77722else
77723  HAVE_GSM=no
77724fi
77725
77726
77727    if test "x$HAVE_GSM" = "xyes"; then
77728            GSM_LIBS="-lgsm"
77729    else
77730      :
77731    fi
77732  else
77733    :
77734  fi
77735
77736
77737
77738    if test $HAVE_GSM = "yes"; then
77739
77740$as_echo "#define GSM_HEADER_IN_SUBDIR 1" >>confdefs.h
77741
77742    fi
77743  fi
77744
77745
77746
77747  LIBS=$gst_check_save_LIBS
77748  LDFLAGS=$gst_check_save_LDFLAGS
77749  CFLAGS=$gst_check_save_CFLAGS
77750  CPPFLAGS=$gst_check_save_CPPFLAGS
77751  CXXFLAGS=$gst_check_save_CXXFLAGS
77752
77753    if test x$HAVE_GSM = xno; then
77754    USE_GSM=no
77755  else
77756    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: gsmenc gsmdec" >&5
77757$as_echo "$as_me: *** These plugins will be built: gsmenc gsmdec" >&6;}
77758  fi
77759fi
77760if test x$USE_GSM = xyes; then
77761  :
77762  if test "xgsmenc gsmdec" != "x"; then
77763    GST_PLUGINS_YES="\tgsmenc gsmdec\n$GST_PLUGINS_YES"
77764  fi
77765
77766$as_echo "#define HAVE_GSM /**/" >>confdefs.h
77767
77768else
77769  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: gsmenc gsmdec" >&5
77770$as_echo "$as_me: *** These plugins will not be built: gsmenc gsmdec" >&6;}
77771  if test "xgsmenc gsmdec" != "x"; then
77772    GST_PLUGINS_NO="\tgsmenc gsmdec\n$GST_PLUGINS_NO"
77773  fi
77774  :
77775fi
77776 if test x$USE_GSM = xyes; then
77777  USE_GSM_TRUE=
77778  USE_GSM_FALSE='#'
77779else
77780  USE_GSM_TRUE='#'
77781  USE_GSM_FALSE=
77782fi
77783
77784
77785
77786echo
77787{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: fluidsynth ***" >&5
77788$as_echo "$as_me: *** checking feature: fluidsynth ***" >&6;}
77789if test "xfluidsynth" != "x"
77790then
77791  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: fluidsynth ***" >&5
77792$as_echo "$as_me: *** for plug-ins: fluidsynth ***" >&6;}
77793fi
77794NOUSE=
77795if test "x$USE_FLUIDSYNTH" = "xno"; then
77796  NOUSE="yes"
77797fi
77798# Check whether --enable-fluidsynth was given.
77799if test "${enable_fluidsynth+set}" = set; then :
77800  enableval=$enable_fluidsynth;  case "${enableval}" in
77801      yes) USE_FLUIDSYNTH=yes;;
77802      no) USE_FLUIDSYNTH=no;;
77803      *) as_fn_error $? "bad value ${enableval} for --enable-fluidsynth" "$LINENO" 5 ;;
77804    esac
77805else
77806   USE_FLUIDSYNTH=yes
77807fi
77808
77809if test "x$NOUSE" = "xyes"; then
77810  USE_FLUIDSYNTH="no"
77811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fluidsynth pre-configured not to be built" >&5
77812$as_echo "$as_me: WARNING: *** fluidsynth pre-configured not to be built" >&2;}
77813fi
77814NOUSE=
77815
77816if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " FLUIDSYNTH " > /dev/null; then
77817  USE_FLUIDSYNTH="no"
77818  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** fluidsynth not ported" >&5
77819$as_echo "$as_me: WARNING: *** fluidsynth not ported" >&2;}
77820fi
77821
77822
77823if test x$USE_FLUIDSYNTH = xyes; then
77824
77825  gst_check_save_LIBS=$LIBS
77826  gst_check_save_LDFLAGS=$LDFLAGS
77827  gst_check_save_CFLAGS=$CFLAGS
77828  gst_check_save_CPPFLAGS=$CPPFLAGS
77829  gst_check_save_CXXFLAGS=$CXXFLAGS
77830
77831  HAVE_FLUIDSYNTH=no
77832
77833
77834pkg_failed=no
77835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLUIDSYNTH" >&5
77836$as_echo_n "checking for FLUIDSYNTH... " >&6; }
77837
77838if test -n "$PKG_CONFIG"; then
77839    if test -n "$FLUIDSYNTH_CFLAGS"; then
77840        pkg_cv_FLUIDSYNTH_CFLAGS="$FLUIDSYNTH_CFLAGS"
77841    else
77842        if test -n "$PKG_CONFIG" && \
77843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0\""; } >&5
77844  ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0") 2>&5
77845  ac_status=$?
77846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77847  test $ac_status = 0; }; then
77848  pkg_cv_FLUIDSYNTH_CFLAGS=`$PKG_CONFIG --cflags "fluidsynth >= 1.0" 2>/dev/null`
77849else
77850  pkg_failed=yes
77851fi
77852    fi
77853else
77854	pkg_failed=untried
77855fi
77856if test -n "$PKG_CONFIG"; then
77857    if test -n "$FLUIDSYNTH_LIBS"; then
77858        pkg_cv_FLUIDSYNTH_LIBS="$FLUIDSYNTH_LIBS"
77859    else
77860        if test -n "$PKG_CONFIG" && \
77861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fluidsynth >= 1.0\""; } >&5
77862  ($PKG_CONFIG --exists --print-errors "fluidsynth >= 1.0") 2>&5
77863  ac_status=$?
77864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
77865  test $ac_status = 0; }; then
77866  pkg_cv_FLUIDSYNTH_LIBS=`$PKG_CONFIG --libs "fluidsynth >= 1.0" 2>/dev/null`
77867else
77868  pkg_failed=yes
77869fi
77870    fi
77871else
77872	pkg_failed=untried
77873fi
77874
77875
77876
77877if test $pkg_failed = yes; then
77878
77879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
77880        _pkg_short_errors_supported=yes
77881else
77882        _pkg_short_errors_supported=no
77883fi
77884        if test $_pkg_short_errors_supported = yes; then
77885	        FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fluidsynth >= 1.0"`
77886        else
77887	        FLUIDSYNTH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fluidsynth >= 1.0"`
77888        fi
77889	# Put the nasty error message in config.log where it belongs
77890	echo "$FLUIDSYNTH_PKG_ERRORS" >&5
77891
77892	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
77893$as_echo "no" >&6; }
77894
77895    HAVE_FLUIDSYNTH="no"
77896
77897elif test $pkg_failed = untried; then
77898
77899    HAVE_FLUIDSYNTH="no"
77900
77901else
77902	FLUIDSYNTH_CFLAGS=$pkg_cv_FLUIDSYNTH_CFLAGS
77903	FLUIDSYNTH_LIBS=$pkg_cv_FLUIDSYNTH_LIBS
77904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
77905$as_echo "yes" >&6; }
77906	HAVE_FLUIDSYNTH="yes"
77907fi
77908
77909
77910  LIBS=$gst_check_save_LIBS
77911  LDFLAGS=$gst_check_save_LDFLAGS
77912  CFLAGS=$gst_check_save_CFLAGS
77913  CPPFLAGS=$gst_check_save_CPPFLAGS
77914  CXXFLAGS=$gst_check_save_CXXFLAGS
77915
77916    if test x$HAVE_FLUIDSYNTH = xno; then
77917    USE_FLUIDSYNTH=no
77918  else
77919    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: fluidsynth" >&5
77920$as_echo "$as_me: *** These plugins will be built: fluidsynth" >&6;}
77921  fi
77922fi
77923if test x$USE_FLUIDSYNTH = xyes; then
77924  :
77925  if test "xfluidsynth" != "x"; then
77926    GST_PLUGINS_YES="\tfluidsynth\n$GST_PLUGINS_YES"
77927  fi
77928
77929$as_echo "#define HAVE_FLUIDSYNTH /**/" >>confdefs.h
77930
77931else
77932  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: fluidsynth" >&5
77933$as_echo "$as_me: *** These plugins will not be built: fluidsynth" >&6;}
77934  if test "xfluidsynth" != "x"; then
77935    GST_PLUGINS_NO="\tfluidsynth\n$GST_PLUGINS_NO"
77936  fi
77937  :
77938fi
77939 if test x$USE_FLUIDSYNTH = xyes; then
77940  USE_FLUIDSYNTH_TRUE=
77941  USE_FLUIDSYNTH_FALSE='#'
77942else
77943  USE_FLUIDSYNTH_TRUE='#'
77944  USE_FLUIDSYNTH_FALSE=
77945fi
77946
77947
77948
77949echo
77950{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Kate ***" >&5
77951$as_echo "$as_me: *** checking feature: Kate ***" >&6;}
77952if test "xkate" != "x"
77953then
77954  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: kate ***" >&5
77955$as_echo "$as_me: *** for plug-ins: kate ***" >&6;}
77956fi
77957NOUSE=
77958if test "x$USE_KATE" = "xno"; then
77959  NOUSE="yes"
77960fi
77961# Check whether --enable-kate was given.
77962if test "${enable_kate+set}" = set; then :
77963  enableval=$enable_kate;  case "${enableval}" in
77964      yes) USE_KATE=yes;;
77965      no) USE_KATE=no;;
77966      *) as_fn_error $? "bad value ${enableval} for --enable-kate" "$LINENO" 5 ;;
77967    esac
77968else
77969   USE_KATE=yes
77970fi
77971
77972if test "x$NOUSE" = "xyes"; then
77973  USE_KATE="no"
77974  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** kate pre-configured not to be built" >&5
77975$as_echo "$as_me: WARNING: *** kate pre-configured not to be built" >&2;}
77976fi
77977NOUSE=
77978
77979if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " KATE " > /dev/null; then
77980  USE_KATE="no"
77981  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** kate not ported" >&5
77982$as_echo "$as_me: WARNING: *** kate not ported" >&2;}
77983fi
77984
77985
77986if test x$USE_KATE = xyes; then
77987
77988  gst_check_save_LIBS=$LIBS
77989  gst_check_save_LDFLAGS=$LDFLAGS
77990  gst_check_save_CFLAGS=$CFLAGS
77991  gst_check_save_CPPFLAGS=$CPPFLAGS
77992  gst_check_save_CXXFLAGS=$CXXFLAGS
77993
77994  HAVE_KATE=no
77995
77996
77997pkg_failed=no
77998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KATE" >&5
77999$as_echo_n "checking for KATE... " >&6; }
78000
78001if test -n "$PKG_CONFIG"; then
78002    if test -n "$KATE_CFLAGS"; then
78003        pkg_cv_KATE_CFLAGS="$KATE_CFLAGS"
78004    else
78005        if test -n "$PKG_CONFIG" && \
78006    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"kate >= 0.1.7\""; } >&5
78007  ($PKG_CONFIG --exists --print-errors "kate >= 0.1.7") 2>&5
78008  ac_status=$?
78009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78010  test $ac_status = 0; }; then
78011  pkg_cv_KATE_CFLAGS=`$PKG_CONFIG --cflags "kate >= 0.1.7" 2>/dev/null`
78012else
78013  pkg_failed=yes
78014fi
78015    fi
78016else
78017	pkg_failed=untried
78018fi
78019if test -n "$PKG_CONFIG"; then
78020    if test -n "$KATE_LIBS"; then
78021        pkg_cv_KATE_LIBS="$KATE_LIBS"
78022    else
78023        if test -n "$PKG_CONFIG" && \
78024    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"kate >= 0.1.7\""; } >&5
78025  ($PKG_CONFIG --exists --print-errors "kate >= 0.1.7") 2>&5
78026  ac_status=$?
78027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78028  test $ac_status = 0; }; then
78029  pkg_cv_KATE_LIBS=`$PKG_CONFIG --libs "kate >= 0.1.7" 2>/dev/null`
78030else
78031  pkg_failed=yes
78032fi
78033    fi
78034else
78035	pkg_failed=untried
78036fi
78037
78038
78039
78040if test $pkg_failed = yes; then
78041
78042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78043        _pkg_short_errors_supported=yes
78044else
78045        _pkg_short_errors_supported=no
78046fi
78047        if test $_pkg_short_errors_supported = yes; then
78048	        KATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "kate >= 0.1.7"`
78049        else
78050	        KATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "kate >= 0.1.7"`
78051        fi
78052	# Put the nasty error message in config.log where it belongs
78053	echo "$KATE_PKG_ERRORS" >&5
78054
78055	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78056$as_echo "no" >&6; }
78057
78058    HAVE_KATE="no"
78059
78060elif test $pkg_failed = untried; then
78061
78062    HAVE_KATE="no"
78063
78064else
78065	KATE_CFLAGS=$pkg_cv_KATE_CFLAGS
78066	KATE_LIBS=$pkg_cv_KATE_LIBS
78067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78068$as_echo "yes" >&6; }
78069	HAVE_KATE="yes"
78070fi
78071
78072
78073
78074pkg_failed=no
78075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIGER" >&5
78076$as_echo_n "checking for TIGER... " >&6; }
78077
78078if test -n "$PKG_CONFIG"; then
78079    if test -n "$TIGER_CFLAGS"; then
78080        pkg_cv_TIGER_CFLAGS="$TIGER_CFLAGS"
78081    else
78082        if test -n "$PKG_CONFIG" && \
78083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tiger >= 0.3.2\""; } >&5
78084  ($PKG_CONFIG --exists --print-errors "tiger >= 0.3.2") 2>&5
78085  ac_status=$?
78086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78087  test $ac_status = 0; }; then
78088  pkg_cv_TIGER_CFLAGS=`$PKG_CONFIG --cflags "tiger >= 0.3.2" 2>/dev/null`
78089else
78090  pkg_failed=yes
78091fi
78092    fi
78093else
78094	pkg_failed=untried
78095fi
78096if test -n "$PKG_CONFIG"; then
78097    if test -n "$TIGER_LIBS"; then
78098        pkg_cv_TIGER_LIBS="$TIGER_LIBS"
78099    else
78100        if test -n "$PKG_CONFIG" && \
78101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"tiger >= 0.3.2\""; } >&5
78102  ($PKG_CONFIG --exists --print-errors "tiger >= 0.3.2") 2>&5
78103  ac_status=$?
78104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78105  test $ac_status = 0; }; then
78106  pkg_cv_TIGER_LIBS=`$PKG_CONFIG --libs "tiger >= 0.3.2" 2>/dev/null`
78107else
78108  pkg_failed=yes
78109fi
78110    fi
78111else
78112	pkg_failed=untried
78113fi
78114
78115
78116
78117if test $pkg_failed = yes; then
78118
78119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78120        _pkg_short_errors_supported=yes
78121else
78122        _pkg_short_errors_supported=no
78123fi
78124        if test $_pkg_short_errors_supported = yes; then
78125	        TIGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "tiger >= 0.3.2"`
78126        else
78127	        TIGER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tiger >= 0.3.2"`
78128        fi
78129	# Put the nasty error message in config.log where it belongs
78130	echo "$TIGER_PKG_ERRORS" >&5
78131
78132	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78133$as_echo "no" >&6; }
78134
78135      HAVE_TIGER="no"
78136
78137
78138elif test $pkg_failed = untried; then
78139
78140      HAVE_TIGER="no"
78141
78142
78143else
78144	TIGER_CFLAGS=$pkg_cv_TIGER_CFLAGS
78145	TIGER_LIBS=$pkg_cv_TIGER_LIBS
78146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78147$as_echo "yes" >&6; }
78148
78149      HAVE_TIGER="yes"
78150
78151$as_echo "#define HAVE_TIGER 1" >>confdefs.h
78152
78153
78154fi
78155   if test "x$HAVE_TIGER" = "xyes"; then
78156  USE_TIGER_TRUE=
78157  USE_TIGER_FALSE='#'
78158else
78159  USE_TIGER_TRUE='#'
78160  USE_TIGER_FALSE=
78161fi
78162
78163
78164
78165
78166
78167  LIBS=$gst_check_save_LIBS
78168  LDFLAGS=$gst_check_save_LDFLAGS
78169  CFLAGS=$gst_check_save_CFLAGS
78170  CPPFLAGS=$gst_check_save_CPPFLAGS
78171  CXXFLAGS=$gst_check_save_CXXFLAGS
78172
78173    if test x$HAVE_KATE = xno; then
78174    USE_KATE=no
78175  else
78176    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: kate" >&5
78177$as_echo "$as_me: *** These plugins will be built: kate" >&6;}
78178  fi
78179fi
78180if test x$USE_KATE = xyes; then
78181  :
78182  if test "xkate" != "x"; then
78183    GST_PLUGINS_YES="\tkate\n$GST_PLUGINS_YES"
78184  fi
78185
78186$as_echo "#define HAVE_KATE /**/" >>confdefs.h
78187
78188else
78189  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: kate" >&5
78190$as_echo "$as_me: *** These plugins will not be built: kate" >&6;}
78191  if test "xkate" != "x"; then
78192    GST_PLUGINS_NO="\tkate\n$GST_PLUGINS_NO"
78193  fi
78194   if false; then
78195  USE_TIGER_TRUE=
78196  USE_TIGER_FALSE='#'
78197else
78198  USE_TIGER_TRUE='#'
78199  USE_TIGER_FALSE=
78200fi
78201
78202fi
78203 if test x$USE_KATE = xyes; then
78204  USE_KATE_TRUE=
78205  USE_KATE_FALSE='#'
78206else
78207  USE_KATE_TRUE='#'
78208  USE_KATE_FALSE=
78209fi
78210
78211
78212
78213echo
78214{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: drm/kms libraries ***" >&5
78215$as_echo "$as_me: *** checking feature: drm/kms libraries ***" >&6;}
78216if test "xkms" != "x"
78217then
78218  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: kms ***" >&5
78219$as_echo "$as_me: *** for plug-ins: kms ***" >&6;}
78220fi
78221NOUSE=
78222if test "x$USE_KMS" = "xno"; then
78223  NOUSE="yes"
78224fi
78225# Check whether --enable-kms was given.
78226if test "${enable_kms+set}" = set; then :
78227  enableval=$enable_kms;  case "${enableval}" in
78228      yes) USE_KMS=yes;;
78229      no) USE_KMS=no;;
78230      *) as_fn_error $? "bad value ${enableval} for --enable-kms" "$LINENO" 5 ;;
78231    esac
78232else
78233   USE_KMS=yes
78234fi
78235
78236if test "x$NOUSE" = "xyes"; then
78237  USE_KMS="no"
78238  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** kms pre-configured not to be built" >&5
78239$as_echo "$as_me: WARNING: *** kms pre-configured not to be built" >&2;}
78240fi
78241NOUSE=
78242
78243if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " KMS " > /dev/null; then
78244  USE_KMS="no"
78245  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** kms not ported" >&5
78246$as_echo "$as_me: WARNING: *** kms not ported" >&2;}
78247fi
78248
78249
78250if test x$USE_KMS = xyes; then
78251
78252  gst_check_save_LIBS=$LIBS
78253  gst_check_save_LDFLAGS=$LDFLAGS
78254  gst_check_save_CFLAGS=$CFLAGS
78255  gst_check_save_CPPFLAGS=$CPPFLAGS
78256  gst_check_save_CXXFLAGS=$CXXFLAGS
78257
78258  HAVE_KMS=no
78259
78260
78261  which="gstreamer-allocators-1.0"
78262    required="no"
78263
78264
78265pkg_failed=no
78266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_ALLOCATORS" >&5
78267$as_echo_n "checking for GST_ALLOCATORS... " >&6; }
78268
78269if test -n "$PKG_CONFIG"; then
78270    if test -n "$GST_ALLOCATORS_CFLAGS"; then
78271        pkg_cv_GST_ALLOCATORS_CFLAGS="$GST_ALLOCATORS_CFLAGS"
78272    else
78273        if test -n "$PKG_CONFIG" && \
78274    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
78275  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
78276  ac_status=$?
78277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78278  test $ac_status = 0; }; then
78279  pkg_cv_GST_ALLOCATORS_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
78280else
78281  pkg_failed=yes
78282fi
78283    fi
78284else
78285	pkg_failed=untried
78286fi
78287if test -n "$PKG_CONFIG"; then
78288    if test -n "$GST_ALLOCATORS_LIBS"; then
78289        pkg_cv_GST_ALLOCATORS_LIBS="$GST_ALLOCATORS_LIBS"
78290    else
78291        if test -n "$PKG_CONFIG" && \
78292    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
78293  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
78294  ac_status=$?
78295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78296  test $ac_status = 0; }; then
78297  pkg_cv_GST_ALLOCATORS_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
78298else
78299  pkg_failed=yes
78300fi
78301    fi
78302else
78303	pkg_failed=untried
78304fi
78305
78306
78307
78308if test $pkg_failed = yes; then
78309
78310if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78311        _pkg_short_errors_supported=yes
78312else
78313        _pkg_short_errors_supported=no
78314fi
78315        if test $_pkg_short_errors_supported = yes; then
78316	        GST_ALLOCATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
78317        else
78318	        GST_ALLOCATORS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
78319        fi
78320	# Put the nasty error message in config.log where it belongs
78321	echo "$GST_ALLOCATORS_PKG_ERRORS" >&5
78322
78323	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78324$as_echo "no" >&6; }
78325
78326      HAVE_GST_ALLOCATORS="no"
78327      if test "x$required" = "xyes"; then
78328        as_fn_error $? "$GST_ALLOCATORS_PKG_ERRORS" "$LINENO" 5
78329      else
78330        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_ALLOCATORS_PKG_ERRORS" >&5
78331$as_echo "$as_me: $GST_ALLOCATORS_PKG_ERRORS" >&6;}
78332      fi
78333
78334elif test $pkg_failed = untried; then
78335
78336      HAVE_GST_ALLOCATORS="no"
78337      if test "x$required" = "xyes"; then
78338        as_fn_error $? "$GST_ALLOCATORS_PKG_ERRORS" "$LINENO" 5
78339      else
78340        { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_ALLOCATORS_PKG_ERRORS" >&5
78341$as_echo "$as_me: $GST_ALLOCATORS_PKG_ERRORS" >&6;}
78342      fi
78343
78344else
78345	GST_ALLOCATORS_CFLAGS=$pkg_cv_GST_ALLOCATORS_CFLAGS
78346	GST_ALLOCATORS_LIBS=$pkg_cv_GST_ALLOCATORS_LIBS
78347        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78348$as_echo "yes" >&6; }
78349
78350      HAVE_GST_ALLOCATORS="yes"
78351
78352fi
78353
78354
78355
78356pkg_failed=no
78357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KMS_DRM" >&5
78358$as_echo_n "checking for KMS_DRM... " >&6; }
78359
78360if test -n "$PKG_CONFIG"; then
78361    if test -n "$KMS_DRM_CFLAGS"; then
78362        pkg_cv_KMS_DRM_CFLAGS="$KMS_DRM_CFLAGS"
78363    else
78364        if test -n "$PKG_CONFIG" && \
78365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.55\""; } >&5
78366  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.55") 2>&5
78367  ac_status=$?
78368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78369  test $ac_status = 0; }; then
78370  pkg_cv_KMS_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.55" 2>/dev/null`
78371else
78372  pkg_failed=yes
78373fi
78374    fi
78375else
78376	pkg_failed=untried
78377fi
78378if test -n "$PKG_CONFIG"; then
78379    if test -n "$KMS_DRM_LIBS"; then
78380        pkg_cv_KMS_DRM_LIBS="$KMS_DRM_LIBS"
78381    else
78382        if test -n "$PKG_CONFIG" && \
78383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.55\""; } >&5
78384  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.55") 2>&5
78385  ac_status=$?
78386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78387  test $ac_status = 0; }; then
78388  pkg_cv_KMS_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.55" 2>/dev/null`
78389else
78390  pkg_failed=yes
78391fi
78392    fi
78393else
78394	pkg_failed=untried
78395fi
78396
78397
78398
78399if test $pkg_failed = yes; then
78400
78401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78402        _pkg_short_errors_supported=yes
78403else
78404        _pkg_short_errors_supported=no
78405fi
78406        if test $_pkg_short_errors_supported = yes; then
78407	        KMS_DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.4.55"`
78408        else
78409	        KMS_DRM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.4.55"`
78410        fi
78411	# Put the nasty error message in config.log where it belongs
78412	echo "$KMS_DRM_PKG_ERRORS" >&5
78413
78414	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78415$as_echo "no" >&6; }
78416                HAVE_KMS=no
78417elif test $pkg_failed = untried; then
78418	HAVE_KMS=no
78419else
78420	KMS_DRM_CFLAGS=$pkg_cv_KMS_DRM_CFLAGS
78421	KMS_DRM_LIBS=$pkg_cv_KMS_DRM_LIBS
78422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78423$as_echo "yes" >&6; }
78424	HAVE_KMS=yes
78425fi
78426
78427
78428  LIBS=$gst_check_save_LIBS
78429  LDFLAGS=$gst_check_save_LDFLAGS
78430  CFLAGS=$gst_check_save_CFLAGS
78431  CPPFLAGS=$gst_check_save_CPPFLAGS
78432  CXXFLAGS=$gst_check_save_CXXFLAGS
78433
78434    if test x$HAVE_KMS = xno; then
78435    USE_KMS=no
78436  else
78437    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: kms" >&5
78438$as_echo "$as_me: *** These plugins will be built: kms" >&6;}
78439  fi
78440fi
78441if test x$USE_KMS = xyes; then
78442  :
78443  if test "xkms" != "x"; then
78444    GST_PLUGINS_YES="\tkms\n$GST_PLUGINS_YES"
78445  fi
78446
78447$as_echo "#define HAVE_KMS /**/" >>confdefs.h
78448
78449else
78450  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: kms" >&5
78451$as_echo "$as_me: *** These plugins will not be built: kms" >&6;}
78452  if test "xkms" != "x"; then
78453    GST_PLUGINS_NO="\tkms\n$GST_PLUGINS_NO"
78454  fi
78455  :
78456fi
78457 if test x$USE_KMS = xyes; then
78458  USE_KMS_TRUE=
78459  USE_KMS_FALSE='#'
78460else
78461  USE_KMS_TRUE='#'
78462  USE_KMS_FALSE=
78463fi
78464
78465
78466
78467echo
78468{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: ladspa ***" >&5
78469$as_echo "$as_me: *** checking feature: ladspa ***" >&6;}
78470if test "xladspa" != "x"
78471then
78472  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ladspa ***" >&5
78473$as_echo "$as_me: *** for plug-ins: ladspa ***" >&6;}
78474fi
78475NOUSE=
78476if test "x$USE_LADSPA" = "xno"; then
78477  NOUSE="yes"
78478fi
78479# Check whether --enable-ladspa was given.
78480if test "${enable_ladspa+set}" = set; then :
78481  enableval=$enable_ladspa;  case "${enableval}" in
78482      yes) USE_LADSPA=yes;;
78483      no) USE_LADSPA=no;;
78484      *) as_fn_error $? "bad value ${enableval} for --enable-ladspa" "$LINENO" 5 ;;
78485    esac
78486else
78487   USE_LADSPA=yes
78488fi
78489
78490if test "x$NOUSE" = "xyes"; then
78491  USE_LADSPA="no"
78492  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ladspa pre-configured not to be built" >&5
78493$as_echo "$as_me: WARNING: *** ladspa pre-configured not to be built" >&2;}
78494fi
78495NOUSE=
78496
78497if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LADSPA " > /dev/null; then
78498  USE_LADSPA="no"
78499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ladspa not ported" >&5
78500$as_echo "$as_me: WARNING: *** ladspa not ported" >&2;}
78501fi
78502
78503
78504if test x$USE_LADSPA = xyes; then
78505
78506  gst_check_save_LIBS=$LIBS
78507  gst_check_save_LDFLAGS=$LDFLAGS
78508  gst_check_save_CFLAGS=$CFLAGS
78509  gst_check_save_CPPFLAGS=$CPPFLAGS
78510  gst_check_save_CXXFLAGS=$CXXFLAGS
78511
78512  HAVE_LADSPA=no
78513
78514  ac_fn_c_check_header_mongrel "$LINENO" "ladspa.h" "ac_cv_header_ladspa_h" "$ac_includes_default"
78515if test "x$ac_cv_header_ladspa_h" = xyes; then :
78516  HAVE_LADSPA="yes"
78517else
78518  HAVE_LADSPA="no"
78519fi
78520
78521
78522
78523
78524pkg_failed=no
78525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LRDF" >&5
78526$as_echo_n "checking for LRDF... " >&6; }
78527
78528if test -n "$PKG_CONFIG"; then
78529    if test -n "$LRDF_CFLAGS"; then
78530        pkg_cv_LRDF_CFLAGS="$LRDF_CFLAGS"
78531    else
78532        if test -n "$PKG_CONFIG" && \
78533    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lrdf\""; } >&5
78534  ($PKG_CONFIG --exists --print-errors "lrdf") 2>&5
78535  ac_status=$?
78536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78537  test $ac_status = 0; }; then
78538  pkg_cv_LRDF_CFLAGS=`$PKG_CONFIG --cflags "lrdf" 2>/dev/null`
78539else
78540  pkg_failed=yes
78541fi
78542    fi
78543else
78544	pkg_failed=untried
78545fi
78546if test -n "$PKG_CONFIG"; then
78547    if test -n "$LRDF_LIBS"; then
78548        pkg_cv_LRDF_LIBS="$LRDF_LIBS"
78549    else
78550        if test -n "$PKG_CONFIG" && \
78551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lrdf\""; } >&5
78552  ($PKG_CONFIG --exists --print-errors "lrdf") 2>&5
78553  ac_status=$?
78554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78555  test $ac_status = 0; }; then
78556  pkg_cv_LRDF_LIBS=`$PKG_CONFIG --libs "lrdf" 2>/dev/null`
78557else
78558  pkg_failed=yes
78559fi
78560    fi
78561else
78562	pkg_failed=untried
78563fi
78564
78565
78566
78567if test $pkg_failed = yes; then
78568
78569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78570        _pkg_short_errors_supported=yes
78571else
78572        _pkg_short_errors_supported=no
78573fi
78574        if test $_pkg_short_errors_supported = yes; then
78575	        LRDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lrdf"`
78576        else
78577	        LRDF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lrdf"`
78578        fi
78579	# Put the nasty error message in config.log where it belongs
78580	echo "$LRDF_PKG_ERRORS" >&5
78581
78582	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78583$as_echo "no" >&6; }
78584                HAVE_LRDF=no
78585elif test $pkg_failed = untried; then
78586	HAVE_LRDF=no
78587else
78588	LRDF_CFLAGS=$pkg_cv_LRDF_CFLAGS
78589	LRDF_LIBS=$pkg_cv_LRDF_LIBS
78590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78591$as_echo "yes" >&6; }
78592	HAVE_LRDF=yes
78593fi
78594  if test $HAVE_LRDF = "yes"; then
78595
78596$as_echo "#define HAVE_LRDF 1" >>confdefs.h
78597
78598  fi
78599
78600
78601
78602
78603  LIBS=$gst_check_save_LIBS
78604  LDFLAGS=$gst_check_save_LDFLAGS
78605  CFLAGS=$gst_check_save_CFLAGS
78606  CPPFLAGS=$gst_check_save_CPPFLAGS
78607  CXXFLAGS=$gst_check_save_CXXFLAGS
78608
78609    if test x$HAVE_LADSPA = xno; then
78610    USE_LADSPA=no
78611  else
78612    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ladspa" >&5
78613$as_echo "$as_me: *** These plugins will be built: ladspa" >&6;}
78614  fi
78615fi
78616if test x$USE_LADSPA = xyes; then
78617  :
78618  if test "xladspa" != "x"; then
78619    GST_PLUGINS_YES="\tladspa\n$GST_PLUGINS_YES"
78620  fi
78621
78622$as_echo "#define HAVE_LADSPA /**/" >>confdefs.h
78623
78624else
78625  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ladspa" >&5
78626$as_echo "$as_me: *** These plugins will not be built: ladspa" >&6;}
78627  if test "xladspa" != "x"; then
78628    GST_PLUGINS_NO="\tladspa\n$GST_PLUGINS_NO"
78629  fi
78630  :
78631fi
78632 if test x$USE_LADSPA = xyes; then
78633  USE_LADSPA_TRUE=
78634  USE_LADSPA_FALSE='#'
78635else
78636  USE_LADSPA_TRUE='#'
78637  USE_LADSPA_FALSE=
78638fi
78639
78640
78641
78642#translit(dnm, m, l) AM_CONDITIONAL(USE_LCMS2, true)
78643echo
78644{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: LCMS colormanagement plugin ***" >&5
78645$as_echo "$as_me: *** checking feature: LCMS colormanagement plugin ***" >&6;}
78646if test "xlcms2" != "x"
78647then
78648  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: lcms2 ***" >&5
78649$as_echo "$as_me: *** for plug-ins: lcms2 ***" >&6;}
78650fi
78651NOUSE=
78652if test "x$USE_LCMS2" = "xno"; then
78653  NOUSE="yes"
78654fi
78655# Check whether --enable-lcms2 was given.
78656if test "${enable_lcms2+set}" = set; then :
78657  enableval=$enable_lcms2;  case "${enableval}" in
78658      yes) USE_LCMS2=yes;;
78659      no) USE_LCMS2=no;;
78660      *) as_fn_error $? "bad value ${enableval} for --enable-lcms2" "$LINENO" 5 ;;
78661    esac
78662else
78663   USE_LCMS2=yes
78664fi
78665
78666if test "x$NOUSE" = "xyes"; then
78667  USE_LCMS2="no"
78668  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lcms2 pre-configured not to be built" >&5
78669$as_echo "$as_me: WARNING: *** lcms2 pre-configured not to be built" >&2;}
78670fi
78671NOUSE=
78672
78673if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LCMS2 " > /dev/null; then
78674  USE_LCMS2="no"
78675  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lcms2 not ported" >&5
78676$as_echo "$as_me: WARNING: *** lcms2 not ported" >&2;}
78677fi
78678
78679
78680if test x$USE_LCMS2 = xyes; then
78681
78682  gst_check_save_LIBS=$LIBS
78683  gst_check_save_LDFLAGS=$LDFLAGS
78684  gst_check_save_CFLAGS=$CFLAGS
78685  gst_check_save_CPPFLAGS=$CPPFLAGS
78686  gst_check_save_CXXFLAGS=$CXXFLAGS
78687
78688  HAVE_LCMS2=no
78689
78690
78691pkg_failed=no
78692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
78693$as_echo_n "checking for LCMS2... " >&6; }
78694
78695if test -n "$PKG_CONFIG"; then
78696    if test -n "$LCMS2_CFLAGS"; then
78697        pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
78698    else
78699        if test -n "$PKG_CONFIG" && \
78700    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.7\""; } >&5
78701  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.7") 2>&5
78702  ac_status=$?
78703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78704  test $ac_status = 0; }; then
78705  pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.7" 2>/dev/null`
78706else
78707  pkg_failed=yes
78708fi
78709    fi
78710else
78711	pkg_failed=untried
78712fi
78713if test -n "$PKG_CONFIG"; then
78714    if test -n "$LCMS2_LIBS"; then
78715        pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
78716    else
78717        if test -n "$PKG_CONFIG" && \
78718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.7\""; } >&5
78719  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.7") 2>&5
78720  ac_status=$?
78721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78722  test $ac_status = 0; }; then
78723  pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.7" 2>/dev/null`
78724else
78725  pkg_failed=yes
78726fi
78727    fi
78728else
78729	pkg_failed=untried
78730fi
78731
78732
78733
78734if test $pkg_failed = yes; then
78735
78736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78737        _pkg_short_errors_supported=yes
78738else
78739        _pkg_short_errors_supported=no
78740fi
78741        if test $_pkg_short_errors_supported = yes; then
78742	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lcms2 >= 2.7"`
78743        else
78744	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lcms2 >= 2.7"`
78745        fi
78746	# Put the nasty error message in config.log where it belongs
78747	echo "$LCMS2_PKG_ERRORS" >&5
78748
78749	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78750$as_echo "no" >&6; }
78751
78752    HAVE_LCMS2="no"
78753
78754elif test $pkg_failed = untried; then
78755
78756    HAVE_LCMS2="no"
78757
78758else
78759	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
78760	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
78761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78762$as_echo "yes" >&6; }
78763	HAVE_LCMS2="yes"
78764fi
78765
78766
78767
78768  LIBS=$gst_check_save_LIBS
78769  LDFLAGS=$gst_check_save_LDFLAGS
78770  CFLAGS=$gst_check_save_CFLAGS
78771  CPPFLAGS=$gst_check_save_CPPFLAGS
78772  CXXFLAGS=$gst_check_save_CXXFLAGS
78773
78774    if test x$HAVE_LCMS2 = xno; then
78775    USE_LCMS2=no
78776  else
78777    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: lcms2" >&5
78778$as_echo "$as_me: *** These plugins will be built: lcms2" >&6;}
78779  fi
78780fi
78781if test x$USE_LCMS2 = xyes; then
78782  :
78783  if test "xlcms2" != "x"; then
78784    GST_PLUGINS_YES="\tlcms2\n$GST_PLUGINS_YES"
78785  fi
78786
78787$as_echo "#define HAVE_LCMS2 /**/" >>confdefs.h
78788
78789else
78790  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: lcms2" >&5
78791$as_echo "$as_me: *** These plugins will not be built: lcms2" >&6;}
78792  if test "xlcms2" != "x"; then
78793    GST_PLUGINS_NO="\tlcms2\n$GST_PLUGINS_NO"
78794  fi
78795  :
78796fi
78797 if test x$USE_LCMS2 = xyes; then
78798  USE_LCMS2_TRUE=
78799  USE_LCMS2_FALSE='#'
78800else
78801  USE_LCMS2_TRUE='#'
78802  USE_LCMS2_FALSE=
78803fi
78804
78805
78806
78807echo
78808{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: lv2 ***" >&5
78809$as_echo "$as_me: *** checking feature: lv2 ***" >&6;}
78810if test "xlv2" != "x"
78811then
78812  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: lv2 ***" >&5
78813$as_echo "$as_me: *** for plug-ins: lv2 ***" >&6;}
78814fi
78815NOUSE=
78816if test "x$USE_LV2" = "xno"; then
78817  NOUSE="yes"
78818fi
78819# Check whether --enable-lv2 was given.
78820if test "${enable_lv2+set}" = set; then :
78821  enableval=$enable_lv2;  case "${enableval}" in
78822      yes) USE_LV2=yes;;
78823      no) USE_LV2=no;;
78824      *) as_fn_error $? "bad value ${enableval} for --enable-lv2" "$LINENO" 5 ;;
78825    esac
78826else
78827   USE_LV2=yes
78828fi
78829
78830if test "x$NOUSE" = "xyes"; then
78831  USE_LV2="no"
78832  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lv2 pre-configured not to be built" >&5
78833$as_echo "$as_me: WARNING: *** lv2 pre-configured not to be built" >&2;}
78834fi
78835NOUSE=
78836
78837if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LV2 " > /dev/null; then
78838  USE_LV2="no"
78839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** lv2 not ported" >&5
78840$as_echo "$as_me: WARNING: *** lv2 not ported" >&2;}
78841fi
78842
78843
78844if test x$USE_LV2 = xyes; then
78845
78846  gst_check_save_LIBS=$LIBS
78847  gst_check_save_LDFLAGS=$LDFLAGS
78848  gst_check_save_CFLAGS=$CFLAGS
78849  gst_check_save_CPPFLAGS=$CPPFLAGS
78850  gst_check_save_CXXFLAGS=$CXXFLAGS
78851
78852  HAVE_LV2=no
78853
78854
78855pkg_failed=no
78856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LILV" >&5
78857$as_echo_n "checking for LILV... " >&6; }
78858
78859if test -n "$PKG_CONFIG"; then
78860    if test -n "$LILV_CFLAGS"; then
78861        pkg_cv_LILV_CFLAGS="$LILV_CFLAGS"
78862    else
78863        if test -n "$PKG_CONFIG" && \
78864    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.22\""; } >&5
78865  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.22") 2>&5
78866  ac_status=$?
78867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78868  test $ac_status = 0; }; then
78869  pkg_cv_LILV_CFLAGS=`$PKG_CONFIG --cflags "lilv-0 >= 0.22" 2>/dev/null`
78870else
78871  pkg_failed=yes
78872fi
78873    fi
78874else
78875	pkg_failed=untried
78876fi
78877if test -n "$PKG_CONFIG"; then
78878    if test -n "$LILV_LIBS"; then
78879        pkg_cv_LILV_LIBS="$LILV_LIBS"
78880    else
78881        if test -n "$PKG_CONFIG" && \
78882    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.22\""; } >&5
78883  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.22") 2>&5
78884  ac_status=$?
78885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78886  test $ac_status = 0; }; then
78887  pkg_cv_LILV_LIBS=`$PKG_CONFIG --libs "lilv-0 >= 0.22" 2>/dev/null`
78888else
78889  pkg_failed=yes
78890fi
78891    fi
78892else
78893	pkg_failed=untried
78894fi
78895
78896
78897
78898if test $pkg_failed = yes; then
78899
78900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78901        _pkg_short_errors_supported=yes
78902else
78903        _pkg_short_errors_supported=no
78904fi
78905        if test $_pkg_short_errors_supported = yes; then
78906	        LILV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lilv-0 >= 0.22"`
78907        else
78908	        LILV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lilv-0 >= 0.22"`
78909        fi
78910	# Put the nasty error message in config.log where it belongs
78911	echo "$LILV_PKG_ERRORS" >&5
78912
78913	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78914$as_echo "no" >&6; }
78915
78916
78917pkg_failed=no
78918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LILV" >&5
78919$as_echo_n "checking for LILV... " >&6; }
78920
78921if test -n "$PKG_CONFIG"; then
78922    if test -n "$LILV_CFLAGS"; then
78923        pkg_cv_LILV_CFLAGS="$LILV_CFLAGS"
78924    else
78925        if test -n "$PKG_CONFIG" && \
78926    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.16\""; } >&5
78927  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.16") 2>&5
78928  ac_status=$?
78929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78930  test $ac_status = 0; }; then
78931  pkg_cv_LILV_CFLAGS=`$PKG_CONFIG --cflags "lilv-0 >= 0.16" 2>/dev/null`
78932else
78933  pkg_failed=yes
78934fi
78935    fi
78936else
78937	pkg_failed=untried
78938fi
78939if test -n "$PKG_CONFIG"; then
78940    if test -n "$LILV_LIBS"; then
78941        pkg_cv_LILV_LIBS="$LILV_LIBS"
78942    else
78943        if test -n "$PKG_CONFIG" && \
78944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.16\""; } >&5
78945  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.16") 2>&5
78946  ac_status=$?
78947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
78948  test $ac_status = 0; }; then
78949  pkg_cv_LILV_LIBS=`$PKG_CONFIG --libs "lilv-0 >= 0.16" 2>/dev/null`
78950else
78951  pkg_failed=yes
78952fi
78953    fi
78954else
78955	pkg_failed=untried
78956fi
78957
78958
78959
78960if test $pkg_failed = yes; then
78961
78962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
78963        _pkg_short_errors_supported=yes
78964else
78965        _pkg_short_errors_supported=no
78966fi
78967        if test $_pkg_short_errors_supported = yes; then
78968	        LILV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lilv-0 >= 0.16"`
78969        else
78970	        LILV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lilv-0 >= 0.16"`
78971        fi
78972	# Put the nasty error message in config.log where it belongs
78973	echo "$LILV_PKG_ERRORS" >&5
78974
78975	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
78976$as_echo "no" >&6; }
78977                HAVE_LV2="no"
78978elif test $pkg_failed = untried; then
78979	HAVE_LV2="no"
78980else
78981	LILV_CFLAGS=$pkg_cv_LILV_CFLAGS
78982	LILV_LIBS=$pkg_cv_LILV_LIBS
78983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
78984$as_echo "yes" >&6; }
78985	HAVE_LV2="yes"
78986fi
78987
78988elif test $pkg_failed = untried; then
78989
78990
78991pkg_failed=no
78992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LILV" >&5
78993$as_echo_n "checking for LILV... " >&6; }
78994
78995if test -n "$PKG_CONFIG"; then
78996    if test -n "$LILV_CFLAGS"; then
78997        pkg_cv_LILV_CFLAGS="$LILV_CFLAGS"
78998    else
78999        if test -n "$PKG_CONFIG" && \
79000    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.16\""; } >&5
79001  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.16") 2>&5
79002  ac_status=$?
79003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79004  test $ac_status = 0; }; then
79005  pkg_cv_LILV_CFLAGS=`$PKG_CONFIG --cflags "lilv-0 >= 0.16" 2>/dev/null`
79006else
79007  pkg_failed=yes
79008fi
79009    fi
79010else
79011	pkg_failed=untried
79012fi
79013if test -n "$PKG_CONFIG"; then
79014    if test -n "$LILV_LIBS"; then
79015        pkg_cv_LILV_LIBS="$LILV_LIBS"
79016    else
79017        if test -n "$PKG_CONFIG" && \
79018    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lilv-0 >= 0.16\""; } >&5
79019  ($PKG_CONFIG --exists --print-errors "lilv-0 >= 0.16") 2>&5
79020  ac_status=$?
79021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79022  test $ac_status = 0; }; then
79023  pkg_cv_LILV_LIBS=`$PKG_CONFIG --libs "lilv-0 >= 0.16" 2>/dev/null`
79024else
79025  pkg_failed=yes
79026fi
79027    fi
79028else
79029	pkg_failed=untried
79030fi
79031
79032
79033
79034if test $pkg_failed = yes; then
79035
79036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79037        _pkg_short_errors_supported=yes
79038else
79039        _pkg_short_errors_supported=no
79040fi
79041        if test $_pkg_short_errors_supported = yes; then
79042	        LILV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lilv-0 >= 0.16"`
79043        else
79044	        LILV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lilv-0 >= 0.16"`
79045        fi
79046	# Put the nasty error message in config.log where it belongs
79047	echo "$LILV_PKG_ERRORS" >&5
79048
79049	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79050$as_echo "no" >&6; }
79051                HAVE_LV2="no"
79052elif test $pkg_failed = untried; then
79053	HAVE_LV2="no"
79054else
79055	LILV_CFLAGS=$pkg_cv_LILV_CFLAGS
79056	LILV_LIBS=$pkg_cv_LILV_LIBS
79057        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79058$as_echo "yes" >&6; }
79059	HAVE_LV2="yes"
79060fi
79061
79062else
79063	LILV_CFLAGS=$pkg_cv_LILV_CFLAGS
79064	LILV_LIBS=$pkg_cv_LILV_LIBS
79065        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79066$as_echo "yes" >&6; }
79067
79068    HAVE_LV2="yes",
79069    HAVE_LILV_0_22="yes"
79070
79071$as_echo "#define HAVE_LILV_0_22 1" >>confdefs.h
79072
79073
79074fi
79075
79076
79077
79078
79079  LIBS=$gst_check_save_LIBS
79080  LDFLAGS=$gst_check_save_LDFLAGS
79081  CFLAGS=$gst_check_save_CFLAGS
79082  CPPFLAGS=$gst_check_save_CPPFLAGS
79083  CXXFLAGS=$gst_check_save_CXXFLAGS
79084
79085    if test x$HAVE_LV2 = xno; then
79086    USE_LV2=no
79087  else
79088    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: lv2" >&5
79089$as_echo "$as_me: *** These plugins will be built: lv2" >&6;}
79090  fi
79091fi
79092if test x$USE_LV2 = xyes; then
79093  :
79094  if test "xlv2" != "x"; then
79095    GST_PLUGINS_YES="\tlv2\n$GST_PLUGINS_YES"
79096  fi
79097
79098$as_echo "#define HAVE_LV2 /**/" >>confdefs.h
79099
79100else
79101  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: lv2" >&5
79102$as_echo "$as_me: *** These plugins will not be built: lv2" >&6;}
79103  if test "xlv2" != "x"; then
79104    GST_PLUGINS_NO="\tlv2\n$GST_PLUGINS_NO"
79105  fi
79106  :
79107fi
79108 if test x$USE_LV2 = xyes; then
79109  USE_LV2_TRUE=
79110  USE_LV2_FALSE='#'
79111else
79112  USE_LV2_TRUE='#'
79113  USE_LV2_FALSE=
79114fi
79115
79116
79117
79118echo
79119{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: libde265 HEVC/H.265 decoder ***" >&5
79120$as_echo "$as_me: *** checking feature: libde265 HEVC/H.265 decoder ***" >&6;}
79121if test "xlibde265" != "x"
79122then
79123  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: libde265 ***" >&5
79124$as_echo "$as_me: *** for plug-ins: libde265 ***" >&6;}
79125fi
79126NOUSE=
79127if test "x$USE_LIBDE265" = "xno"; then
79128  NOUSE="yes"
79129fi
79130# Check whether --enable-libde265 was given.
79131if test "${enable_libde265+set}" = set; then :
79132  enableval=$enable_libde265;  case "${enableval}" in
79133      yes) USE_LIBDE265=yes;;
79134      no) USE_LIBDE265=no;;
79135      *) as_fn_error $? "bad value ${enableval} for --enable-libde265" "$LINENO" 5 ;;
79136    esac
79137else
79138   USE_LIBDE265=yes
79139fi
79140
79141if test "x$NOUSE" = "xyes"; then
79142  USE_LIBDE265="no"
79143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libde265 pre-configured not to be built" >&5
79144$as_echo "$as_me: WARNING: *** libde265 pre-configured not to be built" >&2;}
79145fi
79146NOUSE=
79147
79148if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LIBDE265 " > /dev/null; then
79149  USE_LIBDE265="no"
79150  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libde265 not ported" >&5
79151$as_echo "$as_me: WARNING: *** libde265 not ported" >&2;}
79152fi
79153
79154
79155if test x$USE_LIBDE265 = xyes; then
79156
79157  gst_check_save_LIBS=$LIBS
79158  gst_check_save_LDFLAGS=$LDFLAGS
79159  gst_check_save_CFLAGS=$CFLAGS
79160  gst_check_save_CPPFLAGS=$CPPFLAGS
79161  gst_check_save_CXXFLAGS=$CXXFLAGS
79162
79163  HAVE_LIBDE265=no
79164
79165
79166pkg_failed=no
79167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDE265" >&5
79168$as_echo_n "checking for LIBDE265... " >&6; }
79169
79170if test -n "$PKG_CONFIG"; then
79171    if test -n "$LIBDE265_CFLAGS"; then
79172        pkg_cv_LIBDE265_CFLAGS="$LIBDE265_CFLAGS"
79173    else
79174        if test -n "$PKG_CONFIG" && \
79175    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libde265 >= 0.9\""; } >&5
79176  ($PKG_CONFIG --exists --print-errors "libde265 >= 0.9") 2>&5
79177  ac_status=$?
79178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79179  test $ac_status = 0; }; then
79180  pkg_cv_LIBDE265_CFLAGS=`$PKG_CONFIG --cflags "libde265 >= 0.9" 2>/dev/null`
79181else
79182  pkg_failed=yes
79183fi
79184    fi
79185else
79186	pkg_failed=untried
79187fi
79188if test -n "$PKG_CONFIG"; then
79189    if test -n "$LIBDE265_LIBS"; then
79190        pkg_cv_LIBDE265_LIBS="$LIBDE265_LIBS"
79191    else
79192        if test -n "$PKG_CONFIG" && \
79193    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libde265 >= 0.9\""; } >&5
79194  ($PKG_CONFIG --exists --print-errors "libde265 >= 0.9") 2>&5
79195  ac_status=$?
79196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79197  test $ac_status = 0; }; then
79198  pkg_cv_LIBDE265_LIBS=`$PKG_CONFIG --libs "libde265 >= 0.9" 2>/dev/null`
79199else
79200  pkg_failed=yes
79201fi
79202    fi
79203else
79204	pkg_failed=untried
79205fi
79206
79207
79208
79209if test $pkg_failed = yes; then
79210
79211if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79212        _pkg_short_errors_supported=yes
79213else
79214        _pkg_short_errors_supported=no
79215fi
79216        if test $_pkg_short_errors_supported = yes; then
79217	        LIBDE265_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libde265 >= 0.9"`
79218        else
79219	        LIBDE265_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libde265 >= 0.9"`
79220        fi
79221	# Put the nasty error message in config.log where it belongs
79222	echo "$LIBDE265_PKG_ERRORS" >&5
79223
79224	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79225$as_echo "no" >&6; }
79226                HAVE_LIBDE265="no"
79227elif test $pkg_failed = untried; then
79228	HAVE_LIBDE265="no"
79229else
79230	LIBDE265_CFLAGS=$pkg_cv_LIBDE265_CFLAGS
79231	LIBDE265_LIBS=$pkg_cv_LIBDE265_LIBS
79232        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79233$as_echo "yes" >&6; }
79234	HAVE_LIBDE265="yes"
79235fi
79236
79237
79238
79239
79240  LIBS=$gst_check_save_LIBS
79241  LDFLAGS=$gst_check_save_LDFLAGS
79242  CFLAGS=$gst_check_save_CFLAGS
79243  CPPFLAGS=$gst_check_save_CPPFLAGS
79244  CXXFLAGS=$gst_check_save_CXXFLAGS
79245
79246    if test x$HAVE_LIBDE265 = xno; then
79247    USE_LIBDE265=no
79248  else
79249    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: libde265" >&5
79250$as_echo "$as_me: *** These plugins will be built: libde265" >&6;}
79251  fi
79252fi
79253if test x$USE_LIBDE265 = xyes; then
79254  :
79255  if test "xlibde265" != "x"; then
79256    GST_PLUGINS_YES="\tlibde265\n$GST_PLUGINS_YES"
79257  fi
79258
79259$as_echo "#define HAVE_LIBDE265 /**/" >>confdefs.h
79260
79261else
79262  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: libde265" >&5
79263$as_echo "$as_me: *** These plugins will not be built: libde265" >&6;}
79264  if test "xlibde265" != "x"; then
79265    GST_PLUGINS_NO="\tlibde265\n$GST_PLUGINS_NO"
79266  fi
79267  :
79268fi
79269 if test x$USE_LIBDE265 = xyes; then
79270  USE_LIBDE265_TRUE=
79271  USE_LIBDE265_FALSE='#'
79272else
79273  USE_LIBDE265_TRUE='#'
79274  USE_LIBDE265_FALSE=
79275fi
79276
79277
79278
79279echo
79280{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: mms protocol library ***" >&5
79281$as_echo "$as_me: *** checking feature: mms protocol library ***" >&6;}
79282if test "xlibmms" != "x"
79283then
79284  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: libmms ***" >&5
79285$as_echo "$as_me: *** for plug-ins: libmms ***" >&6;}
79286fi
79287NOUSE=
79288if test "x$USE_LIBMMS" = "xno"; then
79289  NOUSE="yes"
79290fi
79291# Check whether --enable-libmms was given.
79292if test "${enable_libmms+set}" = set; then :
79293  enableval=$enable_libmms;  case "${enableval}" in
79294      yes) USE_LIBMMS=yes;;
79295      no) USE_LIBMMS=no;;
79296      *) as_fn_error $? "bad value ${enableval} for --enable-libmms" "$LINENO" 5 ;;
79297    esac
79298else
79299   USE_LIBMMS=yes
79300fi
79301
79302if test "x$NOUSE" = "xyes"; then
79303  USE_LIBMMS="no"
79304  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libmms pre-configured not to be built" >&5
79305$as_echo "$as_me: WARNING: *** libmms pre-configured not to be built" >&2;}
79306fi
79307NOUSE=
79308
79309if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " LIBMMS " > /dev/null; then
79310  USE_LIBMMS="no"
79311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libmms not ported" >&5
79312$as_echo "$as_me: WARNING: *** libmms not ported" >&2;}
79313fi
79314
79315
79316if test x$USE_LIBMMS = xyes; then
79317
79318  gst_check_save_LIBS=$LIBS
79319  gst_check_save_LDFLAGS=$LDFLAGS
79320  gst_check_save_CFLAGS=$CFLAGS
79321  gst_check_save_CPPFLAGS=$CPPFLAGS
79322  gst_check_save_CXXFLAGS=$CXXFLAGS
79323
79324  HAVE_LIBMMS=no
79325
79326
79327pkg_failed=no
79328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMMS" >&5
79329$as_echo_n "checking for LIBMMS... " >&6; }
79330
79331if test -n "$PKG_CONFIG"; then
79332    if test -n "$LIBMMS_CFLAGS"; then
79333        pkg_cv_LIBMMS_CFLAGS="$LIBMMS_CFLAGS"
79334    else
79335        if test -n "$PKG_CONFIG" && \
79336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmms >= 0.4\""; } >&5
79337  ($PKG_CONFIG --exists --print-errors "libmms >= 0.4") 2>&5
79338  ac_status=$?
79339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79340  test $ac_status = 0; }; then
79341  pkg_cv_LIBMMS_CFLAGS=`$PKG_CONFIG --cflags "libmms >= 0.4" 2>/dev/null`
79342else
79343  pkg_failed=yes
79344fi
79345    fi
79346else
79347	pkg_failed=untried
79348fi
79349if test -n "$PKG_CONFIG"; then
79350    if test -n "$LIBMMS_LIBS"; then
79351        pkg_cv_LIBMMS_LIBS="$LIBMMS_LIBS"
79352    else
79353        if test -n "$PKG_CONFIG" && \
79354    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmms >= 0.4\""; } >&5
79355  ($PKG_CONFIG --exists --print-errors "libmms >= 0.4") 2>&5
79356  ac_status=$?
79357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79358  test $ac_status = 0; }; then
79359  pkg_cv_LIBMMS_LIBS=`$PKG_CONFIG --libs "libmms >= 0.4" 2>/dev/null`
79360else
79361  pkg_failed=yes
79362fi
79363    fi
79364else
79365	pkg_failed=untried
79366fi
79367
79368
79369
79370if test $pkg_failed = yes; then
79371
79372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79373        _pkg_short_errors_supported=yes
79374else
79375        _pkg_short_errors_supported=no
79376fi
79377        if test $_pkg_short_errors_supported = yes; then
79378	        LIBMMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmms >= 0.4"`
79379        else
79380	        LIBMMS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmms >= 0.4"`
79381        fi
79382	# Put the nasty error message in config.log where it belongs
79383	echo "$LIBMMS_PKG_ERRORS" >&5
79384
79385	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79386$as_echo "no" >&6; }
79387
79388    HAVE_LIBMMS="no"
79389
79390elif test $pkg_failed = untried; then
79391
79392    HAVE_LIBMMS="no"
79393
79394else
79395	LIBMMS_CFLAGS=$pkg_cv_LIBMMS_CFLAGS
79396	LIBMMS_LIBS=$pkg_cv_LIBMMS_LIBS
79397        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79398$as_echo "yes" >&6; }
79399	HAVE_LIBMMS="yes"
79400fi
79401
79402
79403  LIBS=$gst_check_save_LIBS
79404  LDFLAGS=$gst_check_save_LDFLAGS
79405  CFLAGS=$gst_check_save_CFLAGS
79406  CPPFLAGS=$gst_check_save_CPPFLAGS
79407  CXXFLAGS=$gst_check_save_CXXFLAGS
79408
79409    if test x$HAVE_LIBMMS = xno; then
79410    USE_LIBMMS=no
79411  else
79412    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: libmms" >&5
79413$as_echo "$as_me: *** These plugins will be built: libmms" >&6;}
79414  fi
79415fi
79416if test x$USE_LIBMMS = xyes; then
79417  :
79418  if test "xlibmms" != "x"; then
79419    GST_PLUGINS_YES="\tlibmms\n$GST_PLUGINS_YES"
79420  fi
79421
79422$as_echo "#define HAVE_LIBMMS /**/" >>confdefs.h
79423
79424else
79425  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: libmms" >&5
79426$as_echo "$as_me: *** These plugins will not be built: libmms" >&6;}
79427  if test "xlibmms" != "x"; then
79428    GST_PLUGINS_NO="\tlibmms\n$GST_PLUGINS_NO"
79429  fi
79430  :
79431fi
79432 if test x$USE_LIBMMS = xyes; then
79433  USE_LIBMMS_TRUE=
79434  USE_LIBMMS_FALSE='#'
79435else
79436  USE_LIBMMS_TRUE='#'
79437  USE_LIBMMS_FALSE=
79438fi
79439
79440
79441
79442
79443echo
79444{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: srt library ***" >&5
79445$as_echo "$as_me: *** checking feature: srt library ***" >&6;}
79446if test "xsrt" != "x"
79447then
79448  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: srt ***" >&5
79449$as_echo "$as_me: *** for plug-ins: srt ***" >&6;}
79450fi
79451NOUSE=
79452if test "x$USE_SRT" = "xno"; then
79453  NOUSE="yes"
79454fi
79455# Check whether --enable-srt was given.
79456if test "${enable_srt+set}" = set; then :
79457  enableval=$enable_srt;  case "${enableval}" in
79458      yes) USE_SRT=yes;;
79459      no) USE_SRT=no;;
79460      *) as_fn_error $? "bad value ${enableval} for --enable-srt" "$LINENO" 5 ;;
79461    esac
79462else
79463   USE_SRT=yes
79464fi
79465
79466if test "x$NOUSE" = "xyes"; then
79467  USE_SRT="no"
79468  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** srt pre-configured not to be built" >&5
79469$as_echo "$as_me: WARNING: *** srt pre-configured not to be built" >&2;}
79470fi
79471NOUSE=
79472
79473if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SRT " > /dev/null; then
79474  USE_SRT="no"
79475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** srt not ported" >&5
79476$as_echo "$as_me: WARNING: *** srt not ported" >&2;}
79477fi
79478
79479
79480if test x$USE_SRT = xyes; then
79481
79482  gst_check_save_LIBS=$LIBS
79483  gst_check_save_LDFLAGS=$LDFLAGS
79484  gst_check_save_CFLAGS=$CFLAGS
79485  gst_check_save_CPPFLAGS=$CPPFLAGS
79486  gst_check_save_CXXFLAGS=$CXXFLAGS
79487
79488  HAVE_SRT=no
79489
79490
79491pkg_failed=no
79492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRT" >&5
79493$as_echo_n "checking for SRT... " >&6; }
79494
79495if test -n "$PKG_CONFIG"; then
79496    if test -n "$SRT_CFLAGS"; then
79497        pkg_cv_SRT_CFLAGS="$SRT_CFLAGS"
79498    else
79499        if test -n "$PKG_CONFIG" && \
79500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"srt\""; } >&5
79501  ($PKG_CONFIG --exists --print-errors "srt") 2>&5
79502  ac_status=$?
79503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79504  test $ac_status = 0; }; then
79505  pkg_cv_SRT_CFLAGS=`$PKG_CONFIG --cflags "srt" 2>/dev/null`
79506else
79507  pkg_failed=yes
79508fi
79509    fi
79510else
79511	pkg_failed=untried
79512fi
79513if test -n "$PKG_CONFIG"; then
79514    if test -n "$SRT_LIBS"; then
79515        pkg_cv_SRT_LIBS="$SRT_LIBS"
79516    else
79517        if test -n "$PKG_CONFIG" && \
79518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"srt\""; } >&5
79519  ($PKG_CONFIG --exists --print-errors "srt") 2>&5
79520  ac_status=$?
79521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79522  test $ac_status = 0; }; then
79523  pkg_cv_SRT_LIBS=`$PKG_CONFIG --libs "srt" 2>/dev/null`
79524else
79525  pkg_failed=yes
79526fi
79527    fi
79528else
79529	pkg_failed=untried
79530fi
79531
79532
79533
79534if test $pkg_failed = yes; then
79535
79536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79537        _pkg_short_errors_supported=yes
79538else
79539        _pkg_short_errors_supported=no
79540fi
79541        if test $_pkg_short_errors_supported = yes; then
79542	        SRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "srt"`
79543        else
79544	        SRT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "srt"`
79545        fi
79546	# Put the nasty error message in config.log where it belongs
79547	echo "$SRT_PKG_ERRORS" >&5
79548
79549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79550$as_echo "no" >&6; }
79551                HAVE_SRT=no
79552elif test $pkg_failed = untried; then
79553	HAVE_SRT=no
79554else
79555	SRT_CFLAGS=$pkg_cv_SRT_CFLAGS
79556	SRT_LIBS=$pkg_cv_SRT_LIBS
79557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79558$as_echo "yes" >&6; }
79559	HAVE_SRT="yes"
79560fi
79561
79562
79563
79564
79565  LIBS=$gst_check_save_LIBS
79566  LDFLAGS=$gst_check_save_LDFLAGS
79567  CFLAGS=$gst_check_save_CFLAGS
79568  CPPFLAGS=$gst_check_save_CPPFLAGS
79569  CXXFLAGS=$gst_check_save_CXXFLAGS
79570
79571    if test x$HAVE_SRT = xno; then
79572    USE_SRT=no
79573  else
79574    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: srt" >&5
79575$as_echo "$as_me: *** These plugins will be built: srt" >&6;}
79576  fi
79577fi
79578if test x$USE_SRT = xyes; then
79579  :
79580  if test "xsrt" != "x"; then
79581    GST_PLUGINS_YES="\tsrt\n$GST_PLUGINS_YES"
79582  fi
79583
79584$as_echo "#define HAVE_SRT /**/" >>confdefs.h
79585
79586else
79587  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: srt" >&5
79588$as_echo "$as_me: *** These plugins will not be built: srt" >&6;}
79589  if test "xsrt" != "x"; then
79590    GST_PLUGINS_NO="\tsrt\n$GST_PLUGINS_NO"
79591  fi
79592  :
79593fi
79594 if test x$USE_SRT = xyes; then
79595  USE_SRT_TRUE=
79596  USE_SRT_FALSE='#'
79597else
79598  USE_SRT_TRUE='#'
79599  USE_SRT_FALSE=
79600fi
79601
79602
79603
79604echo
79605{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: srtp library ***" >&5
79606$as_echo "$as_me: *** checking feature: srtp library ***" >&6;}
79607if test "xsrtp" != "x"
79608then
79609  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: srtp ***" >&5
79610$as_echo "$as_me: *** for plug-ins: srtp ***" >&6;}
79611fi
79612NOUSE=
79613if test "x$USE_SRTP" = "xno"; then
79614  NOUSE="yes"
79615fi
79616# Check whether --enable-srtp was given.
79617if test "${enable_srtp+set}" = set; then :
79618  enableval=$enable_srtp;  case "${enableval}" in
79619      yes) USE_SRTP=yes;;
79620      no) USE_SRTP=no;;
79621      *) as_fn_error $? "bad value ${enableval} for --enable-srtp" "$LINENO" 5 ;;
79622    esac
79623else
79624   USE_SRTP=yes
79625fi
79626
79627if test "x$NOUSE" = "xyes"; then
79628  USE_SRTP="no"
79629  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** srtp pre-configured not to be built" >&5
79630$as_echo "$as_me: WARNING: *** srtp pre-configured not to be built" >&2;}
79631fi
79632NOUSE=
79633
79634if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SRTP " > /dev/null; then
79635  USE_SRTP="no"
79636  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** srtp not ported" >&5
79637$as_echo "$as_me: WARNING: *** srtp not ported" >&2;}
79638fi
79639
79640
79641if test x$USE_SRTP = xyes; then
79642
79643  gst_check_save_LIBS=$LIBS
79644  gst_check_save_LDFLAGS=$LDFLAGS
79645  gst_check_save_CFLAGS=$CFLAGS
79646  gst_check_save_CPPFLAGS=$CPPFLAGS
79647  gst_check_save_CXXFLAGS=$CXXFLAGS
79648
79649  HAVE_SRTP=no
79650
79651  HAVE_SRTP="no"
79652
79653  which="libsrtp2 >= 2.1.0"
79654    required="no"
79655
79656
79657pkg_failed=no
79658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRTP" >&5
79659$as_echo_n "checking for SRTP... " >&6; }
79660
79661if test -n "$PKG_CONFIG"; then
79662    if test -n "$SRTP_CFLAGS"; then
79663        pkg_cv_SRTP_CFLAGS="$SRTP_CFLAGS"
79664    else
79665        if test -n "$PKG_CONFIG" && \
79666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
79667  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
79668  ac_status=$?
79669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79670  test $ac_status = 0; }; then
79671  pkg_cv_SRTP_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
79672else
79673  pkg_failed=yes
79674fi
79675    fi
79676else
79677	pkg_failed=untried
79678fi
79679if test -n "$PKG_CONFIG"; then
79680    if test -n "$SRTP_LIBS"; then
79681        pkg_cv_SRTP_LIBS="$SRTP_LIBS"
79682    else
79683        if test -n "$PKG_CONFIG" && \
79684    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
79685  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
79686  ac_status=$?
79687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79688  test $ac_status = 0; }; then
79689  pkg_cv_SRTP_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
79690else
79691  pkg_failed=yes
79692fi
79693    fi
79694else
79695	pkg_failed=untried
79696fi
79697
79698
79699
79700if test $pkg_failed = yes; then
79701
79702if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79703        _pkg_short_errors_supported=yes
79704else
79705        _pkg_short_errors_supported=no
79706fi
79707        if test $_pkg_short_errors_supported = yes; then
79708	        SRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
79709        else
79710	        SRTP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
79711        fi
79712	# Put the nasty error message in config.log where it belongs
79713	echo "$SRTP_PKG_ERRORS" >&5
79714
79715	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79716$as_echo "no" >&6; }
79717
79718      HAVE_SRTP="no"
79719      if test "x$required" = "xyes"; then
79720        as_fn_error $? "$SRTP_PKG_ERRORS" "$LINENO" 5
79721      else
79722        { $as_echo "$as_me:${as_lineno-$LINENO}: $SRTP_PKG_ERRORS" >&5
79723$as_echo "$as_me: $SRTP_PKG_ERRORS" >&6;}
79724      fi
79725
79726elif test $pkg_failed = untried; then
79727
79728      HAVE_SRTP="no"
79729      if test "x$required" = "xyes"; then
79730        as_fn_error $? "$SRTP_PKG_ERRORS" "$LINENO" 5
79731      else
79732        { $as_echo "$as_me:${as_lineno-$LINENO}: $SRTP_PKG_ERRORS" >&5
79733$as_echo "$as_me: $SRTP_PKG_ERRORS" >&6;}
79734      fi
79735
79736else
79737	SRTP_CFLAGS=$pkg_cv_SRTP_CFLAGS
79738	SRTP_LIBS=$pkg_cv_SRTP_LIBS
79739        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79740$as_echo "yes" >&6; }
79741
79742      HAVE_SRTP="yes"
79743
79744fi
79745
79746
79747  if test x"$HAVE_SRTP" = x"yes"; then
79748
79749$as_echo "#define HAVE_SRTP2 1" >>confdefs.h
79750
79751  else
79752
79753pkg_failed=no
79754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRTP" >&5
79755$as_echo_n "checking for SRTP... " >&6; }
79756
79757if test -n "$PKG_CONFIG"; then
79758    if test -n "$SRTP_CFLAGS"; then
79759        pkg_cv_SRTP_CFLAGS="$SRTP_CFLAGS"
79760    else
79761        if test -n "$PKG_CONFIG" && \
79762    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsrtp\""; } >&5
79763  ($PKG_CONFIG --exists --print-errors "libsrtp") 2>&5
79764  ac_status=$?
79765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79766  test $ac_status = 0; }; then
79767  pkg_cv_SRTP_CFLAGS=`$PKG_CONFIG --cflags "libsrtp" 2>/dev/null`
79768else
79769  pkg_failed=yes
79770fi
79771    fi
79772else
79773	pkg_failed=untried
79774fi
79775if test -n "$PKG_CONFIG"; then
79776    if test -n "$SRTP_LIBS"; then
79777        pkg_cv_SRTP_LIBS="$SRTP_LIBS"
79778    else
79779        if test -n "$PKG_CONFIG" && \
79780    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsrtp\""; } >&5
79781  ($PKG_CONFIG --exists --print-errors "libsrtp") 2>&5
79782  ac_status=$?
79783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
79784  test $ac_status = 0; }; then
79785  pkg_cv_SRTP_LIBS=`$PKG_CONFIG --libs "libsrtp" 2>/dev/null`
79786else
79787  pkg_failed=yes
79788fi
79789    fi
79790else
79791	pkg_failed=untried
79792fi
79793
79794
79795
79796if test $pkg_failed = yes; then
79797
79798if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
79799        _pkg_short_errors_supported=yes
79800else
79801        _pkg_short_errors_supported=no
79802fi
79803        if test $_pkg_short_errors_supported = yes; then
79804	        SRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsrtp"`
79805        else
79806	        SRTP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsrtp"`
79807        fi
79808	# Put the nasty error message in config.log where it belongs
79809	echo "$SRTP_PKG_ERRORS" >&5
79810
79811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
79812$as_echo "no" >&6; }
79813
79814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto_policy_set_aes_gcm_128_16_auth in -lsrtp" >&5
79815$as_echo_n "checking for crypto_policy_set_aes_gcm_128_16_auth in -lsrtp... " >&6; }
79816if ${ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth+:} false; then :
79817  $as_echo_n "(cached) " >&6
79818else
79819  ac_check_lib_save_LIBS=$LIBS
79820LIBS="-lsrtp  $LIBS"
79821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79822/* end confdefs.h.  */
79823
79824/* Override any GCC internal prototype to avoid an error.
79825   Use char because int might match the return type of a GCC
79826   builtin and then its argument prototype would still apply.  */
79827#ifdef __cplusplus
79828extern "C"
79829#endif
79830char crypto_policy_set_aes_gcm_128_16_auth ();
79831int
79832main ()
79833{
79834return crypto_policy_set_aes_gcm_128_16_auth ();
79835  ;
79836  return 0;
79837}
79838_ACEOF
79839if ac_fn_c_try_link "$LINENO"; then :
79840  ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth=yes
79841else
79842  ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth=no
79843fi
79844rm -f core conftest.err conftest.$ac_objext \
79845    conftest$ac_exeext conftest.$ac_ext
79846LIBS=$ac_check_lib_save_LIBS
79847fi
79848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" >&5
79849$as_echo "$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" >&6; }
79850if test "x$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" = xyes; then :
79851  HAVE_SRTP=yes
79852else
79853  HAVE_SRTP=no
79854fi
79855
79856  if test "x$HAVE_SRTP" = "xyes"; then
79857    ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
79858if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
79859  :
79860else
79861  HAVE_SRTP=no
79862fi
79863
79864
79865    if test "x$HAVE_SRTP" = "xyes"; then
79866            SRTP_LIBS="-lsrtp"
79867    else
79868      :
79869    fi
79870  else
79871    :
79872  fi
79873
79874
79875
79876
79877elif test $pkg_failed = untried; then
79878
79879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto_policy_set_aes_gcm_128_16_auth in -lsrtp" >&5
79880$as_echo_n "checking for crypto_policy_set_aes_gcm_128_16_auth in -lsrtp... " >&6; }
79881if ${ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth+:} false; then :
79882  $as_echo_n "(cached) " >&6
79883else
79884  ac_check_lib_save_LIBS=$LIBS
79885LIBS="-lsrtp  $LIBS"
79886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79887/* end confdefs.h.  */
79888
79889/* Override any GCC internal prototype to avoid an error.
79890   Use char because int might match the return type of a GCC
79891   builtin and then its argument prototype would still apply.  */
79892#ifdef __cplusplus
79893extern "C"
79894#endif
79895char crypto_policy_set_aes_gcm_128_16_auth ();
79896int
79897main ()
79898{
79899return crypto_policy_set_aes_gcm_128_16_auth ();
79900  ;
79901  return 0;
79902}
79903_ACEOF
79904if ac_fn_c_try_link "$LINENO"; then :
79905  ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth=yes
79906else
79907  ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth=no
79908fi
79909rm -f core conftest.err conftest.$ac_objext \
79910    conftest$ac_exeext conftest.$ac_ext
79911LIBS=$ac_check_lib_save_LIBS
79912fi
79913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" >&5
79914$as_echo "$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" >&6; }
79915if test "x$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_16_auth" = xyes; then :
79916  HAVE_SRTP=yes
79917else
79918  HAVE_SRTP=no
79919fi
79920
79921  if test "x$HAVE_SRTP" = "xyes"; then
79922    ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
79923if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
79924  :
79925else
79926  HAVE_SRTP=no
79927fi
79928
79929
79930    if test "x$HAVE_SRTP" = "xyes"; then
79931            SRTP_LIBS="-lsrtp"
79932    else
79933      :
79934    fi
79935  else
79936    :
79937  fi
79938
79939
79940
79941
79942else
79943	SRTP_CFLAGS=$pkg_cv_SRTP_CFLAGS
79944	SRTP_LIBS=$pkg_cv_SRTP_LIBS
79945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
79946$as_echo "yes" >&6; }
79947	HAVE_SRTP="yes"
79948fi
79949  fi
79950
79951
79952
79953
79954  LIBS=$gst_check_save_LIBS
79955  LDFLAGS=$gst_check_save_LDFLAGS
79956  CFLAGS=$gst_check_save_CFLAGS
79957  CPPFLAGS=$gst_check_save_CPPFLAGS
79958  CXXFLAGS=$gst_check_save_CXXFLAGS
79959
79960    if test x$HAVE_SRTP = xno; then
79961    USE_SRTP=no
79962  else
79963    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: srtp" >&5
79964$as_echo "$as_me: *** These plugins will be built: srtp" >&6;}
79965  fi
79966fi
79967if test x$USE_SRTP = xyes; then
79968  :
79969  if test "xsrtp" != "x"; then
79970    GST_PLUGINS_YES="\tsrtp\n$GST_PLUGINS_YES"
79971  fi
79972
79973$as_echo "#define HAVE_SRTP /**/" >>confdefs.h
79974
79975else
79976  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: srtp" >&5
79977$as_echo "$as_me: *** These plugins will not be built: srtp" >&6;}
79978  if test "xsrtp" != "x"; then
79979    GST_PLUGINS_NO="\tsrtp\n$GST_PLUGINS_NO"
79980  fi
79981  :
79982fi
79983 if test x$USE_SRTP = xyes; then
79984  USE_SRTP_TRUE=
79985  USE_SRTP_FALSE='#'
79986else
79987  USE_SRTP_TRUE='#'
79988  USE_SRTP_FALSE=
79989fi
79990
79991
79992
79993echo
79994{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: DTLS plugin ***" >&5
79995$as_echo "$as_me: *** checking feature: DTLS plugin ***" >&6;}
79996if test "xdtls" != "x"
79997then
79998  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dtls ***" >&5
79999$as_echo "$as_me: *** for plug-ins: dtls ***" >&6;}
80000fi
80001NOUSE=
80002if test "x$USE_DTLS" = "xno"; then
80003  NOUSE="yes"
80004fi
80005# Check whether --enable-dtls was given.
80006if test "${enable_dtls+set}" = set; then :
80007  enableval=$enable_dtls;  case "${enableval}" in
80008      yes) USE_DTLS=yes;;
80009      no) USE_DTLS=no;;
80010      *) as_fn_error $? "bad value ${enableval} for --enable-dtls" "$LINENO" 5 ;;
80011    esac
80012else
80013   USE_DTLS=yes
80014fi
80015
80016if test "x$NOUSE" = "xyes"; then
80017  USE_DTLS="no"
80018  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dtls pre-configured not to be built" >&5
80019$as_echo "$as_me: WARNING: *** dtls pre-configured not to be built" >&2;}
80020fi
80021NOUSE=
80022
80023if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DTLS " > /dev/null; then
80024  USE_DTLS="no"
80025  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dtls not ported" >&5
80026$as_echo "$as_me: WARNING: *** dtls not ported" >&2;}
80027fi
80028
80029
80030if test x$USE_DTLS = xyes; then
80031
80032  gst_check_save_LIBS=$LIBS
80033  gst_check_save_LDFLAGS=$LDFLAGS
80034  gst_check_save_CFLAGS=$CFLAGS
80035  gst_check_save_CPPFLAGS=$CPPFLAGS
80036  gst_check_save_CXXFLAGS=$CXXFLAGS
80037
80038  HAVE_DTLS=no
80039
80040
80041pkg_failed=no
80042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTLS" >&5
80043$as_echo_n "checking for DTLS... " >&6; }
80044
80045if test -n "$PKG_CONFIG"; then
80046    if test -n "$DTLS_CFLAGS"; then
80047        pkg_cv_DTLS_CFLAGS="$DTLS_CFLAGS"
80048    else
80049        if test -n "$PKG_CONFIG" && \
80050    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" openssl >= 1.0.1  libcrypto \""; } >&5
80051  ($PKG_CONFIG --exists --print-errors " openssl >= 1.0.1  libcrypto ") 2>&5
80052  ac_status=$?
80053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80054  test $ac_status = 0; }; then
80055  pkg_cv_DTLS_CFLAGS=`$PKG_CONFIG --cflags " openssl >= 1.0.1  libcrypto " 2>/dev/null`
80056else
80057  pkg_failed=yes
80058fi
80059    fi
80060else
80061	pkg_failed=untried
80062fi
80063if test -n "$PKG_CONFIG"; then
80064    if test -n "$DTLS_LIBS"; then
80065        pkg_cv_DTLS_LIBS="$DTLS_LIBS"
80066    else
80067        if test -n "$PKG_CONFIG" && \
80068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" openssl >= 1.0.1  libcrypto \""; } >&5
80069  ($PKG_CONFIG --exists --print-errors " openssl >= 1.0.1  libcrypto ") 2>&5
80070  ac_status=$?
80071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80072  test $ac_status = 0; }; then
80073  pkg_cv_DTLS_LIBS=`$PKG_CONFIG --libs " openssl >= 1.0.1  libcrypto " 2>/dev/null`
80074else
80075  pkg_failed=yes
80076fi
80077    fi
80078else
80079	pkg_failed=untried
80080fi
80081
80082
80083
80084if test $pkg_failed = yes; then
80085
80086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80087        _pkg_short_errors_supported=yes
80088else
80089        _pkg_short_errors_supported=no
80090fi
80091        if test $_pkg_short_errors_supported = yes; then
80092	        DTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " openssl >= 1.0.1  libcrypto "`
80093        else
80094	        DTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " openssl >= 1.0.1  libcrypto "`
80095        fi
80096	# Put the nasty error message in config.log where it belongs
80097	echo "$DTLS_PKG_ERRORS" >&5
80098
80099	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80100$as_echo "no" >&6; }
80101
80102    HAVE_DTLS="no"
80103
80104elif test $pkg_failed = untried; then
80105
80106    HAVE_DTLS="no"
80107
80108else
80109	DTLS_CFLAGS=$pkg_cv_DTLS_CFLAGS
80110	DTLS_LIBS=$pkg_cv_DTLS_LIBS
80111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80112$as_echo "yes" >&6; }
80113
80114    HAVE_DTLS="yes"
80115
80116
80117
80118fi
80119
80120
80121  LIBS=$gst_check_save_LIBS
80122  LDFLAGS=$gst_check_save_LDFLAGS
80123  CFLAGS=$gst_check_save_CFLAGS
80124  CPPFLAGS=$gst_check_save_CPPFLAGS
80125  CXXFLAGS=$gst_check_save_CXXFLAGS
80126
80127    if test x$HAVE_DTLS = xno; then
80128    USE_DTLS=no
80129  else
80130    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dtls" >&5
80131$as_echo "$as_me: *** These plugins will be built: dtls" >&6;}
80132  fi
80133fi
80134if test x$USE_DTLS = xyes; then
80135  :
80136  if test "xdtls" != "x"; then
80137    GST_PLUGINS_YES="\tdtls\n$GST_PLUGINS_YES"
80138  fi
80139
80140$as_echo "#define HAVE_DTLS /**/" >>confdefs.h
80141
80142else
80143  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dtls" >&5
80144$as_echo "$as_me: *** These plugins will not be built: dtls" >&6;}
80145  if test "xdtls" != "x"; then
80146    GST_PLUGINS_NO="\tdtls\n$GST_PLUGINS_NO"
80147  fi
80148  :
80149fi
80150 if test x$USE_DTLS = xyes; then
80151  USE_DTLS_TRUE=
80152  USE_DTLS_FALSE='#'
80153else
80154  USE_DTLS_TRUE='#'
80155  USE_DTLS_FALSE=
80156fi
80157
80158
80159
80160echo
80161{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: TTML plugin ***" >&5
80162$as_echo "$as_me: *** checking feature: TTML plugin ***" >&6;}
80163if test "xttml" != "x"
80164then
80165  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ttml ***" >&5
80166$as_echo "$as_me: *** for plug-ins: ttml ***" >&6;}
80167fi
80168NOUSE=
80169if test "x$USE_TTML" = "xno"; then
80170  NOUSE="yes"
80171fi
80172# Check whether --enable-ttml was given.
80173if test "${enable_ttml+set}" = set; then :
80174  enableval=$enable_ttml;  case "${enableval}" in
80175      yes) USE_TTML=yes;;
80176      no) USE_TTML=no;;
80177      *) as_fn_error $? "bad value ${enableval} for --enable-ttml" "$LINENO" 5 ;;
80178    esac
80179else
80180   USE_TTML=yes
80181fi
80182
80183if test "x$NOUSE" = "xyes"; then
80184  USE_TTML="no"
80185  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ttml pre-configured not to be built" >&5
80186$as_echo "$as_me: WARNING: *** ttml pre-configured not to be built" >&2;}
80187fi
80188NOUSE=
80189
80190if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " TTML " > /dev/null; then
80191  USE_TTML="no"
80192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ttml not ported" >&5
80193$as_echo "$as_me: WARNING: *** ttml not ported" >&2;}
80194fi
80195
80196
80197if test x$USE_TTML = xyes; then
80198
80199  gst_check_save_LIBS=$LIBS
80200  gst_check_save_LDFLAGS=$LDFLAGS
80201  gst_check_save_CFLAGS=$CFLAGS
80202  gst_check_save_CPPFLAGS=$CPPFLAGS
80203  gst_check_save_CXXFLAGS=$CXXFLAGS
80204
80205  HAVE_TTML=no
80206
80207
80208pkg_failed=no
80209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTML" >&5
80210$as_echo_n "checking for TTML... " >&6; }
80211
80212if test -n "$PKG_CONFIG"; then
80213    if test -n "$TTML_CFLAGS"; then
80214        pkg_cv_TTML_CFLAGS="$TTML_CFLAGS"
80215    else
80216        if test -n "$PKG_CONFIG" && \
80217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.9.2 pango cairo pangocairo \""; } >&5
80218  ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.9.2 pango cairo pangocairo ") 2>&5
80219  ac_status=$?
80220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80221  test $ac_status = 0; }; then
80222  pkg_cv_TTML_CFLAGS=`$PKG_CONFIG --cflags " libxml-2.0 >= 2.9.2 pango cairo pangocairo " 2>/dev/null`
80223else
80224  pkg_failed=yes
80225fi
80226    fi
80227else
80228	pkg_failed=untried
80229fi
80230if test -n "$PKG_CONFIG"; then
80231    if test -n "$TTML_LIBS"; then
80232        pkg_cv_TTML_LIBS="$TTML_LIBS"
80233    else
80234        if test -n "$PKG_CONFIG" && \
80235    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" libxml-2.0 >= 2.9.2 pango cairo pangocairo \""; } >&5
80236  ($PKG_CONFIG --exists --print-errors " libxml-2.0 >= 2.9.2 pango cairo pangocairo ") 2>&5
80237  ac_status=$?
80238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80239  test $ac_status = 0; }; then
80240  pkg_cv_TTML_LIBS=`$PKG_CONFIG --libs " libxml-2.0 >= 2.9.2 pango cairo pangocairo " 2>/dev/null`
80241else
80242  pkg_failed=yes
80243fi
80244    fi
80245else
80246	pkg_failed=untried
80247fi
80248
80249
80250
80251if test $pkg_failed = yes; then
80252
80253if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80254        _pkg_short_errors_supported=yes
80255else
80256        _pkg_short_errors_supported=no
80257fi
80258        if test $_pkg_short_errors_supported = yes; then
80259	        TTML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " libxml-2.0 >= 2.9.2 pango cairo pangocairo "`
80260        else
80261	        TTML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libxml-2.0 >= 2.9.2 pango cairo pangocairo "`
80262        fi
80263	# Put the nasty error message in config.log where it belongs
80264	echo "$TTML_PKG_ERRORS" >&5
80265
80266	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80267$as_echo "no" >&6; }
80268
80269    HAVE_TTML="no"
80270
80271elif test $pkg_failed = untried; then
80272
80273    HAVE_TTML="no"
80274
80275else
80276	TTML_CFLAGS=$pkg_cv_TTML_CFLAGS
80277	TTML_LIBS=$pkg_cv_TTML_LIBS
80278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80279$as_echo "yes" >&6; }
80280
80281    HAVE_TTML="yes"
80282
80283fi
80284
80285
80286  LIBS=$gst_check_save_LIBS
80287  LDFLAGS=$gst_check_save_LDFLAGS
80288  CFLAGS=$gst_check_save_CFLAGS
80289  CPPFLAGS=$gst_check_save_CPPFLAGS
80290  CXXFLAGS=$gst_check_save_CXXFLAGS
80291
80292    if test x$HAVE_TTML = xno; then
80293    USE_TTML=no
80294  else
80295    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ttml" >&5
80296$as_echo "$as_me: *** These plugins will be built: ttml" >&6;}
80297  fi
80298fi
80299if test x$USE_TTML = xyes; then
80300  :
80301  if test "xttml" != "x"; then
80302    GST_PLUGINS_YES="\tttml\n$GST_PLUGINS_YES"
80303  fi
80304
80305$as_echo "#define HAVE_TTML /**/" >>confdefs.h
80306
80307else
80308  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ttml" >&5
80309$as_echo "$as_me: *** These plugins will not be built: ttml" >&6;}
80310  if test "xttml" != "x"; then
80311    GST_PLUGINS_NO="\tttml\n$GST_PLUGINS_NO"
80312  fi
80313  :
80314fi
80315 if test x$USE_TTML = xyes; then
80316  USE_TTML_TRUE=
80317  USE_TTML_FALSE='#'
80318else
80319  USE_TTML_TRUE='#'
80320  USE_TTML_FALSE=
80321fi
80322
80323
80324
80325echo
80326{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: modplug ***" >&5
80327$as_echo "$as_me: *** checking feature: modplug ***" >&6;}
80328if test "xmodplug" != "x"
80329then
80330  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: modplug ***" >&5
80331$as_echo "$as_me: *** for plug-ins: modplug ***" >&6;}
80332fi
80333NOUSE=
80334if test "x$USE_MODPLUG" = "xno"; then
80335  NOUSE="yes"
80336fi
80337# Check whether --enable-modplug was given.
80338if test "${enable_modplug+set}" = set; then :
80339  enableval=$enable_modplug;  case "${enableval}" in
80340      yes) USE_MODPLUG=yes;;
80341      no) USE_MODPLUG=no;;
80342      *) as_fn_error $? "bad value ${enableval} for --enable-modplug" "$LINENO" 5 ;;
80343    esac
80344else
80345   USE_MODPLUG=yes
80346fi
80347
80348if test "x$NOUSE" = "xyes"; then
80349  USE_MODPLUG="no"
80350  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** modplug pre-configured not to be built" >&5
80351$as_echo "$as_me: WARNING: *** modplug pre-configured not to be built" >&2;}
80352fi
80353NOUSE=
80354
80355if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " MODPLUG " > /dev/null; then
80356  USE_MODPLUG="no"
80357  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** modplug not ported" >&5
80358$as_echo "$as_me: WARNING: *** modplug not ported" >&2;}
80359fi
80360
80361
80362if test x$USE_MODPLUG = xyes; then
80363
80364  gst_check_save_LIBS=$LIBS
80365  gst_check_save_LDFLAGS=$LDFLAGS
80366  gst_check_save_CFLAGS=$CFLAGS
80367  gst_check_save_CPPFLAGS=$CPPFLAGS
80368  gst_check_save_CXXFLAGS=$CXXFLAGS
80369
80370  HAVE_MODPLUG=no
80371
80372  if test "x$HAVE_CXX" != "xyes"; then
80373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not compiling modplug plugin as it requires a C++ compiler" >&5
80374$as_echo "$as_me: WARNING: Not compiling modplug plugin as it requires a C++ compiler" >&2;}
80375    HAVE_MODPLUG="no"
80376  else
80377
80378pkg_failed=no
80379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MODPLUG" >&5
80380$as_echo_n "checking for MODPLUG... " >&6; }
80381
80382if test -n "$PKG_CONFIG"; then
80383    if test -n "$MODPLUG_CFLAGS"; then
80384        pkg_cv_MODPLUG_CFLAGS="$MODPLUG_CFLAGS"
80385    else
80386        if test -n "$PKG_CONFIG" && \
80387    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug\""; } >&5
80388  ($PKG_CONFIG --exists --print-errors "libmodplug") 2>&5
80389  ac_status=$?
80390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80391  test $ac_status = 0; }; then
80392  pkg_cv_MODPLUG_CFLAGS=`$PKG_CONFIG --cflags "libmodplug" 2>/dev/null`
80393else
80394  pkg_failed=yes
80395fi
80396    fi
80397else
80398	pkg_failed=untried
80399fi
80400if test -n "$PKG_CONFIG"; then
80401    if test -n "$MODPLUG_LIBS"; then
80402        pkg_cv_MODPLUG_LIBS="$MODPLUG_LIBS"
80403    else
80404        if test -n "$PKG_CONFIG" && \
80405    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug\""; } >&5
80406  ($PKG_CONFIG --exists --print-errors "libmodplug") 2>&5
80407  ac_status=$?
80408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80409  test $ac_status = 0; }; then
80410  pkg_cv_MODPLUG_LIBS=`$PKG_CONFIG --libs "libmodplug" 2>/dev/null`
80411else
80412  pkg_failed=yes
80413fi
80414    fi
80415else
80416	pkg_failed=untried
80417fi
80418
80419
80420
80421if test $pkg_failed = yes; then
80422
80423if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80424        _pkg_short_errors_supported=yes
80425else
80426        _pkg_short_errors_supported=no
80427fi
80428        if test $_pkg_short_errors_supported = yes; then
80429	        MODPLUG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmodplug"`
80430        else
80431	        MODPLUG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmodplug"`
80432        fi
80433	# Put the nasty error message in config.log where it belongs
80434	echo "$MODPLUG_PKG_ERRORS" >&5
80435
80436	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80437$as_echo "no" >&6; }
80438                HAVE_MODPLUG="no"
80439elif test $pkg_failed = untried; then
80440	HAVE_MODPLUG="no"
80441else
80442	MODPLUG_CFLAGS=$pkg_cv_MODPLUG_CFLAGS
80443	MODPLUG_LIBS=$pkg_cv_MODPLUG_LIBS
80444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80445$as_echo "yes" >&6; }
80446	HAVE_MODPLUG="yes"
80447fi
80448  fi
80449
80450
80451
80452
80453  LIBS=$gst_check_save_LIBS
80454  LDFLAGS=$gst_check_save_LDFLAGS
80455  CFLAGS=$gst_check_save_CFLAGS
80456  CPPFLAGS=$gst_check_save_CPPFLAGS
80457  CXXFLAGS=$gst_check_save_CXXFLAGS
80458
80459    if test x$HAVE_MODPLUG = xno; then
80460    USE_MODPLUG=no
80461  else
80462    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: modplug" >&5
80463$as_echo "$as_me: *** These plugins will be built: modplug" >&6;}
80464  fi
80465fi
80466if test x$USE_MODPLUG = xyes; then
80467  :
80468  if test "xmodplug" != "x"; then
80469    GST_PLUGINS_YES="\tmodplug\n$GST_PLUGINS_YES"
80470  fi
80471
80472$as_echo "#define HAVE_MODPLUG /**/" >>confdefs.h
80473
80474else
80475  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: modplug" >&5
80476$as_echo "$as_me: *** These plugins will not be built: modplug" >&6;}
80477  if test "xmodplug" != "x"; then
80478    GST_PLUGINS_NO="\tmodplug\n$GST_PLUGINS_NO"
80479  fi
80480  :
80481fi
80482 if test x$USE_MODPLUG = xyes; then
80483  USE_MODPLUG_TRUE=
80484  USE_MODPLUG_FALSE='#'
80485else
80486  USE_MODPLUG_TRUE='#'
80487  USE_MODPLUG_FALSE=
80488fi
80489
80490
80491
80492echo
80493if test -n "$PKG_CONFIG" && \
80494    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0\""; } >&5
80495  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0") 2>&5
80496  ac_status=$?
80497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80498  test $ac_status = 0; }; then
80499
80500  mjpegtools_api=10601
80501
80502else
80503
80504  if test -n "$PKG_CONFIG" && \
80505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.8.0 mjpegtools < 1.9.0\""; } >&5
80506  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.8.0 mjpegtools < 1.9.0") 2>&5
80507  ac_status=$?
80508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80509  test $ac_status = 0; }; then
80510
80511    mjpegtools_api=10800
80512
80513else
80514
80515    if test -n "$PKG_CONFIG" && \
80516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 2.0.0\""; } >&5
80517  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 2.0.0") 2>&5
80518  ac_status=$?
80519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80520  test $ac_status = 0; }; then
80521
80522      mjpegtools_api=20000
80523
80524else
80525
80526
80527pkg_failed=no
80528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MJPEG" >&5
80529$as_echo_n "checking for MJPEG... " >&6; }
80530
80531if test -n "$PKG_CONFIG"; then
80532    if test -n "$MJPEG_CFLAGS"; then
80533        pkg_cv_MJPEG_CFLAGS="$MJPEG_CFLAGS"
80534    else
80535        if test -n "$PKG_CONFIG" && \
80536    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.9.0 mjpegtools < 2.0.0\""; } >&5
80537  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.9.0 mjpegtools < 2.0.0") 2>&5
80538  ac_status=$?
80539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80540  test $ac_status = 0; }; then
80541  pkg_cv_MJPEG_CFLAGS=`$PKG_CONFIG --cflags "mjpegtools >= 1.9.0 mjpegtools < 2.0.0" 2>/dev/null`
80542else
80543  pkg_failed=yes
80544fi
80545    fi
80546else
80547	pkg_failed=untried
80548fi
80549if test -n "$PKG_CONFIG"; then
80550    if test -n "$MJPEG_LIBS"; then
80551        pkg_cv_MJPEG_LIBS="$MJPEG_LIBS"
80552    else
80553        if test -n "$PKG_CONFIG" && \
80554    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.9.0 mjpegtools < 2.0.0\""; } >&5
80555  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.9.0 mjpegtools < 2.0.0") 2>&5
80556  ac_status=$?
80557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80558  test $ac_status = 0; }; then
80559  pkg_cv_MJPEG_LIBS=`$PKG_CONFIG --libs "mjpegtools >= 1.9.0 mjpegtools < 2.0.0" 2>/dev/null`
80560else
80561  pkg_failed=yes
80562fi
80563    fi
80564else
80565	pkg_failed=untried
80566fi
80567
80568
80569
80570if test $pkg_failed = yes; then
80571
80572if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80573        _pkg_short_errors_supported=yes
80574else
80575        _pkg_short_errors_supported=no
80576fi
80577        if test $_pkg_short_errors_supported = yes; then
80578	        MJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mjpegtools >= 1.9.0 mjpegtools < 2.0.0"`
80579        else
80580	        MJPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mjpegtools >= 1.9.0 mjpegtools < 2.0.0"`
80581        fi
80582	# Put the nasty error message in config.log where it belongs
80583	echo "$MJPEG_PKG_ERRORS" >&5
80584
80585	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80586$as_echo "no" >&6; }
80587
80588        mjpegtools_api=0
80589
80590elif test $pkg_failed = untried; then
80591
80592        mjpegtools_api=0
80593
80594else
80595	MJPEG_CFLAGS=$pkg_cv_MJPEG_CFLAGS
80596	MJPEG_LIBS=$pkg_cv_MJPEG_LIBS
80597        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80598$as_echo "yes" >&6; }
80599
80600                OLD_CFLAGS="$CFLAGS"
80601        OLD_LIBS="$LIBS"
80602        CFLAGS="$MJPEG_CFLAGS"
80603        LIBS="$LIBS $MJPEG_LIBS -lmjpegutils $LIBM $PTHREAD_LIBS"
80604        ac_fn_c_check_func "$LINENO" "mjpeg_loglev_t" "ac_cv_func_mjpeg_loglev_t"
80605if test "x$ac_cv_func_mjpeg_loglev_t" = xyes; then :
80606
80607          mjpegtools_api=10903
80608
80609else
80610
80611          mjpegtools_api=10900
80612
80613fi
80614
80615        CFLAGS="$OLD_CFLAGS"
80616        LIBS="$OLD_LIBS"
80617
80618fi
80619
80620fi
80621
80622fi
80623
80624fi
80625
80626cat >>confdefs.h <<_ACEOF
80627#define GST_MJPEGTOOLS_API $mjpegtools_api
80628_ACEOF
80629
80630
80631
80632echo
80633{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: mpeg2enc ***" >&5
80634$as_echo "$as_me: *** checking feature: mpeg2enc ***" >&6;}
80635if test "xmpeg2enc" != "x"
80636then
80637  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: mpeg2enc ***" >&5
80638$as_echo "$as_me: *** for plug-ins: mpeg2enc ***" >&6;}
80639fi
80640NOUSE=
80641if test "x$USE_MPEG2ENC" = "xno"; then
80642  NOUSE="yes"
80643fi
80644# Check whether --enable-mpeg2enc was given.
80645if test "${enable_mpeg2enc+set}" = set; then :
80646  enableval=$enable_mpeg2enc;  case "${enableval}" in
80647      yes) USE_MPEG2ENC=yes;;
80648      no) USE_MPEG2ENC=no;;
80649      *) as_fn_error $? "bad value ${enableval} for --enable-mpeg2enc" "$LINENO" 5 ;;
80650    esac
80651else
80652   USE_MPEG2ENC=yes
80653fi
80654
80655if test "x$NOUSE" = "xyes"; then
80656  USE_MPEG2ENC="no"
80657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mpeg2enc pre-configured not to be built" >&5
80658$as_echo "$as_me: WARNING: *** mpeg2enc pre-configured not to be built" >&2;}
80659fi
80660NOUSE=
80661
80662if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " MPEG2ENC " > /dev/null; then
80663  USE_MPEG2ENC="no"
80664  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mpeg2enc not ported" >&5
80665$as_echo "$as_me: WARNING: *** mpeg2enc not ported" >&2;}
80666fi
80667
80668
80669if test x$USE_MPEG2ENC = xyes; then
80670
80671  gst_check_save_LIBS=$LIBS
80672  gst_check_save_LDFLAGS=$LDFLAGS
80673  gst_check_save_CFLAGS=$CFLAGS
80674  gst_check_save_CPPFLAGS=$CPPFLAGS
80675  gst_check_save_CXXFLAGS=$CXXFLAGS
80676
80677  HAVE_MPEG2ENC=no
80678
80679  HAVE_MPEG2ENC="no"
80680    if  test x$HAVE_CXX = xyes ; then
80681
80682pkg_failed=no
80683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPEG2ENC" >&5
80684$as_echo_n "checking for MPEG2ENC... " >&6; }
80685
80686if test -n "$PKG_CONFIG"; then
80687    if test -n "$MPEG2ENC_CFLAGS"; then
80688        pkg_cv_MPEG2ENC_CFLAGS="$MPEG2ENC_CFLAGS"
80689    else
80690        if test -n "$PKG_CONFIG" && \
80691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.6.1.93\""; } >&5
80692  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.6.1.93") 2>&5
80693  ac_status=$?
80694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80695  test $ac_status = 0; }; then
80696  pkg_cv_MPEG2ENC_CFLAGS=`$PKG_CONFIG --cflags "mjpegtools >= 1.6.1.93" 2>/dev/null`
80697else
80698  pkg_failed=yes
80699fi
80700    fi
80701else
80702	pkg_failed=untried
80703fi
80704if test -n "$PKG_CONFIG"; then
80705    if test -n "$MPEG2ENC_LIBS"; then
80706        pkg_cv_MPEG2ENC_LIBS="$MPEG2ENC_LIBS"
80707    else
80708        if test -n "$PKG_CONFIG" && \
80709    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.6.1.93\""; } >&5
80710  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.6.1.93") 2>&5
80711  ac_status=$?
80712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80713  test $ac_status = 0; }; then
80714  pkg_cv_MPEG2ENC_LIBS=`$PKG_CONFIG --libs "mjpegtools >= 1.6.1.93" 2>/dev/null`
80715else
80716  pkg_failed=yes
80717fi
80718    fi
80719else
80720	pkg_failed=untried
80721fi
80722
80723
80724
80725if test $pkg_failed = yes; then
80726
80727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80728        _pkg_short_errors_supported=yes
80729else
80730        _pkg_short_errors_supported=no
80731fi
80732        if test $_pkg_short_errors_supported = yes; then
80733	        MPEG2ENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mjpegtools >= 1.6.1.93"`
80734        else
80735	        MPEG2ENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mjpegtools >= 1.6.1.93"`
80736        fi
80737	# Put the nasty error message in config.log where it belongs
80738	echo "$MPEG2ENC_PKG_ERRORS" >&5
80739
80740	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80741$as_echo "no" >&6; }
80742
80743      HAVE_MPEG2ENC="no"
80744
80745elif test $pkg_failed = untried; then
80746
80747      HAVE_MPEG2ENC="no"
80748
80749else
80750	MPEG2ENC_CFLAGS=$pkg_cv_MPEG2ENC_CFLAGS
80751	MPEG2ENC_LIBS=$pkg_cv_MPEG2ENC_LIBS
80752        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80753$as_echo "yes" >&6; }
80754
80755            touch config.h
80756            ac_ext=cpp
80757ac_cpp='$CXXCPP $CPPFLAGS'
80758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
80759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
80760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
80761
80762      OLD_CPPFLAGS="$CPPFLAGS"
80763            CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
80764      CPPFLAGS="$CPPFLAGS_GOOD -I."
80765            mpeg2enc_headers_ok=no
80766      ac_fn_cxx_check_header_mongrel "$LINENO" "mpeg2encoder.hh" "ac_cv_header_mpeg2encoder_hh" "$ac_includes_default"
80767if test "x$ac_cv_header_mpeg2encoder_hh" = xyes; then :
80768
80769        MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp $LIBM $PTHREAD_LIBS"
80770        OLD_LIBS="$LIBS"
80771        LIBS="$LIBS $MPEG2ENC_LIBS"
80772        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid mpeg2enc objects" >&5
80773$as_echo_n "checking for valid mpeg2enc objects... " >&6; }
80774        if test "$cross_compiling" = yes; then :
80775  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
80776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
80777as_fn_error $? "cannot run test program while cross compiling
80778See \`config.log' for more details" "$LINENO" 5; }
80779else
80780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80781/* end confdefs.h.  */
80782
80783          #include <mpeg2encoder.hh>
80784          #include <mpeg2encoptions.hh>
80785
80786          int
80787          main (int   argc,
80788                char *argv[])
80789          {
80790            MPEG2EncOptions *options = new MPEG2EncOptions ();
80791            MPEG2Encoder *encoder = new MPEG2Encoder (*options);
80792            return 0;
80793          }
80794
80795_ACEOF
80796if ac_fn_cxx_try_run "$LINENO"; then :
80797
80798          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
80799$as_echo "yes" >&6; }
80800                                                            if test "$mjpegtools_api" -ge "10800"; then
80801            ac_fn_cxx_check_header_mongrel "$LINENO" "mpeg2syntaxcodes.h" "ac_cv_header_mpeg2syntaxcodes_h" "$ac_includes_default"
80802if test "x$ac_cv_header_mpeg2syntaxcodes_h" = xyes; then :
80803
80804                mpeg2enc_headers_ok=yes
80805
80806else
80807
80808                mpeg2enc_headers_ok=no
80809
80810fi
80811
80812
80813          else
80814            mpeg2enc_headers_ok=yes
80815          fi
80816          if test "x$mpeg2enc_headers_ok" = "xyes"; then
80817            HAVE_MPEG2ENC="yes"
80818          fi
80819          CPPFLAGS="$CPPFLAGS_GOOD"
80820
80821
80822
80823else
80824
80825          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80826$as_echo "no" >&6; }
80827
80828fi
80829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
80830  conftest.$ac_objext conftest.beam conftest.$ac_ext
80831fi
80832
80833        LIBS="$OLD_LIBS"
80834
80835fi
80836
80837
80838
80839      CPPFLAGS="$OLD_CPPFLAGS"
80840      ac_ext=c
80841ac_cpp='$CPP $CPPFLAGS'
80842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
80843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
80844ac_compiler_gnu=$ac_cv_c_compiler_gnu
80845
80846
80847fi
80848  fi
80849
80850
80851  LIBS=$gst_check_save_LIBS
80852  LDFLAGS=$gst_check_save_LDFLAGS
80853  CFLAGS=$gst_check_save_CFLAGS
80854  CPPFLAGS=$gst_check_save_CPPFLAGS
80855  CXXFLAGS=$gst_check_save_CXXFLAGS
80856
80857    if test x$HAVE_MPEG2ENC = xno; then
80858    USE_MPEG2ENC=no
80859  else
80860    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: mpeg2enc" >&5
80861$as_echo "$as_me: *** These plugins will be built: mpeg2enc" >&6;}
80862  fi
80863fi
80864if test x$USE_MPEG2ENC = xyes; then
80865  :
80866  if test "xmpeg2enc" != "x"; then
80867    GST_PLUGINS_YES="\tmpeg2enc\n$GST_PLUGINS_YES"
80868  fi
80869
80870$as_echo "#define HAVE_MPEG2ENC /**/" >>confdefs.h
80871
80872else
80873  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: mpeg2enc" >&5
80874$as_echo "$as_me: *** These plugins will not be built: mpeg2enc" >&6;}
80875  if test "xmpeg2enc" != "x"; then
80876    GST_PLUGINS_NO="\tmpeg2enc\n$GST_PLUGINS_NO"
80877  fi
80878  :
80879fi
80880 if test x$USE_MPEG2ENC = xyes; then
80881  USE_MPEG2ENC_TRUE=
80882  USE_MPEG2ENC_FALSE='#'
80883else
80884  USE_MPEG2ENC_TRUE='#'
80885  USE_MPEG2ENC_FALSE=
80886fi
80887
80888
80889
80890echo
80891{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: mplex ***" >&5
80892$as_echo "$as_me: *** checking feature: mplex ***" >&6;}
80893if test "xmplex" != "x"
80894then
80895  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: mplex ***" >&5
80896$as_echo "$as_me: *** for plug-ins: mplex ***" >&6;}
80897fi
80898NOUSE=
80899if test "x$USE_MPLEX" = "xno"; then
80900  NOUSE="yes"
80901fi
80902# Check whether --enable-mplex was given.
80903if test "${enable_mplex+set}" = set; then :
80904  enableval=$enable_mplex;  case "${enableval}" in
80905      yes) USE_MPLEX=yes;;
80906      no) USE_MPLEX=no;;
80907      *) as_fn_error $? "bad value ${enableval} for --enable-mplex" "$LINENO" 5 ;;
80908    esac
80909else
80910   USE_MPLEX=yes
80911fi
80912
80913if test "x$NOUSE" = "xyes"; then
80914  USE_MPLEX="no"
80915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mplex pre-configured not to be built" >&5
80916$as_echo "$as_me: WARNING: *** mplex pre-configured not to be built" >&2;}
80917fi
80918NOUSE=
80919
80920if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " MPLEX " > /dev/null; then
80921  USE_MPLEX="no"
80922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** mplex not ported" >&5
80923$as_echo "$as_me: WARNING: *** mplex not ported" >&2;}
80924fi
80925
80926
80927if test x$USE_MPLEX = xyes; then
80928
80929  gst_check_save_LIBS=$LIBS
80930  gst_check_save_LDFLAGS=$LDFLAGS
80931  gst_check_save_CFLAGS=$CFLAGS
80932  gst_check_save_CPPFLAGS=$CPPFLAGS
80933  gst_check_save_CXXFLAGS=$CXXFLAGS
80934
80935  HAVE_MPLEX=no
80936
80937  HAVE_MPLEX="no"
80938    if  test x$HAVE_CXX = xyes ; then
80939
80940pkg_failed=no
80941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPLEX" >&5
80942$as_echo_n "checking for MPLEX... " >&6; }
80943
80944if test -n "$PKG_CONFIG"; then
80945    if test -n "$MPLEX_CFLAGS"; then
80946        pkg_cv_MPLEX_CFLAGS="$MPLEX_CFLAGS"
80947    else
80948        if test -n "$PKG_CONFIG" && \
80949    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.9.0\""; } >&5
80950  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.9.0") 2>&5
80951  ac_status=$?
80952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80953  test $ac_status = 0; }; then
80954  pkg_cv_MPLEX_CFLAGS=`$PKG_CONFIG --cflags "mjpegtools >= 1.9.0" 2>/dev/null`
80955else
80956  pkg_failed=yes
80957fi
80958    fi
80959else
80960	pkg_failed=untried
80961fi
80962if test -n "$PKG_CONFIG"; then
80963    if test -n "$MPLEX_LIBS"; then
80964        pkg_cv_MPLEX_LIBS="$MPLEX_LIBS"
80965    else
80966        if test -n "$PKG_CONFIG" && \
80967    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mjpegtools >= 1.9.0\""; } >&5
80968  ($PKG_CONFIG --exists --print-errors "mjpegtools >= 1.9.0") 2>&5
80969  ac_status=$?
80970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
80971  test $ac_status = 0; }; then
80972  pkg_cv_MPLEX_LIBS=`$PKG_CONFIG --libs "mjpegtools >= 1.9.0" 2>/dev/null`
80973else
80974  pkg_failed=yes
80975fi
80976    fi
80977else
80978	pkg_failed=untried
80979fi
80980
80981
80982
80983if test $pkg_failed = yes; then
80984
80985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
80986        _pkg_short_errors_supported=yes
80987else
80988        _pkg_short_errors_supported=no
80989fi
80990        if test $_pkg_short_errors_supported = yes; then
80991	        MPLEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mjpegtools >= 1.9.0"`
80992        else
80993	        MPLEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mjpegtools >= 1.9.0"`
80994        fi
80995	# Put the nasty error message in config.log where it belongs
80996	echo "$MPLEX_PKG_ERRORS" >&5
80997
80998	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
80999$as_echo "no" >&6; }
81000                HAVE_MPLEX="no"
81001elif test $pkg_failed = untried; then
81002	HAVE_MPLEX="no"
81003else
81004	MPLEX_CFLAGS=$pkg_cv_MPLEX_CFLAGS
81005	MPLEX_LIBS=$pkg_cv_MPLEX_LIBS
81006        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81007$as_echo "yes" >&6; }
81008
81009            touch config.h
81010            ac_ext=cpp
81011ac_cpp='$CXXCPP $CPPFLAGS'
81012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
81013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
81014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81015
81016      OLD_CPPFLAGS="$CPPFLAGS"
81017            CPPFLAGS_GOOD="$CPPFLAGS $MPLEX_CFLAGS"
81018      CPPFLAGS="$CPPFLAGS_GOOD -I."
81019      ac_fn_cxx_check_header_mongrel "$LINENO" "interact.hpp" "ac_cv_header_interact_hpp" "$ac_includes_default"
81020if test "x$ac_cv_header_interact_hpp" = xyes; then :
81021
81022        MPLEX_LIBS="$MPLEX_LIBS -lmplex2 $LIBM"
81023        OLD_LIBS="$LIBS"
81024        LIBS="$LIBS $MPLEX_LIBS"
81025        OLD_LDFLAGS="$LDFLAGS"
81026        LDFLAGS="$LDFLAGS $MPLEX_LDFLAGS"
81027                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid mplex objects" >&5
81028$as_echo_n "checking for valid mplex objects... " >&6; }
81029        if test "$cross_compiling" = yes; then :
81030  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
81031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
81032as_fn_error $? "cannot run test program while cross compiling
81033See \`config.log' for more details" "$LINENO" 5; }
81034else
81035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81036/* end confdefs.h.  */
81037
81038
81039#include <interact.hpp>
81040#include <outputstrm.hpp>
81041#include <multiplexor.hpp>
81042int
81043main (int   argc,
81044      char *argv[])
81045{
81046  class TestOutputStream : public OutputStream {
81047  public:
81048    TestOutputStream () : OutputStream () { }
81049    void Write (uint8_t *a, unsigned int b) { }
81050    void NextSegment () { }
81051    uint64_t SegmentSize () { return 0; }
81052    void Close () { }
81053    int Open () { return 0; }
81054};
81055  MultiplexJob *job = new MultiplexJob ();
81056  vector<IBitStream *> inputs;
81057  job->SetupInputStreams (inputs);
81058  TestOutputStream *out = new TestOutputStream ();
81059  Multiplexor *mux = new Multiplexor(*job, *out, NULL);
81060  return 0;
81061}
81062
81063_ACEOF
81064if ac_fn_cxx_try_run "$LINENO"; then :
81065
81066          HAVE_MPLEX="yes"
81067          CPPFLAGS="$CPPFLAGS_GOOD"
81068
81069
81070
81071          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81072$as_echo "yes" >&6; }
81073
81074else
81075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81076$as_echo "no" >&6; }
81077fi
81078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
81079  conftest.$ac_objext conftest.beam conftest.$ac_ext
81080fi
81081
81082        LIBS="$OLD_LIBS"
81083        LDFLAGS="$OLD_LDFLAGS"
81084
81085fi
81086
81087
81088      CPPFLAGS="$OLD_CPPFLAGS"
81089      ac_ext=c
81090ac_cpp='$CPP $CPPFLAGS'
81091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
81092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
81093ac_compiler_gnu=$ac_cv_c_compiler_gnu
81094
81095
81096fi
81097  fi
81098
81099
81100  LIBS=$gst_check_save_LIBS
81101  LDFLAGS=$gst_check_save_LDFLAGS
81102  CFLAGS=$gst_check_save_CFLAGS
81103  CPPFLAGS=$gst_check_save_CPPFLAGS
81104  CXXFLAGS=$gst_check_save_CXXFLAGS
81105
81106    if test x$HAVE_MPLEX = xno; then
81107    USE_MPLEX=no
81108  else
81109    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: mplex" >&5
81110$as_echo "$as_me: *** These plugins will be built: mplex" >&6;}
81111  fi
81112fi
81113if test x$USE_MPLEX = xyes; then
81114  :
81115  if test "xmplex" != "x"; then
81116    GST_PLUGINS_YES="\tmplex\n$GST_PLUGINS_YES"
81117  fi
81118
81119$as_echo "#define HAVE_MPLEX /**/" >>confdefs.h
81120
81121else
81122  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: mplex" >&5
81123$as_echo "$as_me: *** These plugins will not be built: mplex" >&6;}
81124  if test "xmplex" != "x"; then
81125    GST_PLUGINS_NO="\tmplex\n$GST_PLUGINS_NO"
81126  fi
81127  :
81128fi
81129 if test x$USE_MPLEX = xyes; then
81130  USE_MPLEX_TRUE=
81131  USE_MPLEX_FALSE='#'
81132else
81133  USE_MPLEX_TRUE='#'
81134  USE_MPLEX_FALSE=
81135fi
81136
81137
81138
81139echo
81140{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: musepackdec ***" >&5
81141$as_echo "$as_me: *** checking feature: musepackdec ***" >&6;}
81142if test "xmusepack" != "x"
81143then
81144  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: musepack ***" >&5
81145$as_echo "$as_me: *** for plug-ins: musepack ***" >&6;}
81146fi
81147NOUSE=
81148if test "x$USE_MUSEPACK" = "xno"; then
81149  NOUSE="yes"
81150fi
81151# Check whether --enable-musepack was given.
81152if test "${enable_musepack+set}" = set; then :
81153  enableval=$enable_musepack;  case "${enableval}" in
81154      yes) USE_MUSEPACK=yes;;
81155      no) USE_MUSEPACK=no;;
81156      *) as_fn_error $? "bad value ${enableval} for --enable-musepack" "$LINENO" 5 ;;
81157    esac
81158else
81159   USE_MUSEPACK=yes
81160fi
81161
81162if test "x$NOUSE" = "xyes"; then
81163  USE_MUSEPACK="no"
81164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** musepack pre-configured not to be built" >&5
81165$as_echo "$as_me: WARNING: *** musepack pre-configured not to be built" >&2;}
81166fi
81167NOUSE=
81168
81169if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " MUSEPACK " > /dev/null; then
81170  USE_MUSEPACK="no"
81171  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** musepack not ported" >&5
81172$as_echo "$as_me: WARNING: *** musepack not ported" >&2;}
81173fi
81174
81175
81176if test x$USE_MUSEPACK = xyes; then
81177
81178  gst_check_save_LIBS=$LIBS
81179  gst_check_save_LDFLAGS=$LDFLAGS
81180  gst_check_save_CFLAGS=$CFLAGS
81181  gst_check_save_CPPFLAGS=$CPPFLAGS
81182  gst_check_save_CXXFLAGS=$CXXFLAGS
81183
81184  HAVE_MUSEPACK=no
81185
81186  ac_fn_c_check_header_mongrel "$LINENO" "mpc/mpcdec.h" "ac_cv_header_mpc_mpcdec_h" "$ac_includes_default"
81187if test "x$ac_cv_header_mpc_mpcdec_h" = xyes; then :
81188
81189    HAVE_MUSEPACK="yes"
81190    MUSEPACK_LIBS="-lmpcdec"
81191
81192
81193else
81194  HAVE_MUSEPACK="no"
81195fi
81196
81197
81198
81199
81200  LIBS=$gst_check_save_LIBS
81201  LDFLAGS=$gst_check_save_LDFLAGS
81202  CFLAGS=$gst_check_save_CFLAGS
81203  CPPFLAGS=$gst_check_save_CPPFLAGS
81204  CXXFLAGS=$gst_check_save_CXXFLAGS
81205
81206    if test x$HAVE_MUSEPACK = xno; then
81207    USE_MUSEPACK=no
81208  else
81209    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: musepack" >&5
81210$as_echo "$as_me: *** These plugins will be built: musepack" >&6;}
81211  fi
81212fi
81213if test x$USE_MUSEPACK = xyes; then
81214  :
81215  if test "xmusepack" != "x"; then
81216    GST_PLUGINS_YES="\tmusepack\n$GST_PLUGINS_YES"
81217  fi
81218
81219$as_echo "#define HAVE_MUSEPACK /**/" >>confdefs.h
81220
81221else
81222  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: musepack" >&5
81223$as_echo "$as_me: *** These plugins will not be built: musepack" >&6;}
81224  if test "xmusepack" != "x"; then
81225    GST_PLUGINS_NO="\tmusepack\n$GST_PLUGINS_NO"
81226  fi
81227  :
81228fi
81229 if test x$USE_MUSEPACK = xyes; then
81230  USE_MUSEPACK_TRUE=
81231  USE_MUSEPACK_FALSE='#'
81232else
81233  USE_MUSEPACK_TRUE='#'
81234  USE_MUSEPACK_FALSE=
81235fi
81236
81237
81238
81239echo
81240{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: neon http client plugins ***" >&5
81241$as_echo "$as_me: *** checking feature: neon http client plugins ***" >&6;}
81242if test "xneonhttpsrc" != "x"
81243then
81244  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: neonhttpsrc ***" >&5
81245$as_echo "$as_me: *** for plug-ins: neonhttpsrc ***" >&6;}
81246fi
81247NOUSE=
81248if test "x$USE_NEON" = "xno"; then
81249  NOUSE="yes"
81250fi
81251# Check whether --enable-neon was given.
81252if test "${enable_neon+set}" = set; then :
81253  enableval=$enable_neon;  case "${enableval}" in
81254      yes) USE_NEON=yes;;
81255      no) USE_NEON=no;;
81256      *) as_fn_error $? "bad value ${enableval} for --enable-neon" "$LINENO" 5 ;;
81257    esac
81258else
81259   USE_NEON=yes
81260fi
81261
81262if test "x$NOUSE" = "xyes"; then
81263  USE_NEON="no"
81264  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** neonhttpsrc pre-configured not to be built" >&5
81265$as_echo "$as_me: WARNING: *** neonhttpsrc pre-configured not to be built" >&2;}
81266fi
81267NOUSE=
81268
81269if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " NEON " > /dev/null; then
81270  USE_NEON="no"
81271  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** neonhttpsrc not ported" >&5
81272$as_echo "$as_me: WARNING: *** neonhttpsrc not ported" >&2;}
81273fi
81274
81275
81276if test x$USE_NEON = xyes; then
81277
81278  gst_check_save_LIBS=$LIBS
81279  gst_check_save_LDFLAGS=$LDFLAGS
81280  gst_check_save_CFLAGS=$CFLAGS
81281  gst_check_save_CPPFLAGS=$CPPFLAGS
81282  gst_check_save_CXXFLAGS=$CXXFLAGS
81283
81284  HAVE_NEON=no
81285
81286
81287pkg_failed=no
81288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEON" >&5
81289$as_echo_n "checking for NEON... " >&6; }
81290
81291if test -n "$PKG_CONFIG"; then
81292    if test -n "$NEON_CFLAGS"; then
81293        pkg_cv_NEON_CFLAGS="$NEON_CFLAGS"
81294    else
81295        if test -n "$PKG_CONFIG" && \
81296    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27.0  neon <= 0.32.99\""; } >&5
81297  ($PKG_CONFIG --exists --print-errors "neon >= 0.27.0  neon <= 0.32.99") 2>&5
81298  ac_status=$?
81299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81300  test $ac_status = 0; }; then
81301  pkg_cv_NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.27.0  neon <= 0.32.99" 2>/dev/null`
81302else
81303  pkg_failed=yes
81304fi
81305    fi
81306else
81307	pkg_failed=untried
81308fi
81309if test -n "$PKG_CONFIG"; then
81310    if test -n "$NEON_LIBS"; then
81311        pkg_cv_NEON_LIBS="$NEON_LIBS"
81312    else
81313        if test -n "$PKG_CONFIG" && \
81314    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"neon >= 0.27.0  neon <= 0.32.99\""; } >&5
81315  ($PKG_CONFIG --exists --print-errors "neon >= 0.27.0  neon <= 0.32.99") 2>&5
81316  ac_status=$?
81317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81318  test $ac_status = 0; }; then
81319  pkg_cv_NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.27.0  neon <= 0.32.99" 2>/dev/null`
81320else
81321  pkg_failed=yes
81322fi
81323    fi
81324else
81325	pkg_failed=untried
81326fi
81327
81328
81329
81330if test $pkg_failed = yes; then
81331
81332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81333        _pkg_short_errors_supported=yes
81334else
81335        _pkg_short_errors_supported=no
81336fi
81337        if test $_pkg_short_errors_supported = yes; then
81338	        NEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "neon >= 0.27.0  neon <= 0.32.99"`
81339        else
81340	        NEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "neon >= 0.27.0  neon <= 0.32.99"`
81341        fi
81342	# Put the nasty error message in config.log where it belongs
81343	echo "$NEON_PKG_ERRORS" >&5
81344
81345	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81346$as_echo "no" >&6; }
81347
81348    HAVE_NEON="no"
81349
81350elif test $pkg_failed = untried; then
81351
81352    HAVE_NEON="no"
81353
81354else
81355	NEON_CFLAGS=$pkg_cv_NEON_CFLAGS
81356	NEON_LIBS=$pkg_cv_NEON_LIBS
81357        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81358$as_echo "yes" >&6; }
81359	HAVE_NEON="yes"
81360fi
81361
81362
81363
81364
81365  LIBS=$gst_check_save_LIBS
81366  LDFLAGS=$gst_check_save_LDFLAGS
81367  CFLAGS=$gst_check_save_CFLAGS
81368  CPPFLAGS=$gst_check_save_CPPFLAGS
81369  CXXFLAGS=$gst_check_save_CXXFLAGS
81370
81371    if test x$HAVE_NEON = xno; then
81372    USE_NEON=no
81373  else
81374    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: neonhttpsrc" >&5
81375$as_echo "$as_me: *** These plugins will be built: neonhttpsrc" >&6;}
81376  fi
81377fi
81378if test x$USE_NEON = xyes; then
81379  :
81380  if test "xneonhttpsrc" != "x"; then
81381    GST_PLUGINS_YES="\tneonhttpsrc\n$GST_PLUGINS_YES"
81382  fi
81383
81384$as_echo "#define HAVE_NEON /**/" >>confdefs.h
81385
81386else
81387  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: neonhttpsrc" >&5
81388$as_echo "$as_me: *** These plugins will not be built: neonhttpsrc" >&6;}
81389  if test "xneonhttpsrc" != "x"; then
81390    GST_PLUGINS_NO="\tneonhttpsrc\n$GST_PLUGINS_NO"
81391  fi
81392  :
81393fi
81394 if test x$USE_NEON = xyes; then
81395  USE_NEON_TRUE=
81396  USE_NEON_FALSE='#'
81397else
81398  USE_NEON_TRUE='#'
81399  USE_NEON_FALSE=
81400fi
81401
81402
81403
81404echo
81405{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: ofa plugins ***" >&5
81406$as_echo "$as_me: *** checking feature: ofa plugins ***" >&6;}
81407if test "xofa" != "x"
81408then
81409  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: ofa ***" >&5
81410$as_echo "$as_me: *** for plug-ins: ofa ***" >&6;}
81411fi
81412NOUSE=
81413if test "x$USE_OFA" = "xno"; then
81414  NOUSE="yes"
81415fi
81416# Check whether --enable-ofa was given.
81417if test "${enable_ofa+set}" = set; then :
81418  enableval=$enable_ofa;  case "${enableval}" in
81419      yes) USE_OFA=yes;;
81420      no) USE_OFA=no;;
81421      *) as_fn_error $? "bad value ${enableval} for --enable-ofa" "$LINENO" 5 ;;
81422    esac
81423else
81424   USE_OFA=yes
81425fi
81426
81427if test "x$NOUSE" = "xyes"; then
81428  USE_OFA="no"
81429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ofa pre-configured not to be built" >&5
81430$as_echo "$as_me: WARNING: *** ofa pre-configured not to be built" >&2;}
81431fi
81432NOUSE=
81433
81434if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OFA " > /dev/null; then
81435  USE_OFA="no"
81436  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ofa not ported" >&5
81437$as_echo "$as_me: WARNING: *** ofa not ported" >&2;}
81438fi
81439
81440
81441if test x$USE_OFA = xyes; then
81442
81443  gst_check_save_LIBS=$LIBS
81444  gst_check_save_LDFLAGS=$LDFLAGS
81445  gst_check_save_CFLAGS=$CFLAGS
81446  gst_check_save_CPPFLAGS=$CPPFLAGS
81447  gst_check_save_CXXFLAGS=$CXXFLAGS
81448
81449  HAVE_OFA=no
81450
81451
81452pkg_failed=no
81453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OFA" >&5
81454$as_echo_n "checking for OFA... " >&6; }
81455
81456if test -n "$PKG_CONFIG"; then
81457    if test -n "$OFA_CFLAGS"; then
81458        pkg_cv_OFA_CFLAGS="$OFA_CFLAGS"
81459    else
81460        if test -n "$PKG_CONFIG" && \
81461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libofa >= 0.9.3\""; } >&5
81462  ($PKG_CONFIG --exists --print-errors "libofa >= 0.9.3") 2>&5
81463  ac_status=$?
81464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81465  test $ac_status = 0; }; then
81466  pkg_cv_OFA_CFLAGS=`$PKG_CONFIG --cflags "libofa >= 0.9.3" 2>/dev/null`
81467else
81468  pkg_failed=yes
81469fi
81470    fi
81471else
81472	pkg_failed=untried
81473fi
81474if test -n "$PKG_CONFIG"; then
81475    if test -n "$OFA_LIBS"; then
81476        pkg_cv_OFA_LIBS="$OFA_LIBS"
81477    else
81478        if test -n "$PKG_CONFIG" && \
81479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libofa >= 0.9.3\""; } >&5
81480  ($PKG_CONFIG --exists --print-errors "libofa >= 0.9.3") 2>&5
81481  ac_status=$?
81482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81483  test $ac_status = 0; }; then
81484  pkg_cv_OFA_LIBS=`$PKG_CONFIG --libs "libofa >= 0.9.3" 2>/dev/null`
81485else
81486  pkg_failed=yes
81487fi
81488    fi
81489else
81490	pkg_failed=untried
81491fi
81492
81493
81494
81495if test $pkg_failed = yes; then
81496
81497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81498        _pkg_short_errors_supported=yes
81499else
81500        _pkg_short_errors_supported=no
81501fi
81502        if test $_pkg_short_errors_supported = yes; then
81503	        OFA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libofa >= 0.9.3"`
81504        else
81505	        OFA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libofa >= 0.9.3"`
81506        fi
81507	# Put the nasty error message in config.log where it belongs
81508	echo "$OFA_PKG_ERRORS" >&5
81509
81510	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81511$as_echo "no" >&6; }
81512
81513    HAVE_OFA="no"
81514
81515elif test $pkg_failed = untried; then
81516
81517    HAVE_OFA="no"
81518
81519else
81520	OFA_CFLAGS=$pkg_cv_OFA_CFLAGS
81521	OFA_LIBS=$pkg_cv_OFA_LIBS
81522        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81523$as_echo "yes" >&6; }
81524	HAVE_OFA="yes"
81525fi
81526
81527
81528
81529
81530  LIBS=$gst_check_save_LIBS
81531  LDFLAGS=$gst_check_save_LDFLAGS
81532  CFLAGS=$gst_check_save_CFLAGS
81533  CPPFLAGS=$gst_check_save_CPPFLAGS
81534  CXXFLAGS=$gst_check_save_CXXFLAGS
81535
81536    if test x$HAVE_OFA = xno; then
81537    USE_OFA=no
81538  else
81539    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: ofa" >&5
81540$as_echo "$as_me: *** These plugins will be built: ofa" >&6;}
81541  fi
81542fi
81543if test x$USE_OFA = xyes; then
81544  :
81545  if test "xofa" != "x"; then
81546    GST_PLUGINS_YES="\tofa\n$GST_PLUGINS_YES"
81547  fi
81548
81549$as_echo "#define HAVE_OFA /**/" >>confdefs.h
81550
81551else
81552  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: ofa" >&5
81553$as_echo "$as_me: *** These plugins will not be built: ofa" >&6;}
81554  if test "xofa" != "x"; then
81555    GST_PLUGINS_NO="\tofa\n$GST_PLUGINS_NO"
81556  fi
81557  :
81558fi
81559 if test x$USE_OFA = xyes; then
81560  USE_OFA_TRUE=
81561  USE_OFA_FALSE='#'
81562else
81563  USE_OFA_TRUE='#'
81564  USE_OFA_FALSE=
81565fi
81566
81567
81568
81569echo
81570{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: OpenAL plugin ***" >&5
81571$as_echo "$as_me: *** checking feature: OpenAL plugin ***" >&6;}
81572if test "xopenal" != "x"
81573then
81574  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openal ***" >&5
81575$as_echo "$as_me: *** for plug-ins: openal ***" >&6;}
81576fi
81577NOUSE=
81578if test "x$USE_OPENAL" = "xno"; then
81579  NOUSE="yes"
81580fi
81581# Check whether --enable-openal was given.
81582if test "${enable_openal+set}" = set; then :
81583  enableval=$enable_openal;  case "${enableval}" in
81584      yes) USE_OPENAL=yes;;
81585      no) USE_OPENAL=no;;
81586      *) as_fn_error $? "bad value ${enableval} for --enable-openal" "$LINENO" 5 ;;
81587    esac
81588else
81589   USE_OPENAL=yes
81590fi
81591
81592if test "x$NOUSE" = "xyes"; then
81593  USE_OPENAL="no"
81594  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openal pre-configured not to be built" >&5
81595$as_echo "$as_me: WARNING: *** openal pre-configured not to be built" >&2;}
81596fi
81597NOUSE=
81598
81599if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENAL " > /dev/null; then
81600  USE_OPENAL="no"
81601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openal not ported" >&5
81602$as_echo "$as_me: WARNING: *** openal not ported" >&2;}
81603fi
81604
81605
81606if test x$USE_OPENAL = xyes; then
81607
81608  gst_check_save_LIBS=$LIBS
81609  gst_check_save_LDFLAGS=$LDFLAGS
81610  gst_check_save_CFLAGS=$CFLAGS
81611  gst_check_save_CPPFLAGS=$CPPFLAGS
81612  gst_check_save_CXXFLAGS=$CXXFLAGS
81613
81614  HAVE_OPENAL=no
81615
81616
81617pkg_failed=no
81618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENAL" >&5
81619$as_echo_n "checking for OPENAL... " >&6; }
81620
81621if test -n "$PKG_CONFIG"; then
81622    if test -n "$OPENAL_CFLAGS"; then
81623        pkg_cv_OPENAL_CFLAGS="$OPENAL_CFLAGS"
81624    else
81625        if test -n "$PKG_CONFIG" && \
81626    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal >= 1.14\""; } >&5
81627  ($PKG_CONFIG --exists --print-errors "openal >= 1.14") 2>&5
81628  ac_status=$?
81629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81630  test $ac_status = 0; }; then
81631  pkg_cv_OPENAL_CFLAGS=`$PKG_CONFIG --cflags "openal >= 1.14" 2>/dev/null`
81632else
81633  pkg_failed=yes
81634fi
81635    fi
81636else
81637	pkg_failed=untried
81638fi
81639if test -n "$PKG_CONFIG"; then
81640    if test -n "$OPENAL_LIBS"; then
81641        pkg_cv_OPENAL_LIBS="$OPENAL_LIBS"
81642    else
81643        if test -n "$PKG_CONFIG" && \
81644    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openal >= 1.14\""; } >&5
81645  ($PKG_CONFIG --exists --print-errors "openal >= 1.14") 2>&5
81646  ac_status=$?
81647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81648  test $ac_status = 0; }; then
81649  pkg_cv_OPENAL_LIBS=`$PKG_CONFIG --libs "openal >= 1.14" 2>/dev/null`
81650else
81651  pkg_failed=yes
81652fi
81653    fi
81654else
81655	pkg_failed=untried
81656fi
81657
81658
81659
81660if test $pkg_failed = yes; then
81661
81662if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81663        _pkg_short_errors_supported=yes
81664else
81665        _pkg_short_errors_supported=no
81666fi
81667        if test $_pkg_short_errors_supported = yes; then
81668	        OPENAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openal >= 1.14"`
81669        else
81670	        OPENAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openal >= 1.14"`
81671        fi
81672	# Put the nasty error message in config.log where it belongs
81673	echo "$OPENAL_PKG_ERRORS" >&5
81674
81675	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81676$as_echo "no" >&6; }
81677
81678    HAVE_OPENAL="no"
81679
81680elif test $pkg_failed = untried; then
81681
81682    HAVE_OPENAL="no"
81683
81684else
81685	OPENAL_CFLAGS=$pkg_cv_OPENAL_CFLAGS
81686	OPENAL_LIBS=$pkg_cv_OPENAL_LIBS
81687        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81688$as_echo "yes" >&6; }
81689	HAVE_OPENAL="yes"
81690fi
81691
81692
81693
81694
81695  LIBS=$gst_check_save_LIBS
81696  LDFLAGS=$gst_check_save_LDFLAGS
81697  CFLAGS=$gst_check_save_CFLAGS
81698  CPPFLAGS=$gst_check_save_CPPFLAGS
81699  CXXFLAGS=$gst_check_save_CXXFLAGS
81700
81701    if test x$HAVE_OPENAL = xno; then
81702    USE_OPENAL=no
81703  else
81704    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openal" >&5
81705$as_echo "$as_me: *** These plugins will be built: openal" >&6;}
81706  fi
81707fi
81708if test x$USE_OPENAL = xyes; then
81709  :
81710  if test "xopenal" != "x"; then
81711    GST_PLUGINS_YES="\topenal\n$GST_PLUGINS_YES"
81712  fi
81713
81714$as_echo "#define HAVE_OPENAL /**/" >>confdefs.h
81715
81716else
81717  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openal" >&5
81718$as_echo "$as_me: *** These plugins will not be built: openal" >&6;}
81719  if test "xopenal" != "x"; then
81720    GST_PLUGINS_NO="\topenal\n$GST_PLUGINS_NO"
81721  fi
81722  :
81723fi
81724 if test x$USE_OPENAL = xyes; then
81725  USE_OPENAL_TRUE=
81726  USE_OPENAL_FALSE='#'
81727else
81728  USE_OPENAL_TRUE='#'
81729  USE_OPENAL_FALSE=
81730fi
81731
81732
81733
81734echo
81735{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: opencv plugins ***" >&5
81736$as_echo "$as_me: *** checking feature: opencv plugins ***" >&6;}
81737if test "xopencv" != "x"
81738then
81739  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: opencv ***" >&5
81740$as_echo "$as_me: *** for plug-ins: opencv ***" >&6;}
81741fi
81742NOUSE=
81743if test "x$USE_OPENCV" = "xno"; then
81744  NOUSE="yes"
81745fi
81746# Check whether --enable-opencv was given.
81747if test "${enable_opencv+set}" = set; then :
81748  enableval=$enable_opencv;  case "${enableval}" in
81749      yes) USE_OPENCV=yes;;
81750      no) USE_OPENCV=no;;
81751      *) as_fn_error $? "bad value ${enableval} for --enable-opencv" "$LINENO" 5 ;;
81752    esac
81753else
81754   USE_OPENCV=yes
81755fi
81756
81757if test "x$NOUSE" = "xyes"; then
81758  USE_OPENCV="no"
81759  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opencv pre-configured not to be built" >&5
81760$as_echo "$as_me: WARNING: *** opencv pre-configured not to be built" >&2;}
81761fi
81762NOUSE=
81763
81764if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENCV " > /dev/null; then
81765  USE_OPENCV="no"
81766  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opencv not ported" >&5
81767$as_echo "$as_me: WARNING: *** opencv not ported" >&2;}
81768fi
81769
81770
81771if test x$USE_OPENCV = xyes; then
81772
81773  gst_check_save_LIBS=$LIBS
81774  gst_check_save_LDFLAGS=$LDFLAGS
81775  gst_check_save_CFLAGS=$CFLAGS
81776  gst_check_save_CPPFLAGS=$CPPFLAGS
81777  gst_check_save_CXXFLAGS=$CXXFLAGS
81778
81779  HAVE_OPENCV=no
81780
81781
81782pkg_failed=no
81783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCV" >&5
81784$as_echo_n "checking for OPENCV... " >&6; }
81785
81786if test -n "$PKG_CONFIG"; then
81787    if test -n "$OPENCV_CFLAGS"; then
81788        pkg_cv_OPENCV_CFLAGS="$OPENCV_CFLAGS"
81789    else
81790        if test -n "$PKG_CONFIG" && \
81791    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv >= 3.0.0 opencv < 3.5.0 \""; } >&5
81792  ($PKG_CONFIG --exists --print-errors "opencv >= 3.0.0 opencv < 3.5.0 ") 2>&5
81793  ac_status=$?
81794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81795  test $ac_status = 0; }; then
81796  pkg_cv_OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv >= 3.0.0 opencv < 3.5.0 " 2>/dev/null`
81797else
81798  pkg_failed=yes
81799fi
81800    fi
81801else
81802	pkg_failed=untried
81803fi
81804if test -n "$PKG_CONFIG"; then
81805    if test -n "$OPENCV_LIBS"; then
81806        pkg_cv_OPENCV_LIBS="$OPENCV_LIBS"
81807    else
81808        if test -n "$PKG_CONFIG" && \
81809    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv >= 3.0.0 opencv < 3.5.0 \""; } >&5
81810  ($PKG_CONFIG --exists --print-errors "opencv >= 3.0.0 opencv < 3.5.0 ") 2>&5
81811  ac_status=$?
81812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81813  test $ac_status = 0; }; then
81814  pkg_cv_OPENCV_LIBS=`$PKG_CONFIG --libs "opencv >= 3.0.0 opencv < 3.5.0 " 2>/dev/null`
81815else
81816  pkg_failed=yes
81817fi
81818    fi
81819else
81820	pkg_failed=untried
81821fi
81822
81823
81824
81825if test $pkg_failed = yes; then
81826
81827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81828        _pkg_short_errors_supported=yes
81829else
81830        _pkg_short_errors_supported=no
81831fi
81832        if test $_pkg_short_errors_supported = yes; then
81833	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv >= 3.0.0 opencv < 3.5.0 "`
81834        else
81835	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv >= 3.0.0 opencv < 3.5.0 "`
81836        fi
81837	# Put the nasty error message in config.log where it belongs
81838	echo "$OPENCV_PKG_ERRORS" >&5
81839
81840	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81841$as_echo "no" >&6; }
81842
81843
81844pkg_failed=no
81845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCV" >&5
81846$as_echo_n "checking for OPENCV... " >&6; }
81847
81848if test -n "$PKG_CONFIG"; then
81849    if test -n "$OPENCV_CFLAGS"; then
81850        pkg_cv_OPENCV_CFLAGS="$OPENCV_CFLAGS"
81851    else
81852        if test -n "$PKG_CONFIG" && \
81853    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4 >= 4.0.0 opencv4 < 4.6.0 \""; } >&5
81854  ($PKG_CONFIG --exists --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 ") 2>&5
81855  ac_status=$?
81856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81857  test $ac_status = 0; }; then
81858  pkg_cv_OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv4 >= 4.0.0 opencv4 < 4.6.0 " 2>/dev/null`
81859else
81860  pkg_failed=yes
81861fi
81862    fi
81863else
81864	pkg_failed=untried
81865fi
81866if test -n "$PKG_CONFIG"; then
81867    if test -n "$OPENCV_LIBS"; then
81868        pkg_cv_OPENCV_LIBS="$OPENCV_LIBS"
81869    else
81870        if test -n "$PKG_CONFIG" && \
81871    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4 >= 4.0.0 opencv4 < 4.6.0 \""; } >&5
81872  ($PKG_CONFIG --exists --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 ") 2>&5
81873  ac_status=$?
81874  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
81875  test $ac_status = 0; }; then
81876  pkg_cv_OPENCV_LIBS=`$PKG_CONFIG --libs "opencv4 >= 4.0.0 opencv4 < 4.6.0 " 2>/dev/null`
81877else
81878  pkg_failed=yes
81879fi
81880    fi
81881else
81882	pkg_failed=untried
81883fi
81884
81885
81886
81887if test $pkg_failed = yes; then
81888
81889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
81890        _pkg_short_errors_supported=yes
81891else
81892        _pkg_short_errors_supported=no
81893fi
81894        if test $_pkg_short_errors_supported = yes; then
81895	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 "`
81896        else
81897	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 "`
81898        fi
81899	# Put the nasty error message in config.log where it belongs
81900	echo "$OPENCV_PKG_ERRORS" >&5
81901
81902	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81903$as_echo "no" >&6; }
81904
81905    HAVE_OPENCV="no"
81906
81907elif test $pkg_failed = untried; then
81908
81909    HAVE_OPENCV="no"
81910
81911else
81912	OPENCV_CFLAGS=$pkg_cv_OPENCV_CFLAGS
81913	OPENCV_LIBS=$pkg_cv_OPENCV_LIBS
81914        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
81915$as_echo "yes" >&6; }
81916
81917    ac_ext=cpp
81918ac_cpp='$CXXCPP $CPPFLAGS'
81919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
81920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
81921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81922if test -z "$CXX"; then
81923  if test -n "$CCC"; then
81924    CXX=$CCC
81925  else
81926    if test -n "$ac_tool_prefix"; then
81927  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
81928  do
81929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
81930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81932$as_echo_n "checking for $ac_word... " >&6; }
81933if ${ac_cv_prog_CXX+:} false; then :
81934  $as_echo_n "(cached) " >&6
81935else
81936  if test -n "$CXX"; then
81937  ac_cv_prog_CXX="$CXX" # Let the user override the test.
81938else
81939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81940for as_dir in $PATH
81941do
81942  IFS=$as_save_IFS
81943  test -z "$as_dir" && as_dir=.
81944    for ac_exec_ext in '' $ac_executable_extensions; do
81945  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81946    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
81948    break 2
81949  fi
81950done
81951  done
81952IFS=$as_save_IFS
81953
81954fi
81955fi
81956CXX=$ac_cv_prog_CXX
81957if test -n "$CXX"; then
81958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
81959$as_echo "$CXX" >&6; }
81960else
81961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
81962$as_echo "no" >&6; }
81963fi
81964
81965
81966    test -n "$CXX" && break
81967  done
81968fi
81969if test -z "$CXX"; then
81970  ac_ct_CXX=$CXX
81971  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
81972do
81973  # Extract the first word of "$ac_prog", so it can be a program name with args.
81974set dummy $ac_prog; ac_word=$2
81975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81976$as_echo_n "checking for $ac_word... " >&6; }
81977if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81978  $as_echo_n "(cached) " >&6
81979else
81980  if test -n "$ac_ct_CXX"; then
81981  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
81982else
81983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81984for as_dir in $PATH
81985do
81986  IFS=$as_save_IFS
81987  test -z "$as_dir" && as_dir=.
81988    for ac_exec_ext in '' $ac_executable_extensions; do
81989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81990    ac_cv_prog_ac_ct_CXX="$ac_prog"
81991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
81992    break 2
81993  fi
81994done
81995  done
81996IFS=$as_save_IFS
81997
81998fi
81999fi
82000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
82001if test -n "$ac_ct_CXX"; then
82002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
82003$as_echo "$ac_ct_CXX" >&6; }
82004else
82005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82006$as_echo "no" >&6; }
82007fi
82008
82009
82010  test -n "$ac_ct_CXX" && break
82011done
82012
82013  if test "x$ac_ct_CXX" = x; then
82014    CXX="g++"
82015  else
82016    case $cross_compiling:$ac_tool_warned in
82017yes:)
82018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
82019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82020ac_tool_warned=yes ;;
82021esac
82022    CXX=$ac_ct_CXX
82023  fi
82024fi
82025
82026  fi
82027fi
82028# Provide some information about the compiler.
82029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
82030set X $ac_compile
82031ac_compiler=$2
82032for ac_option in --version -v -V -qversion; do
82033  { { ac_try="$ac_compiler $ac_option >&5"
82034case "(($ac_try" in
82035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82036  *) ac_try_echo=$ac_try;;
82037esac
82038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
82039$as_echo "$ac_try_echo"; } >&5
82040  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
82041  ac_status=$?
82042  if test -s conftest.err; then
82043    sed '10a\
82044... rest of stderr output deleted ...
82045         10q' conftest.err >conftest.er1
82046    cat conftest.er1 >&5
82047  fi
82048  rm -f conftest.er1 conftest.err
82049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82050  test $ac_status = 0; }
82051done
82052
82053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
82054$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
82055if ${ac_cv_cxx_compiler_gnu+:} false; then :
82056  $as_echo_n "(cached) " >&6
82057else
82058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82059/* end confdefs.h.  */
82060
82061int
82062main ()
82063{
82064#ifndef __GNUC__
82065       choke me
82066#endif
82067
82068  ;
82069  return 0;
82070}
82071_ACEOF
82072if ac_fn_cxx_try_compile "$LINENO"; then :
82073  ac_compiler_gnu=yes
82074else
82075  ac_compiler_gnu=no
82076fi
82077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82078ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
82079
82080fi
82081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
82082$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
82083if test $ac_compiler_gnu = yes; then
82084  GXX=yes
82085else
82086  GXX=
82087fi
82088ac_test_CXXFLAGS=${CXXFLAGS+set}
82089ac_save_CXXFLAGS=$CXXFLAGS
82090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
82091$as_echo_n "checking whether $CXX accepts -g... " >&6; }
82092if ${ac_cv_prog_cxx_g+:} false; then :
82093  $as_echo_n "(cached) " >&6
82094else
82095  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
82096   ac_cxx_werror_flag=yes
82097   ac_cv_prog_cxx_g=no
82098   CXXFLAGS="-g"
82099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82100/* end confdefs.h.  */
82101
82102int
82103main ()
82104{
82105
82106  ;
82107  return 0;
82108}
82109_ACEOF
82110if ac_fn_cxx_try_compile "$LINENO"; then :
82111  ac_cv_prog_cxx_g=yes
82112else
82113  CXXFLAGS=""
82114      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82115/* end confdefs.h.  */
82116
82117int
82118main ()
82119{
82120
82121  ;
82122  return 0;
82123}
82124_ACEOF
82125if ac_fn_cxx_try_compile "$LINENO"; then :
82126
82127else
82128  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
82129	 CXXFLAGS="-g"
82130	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82131/* end confdefs.h.  */
82132
82133int
82134main ()
82135{
82136
82137  ;
82138  return 0;
82139}
82140_ACEOF
82141if ac_fn_cxx_try_compile "$LINENO"; then :
82142  ac_cv_prog_cxx_g=yes
82143fi
82144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82145fi
82146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82147fi
82148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82149   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
82150fi
82151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
82152$as_echo "$ac_cv_prog_cxx_g" >&6; }
82153if test "$ac_test_CXXFLAGS" = set; then
82154  CXXFLAGS=$ac_save_CXXFLAGS
82155elif test $ac_cv_prog_cxx_g = yes; then
82156  if test "$GXX" = yes; then
82157    CXXFLAGS="-g -O2"
82158  else
82159    CXXFLAGS="-g"
82160  fi
82161else
82162  if test "$GXX" = yes; then
82163    CXXFLAGS="-O2"
82164  else
82165    CXXFLAGS=
82166  fi
82167fi
82168ac_ext=c
82169ac_cpp='$CPP $CPPFLAGS'
82170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82172ac_compiler_gnu=$ac_cv_c_compiler_gnu
82173
82174depcc="$CXX"  am_compiler_list=
82175
82176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
82177$as_echo_n "checking dependency style of $depcc... " >&6; }
82178if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
82179  $as_echo_n "(cached) " >&6
82180else
82181  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
82182  # We make a subdir and do the tests there.  Otherwise we can end up
82183  # making bogus files that we don't know about and never remove.  For
82184  # instance it was reported that on HP-UX the gcc test will end up
82185  # making a dummy file named 'D' -- because '-MD' means "put the output
82186  # in D".
82187  rm -rf conftest.dir
82188  mkdir conftest.dir
82189  # Copy depcomp to subdir because otherwise we won't find it if we're
82190  # using a relative directory.
82191  cp "$am_depcomp" conftest.dir
82192  cd conftest.dir
82193  # We will build objects and dependencies in a subdirectory because
82194  # it helps to detect inapplicable dependency modes.  For instance
82195  # both Tru64's cc and ICC support -MD to output dependencies as a
82196  # side effect of compilation, but ICC will put the dependencies in
82197  # the current directory while Tru64 will put them in the object
82198  # directory.
82199  mkdir sub
82200
82201  am_cv_CXX_dependencies_compiler_type=none
82202  if test "$am_compiler_list" = ""; then
82203     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
82204  fi
82205  am__universal=false
82206  case " $depcc " in #(
82207     *\ -arch\ *\ -arch\ *) am__universal=true ;;
82208     esac
82209
82210  for depmode in $am_compiler_list; do
82211    # Setup a source with many dependencies, because some compilers
82212    # like to wrap large dependency lists on column 80 (with \), and
82213    # we should not choose a depcomp mode which is confused by this.
82214    #
82215    # We need to recreate these files for each test, as the compiler may
82216    # overwrite some of them when testing with obscure command lines.
82217    # This happens at least with the AIX C compiler.
82218    : > sub/conftest.c
82219    for i in 1 2 3 4 5 6; do
82220      echo '#include "conftst'$i'.h"' >> sub/conftest.c
82221      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
82222      # Solaris 10 /bin/sh.
82223      echo '/* dummy */' > sub/conftst$i.h
82224    done
82225    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
82226
82227    # We check with '-c' and '-o' for the sake of the "dashmstdout"
82228    # mode.  It turns out that the SunPro C++ compiler does not properly
82229    # handle '-M -o', and we need to detect this.  Also, some Intel
82230    # versions had trouble with output in subdirs.
82231    am__obj=sub/conftest.${OBJEXT-o}
82232    am__minus_obj="-o $am__obj"
82233    case $depmode in
82234    gcc)
82235      # This depmode causes a compiler race in universal mode.
82236      test "$am__universal" = false || continue
82237      ;;
82238    nosideeffect)
82239      # After this tag, mechanisms are not by side-effect, so they'll
82240      # only be used when explicitly requested.
82241      if test "x$enable_dependency_tracking" = xyes; then
82242	continue
82243      else
82244	break
82245      fi
82246      ;;
82247    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
82248      # This compiler won't grok '-c -o', but also, the minuso test has
82249      # not run yet.  These depmodes are late enough in the game, and
82250      # so weak that their functioning should not be impacted.
82251      am__obj=conftest.${OBJEXT-o}
82252      am__minus_obj=
82253      ;;
82254    none) break ;;
82255    esac
82256    if depmode=$depmode \
82257       source=sub/conftest.c object=$am__obj \
82258       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
82259       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
82260         >/dev/null 2>conftest.err &&
82261       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
82262       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
82263       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
82264       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
82265      # icc doesn't choke on unknown options, it will just issue warnings
82266      # or remarks (even with -Werror).  So we grep stderr for any message
82267      # that says an option was ignored or not supported.
82268      # When given -MP, icc 7.0 and 7.1 complain thusly:
82269      #   icc: Command line warning: ignoring option '-M'; no argument required
82270      # The diagnosis changed in icc 8.0:
82271      #   icc: Command line remark: option '-MP' not supported
82272      if (grep 'ignoring option' conftest.err ||
82273          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
82274        am_cv_CXX_dependencies_compiler_type=$depmode
82275        break
82276      fi
82277    fi
82278  done
82279
82280  cd ..
82281  rm -rf conftest.dir
82282else
82283  am_cv_CXX_dependencies_compiler_type=none
82284fi
82285
82286fi
82287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
82288$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
82289CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
82290
82291 if
82292  test "x$enable_dependency_tracking" != xno \
82293  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
82294  am__fastdepCXX_TRUE=
82295  am__fastdepCXX_FALSE='#'
82296else
82297  am__fastdepCXX_TRUE='#'
82298  am__fastdepCXX_FALSE=
82299fi
82300
82301
82302    ac_ext=cpp
82303ac_cpp='$CXXCPP $CPPFLAGS'
82304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
82307
82308    OLD_CPPFLAGS=$CPPFLAGS
82309    CPPFLAGS=$OPENCV_CFLAGS
82310    something_not_found=no
82311    for ac_header in opencv2/bgsegm.hpp \
82312                      opencv2/calib3d.hpp \
82313                      opencv2/core.hpp \
82314                      opencv2/imgproc.hpp \
82315                      opencv2/objdetect.hpp \
82316                      opencv2/opencv.hpp \
82317                      opencv2/video.hpp \
82318                      opencv2/bgsegm.hpp
82319do :
82320  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
82321ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
82322if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
82323  cat >>confdefs.h <<_ACEOF
82324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
82325_ACEOF
82326
82327else
82328  something_not_found=yes
82329fi
82330
82331done
82332
82333
82334    CPPFLAGS=$OLD_CPPFLAGS
82335    ac_ext=c
82336ac_cpp='$CPP $CPPFLAGS'
82337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82339ac_compiler_gnu=$ac_cv_c_compiler_gnu
82340
82341
82342    if test $something_not_found = "yes"; then
82343      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not all opencv2 headers were found" >&5
82344$as_echo "not all opencv2 headers were found" >&6; }
82345      HAVE_OPENCV="no"
82346    else
82347      HAVE_OPENCV="yes"
82348    fi
82349
82350fi
82351
82352elif test $pkg_failed = untried; then
82353
82354
82355pkg_failed=no
82356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCV" >&5
82357$as_echo_n "checking for OPENCV... " >&6; }
82358
82359if test -n "$PKG_CONFIG"; then
82360    if test -n "$OPENCV_CFLAGS"; then
82361        pkg_cv_OPENCV_CFLAGS="$OPENCV_CFLAGS"
82362    else
82363        if test -n "$PKG_CONFIG" && \
82364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4 >= 4.0.0 opencv4 < 4.6.0 \""; } >&5
82365  ($PKG_CONFIG --exists --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 ") 2>&5
82366  ac_status=$?
82367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82368  test $ac_status = 0; }; then
82369  pkg_cv_OPENCV_CFLAGS=`$PKG_CONFIG --cflags "opencv4 >= 4.0.0 opencv4 < 4.6.0 " 2>/dev/null`
82370else
82371  pkg_failed=yes
82372fi
82373    fi
82374else
82375	pkg_failed=untried
82376fi
82377if test -n "$PKG_CONFIG"; then
82378    if test -n "$OPENCV_LIBS"; then
82379        pkg_cv_OPENCV_LIBS="$OPENCV_LIBS"
82380    else
82381        if test -n "$PKG_CONFIG" && \
82382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencv4 >= 4.0.0 opencv4 < 4.6.0 \""; } >&5
82383  ($PKG_CONFIG --exists --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 ") 2>&5
82384  ac_status=$?
82385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82386  test $ac_status = 0; }; then
82387  pkg_cv_OPENCV_LIBS=`$PKG_CONFIG --libs "opencv4 >= 4.0.0 opencv4 < 4.6.0 " 2>/dev/null`
82388else
82389  pkg_failed=yes
82390fi
82391    fi
82392else
82393	pkg_failed=untried
82394fi
82395
82396
82397
82398if test $pkg_failed = yes; then
82399
82400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
82401        _pkg_short_errors_supported=yes
82402else
82403        _pkg_short_errors_supported=no
82404fi
82405        if test $_pkg_short_errors_supported = yes; then
82406	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 "`
82407        else
82408	        OPENCV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opencv4 >= 4.0.0 opencv4 < 4.6.0 "`
82409        fi
82410	# Put the nasty error message in config.log where it belongs
82411	echo "$OPENCV_PKG_ERRORS" >&5
82412
82413	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82414$as_echo "no" >&6; }
82415
82416    HAVE_OPENCV="no"
82417
82418elif test $pkg_failed = untried; then
82419
82420    HAVE_OPENCV="no"
82421
82422else
82423	OPENCV_CFLAGS=$pkg_cv_OPENCV_CFLAGS
82424	OPENCV_LIBS=$pkg_cv_OPENCV_LIBS
82425        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82426$as_echo "yes" >&6; }
82427
82428    ac_ext=cpp
82429ac_cpp='$CXXCPP $CPPFLAGS'
82430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
82433if test -z "$CXX"; then
82434  if test -n "$CCC"; then
82435    CXX=$CCC
82436  else
82437    if test -n "$ac_tool_prefix"; then
82438  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
82439  do
82440    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
82441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82443$as_echo_n "checking for $ac_word... " >&6; }
82444if ${ac_cv_prog_CXX+:} false; then :
82445  $as_echo_n "(cached) " >&6
82446else
82447  if test -n "$CXX"; then
82448  ac_cv_prog_CXX="$CXX" # Let the user override the test.
82449else
82450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82451for as_dir in $PATH
82452do
82453  IFS=$as_save_IFS
82454  test -z "$as_dir" && as_dir=.
82455    for ac_exec_ext in '' $ac_executable_extensions; do
82456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82457    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
82458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82459    break 2
82460  fi
82461done
82462  done
82463IFS=$as_save_IFS
82464
82465fi
82466fi
82467CXX=$ac_cv_prog_CXX
82468if test -n "$CXX"; then
82469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
82470$as_echo "$CXX" >&6; }
82471else
82472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82473$as_echo "no" >&6; }
82474fi
82475
82476
82477    test -n "$CXX" && break
82478  done
82479fi
82480if test -z "$CXX"; then
82481  ac_ct_CXX=$CXX
82482  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
82483do
82484  # Extract the first word of "$ac_prog", so it can be a program name with args.
82485set dummy $ac_prog; ac_word=$2
82486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82487$as_echo_n "checking for $ac_word... " >&6; }
82488if ${ac_cv_prog_ac_ct_CXX+:} false; then :
82489  $as_echo_n "(cached) " >&6
82490else
82491  if test -n "$ac_ct_CXX"; then
82492  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
82493else
82494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82495for as_dir in $PATH
82496do
82497  IFS=$as_save_IFS
82498  test -z "$as_dir" && as_dir=.
82499    for ac_exec_ext in '' $ac_executable_extensions; do
82500  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82501    ac_cv_prog_ac_ct_CXX="$ac_prog"
82502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82503    break 2
82504  fi
82505done
82506  done
82507IFS=$as_save_IFS
82508
82509fi
82510fi
82511ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
82512if test -n "$ac_ct_CXX"; then
82513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
82514$as_echo "$ac_ct_CXX" >&6; }
82515else
82516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82517$as_echo "no" >&6; }
82518fi
82519
82520
82521  test -n "$ac_ct_CXX" && break
82522done
82523
82524  if test "x$ac_ct_CXX" = x; then
82525    CXX="g++"
82526  else
82527    case $cross_compiling:$ac_tool_warned in
82528yes:)
82529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
82530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82531ac_tool_warned=yes ;;
82532esac
82533    CXX=$ac_ct_CXX
82534  fi
82535fi
82536
82537  fi
82538fi
82539# Provide some information about the compiler.
82540$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
82541set X $ac_compile
82542ac_compiler=$2
82543for ac_option in --version -v -V -qversion; do
82544  { { ac_try="$ac_compiler $ac_option >&5"
82545case "(($ac_try" in
82546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82547  *) ac_try_echo=$ac_try;;
82548esac
82549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
82550$as_echo "$ac_try_echo"; } >&5
82551  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
82552  ac_status=$?
82553  if test -s conftest.err; then
82554    sed '10a\
82555... rest of stderr output deleted ...
82556         10q' conftest.err >conftest.er1
82557    cat conftest.er1 >&5
82558  fi
82559  rm -f conftest.er1 conftest.err
82560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
82561  test $ac_status = 0; }
82562done
82563
82564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
82565$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
82566if ${ac_cv_cxx_compiler_gnu+:} false; then :
82567  $as_echo_n "(cached) " >&6
82568else
82569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82570/* end confdefs.h.  */
82571
82572int
82573main ()
82574{
82575#ifndef __GNUC__
82576       choke me
82577#endif
82578
82579  ;
82580  return 0;
82581}
82582_ACEOF
82583if ac_fn_cxx_try_compile "$LINENO"; then :
82584  ac_compiler_gnu=yes
82585else
82586  ac_compiler_gnu=no
82587fi
82588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82589ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
82590
82591fi
82592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
82593$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
82594if test $ac_compiler_gnu = yes; then
82595  GXX=yes
82596else
82597  GXX=
82598fi
82599ac_test_CXXFLAGS=${CXXFLAGS+set}
82600ac_save_CXXFLAGS=$CXXFLAGS
82601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
82602$as_echo_n "checking whether $CXX accepts -g... " >&6; }
82603if ${ac_cv_prog_cxx_g+:} false; then :
82604  $as_echo_n "(cached) " >&6
82605else
82606  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
82607   ac_cxx_werror_flag=yes
82608   ac_cv_prog_cxx_g=no
82609   CXXFLAGS="-g"
82610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82611/* end confdefs.h.  */
82612
82613int
82614main ()
82615{
82616
82617  ;
82618  return 0;
82619}
82620_ACEOF
82621if ac_fn_cxx_try_compile "$LINENO"; then :
82622  ac_cv_prog_cxx_g=yes
82623else
82624  CXXFLAGS=""
82625      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82626/* end confdefs.h.  */
82627
82628int
82629main ()
82630{
82631
82632  ;
82633  return 0;
82634}
82635_ACEOF
82636if ac_fn_cxx_try_compile "$LINENO"; then :
82637
82638else
82639  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
82640	 CXXFLAGS="-g"
82641	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82642/* end confdefs.h.  */
82643
82644int
82645main ()
82646{
82647
82648  ;
82649  return 0;
82650}
82651_ACEOF
82652if ac_fn_cxx_try_compile "$LINENO"; then :
82653  ac_cv_prog_cxx_g=yes
82654fi
82655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82656fi
82657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82658fi
82659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82660   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
82661fi
82662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
82663$as_echo "$ac_cv_prog_cxx_g" >&6; }
82664if test "$ac_test_CXXFLAGS" = set; then
82665  CXXFLAGS=$ac_save_CXXFLAGS
82666elif test $ac_cv_prog_cxx_g = yes; then
82667  if test "$GXX" = yes; then
82668    CXXFLAGS="-g -O2"
82669  else
82670    CXXFLAGS="-g"
82671  fi
82672else
82673  if test "$GXX" = yes; then
82674    CXXFLAGS="-O2"
82675  else
82676    CXXFLAGS=
82677  fi
82678fi
82679ac_ext=c
82680ac_cpp='$CPP $CPPFLAGS'
82681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82683ac_compiler_gnu=$ac_cv_c_compiler_gnu
82684
82685depcc="$CXX"  am_compiler_list=
82686
82687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
82688$as_echo_n "checking dependency style of $depcc... " >&6; }
82689if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
82690  $as_echo_n "(cached) " >&6
82691else
82692  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
82693  # We make a subdir and do the tests there.  Otherwise we can end up
82694  # making bogus files that we don't know about and never remove.  For
82695  # instance it was reported that on HP-UX the gcc test will end up
82696  # making a dummy file named 'D' -- because '-MD' means "put the output
82697  # in D".
82698  rm -rf conftest.dir
82699  mkdir conftest.dir
82700  # Copy depcomp to subdir because otherwise we won't find it if we're
82701  # using a relative directory.
82702  cp "$am_depcomp" conftest.dir
82703  cd conftest.dir
82704  # We will build objects and dependencies in a subdirectory because
82705  # it helps to detect inapplicable dependency modes.  For instance
82706  # both Tru64's cc and ICC support -MD to output dependencies as a
82707  # side effect of compilation, but ICC will put the dependencies in
82708  # the current directory while Tru64 will put them in the object
82709  # directory.
82710  mkdir sub
82711
82712  am_cv_CXX_dependencies_compiler_type=none
82713  if test "$am_compiler_list" = ""; then
82714     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
82715  fi
82716  am__universal=false
82717  case " $depcc " in #(
82718     *\ -arch\ *\ -arch\ *) am__universal=true ;;
82719     esac
82720
82721  for depmode in $am_compiler_list; do
82722    # Setup a source with many dependencies, because some compilers
82723    # like to wrap large dependency lists on column 80 (with \), and
82724    # we should not choose a depcomp mode which is confused by this.
82725    #
82726    # We need to recreate these files for each test, as the compiler may
82727    # overwrite some of them when testing with obscure command lines.
82728    # This happens at least with the AIX C compiler.
82729    : > sub/conftest.c
82730    for i in 1 2 3 4 5 6; do
82731      echo '#include "conftst'$i'.h"' >> sub/conftest.c
82732      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
82733      # Solaris 10 /bin/sh.
82734      echo '/* dummy */' > sub/conftst$i.h
82735    done
82736    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
82737
82738    # We check with '-c' and '-o' for the sake of the "dashmstdout"
82739    # mode.  It turns out that the SunPro C++ compiler does not properly
82740    # handle '-M -o', and we need to detect this.  Also, some Intel
82741    # versions had trouble with output in subdirs.
82742    am__obj=sub/conftest.${OBJEXT-o}
82743    am__minus_obj="-o $am__obj"
82744    case $depmode in
82745    gcc)
82746      # This depmode causes a compiler race in universal mode.
82747      test "$am__universal" = false || continue
82748      ;;
82749    nosideeffect)
82750      # After this tag, mechanisms are not by side-effect, so they'll
82751      # only be used when explicitly requested.
82752      if test "x$enable_dependency_tracking" = xyes; then
82753	continue
82754      else
82755	break
82756      fi
82757      ;;
82758    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
82759      # This compiler won't grok '-c -o', but also, the minuso test has
82760      # not run yet.  These depmodes are late enough in the game, and
82761      # so weak that their functioning should not be impacted.
82762      am__obj=conftest.${OBJEXT-o}
82763      am__minus_obj=
82764      ;;
82765    none) break ;;
82766    esac
82767    if depmode=$depmode \
82768       source=sub/conftest.c object=$am__obj \
82769       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
82770       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
82771         >/dev/null 2>conftest.err &&
82772       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
82773       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
82774       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
82775       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
82776      # icc doesn't choke on unknown options, it will just issue warnings
82777      # or remarks (even with -Werror).  So we grep stderr for any message
82778      # that says an option was ignored or not supported.
82779      # When given -MP, icc 7.0 and 7.1 complain thusly:
82780      #   icc: Command line warning: ignoring option '-M'; no argument required
82781      # The diagnosis changed in icc 8.0:
82782      #   icc: Command line remark: option '-MP' not supported
82783      if (grep 'ignoring option' conftest.err ||
82784          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
82785        am_cv_CXX_dependencies_compiler_type=$depmode
82786        break
82787      fi
82788    fi
82789  done
82790
82791  cd ..
82792  rm -rf conftest.dir
82793else
82794  am_cv_CXX_dependencies_compiler_type=none
82795fi
82796
82797fi
82798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
82799$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
82800CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
82801
82802 if
82803  test "x$enable_dependency_tracking" != xno \
82804  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
82805  am__fastdepCXX_TRUE=
82806  am__fastdepCXX_FALSE='#'
82807else
82808  am__fastdepCXX_TRUE='#'
82809  am__fastdepCXX_FALSE=
82810fi
82811
82812
82813    ac_ext=cpp
82814ac_cpp='$CXXCPP $CPPFLAGS'
82815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
82818
82819    OLD_CPPFLAGS=$CPPFLAGS
82820    CPPFLAGS=$OPENCV_CFLAGS
82821    something_not_found=no
82822    for ac_header in opencv2/bgsegm.hpp \
82823                      opencv2/calib3d.hpp \
82824                      opencv2/core.hpp \
82825                      opencv2/imgproc.hpp \
82826                      opencv2/objdetect.hpp \
82827                      opencv2/opencv.hpp \
82828                      opencv2/video.hpp \
82829                      opencv2/bgsegm.hpp
82830do :
82831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
82832ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
82833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
82834  cat >>confdefs.h <<_ACEOF
82835#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
82836_ACEOF
82837
82838else
82839  something_not_found=yes
82840fi
82841
82842done
82843
82844
82845    CPPFLAGS=$OLD_CPPFLAGS
82846    ac_ext=c
82847ac_cpp='$CPP $CPPFLAGS'
82848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82850ac_compiler_gnu=$ac_cv_c_compiler_gnu
82851
82852
82853    if test $something_not_found = "yes"; then
82854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not all opencv2 headers were found" >&5
82855$as_echo "not all opencv2 headers were found" >&6; }
82856      HAVE_OPENCV="no"
82857    else
82858      HAVE_OPENCV="yes"
82859    fi
82860
82861fi
82862
82863else
82864	OPENCV_CFLAGS=$pkg_cv_OPENCV_CFLAGS
82865	OPENCV_LIBS=$pkg_cv_OPENCV_LIBS
82866        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
82867$as_echo "yes" >&6; }
82868
82869    ac_ext=cpp
82870ac_cpp='$CXXCPP $CPPFLAGS'
82871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
82872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
82873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
82874if test -z "$CXX"; then
82875  if test -n "$CCC"; then
82876    CXX=$CCC
82877  else
82878    if test -n "$ac_tool_prefix"; then
82879  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
82880  do
82881    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
82882set dummy $ac_tool_prefix$ac_prog; ac_word=$2
82883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82884$as_echo_n "checking for $ac_word... " >&6; }
82885if ${ac_cv_prog_CXX+:} false; then :
82886  $as_echo_n "(cached) " >&6
82887else
82888  if test -n "$CXX"; then
82889  ac_cv_prog_CXX="$CXX" # Let the user override the test.
82890else
82891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82892for as_dir in $PATH
82893do
82894  IFS=$as_save_IFS
82895  test -z "$as_dir" && as_dir=.
82896    for ac_exec_ext in '' $ac_executable_extensions; do
82897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82898    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
82899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82900    break 2
82901  fi
82902done
82903  done
82904IFS=$as_save_IFS
82905
82906fi
82907fi
82908CXX=$ac_cv_prog_CXX
82909if test -n "$CXX"; then
82910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
82911$as_echo "$CXX" >&6; }
82912else
82913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82914$as_echo "no" >&6; }
82915fi
82916
82917
82918    test -n "$CXX" && break
82919  done
82920fi
82921if test -z "$CXX"; then
82922  ac_ct_CXX=$CXX
82923  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
82924do
82925  # Extract the first word of "$ac_prog", so it can be a program name with args.
82926set dummy $ac_prog; ac_word=$2
82927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82928$as_echo_n "checking for $ac_word... " >&6; }
82929if ${ac_cv_prog_ac_ct_CXX+:} false; then :
82930  $as_echo_n "(cached) " >&6
82931else
82932  if test -n "$ac_ct_CXX"; then
82933  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
82934else
82935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82936for as_dir in $PATH
82937do
82938  IFS=$as_save_IFS
82939  test -z "$as_dir" && as_dir=.
82940    for ac_exec_ext in '' $ac_executable_extensions; do
82941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82942    ac_cv_prog_ac_ct_CXX="$ac_prog"
82943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82944    break 2
82945  fi
82946done
82947  done
82948IFS=$as_save_IFS
82949
82950fi
82951fi
82952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
82953if test -n "$ac_ct_CXX"; then
82954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
82955$as_echo "$ac_ct_CXX" >&6; }
82956else
82957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
82958$as_echo "no" >&6; }
82959fi
82960
82961
82962  test -n "$ac_ct_CXX" && break
82963done
82964
82965  if test "x$ac_ct_CXX" = x; then
82966    CXX="g++"
82967  else
82968    case $cross_compiling:$ac_tool_warned in
82969yes:)
82970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
82971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
82972ac_tool_warned=yes ;;
82973esac
82974    CXX=$ac_ct_CXX
82975  fi
82976fi
82977
82978  fi
82979fi
82980# Provide some information about the compiler.
82981$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
82982set X $ac_compile
82983ac_compiler=$2
82984for ac_option in --version -v -V -qversion; do
82985  { { ac_try="$ac_compiler $ac_option >&5"
82986case "(($ac_try" in
82987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
82988  *) ac_try_echo=$ac_try;;
82989esac
82990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
82991$as_echo "$ac_try_echo"; } >&5
82992  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
82993  ac_status=$?
82994  if test -s conftest.err; then
82995    sed '10a\
82996... rest of stderr output deleted ...
82997         10q' conftest.err >conftest.er1
82998    cat conftest.er1 >&5
82999  fi
83000  rm -f conftest.er1 conftest.err
83001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83002  test $ac_status = 0; }
83003done
83004
83005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
83006$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
83007if ${ac_cv_cxx_compiler_gnu+:} false; then :
83008  $as_echo_n "(cached) " >&6
83009else
83010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83011/* end confdefs.h.  */
83012
83013int
83014main ()
83015{
83016#ifndef __GNUC__
83017       choke me
83018#endif
83019
83020  ;
83021  return 0;
83022}
83023_ACEOF
83024if ac_fn_cxx_try_compile "$LINENO"; then :
83025  ac_compiler_gnu=yes
83026else
83027  ac_compiler_gnu=no
83028fi
83029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83030ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
83031
83032fi
83033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
83034$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
83035if test $ac_compiler_gnu = yes; then
83036  GXX=yes
83037else
83038  GXX=
83039fi
83040ac_test_CXXFLAGS=${CXXFLAGS+set}
83041ac_save_CXXFLAGS=$CXXFLAGS
83042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
83043$as_echo_n "checking whether $CXX accepts -g... " >&6; }
83044if ${ac_cv_prog_cxx_g+:} false; then :
83045  $as_echo_n "(cached) " >&6
83046else
83047  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
83048   ac_cxx_werror_flag=yes
83049   ac_cv_prog_cxx_g=no
83050   CXXFLAGS="-g"
83051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83052/* end confdefs.h.  */
83053
83054int
83055main ()
83056{
83057
83058  ;
83059  return 0;
83060}
83061_ACEOF
83062if ac_fn_cxx_try_compile "$LINENO"; then :
83063  ac_cv_prog_cxx_g=yes
83064else
83065  CXXFLAGS=""
83066      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83067/* end confdefs.h.  */
83068
83069int
83070main ()
83071{
83072
83073  ;
83074  return 0;
83075}
83076_ACEOF
83077if ac_fn_cxx_try_compile "$LINENO"; then :
83078
83079else
83080  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
83081	 CXXFLAGS="-g"
83082	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83083/* end confdefs.h.  */
83084
83085int
83086main ()
83087{
83088
83089  ;
83090  return 0;
83091}
83092_ACEOF
83093if ac_fn_cxx_try_compile "$LINENO"; then :
83094  ac_cv_prog_cxx_g=yes
83095fi
83096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83097fi
83098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83099fi
83100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83101   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
83102fi
83103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
83104$as_echo "$ac_cv_prog_cxx_g" >&6; }
83105if test "$ac_test_CXXFLAGS" = set; then
83106  CXXFLAGS=$ac_save_CXXFLAGS
83107elif test $ac_cv_prog_cxx_g = yes; then
83108  if test "$GXX" = yes; then
83109    CXXFLAGS="-g -O2"
83110  else
83111    CXXFLAGS="-g"
83112  fi
83113else
83114  if test "$GXX" = yes; then
83115    CXXFLAGS="-O2"
83116  else
83117    CXXFLAGS=
83118  fi
83119fi
83120ac_ext=c
83121ac_cpp='$CPP $CPPFLAGS'
83122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
83123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
83124ac_compiler_gnu=$ac_cv_c_compiler_gnu
83125
83126depcc="$CXX"  am_compiler_list=
83127
83128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
83129$as_echo_n "checking dependency style of $depcc... " >&6; }
83130if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
83131  $as_echo_n "(cached) " >&6
83132else
83133  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
83134  # We make a subdir and do the tests there.  Otherwise we can end up
83135  # making bogus files that we don't know about and never remove.  For
83136  # instance it was reported that on HP-UX the gcc test will end up
83137  # making a dummy file named 'D' -- because '-MD' means "put the output
83138  # in D".
83139  rm -rf conftest.dir
83140  mkdir conftest.dir
83141  # Copy depcomp to subdir because otherwise we won't find it if we're
83142  # using a relative directory.
83143  cp "$am_depcomp" conftest.dir
83144  cd conftest.dir
83145  # We will build objects and dependencies in a subdirectory because
83146  # it helps to detect inapplicable dependency modes.  For instance
83147  # both Tru64's cc and ICC support -MD to output dependencies as a
83148  # side effect of compilation, but ICC will put the dependencies in
83149  # the current directory while Tru64 will put them in the object
83150  # directory.
83151  mkdir sub
83152
83153  am_cv_CXX_dependencies_compiler_type=none
83154  if test "$am_compiler_list" = ""; then
83155     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
83156  fi
83157  am__universal=false
83158  case " $depcc " in #(
83159     *\ -arch\ *\ -arch\ *) am__universal=true ;;
83160     esac
83161
83162  for depmode in $am_compiler_list; do
83163    # Setup a source with many dependencies, because some compilers
83164    # like to wrap large dependency lists on column 80 (with \), and
83165    # we should not choose a depcomp mode which is confused by this.
83166    #
83167    # We need to recreate these files for each test, as the compiler may
83168    # overwrite some of them when testing with obscure command lines.
83169    # This happens at least with the AIX C compiler.
83170    : > sub/conftest.c
83171    for i in 1 2 3 4 5 6; do
83172      echo '#include "conftst'$i'.h"' >> sub/conftest.c
83173      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
83174      # Solaris 10 /bin/sh.
83175      echo '/* dummy */' > sub/conftst$i.h
83176    done
83177    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
83178
83179    # We check with '-c' and '-o' for the sake of the "dashmstdout"
83180    # mode.  It turns out that the SunPro C++ compiler does not properly
83181    # handle '-M -o', and we need to detect this.  Also, some Intel
83182    # versions had trouble with output in subdirs.
83183    am__obj=sub/conftest.${OBJEXT-o}
83184    am__minus_obj="-o $am__obj"
83185    case $depmode in
83186    gcc)
83187      # This depmode causes a compiler race in universal mode.
83188      test "$am__universal" = false || continue
83189      ;;
83190    nosideeffect)
83191      # After this tag, mechanisms are not by side-effect, so they'll
83192      # only be used when explicitly requested.
83193      if test "x$enable_dependency_tracking" = xyes; then
83194	continue
83195      else
83196	break
83197      fi
83198      ;;
83199    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
83200      # This compiler won't grok '-c -o', but also, the minuso test has
83201      # not run yet.  These depmodes are late enough in the game, and
83202      # so weak that their functioning should not be impacted.
83203      am__obj=conftest.${OBJEXT-o}
83204      am__minus_obj=
83205      ;;
83206    none) break ;;
83207    esac
83208    if depmode=$depmode \
83209       source=sub/conftest.c object=$am__obj \
83210       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
83211       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
83212         >/dev/null 2>conftest.err &&
83213       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
83214       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
83215       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
83216       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
83217      # icc doesn't choke on unknown options, it will just issue warnings
83218      # or remarks (even with -Werror).  So we grep stderr for any message
83219      # that says an option was ignored or not supported.
83220      # When given -MP, icc 7.0 and 7.1 complain thusly:
83221      #   icc: Command line warning: ignoring option '-M'; no argument required
83222      # The diagnosis changed in icc 8.0:
83223      #   icc: Command line remark: option '-MP' not supported
83224      if (grep 'ignoring option' conftest.err ||
83225          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
83226        am_cv_CXX_dependencies_compiler_type=$depmode
83227        break
83228      fi
83229    fi
83230  done
83231
83232  cd ..
83233  rm -rf conftest.dir
83234else
83235  am_cv_CXX_dependencies_compiler_type=none
83236fi
83237
83238fi
83239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
83240$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
83241CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
83242
83243 if
83244  test "x$enable_dependency_tracking" != xno \
83245  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
83246  am__fastdepCXX_TRUE=
83247  am__fastdepCXX_FALSE='#'
83248else
83249  am__fastdepCXX_TRUE='#'
83250  am__fastdepCXX_FALSE=
83251fi
83252
83253
83254    ac_ext=cpp
83255ac_cpp='$CXXCPP $CPPFLAGS'
83256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
83257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
83258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
83259
83260    OLD_CPPFLAGS=$CPPFLAGS
83261    CPPFLAGS=$OPENCV_CFLAGS
83262    something_not_found=no
83263    for ac_header in opencv2/bgsegm.hpp \
83264                      opencv2/calib3d.hpp \
83265                      opencv2/core.hpp \
83266                      opencv2/imgproc.hpp \
83267                      opencv2/objdetect.hpp \
83268                      opencv2/opencv.hpp \
83269                      opencv2/video.hpp \
83270                      opencv2/bgsegm.hpp
83271do :
83272  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
83273ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
83274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
83275  cat >>confdefs.h <<_ACEOF
83276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
83277_ACEOF
83278
83279else
83280  something_not_found=yes
83281fi
83282
83283done
83284
83285
83286    CPPFLAGS=$OLD_CPPFLAGS
83287    ac_ext=c
83288ac_cpp='$CPP $CPPFLAGS'
83289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
83290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
83291ac_compiler_gnu=$ac_cv_c_compiler_gnu
83292
83293
83294    if test $something_not_found = "yes"; then
83295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not all opencv2 headers were found" >&5
83296$as_echo "not all opencv2 headers were found" >&6; }
83297      HAVE_OPENCV="no"
83298    else
83299      HAVE_OPENCV="yes"
83300    fi
83301
83302fi
83303  OPENCV_PREFIX="`$PKG_CONFIG --variable=prefix opencv`"
83304
83305cat >>confdefs.h <<_ACEOF
83306#define OPENCV_PREFIX "$OPENCV_PREFIX"
83307_ACEOF
83308
83309
83310  OPENCV_PREFIX="`$PKG_CONFIG --variable=prefix opencv`"
83311
83312cat >>confdefs.h <<_ACEOF
83313#define OPENCV_PREFIX "$OPENCV_PREFIX"
83314_ACEOF
83315
83316
83317
83318
83319          if test -d "$PKG_CONFIG_SYSROOT_DIR/$OPENCV_PREFIX/share/opencv/"; then
83320
83321cat >>confdefs.h <<_ACEOF
83322#define OPENCV_PATH_NAME "opencv"
83323_ACEOF
83324
83325  else
83326
83327cat >>confdefs.h <<_ACEOF
83328#define OPENCV_PATH_NAME "OpenCV"
83329_ACEOF
83330
83331  fi
83332
83333
83334  LIBS=$gst_check_save_LIBS
83335  LDFLAGS=$gst_check_save_LDFLAGS
83336  CFLAGS=$gst_check_save_CFLAGS
83337  CPPFLAGS=$gst_check_save_CPPFLAGS
83338  CXXFLAGS=$gst_check_save_CXXFLAGS
83339
83340    if test x$HAVE_OPENCV = xno; then
83341    USE_OPENCV=no
83342  else
83343    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: opencv" >&5
83344$as_echo "$as_me: *** These plugins will be built: opencv" >&6;}
83345  fi
83346fi
83347if test x$USE_OPENCV = xyes; then
83348  :
83349  if test "xopencv" != "x"; then
83350    GST_PLUGINS_YES="\topencv\n$GST_PLUGINS_YES"
83351  fi
83352
83353$as_echo "#define HAVE_OPENCV /**/" >>confdefs.h
83354
83355else
83356  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: opencv" >&5
83357$as_echo "$as_me: *** These plugins will not be built: opencv" >&6;}
83358  if test "xopencv" != "x"; then
83359    GST_PLUGINS_NO="\topencv\n$GST_PLUGINS_NO"
83360  fi
83361  :
83362fi
83363 if test x$USE_OPENCV = xyes; then
83364  USE_OPENCV_TRUE=
83365  USE_OPENCV_FALSE='#'
83366else
83367  USE_OPENCV_TRUE='#'
83368  USE_OPENCV_FALSE=
83369fi
83370
83371
83372
83373echo
83374{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: openexr library ***" >&5
83375$as_echo "$as_me: *** checking feature: openexr library ***" >&6;}
83376if test "xopenexr" != "x"
83377then
83378  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openexr ***" >&5
83379$as_echo "$as_me: *** for plug-ins: openexr ***" >&6;}
83380fi
83381NOUSE=
83382if test "x$USE_OPENEXR" = "xno"; then
83383  NOUSE="yes"
83384fi
83385# Check whether --enable-openexr was given.
83386if test "${enable_openexr+set}" = set; then :
83387  enableval=$enable_openexr;  case "${enableval}" in
83388      yes) USE_OPENEXR=yes;;
83389      no) USE_OPENEXR=no;;
83390      *) as_fn_error $? "bad value ${enableval} for --enable-openexr" "$LINENO" 5 ;;
83391    esac
83392else
83393   USE_OPENEXR=yes
83394fi
83395
83396if test "x$NOUSE" = "xyes"; then
83397  USE_OPENEXR="no"
83398  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openexr pre-configured not to be built" >&5
83399$as_echo "$as_me: WARNING: *** openexr pre-configured not to be built" >&2;}
83400fi
83401NOUSE=
83402
83403if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENEXR " > /dev/null; then
83404  USE_OPENEXR="no"
83405  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openexr not ported" >&5
83406$as_echo "$as_me: WARNING: *** openexr not ported" >&2;}
83407fi
83408
83409
83410if test x$USE_OPENEXR = xyes; then
83411
83412  gst_check_save_LIBS=$LIBS
83413  gst_check_save_LDFLAGS=$LDFLAGS
83414  gst_check_save_CFLAGS=$CFLAGS
83415  gst_check_save_CPPFLAGS=$CPPFLAGS
83416  gst_check_save_CXXFLAGS=$CXXFLAGS
83417
83418  HAVE_OPENEXR=no
83419
83420
83421  which="OpenEXR"
83422    required="no"
83423
83424
83425pkg_failed=no
83426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
83427$as_echo_n "checking for OPENEXR... " >&6; }
83428
83429if test -n "$PKG_CONFIG"; then
83430    if test -n "$OPENEXR_CFLAGS"; then
83431        pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
83432    else
83433        if test -n "$PKG_CONFIG" && \
83434    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83435  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83436  ac_status=$?
83437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83438  test $ac_status = 0; }; then
83439  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
83440else
83441  pkg_failed=yes
83442fi
83443    fi
83444else
83445	pkg_failed=untried
83446fi
83447if test -n "$PKG_CONFIG"; then
83448    if test -n "$OPENEXR_LIBS"; then
83449        pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
83450    else
83451        if test -n "$PKG_CONFIG" && \
83452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83453  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83454  ac_status=$?
83455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83456  test $ac_status = 0; }; then
83457  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
83458else
83459  pkg_failed=yes
83460fi
83461    fi
83462else
83463	pkg_failed=untried
83464fi
83465
83466
83467
83468if test $pkg_failed = yes; then
83469
83470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83471        _pkg_short_errors_supported=yes
83472else
83473        _pkg_short_errors_supported=no
83474fi
83475        if test $_pkg_short_errors_supported = yes; then
83476	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
83477        else
83478	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
83479        fi
83480	# Put the nasty error message in config.log where it belongs
83481	echo "$OPENEXR_PKG_ERRORS" >&5
83482
83483	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83484$as_echo "no" >&6; }
83485
83486      HAVE_OPENEXR="no"
83487      if test "x$required" = "xyes"; then
83488        as_fn_error $? "$OPENEXR_PKG_ERRORS" "$LINENO" 5
83489      else
83490        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENEXR_PKG_ERRORS" >&5
83491$as_echo "$as_me: $OPENEXR_PKG_ERRORS" >&6;}
83492      fi
83493
83494elif test $pkg_failed = untried; then
83495
83496      HAVE_OPENEXR="no"
83497      if test "x$required" = "xyes"; then
83498        as_fn_error $? "$OPENEXR_PKG_ERRORS" "$LINENO" 5
83499      else
83500        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENEXR_PKG_ERRORS" >&5
83501$as_echo "$as_me: $OPENEXR_PKG_ERRORS" >&6;}
83502      fi
83503
83504else
83505	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
83506	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
83507        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83508$as_echo "yes" >&6; }
83509
83510      HAVE_OPENEXR="yes"
83511
83512fi
83513
83514
83515  if test "x$HAVE_OPENEXR" = "xyes"; then
83516
83517  which="OpenEXR >= 2.4.0"
83518    required="no"
83519
83520
83521pkg_failed=no
83522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR240" >&5
83523$as_echo_n "checking for OPENEXR240... " >&6; }
83524
83525if test -n "$PKG_CONFIG"; then
83526    if test -n "$OPENEXR240_CFLAGS"; then
83527        pkg_cv_OPENEXR240_CFLAGS="$OPENEXR240_CFLAGS"
83528    else
83529        if test -n "$PKG_CONFIG" && \
83530    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83531  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83532  ac_status=$?
83533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83534  test $ac_status = 0; }; then
83535  pkg_cv_OPENEXR240_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
83536else
83537  pkg_failed=yes
83538fi
83539    fi
83540else
83541	pkg_failed=untried
83542fi
83543if test -n "$PKG_CONFIG"; then
83544    if test -n "$OPENEXR240_LIBS"; then
83545        pkg_cv_OPENEXR240_LIBS="$OPENEXR240_LIBS"
83546    else
83547        if test -n "$PKG_CONFIG" && \
83548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83549  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83550  ac_status=$?
83551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83552  test $ac_status = 0; }; then
83553  pkg_cv_OPENEXR240_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
83554else
83555  pkg_failed=yes
83556fi
83557    fi
83558else
83559	pkg_failed=untried
83560fi
83561
83562
83563
83564if test $pkg_failed = yes; then
83565
83566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83567        _pkg_short_errors_supported=yes
83568else
83569        _pkg_short_errors_supported=no
83570fi
83571        if test $_pkg_short_errors_supported = yes; then
83572	        OPENEXR240_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
83573        else
83574	        OPENEXR240_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
83575        fi
83576	# Put the nasty error message in config.log where it belongs
83577	echo "$OPENEXR240_PKG_ERRORS" >&5
83578
83579	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83580$as_echo "no" >&6; }
83581
83582      HAVE_OPENEXR240="no"
83583      if test "x$required" = "xyes"; then
83584        as_fn_error $? "$OPENEXR240_PKG_ERRORS" "$LINENO" 5
83585      else
83586        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENEXR240_PKG_ERRORS" >&5
83587$as_echo "$as_me: $OPENEXR240_PKG_ERRORS" >&6;}
83588      fi
83589
83590elif test $pkg_failed = untried; then
83591
83592      HAVE_OPENEXR240="no"
83593      if test "x$required" = "xyes"; then
83594        as_fn_error $? "$OPENEXR240_PKG_ERRORS" "$LINENO" 5
83595      else
83596        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENEXR240_PKG_ERRORS" >&5
83597$as_echo "$as_me: $OPENEXR240_PKG_ERRORS" >&6;}
83598      fi
83599
83600else
83601	OPENEXR240_CFLAGS=$pkg_cv_OPENEXR240_CFLAGS
83602	OPENEXR240_LIBS=$pkg_cv_OPENEXR240_LIBS
83603        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83604$as_echo "yes" >&6; }
83605
83606      HAVE_OPENEXR240="yes"
83607
83608fi
83609
83610
83611    if test "x$HAVE_OPENEXR240" = "xyes"; then
83612      OPENEXR_STDCFLAGS=
83613    else
83614      OPENEXR_STDCFLAGS="-std=c++98"
83615    fi
83616
83617  fi
83618
83619
83620  LIBS=$gst_check_save_LIBS
83621  LDFLAGS=$gst_check_save_LDFLAGS
83622  CFLAGS=$gst_check_save_CFLAGS
83623  CPPFLAGS=$gst_check_save_CPPFLAGS
83624  CXXFLAGS=$gst_check_save_CXXFLAGS
83625
83626    if test x$HAVE_OPENEXR = xno; then
83627    USE_OPENEXR=no
83628  else
83629    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openexr" >&5
83630$as_echo "$as_me: *** These plugins will be built: openexr" >&6;}
83631  fi
83632fi
83633if test x$USE_OPENEXR = xyes; then
83634  :
83635  if test "xopenexr" != "x"; then
83636    GST_PLUGINS_YES="\topenexr\n$GST_PLUGINS_YES"
83637  fi
83638
83639$as_echo "#define HAVE_OPENEXR /**/" >>confdefs.h
83640
83641else
83642  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openexr" >&5
83643$as_echo "$as_me: *** These plugins will not be built: openexr" >&6;}
83644  if test "xopenexr" != "x"; then
83645    GST_PLUGINS_NO="\topenexr\n$GST_PLUGINS_NO"
83646  fi
83647  :
83648fi
83649 if test x$USE_OPENEXR = xyes; then
83650  USE_OPENEXR_TRUE=
83651  USE_OPENEXR_FALSE='#'
83652else
83653  USE_OPENEXR_TRUE='#'
83654  USE_OPENEXR_FALSE=
83655fi
83656
83657
83658
83659echo
83660{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: openh264 library ***" >&5
83661$as_echo "$as_me: *** checking feature: openh264 library ***" >&6;}
83662if test "xopenh264" != "x"
83663then
83664  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openh264 ***" >&5
83665$as_echo "$as_me: *** for plug-ins: openh264 ***" >&6;}
83666fi
83667NOUSE=
83668if test "x$USE_OPENH264" = "xno"; then
83669  NOUSE="yes"
83670fi
83671# Check whether --enable-openh264 was given.
83672if test "${enable_openh264+set}" = set; then :
83673  enableval=$enable_openh264;  case "${enableval}" in
83674      yes) USE_OPENH264=yes;;
83675      no) USE_OPENH264=no;;
83676      *) as_fn_error $? "bad value ${enableval} for --enable-openh264" "$LINENO" 5 ;;
83677    esac
83678else
83679   USE_OPENH264=yes
83680fi
83681
83682if test "x$NOUSE" = "xyes"; then
83683  USE_OPENH264="no"
83684  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openh264 pre-configured not to be built" >&5
83685$as_echo "$as_me: WARNING: *** openh264 pre-configured not to be built" >&2;}
83686fi
83687NOUSE=
83688
83689if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENH264 " > /dev/null; then
83690  USE_OPENH264="no"
83691  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openh264 not ported" >&5
83692$as_echo "$as_me: WARNING: *** openh264 not ported" >&2;}
83693fi
83694
83695
83696if test x$USE_OPENH264 = xyes; then
83697
83698  gst_check_save_LIBS=$LIBS
83699  gst_check_save_LDFLAGS=$LDFLAGS
83700  gst_check_save_CFLAGS=$CFLAGS
83701  gst_check_save_CPPFLAGS=$CPPFLAGS
83702  gst_check_save_CXXFLAGS=$CXXFLAGS
83703
83704  HAVE_OPENH264=no
83705
83706
83707  which="openh264 >= 1.3.0"
83708    required="no"
83709
83710
83711pkg_failed=no
83712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENH264" >&5
83713$as_echo_n "checking for OPENH264... " >&6; }
83714
83715if test -n "$PKG_CONFIG"; then
83716    if test -n "$OPENH264_CFLAGS"; then
83717        pkg_cv_OPENH264_CFLAGS="$OPENH264_CFLAGS"
83718    else
83719        if test -n "$PKG_CONFIG" && \
83720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83721  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83722  ac_status=$?
83723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83724  test $ac_status = 0; }; then
83725  pkg_cv_OPENH264_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
83726else
83727  pkg_failed=yes
83728fi
83729    fi
83730else
83731	pkg_failed=untried
83732fi
83733if test -n "$PKG_CONFIG"; then
83734    if test -n "$OPENH264_LIBS"; then
83735        pkg_cv_OPENH264_LIBS="$OPENH264_LIBS"
83736    else
83737        if test -n "$PKG_CONFIG" && \
83738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83739  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83740  ac_status=$?
83741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83742  test $ac_status = 0; }; then
83743  pkg_cv_OPENH264_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
83744else
83745  pkg_failed=yes
83746fi
83747    fi
83748else
83749	pkg_failed=untried
83750fi
83751
83752
83753
83754if test $pkg_failed = yes; then
83755
83756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83757        _pkg_short_errors_supported=yes
83758else
83759        _pkg_short_errors_supported=no
83760fi
83761        if test $_pkg_short_errors_supported = yes; then
83762	        OPENH264_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
83763        else
83764	        OPENH264_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
83765        fi
83766	# Put the nasty error message in config.log where it belongs
83767	echo "$OPENH264_PKG_ERRORS" >&5
83768
83769	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83770$as_echo "no" >&6; }
83771
83772      HAVE_OPENH264="no"
83773      if test "x$required" = "xyes"; then
83774        as_fn_error $? "$OPENH264_PKG_ERRORS" "$LINENO" 5
83775      else
83776        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENH264_PKG_ERRORS" >&5
83777$as_echo "$as_me: $OPENH264_PKG_ERRORS" >&6;}
83778      fi
83779
83780elif test $pkg_failed = untried; then
83781
83782      HAVE_OPENH264="no"
83783      if test "x$required" = "xyes"; then
83784        as_fn_error $? "$OPENH264_PKG_ERRORS" "$LINENO" 5
83785      else
83786        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENH264_PKG_ERRORS" >&5
83787$as_echo "$as_me: $OPENH264_PKG_ERRORS" >&6;}
83788      fi
83789
83790else
83791	OPENH264_CFLAGS=$pkg_cv_OPENH264_CFLAGS
83792	OPENH264_LIBS=$pkg_cv_OPENH264_LIBS
83793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83794$as_echo "yes" >&6; }
83795
83796      HAVE_OPENH264="yes"
83797
83798fi
83799
83800
83801
83802
83803  LIBS=$gst_check_save_LIBS
83804  LDFLAGS=$gst_check_save_LDFLAGS
83805  CFLAGS=$gst_check_save_CFLAGS
83806  CPPFLAGS=$gst_check_save_CPPFLAGS
83807  CXXFLAGS=$gst_check_save_CXXFLAGS
83808
83809    if test x$HAVE_OPENH264 = xno; then
83810    USE_OPENH264=no
83811  else
83812    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openh264" >&5
83813$as_echo "$as_me: *** These plugins will be built: openh264" >&6;}
83814  fi
83815fi
83816if test x$USE_OPENH264 = xyes; then
83817  :
83818  if test "xopenh264" != "x"; then
83819    GST_PLUGINS_YES="\topenh264\n$GST_PLUGINS_YES"
83820  fi
83821
83822$as_echo "#define HAVE_OPENH264 /**/" >>confdefs.h
83823
83824else
83825  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openh264" >&5
83826$as_echo "$as_me: *** These plugins will not be built: openh264" >&6;}
83827  if test "xopenh264" != "x"; then
83828    GST_PLUGINS_NO="\topenh264\n$GST_PLUGINS_NO"
83829  fi
83830  :
83831fi
83832 if test x$USE_OPENH264 = xyes; then
83833  USE_OPENH264_TRUE=
83834  USE_OPENH264_FALSE='#'
83835else
83836  USE_OPENH264_TRUE='#'
83837  USE_OPENH264_FALSE=
83838fi
83839
83840
83841
83842echo
83843{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: openjpeg library ***" >&5
83844$as_echo "$as_me: *** checking feature: openjpeg library ***" >&6;}
83845if test "xopenjpeg" != "x"
83846then
83847  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openjpeg ***" >&5
83848$as_echo "$as_me: *** for plug-ins: openjpeg ***" >&6;}
83849fi
83850NOUSE=
83851if test "x$USE_OPENJPEG" = "xno"; then
83852  NOUSE="yes"
83853fi
83854# Check whether --enable-openjpeg was given.
83855if test "${enable_openjpeg+set}" = set; then :
83856  enableval=$enable_openjpeg;  case "${enableval}" in
83857      yes) USE_OPENJPEG=yes;;
83858      no) USE_OPENJPEG=no;;
83859      *) as_fn_error $? "bad value ${enableval} for --enable-openjpeg" "$LINENO" 5 ;;
83860    esac
83861else
83862   USE_OPENJPEG=yes
83863fi
83864
83865if test "x$NOUSE" = "xyes"; then
83866  USE_OPENJPEG="no"
83867  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openjpeg pre-configured not to be built" >&5
83868$as_echo "$as_me: WARNING: *** openjpeg pre-configured not to be built" >&2;}
83869fi
83870NOUSE=
83871
83872if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENJPEG " > /dev/null; then
83873  USE_OPENJPEG="no"
83874  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openjpeg not ported" >&5
83875$as_echo "$as_me: WARNING: *** openjpeg not ported" >&2;}
83876fi
83877
83878
83879if test x$USE_OPENJPEG = xyes; then
83880
83881  gst_check_save_LIBS=$LIBS
83882  gst_check_save_LDFLAGS=$LDFLAGS
83883  gst_check_save_CFLAGS=$CFLAGS
83884  gst_check_save_CPPFLAGS=$CPPFLAGS
83885  gst_check_save_CXXFLAGS=$CXXFLAGS
83886
83887  HAVE_OPENJPEG=no
83888
83889  HAVE_OPENJPEG="no"
83890
83891  which="libopenjp2 >= 2.1"
83892    required="no"
83893
83894
83895pkg_failed=no
83896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG" >&5
83897$as_echo_n "checking for OPENJPEG... " >&6; }
83898
83899if test -n "$PKG_CONFIG"; then
83900    if test -n "$OPENJPEG_CFLAGS"; then
83901        pkg_cv_OPENJPEG_CFLAGS="$OPENJPEG_CFLAGS"
83902    else
83903        if test -n "$PKG_CONFIG" && \
83904    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83905  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83906  ac_status=$?
83907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83908  test $ac_status = 0; }; then
83909  pkg_cv_OPENJPEG_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
83910else
83911  pkg_failed=yes
83912fi
83913    fi
83914else
83915	pkg_failed=untried
83916fi
83917if test -n "$PKG_CONFIG"; then
83918    if test -n "$OPENJPEG_LIBS"; then
83919        pkg_cv_OPENJPEG_LIBS="$OPENJPEG_LIBS"
83920    else
83921        if test -n "$PKG_CONFIG" && \
83922    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
83923  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
83924  ac_status=$?
83925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
83926  test $ac_status = 0; }; then
83927  pkg_cv_OPENJPEG_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
83928else
83929  pkg_failed=yes
83930fi
83931    fi
83932else
83933	pkg_failed=untried
83934fi
83935
83936
83937
83938if test $pkg_failed = yes; then
83939
83940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
83941        _pkg_short_errors_supported=yes
83942else
83943        _pkg_short_errors_supported=no
83944fi
83945        if test $_pkg_short_errors_supported = yes; then
83946	        OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
83947        else
83948	        OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
83949        fi
83950	# Put the nasty error message in config.log where it belongs
83951	echo "$OPENJPEG_PKG_ERRORS" >&5
83952
83953	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
83954$as_echo "no" >&6; }
83955
83956      HAVE_OPENJPEG="no"
83957      if test "x$required" = "xyes"; then
83958        as_fn_error $? "$OPENJPEG_PKG_ERRORS" "$LINENO" 5
83959      else
83960        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENJPEG_PKG_ERRORS" >&5
83961$as_echo "$as_me: $OPENJPEG_PKG_ERRORS" >&6;}
83962      fi
83963
83964elif test $pkg_failed = untried; then
83965
83966      HAVE_OPENJPEG="no"
83967      if test "x$required" = "xyes"; then
83968        as_fn_error $? "$OPENJPEG_PKG_ERRORS" "$LINENO" 5
83969      else
83970        { $as_echo "$as_me:${as_lineno-$LINENO}: $OPENJPEG_PKG_ERRORS" >&5
83971$as_echo "$as_me: $OPENJPEG_PKG_ERRORS" >&6;}
83972      fi
83973
83974else
83975	OPENJPEG_CFLAGS=$pkg_cv_OPENJPEG_CFLAGS
83976	OPENJPEG_LIBS=$pkg_cv_OPENJPEG_LIBS
83977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
83978$as_echo "yes" >&6; }
83979
83980      HAVE_OPENJPEG="yes"
83981
83982fi
83983
83984
83985  if test x"$HAVE_OPENJPEG" != x"yes"; then
83986    # Fallback to v1.5
83987    OPENJPEG_LIBS=""
83988
83989pkg_failed=no
83990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENJPEG" >&5
83991$as_echo_n "checking for OPENJPEG... " >&6; }
83992
83993if test -n "$PKG_CONFIG"; then
83994    if test -n "$OPENJPEG_CFLAGS"; then
83995        pkg_cv_OPENJPEG_CFLAGS="$OPENJPEG_CFLAGS"
83996    else
83997        if test -n "$PKG_CONFIG" && \
83998    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
83999  ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
84000  ac_status=$?
84001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84002  test $ac_status = 0; }; then
84003  pkg_cv_OPENJPEG_CFLAGS=`$PKG_CONFIG --cflags "libopenjpeg1" 2>/dev/null`
84004else
84005  pkg_failed=yes
84006fi
84007    fi
84008else
84009	pkg_failed=untried
84010fi
84011if test -n "$PKG_CONFIG"; then
84012    if test -n "$OPENJPEG_LIBS"; then
84013        pkg_cv_OPENJPEG_LIBS="$OPENJPEG_LIBS"
84014    else
84015        if test -n "$PKG_CONFIG" && \
84016    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjpeg1\""; } >&5
84017  ($PKG_CONFIG --exists --print-errors "libopenjpeg1") 2>&5
84018  ac_status=$?
84019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84020  test $ac_status = 0; }; then
84021  pkg_cv_OPENJPEG_LIBS=`$PKG_CONFIG --libs "libopenjpeg1" 2>/dev/null`
84022else
84023  pkg_failed=yes
84024fi
84025    fi
84026else
84027	pkg_failed=untried
84028fi
84029
84030
84031
84032if test $pkg_failed = yes; then
84033
84034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84035        _pkg_short_errors_supported=yes
84036else
84037        _pkg_short_errors_supported=no
84038fi
84039        if test $_pkg_short_errors_supported = yes; then
84040	        OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libopenjpeg1"`
84041        else
84042	        OPENJPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libopenjpeg1"`
84043        fi
84044	# Put the nasty error message in config.log where it belongs
84045	echo "$OPENJPEG_PKG_ERRORS" >&5
84046
84047	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84048$as_echo "no" >&6; }
84049
84050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_version in -lopenjpeg" >&5
84051$as_echo_n "checking for opj_version in -lopenjpeg... " >&6; }
84052if ${ac_cv_lib_openjpeg_opj_version+:} false; then :
84053  $as_echo_n "(cached) " >&6
84054else
84055  ac_check_lib_save_LIBS=$LIBS
84056LIBS="-lopenjpeg  $LIBS"
84057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84058/* end confdefs.h.  */
84059
84060/* Override any GCC internal prototype to avoid an error.
84061   Use char because int might match the return type of a GCC
84062   builtin and then its argument prototype would still apply.  */
84063#ifdef __cplusplus
84064extern "C"
84065#endif
84066char opj_version ();
84067int
84068main ()
84069{
84070return opj_version ();
84071  ;
84072  return 0;
84073}
84074_ACEOF
84075if ac_fn_c_try_link "$LINENO"; then :
84076  ac_cv_lib_openjpeg_opj_version=yes
84077else
84078  ac_cv_lib_openjpeg_opj_version=no
84079fi
84080rm -f core conftest.err conftest.$ac_objext \
84081    conftest$ac_exeext conftest.$ac_ext
84082LIBS=$ac_check_lib_save_LIBS
84083fi
84084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_version" >&5
84085$as_echo "$ac_cv_lib_openjpeg_opj_version" >&6; }
84086if test "x$ac_cv_lib_openjpeg_opj_version" = xyes; then :
84087  HAVE_OPENJPEG=yes
84088else
84089  HAVE_OPENJPEG=no
84090fi
84091
84092  if test "x$HAVE_OPENJPEG" = "xyes"; then
84093    ac_fn_c_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
84094if test "x$ac_cv_header_openjpeg_h" = xyes; then :
84095  :
84096else
84097  HAVE_OPENJPEG=no
84098fi
84099
84100
84101    if test "x$HAVE_OPENJPEG" = "xyes"; then
84102            OPENJPEG_LIBS="-lopenjpeg"
84103    else
84104      :
84105    fi
84106  else
84107    :
84108  fi
84109
84110
84111
84112
84113elif test $pkg_failed = untried; then
84114
84115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_version in -lopenjpeg" >&5
84116$as_echo_n "checking for opj_version in -lopenjpeg... " >&6; }
84117if ${ac_cv_lib_openjpeg_opj_version+:} false; then :
84118  $as_echo_n "(cached) " >&6
84119else
84120  ac_check_lib_save_LIBS=$LIBS
84121LIBS="-lopenjpeg  $LIBS"
84122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84123/* end confdefs.h.  */
84124
84125/* Override any GCC internal prototype to avoid an error.
84126   Use char because int might match the return type of a GCC
84127   builtin and then its argument prototype would still apply.  */
84128#ifdef __cplusplus
84129extern "C"
84130#endif
84131char opj_version ();
84132int
84133main ()
84134{
84135return opj_version ();
84136  ;
84137  return 0;
84138}
84139_ACEOF
84140if ac_fn_c_try_link "$LINENO"; then :
84141  ac_cv_lib_openjpeg_opj_version=yes
84142else
84143  ac_cv_lib_openjpeg_opj_version=no
84144fi
84145rm -f core conftest.err conftest.$ac_objext \
84146    conftest$ac_exeext conftest.$ac_ext
84147LIBS=$ac_check_lib_save_LIBS
84148fi
84149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_version" >&5
84150$as_echo "$ac_cv_lib_openjpeg_opj_version" >&6; }
84151if test "x$ac_cv_lib_openjpeg_opj_version" = xyes; then :
84152  HAVE_OPENJPEG=yes
84153else
84154  HAVE_OPENJPEG=no
84155fi
84156
84157  if test "x$HAVE_OPENJPEG" = "xyes"; then
84158    ac_fn_c_check_header_mongrel "$LINENO" "openjpeg.h" "ac_cv_header_openjpeg_h" "$ac_includes_default"
84159if test "x$ac_cv_header_openjpeg_h" = xyes; then :
84160  :
84161else
84162  HAVE_OPENJPEG=no
84163fi
84164
84165
84166    if test "x$HAVE_OPENJPEG" = "xyes"; then
84167            OPENJPEG_LIBS="-lopenjpeg"
84168    else
84169      :
84170    fi
84171  else
84172    :
84173  fi
84174
84175
84176
84177
84178else
84179	OPENJPEG_CFLAGS=$pkg_cv_OPENJPEG_CFLAGS
84180	OPENJPEG_LIBS=$pkg_cv_OPENJPEG_LIBS
84181        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84182$as_echo "yes" >&6; }
84183	HAVE_OPENJPEG="yes"
84184fi
84185    if test x"$HAVE_OPENJPEG" = x"yes"; then
84186
84187$as_echo "#define HAVE_OPENJPEG_1 1" >>confdefs.h
84188
84189    fi
84190  fi
84191
84192
84193
84194
84195  LIBS=$gst_check_save_LIBS
84196  LDFLAGS=$gst_check_save_LDFLAGS
84197  CFLAGS=$gst_check_save_CFLAGS
84198  CPPFLAGS=$gst_check_save_CPPFLAGS
84199  CXXFLAGS=$gst_check_save_CXXFLAGS
84200
84201    if test x$HAVE_OPENJPEG = xno; then
84202    USE_OPENJPEG=no
84203  else
84204    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openjpeg" >&5
84205$as_echo "$as_me: *** These plugins will be built: openjpeg" >&6;}
84206  fi
84207fi
84208if test x$USE_OPENJPEG = xyes; then
84209  :
84210  if test "xopenjpeg" != "x"; then
84211    GST_PLUGINS_YES="\topenjpeg\n$GST_PLUGINS_YES"
84212  fi
84213
84214$as_echo "#define HAVE_OPENJPEG /**/" >>confdefs.h
84215
84216else
84217  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openjpeg" >&5
84218$as_echo "$as_me: *** These plugins will not be built: openjpeg" >&6;}
84219  if test "xopenjpeg" != "x"; then
84220    GST_PLUGINS_NO="\topenjpeg\n$GST_PLUGINS_NO"
84221  fi
84222  :
84223fi
84224 if test x$USE_OPENJPEG = xyes; then
84225  USE_OPENJPEG_TRUE=
84226  USE_OPENJPEG_FALSE='#'
84227else
84228  USE_OPENJPEG_TRUE='#'
84229  USE_OPENJPEG_FALSE=
84230fi
84231
84232
84233
84234echo
84235{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: openmpt ***" >&5
84236$as_echo "$as_me: *** checking feature: openmpt ***" >&6;}
84237if test "xopenmpt" != "x"
84238then
84239  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openmpt ***" >&5
84240$as_echo "$as_me: *** for plug-ins: openmpt ***" >&6;}
84241fi
84242NOUSE=
84243if test "x$USE_OPENMPT" = "xno"; then
84244  NOUSE="yes"
84245fi
84246# Check whether --enable-openmpt was given.
84247if test "${enable_openmpt+set}" = set; then :
84248  enableval=$enable_openmpt;  case "${enableval}" in
84249      yes) USE_OPENMPT=yes;;
84250      no) USE_OPENMPT=no;;
84251      *) as_fn_error $? "bad value ${enableval} for --enable-openmpt" "$LINENO" 5 ;;
84252    esac
84253else
84254   USE_OPENMPT=yes
84255fi
84256
84257if test "x$NOUSE" = "xyes"; then
84258  USE_OPENMPT="no"
84259  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openmpt pre-configured not to be built" >&5
84260$as_echo "$as_me: WARNING: *** openmpt pre-configured not to be built" >&2;}
84261fi
84262NOUSE=
84263
84264if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENMPT " > /dev/null; then
84265  USE_OPENMPT="no"
84266  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openmpt not ported" >&5
84267$as_echo "$as_me: WARNING: *** openmpt not ported" >&2;}
84268fi
84269
84270
84271if test x$USE_OPENMPT = xyes; then
84272
84273  gst_check_save_LIBS=$LIBS
84274  gst_check_save_LDFLAGS=$LDFLAGS
84275  gst_check_save_CFLAGS=$CFLAGS
84276  gst_check_save_CPPFLAGS=$CPPFLAGS
84277  gst_check_save_CXXFLAGS=$CXXFLAGS
84278
84279  HAVE_OPENMPT=no
84280
84281
84282pkg_failed=no
84283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENMPT" >&5
84284$as_echo_n "checking for OPENMPT... " >&6; }
84285
84286if test -n "$PKG_CONFIG"; then
84287    if test -n "$OPENMPT_CFLAGS"; then
84288        pkg_cv_OPENMPT_CFLAGS="$OPENMPT_CFLAGS"
84289    else
84290        if test -n "$PKG_CONFIG" && \
84291    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenmpt\""; } >&5
84292  ($PKG_CONFIG --exists --print-errors "libopenmpt") 2>&5
84293  ac_status=$?
84294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84295  test $ac_status = 0; }; then
84296  pkg_cv_OPENMPT_CFLAGS=`$PKG_CONFIG --cflags "libopenmpt" 2>/dev/null`
84297else
84298  pkg_failed=yes
84299fi
84300    fi
84301else
84302	pkg_failed=untried
84303fi
84304if test -n "$PKG_CONFIG"; then
84305    if test -n "$OPENMPT_LIBS"; then
84306        pkg_cv_OPENMPT_LIBS="$OPENMPT_LIBS"
84307    else
84308        if test -n "$PKG_CONFIG" && \
84309    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenmpt\""; } >&5
84310  ($PKG_CONFIG --exists --print-errors "libopenmpt") 2>&5
84311  ac_status=$?
84312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84313  test $ac_status = 0; }; then
84314  pkg_cv_OPENMPT_LIBS=`$PKG_CONFIG --libs "libopenmpt" 2>/dev/null`
84315else
84316  pkg_failed=yes
84317fi
84318    fi
84319else
84320	pkg_failed=untried
84321fi
84322
84323
84324
84325if test $pkg_failed = yes; then
84326
84327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84328        _pkg_short_errors_supported=yes
84329else
84330        _pkg_short_errors_supported=no
84331fi
84332        if test $_pkg_short_errors_supported = yes; then
84333	        OPENMPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libopenmpt"`
84334        else
84335	        OPENMPT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libopenmpt"`
84336        fi
84337	# Put the nasty error message in config.log where it belongs
84338	echo "$OPENMPT_PKG_ERRORS" >&5
84339
84340	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84341$as_echo "no" >&6; }
84342                HAVE_OPENMPT="no"
84343elif test $pkg_failed = untried; then
84344	HAVE_OPENMPT="no"
84345else
84346	OPENMPT_CFLAGS=$pkg_cv_OPENMPT_CFLAGS
84347	OPENMPT_LIBS=$pkg_cv_OPENMPT_LIBS
84348        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84349$as_echo "yes" >&6; }
84350	HAVE_OPENMPT="yes"
84351fi
84352
84353
84354
84355
84356  LIBS=$gst_check_save_LIBS
84357  LDFLAGS=$gst_check_save_LDFLAGS
84358  CFLAGS=$gst_check_save_CFLAGS
84359  CPPFLAGS=$gst_check_save_CPPFLAGS
84360  CXXFLAGS=$gst_check_save_CXXFLAGS
84361
84362    if test x$HAVE_OPENMPT = xno; then
84363    USE_OPENMPT=no
84364  else
84365    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openmpt" >&5
84366$as_echo "$as_me: *** These plugins will be built: openmpt" >&6;}
84367  fi
84368fi
84369if test x$USE_OPENMPT = xyes; then
84370  :
84371  if test "xopenmpt" != "x"; then
84372    GST_PLUGINS_YES="\topenmpt\n$GST_PLUGINS_YES"
84373  fi
84374
84375$as_echo "#define HAVE_OPENMPT /**/" >>confdefs.h
84376
84377else
84378  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openmpt" >&5
84379$as_echo "$as_me: *** These plugins will not be built: openmpt" >&6;}
84380  if test "xopenmpt" != "x"; then
84381    GST_PLUGINS_NO="\topenmpt\n$GST_PLUGINS_NO"
84382  fi
84383  :
84384fi
84385 if test x$USE_OPENMPT = xyes; then
84386  USE_OPENMPT_TRUE=
84387  USE_OPENMPT_FALSE='#'
84388else
84389  USE_OPENMPT_TRUE='#'
84390  USE_OPENMPT_FALSE=
84391fi
84392
84393
84394
84395echo
84396{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: openni2 library ***" >&5
84397$as_echo "$as_me: *** checking feature: openni2 library ***" >&6;}
84398if test "xopenni2" != "x"
84399then
84400  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: openni2 ***" >&5
84401$as_echo "$as_me: *** for plug-ins: openni2 ***" >&6;}
84402fi
84403NOUSE=
84404if test "x$USE_OPENNI2" = "xno"; then
84405  NOUSE="yes"
84406fi
84407# Check whether --enable-openni2 was given.
84408if test "${enable_openni2+set}" = set; then :
84409  enableval=$enable_openni2;  case "${enableval}" in
84410      yes) USE_OPENNI2=yes;;
84411      no) USE_OPENNI2=no;;
84412      *) as_fn_error $? "bad value ${enableval} for --enable-openni2" "$LINENO" 5 ;;
84413    esac
84414else
84415   USE_OPENNI2=yes
84416fi
84417
84418if test "x$NOUSE" = "xyes"; then
84419  USE_OPENNI2="no"
84420  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openni2 pre-configured not to be built" >&5
84421$as_echo "$as_me: WARNING: *** openni2 pre-configured not to be built" >&2;}
84422fi
84423NOUSE=
84424
84425if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPENNI2 " > /dev/null; then
84426  USE_OPENNI2="no"
84427  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** openni2 not ported" >&5
84428$as_echo "$as_me: WARNING: *** openni2 not ported" >&2;}
84429fi
84430
84431
84432if test x$USE_OPENNI2 = xyes; then
84433
84434  gst_check_save_LIBS=$LIBS
84435  gst_check_save_LDFLAGS=$LDFLAGS
84436  gst_check_save_CFLAGS=$CFLAGS
84437  gst_check_save_CPPFLAGS=$CPPFLAGS
84438  gst_check_save_CXXFLAGS=$CXXFLAGS
84439
84440  HAVE_OPENNI2=no
84441
84442
84443pkg_failed=no
84444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENNI2" >&5
84445$as_echo_n "checking for OPENNI2... " >&6; }
84446
84447if test -n "$PKG_CONFIG"; then
84448    if test -n "$OPENNI2_CFLAGS"; then
84449        pkg_cv_OPENNI2_CFLAGS="$OPENNI2_CFLAGS"
84450    else
84451        if test -n "$PKG_CONFIG" && \
84452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenni2 >= 0.26\""; } >&5
84453  ($PKG_CONFIG --exists --print-errors "libopenni2 >= 0.26") 2>&5
84454  ac_status=$?
84455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84456  test $ac_status = 0; }; then
84457  pkg_cv_OPENNI2_CFLAGS=`$PKG_CONFIG --cflags "libopenni2 >= 0.26" 2>/dev/null`
84458else
84459  pkg_failed=yes
84460fi
84461    fi
84462else
84463	pkg_failed=untried
84464fi
84465if test -n "$PKG_CONFIG"; then
84466    if test -n "$OPENNI2_LIBS"; then
84467        pkg_cv_OPENNI2_LIBS="$OPENNI2_LIBS"
84468    else
84469        if test -n "$PKG_CONFIG" && \
84470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenni2 >= 0.26\""; } >&5
84471  ($PKG_CONFIG --exists --print-errors "libopenni2 >= 0.26") 2>&5
84472  ac_status=$?
84473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84474  test $ac_status = 0; }; then
84475  pkg_cv_OPENNI2_LIBS=`$PKG_CONFIG --libs "libopenni2 >= 0.26" 2>/dev/null`
84476else
84477  pkg_failed=yes
84478fi
84479    fi
84480else
84481	pkg_failed=untried
84482fi
84483
84484
84485
84486if test $pkg_failed = yes; then
84487
84488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84489        _pkg_short_errors_supported=yes
84490else
84491        _pkg_short_errors_supported=no
84492fi
84493        if test $_pkg_short_errors_supported = yes; then
84494	        OPENNI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libopenni2 >= 0.26"`
84495        else
84496	        OPENNI2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libopenni2 >= 0.26"`
84497        fi
84498	# Put the nasty error message in config.log where it belongs
84499	echo "$OPENNI2_PKG_ERRORS" >&5
84500
84501	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84502$as_echo "no" >&6; }
84503                 HAVE_OPENNI2="no"
84504elif test $pkg_failed = untried; then
84505	 HAVE_OPENNI2="no"
84506else
84507	OPENNI2_CFLAGS=$pkg_cv_OPENNI2_CFLAGS
84508	OPENNI2_LIBS=$pkg_cv_OPENNI2_LIBS
84509        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84510$as_echo "yes" >&6; }
84511	HAVE_OPENNI2="yes"
84512fi
84513
84514
84515
84516
84517  LIBS=$gst_check_save_LIBS
84518  LDFLAGS=$gst_check_save_LDFLAGS
84519  CFLAGS=$gst_check_save_CFLAGS
84520  CPPFLAGS=$gst_check_save_CPPFLAGS
84521  CXXFLAGS=$gst_check_save_CXXFLAGS
84522
84523    if test x$HAVE_OPENNI2 = xno; then
84524    USE_OPENNI2=no
84525  else
84526    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: openni2" >&5
84527$as_echo "$as_me: *** These plugins will be built: openni2" >&6;}
84528  fi
84529fi
84530if test x$USE_OPENNI2 = xyes; then
84531  :
84532  if test "xopenni2" != "x"; then
84533    GST_PLUGINS_YES="\topenni2\n$GST_PLUGINS_YES"
84534  fi
84535
84536$as_echo "#define HAVE_OPENNI2 /**/" >>confdefs.h
84537
84538else
84539  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: openni2" >&5
84540$as_echo "$as_me: *** These plugins will not be built: openni2" >&6;}
84541  if test "xopenni2" != "x"; then
84542    GST_PLUGINS_NO="\topenni2\n$GST_PLUGINS_NO"
84543  fi
84544  :
84545fi
84546 if test x$USE_OPENNI2 = xyes; then
84547  USE_OPENNI2_TRUE=
84548  USE_OPENNI2_FALSE='#'
84549else
84550  USE_OPENNI2_TRUE='#'
84551  USE_OPENNI2_FALSE=
84552fi
84553
84554
84555
84556echo
84557{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: opus ***" >&5
84558$as_echo "$as_me: *** checking feature: opus ***" >&6;}
84559if test "xopus" != "x"
84560then
84561  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: opus ***" >&5
84562$as_echo "$as_me: *** for plug-ins: opus ***" >&6;}
84563fi
84564NOUSE=
84565if test "x$USE_OPUS" = "xno"; then
84566  NOUSE="yes"
84567fi
84568# Check whether --enable-opus was given.
84569if test "${enable_opus+set}" = set; then :
84570  enableval=$enable_opus;  case "${enableval}" in
84571      yes) USE_OPUS=yes;;
84572      no) USE_OPUS=no;;
84573      *) as_fn_error $? "bad value ${enableval} for --enable-opus" "$LINENO" 5 ;;
84574    esac
84575else
84576   USE_OPUS=yes
84577fi
84578
84579if test "x$NOUSE" = "xyes"; then
84580  USE_OPUS="no"
84581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opus pre-configured not to be built" >&5
84582$as_echo "$as_me: WARNING: *** opus pre-configured not to be built" >&2;}
84583fi
84584NOUSE=
84585
84586if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " OPUS " > /dev/null; then
84587  USE_OPUS="no"
84588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** opus not ported" >&5
84589$as_echo "$as_me: WARNING: *** opus not ported" >&2;}
84590fi
84591
84592
84593if test x$USE_OPUS = xyes; then
84594
84595  gst_check_save_LIBS=$LIBS
84596  gst_check_save_LDFLAGS=$LDFLAGS
84597  gst_check_save_CFLAGS=$CFLAGS
84598  gst_check_save_CPPFLAGS=$CPPFLAGS
84599  gst_check_save_CXXFLAGS=$CXXFLAGS
84600
84601  HAVE_OPUS=no
84602
84603
84604pkg_failed=no
84605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUS" >&5
84606$as_echo_n "checking for OPUS... " >&6; }
84607
84608if test -n "$PKG_CONFIG"; then
84609    if test -n "$OPUS_CFLAGS"; then
84610        pkg_cv_OPUS_CFLAGS="$OPUS_CFLAGS"
84611    else
84612        if test -n "$PKG_CONFIG" && \
84613    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 0.9.4\""; } >&5
84614  ($PKG_CONFIG --exists --print-errors "opus >= 0.9.4") 2>&5
84615  ac_status=$?
84616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84617  test $ac_status = 0; }; then
84618  pkg_cv_OPUS_CFLAGS=`$PKG_CONFIG --cflags "opus >= 0.9.4" 2>/dev/null`
84619else
84620  pkg_failed=yes
84621fi
84622    fi
84623else
84624	pkg_failed=untried
84625fi
84626if test -n "$PKG_CONFIG"; then
84627    if test -n "$OPUS_LIBS"; then
84628        pkg_cv_OPUS_LIBS="$OPUS_LIBS"
84629    else
84630        if test -n "$PKG_CONFIG" && \
84631    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 0.9.4\""; } >&5
84632  ($PKG_CONFIG --exists --print-errors "opus >= 0.9.4") 2>&5
84633  ac_status=$?
84634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84635  test $ac_status = 0; }; then
84636  pkg_cv_OPUS_LIBS=`$PKG_CONFIG --libs "opus >= 0.9.4" 2>/dev/null`
84637else
84638  pkg_failed=yes
84639fi
84640    fi
84641else
84642	pkg_failed=untried
84643fi
84644
84645
84646
84647if test $pkg_failed = yes; then
84648
84649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84650        _pkg_short_errors_supported=yes
84651else
84652        _pkg_short_errors_supported=no
84653fi
84654        if test $_pkg_short_errors_supported = yes; then
84655	        OPUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opus >= 0.9.4"`
84656        else
84657	        OPUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opus >= 0.9.4"`
84658        fi
84659	# Put the nasty error message in config.log where it belongs
84660	echo "$OPUS_PKG_ERRORS" >&5
84661
84662	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84663$as_echo "no" >&6; }
84664
84665          HAVE_OPUS="no"
84666
84667elif test $pkg_failed = untried; then
84668
84669          HAVE_OPUS="no"
84670
84671else
84672	OPUS_CFLAGS=$pkg_cv_OPUS_CFLAGS
84673	OPUS_LIBS=$pkg_cv_OPUS_LIBS
84674        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84675$as_echo "yes" >&6; }
84676
84677
84678$as_echo "#define HAVE_OPUS 1" >>confdefs.h
84679
84680          HAVE_OPUS="yes"
84681
84682fi
84683
84684
84685
84686
84687  LIBS=$gst_check_save_LIBS
84688  LDFLAGS=$gst_check_save_LDFLAGS
84689  CFLAGS=$gst_check_save_CFLAGS
84690  CPPFLAGS=$gst_check_save_CPPFLAGS
84691  CXXFLAGS=$gst_check_save_CXXFLAGS
84692
84693    if test x$HAVE_OPUS = xno; then
84694    USE_OPUS=no
84695  else
84696    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: opus" >&5
84697$as_echo "$as_me: *** These plugins will be built: opus" >&6;}
84698  fi
84699fi
84700if test x$USE_OPUS = xyes; then
84701  :
84702  if test "xopus" != "x"; then
84703    GST_PLUGINS_YES="\topus\n$GST_PLUGINS_YES"
84704  fi
84705
84706$as_echo "#define HAVE_OPUS /**/" >>confdefs.h
84707
84708else
84709  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: opus" >&5
84710$as_echo "$as_me: *** These plugins will not be built: opus" >&6;}
84711  if test "xopus" != "x"; then
84712    GST_PLUGINS_NO="\topus\n$GST_PLUGINS_NO"
84713  fi
84714  :
84715fi
84716 if test x$USE_OPUS = xyes; then
84717  USE_OPUS_TRUE=
84718  USE_OPUS_FALSE='#'
84719else
84720  USE_OPUS_TRUE='#'
84721  USE_OPUS_FALSE=
84722fi
84723
84724
84725
84726echo
84727{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Pango font rendering ***" >&5
84728$as_echo "$as_me: *** checking feature: Pango font rendering ***" >&6;}
84729if test "xpango" != "x"
84730then
84731  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: pango ***" >&5
84732$as_echo "$as_me: *** for plug-ins: pango ***" >&6;}
84733fi
84734NOUSE=
84735if test "x$USE_PANGO" = "xno"; then
84736  NOUSE="yes"
84737fi
84738# Check whether --enable-pango was given.
84739if test "${enable_pango+set}" = set; then :
84740  enableval=$enable_pango;  case "${enableval}" in
84741      yes) USE_PANGO=yes;;
84742      no) USE_PANGO=no;;
84743      *) as_fn_error $? "bad value ${enableval} for --enable-pango" "$LINENO" 5 ;;
84744    esac
84745else
84746   USE_PANGO=yes
84747fi
84748
84749if test "x$NOUSE" = "xyes"; then
84750  USE_PANGO="no"
84751  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pango pre-configured not to be built" >&5
84752$as_echo "$as_me: WARNING: *** pango pre-configured not to be built" >&2;}
84753fi
84754NOUSE=
84755
84756if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " PANGO " > /dev/null; then
84757  USE_PANGO="no"
84758  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** pango not ported" >&5
84759$as_echo "$as_me: WARNING: *** pango not ported" >&2;}
84760fi
84761
84762
84763if test x$USE_PANGO = xyes; then
84764
84765  gst_check_save_LIBS=$LIBS
84766  gst_check_save_LDFLAGS=$LDFLAGS
84767  gst_check_save_CFLAGS=$CFLAGS
84768  gst_check_save_CPPFLAGS=$CPPFLAGS
84769  gst_check_save_CXXFLAGS=$CXXFLAGS
84770
84771  HAVE_PANGO=no
84772
84773
84774  which="pango >= 1.22.0  pangocairo >= 1.22.0"
84775    required="no"
84776
84777
84778pkg_failed=no
84779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
84780$as_echo_n "checking for PANGO... " >&6; }
84781
84782if test -n "$PKG_CONFIG"; then
84783    if test -n "$PANGO_CFLAGS"; then
84784        pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
84785    else
84786        if test -n "$PKG_CONFIG" && \
84787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
84788  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
84789  ac_status=$?
84790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84791  test $ac_status = 0; }; then
84792  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
84793else
84794  pkg_failed=yes
84795fi
84796    fi
84797else
84798	pkg_failed=untried
84799fi
84800if test -n "$PKG_CONFIG"; then
84801    if test -n "$PANGO_LIBS"; then
84802        pkg_cv_PANGO_LIBS="$PANGO_LIBS"
84803    else
84804        if test -n "$PKG_CONFIG" && \
84805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
84806  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
84807  ac_status=$?
84808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84809  test $ac_status = 0; }; then
84810  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
84811else
84812  pkg_failed=yes
84813fi
84814    fi
84815else
84816	pkg_failed=untried
84817fi
84818
84819
84820
84821if test $pkg_failed = yes; then
84822
84823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
84824        _pkg_short_errors_supported=yes
84825else
84826        _pkg_short_errors_supported=no
84827fi
84828        if test $_pkg_short_errors_supported = yes; then
84829	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
84830        else
84831	        PANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
84832        fi
84833	# Put the nasty error message in config.log where it belongs
84834	echo "$PANGO_PKG_ERRORS" >&5
84835
84836	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
84837$as_echo "no" >&6; }
84838
84839      HAVE_PANGO="no"
84840      if test "x$required" = "xyes"; then
84841        as_fn_error $? "$PANGO_PKG_ERRORS" "$LINENO" 5
84842      else
84843        { $as_echo "$as_me:${as_lineno-$LINENO}: $PANGO_PKG_ERRORS" >&5
84844$as_echo "$as_me: $PANGO_PKG_ERRORS" >&6;}
84845      fi
84846
84847elif test $pkg_failed = untried; then
84848
84849      HAVE_PANGO="no"
84850      if test "x$required" = "xyes"; then
84851        as_fn_error $? "$PANGO_PKG_ERRORS" "$LINENO" 5
84852      else
84853        { $as_echo "$as_me:${as_lineno-$LINENO}: $PANGO_PKG_ERRORS" >&5
84854$as_echo "$as_me: $PANGO_PKG_ERRORS" >&6;}
84855      fi
84856
84857else
84858	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
84859	PANGO_LIBS=$pkg_cv_PANGO_LIBS
84860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
84861$as_echo "yes" >&6; }
84862
84863      HAVE_PANGO="yes"
84864
84865fi
84866
84867
84868
84869
84870  LIBS=$gst_check_save_LIBS
84871  LDFLAGS=$gst_check_save_LDFLAGS
84872  CFLAGS=$gst_check_save_CFLAGS
84873  CPPFLAGS=$gst_check_save_CPPFLAGS
84874  CXXFLAGS=$gst_check_save_CXXFLAGS
84875
84876    if test x$HAVE_PANGO = xno; then
84877    USE_PANGO=no
84878  else
84879    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: pango" >&5
84880$as_echo "$as_me: *** These plugins will be built: pango" >&6;}
84881  fi
84882fi
84883if test x$USE_PANGO = xyes; then
84884  :
84885  if test "xpango" != "x"; then
84886    GST_PLUGINS_YES="\tpango\n$GST_PLUGINS_YES"
84887  fi
84888
84889$as_echo "#define HAVE_PANGO /**/" >>confdefs.h
84890
84891else
84892  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: pango" >&5
84893$as_echo "$as_me: *** These plugins will not be built: pango" >&6;}
84894  if test "xpango" != "x"; then
84895    GST_PLUGINS_NO="\tpango\n$GST_PLUGINS_NO"
84896  fi
84897  :
84898fi
84899 if test x$USE_PANGO = xyes; then
84900  USE_PANGO_TRUE=
84901  USE_PANGO_FALSE='#'
84902else
84903  USE_PANGO_TRUE='#'
84904  USE_PANGO_FALSE=
84905fi
84906
84907
84908
84909echo
84910{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: rsvg decoder ***" >&5
84911$as_echo "$as_me: *** checking feature: rsvg decoder ***" >&6;}
84912if test "xrsvg" != "x"
84913then
84914  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: rsvg ***" >&5
84915$as_echo "$as_me: *** for plug-ins: rsvg ***" >&6;}
84916fi
84917NOUSE=
84918if test "x$USE_RSVG" = "xno"; then
84919  NOUSE="yes"
84920fi
84921# Check whether --enable-rsvg was given.
84922if test "${enable_rsvg+set}" = set; then :
84923  enableval=$enable_rsvg;  case "${enableval}" in
84924      yes) USE_RSVG=yes;;
84925      no) USE_RSVG=no;;
84926      *) as_fn_error $? "bad value ${enableval} for --enable-rsvg" "$LINENO" 5 ;;
84927    esac
84928else
84929   USE_RSVG=yes
84930fi
84931
84932if test "x$NOUSE" = "xyes"; then
84933  USE_RSVG="no"
84934  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** rsvg pre-configured not to be built" >&5
84935$as_echo "$as_me: WARNING: *** rsvg pre-configured not to be built" >&2;}
84936fi
84937NOUSE=
84938
84939if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " RSVG " > /dev/null; then
84940  USE_RSVG="no"
84941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** rsvg not ported" >&5
84942$as_echo "$as_me: WARNING: *** rsvg not ported" >&2;}
84943fi
84944
84945
84946if test x$USE_RSVG = xyes; then
84947
84948  gst_check_save_LIBS=$LIBS
84949  gst_check_save_LDFLAGS=$LDFLAGS
84950  gst_check_save_CFLAGS=$CFLAGS
84951  gst_check_save_CPPFLAGS=$CPPFLAGS
84952  gst_check_save_CXXFLAGS=$CXXFLAGS
84953
84954  HAVE_RSVG=no
84955
84956
84957  which="librsvg-2.0 >= 2.36.2"
84958    required="no"
84959
84960
84961pkg_failed=no
84962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
84963$as_echo_n "checking for RSVG... " >&6; }
84964
84965if test -n "$PKG_CONFIG"; then
84966    if test -n "$RSVG_CFLAGS"; then
84967        pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
84968    else
84969        if test -n "$PKG_CONFIG" && \
84970    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
84971  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
84972  ac_status=$?
84973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84974  test $ac_status = 0; }; then
84975  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
84976else
84977  pkg_failed=yes
84978fi
84979    fi
84980else
84981	pkg_failed=untried
84982fi
84983if test -n "$PKG_CONFIG"; then
84984    if test -n "$RSVG_LIBS"; then
84985        pkg_cv_RSVG_LIBS="$RSVG_LIBS"
84986    else
84987        if test -n "$PKG_CONFIG" && \
84988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
84989  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
84990  ac_status=$?
84991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
84992  test $ac_status = 0; }; then
84993  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
84994else
84995  pkg_failed=yes
84996fi
84997    fi
84998else
84999	pkg_failed=untried
85000fi
85001
85002
85003
85004if test $pkg_failed = yes; then
85005
85006if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85007        _pkg_short_errors_supported=yes
85008else
85009        _pkg_short_errors_supported=no
85010fi
85011        if test $_pkg_short_errors_supported = yes; then
85012	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
85013        else
85014	        RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
85015        fi
85016	# Put the nasty error message in config.log where it belongs
85017	echo "$RSVG_PKG_ERRORS" >&5
85018
85019	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85020$as_echo "no" >&6; }
85021
85022      HAVE_RSVG="no"
85023      if test "x$required" = "xyes"; then
85024        as_fn_error $? "$RSVG_PKG_ERRORS" "$LINENO" 5
85025      else
85026        { $as_echo "$as_me:${as_lineno-$LINENO}: $RSVG_PKG_ERRORS" >&5
85027$as_echo "$as_me: $RSVG_PKG_ERRORS" >&6;}
85028      fi
85029
85030elif test $pkg_failed = untried; then
85031
85032      HAVE_RSVG="no"
85033      if test "x$required" = "xyes"; then
85034        as_fn_error $? "$RSVG_PKG_ERRORS" "$LINENO" 5
85035      else
85036        { $as_echo "$as_me:${as_lineno-$LINENO}: $RSVG_PKG_ERRORS" >&5
85037$as_echo "$as_me: $RSVG_PKG_ERRORS" >&6;}
85038      fi
85039
85040else
85041	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
85042	RSVG_LIBS=$pkg_cv_RSVG_LIBS
85043        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85044$as_echo "yes" >&6; }
85045
85046      HAVE_RSVG="yes"
85047
85048fi
85049
85050
85051
85052
85053  LIBS=$gst_check_save_LIBS
85054  LDFLAGS=$gst_check_save_LDFLAGS
85055  CFLAGS=$gst_check_save_CFLAGS
85056  CPPFLAGS=$gst_check_save_CPPFLAGS
85057  CXXFLAGS=$gst_check_save_CXXFLAGS
85058
85059    if test x$HAVE_RSVG = xno; then
85060    USE_RSVG=no
85061  else
85062    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: rsvg" >&5
85063$as_echo "$as_me: *** These plugins will be built: rsvg" >&6;}
85064  fi
85065fi
85066if test x$USE_RSVG = xyes; then
85067  :
85068  if test "xrsvg" != "x"; then
85069    GST_PLUGINS_YES="\trsvg\n$GST_PLUGINS_YES"
85070  fi
85071
85072$as_echo "#define HAVE_RSVG /**/" >>confdefs.h
85073
85074else
85075  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: rsvg" >&5
85076$as_echo "$as_me: *** These plugins will not be built: rsvg" >&6;}
85077  if test "xrsvg" != "x"; then
85078    GST_PLUGINS_NO="\trsvg\n$GST_PLUGINS_NO"
85079  fi
85080  :
85081fi
85082 if test x$USE_RSVG = xyes; then
85083  USE_RSVG_TRUE=
85084  USE_RSVG_FALSE='#'
85085else
85086  USE_RSVG_TRUE='#'
85087  USE_RSVG_FALSE=
85088fi
85089
85090
85091
85092HAVE_GL="no"
85093echo
85094{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: gl elements ***" >&5
85095$as_echo "$as_me: *** checking feature: gl elements ***" >&6;}
85096if test "xgl" != "x"
85097then
85098  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: gl ***" >&5
85099$as_echo "$as_me: *** for plug-ins: gl ***" >&6;}
85100fi
85101NOUSE=
85102if test "x$USE_GL" = "xno"; then
85103  NOUSE="yes"
85104fi
85105# Check whether --enable-gl was given.
85106if test "${enable_gl+set}" = set; then :
85107  enableval=$enable_gl;  case "${enableval}" in
85108      yes) USE_GL=yes;;
85109      no) USE_GL=no;;
85110      *) as_fn_error $? "bad value ${enableval} for --enable-gl" "$LINENO" 5 ;;
85111    esac
85112else
85113   USE_GL=yes
85114fi
85115
85116if test "x$NOUSE" = "xyes"; then
85117  USE_GL="no"
85118  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gl pre-configured not to be built" >&5
85119$as_echo "$as_me: WARNING: *** gl pre-configured not to be built" >&2;}
85120fi
85121NOUSE=
85122
85123if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " GL " > /dev/null; then
85124  USE_GL="no"
85125  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gl not ported" >&5
85126$as_echo "$as_me: WARNING: *** gl not ported" >&2;}
85127fi
85128
85129
85130if test x$USE_GL = xyes; then
85131
85132  gst_check_save_LIBS=$LIBS
85133  gst_check_save_LDFLAGS=$LDFLAGS
85134  gst_check_save_CFLAGS=$CFLAGS
85135  gst_check_save_CPPFLAGS=$CPPFLAGS
85136  gst_check_save_CXXFLAGS=$CXXFLAGS
85137
85138  HAVE_GL=no
85139
85140  if test "x$HAVE_GST_GL" = "xyes"; then
85141    HAVE_GL="yes"
85142  fi
85143
85144
85145  LIBS=$gst_check_save_LIBS
85146  LDFLAGS=$gst_check_save_LDFLAGS
85147  CFLAGS=$gst_check_save_CFLAGS
85148  CPPFLAGS=$gst_check_save_CPPFLAGS
85149  CXXFLAGS=$gst_check_save_CXXFLAGS
85150
85151    if test x$HAVE_GL = xno; then
85152    USE_GL=no
85153  else
85154    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: gl" >&5
85155$as_echo "$as_me: *** These plugins will be built: gl" >&6;}
85156  fi
85157fi
85158if test x$USE_GL = xyes; then
85159  :
85160  if test "xgl" != "x"; then
85161    GST_PLUGINS_YES="\tgl\n$GST_PLUGINS_YES"
85162  fi
85163
85164$as_echo "#define HAVE_GL /**/" >>confdefs.h
85165
85166else
85167  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: gl" >&5
85168$as_echo "$as_me: *** These plugins will not be built: gl" >&6;}
85169  if test "xgl" != "x"; then
85170    GST_PLUGINS_NO="\tgl\n$GST_PLUGINS_NO"
85171  fi
85172  :
85173fi
85174 if test x$USE_GL = xyes; then
85175  USE_GL_TRUE=
85176  USE_GL_FALSE='#'
85177else
85178  USE_GL_TRUE='#'
85179  USE_GL_FALSE=
85180fi
85181
85182
85183 if test "x$HAVE_GL" = "xyes"; then
85184  USE_GL_TRUE=
85185  USE_GL_FALSE='#'
85186else
85187  USE_GL_TRUE='#'
85188  USE_GL_FALSE=
85189fi
85190
85191 if test "x$GST_GL_HAVE_API_GL" = "x1"; then
85192  USE_OPENGL_TRUE=
85193  USE_OPENGL_FALSE='#'
85194else
85195  USE_OPENGL_TRUE='#'
85196  USE_OPENGL_FALSE=
85197fi
85198
85199
85200echo
85201{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Vulkan elements ***" >&5
85202$as_echo "$as_me: *** checking feature: Vulkan elements ***" >&6;}
85203if test "xvulkan" != "x"
85204then
85205  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vulkan ***" >&5
85206$as_echo "$as_me: *** for plug-ins: vulkan ***" >&6;}
85207fi
85208NOUSE=
85209if test "x$USE_VULKAN" = "xno"; then
85210  NOUSE="yes"
85211fi
85212# Check whether --enable-vulkan was given.
85213if test "${enable_vulkan+set}" = set; then :
85214  enableval=$enable_vulkan;  case "${enableval}" in
85215      yes) USE_VULKAN=yes;;
85216      no) USE_VULKAN=no;;
85217      *) as_fn_error $? "bad value ${enableval} for --enable-vulkan" "$LINENO" 5 ;;
85218    esac
85219else
85220   USE_VULKAN=yes
85221fi
85222
85223if test "x$NOUSE" = "xyes"; then
85224  USE_VULKAN="no"
85225  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vulkan pre-configured not to be built" >&5
85226$as_echo "$as_me: WARNING: *** vulkan pre-configured not to be built" >&2;}
85227fi
85228NOUSE=
85229
85230if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VULKAN " > /dev/null; then
85231  USE_VULKAN="no"
85232  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vulkan not ported" >&5
85233$as_echo "$as_me: WARNING: *** vulkan not ported" >&2;}
85234fi
85235
85236
85237if test x$USE_VULKAN = xyes; then
85238
85239  gst_check_save_LIBS=$LIBS
85240  gst_check_save_LDFLAGS=$LDFLAGS
85241  gst_check_save_CFLAGS=$CFLAGS
85242  gst_check_save_CPPFLAGS=$CPPFLAGS
85243  gst_check_save_CXXFLAGS=$CXXFLAGS
85244
85245  HAVE_VULKAN=no
85246
85247  ac_fn_c_check_header_mongrel "$LINENO" "vulkan/vulkan.h" "ac_cv_header_vulkan_vulkan_h" "$ac_includes_default"
85248if test "x$ac_cv_header_vulkan_vulkan_h" = xyes; then :
85249
85250    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vkCreateDevice in -lvulkan" >&5
85251$as_echo_n "checking for vkCreateDevice in -lvulkan... " >&6; }
85252if ${ac_cv_lib_vulkan_vkCreateDevice+:} false; then :
85253  $as_echo_n "(cached) " >&6
85254else
85255  ac_check_lib_save_LIBS=$LIBS
85256LIBS="-lvulkan  $LIBS"
85257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85258/* end confdefs.h.  */
85259
85260/* Override any GCC internal prototype to avoid an error.
85261   Use char because int might match the return type of a GCC
85262   builtin and then its argument prototype would still apply.  */
85263#ifdef __cplusplus
85264extern "C"
85265#endif
85266char vkCreateDevice ();
85267int
85268main ()
85269{
85270return vkCreateDevice ();
85271  ;
85272  return 0;
85273}
85274_ACEOF
85275if ac_fn_c_try_link "$LINENO"; then :
85276  ac_cv_lib_vulkan_vkCreateDevice=yes
85277else
85278  ac_cv_lib_vulkan_vkCreateDevice=no
85279fi
85280rm -f core conftest.err conftest.$ac_objext \
85281    conftest$ac_exeext conftest.$ac_ext
85282LIBS=$ac_check_lib_save_LIBS
85283fi
85284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vulkan_vkCreateDevice" >&5
85285$as_echo "$ac_cv_lib_vulkan_vkCreateDevice" >&6; }
85286if test "x$ac_cv_lib_vulkan_vkCreateDevice" = xyes; then :
85287
85288      VULKAN_LIBS="-lvulkan"
85289
85290      if test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1"; then
85291        HAVE_VULKAN="yes"
85292      fi
85293      if test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1"; then
85294        HAVE_VULKAN="yes"
85295      fi
85296
85297fi
85298
85299
85300fi
85301
85302
85303
85304
85305  LIBS=$gst_check_save_LIBS
85306  LDFLAGS=$gst_check_save_LDFLAGS
85307  CFLAGS=$gst_check_save_CFLAGS
85308  CPPFLAGS=$gst_check_save_CPPFLAGS
85309  CXXFLAGS=$gst_check_save_CXXFLAGS
85310
85311    if test x$HAVE_VULKAN = xno; then
85312    USE_VULKAN=no
85313  else
85314    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vulkan" >&5
85315$as_echo "$as_me: *** These plugins will be built: vulkan" >&6;}
85316  fi
85317fi
85318if test x$USE_VULKAN = xyes; then
85319  :
85320  if test "xvulkan" != "x"; then
85321    GST_PLUGINS_YES="\tvulkan\n$GST_PLUGINS_YES"
85322  fi
85323
85324$as_echo "#define HAVE_VULKAN /**/" >>confdefs.h
85325
85326else
85327  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vulkan" >&5
85328$as_echo "$as_me: *** These plugins will not be built: vulkan" >&6;}
85329  if test "xvulkan" != "x"; then
85330    GST_PLUGINS_NO="\tvulkan\n$GST_PLUGINS_NO"
85331  fi
85332  :
85333fi
85334 if test x$USE_VULKAN = xyes; then
85335  USE_VULKAN_TRUE=
85336  USE_VULKAN_FALSE='#'
85337else
85338  USE_VULKAN_TRUE='#'
85339  USE_VULKAN_FALSE=
85340fi
85341
85342
85343
85344echo
85345{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Teletext decoder ***" >&5
85346$as_echo "$as_me: *** checking feature: Teletext decoder ***" >&6;}
85347if test "xteletextdec" != "x"
85348then
85349  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: teletextdec ***" >&5
85350$as_echo "$as_me: *** for plug-ins: teletextdec ***" >&6;}
85351fi
85352NOUSE=
85353if test "x$USE_TELETEXTDEC" = "xno"; then
85354  NOUSE="yes"
85355fi
85356# Check whether --enable-teletextdec was given.
85357if test "${enable_teletextdec+set}" = set; then :
85358  enableval=$enable_teletextdec;  case "${enableval}" in
85359      yes) USE_TELETEXTDEC=yes;;
85360      no) USE_TELETEXTDEC=no;;
85361      *) as_fn_error $? "bad value ${enableval} for --enable-teletextdec" "$LINENO" 5 ;;
85362    esac
85363else
85364   USE_TELETEXTDEC=yes
85365fi
85366
85367if test "x$NOUSE" = "xyes"; then
85368  USE_TELETEXTDEC="no"
85369  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** teletextdec pre-configured not to be built" >&5
85370$as_echo "$as_me: WARNING: *** teletextdec pre-configured not to be built" >&2;}
85371fi
85372NOUSE=
85373
85374if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " TELETEXTDEC " > /dev/null; then
85375  USE_TELETEXTDEC="no"
85376  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** teletextdec not ported" >&5
85377$as_echo "$as_me: WARNING: *** teletextdec not ported" >&2;}
85378fi
85379
85380
85381if test x$USE_TELETEXTDEC = xyes; then
85382
85383  gst_check_save_LIBS=$LIBS
85384  gst_check_save_LDFLAGS=$LDFLAGS
85385  gst_check_save_CFLAGS=$CFLAGS
85386  gst_check_save_CPPFLAGS=$CPPFLAGS
85387  gst_check_save_CXXFLAGS=$CXXFLAGS
85388
85389  HAVE_TELETEXTDEC=no
85390
85391
85392  which="zvbi-0.2"
85393    required="no"
85394
85395
85396pkg_failed=no
85397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TELETEXTDEC" >&5
85398$as_echo_n "checking for TELETEXTDEC... " >&6; }
85399
85400if test -n "$PKG_CONFIG"; then
85401    if test -n "$TELETEXTDEC_CFLAGS"; then
85402        pkg_cv_TELETEXTDEC_CFLAGS="$TELETEXTDEC_CFLAGS"
85403    else
85404        if test -n "$PKG_CONFIG" && \
85405    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
85406  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
85407  ac_status=$?
85408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85409  test $ac_status = 0; }; then
85410  pkg_cv_TELETEXTDEC_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
85411else
85412  pkg_failed=yes
85413fi
85414    fi
85415else
85416	pkg_failed=untried
85417fi
85418if test -n "$PKG_CONFIG"; then
85419    if test -n "$TELETEXTDEC_LIBS"; then
85420        pkg_cv_TELETEXTDEC_LIBS="$TELETEXTDEC_LIBS"
85421    else
85422        if test -n "$PKG_CONFIG" && \
85423    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
85424  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
85425  ac_status=$?
85426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85427  test $ac_status = 0; }; then
85428  pkg_cv_TELETEXTDEC_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
85429else
85430  pkg_failed=yes
85431fi
85432    fi
85433else
85434	pkg_failed=untried
85435fi
85436
85437
85438
85439if test $pkg_failed = yes; then
85440
85441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85442        _pkg_short_errors_supported=yes
85443else
85444        _pkg_short_errors_supported=no
85445fi
85446        if test $_pkg_short_errors_supported = yes; then
85447	        TELETEXTDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
85448        else
85449	        TELETEXTDEC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
85450        fi
85451	# Put the nasty error message in config.log where it belongs
85452	echo "$TELETEXTDEC_PKG_ERRORS" >&5
85453
85454	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85455$as_echo "no" >&6; }
85456
85457      HAVE_TELETEXTDEC="no"
85458      if test "x$required" = "xyes"; then
85459        as_fn_error $? "$TELETEXTDEC_PKG_ERRORS" "$LINENO" 5
85460      else
85461        { $as_echo "$as_me:${as_lineno-$LINENO}: $TELETEXTDEC_PKG_ERRORS" >&5
85462$as_echo "$as_me: $TELETEXTDEC_PKG_ERRORS" >&6;}
85463      fi
85464
85465elif test $pkg_failed = untried; then
85466
85467      HAVE_TELETEXTDEC="no"
85468      if test "x$required" = "xyes"; then
85469        as_fn_error $? "$TELETEXTDEC_PKG_ERRORS" "$LINENO" 5
85470      else
85471        { $as_echo "$as_me:${as_lineno-$LINENO}: $TELETEXTDEC_PKG_ERRORS" >&5
85472$as_echo "$as_me: $TELETEXTDEC_PKG_ERRORS" >&6;}
85473      fi
85474
85475else
85476	TELETEXTDEC_CFLAGS=$pkg_cv_TELETEXTDEC_CFLAGS
85477	TELETEXTDEC_LIBS=$pkg_cv_TELETEXTDEC_LIBS
85478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85479$as_echo "yes" >&6; }
85480
85481      HAVE_TELETEXTDEC="yes"
85482
85483fi
85484
85485
85486
85487
85488  LIBS=$gst_check_save_LIBS
85489  LDFLAGS=$gst_check_save_LDFLAGS
85490  CFLAGS=$gst_check_save_CFLAGS
85491  CPPFLAGS=$gst_check_save_CPPFLAGS
85492  CXXFLAGS=$gst_check_save_CXXFLAGS
85493
85494    if test x$HAVE_TELETEXTDEC = xno; then
85495    USE_TELETEXTDEC=no
85496  else
85497    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: teletextdec" >&5
85498$as_echo "$as_me: *** These plugins will be built: teletextdec" >&6;}
85499  fi
85500fi
85501if test x$USE_TELETEXTDEC = xyes; then
85502  :
85503  if test "xteletextdec" != "x"; then
85504    GST_PLUGINS_YES="\tteletextdec\n$GST_PLUGINS_YES"
85505  fi
85506
85507$as_echo "#define HAVE_TELETEXTDEC /**/" >>confdefs.h
85508
85509else
85510  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: teletextdec" >&5
85511$as_echo "$as_me: *** These plugins will not be built: teletextdec" >&6;}
85512  if test "xteletextdec" != "x"; then
85513    GST_PLUGINS_NO="\tteletextdec\n$GST_PLUGINS_NO"
85514  fi
85515  :
85516fi
85517 if test x$USE_TELETEXTDEC = xyes; then
85518  USE_TELETEXTDEC_TRUE=
85519  USE_TELETEXTDEC_FALSE='#'
85520else
85521  USE_TELETEXTDEC_TRUE='#'
85522  USE_TELETEXTDEC_FALSE=
85523fi
85524
85525
85526
85527echo
85528{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: wildmidi midi soft synth plugin ***" >&5
85529$as_echo "$as_me: *** checking feature: wildmidi midi soft synth plugin ***" >&6;}
85530if test "xwildmidi" != "x"
85531then
85532  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: wildmidi ***" >&5
85533$as_echo "$as_me: *** for plug-ins: wildmidi ***" >&6;}
85534fi
85535NOUSE=
85536if test "x$USE_WILDMIDI" = "xno"; then
85537  NOUSE="yes"
85538fi
85539# Check whether --enable-wildmidi was given.
85540if test "${enable_wildmidi+set}" = set; then :
85541  enableval=$enable_wildmidi;  case "${enableval}" in
85542      yes) USE_WILDMIDI=yes;;
85543      no) USE_WILDMIDI=no;;
85544      *) as_fn_error $? "bad value ${enableval} for --enable-wildmidi" "$LINENO" 5 ;;
85545    esac
85546else
85547   USE_WILDMIDI=yes
85548fi
85549
85550if test "x$NOUSE" = "xyes"; then
85551  USE_WILDMIDI="no"
85552  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wildmidi pre-configured not to be built" >&5
85553$as_echo "$as_me: WARNING: *** wildmidi pre-configured not to be built" >&2;}
85554fi
85555NOUSE=
85556
85557if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WILDMIDI " > /dev/null; then
85558  USE_WILDMIDI="no"
85559  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wildmidi not ported" >&5
85560$as_echo "$as_me: WARNING: *** wildmidi not ported" >&2;}
85561fi
85562
85563
85564if test x$USE_WILDMIDI = xyes; then
85565
85566  gst_check_save_LIBS=$LIBS
85567  gst_check_save_LDFLAGS=$LDFLAGS
85568  gst_check_save_CFLAGS=$CFLAGS
85569  gst_check_save_CPPFLAGS=$CPPFLAGS
85570  gst_check_save_CXXFLAGS=$CXXFLAGS
85571
85572  HAVE_WILDMIDI=no
85573
85574
85575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WildMidi_Init in -lWildMidi" >&5
85576$as_echo_n "checking for WildMidi_Init in -lWildMidi... " >&6; }
85577if ${ac_cv_lib_WildMidi_WildMidi_Init+:} false; then :
85578  $as_echo_n "(cached) " >&6
85579else
85580  ac_check_lib_save_LIBS=$LIBS
85581LIBS="-lWildMidi  $LIBS"
85582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85583/* end confdefs.h.  */
85584
85585/* Override any GCC internal prototype to avoid an error.
85586   Use char because int might match the return type of a GCC
85587   builtin and then its argument prototype would still apply.  */
85588#ifdef __cplusplus
85589extern "C"
85590#endif
85591char WildMidi_Init ();
85592int
85593main ()
85594{
85595return WildMidi_Init ();
85596  ;
85597  return 0;
85598}
85599_ACEOF
85600if ac_fn_c_try_link "$LINENO"; then :
85601  ac_cv_lib_WildMidi_WildMidi_Init=yes
85602else
85603  ac_cv_lib_WildMidi_WildMidi_Init=no
85604fi
85605rm -f core conftest.err conftest.$ac_objext \
85606    conftest$ac_exeext conftest.$ac_ext
85607LIBS=$ac_check_lib_save_LIBS
85608fi
85609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_WildMidi_WildMidi_Init" >&5
85610$as_echo "$ac_cv_lib_WildMidi_WildMidi_Init" >&6; }
85611if test "x$ac_cv_lib_WildMidi_WildMidi_Init" = xyes; then :
85612  HAVE_WILDMIDI=yes
85613else
85614  HAVE_WILDMIDI=no
85615fi
85616
85617  if test "x$HAVE_WILDMIDI" = "xyes"; then
85618    ac_fn_c_check_header_mongrel "$LINENO" "wildmidi_lib.h" "ac_cv_header_wildmidi_lib_h" "$ac_includes_default"
85619if test "x$ac_cv_header_wildmidi_lib_h" = xyes; then :
85620  :
85621else
85622  HAVE_WILDMIDI=no
85623fi
85624
85625
85626    if test "x$HAVE_WILDMIDI" = "xyes"; then
85627            WILDMIDI_LIBS="-lWildMidi"
85628    else
85629      :
85630    fi
85631  else
85632    :
85633  fi
85634
85635
85636
85637  WILDMIDI_CFLAGS=
85638  WILDMIDI_LIBS=
85639  if test "x$HAVE_WILDMIDI" = "xyes"; then
85640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wildmidi >= 4.0" >&5
85641$as_echo_n "checking for wildmidi >= 4.0... " >&6; }
85642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85643/* end confdefs.h.  */
85644#include <wildmidi_lib.h>
85645int
85646main ()
85647{
85648
85649        #if LIBWILDMIDI_VER_MAJOR == 0 && LIBWILDMIDI_VER_MINOR < 4
85650        #error "wildmidi too old"
85651        #endif
85652
85653  ;
85654  return 0;
85655}
85656_ACEOF
85657if ac_fn_c_try_compile "$LINENO"; then :
85658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85659$as_echo "yes" >&6; }
85660      HAVE_WILDMIDI="yes"
85661      WILDMIDI_CFLAGS=
85662      WILDMIDI_LIBS=-lWildMidi
85663
85664else
85665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85666$as_echo "no" >&6; }
85667      HAVE_WILDMIDI="no"
85668
85669fi
85670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85671  else
85672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WildMidi library or development headers not found" >&5
85673$as_echo "$as_me: WARNING: WildMidi library or development headers not found" >&2;}
85674  fi
85675
85676
85677
85678
85679  LIBS=$gst_check_save_LIBS
85680  LDFLAGS=$gst_check_save_LDFLAGS
85681  CFLAGS=$gst_check_save_CFLAGS
85682  CPPFLAGS=$gst_check_save_CPPFLAGS
85683  CXXFLAGS=$gst_check_save_CXXFLAGS
85684
85685    if test x$HAVE_WILDMIDI = xno; then
85686    USE_WILDMIDI=no
85687  else
85688    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: wildmidi" >&5
85689$as_echo "$as_me: *** These plugins will be built: wildmidi" >&6;}
85690  fi
85691fi
85692if test x$USE_WILDMIDI = xyes; then
85693  :
85694  if test "xwildmidi" != "x"; then
85695    GST_PLUGINS_YES="\twildmidi\n$GST_PLUGINS_YES"
85696  fi
85697
85698$as_echo "#define HAVE_WILDMIDI /**/" >>confdefs.h
85699
85700else
85701  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: wildmidi" >&5
85702$as_echo "$as_me: *** These plugins will not be built: wildmidi" >&6;}
85703  if test "xwildmidi" != "x"; then
85704    GST_PLUGINS_NO="\twildmidi\n$GST_PLUGINS_NO"
85705  fi
85706  :
85707fi
85708 if test x$USE_WILDMIDI = xyes; then
85709  USE_WILDMIDI_TRUE=
85710  USE_WILDMIDI_FALSE='#'
85711else
85712  USE_WILDMIDI_TRUE='#'
85713  USE_WILDMIDI_FALSE=
85714fi
85715
85716
85717
85718echo
85719{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Smooth Streaming plug-in ***" >&5
85720$as_echo "$as_me: *** checking feature: Smooth Streaming plug-in ***" >&6;}
85721if test "xsmoothstreaming" != "x"
85722then
85723  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: smoothstreaming ***" >&5
85724$as_echo "$as_me: *** for plug-ins: smoothstreaming ***" >&6;}
85725fi
85726NOUSE=
85727if test "x$USE_SMOOTHSTREAMING" = "xno"; then
85728  NOUSE="yes"
85729fi
85730# Check whether --enable-smoothstreaming was given.
85731if test "${enable_smoothstreaming+set}" = set; then :
85732  enableval=$enable_smoothstreaming;  case "${enableval}" in
85733      yes) USE_SMOOTHSTREAMING=yes;;
85734      no) USE_SMOOTHSTREAMING=no;;
85735      *) as_fn_error $? "bad value ${enableval} for --enable-smoothstreaming" "$LINENO" 5 ;;
85736    esac
85737else
85738   USE_SMOOTHSTREAMING=yes
85739fi
85740
85741if test "x$NOUSE" = "xyes"; then
85742  USE_SMOOTHSTREAMING="no"
85743  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** smoothstreaming pre-configured not to be built" >&5
85744$as_echo "$as_me: WARNING: *** smoothstreaming pre-configured not to be built" >&2;}
85745fi
85746NOUSE=
85747
85748if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SMOOTHSTREAMING " > /dev/null; then
85749  USE_SMOOTHSTREAMING="no"
85750  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** smoothstreaming not ported" >&5
85751$as_echo "$as_me: WARNING: *** smoothstreaming not ported" >&2;}
85752fi
85753
85754
85755if test x$USE_SMOOTHSTREAMING = xyes; then
85756
85757  gst_check_save_LIBS=$LIBS
85758  gst_check_save_LDFLAGS=$LDFLAGS
85759  gst_check_save_CFLAGS=$CFLAGS
85760  gst_check_save_CPPFLAGS=$CPPFLAGS
85761  gst_check_save_CXXFLAGS=$CXXFLAGS
85762
85763  HAVE_SMOOTHSTREAMING=no
85764
85765
85766pkg_failed=no
85767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
85768$as_echo_n "checking for LIBXML2... " >&6; }
85769
85770if test -n "$PKG_CONFIG"; then
85771    if test -n "$LIBXML2_CFLAGS"; then
85772        pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
85773    else
85774        if test -n "$PKG_CONFIG" && \
85775    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.4\""; } >&5
85776  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.4") 2>&5
85777  ac_status=$?
85778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85779  test $ac_status = 0; }; then
85780  pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.4" 2>/dev/null`
85781else
85782  pkg_failed=yes
85783fi
85784    fi
85785else
85786	pkg_failed=untried
85787fi
85788if test -n "$PKG_CONFIG"; then
85789    if test -n "$LIBXML2_LIBS"; then
85790        pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
85791    else
85792        if test -n "$PKG_CONFIG" && \
85793    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.4\""; } >&5
85794  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.4") 2>&5
85795  ac_status=$?
85796  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85797  test $ac_status = 0; }; then
85798  pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.4" 2>/dev/null`
85799else
85800  pkg_failed=yes
85801fi
85802    fi
85803else
85804	pkg_failed=untried
85805fi
85806
85807
85808
85809if test $pkg_failed = yes; then
85810
85811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85812        _pkg_short_errors_supported=yes
85813else
85814        _pkg_short_errors_supported=no
85815fi
85816        if test $_pkg_short_errors_supported = yes; then
85817	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.4"`
85818        else
85819	        LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.4"`
85820        fi
85821	# Put the nasty error message in config.log where it belongs
85822	echo "$LIBXML2_PKG_ERRORS" >&5
85823
85824	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85825$as_echo "no" >&6; }
85826                HAVE_LIBXML2="no"
85827     HAVE_SMOOTHSTREAMING="no"
85828elif test $pkg_failed = untried; then
85829	HAVE_LIBXML2="no"
85830     HAVE_SMOOTHSTREAMING="no"
85831else
85832	LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
85833	LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
85834        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85835$as_echo "yes" >&6; }
85836	HAVE_LIBXML2="yes"
85837     HAVE_SMOOTHSTREAMING="yes"
85838fi
85839
85840
85841
85842
85843  LIBS=$gst_check_save_LIBS
85844  LDFLAGS=$gst_check_save_LDFLAGS
85845  CFLAGS=$gst_check_save_CFLAGS
85846  CPPFLAGS=$gst_check_save_CPPFLAGS
85847  CXXFLAGS=$gst_check_save_CXXFLAGS
85848
85849    if test x$HAVE_SMOOTHSTREAMING = xno; then
85850    USE_SMOOTHSTREAMING=no
85851  else
85852    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: smoothstreaming" >&5
85853$as_echo "$as_me: *** These plugins will be built: smoothstreaming" >&6;}
85854  fi
85855fi
85856if test x$USE_SMOOTHSTREAMING = xyes; then
85857  :
85858  if test "xsmoothstreaming" != "x"; then
85859    GST_PLUGINS_YES="\tsmoothstreaming\n$GST_PLUGINS_YES"
85860  fi
85861
85862$as_echo "#define HAVE_SMOOTHSTREAMING /**/" >>confdefs.h
85863
85864else
85865  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: smoothstreaming" >&5
85866$as_echo "$as_me: *** These plugins will not be built: smoothstreaming" >&6;}
85867  if test "xsmoothstreaming" != "x"; then
85868    GST_PLUGINS_NO="\tsmoothstreaming\n$GST_PLUGINS_NO"
85869  fi
85870  :
85871fi
85872 if test x$USE_SMOOTHSTREAMING = xyes; then
85873  USE_SMOOTHSTREAMING_TRUE=
85874  USE_SMOOTHSTREAMING_FALSE='#'
85875else
85876  USE_SMOOTHSTREAMING_TRUE='#'
85877  USE_SMOOTHSTREAMING_FALSE=
85878fi
85879
85880
85881
85882echo
85883{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: sndfile plug-in ***" >&5
85884$as_echo "$as_me: *** checking feature: sndfile plug-in ***" >&6;}
85885if test "xsfdec sfenc" != "x"
85886then
85887  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: sfdec sfenc ***" >&5
85888$as_echo "$as_me: *** for plug-ins: sfdec sfenc ***" >&6;}
85889fi
85890NOUSE=
85891if test "x$USE_SNDFILE" = "xno"; then
85892  NOUSE="yes"
85893fi
85894# Check whether --enable-sndfile was given.
85895if test "${enable_sndfile+set}" = set; then :
85896  enableval=$enable_sndfile;  case "${enableval}" in
85897      yes) USE_SNDFILE=yes;;
85898      no) USE_SNDFILE=no;;
85899      *) as_fn_error $? "bad value ${enableval} for --enable-sndfile" "$LINENO" 5 ;;
85900    esac
85901else
85902   USE_SNDFILE=yes
85903fi
85904
85905if test "x$NOUSE" = "xyes"; then
85906  USE_SNDFILE="no"
85907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sfdec sfenc pre-configured not to be built" >&5
85908$as_echo "$as_me: WARNING: *** sfdec sfenc pre-configured not to be built" >&2;}
85909fi
85910NOUSE=
85911
85912if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SNDFILE " > /dev/null; then
85913  USE_SNDFILE="no"
85914  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sfdec sfenc not ported" >&5
85915$as_echo "$as_me: WARNING: *** sfdec sfenc not ported" >&2;}
85916fi
85917
85918
85919if test x$USE_SNDFILE = xyes; then
85920
85921  gst_check_save_LIBS=$LIBS
85922  gst_check_save_LDFLAGS=$LDFLAGS
85923  gst_check_save_CFLAGS=$CFLAGS
85924  gst_check_save_CPPFLAGS=$CPPFLAGS
85925  gst_check_save_CXXFLAGS=$CXXFLAGS
85926
85927  HAVE_SNDFILE=no
85928
85929
85930pkg_failed=no
85931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
85932$as_echo_n "checking for SNDFILE... " >&6; }
85933
85934if test -n "$PKG_CONFIG"; then
85935    if test -n "$SNDFILE_CFLAGS"; then
85936        pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
85937    else
85938        if test -n "$PKG_CONFIG" && \
85939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.16\""; } >&5
85940  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.16") 2>&5
85941  ac_status=$?
85942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85943  test $ac_status = 0; }; then
85944  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.16" 2>/dev/null`
85945else
85946  pkg_failed=yes
85947fi
85948    fi
85949else
85950	pkg_failed=untried
85951fi
85952if test -n "$PKG_CONFIG"; then
85953    if test -n "$SNDFILE_LIBS"; then
85954        pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
85955    else
85956        if test -n "$PKG_CONFIG" && \
85957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.16\""; } >&5
85958  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.16") 2>&5
85959  ac_status=$?
85960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85961  test $ac_status = 0; }; then
85962  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.16" 2>/dev/null`
85963else
85964  pkg_failed=yes
85965fi
85966    fi
85967else
85968	pkg_failed=untried
85969fi
85970
85971
85972
85973if test $pkg_failed = yes; then
85974
85975if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
85976        _pkg_short_errors_supported=yes
85977else
85978        _pkg_short_errors_supported=no
85979fi
85980        if test $_pkg_short_errors_supported = yes; then
85981	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sndfile >= 1.0.16"`
85982        else
85983	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.16"`
85984        fi
85985	# Put the nasty error message in config.log where it belongs
85986	echo "$SNDFILE_PKG_ERRORS" >&5
85987
85988	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
85989$as_echo "no" >&6; }
85990                HAVE_SNDFILE="no"
85991elif test $pkg_failed = untried; then
85992	HAVE_SNDFILE="no"
85993else
85994	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
85995	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
85996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
85997$as_echo "yes" >&6; }
85998	HAVE_SNDFILE="yes"
85999fi
86000
86001
86002
86003
86004  LIBS=$gst_check_save_LIBS
86005  LDFLAGS=$gst_check_save_LDFLAGS
86006  CFLAGS=$gst_check_save_CFLAGS
86007  CPPFLAGS=$gst_check_save_CPPFLAGS
86008  CXXFLAGS=$gst_check_save_CXXFLAGS
86009
86010    if test x$HAVE_SNDFILE = xno; then
86011    USE_SNDFILE=no
86012  else
86013    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: sfdec sfenc" >&5
86014$as_echo "$as_me: *** These plugins will be built: sfdec sfenc" >&6;}
86015  fi
86016fi
86017if test x$USE_SNDFILE = xyes; then
86018  :
86019  if test "xsfdec sfenc" != "x"; then
86020    GST_PLUGINS_YES="\tsfdec sfenc\n$GST_PLUGINS_YES"
86021  fi
86022
86023$as_echo "#define HAVE_SNDFILE /**/" >>confdefs.h
86024
86025else
86026  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: sfdec sfenc" >&5
86027$as_echo "$as_me: *** These plugins will not be built: sfdec sfenc" >&6;}
86028  if test "xsfdec sfenc" != "x"; then
86029    GST_PLUGINS_NO="\tsfdec sfenc\n$GST_PLUGINS_NO"
86030  fi
86031  :
86032fi
86033 if test x$USE_SNDFILE = xyes; then
86034  USE_SNDFILE_TRUE=
86035  USE_SNDFILE_FALSE='#'
86036else
86037  USE_SNDFILE_TRUE='#'
86038  USE_SNDFILE_FALSE=
86039fi
86040
86041
86042
86043echo
86044{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: soundtouch plug-in ***" >&5
86045$as_echo "$as_me: *** checking feature: soundtouch plug-in ***" >&6;}
86046if test "xsoundtouch" != "x"
86047then
86048  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: soundtouch ***" >&5
86049$as_echo "$as_me: *** for plug-ins: soundtouch ***" >&6;}
86050fi
86051NOUSE=
86052if test "x$USE_SOUNDTOUCH" = "xno"; then
86053  NOUSE="yes"
86054fi
86055# Check whether --enable-soundtouch was given.
86056if test "${enable_soundtouch+set}" = set; then :
86057  enableval=$enable_soundtouch;  case "${enableval}" in
86058      yes) USE_SOUNDTOUCH=yes;;
86059      no) USE_SOUNDTOUCH=no;;
86060      *) as_fn_error $? "bad value ${enableval} for --enable-soundtouch" "$LINENO" 5 ;;
86061    esac
86062else
86063   USE_SOUNDTOUCH=yes
86064fi
86065
86066if test "x$NOUSE" = "xyes"; then
86067  USE_SOUNDTOUCH="no"
86068  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** soundtouch pre-configured not to be built" >&5
86069$as_echo "$as_me: WARNING: *** soundtouch pre-configured not to be built" >&2;}
86070fi
86071NOUSE=
86072
86073if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SOUNDTOUCH " > /dev/null; then
86074  USE_SOUNDTOUCH="no"
86075  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** soundtouch not ported" >&5
86076$as_echo "$as_me: WARNING: *** soundtouch not ported" >&2;}
86077fi
86078
86079
86080if test x$USE_SOUNDTOUCH = xyes; then
86081
86082  gst_check_save_LIBS=$LIBS
86083  gst_check_save_LDFLAGS=$LDFLAGS
86084  gst_check_save_CFLAGS=$CFLAGS
86085  gst_check_save_CPPFLAGS=$CPPFLAGS
86086  gst_check_save_CXXFLAGS=$CXXFLAGS
86087
86088  HAVE_SOUNDTOUCH=no
86089
86090        HAVE_SOUNDTOUCH_1_4=yes
86091
86092pkg_failed=no
86093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86094$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86095
86096if test -n "$PKG_CONFIG"; then
86097    if test -n "$SOUNDTOUCH_CFLAGS"; then
86098        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86099    else
86100        if test -n "$PKG_CONFIG" && \
86101    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch\""; } >&5
86102  ($PKG_CONFIG --exists --print-errors "soundtouch") 2>&5
86103  ac_status=$?
86104  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86105  test $ac_status = 0; }; then
86106  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch" 2>/dev/null`
86107else
86108  pkg_failed=yes
86109fi
86110    fi
86111else
86112	pkg_failed=untried
86113fi
86114if test -n "$PKG_CONFIG"; then
86115    if test -n "$SOUNDTOUCH_LIBS"; then
86116        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86117    else
86118        if test -n "$PKG_CONFIG" && \
86119    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch\""; } >&5
86120  ($PKG_CONFIG --exists --print-errors "soundtouch") 2>&5
86121  ac_status=$?
86122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86123  test $ac_status = 0; }; then
86124  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch" 2>/dev/null`
86125else
86126  pkg_failed=yes
86127fi
86128    fi
86129else
86130	pkg_failed=untried
86131fi
86132
86133
86134
86135if test $pkg_failed = yes; then
86136
86137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86138        _pkg_short_errors_supported=yes
86139else
86140        _pkg_short_errors_supported=no
86141fi
86142        if test $_pkg_short_errors_supported = yes; then
86143	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch"`
86144        else
86145	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch"`
86146        fi
86147	# Put the nasty error message in config.log where it belongs
86148	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86149
86150	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86151$as_echo "no" >&6; }
86152
86153pkg_failed=no
86154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86155$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86156
86157if test -n "$PKG_CONFIG"; then
86158    if test -n "$SOUNDTOUCH_CFLAGS"; then
86159        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86160    else
86161        if test -n "$PKG_CONFIG" && \
86162    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.4\""; } >&5
86163  ($PKG_CONFIG --exists --print-errors "soundtouch-1.4") 2>&5
86164  ac_status=$?
86165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86166  test $ac_status = 0; }; then
86167  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.4" 2>/dev/null`
86168else
86169  pkg_failed=yes
86170fi
86171    fi
86172else
86173	pkg_failed=untried
86174fi
86175if test -n "$PKG_CONFIG"; then
86176    if test -n "$SOUNDTOUCH_LIBS"; then
86177        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86178    else
86179        if test -n "$PKG_CONFIG" && \
86180    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.4\""; } >&5
86181  ($PKG_CONFIG --exists --print-errors "soundtouch-1.4") 2>&5
86182  ac_status=$?
86183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86184  test $ac_status = 0; }; then
86185  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.4" 2>/dev/null`
86186else
86187  pkg_failed=yes
86188fi
86189    fi
86190else
86191	pkg_failed=untried
86192fi
86193
86194
86195
86196if test $pkg_failed = yes; then
86197
86198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86199        _pkg_short_errors_supported=yes
86200else
86201        _pkg_short_errors_supported=no
86202fi
86203        if test $_pkg_short_errors_supported = yes; then
86204	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.4"`
86205        else
86206	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.4"`
86207        fi
86208	# Put the nasty error message in config.log where it belongs
86209	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86210
86211	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86212$as_echo "no" >&6; }
86213
86214pkg_failed=no
86215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86216$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86217
86218if test -n "$PKG_CONFIG"; then
86219    if test -n "$SOUNDTOUCH_CFLAGS"; then
86220        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86221    else
86222        if test -n "$PKG_CONFIG" && \
86223    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
86224  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
86225  ac_status=$?
86226  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86227  test $ac_status = 0; }; then
86228  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.0" 2>/dev/null`
86229else
86230  pkg_failed=yes
86231fi
86232    fi
86233else
86234	pkg_failed=untried
86235fi
86236if test -n "$PKG_CONFIG"; then
86237    if test -n "$SOUNDTOUCH_LIBS"; then
86238        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86239    else
86240        if test -n "$PKG_CONFIG" && \
86241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
86242  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
86243  ac_status=$?
86244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86245  test $ac_status = 0; }; then
86246  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.0" 2>/dev/null`
86247else
86248  pkg_failed=yes
86249fi
86250    fi
86251else
86252	pkg_failed=untried
86253fi
86254
86255
86256
86257if test $pkg_failed = yes; then
86258
86259if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86260        _pkg_short_errors_supported=yes
86261else
86262        _pkg_short_errors_supported=no
86263fi
86264        if test $_pkg_short_errors_supported = yes; then
86265	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.0"`
86266        else
86267	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.0"`
86268        fi
86269	# Put the nasty error message in config.log where it belongs
86270	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86271
86272	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86273$as_echo "no" >&6; }
86274
86275pkg_failed=no
86276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86277$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86278
86279if test -n "$PKG_CONFIG"; then
86280    if test -n "$SOUNDTOUCH_CFLAGS"; then
86281        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86282    else
86283        if test -n "$PKG_CONFIG" && \
86284    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86285  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86286  ac_status=$?
86287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86288  test $ac_status = 0; }; then
86289  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
86290else
86291  pkg_failed=yes
86292fi
86293    fi
86294else
86295	pkg_failed=untried
86296fi
86297if test -n "$PKG_CONFIG"; then
86298    if test -n "$SOUNDTOUCH_LIBS"; then
86299        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86300    else
86301        if test -n "$PKG_CONFIG" && \
86302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86303  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86304  ac_status=$?
86305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86306  test $ac_status = 0; }; then
86307  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
86308else
86309  pkg_failed=yes
86310fi
86311    fi
86312else
86313	pkg_failed=untried
86314fi
86315
86316
86317
86318if test $pkg_failed = yes; then
86319
86320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86321        _pkg_short_errors_supported=yes
86322else
86323        _pkg_short_errors_supported=no
86324fi
86325        if test $_pkg_short_errors_supported = yes; then
86326	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86327        else
86328	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86329        fi
86330	# Put the nasty error message in config.log where it belongs
86331	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86332
86333	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86334$as_echo "no" >&6; }
86335
86336pkg_failed=no
86337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86338$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86339
86340if test -n "$PKG_CONFIG"; then
86341    if test -n "$SOUNDTOUCH_CFLAGS"; then
86342        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86343    else
86344        if test -n "$PKG_CONFIG" && \
86345    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86346  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86347  ac_status=$?
86348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86349  test $ac_status = 0; }; then
86350  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86351else
86352  pkg_failed=yes
86353fi
86354    fi
86355else
86356	pkg_failed=untried
86357fi
86358if test -n "$PKG_CONFIG"; then
86359    if test -n "$SOUNDTOUCH_LIBS"; then
86360        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86361    else
86362        if test -n "$PKG_CONFIG" && \
86363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86364  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86365  ac_status=$?
86366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86367  test $ac_status = 0; }; then
86368  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86369else
86370  pkg_failed=yes
86371fi
86372    fi
86373else
86374	pkg_failed=untried
86375fi
86376
86377
86378
86379if test $pkg_failed = yes; then
86380
86381if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86382        _pkg_short_errors_supported=yes
86383else
86384        _pkg_short_errors_supported=no
86385fi
86386        if test $_pkg_short_errors_supported = yes; then
86387	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86388        else
86389	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86390        fi
86391	# Put the nasty error message in config.log where it belongs
86392	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86393
86394	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86395$as_echo "no" >&6; }
86396                HAVE_SOUNDTOUCH=no
86397elif test $pkg_failed = untried; then
86398	HAVE_SOUNDTOUCH=no
86399else
86400	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86401	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86402        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86403$as_echo "yes" >&6; }
86404	HAVE_SOUNDTOUCH=yes
86405              HAVE_SOUNDTOUCH_1_4=no
86406              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86407fi
86408elif test $pkg_failed = untried; then
86409
86410pkg_failed=no
86411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86412$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86413
86414if test -n "$PKG_CONFIG"; then
86415    if test -n "$SOUNDTOUCH_CFLAGS"; then
86416        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86417    else
86418        if test -n "$PKG_CONFIG" && \
86419    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86420  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86421  ac_status=$?
86422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86423  test $ac_status = 0; }; then
86424  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86425else
86426  pkg_failed=yes
86427fi
86428    fi
86429else
86430	pkg_failed=untried
86431fi
86432if test -n "$PKG_CONFIG"; then
86433    if test -n "$SOUNDTOUCH_LIBS"; then
86434        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86435    else
86436        if test -n "$PKG_CONFIG" && \
86437    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86438  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86439  ac_status=$?
86440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86441  test $ac_status = 0; }; then
86442  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86443else
86444  pkg_failed=yes
86445fi
86446    fi
86447else
86448	pkg_failed=untried
86449fi
86450
86451
86452
86453if test $pkg_failed = yes; then
86454
86455if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86456        _pkg_short_errors_supported=yes
86457else
86458        _pkg_short_errors_supported=no
86459fi
86460        if test $_pkg_short_errors_supported = yes; then
86461	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86462        else
86463	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86464        fi
86465	# Put the nasty error message in config.log where it belongs
86466	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86467
86468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86469$as_echo "no" >&6; }
86470                HAVE_SOUNDTOUCH=no
86471elif test $pkg_failed = untried; then
86472	HAVE_SOUNDTOUCH=no
86473else
86474	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86475	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86476        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86477$as_echo "yes" >&6; }
86478	HAVE_SOUNDTOUCH=yes
86479              HAVE_SOUNDTOUCH_1_4=no
86480              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86481fi
86482else
86483	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86484	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86485        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86486$as_echo "yes" >&6; }
86487	HAVE_SOUNDTOUCH=yes
86488fi
86489elif test $pkg_failed = untried; then
86490
86491pkg_failed=no
86492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86493$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86494
86495if test -n "$PKG_CONFIG"; then
86496    if test -n "$SOUNDTOUCH_CFLAGS"; then
86497        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86498    else
86499        if test -n "$PKG_CONFIG" && \
86500    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86501  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86502  ac_status=$?
86503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86504  test $ac_status = 0; }; then
86505  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
86506else
86507  pkg_failed=yes
86508fi
86509    fi
86510else
86511	pkg_failed=untried
86512fi
86513if test -n "$PKG_CONFIG"; then
86514    if test -n "$SOUNDTOUCH_LIBS"; then
86515        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86516    else
86517        if test -n "$PKG_CONFIG" && \
86518    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86519  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86520  ac_status=$?
86521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86522  test $ac_status = 0; }; then
86523  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
86524else
86525  pkg_failed=yes
86526fi
86527    fi
86528else
86529	pkg_failed=untried
86530fi
86531
86532
86533
86534if test $pkg_failed = yes; then
86535
86536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86537        _pkg_short_errors_supported=yes
86538else
86539        _pkg_short_errors_supported=no
86540fi
86541        if test $_pkg_short_errors_supported = yes; then
86542	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86543        else
86544	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86545        fi
86546	# Put the nasty error message in config.log where it belongs
86547	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86548
86549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86550$as_echo "no" >&6; }
86551
86552pkg_failed=no
86553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86554$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86555
86556if test -n "$PKG_CONFIG"; then
86557    if test -n "$SOUNDTOUCH_CFLAGS"; then
86558        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86559    else
86560        if test -n "$PKG_CONFIG" && \
86561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86562  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86563  ac_status=$?
86564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86565  test $ac_status = 0; }; then
86566  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86567else
86568  pkg_failed=yes
86569fi
86570    fi
86571else
86572	pkg_failed=untried
86573fi
86574if test -n "$PKG_CONFIG"; then
86575    if test -n "$SOUNDTOUCH_LIBS"; then
86576        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86577    else
86578        if test -n "$PKG_CONFIG" && \
86579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86580  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86581  ac_status=$?
86582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86583  test $ac_status = 0; }; then
86584  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86585else
86586  pkg_failed=yes
86587fi
86588    fi
86589else
86590	pkg_failed=untried
86591fi
86592
86593
86594
86595if test $pkg_failed = yes; then
86596
86597if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86598        _pkg_short_errors_supported=yes
86599else
86600        _pkg_short_errors_supported=no
86601fi
86602        if test $_pkg_short_errors_supported = yes; then
86603	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86604        else
86605	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86606        fi
86607	# Put the nasty error message in config.log where it belongs
86608	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86609
86610	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86611$as_echo "no" >&6; }
86612                HAVE_SOUNDTOUCH=no
86613elif test $pkg_failed = untried; then
86614	HAVE_SOUNDTOUCH=no
86615else
86616	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86617	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86618        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86619$as_echo "yes" >&6; }
86620	HAVE_SOUNDTOUCH=yes
86621              HAVE_SOUNDTOUCH_1_4=no
86622              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86623fi
86624elif test $pkg_failed = untried; then
86625
86626pkg_failed=no
86627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86628$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86629
86630if test -n "$PKG_CONFIG"; then
86631    if test -n "$SOUNDTOUCH_CFLAGS"; then
86632        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86633    else
86634        if test -n "$PKG_CONFIG" && \
86635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86636  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86637  ac_status=$?
86638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86639  test $ac_status = 0; }; then
86640  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86641else
86642  pkg_failed=yes
86643fi
86644    fi
86645else
86646	pkg_failed=untried
86647fi
86648if test -n "$PKG_CONFIG"; then
86649    if test -n "$SOUNDTOUCH_LIBS"; then
86650        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86651    else
86652        if test -n "$PKG_CONFIG" && \
86653    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86654  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86655  ac_status=$?
86656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86657  test $ac_status = 0; }; then
86658  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86659else
86660  pkg_failed=yes
86661fi
86662    fi
86663else
86664	pkg_failed=untried
86665fi
86666
86667
86668
86669if test $pkg_failed = yes; then
86670
86671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86672        _pkg_short_errors_supported=yes
86673else
86674        _pkg_short_errors_supported=no
86675fi
86676        if test $_pkg_short_errors_supported = yes; then
86677	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86678        else
86679	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86680        fi
86681	# Put the nasty error message in config.log where it belongs
86682	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86683
86684	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86685$as_echo "no" >&6; }
86686                HAVE_SOUNDTOUCH=no
86687elif test $pkg_failed = untried; then
86688	HAVE_SOUNDTOUCH=no
86689else
86690	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86691	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86692        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86693$as_echo "yes" >&6; }
86694	HAVE_SOUNDTOUCH=yes
86695              HAVE_SOUNDTOUCH_1_4=no
86696              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86697fi
86698else
86699	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86700	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86702$as_echo "yes" >&6; }
86703	HAVE_SOUNDTOUCH=yes
86704fi
86705else
86706	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86707	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86709$as_echo "yes" >&6; }
86710	HAVE_SOUNDTOUCH=yes
86711          HAVE_SOUNDTOUCH_1_4=no
86712          SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86713fi
86714elif test $pkg_failed = untried; then
86715
86716pkg_failed=no
86717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86718$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86719
86720if test -n "$PKG_CONFIG"; then
86721    if test -n "$SOUNDTOUCH_CFLAGS"; then
86722        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86723    else
86724        if test -n "$PKG_CONFIG" && \
86725    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
86726  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
86727  ac_status=$?
86728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86729  test $ac_status = 0; }; then
86730  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.0" 2>/dev/null`
86731else
86732  pkg_failed=yes
86733fi
86734    fi
86735else
86736	pkg_failed=untried
86737fi
86738if test -n "$PKG_CONFIG"; then
86739    if test -n "$SOUNDTOUCH_LIBS"; then
86740        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86741    else
86742        if test -n "$PKG_CONFIG" && \
86743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
86744  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
86745  ac_status=$?
86746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86747  test $ac_status = 0; }; then
86748  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.0" 2>/dev/null`
86749else
86750  pkg_failed=yes
86751fi
86752    fi
86753else
86754	pkg_failed=untried
86755fi
86756
86757
86758
86759if test $pkg_failed = yes; then
86760
86761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86762        _pkg_short_errors_supported=yes
86763else
86764        _pkg_short_errors_supported=no
86765fi
86766        if test $_pkg_short_errors_supported = yes; then
86767	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.0"`
86768        else
86769	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.0"`
86770        fi
86771	# Put the nasty error message in config.log where it belongs
86772	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86773
86774	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86775$as_echo "no" >&6; }
86776
86777pkg_failed=no
86778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86779$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86780
86781if test -n "$PKG_CONFIG"; then
86782    if test -n "$SOUNDTOUCH_CFLAGS"; then
86783        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86784    else
86785        if test -n "$PKG_CONFIG" && \
86786    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86787  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86788  ac_status=$?
86789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86790  test $ac_status = 0; }; then
86791  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
86792else
86793  pkg_failed=yes
86794fi
86795    fi
86796else
86797	pkg_failed=untried
86798fi
86799if test -n "$PKG_CONFIG"; then
86800    if test -n "$SOUNDTOUCH_LIBS"; then
86801        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86802    else
86803        if test -n "$PKG_CONFIG" && \
86804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
86805  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
86806  ac_status=$?
86807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86808  test $ac_status = 0; }; then
86809  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
86810else
86811  pkg_failed=yes
86812fi
86813    fi
86814else
86815	pkg_failed=untried
86816fi
86817
86818
86819
86820if test $pkg_failed = yes; then
86821
86822if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86823        _pkg_short_errors_supported=yes
86824else
86825        _pkg_short_errors_supported=no
86826fi
86827        if test $_pkg_short_errors_supported = yes; then
86828	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86829        else
86830	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
86831        fi
86832	# Put the nasty error message in config.log where it belongs
86833	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86834
86835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86836$as_echo "no" >&6; }
86837
86838pkg_failed=no
86839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86840$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86841
86842if test -n "$PKG_CONFIG"; then
86843    if test -n "$SOUNDTOUCH_CFLAGS"; then
86844        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86845    else
86846        if test -n "$PKG_CONFIG" && \
86847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86848  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86849  ac_status=$?
86850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86851  test $ac_status = 0; }; then
86852  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86853else
86854  pkg_failed=yes
86855fi
86856    fi
86857else
86858	pkg_failed=untried
86859fi
86860if test -n "$PKG_CONFIG"; then
86861    if test -n "$SOUNDTOUCH_LIBS"; then
86862        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86863    else
86864        if test -n "$PKG_CONFIG" && \
86865    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86866  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86867  ac_status=$?
86868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86869  test $ac_status = 0; }; then
86870  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86871else
86872  pkg_failed=yes
86873fi
86874    fi
86875else
86876	pkg_failed=untried
86877fi
86878
86879
86880
86881if test $pkg_failed = yes; then
86882
86883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86884        _pkg_short_errors_supported=yes
86885else
86886        _pkg_short_errors_supported=no
86887fi
86888        if test $_pkg_short_errors_supported = yes; then
86889	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86890        else
86891	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86892        fi
86893	# Put the nasty error message in config.log where it belongs
86894	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86895
86896	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86897$as_echo "no" >&6; }
86898                HAVE_SOUNDTOUCH=no
86899elif test $pkg_failed = untried; then
86900	HAVE_SOUNDTOUCH=no
86901else
86902	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86903	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86905$as_echo "yes" >&6; }
86906	HAVE_SOUNDTOUCH=yes
86907              HAVE_SOUNDTOUCH_1_4=no
86908              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86909fi
86910elif test $pkg_failed = untried; then
86911
86912pkg_failed=no
86913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86914$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86915
86916if test -n "$PKG_CONFIG"; then
86917    if test -n "$SOUNDTOUCH_CFLAGS"; then
86918        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
86919    else
86920        if test -n "$PKG_CONFIG" && \
86921    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86922  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86923  ac_status=$?
86924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86925  test $ac_status = 0; }; then
86926  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
86927else
86928  pkg_failed=yes
86929fi
86930    fi
86931else
86932	pkg_failed=untried
86933fi
86934if test -n "$PKG_CONFIG"; then
86935    if test -n "$SOUNDTOUCH_LIBS"; then
86936        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
86937    else
86938        if test -n "$PKG_CONFIG" && \
86939    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
86940  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
86941  ac_status=$?
86942  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
86943  test $ac_status = 0; }; then
86944  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
86945else
86946  pkg_failed=yes
86947fi
86948    fi
86949else
86950	pkg_failed=untried
86951fi
86952
86953
86954
86955if test $pkg_failed = yes; then
86956
86957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
86958        _pkg_short_errors_supported=yes
86959else
86960        _pkg_short_errors_supported=no
86961fi
86962        if test $_pkg_short_errors_supported = yes; then
86963	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
86964        else
86965	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
86966        fi
86967	# Put the nasty error message in config.log where it belongs
86968	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
86969
86970	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
86971$as_echo "no" >&6; }
86972                HAVE_SOUNDTOUCH=no
86973elif test $pkg_failed = untried; then
86974	HAVE_SOUNDTOUCH=no
86975else
86976	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86977	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86979$as_echo "yes" >&6; }
86980	HAVE_SOUNDTOUCH=yes
86981              HAVE_SOUNDTOUCH_1_4=no
86982              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
86983fi
86984else
86985	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
86986	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
86987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
86988$as_echo "yes" >&6; }
86989	HAVE_SOUNDTOUCH=yes
86990fi
86991elif test $pkg_failed = untried; then
86992
86993pkg_failed=no
86994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
86995$as_echo_n "checking for SOUNDTOUCH... " >&6; }
86996
86997if test -n "$PKG_CONFIG"; then
86998    if test -n "$SOUNDTOUCH_CFLAGS"; then
86999        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87000    else
87001        if test -n "$PKG_CONFIG" && \
87002    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87003  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87004  ac_status=$?
87005  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87006  test $ac_status = 0; }; then
87007  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
87008else
87009  pkg_failed=yes
87010fi
87011    fi
87012else
87013	pkg_failed=untried
87014fi
87015if test -n "$PKG_CONFIG"; then
87016    if test -n "$SOUNDTOUCH_LIBS"; then
87017        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87018    else
87019        if test -n "$PKG_CONFIG" && \
87020    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87021  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87022  ac_status=$?
87023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87024  test $ac_status = 0; }; then
87025  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
87026else
87027  pkg_failed=yes
87028fi
87029    fi
87030else
87031	pkg_failed=untried
87032fi
87033
87034
87035
87036if test $pkg_failed = yes; then
87037
87038if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87039        _pkg_short_errors_supported=yes
87040else
87041        _pkg_short_errors_supported=no
87042fi
87043        if test $_pkg_short_errors_supported = yes; then
87044	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87045        else
87046	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87047        fi
87048	# Put the nasty error message in config.log where it belongs
87049	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87050
87051	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87052$as_echo "no" >&6; }
87053
87054pkg_failed=no
87055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87056$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87057
87058if test -n "$PKG_CONFIG"; then
87059    if test -n "$SOUNDTOUCH_CFLAGS"; then
87060        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87061    else
87062        if test -n "$PKG_CONFIG" && \
87063    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87064  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87065  ac_status=$?
87066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87067  test $ac_status = 0; }; then
87068  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87069else
87070  pkg_failed=yes
87071fi
87072    fi
87073else
87074	pkg_failed=untried
87075fi
87076if test -n "$PKG_CONFIG"; then
87077    if test -n "$SOUNDTOUCH_LIBS"; then
87078        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87079    else
87080        if test -n "$PKG_CONFIG" && \
87081    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87082  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87083  ac_status=$?
87084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87085  test $ac_status = 0; }; then
87086  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87087else
87088  pkg_failed=yes
87089fi
87090    fi
87091else
87092	pkg_failed=untried
87093fi
87094
87095
87096
87097if test $pkg_failed = yes; then
87098
87099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87100        _pkg_short_errors_supported=yes
87101else
87102        _pkg_short_errors_supported=no
87103fi
87104        if test $_pkg_short_errors_supported = yes; then
87105	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87106        else
87107	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87108        fi
87109	# Put the nasty error message in config.log where it belongs
87110	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87111
87112	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87113$as_echo "no" >&6; }
87114                HAVE_SOUNDTOUCH=no
87115elif test $pkg_failed = untried; then
87116	HAVE_SOUNDTOUCH=no
87117else
87118	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87119	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87121$as_echo "yes" >&6; }
87122	HAVE_SOUNDTOUCH=yes
87123              HAVE_SOUNDTOUCH_1_4=no
87124              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87125fi
87126elif test $pkg_failed = untried; then
87127
87128pkg_failed=no
87129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87130$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87131
87132if test -n "$PKG_CONFIG"; then
87133    if test -n "$SOUNDTOUCH_CFLAGS"; then
87134        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87135    else
87136        if test -n "$PKG_CONFIG" && \
87137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87138  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87139  ac_status=$?
87140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87141  test $ac_status = 0; }; then
87142  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87143else
87144  pkg_failed=yes
87145fi
87146    fi
87147else
87148	pkg_failed=untried
87149fi
87150if test -n "$PKG_CONFIG"; then
87151    if test -n "$SOUNDTOUCH_LIBS"; then
87152        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87153    else
87154        if test -n "$PKG_CONFIG" && \
87155    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87156  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87157  ac_status=$?
87158  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87159  test $ac_status = 0; }; then
87160  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87161else
87162  pkg_failed=yes
87163fi
87164    fi
87165else
87166	pkg_failed=untried
87167fi
87168
87169
87170
87171if test $pkg_failed = yes; then
87172
87173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87174        _pkg_short_errors_supported=yes
87175else
87176        _pkg_short_errors_supported=no
87177fi
87178        if test $_pkg_short_errors_supported = yes; then
87179	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87180        else
87181	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87182        fi
87183	# Put the nasty error message in config.log where it belongs
87184	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87185
87186	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87187$as_echo "no" >&6; }
87188                HAVE_SOUNDTOUCH=no
87189elif test $pkg_failed = untried; then
87190	HAVE_SOUNDTOUCH=no
87191else
87192	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87193	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87195$as_echo "yes" >&6; }
87196	HAVE_SOUNDTOUCH=yes
87197              HAVE_SOUNDTOUCH_1_4=no
87198              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87199fi
87200else
87201	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87202	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87203        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87204$as_echo "yes" >&6; }
87205	HAVE_SOUNDTOUCH=yes
87206fi
87207else
87208	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87209	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87210        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87211$as_echo "yes" >&6; }
87212	HAVE_SOUNDTOUCH=yes
87213          HAVE_SOUNDTOUCH_1_4=no
87214          SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87215fi
87216else
87217	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87218	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87219        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87220$as_echo "yes" >&6; }
87221	HAVE_SOUNDTOUCH=yes
87222fi
87223elif test $pkg_failed = untried; then
87224
87225pkg_failed=no
87226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87227$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87228
87229if test -n "$PKG_CONFIG"; then
87230    if test -n "$SOUNDTOUCH_CFLAGS"; then
87231        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87232    else
87233        if test -n "$PKG_CONFIG" && \
87234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.4\""; } >&5
87235  ($PKG_CONFIG --exists --print-errors "soundtouch-1.4") 2>&5
87236  ac_status=$?
87237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87238  test $ac_status = 0; }; then
87239  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.4" 2>/dev/null`
87240else
87241  pkg_failed=yes
87242fi
87243    fi
87244else
87245	pkg_failed=untried
87246fi
87247if test -n "$PKG_CONFIG"; then
87248    if test -n "$SOUNDTOUCH_LIBS"; then
87249        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87250    else
87251        if test -n "$PKG_CONFIG" && \
87252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.4\""; } >&5
87253  ($PKG_CONFIG --exists --print-errors "soundtouch-1.4") 2>&5
87254  ac_status=$?
87255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87256  test $ac_status = 0; }; then
87257  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.4" 2>/dev/null`
87258else
87259  pkg_failed=yes
87260fi
87261    fi
87262else
87263	pkg_failed=untried
87264fi
87265
87266
87267
87268if test $pkg_failed = yes; then
87269
87270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87271        _pkg_short_errors_supported=yes
87272else
87273        _pkg_short_errors_supported=no
87274fi
87275        if test $_pkg_short_errors_supported = yes; then
87276	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.4"`
87277        else
87278	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.4"`
87279        fi
87280	# Put the nasty error message in config.log where it belongs
87281	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87282
87283	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87284$as_echo "no" >&6; }
87285
87286pkg_failed=no
87287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87288$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87289
87290if test -n "$PKG_CONFIG"; then
87291    if test -n "$SOUNDTOUCH_CFLAGS"; then
87292        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87293    else
87294        if test -n "$PKG_CONFIG" && \
87295    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
87296  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
87297  ac_status=$?
87298  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87299  test $ac_status = 0; }; then
87300  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.0" 2>/dev/null`
87301else
87302  pkg_failed=yes
87303fi
87304    fi
87305else
87306	pkg_failed=untried
87307fi
87308if test -n "$PKG_CONFIG"; then
87309    if test -n "$SOUNDTOUCH_LIBS"; then
87310        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87311    else
87312        if test -n "$PKG_CONFIG" && \
87313    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
87314  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
87315  ac_status=$?
87316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87317  test $ac_status = 0; }; then
87318  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.0" 2>/dev/null`
87319else
87320  pkg_failed=yes
87321fi
87322    fi
87323else
87324	pkg_failed=untried
87325fi
87326
87327
87328
87329if test $pkg_failed = yes; then
87330
87331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87332        _pkg_short_errors_supported=yes
87333else
87334        _pkg_short_errors_supported=no
87335fi
87336        if test $_pkg_short_errors_supported = yes; then
87337	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.0"`
87338        else
87339	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.0"`
87340        fi
87341	# Put the nasty error message in config.log where it belongs
87342	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87343
87344	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87345$as_echo "no" >&6; }
87346
87347pkg_failed=no
87348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87349$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87350
87351if test -n "$PKG_CONFIG"; then
87352    if test -n "$SOUNDTOUCH_CFLAGS"; then
87353        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87354    else
87355        if test -n "$PKG_CONFIG" && \
87356    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87357  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87358  ac_status=$?
87359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87360  test $ac_status = 0; }; then
87361  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
87362else
87363  pkg_failed=yes
87364fi
87365    fi
87366else
87367	pkg_failed=untried
87368fi
87369if test -n "$PKG_CONFIG"; then
87370    if test -n "$SOUNDTOUCH_LIBS"; then
87371        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87372    else
87373        if test -n "$PKG_CONFIG" && \
87374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87375  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87376  ac_status=$?
87377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87378  test $ac_status = 0; }; then
87379  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
87380else
87381  pkg_failed=yes
87382fi
87383    fi
87384else
87385	pkg_failed=untried
87386fi
87387
87388
87389
87390if test $pkg_failed = yes; then
87391
87392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87393        _pkg_short_errors_supported=yes
87394else
87395        _pkg_short_errors_supported=no
87396fi
87397        if test $_pkg_short_errors_supported = yes; then
87398	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87399        else
87400	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87401        fi
87402	# Put the nasty error message in config.log where it belongs
87403	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87404
87405	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87406$as_echo "no" >&6; }
87407
87408pkg_failed=no
87409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87410$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87411
87412if test -n "$PKG_CONFIG"; then
87413    if test -n "$SOUNDTOUCH_CFLAGS"; then
87414        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87415    else
87416        if test -n "$PKG_CONFIG" && \
87417    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87418  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87419  ac_status=$?
87420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87421  test $ac_status = 0; }; then
87422  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87423else
87424  pkg_failed=yes
87425fi
87426    fi
87427else
87428	pkg_failed=untried
87429fi
87430if test -n "$PKG_CONFIG"; then
87431    if test -n "$SOUNDTOUCH_LIBS"; then
87432        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87433    else
87434        if test -n "$PKG_CONFIG" && \
87435    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87436  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87437  ac_status=$?
87438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87439  test $ac_status = 0; }; then
87440  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87441else
87442  pkg_failed=yes
87443fi
87444    fi
87445else
87446	pkg_failed=untried
87447fi
87448
87449
87450
87451if test $pkg_failed = yes; then
87452
87453if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87454        _pkg_short_errors_supported=yes
87455else
87456        _pkg_short_errors_supported=no
87457fi
87458        if test $_pkg_short_errors_supported = yes; then
87459	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87460        else
87461	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87462        fi
87463	# Put the nasty error message in config.log where it belongs
87464	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87465
87466	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87467$as_echo "no" >&6; }
87468                HAVE_SOUNDTOUCH=no
87469elif test $pkg_failed = untried; then
87470	HAVE_SOUNDTOUCH=no
87471else
87472	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87473	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87475$as_echo "yes" >&6; }
87476	HAVE_SOUNDTOUCH=yes
87477              HAVE_SOUNDTOUCH_1_4=no
87478              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87479fi
87480elif test $pkg_failed = untried; then
87481
87482pkg_failed=no
87483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87484$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87485
87486if test -n "$PKG_CONFIG"; then
87487    if test -n "$SOUNDTOUCH_CFLAGS"; then
87488        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87489    else
87490        if test -n "$PKG_CONFIG" && \
87491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87492  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87493  ac_status=$?
87494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87495  test $ac_status = 0; }; then
87496  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87497else
87498  pkg_failed=yes
87499fi
87500    fi
87501else
87502	pkg_failed=untried
87503fi
87504if test -n "$PKG_CONFIG"; then
87505    if test -n "$SOUNDTOUCH_LIBS"; then
87506        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87507    else
87508        if test -n "$PKG_CONFIG" && \
87509    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87510  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87511  ac_status=$?
87512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87513  test $ac_status = 0; }; then
87514  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87515else
87516  pkg_failed=yes
87517fi
87518    fi
87519else
87520	pkg_failed=untried
87521fi
87522
87523
87524
87525if test $pkg_failed = yes; then
87526
87527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87528        _pkg_short_errors_supported=yes
87529else
87530        _pkg_short_errors_supported=no
87531fi
87532        if test $_pkg_short_errors_supported = yes; then
87533	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87534        else
87535	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87536        fi
87537	# Put the nasty error message in config.log where it belongs
87538	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87539
87540	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87541$as_echo "no" >&6; }
87542                HAVE_SOUNDTOUCH=no
87543elif test $pkg_failed = untried; then
87544	HAVE_SOUNDTOUCH=no
87545else
87546	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87547	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87548        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87549$as_echo "yes" >&6; }
87550	HAVE_SOUNDTOUCH=yes
87551              HAVE_SOUNDTOUCH_1_4=no
87552              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87553fi
87554else
87555	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87556	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87557        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87558$as_echo "yes" >&6; }
87559	HAVE_SOUNDTOUCH=yes
87560fi
87561elif test $pkg_failed = untried; then
87562
87563pkg_failed=no
87564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87565$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87566
87567if test -n "$PKG_CONFIG"; then
87568    if test -n "$SOUNDTOUCH_CFLAGS"; then
87569        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87570    else
87571        if test -n "$PKG_CONFIG" && \
87572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87573  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87574  ac_status=$?
87575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87576  test $ac_status = 0; }; then
87577  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
87578else
87579  pkg_failed=yes
87580fi
87581    fi
87582else
87583	pkg_failed=untried
87584fi
87585if test -n "$PKG_CONFIG"; then
87586    if test -n "$SOUNDTOUCH_LIBS"; then
87587        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87588    else
87589        if test -n "$PKG_CONFIG" && \
87590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87591  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87592  ac_status=$?
87593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87594  test $ac_status = 0; }; then
87595  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
87596else
87597  pkg_failed=yes
87598fi
87599    fi
87600else
87601	pkg_failed=untried
87602fi
87603
87604
87605
87606if test $pkg_failed = yes; then
87607
87608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87609        _pkg_short_errors_supported=yes
87610else
87611        _pkg_short_errors_supported=no
87612fi
87613        if test $_pkg_short_errors_supported = yes; then
87614	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87615        else
87616	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87617        fi
87618	# Put the nasty error message in config.log where it belongs
87619	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87620
87621	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87622$as_echo "no" >&6; }
87623
87624pkg_failed=no
87625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87626$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87627
87628if test -n "$PKG_CONFIG"; then
87629    if test -n "$SOUNDTOUCH_CFLAGS"; then
87630        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87631    else
87632        if test -n "$PKG_CONFIG" && \
87633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87634  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87635  ac_status=$?
87636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87637  test $ac_status = 0; }; then
87638  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87639else
87640  pkg_failed=yes
87641fi
87642    fi
87643else
87644	pkg_failed=untried
87645fi
87646if test -n "$PKG_CONFIG"; then
87647    if test -n "$SOUNDTOUCH_LIBS"; then
87648        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87649    else
87650        if test -n "$PKG_CONFIG" && \
87651    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87652  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87653  ac_status=$?
87654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87655  test $ac_status = 0; }; then
87656  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87657else
87658  pkg_failed=yes
87659fi
87660    fi
87661else
87662	pkg_failed=untried
87663fi
87664
87665
87666
87667if test $pkg_failed = yes; then
87668
87669if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87670        _pkg_short_errors_supported=yes
87671else
87672        _pkg_short_errors_supported=no
87673fi
87674        if test $_pkg_short_errors_supported = yes; then
87675	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87676        else
87677	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87678        fi
87679	# Put the nasty error message in config.log where it belongs
87680	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87681
87682	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87683$as_echo "no" >&6; }
87684                HAVE_SOUNDTOUCH=no
87685elif test $pkg_failed = untried; then
87686	HAVE_SOUNDTOUCH=no
87687else
87688	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87689	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87690        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87691$as_echo "yes" >&6; }
87692	HAVE_SOUNDTOUCH=yes
87693              HAVE_SOUNDTOUCH_1_4=no
87694              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87695fi
87696elif test $pkg_failed = untried; then
87697
87698pkg_failed=no
87699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87700$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87701
87702if test -n "$PKG_CONFIG"; then
87703    if test -n "$SOUNDTOUCH_CFLAGS"; then
87704        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87705    else
87706        if test -n "$PKG_CONFIG" && \
87707    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87708  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87709  ac_status=$?
87710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87711  test $ac_status = 0; }; then
87712  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87713else
87714  pkg_failed=yes
87715fi
87716    fi
87717else
87718	pkg_failed=untried
87719fi
87720if test -n "$PKG_CONFIG"; then
87721    if test -n "$SOUNDTOUCH_LIBS"; then
87722        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87723    else
87724        if test -n "$PKG_CONFIG" && \
87725    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87726  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87727  ac_status=$?
87728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87729  test $ac_status = 0; }; then
87730  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87731else
87732  pkg_failed=yes
87733fi
87734    fi
87735else
87736	pkg_failed=untried
87737fi
87738
87739
87740
87741if test $pkg_failed = yes; then
87742
87743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87744        _pkg_short_errors_supported=yes
87745else
87746        _pkg_short_errors_supported=no
87747fi
87748        if test $_pkg_short_errors_supported = yes; then
87749	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87750        else
87751	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87752        fi
87753	# Put the nasty error message in config.log where it belongs
87754	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87755
87756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87757$as_echo "no" >&6; }
87758                HAVE_SOUNDTOUCH=no
87759elif test $pkg_failed = untried; then
87760	HAVE_SOUNDTOUCH=no
87761else
87762	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87763	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87765$as_echo "yes" >&6; }
87766	HAVE_SOUNDTOUCH=yes
87767              HAVE_SOUNDTOUCH_1_4=no
87768              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87769fi
87770else
87771	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87772	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87773        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87774$as_echo "yes" >&6; }
87775	HAVE_SOUNDTOUCH=yes
87776fi
87777else
87778	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87779	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87780        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87781$as_echo "yes" >&6; }
87782	HAVE_SOUNDTOUCH=yes
87783          HAVE_SOUNDTOUCH_1_4=no
87784          SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87785fi
87786elif test $pkg_failed = untried; then
87787
87788pkg_failed=no
87789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87790$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87791
87792if test -n "$PKG_CONFIG"; then
87793    if test -n "$SOUNDTOUCH_CFLAGS"; then
87794        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87795    else
87796        if test -n "$PKG_CONFIG" && \
87797    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
87798  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
87799  ac_status=$?
87800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87801  test $ac_status = 0; }; then
87802  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "soundtouch-1.0" 2>/dev/null`
87803else
87804  pkg_failed=yes
87805fi
87806    fi
87807else
87808	pkg_failed=untried
87809fi
87810if test -n "$PKG_CONFIG"; then
87811    if test -n "$SOUNDTOUCH_LIBS"; then
87812        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87813    else
87814        if test -n "$PKG_CONFIG" && \
87815    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"soundtouch-1.0\""; } >&5
87816  ($PKG_CONFIG --exists --print-errors "soundtouch-1.0") 2>&5
87817  ac_status=$?
87818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87819  test $ac_status = 0; }; then
87820  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "soundtouch-1.0" 2>/dev/null`
87821else
87822  pkg_failed=yes
87823fi
87824    fi
87825else
87826	pkg_failed=untried
87827fi
87828
87829
87830
87831if test $pkg_failed = yes; then
87832
87833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87834        _pkg_short_errors_supported=yes
87835else
87836        _pkg_short_errors_supported=no
87837fi
87838        if test $_pkg_short_errors_supported = yes; then
87839	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "soundtouch-1.0"`
87840        else
87841	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "soundtouch-1.0"`
87842        fi
87843	# Put the nasty error message in config.log where it belongs
87844	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87845
87846	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87847$as_echo "no" >&6; }
87848
87849pkg_failed=no
87850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87851$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87852
87853if test -n "$PKG_CONFIG"; then
87854    if test -n "$SOUNDTOUCH_CFLAGS"; then
87855        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87856    else
87857        if test -n "$PKG_CONFIG" && \
87858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87859  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87860  ac_status=$?
87861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87862  test $ac_status = 0; }; then
87863  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
87864else
87865  pkg_failed=yes
87866fi
87867    fi
87868else
87869	pkg_failed=untried
87870fi
87871if test -n "$PKG_CONFIG"; then
87872    if test -n "$SOUNDTOUCH_LIBS"; then
87873        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87874    else
87875        if test -n "$PKG_CONFIG" && \
87876    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
87877  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
87878  ac_status=$?
87879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87880  test $ac_status = 0; }; then
87881  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
87882else
87883  pkg_failed=yes
87884fi
87885    fi
87886else
87887	pkg_failed=untried
87888fi
87889
87890
87891
87892if test $pkg_failed = yes; then
87893
87894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87895        _pkg_short_errors_supported=yes
87896else
87897        _pkg_short_errors_supported=no
87898fi
87899        if test $_pkg_short_errors_supported = yes; then
87900	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87901        else
87902	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
87903        fi
87904	# Put the nasty error message in config.log where it belongs
87905	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87906
87907	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87908$as_echo "no" >&6; }
87909
87910pkg_failed=no
87911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87912$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87913
87914if test -n "$PKG_CONFIG"; then
87915    if test -n "$SOUNDTOUCH_CFLAGS"; then
87916        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87917    else
87918        if test -n "$PKG_CONFIG" && \
87919    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87920  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87921  ac_status=$?
87922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87923  test $ac_status = 0; }; then
87924  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87925else
87926  pkg_failed=yes
87927fi
87928    fi
87929else
87930	pkg_failed=untried
87931fi
87932if test -n "$PKG_CONFIG"; then
87933    if test -n "$SOUNDTOUCH_LIBS"; then
87934        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
87935    else
87936        if test -n "$PKG_CONFIG" && \
87937    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87938  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87939  ac_status=$?
87940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87941  test $ac_status = 0; }; then
87942  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
87943else
87944  pkg_failed=yes
87945fi
87946    fi
87947else
87948	pkg_failed=untried
87949fi
87950
87951
87952
87953if test $pkg_failed = yes; then
87954
87955if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
87956        _pkg_short_errors_supported=yes
87957else
87958        _pkg_short_errors_supported=no
87959fi
87960        if test $_pkg_short_errors_supported = yes; then
87961	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
87962        else
87963	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
87964        fi
87965	# Put the nasty error message in config.log where it belongs
87966	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
87967
87968	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
87969$as_echo "no" >&6; }
87970                HAVE_SOUNDTOUCH=no
87971elif test $pkg_failed = untried; then
87972	HAVE_SOUNDTOUCH=no
87973else
87974	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
87975	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
87976        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
87977$as_echo "yes" >&6; }
87978	HAVE_SOUNDTOUCH=yes
87979              HAVE_SOUNDTOUCH_1_4=no
87980              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
87981fi
87982elif test $pkg_failed = untried; then
87983
87984pkg_failed=no
87985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
87986$as_echo_n "checking for SOUNDTOUCH... " >&6; }
87987
87988if test -n "$PKG_CONFIG"; then
87989    if test -n "$SOUNDTOUCH_CFLAGS"; then
87990        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
87991    else
87992        if test -n "$PKG_CONFIG" && \
87993    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
87994  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
87995  ac_status=$?
87996  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
87997  test $ac_status = 0; }; then
87998  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
87999else
88000  pkg_failed=yes
88001fi
88002    fi
88003else
88004	pkg_failed=untried
88005fi
88006if test -n "$PKG_CONFIG"; then
88007    if test -n "$SOUNDTOUCH_LIBS"; then
88008        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
88009    else
88010        if test -n "$PKG_CONFIG" && \
88011    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
88012  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
88013  ac_status=$?
88014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88015  test $ac_status = 0; }; then
88016  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
88017else
88018  pkg_failed=yes
88019fi
88020    fi
88021else
88022	pkg_failed=untried
88023fi
88024
88025
88026
88027if test $pkg_failed = yes; then
88028
88029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88030        _pkg_short_errors_supported=yes
88031else
88032        _pkg_short_errors_supported=no
88033fi
88034        if test $_pkg_short_errors_supported = yes; then
88035	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
88036        else
88037	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
88038        fi
88039	# Put the nasty error message in config.log where it belongs
88040	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
88041
88042	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88043$as_echo "no" >&6; }
88044                HAVE_SOUNDTOUCH=no
88045elif test $pkg_failed = untried; then
88046	HAVE_SOUNDTOUCH=no
88047else
88048	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88049	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88050        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88051$as_echo "yes" >&6; }
88052	HAVE_SOUNDTOUCH=yes
88053              HAVE_SOUNDTOUCH_1_4=no
88054              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
88055fi
88056else
88057	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88058	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88060$as_echo "yes" >&6; }
88061	HAVE_SOUNDTOUCH=yes
88062fi
88063elif test $pkg_failed = untried; then
88064
88065pkg_failed=no
88066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
88067$as_echo_n "checking for SOUNDTOUCH... " >&6; }
88068
88069if test -n "$PKG_CONFIG"; then
88070    if test -n "$SOUNDTOUCH_CFLAGS"; then
88071        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
88072    else
88073        if test -n "$PKG_CONFIG" && \
88074    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
88075  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
88076  ac_status=$?
88077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88078  test $ac_status = 0; }; then
88079  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch >= 1.4" 2>/dev/null`
88080else
88081  pkg_failed=yes
88082fi
88083    fi
88084else
88085	pkg_failed=untried
88086fi
88087if test -n "$PKG_CONFIG"; then
88088    if test -n "$SOUNDTOUCH_LIBS"; then
88089        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
88090    else
88091        if test -n "$PKG_CONFIG" && \
88092    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch >= 1.4\""; } >&5
88093  ($PKG_CONFIG --exists --print-errors "libSoundTouch >= 1.4") 2>&5
88094  ac_status=$?
88095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88096  test $ac_status = 0; }; then
88097  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch >= 1.4" 2>/dev/null`
88098else
88099  pkg_failed=yes
88100fi
88101    fi
88102else
88103	pkg_failed=untried
88104fi
88105
88106
88107
88108if test $pkg_failed = yes; then
88109
88110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88111        _pkg_short_errors_supported=yes
88112else
88113        _pkg_short_errors_supported=no
88114fi
88115        if test $_pkg_short_errors_supported = yes; then
88116	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
88117        else
88118	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch >= 1.4"`
88119        fi
88120	# Put the nasty error message in config.log where it belongs
88121	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
88122
88123	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88124$as_echo "no" >&6; }
88125
88126pkg_failed=no
88127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
88128$as_echo_n "checking for SOUNDTOUCH... " >&6; }
88129
88130if test -n "$PKG_CONFIG"; then
88131    if test -n "$SOUNDTOUCH_CFLAGS"; then
88132        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
88133    else
88134        if test -n "$PKG_CONFIG" && \
88135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
88136  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
88137  ac_status=$?
88138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88139  test $ac_status = 0; }; then
88140  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
88141else
88142  pkg_failed=yes
88143fi
88144    fi
88145else
88146	pkg_failed=untried
88147fi
88148if test -n "$PKG_CONFIG"; then
88149    if test -n "$SOUNDTOUCH_LIBS"; then
88150        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
88151    else
88152        if test -n "$PKG_CONFIG" && \
88153    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
88154  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
88155  ac_status=$?
88156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88157  test $ac_status = 0; }; then
88158  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
88159else
88160  pkg_failed=yes
88161fi
88162    fi
88163else
88164	pkg_failed=untried
88165fi
88166
88167
88168
88169if test $pkg_failed = yes; then
88170
88171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88172        _pkg_short_errors_supported=yes
88173else
88174        _pkg_short_errors_supported=no
88175fi
88176        if test $_pkg_short_errors_supported = yes; then
88177	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
88178        else
88179	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
88180        fi
88181	# Put the nasty error message in config.log where it belongs
88182	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
88183
88184	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88185$as_echo "no" >&6; }
88186                HAVE_SOUNDTOUCH=no
88187elif test $pkg_failed = untried; then
88188	HAVE_SOUNDTOUCH=no
88189else
88190	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88191	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88192        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88193$as_echo "yes" >&6; }
88194	HAVE_SOUNDTOUCH=yes
88195              HAVE_SOUNDTOUCH_1_4=no
88196              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
88197fi
88198elif test $pkg_failed = untried; then
88199
88200pkg_failed=no
88201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOUNDTOUCH" >&5
88202$as_echo_n "checking for SOUNDTOUCH... " >&6; }
88203
88204if test -n "$PKG_CONFIG"; then
88205    if test -n "$SOUNDTOUCH_CFLAGS"; then
88206        pkg_cv_SOUNDTOUCH_CFLAGS="$SOUNDTOUCH_CFLAGS"
88207    else
88208        if test -n "$PKG_CONFIG" && \
88209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
88210  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
88211  ac_status=$?
88212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88213  test $ac_status = 0; }; then
88214  pkg_cv_SOUNDTOUCH_CFLAGS=`$PKG_CONFIG --cflags "libSoundTouch" 2>/dev/null`
88215else
88216  pkg_failed=yes
88217fi
88218    fi
88219else
88220	pkg_failed=untried
88221fi
88222if test -n "$PKG_CONFIG"; then
88223    if test -n "$SOUNDTOUCH_LIBS"; then
88224        pkg_cv_SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS"
88225    else
88226        if test -n "$PKG_CONFIG" && \
88227    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSoundTouch\""; } >&5
88228  ($PKG_CONFIG --exists --print-errors "libSoundTouch") 2>&5
88229  ac_status=$?
88230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88231  test $ac_status = 0; }; then
88232  pkg_cv_SOUNDTOUCH_LIBS=`$PKG_CONFIG --libs "libSoundTouch" 2>/dev/null`
88233else
88234  pkg_failed=yes
88235fi
88236    fi
88237else
88238	pkg_failed=untried
88239fi
88240
88241
88242
88243if test $pkg_failed = yes; then
88244
88245if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88246        _pkg_short_errors_supported=yes
88247else
88248        _pkg_short_errors_supported=no
88249fi
88250        if test $_pkg_short_errors_supported = yes; then
88251	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libSoundTouch"`
88252        else
88253	        SOUNDTOUCH_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libSoundTouch"`
88254        fi
88255	# Put the nasty error message in config.log where it belongs
88256	echo "$SOUNDTOUCH_PKG_ERRORS" >&5
88257
88258	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88259$as_echo "no" >&6; }
88260                HAVE_SOUNDTOUCH=no
88261elif test $pkg_failed = untried; then
88262	HAVE_SOUNDTOUCH=no
88263else
88264	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88265	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88267$as_echo "yes" >&6; }
88268	HAVE_SOUNDTOUCH=yes
88269              HAVE_SOUNDTOUCH_1_4=no
88270              SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
88271fi
88272else
88273	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88274	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88276$as_echo "yes" >&6; }
88277	HAVE_SOUNDTOUCH=yes
88278fi
88279else
88280	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88281	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88283$as_echo "yes" >&6; }
88284	HAVE_SOUNDTOUCH=yes
88285          HAVE_SOUNDTOUCH_1_4=no
88286          SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"
88287fi
88288else
88289	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88290	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88291        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88292$as_echo "yes" >&6; }
88293	HAVE_SOUNDTOUCH=yes
88294fi
88295else
88296	SOUNDTOUCH_CFLAGS=$pkg_cv_SOUNDTOUCH_CFLAGS
88297	SOUNDTOUCH_LIBS=$pkg_cv_SOUNDTOUCH_LIBS
88298        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88299$as_echo "yes" >&6; }
88300	HAVE_SOUNDTOUCH=yes
88301fi
88302
88303
88304  if test "x$HAVE_CXX" != "xyes"; then
88305    USE_SOUNDTOUCH=false
88306    { $as_echo "$as_me:${as_lineno-$LINENO}: Not building soundtouch plugin: no C++ compiler found" >&5
88307$as_echo "$as_me: Not building soundtouch plugin: no C++ compiler found" >&6;}
88308  fi
88309  if test "x$HAVE_SOUNDTOUCH" = "xyes" -a "x$HAVE_SOUNDTOUCH_1_4" = "xyes"; then
88310
88311$as_echo "#define HAVE_SOUNDTOUCH_1_4 1" >>confdefs.h
88312
88313  fi
88314
88315
88316  LIBS=$gst_check_save_LIBS
88317  LDFLAGS=$gst_check_save_LDFLAGS
88318  CFLAGS=$gst_check_save_CFLAGS
88319  CPPFLAGS=$gst_check_save_CPPFLAGS
88320  CXXFLAGS=$gst_check_save_CXXFLAGS
88321
88322    if test x$HAVE_SOUNDTOUCH = xno; then
88323    USE_SOUNDTOUCH=no
88324  else
88325    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: soundtouch" >&5
88326$as_echo "$as_me: *** These plugins will be built: soundtouch" >&6;}
88327  fi
88328fi
88329if test x$USE_SOUNDTOUCH = xyes; then
88330  :
88331  if test "xsoundtouch" != "x"; then
88332    GST_PLUGINS_YES="\tsoundtouch\n$GST_PLUGINS_YES"
88333  fi
88334
88335$as_echo "#define HAVE_SOUNDTOUCH /**/" >>confdefs.h
88336
88337else
88338  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: soundtouch" >&5
88339$as_echo "$as_me: *** These plugins will not be built: soundtouch" >&6;}
88340  if test "xsoundtouch" != "x"; then
88341    GST_PLUGINS_NO="\tsoundtouch\n$GST_PLUGINS_NO"
88342  fi
88343  :
88344fi
88345 if test x$USE_SOUNDTOUCH = xyes; then
88346  USE_SOUNDTOUCH_TRUE=
88347  USE_SOUNDTOUCH_FALSE='#'
88348else
88349  USE_SOUNDTOUCH_TRUE='#'
88350  USE_SOUNDTOUCH_FALSE=
88351fi
88352
88353
88354
88355echo
88356{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: gme decoder ***" >&5
88357$as_echo "$as_me: *** checking feature: gme decoder ***" >&6;}
88358if test "xgme" != "x"
88359then
88360  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: gme ***" >&5
88361$as_echo "$as_me: *** for plug-ins: gme ***" >&6;}
88362fi
88363NOUSE=
88364if test "x$USE_GME" = "xno"; then
88365  NOUSE="yes"
88366fi
88367# Check whether --enable-gme was given.
88368if test "${enable_gme+set}" = set; then :
88369  enableval=$enable_gme;  case "${enableval}" in
88370      yes) USE_GME=yes;;
88371      no) USE_GME=no;;
88372      *) as_fn_error $? "bad value ${enableval} for --enable-gme" "$LINENO" 5 ;;
88373    esac
88374else
88375   USE_GME=yes
88376fi
88377
88378if test "x$NOUSE" = "xyes"; then
88379  USE_GME="no"
88380  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gme pre-configured not to be built" >&5
88381$as_echo "$as_me: WARNING: *** gme pre-configured not to be built" >&2;}
88382fi
88383NOUSE=
88384
88385if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " GME " > /dev/null; then
88386  USE_GME="no"
88387  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** gme not ported" >&5
88388$as_echo "$as_me: WARNING: *** gme not ported" >&2;}
88389fi
88390
88391
88392if test x$USE_GME = xyes; then
88393
88394  gst_check_save_LIBS=$LIBS
88395  gst_check_save_LDFLAGS=$LDFLAGS
88396  gst_check_save_CFLAGS=$CFLAGS
88397  gst_check_save_CPPFLAGS=$CPPFLAGS
88398  gst_check_save_CXXFLAGS=$CXXFLAGS
88399
88400  HAVE_GME=no
88401
88402  ac_fn_c_check_header_mongrel "$LINENO" "gme/gme.h" "ac_cv_header_gme_gme_h" "$ac_includes_default"
88403if test "x$ac_cv_header_gme_gme_h" = xyes; then :
88404
88405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gme_new_emu in -lgme" >&5
88406$as_echo_n "checking for gme_new_emu in -lgme... " >&6; }
88407if ${ac_cv_lib_gme_gme_new_emu+:} false; then :
88408  $as_echo_n "(cached) " >&6
88409else
88410  ac_check_lib_save_LIBS=$LIBS
88411LIBS="-lgme  $LIBS"
88412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88413/* end confdefs.h.  */
88414
88415/* Override any GCC internal prototype to avoid an error.
88416   Use char because int might match the return type of a GCC
88417   builtin and then its argument prototype would still apply.  */
88418#ifdef __cplusplus
88419extern "C"
88420#endif
88421char gme_new_emu ();
88422int
88423main ()
88424{
88425return gme_new_emu ();
88426  ;
88427  return 0;
88428}
88429_ACEOF
88430if ac_fn_c_try_link "$LINENO"; then :
88431  ac_cv_lib_gme_gme_new_emu=yes
88432else
88433  ac_cv_lib_gme_gme_new_emu=no
88434fi
88435rm -f core conftest.err conftest.$ac_objext \
88436    conftest$ac_exeext conftest.$ac_ext
88437LIBS=$ac_check_lib_save_LIBS
88438fi
88439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gme_gme_new_emu" >&5
88440$as_echo "$ac_cv_lib_gme_gme_new_emu" >&6; }
88441if test "x$ac_cv_lib_gme_gme_new_emu" = xyes; then :
88442
88443      GME_LIBS="-lgme"
88444
88445      HAVE_GME=yes
88446
88447else
88448
88449      HAVE_GME=no
88450
88451fi
88452
88453
88454else
88455
88456    HAVE_GME=no
88457
88458fi
88459
88460
88461
88462  if test "x$HAVE_GME" = "xyes"; then
88463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gme_enable_accuracy in -lgme" >&5
88464$as_echo_n "checking for gme_enable_accuracy in -lgme... " >&6; }
88465if ${ac_cv_lib_gme_gme_enable_accuracy+:} false; then :
88466  $as_echo_n "(cached) " >&6
88467else
88468  ac_check_lib_save_LIBS=$LIBS
88469LIBS="-lgme  $LIBS"
88470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88471/* end confdefs.h.  */
88472
88473/* Override any GCC internal prototype to avoid an error.
88474   Use char because int might match the return type of a GCC
88475   builtin and then its argument prototype would still apply.  */
88476#ifdef __cplusplus
88477extern "C"
88478#endif
88479char gme_enable_accuracy ();
88480int
88481main ()
88482{
88483return gme_enable_accuracy ();
88484  ;
88485  return 0;
88486}
88487_ACEOF
88488if ac_fn_c_try_link "$LINENO"; then :
88489  ac_cv_lib_gme_gme_enable_accuracy=yes
88490else
88491  ac_cv_lib_gme_gme_enable_accuracy=no
88492fi
88493rm -f core conftest.err conftest.$ac_objext \
88494    conftest$ac_exeext conftest.$ac_ext
88495LIBS=$ac_check_lib_save_LIBS
88496fi
88497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gme_gme_enable_accuracy" >&5
88498$as_echo "$ac_cv_lib_gme_gme_enable_accuracy" >&6; }
88499if test "x$ac_cv_lib_gme_gme_enable_accuracy" = xyes; then :
88500
88501
88502$as_echo "#define HAVE_LIBGME_ACCURACY 1" >>confdefs.h
88503
88504
88505fi
88506
88507  fi
88508
88509
88510  LIBS=$gst_check_save_LIBS
88511  LDFLAGS=$gst_check_save_LDFLAGS
88512  CFLAGS=$gst_check_save_CFLAGS
88513  CPPFLAGS=$gst_check_save_CPPFLAGS
88514  CXXFLAGS=$gst_check_save_CXXFLAGS
88515
88516    if test x$HAVE_GME = xno; then
88517    USE_GME=no
88518  else
88519    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: gme" >&5
88520$as_echo "$as_me: *** These plugins will be built: gme" >&6;}
88521  fi
88522fi
88523if test x$USE_GME = xyes; then
88524  :
88525  if test "xgme" != "x"; then
88526    GST_PLUGINS_YES="\tgme\n$GST_PLUGINS_YES"
88527  fi
88528
88529$as_echo "#define HAVE_GME /**/" >>confdefs.h
88530
88531else
88532  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: gme" >&5
88533$as_echo "$as_me: *** These plugins will not be built: gme" >&6;}
88534  if test "xgme" != "x"; then
88535    GST_PLUGINS_NO="\tgme\n$GST_PLUGINS_NO"
88536  fi
88537  :
88538fi
88539 if test x$USE_GME = xyes; then
88540  USE_GME_TRUE=
88541  USE_GME_FALSE='#'
88542else
88543  USE_GME_TRUE='#'
88544  USE_GME_FALSE=
88545fi
88546
88547
88548
88549echo
88550{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: DVB Source ***" >&5
88551$as_echo "$as_me: *** checking feature: DVB Source ***" >&6;}
88552if test "xdvb" != "x"
88553then
88554  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: dvb ***" >&5
88555$as_echo "$as_me: *** for plug-ins: dvb ***" >&6;}
88556fi
88557NOUSE=
88558if test "x$USE_DVB" = "xno"; then
88559  NOUSE="yes"
88560fi
88561# Check whether --enable-dvb was given.
88562if test "${enable_dvb+set}" = set; then :
88563  enableval=$enable_dvb;  case "${enableval}" in
88564      yes) USE_DVB=yes;;
88565      no) USE_DVB=no;;
88566      *) as_fn_error $? "bad value ${enableval} for --enable-dvb" "$LINENO" 5 ;;
88567    esac
88568else
88569   USE_DVB=yes
88570fi
88571
88572if test "x$NOUSE" = "xyes"; then
88573  USE_DVB="no"
88574  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dvb pre-configured not to be built" >&5
88575$as_echo "$as_me: WARNING: *** dvb pre-configured not to be built" >&2;}
88576fi
88577NOUSE=
88578
88579if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " DVB " > /dev/null; then
88580  USE_DVB="no"
88581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** dvb not ported" >&5
88582$as_echo "$as_me: WARNING: *** dvb not ported" >&2;}
88583fi
88584
88585
88586if test x$USE_DVB = xyes; then
88587
88588  gst_check_save_LIBS=$LIBS
88589  gst_check_save_LDFLAGS=$LDFLAGS
88590  gst_check_save_CFLAGS=$CFLAGS
88591  gst_check_save_CPPFLAGS=$CPPFLAGS
88592  gst_check_save_CXXFLAGS=$CXXFLAGS
88593
88594  HAVE_DVB=no
88595
88596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for up to date dvb installation" >&5
88597$as_echo_n "checking Checking for up to date dvb installation... " >&6; }
88598  ac_fn_c_check_header_mongrel "$LINENO" "linux/dvb/version.h" "ac_cv_header_linux_dvb_version_h" "$ac_includes_default"
88599if test "x$ac_cv_header_linux_dvb_version_h" = xyes; then :
88600
88601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date dvb API" >&5
88602$as_echo_n "checking for up-to-date dvb API... " >&6; }
88603    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88604/* end confdefs.h.  */
88605#include <linux/dvb/version.h>
88606int
88607main ()
88608{
88609
88610        #if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR <= 4)
88611        #error "Incompatible dvb API"
88612        #endif
88613
88614  ;
88615  return 0;
88616}
88617_ACEOF
88618if ac_fn_c_try_compile "$LINENO"; then :
88619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88620$as_echo "yes" >&6; }
88621      HAVE_DVB="yes"
88622
88623else
88624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88625$as_echo "no" >&6; }
88626      HAVE_DVB="no"
88627
88628fi
88629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88630
88631else
88632  HAVE_DVB="no"
88633fi
88634
88635
88636
88637
88638  LIBS=$gst_check_save_LIBS
88639  LDFLAGS=$gst_check_save_LDFLAGS
88640  CFLAGS=$gst_check_save_CFLAGS
88641  CPPFLAGS=$gst_check_save_CPPFLAGS
88642  CXXFLAGS=$gst_check_save_CXXFLAGS
88643
88644    if test x$HAVE_DVB = xno; then
88645    USE_DVB=no
88646  else
88647    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: dvb" >&5
88648$as_echo "$as_me: *** These plugins will be built: dvb" >&6;}
88649  fi
88650fi
88651if test x$USE_DVB = xyes; then
88652  :
88653  if test "xdvb" != "x"; then
88654    GST_PLUGINS_YES="\tdvb\n$GST_PLUGINS_YES"
88655  fi
88656
88657$as_echo "#define HAVE_DVB /**/" >>confdefs.h
88658
88659else
88660  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: dvb" >&5
88661$as_echo "$as_me: *** These plugins will not be built: dvb" >&6;}
88662  if test "xdvb" != "x"; then
88663    GST_PLUGINS_NO="\tdvb\n$GST_PLUGINS_NO"
88664  fi
88665  :
88666fi
88667 if test x$USE_DVB = xyes; then
88668  USE_DVB_TRUE=
88669  USE_DVB_FALSE='#'
88670else
88671  USE_DVB_TRUE='#'
88672  USE_DVB_FALSE=
88673fi
88674
88675
88676
88677echo
88678{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: VDPAU ***" >&5
88679$as_echo "$as_me: *** checking feature: VDPAU ***" >&6;}
88680if test "xvdpau" != "x"
88681then
88682  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vdpau ***" >&5
88683$as_echo "$as_me: *** for plug-ins: vdpau ***" >&6;}
88684fi
88685NOUSE=
88686if test "x$USE_VDPAU" = "xno"; then
88687  NOUSE="yes"
88688fi
88689# Check whether --enable-vdpau was given.
88690if test "${enable_vdpau+set}" = set; then :
88691  enableval=$enable_vdpau;  case "${enableval}" in
88692      yes) USE_VDPAU=yes;;
88693      no) USE_VDPAU=no;;
88694      *) as_fn_error $? "bad value ${enableval} for --enable-vdpau" "$LINENO" 5 ;;
88695    esac
88696else
88697   USE_VDPAU=yes
88698fi
88699
88700if test "x$NOUSE" = "xyes"; then
88701  USE_VDPAU="no"
88702  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vdpau pre-configured not to be built" >&5
88703$as_echo "$as_me: WARNING: *** vdpau pre-configured not to be built" >&2;}
88704fi
88705NOUSE=
88706
88707if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VDPAU " > /dev/null; then
88708  USE_VDPAU="no"
88709  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vdpau not ported" >&5
88710$as_echo "$as_me: WARNING: *** vdpau not ported" >&2;}
88711fi
88712
88713
88714if test x$USE_VDPAU = xyes; then
88715
88716  gst_check_save_LIBS=$LIBS
88717  gst_check_save_LDFLAGS=$LDFLAGS
88718  gst_check_save_CFLAGS=$CFLAGS
88719  gst_check_save_CPPFLAGS=$CPPFLAGS
88720  gst_check_save_CXXFLAGS=$CXXFLAGS
88721
88722  HAVE_VDPAU=no
88723
88724  VDPAU_CFLAGS=
88725  VDPAU_LIBS=-lvdpau
88726  HAVE_VDPAU=no
88727
88728
88729pkg_failed=no
88730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VDPAU" >&5
88731$as_echo_n "checking for VDPAU... " >&6; }
88732
88733if test -n "$PKG_CONFIG"; then
88734    if test -n "$VDPAU_CFLAGS"; then
88735        pkg_cv_VDPAU_CFLAGS="$VDPAU_CFLAGS"
88736    else
88737        if test -n "$PKG_CONFIG" && \
88738    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau\""; } >&5
88739  ($PKG_CONFIG --exists --print-errors "vdpau") 2>&5
88740  ac_status=$?
88741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88742  test $ac_status = 0; }; then
88743  pkg_cv_VDPAU_CFLAGS=`$PKG_CONFIG --cflags "vdpau" 2>/dev/null`
88744else
88745  pkg_failed=yes
88746fi
88747    fi
88748else
88749	pkg_failed=untried
88750fi
88751if test -n "$PKG_CONFIG"; then
88752    if test -n "$VDPAU_LIBS"; then
88753        pkg_cv_VDPAU_LIBS="$VDPAU_LIBS"
88754    else
88755        if test -n "$PKG_CONFIG" && \
88756    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau\""; } >&5
88757  ($PKG_CONFIG --exists --print-errors "vdpau") 2>&5
88758  ac_status=$?
88759  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
88760  test $ac_status = 0; }; then
88761  pkg_cv_VDPAU_LIBS=`$PKG_CONFIG --libs "vdpau" 2>/dev/null`
88762else
88763  pkg_failed=yes
88764fi
88765    fi
88766else
88767	pkg_failed=untried
88768fi
88769
88770
88771
88772if test $pkg_failed = yes; then
88773
88774if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
88775        _pkg_short_errors_supported=yes
88776else
88777        _pkg_short_errors_supported=no
88778fi
88779        if test $_pkg_short_errors_supported = yes; then
88780	        VDPAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vdpau"`
88781        else
88782	        VDPAU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vdpau"`
88783        fi
88784	# Put the nasty error message in config.log where it belongs
88785	echo "$VDPAU_PKG_ERRORS" >&5
88786
88787	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
88788$as_echo "no" >&6; }
88789
88790    if test "$HAVE_VDPAU" = "no"; then
88791      saved_CPPFLAGS="$CPPFLAGS"
88792      ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
88793if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
88794  HAVE_VDPAU_H=yes
88795fi
88796
88797
88798
88799      if test -z "$HAVE_VDPAU_H"; then
88800                        { $as_echo "$as_me:${as_lineno-$LINENO}: VDPAU header not in standard path. Checking /usr/include/nvidia" >&5
88801$as_echo "$as_me: VDPAU header not in standard path. Checking /usr/include/nvidia" >&6;}
88802        unset ac_cv_header_vdpau_vdpau_h
88803        unset ac_cv_header_vdpau_vdpau_x11_h
88804        VDPAU_CFLAGS="-I/usr/include/nvidia"
88805        VDPAU_LIBS="-L/usr/lib/nvidia -lvdpau"
88806        CPPFLAGS="$VDPAU_CFLAGS $saved_CPPFLAGS"
88807        ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
88808if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
88809  HAVE_VDPAU_H=yes
88810fi
88811
88812
88813      fi
88814
88815      ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau_x11.h" "ac_cv_header_vdpau_vdpau_x11_h" "$ac_includes_default"
88816if test "x$ac_cv_header_vdpau_vdpau_x11_h" = xyes; then :
88817  HAVE_VDPAU_X11_H=yes
88818fi
88819
88820
88821
88822      if test "x$HAVE_VDPAU_H" = "xyes" -a "x$HAVE_VDPAU_X11_H" = "xyes"; then
88823                { $as_echo "$as_me:${as_lineno-$LINENO}: VDPAU headers found. Checking libraries" >&5
88824$as_echo "$as_me: VDPAU headers found. Checking libraries" >&6;}
88825        saved_LIBS="$LIBS"
88826        LIBS="$VDPAU_LIBS $saved_LIBS"
88827        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdp_device_create_x11 in -lvdpau" >&5
88828$as_echo_n "checking for vdp_device_create_x11 in -lvdpau... " >&6; }
88829if ${ac_cv_lib_vdpau_vdp_device_create_x11+:} false; then :
88830  $as_echo_n "(cached) " >&6
88831else
88832  ac_check_lib_save_LIBS=$LIBS
88833LIBS="-lvdpau  $LIBS"
88834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88835/* end confdefs.h.  */
88836
88837/* Override any GCC internal prototype to avoid an error.
88838   Use char because int might match the return type of a GCC
88839   builtin and then its argument prototype would still apply.  */
88840#ifdef __cplusplus
88841extern "C"
88842#endif
88843char vdp_device_create_x11 ();
88844int
88845main ()
88846{
88847return vdp_device_create_x11 ();
88848  ;
88849  return 0;
88850}
88851_ACEOF
88852if ac_fn_c_try_link "$LINENO"; then :
88853  ac_cv_lib_vdpau_vdp_device_create_x11=yes
88854else
88855  ac_cv_lib_vdpau_vdp_device_create_x11=no
88856fi
88857rm -f core conftest.err conftest.$ac_objext \
88858    conftest$ac_exeext conftest.$ac_ext
88859LIBS=$ac_check_lib_save_LIBS
88860fi
88861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdpau_vdp_device_create_x11" >&5
88862$as_echo "$ac_cv_lib_vdpau_vdp_device_create_x11" >&6; }
88863if test "x$ac_cv_lib_vdpau_vdp_device_create_x11" = xyes; then :
88864  HAVE_VDPAU="yes"
88865fi
88866
88867        LIBS="$saved_LIBS"
88868      fi
88869    fi
88870
88871elif test $pkg_failed = untried; then
88872
88873    if test "$HAVE_VDPAU" = "no"; then
88874      saved_CPPFLAGS="$CPPFLAGS"
88875      ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
88876if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
88877  HAVE_VDPAU_H=yes
88878fi
88879
88880
88881
88882      if test -z "$HAVE_VDPAU_H"; then
88883                        { $as_echo "$as_me:${as_lineno-$LINENO}: VDPAU header not in standard path. Checking /usr/include/nvidia" >&5
88884$as_echo "$as_me: VDPAU header not in standard path. Checking /usr/include/nvidia" >&6;}
88885        unset ac_cv_header_vdpau_vdpau_h
88886        unset ac_cv_header_vdpau_vdpau_x11_h
88887        VDPAU_CFLAGS="-I/usr/include/nvidia"
88888        VDPAU_LIBS="-L/usr/lib/nvidia -lvdpau"
88889        CPPFLAGS="$VDPAU_CFLAGS $saved_CPPFLAGS"
88890        ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau.h" "ac_cv_header_vdpau_vdpau_h" "$ac_includes_default"
88891if test "x$ac_cv_header_vdpau_vdpau_h" = xyes; then :
88892  HAVE_VDPAU_H=yes
88893fi
88894
88895
88896      fi
88897
88898      ac_fn_c_check_header_mongrel "$LINENO" "vdpau/vdpau_x11.h" "ac_cv_header_vdpau_vdpau_x11_h" "$ac_includes_default"
88899if test "x$ac_cv_header_vdpau_vdpau_x11_h" = xyes; then :
88900  HAVE_VDPAU_X11_H=yes
88901fi
88902
88903
88904
88905      if test "x$HAVE_VDPAU_H" = "xyes" -a "x$HAVE_VDPAU_X11_H" = "xyes"; then
88906                { $as_echo "$as_me:${as_lineno-$LINENO}: VDPAU headers found. Checking libraries" >&5
88907$as_echo "$as_me: VDPAU headers found. Checking libraries" >&6;}
88908        saved_LIBS="$LIBS"
88909        LIBS="$VDPAU_LIBS $saved_LIBS"
88910        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vdp_device_create_x11 in -lvdpau" >&5
88911$as_echo_n "checking for vdp_device_create_x11 in -lvdpau... " >&6; }
88912if ${ac_cv_lib_vdpau_vdp_device_create_x11+:} false; then :
88913  $as_echo_n "(cached) " >&6
88914else
88915  ac_check_lib_save_LIBS=$LIBS
88916LIBS="-lvdpau  $LIBS"
88917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88918/* end confdefs.h.  */
88919
88920/* Override any GCC internal prototype to avoid an error.
88921   Use char because int might match the return type of a GCC
88922   builtin and then its argument prototype would still apply.  */
88923#ifdef __cplusplus
88924extern "C"
88925#endif
88926char vdp_device_create_x11 ();
88927int
88928main ()
88929{
88930return vdp_device_create_x11 ();
88931  ;
88932  return 0;
88933}
88934_ACEOF
88935if ac_fn_c_try_link "$LINENO"; then :
88936  ac_cv_lib_vdpau_vdp_device_create_x11=yes
88937else
88938  ac_cv_lib_vdpau_vdp_device_create_x11=no
88939fi
88940rm -f core conftest.err conftest.$ac_objext \
88941    conftest$ac_exeext conftest.$ac_ext
88942LIBS=$ac_check_lib_save_LIBS
88943fi
88944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vdpau_vdp_device_create_x11" >&5
88945$as_echo "$ac_cv_lib_vdpau_vdp_device_create_x11" >&6; }
88946if test "x$ac_cv_lib_vdpau_vdp_device_create_x11" = xyes; then :
88947  HAVE_VDPAU="yes"
88948fi
88949
88950        LIBS="$saved_LIBS"
88951      fi
88952    fi
88953
88954else
88955	VDPAU_CFLAGS=$pkg_cv_VDPAU_CFLAGS
88956	VDPAU_LIBS=$pkg_cv_VDPAU_LIBS
88957        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
88958$as_echo "yes" >&6; }
88959	HAVE_VDPAU="yes"
88960fi
88961
88962  if test "$HAVE_VDPAU" = "yes"; then
88963    { $as_echo "$as_me:${as_lineno-$LINENO}: Found up to date VDPAU installation" >&5
88964$as_echo "$as_me: Found up to date VDPAU installation" >&6;}
88965
88966
88967  fi
88968
88969
88970  LIBS=$gst_check_save_LIBS
88971  LDFLAGS=$gst_check_save_LDFLAGS
88972  CFLAGS=$gst_check_save_CFLAGS
88973  CPPFLAGS=$gst_check_save_CPPFLAGS
88974  CXXFLAGS=$gst_check_save_CXXFLAGS
88975
88976    if test x$HAVE_VDPAU = xno; then
88977    USE_VDPAU=no
88978  else
88979    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vdpau" >&5
88980$as_echo "$as_me: *** These plugins will be built: vdpau" >&6;}
88981  fi
88982fi
88983if test x$USE_VDPAU = xyes; then
88984  :
88985  if test "xvdpau" != "x"; then
88986    GST_PLUGINS_YES="\tvdpau\n$GST_PLUGINS_YES"
88987  fi
88988
88989$as_echo "#define HAVE_VDPAU /**/" >>confdefs.h
88990
88991else
88992  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vdpau" >&5
88993$as_echo "$as_me: *** These plugins will not be built: vdpau" >&6;}
88994  if test "xvdpau" != "x"; then
88995    GST_PLUGINS_NO="\tvdpau\n$GST_PLUGINS_NO"
88996  fi
88997  :
88998fi
88999 if test x$USE_VDPAU = xyes; then
89000  USE_VDPAU_TRUE=
89001  USE_VDPAU_FALSE='#'
89002else
89003  USE_VDPAU_TRUE='#'
89004  USE_VDPAU_FALSE=
89005fi
89006
89007
89008
89009echo
89010{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: SBC bluetooth audio codec ***" >&5
89011$as_echo "$as_me: *** checking feature: SBC bluetooth audio codec ***" >&6;}
89012if test "xsbc" != "x"
89013then
89014  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: sbc ***" >&5
89015$as_echo "$as_me: *** for plug-ins: sbc ***" >&6;}
89016fi
89017NOUSE=
89018if test "x$USE_SBC" = "xno"; then
89019  NOUSE="yes"
89020fi
89021# Check whether --enable-sbc was given.
89022if test "${enable_sbc+set}" = set; then :
89023  enableval=$enable_sbc;  case "${enableval}" in
89024      yes) USE_SBC=yes;;
89025      no) USE_SBC=no;;
89026      *) as_fn_error $? "bad value ${enableval} for --enable-sbc" "$LINENO" 5 ;;
89027    esac
89028else
89029   USE_SBC=yes
89030fi
89031
89032if test "x$NOUSE" = "xyes"; then
89033  USE_SBC="no"
89034  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sbc pre-configured not to be built" >&5
89035$as_echo "$as_me: WARNING: *** sbc pre-configured not to be built" >&2;}
89036fi
89037NOUSE=
89038
89039if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SBC " > /dev/null; then
89040  USE_SBC="no"
89041  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sbc not ported" >&5
89042$as_echo "$as_me: WARNING: *** sbc not ported" >&2;}
89043fi
89044
89045
89046if test x$USE_SBC = xyes; then
89047
89048  gst_check_save_LIBS=$LIBS
89049  gst_check_save_LDFLAGS=$LDFLAGS
89050  gst_check_save_CFLAGS=$CFLAGS
89051  gst_check_save_CPPFLAGS=$CPPFLAGS
89052  gst_check_save_CXXFLAGS=$CXXFLAGS
89053
89054  HAVE_SBC=no
89055
89056
89057  which="sbc >= 1.0"
89058    required="no"
89059
89060
89061pkg_failed=no
89062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SBC" >&5
89063$as_echo_n "checking for SBC... " >&6; }
89064
89065if test -n "$PKG_CONFIG"; then
89066    if test -n "$SBC_CFLAGS"; then
89067        pkg_cv_SBC_CFLAGS="$SBC_CFLAGS"
89068    else
89069        if test -n "$PKG_CONFIG" && \
89070    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89071  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89072  ac_status=$?
89073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89074  test $ac_status = 0; }; then
89075  pkg_cv_SBC_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
89076else
89077  pkg_failed=yes
89078fi
89079    fi
89080else
89081	pkg_failed=untried
89082fi
89083if test -n "$PKG_CONFIG"; then
89084    if test -n "$SBC_LIBS"; then
89085        pkg_cv_SBC_LIBS="$SBC_LIBS"
89086    else
89087        if test -n "$PKG_CONFIG" && \
89088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89089  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89090  ac_status=$?
89091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89092  test $ac_status = 0; }; then
89093  pkg_cv_SBC_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
89094else
89095  pkg_failed=yes
89096fi
89097    fi
89098else
89099	pkg_failed=untried
89100fi
89101
89102
89103
89104if test $pkg_failed = yes; then
89105
89106if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89107        _pkg_short_errors_supported=yes
89108else
89109        _pkg_short_errors_supported=no
89110fi
89111        if test $_pkg_short_errors_supported = yes; then
89112	        SBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
89113        else
89114	        SBC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
89115        fi
89116	# Put the nasty error message in config.log where it belongs
89117	echo "$SBC_PKG_ERRORS" >&5
89118
89119	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89120$as_echo "no" >&6; }
89121
89122      HAVE_SBC="no"
89123      if test "x$required" = "xyes"; then
89124        as_fn_error $? "$SBC_PKG_ERRORS" "$LINENO" 5
89125      else
89126        { $as_echo "$as_me:${as_lineno-$LINENO}: $SBC_PKG_ERRORS" >&5
89127$as_echo "$as_me: $SBC_PKG_ERRORS" >&6;}
89128      fi
89129
89130elif test $pkg_failed = untried; then
89131
89132      HAVE_SBC="no"
89133      if test "x$required" = "xyes"; then
89134        as_fn_error $? "$SBC_PKG_ERRORS" "$LINENO" 5
89135      else
89136        { $as_echo "$as_me:${as_lineno-$LINENO}: $SBC_PKG_ERRORS" >&5
89137$as_echo "$as_me: $SBC_PKG_ERRORS" >&6;}
89138      fi
89139
89140else
89141	SBC_CFLAGS=$pkg_cv_SBC_CFLAGS
89142	SBC_LIBS=$pkg_cv_SBC_LIBS
89143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89144$as_echo "yes" >&6; }
89145
89146      HAVE_SBC="yes"
89147
89148fi
89149
89150
89151
89152
89153  LIBS=$gst_check_save_LIBS
89154  LDFLAGS=$gst_check_save_LDFLAGS
89155  CFLAGS=$gst_check_save_CFLAGS
89156  CPPFLAGS=$gst_check_save_CPPFLAGS
89157  CXXFLAGS=$gst_check_save_CXXFLAGS
89158
89159    if test x$HAVE_SBC = xno; then
89160    USE_SBC=no
89161  else
89162    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: sbc" >&5
89163$as_echo "$as_me: *** These plugins will be built: sbc" >&6;}
89164  fi
89165fi
89166if test x$USE_SBC = xyes; then
89167  :
89168  if test "xsbc" != "x"; then
89169    GST_PLUGINS_YES="\tsbc\n$GST_PLUGINS_YES"
89170  fi
89171
89172$as_echo "#define HAVE_SBC /**/" >>confdefs.h
89173
89174else
89175  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: sbc" >&5
89176$as_echo "$as_me: *** These plugins will not be built: sbc" >&6;}
89177  if test "xsbc" != "x"; then
89178    GST_PLUGINS_NO="\tsbc\n$GST_PLUGINS_NO"
89179  fi
89180  :
89181fi
89182 if test x$USE_SBC = xyes; then
89183  USE_SBC_TRUE=
89184  USE_SBC_FALSE='#'
89185else
89186  USE_SBC_TRUE='#'
89187  USE_SBC_FALSE=
89188fi
89189
89190
89191
89192echo
89193{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: ZBar barcode detector ***" >&5
89194$as_echo "$as_me: *** checking feature: ZBar barcode detector ***" >&6;}
89195if test "xzbar" != "x"
89196then
89197  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: zbar ***" >&5
89198$as_echo "$as_me: *** for plug-ins: zbar ***" >&6;}
89199fi
89200NOUSE=
89201if test "x$USE_ZBAR" = "xno"; then
89202  NOUSE="yes"
89203fi
89204# Check whether --enable-zbar was given.
89205if test "${enable_zbar+set}" = set; then :
89206  enableval=$enable_zbar;  case "${enableval}" in
89207      yes) USE_ZBAR=yes;;
89208      no) USE_ZBAR=no;;
89209      *) as_fn_error $? "bad value ${enableval} for --enable-zbar" "$LINENO" 5 ;;
89210    esac
89211else
89212   USE_ZBAR=yes
89213fi
89214
89215if test "x$NOUSE" = "xyes"; then
89216  USE_ZBAR="no"
89217  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** zbar pre-configured not to be built" >&5
89218$as_echo "$as_me: WARNING: *** zbar pre-configured not to be built" >&2;}
89219fi
89220NOUSE=
89221
89222if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ZBAR " > /dev/null; then
89223  USE_ZBAR="no"
89224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** zbar not ported" >&5
89225$as_echo "$as_me: WARNING: *** zbar not ported" >&2;}
89226fi
89227
89228
89229if test x$USE_ZBAR = xyes; then
89230
89231  gst_check_save_LIBS=$LIBS
89232  gst_check_save_LDFLAGS=$LDFLAGS
89233  gst_check_save_CFLAGS=$CFLAGS
89234  gst_check_save_CPPFLAGS=$CPPFLAGS
89235  gst_check_save_CXXFLAGS=$CXXFLAGS
89236
89237  HAVE_ZBAR=no
89238
89239
89240  which="zbar >= 0.9"
89241    required="no"
89242
89243
89244pkg_failed=no
89245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZBAR" >&5
89246$as_echo_n "checking for ZBAR... " >&6; }
89247
89248if test -n "$PKG_CONFIG"; then
89249    if test -n "$ZBAR_CFLAGS"; then
89250        pkg_cv_ZBAR_CFLAGS="$ZBAR_CFLAGS"
89251    else
89252        if test -n "$PKG_CONFIG" && \
89253    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89254  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89255  ac_status=$?
89256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89257  test $ac_status = 0; }; then
89258  pkg_cv_ZBAR_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
89259else
89260  pkg_failed=yes
89261fi
89262    fi
89263else
89264	pkg_failed=untried
89265fi
89266if test -n "$PKG_CONFIG"; then
89267    if test -n "$ZBAR_LIBS"; then
89268        pkg_cv_ZBAR_LIBS="$ZBAR_LIBS"
89269    else
89270        if test -n "$PKG_CONFIG" && \
89271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89272  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89273  ac_status=$?
89274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89275  test $ac_status = 0; }; then
89276  pkg_cv_ZBAR_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
89277else
89278  pkg_failed=yes
89279fi
89280    fi
89281else
89282	pkg_failed=untried
89283fi
89284
89285
89286
89287if test $pkg_failed = yes; then
89288
89289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89290        _pkg_short_errors_supported=yes
89291else
89292        _pkg_short_errors_supported=no
89293fi
89294        if test $_pkg_short_errors_supported = yes; then
89295	        ZBAR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
89296        else
89297	        ZBAR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
89298        fi
89299	# Put the nasty error message in config.log where it belongs
89300	echo "$ZBAR_PKG_ERRORS" >&5
89301
89302	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89303$as_echo "no" >&6; }
89304
89305      HAVE_ZBAR="no"
89306      if test "x$required" = "xyes"; then
89307        as_fn_error $? "$ZBAR_PKG_ERRORS" "$LINENO" 5
89308      else
89309        { $as_echo "$as_me:${as_lineno-$LINENO}: $ZBAR_PKG_ERRORS" >&5
89310$as_echo "$as_me: $ZBAR_PKG_ERRORS" >&6;}
89311      fi
89312
89313elif test $pkg_failed = untried; then
89314
89315      HAVE_ZBAR="no"
89316      if test "x$required" = "xyes"; then
89317        as_fn_error $? "$ZBAR_PKG_ERRORS" "$LINENO" 5
89318      else
89319        { $as_echo "$as_me:${as_lineno-$LINENO}: $ZBAR_PKG_ERRORS" >&5
89320$as_echo "$as_me: $ZBAR_PKG_ERRORS" >&6;}
89321      fi
89322
89323else
89324	ZBAR_CFLAGS=$pkg_cv_ZBAR_CFLAGS
89325	ZBAR_LIBS=$pkg_cv_ZBAR_LIBS
89326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89327$as_echo "yes" >&6; }
89328
89329      HAVE_ZBAR="yes"
89330
89331fi
89332
89333
89334
89335
89336  LIBS=$gst_check_save_LIBS
89337  LDFLAGS=$gst_check_save_LDFLAGS
89338  CFLAGS=$gst_check_save_CFLAGS
89339  CPPFLAGS=$gst_check_save_CPPFLAGS
89340  CXXFLAGS=$gst_check_save_CXXFLAGS
89341
89342    if test x$HAVE_ZBAR = xno; then
89343    USE_ZBAR=no
89344  else
89345    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: zbar" >&5
89346$as_echo "$as_me: *** These plugins will be built: zbar" >&6;}
89347  fi
89348fi
89349if test x$USE_ZBAR = xyes; then
89350  :
89351  if test "xzbar" != "x"; then
89352    GST_PLUGINS_YES="\tzbar\n$GST_PLUGINS_YES"
89353  fi
89354
89355$as_echo "#define HAVE_ZBAR /**/" >>confdefs.h
89356
89357else
89358  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: zbar" >&5
89359$as_echo "$as_me: *** These plugins will not be built: zbar" >&6;}
89360  if test "xzbar" != "x"; then
89361    GST_PLUGINS_NO="\tzbar\n$GST_PLUGINS_NO"
89362  fi
89363  :
89364fi
89365 if test x$USE_ZBAR = xyes; then
89366  USE_ZBAR_TRUE=
89367  USE_ZBAR_FALSE='#'
89368else
89369  USE_ZBAR_TRUE='#'
89370  USE_ZBAR_FALSE=
89371fi
89372
89373
89374
89375echo
89376{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: rtmp library ***" >&5
89377$as_echo "$as_me: *** checking feature: rtmp library ***" >&6;}
89378if test "xrtmp" != "x"
89379then
89380  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: rtmp ***" >&5
89381$as_echo "$as_me: *** for plug-ins: rtmp ***" >&6;}
89382fi
89383NOUSE=
89384if test "x$USE_RTMP" = "xno"; then
89385  NOUSE="yes"
89386fi
89387# Check whether --enable-rtmp was given.
89388if test "${enable_rtmp+set}" = set; then :
89389  enableval=$enable_rtmp;  case "${enableval}" in
89390      yes) USE_RTMP=yes;;
89391      no) USE_RTMP=no;;
89392      *) as_fn_error $? "bad value ${enableval} for --enable-rtmp" "$LINENO" 5 ;;
89393    esac
89394else
89395   USE_RTMP=yes
89396fi
89397
89398if test "x$NOUSE" = "xyes"; then
89399  USE_RTMP="no"
89400  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** rtmp pre-configured not to be built" >&5
89401$as_echo "$as_me: WARNING: *** rtmp pre-configured not to be built" >&2;}
89402fi
89403NOUSE=
89404
89405if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " RTMP " > /dev/null; then
89406  USE_RTMP="no"
89407  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** rtmp not ported" >&5
89408$as_echo "$as_me: WARNING: *** rtmp not ported" >&2;}
89409fi
89410
89411
89412if test x$USE_RTMP = xyes; then
89413
89414  gst_check_save_LIBS=$LIBS
89415  gst_check_save_LDFLAGS=$LDFLAGS
89416  gst_check_save_CFLAGS=$CFLAGS
89417  gst_check_save_CPPFLAGS=$CPPFLAGS
89418  gst_check_save_CXXFLAGS=$CXXFLAGS
89419
89420  HAVE_RTMP=no
89421
89422
89423  which="librtmp"
89424    required="no"
89425
89426
89427pkg_failed=no
89428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP" >&5
89429$as_echo_n "checking for RTMP... " >&6; }
89430
89431if test -n "$PKG_CONFIG"; then
89432    if test -n "$RTMP_CFLAGS"; then
89433        pkg_cv_RTMP_CFLAGS="$RTMP_CFLAGS"
89434    else
89435        if test -n "$PKG_CONFIG" && \
89436    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89437  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89438  ac_status=$?
89439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89440  test $ac_status = 0; }; then
89441  pkg_cv_RTMP_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
89442else
89443  pkg_failed=yes
89444fi
89445    fi
89446else
89447	pkg_failed=untried
89448fi
89449if test -n "$PKG_CONFIG"; then
89450    if test -n "$RTMP_LIBS"; then
89451        pkg_cv_RTMP_LIBS="$RTMP_LIBS"
89452    else
89453        if test -n "$PKG_CONFIG" && \
89454    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
89455  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
89456  ac_status=$?
89457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89458  test $ac_status = 0; }; then
89459  pkg_cv_RTMP_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
89460else
89461  pkg_failed=yes
89462fi
89463    fi
89464else
89465	pkg_failed=untried
89466fi
89467
89468
89469
89470if test $pkg_failed = yes; then
89471
89472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89473        _pkg_short_errors_supported=yes
89474else
89475        _pkg_short_errors_supported=no
89476fi
89477        if test $_pkg_short_errors_supported = yes; then
89478	        RTMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
89479        else
89480	        RTMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
89481        fi
89482	# Put the nasty error message in config.log where it belongs
89483	echo "$RTMP_PKG_ERRORS" >&5
89484
89485	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89486$as_echo "no" >&6; }
89487
89488      HAVE_RTMP="no"
89489      if test "x$required" = "xyes"; then
89490        as_fn_error $? "$RTMP_PKG_ERRORS" "$LINENO" 5
89491      else
89492        { $as_echo "$as_me:${as_lineno-$LINENO}: $RTMP_PKG_ERRORS" >&5
89493$as_echo "$as_me: $RTMP_PKG_ERRORS" >&6;}
89494      fi
89495
89496elif test $pkg_failed = untried; then
89497
89498      HAVE_RTMP="no"
89499      if test "x$required" = "xyes"; then
89500        as_fn_error $? "$RTMP_PKG_ERRORS" "$LINENO" 5
89501      else
89502        { $as_echo "$as_me:${as_lineno-$LINENO}: $RTMP_PKG_ERRORS" >&5
89503$as_echo "$as_me: $RTMP_PKG_ERRORS" >&6;}
89504      fi
89505
89506else
89507	RTMP_CFLAGS=$pkg_cv_RTMP_CFLAGS
89508	RTMP_LIBS=$pkg_cv_RTMP_LIBS
89509        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89510$as_echo "yes" >&6; }
89511
89512      HAVE_RTMP="yes"
89513
89514fi
89515
89516
89517
89518
89519  LIBS=$gst_check_save_LIBS
89520  LDFLAGS=$gst_check_save_LDFLAGS
89521  CFLAGS=$gst_check_save_CFLAGS
89522  CPPFLAGS=$gst_check_save_CPPFLAGS
89523  CXXFLAGS=$gst_check_save_CXXFLAGS
89524
89525    if test x$HAVE_RTMP = xno; then
89526    USE_RTMP=no
89527  else
89528    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: rtmp" >&5
89529$as_echo "$as_me: *** These plugins will be built: rtmp" >&6;}
89530  fi
89531fi
89532if test x$USE_RTMP = xyes; then
89533  :
89534  if test "xrtmp" != "x"; then
89535    GST_PLUGINS_YES="\trtmp\n$GST_PLUGINS_YES"
89536  fi
89537
89538$as_echo "#define HAVE_RTMP /**/" >>confdefs.h
89539
89540else
89541  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: rtmp" >&5
89542$as_echo "$as_me: *** These plugins will not be built: rtmp" >&6;}
89543  if test "xrtmp" != "x"; then
89544    GST_PLUGINS_NO="\trtmp\n$GST_PLUGINS_NO"
89545  fi
89546  :
89547fi
89548 if test x$USE_RTMP = xyes; then
89549  USE_RTMP_TRUE=
89550  USE_RTMP_FALSE='#'
89551else
89552  USE_RTMP_TRUE='#'
89553  USE_RTMP_FALSE=
89554fi
89555
89556
89557
89558echo
89559{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: Spandsp ***" >&5
89560$as_echo "$as_me: *** checking feature: Spandsp ***" >&6;}
89561if test "xspandsp" != "x"
89562then
89563  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: spandsp ***" >&5
89564$as_echo "$as_me: *** for plug-ins: spandsp ***" >&6;}
89565fi
89566NOUSE=
89567if test "x$USE_SPANDSP" = "xno"; then
89568  NOUSE="yes"
89569fi
89570# Check whether --enable-spandsp was given.
89571if test "${enable_spandsp+set}" = set; then :
89572  enableval=$enable_spandsp;  case "${enableval}" in
89573      yes) USE_SPANDSP=yes;;
89574      no) USE_SPANDSP=no;;
89575      *) as_fn_error $? "bad value ${enableval} for --enable-spandsp" "$LINENO" 5 ;;
89576    esac
89577else
89578   USE_SPANDSP=yes
89579fi
89580
89581if test "x$NOUSE" = "xyes"; then
89582  USE_SPANDSP="no"
89583  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** spandsp pre-configured not to be built" >&5
89584$as_echo "$as_me: WARNING: *** spandsp pre-configured not to be built" >&2;}
89585fi
89586NOUSE=
89587
89588if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SPANDSP " > /dev/null; then
89589  USE_SPANDSP="no"
89590  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** spandsp not ported" >&5
89591$as_echo "$as_me: WARNING: *** spandsp not ported" >&2;}
89592fi
89593
89594
89595if test x$USE_SPANDSP = xyes; then
89596
89597  gst_check_save_LIBS=$LIBS
89598  gst_check_save_LDFLAGS=$LDFLAGS
89599  gst_check_save_CFLAGS=$CFLAGS
89600  gst_check_save_CPPFLAGS=$CPPFLAGS
89601  gst_check_save_CXXFLAGS=$CXXFLAGS
89602
89603  HAVE_SPANDSP=no
89604
89605
89606pkg_failed=no
89607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPANDSP" >&5
89608$as_echo_n "checking for SPANDSP... " >&6; }
89609
89610if test -n "$PKG_CONFIG"; then
89611    if test -n "$SPANDSP_CFLAGS"; then
89612        pkg_cv_SPANDSP_CFLAGS="$SPANDSP_CFLAGS"
89613    else
89614        if test -n "$PKG_CONFIG" && \
89615    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spandsp >= 0.0.6\""; } >&5
89616  ($PKG_CONFIG --exists --print-errors "spandsp >= 0.0.6") 2>&5
89617  ac_status=$?
89618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89619  test $ac_status = 0; }; then
89620  pkg_cv_SPANDSP_CFLAGS=`$PKG_CONFIG --cflags "spandsp >= 0.0.6" 2>/dev/null`
89621else
89622  pkg_failed=yes
89623fi
89624    fi
89625else
89626	pkg_failed=untried
89627fi
89628if test -n "$PKG_CONFIG"; then
89629    if test -n "$SPANDSP_LIBS"; then
89630        pkg_cv_SPANDSP_LIBS="$SPANDSP_LIBS"
89631    else
89632        if test -n "$PKG_CONFIG" && \
89633    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spandsp >= 0.0.6\""; } >&5
89634  ($PKG_CONFIG --exists --print-errors "spandsp >= 0.0.6") 2>&5
89635  ac_status=$?
89636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89637  test $ac_status = 0; }; then
89638  pkg_cv_SPANDSP_LIBS=`$PKG_CONFIG --libs "spandsp >= 0.0.6" 2>/dev/null`
89639else
89640  pkg_failed=yes
89641fi
89642    fi
89643else
89644	pkg_failed=untried
89645fi
89646
89647
89648
89649if test $pkg_failed = yes; then
89650
89651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89652        _pkg_short_errors_supported=yes
89653else
89654        _pkg_short_errors_supported=no
89655fi
89656        if test $_pkg_short_errors_supported = yes; then
89657	        SPANDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "spandsp >= 0.0.6"`
89658        else
89659	        SPANDSP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "spandsp >= 0.0.6"`
89660        fi
89661	# Put the nasty error message in config.log where it belongs
89662	echo "$SPANDSP_PKG_ERRORS" >&5
89663
89664	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89665$as_echo "no" >&6; }
89666
89667    HAVE_SPANDSP="no"
89668
89669elif test $pkg_failed = untried; then
89670
89671    HAVE_SPANDSP="no"
89672
89673else
89674	SPANDSP_CFLAGS=$pkg_cv_SPANDSP_CFLAGS
89675	SPANDSP_LIBS=$pkg_cv_SPANDSP_LIBS
89676        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89677$as_echo "yes" >&6; }
89678
89679    HAVE_SPANDSP="yes"
89680fi
89681
89682
89683  LIBS=$gst_check_save_LIBS
89684  LDFLAGS=$gst_check_save_LDFLAGS
89685  CFLAGS=$gst_check_save_CFLAGS
89686  CPPFLAGS=$gst_check_save_CPPFLAGS
89687  CXXFLAGS=$gst_check_save_CXXFLAGS
89688
89689    if test x$HAVE_SPANDSP = xno; then
89690    USE_SPANDSP=no
89691  else
89692    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: spandsp" >&5
89693$as_echo "$as_me: *** These plugins will be built: spandsp" >&6;}
89694  fi
89695fi
89696if test x$USE_SPANDSP = xyes; then
89697  :
89698  if test "xspandsp" != "x"; then
89699    GST_PLUGINS_YES="\tspandsp\n$GST_PLUGINS_YES"
89700  fi
89701
89702$as_echo "#define HAVE_SPANDSP /**/" >>confdefs.h
89703
89704else
89705  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: spandsp" >&5
89706$as_echo "$as_me: *** These plugins will not be built: spandsp" >&6;}
89707  if test "xspandsp" != "x"; then
89708    GST_PLUGINS_NO="\tspandsp\n$GST_PLUGINS_NO"
89709  fi
89710  :
89711fi
89712 if test x$USE_SPANDSP = xyes; then
89713  USE_SPANDSP_TRUE=
89714  USE_SPANDSP_FALSE='#'
89715else
89716  USE_SPANDSP_TRUE='#'
89717  USE_SPANDSP_FALSE=
89718fi
89719
89720
89721
89722
89723
89724
89725# Check whether --with-hls-crypto was given.
89726if test "${with_hls_crypto+set}" = set; then :
89727  withval=$with_hls_crypto;
89728    case $with_hls_crypto in #(
89729  nettle) :
89730     ;; #(
89731  libgcrypt) :
89732     ;; #(
89733  openssl) :
89734     ;; #(
89735  *) :
89736    with_hls_crypto=auto
89737     ;;
89738esac
89739
89740
89741fi
89742
89743
89744echo
89745{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: http live streaming plugin ***" >&5
89746$as_echo "$as_me: *** checking feature: http live streaming plugin ***" >&6;}
89747if test "xhls" != "x"
89748then
89749  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: hls ***" >&5
89750$as_echo "$as_me: *** for plug-ins: hls ***" >&6;}
89751fi
89752NOUSE=
89753if test "x$USE_HLS" = "xno"; then
89754  NOUSE="yes"
89755fi
89756# Check whether --enable-hls was given.
89757if test "${enable_hls+set}" = set; then :
89758  enableval=$enable_hls;  case "${enableval}" in
89759      yes) USE_HLS=yes;;
89760      no) USE_HLS=no;;
89761      *) as_fn_error $? "bad value ${enableval} for --enable-hls" "$LINENO" 5 ;;
89762    esac
89763else
89764   USE_HLS=yes
89765fi
89766
89767if test "x$NOUSE" = "xyes"; then
89768  USE_HLS="no"
89769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hls pre-configured not to be built" >&5
89770$as_echo "$as_me: WARNING: *** hls pre-configured not to be built" >&2;}
89771fi
89772NOUSE=
89773
89774if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " HLS " > /dev/null; then
89775  USE_HLS="no"
89776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hls not ported" >&5
89777$as_echo "$as_me: WARNING: *** hls not ported" >&2;}
89778fi
89779
89780
89781if test x$USE_HLS = xyes; then
89782
89783  gst_check_save_LIBS=$LIBS
89784  gst_check_save_LDFLAGS=$LDFLAGS
89785  gst_check_save_CFLAGS=$CFLAGS
89786  gst_check_save_CPPFLAGS=$CPPFLAGS
89787  gst_check_save_CXXFLAGS=$CXXFLAGS
89788
89789  HAVE_HLS=no
89790
89791  case $with_hls_crypto in #(
89792  nettle) :
89793
89794
89795pkg_failed=no
89796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
89797$as_echo_n "checking for NETTLE... " >&6; }
89798
89799if test -n "$PKG_CONFIG"; then
89800    if test -n "$NETTLE_CFLAGS"; then
89801        pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
89802    else
89803        if test -n "$PKG_CONFIG" && \
89804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5
89805  ($PKG_CONFIG --exists --print-errors "nettle") 2>&5
89806  ac_status=$?
89807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89808  test $ac_status = 0; }; then
89809  pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle" 2>/dev/null`
89810else
89811  pkg_failed=yes
89812fi
89813    fi
89814else
89815	pkg_failed=untried
89816fi
89817if test -n "$PKG_CONFIG"; then
89818    if test -n "$NETTLE_LIBS"; then
89819        pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
89820    else
89821        if test -n "$PKG_CONFIG" && \
89822    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5
89823  ($PKG_CONFIG --exists --print-errors "nettle") 2>&5
89824  ac_status=$?
89825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
89826  test $ac_status = 0; }; then
89827  pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle" 2>/dev/null`
89828else
89829  pkg_failed=yes
89830fi
89831    fi
89832else
89833	pkg_failed=untried
89834fi
89835
89836
89837
89838if test $pkg_failed = yes; then
89839
89840if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
89841        _pkg_short_errors_supported=yes
89842else
89843        _pkg_short_errors_supported=no
89844fi
89845        if test $_pkg_short_errors_supported = yes; then
89846	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle"`
89847        else
89848	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle"`
89849        fi
89850	# Put the nasty error message in config.log where it belongs
89851	echo "$NETTLE_PKG_ERRORS" >&5
89852
89853	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89854$as_echo "no" >&6; }
89855                as_fn_error $? "Could not find nettle library" "$LINENO" 5
89856elif test $pkg_failed = untried; then
89857	as_fn_error $? "Could not find nettle library" "$LINENO" 5
89858else
89859	NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
89860	NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
89861        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
89862$as_echo "yes" >&6; }
89863
89864
89865$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
89866
89867        HAVE_HLS="yes"
89868
89869fi
89870     ;; #(
89871  libgcrypt) :
89872
89873
89874
89875# Check whether --with-libgcrypt-prefix was given.
89876if test "${with_libgcrypt_prefix+set}" = set; then :
89877  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
89878else
89879  libgcrypt_config_prefix=""
89880fi
89881
89882  if test x$libgcrypt_config_prefix != x ; then
89883     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
89884        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
89885     fi
89886  fi
89887
89888  if test -n "$ac_tool_prefix"; then
89889  # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
89890set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
89891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
89892$as_echo_n "checking for $ac_word... " >&6; }
89893if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
89894  $as_echo_n "(cached) " >&6
89895else
89896  case $LIBGCRYPT_CONFIG in
89897  [\\/]* | ?:[\\/]*)
89898  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
89899  ;;
89900  *)
89901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89902for as_dir in $PATH
89903do
89904  IFS=$as_save_IFS
89905  test -z "$as_dir" && as_dir=.
89906    for ac_exec_ext in '' $ac_executable_extensions; do
89907  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
89908    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
89909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
89910    break 2
89911  fi
89912done
89913  done
89914IFS=$as_save_IFS
89915
89916  ;;
89917esac
89918fi
89919LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
89920if test -n "$LIBGCRYPT_CONFIG"; then
89921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
89922$as_echo "$LIBGCRYPT_CONFIG" >&6; }
89923else
89924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89925$as_echo "no" >&6; }
89926fi
89927
89928
89929fi
89930if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
89931  ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
89932  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
89933set dummy libgcrypt-config; ac_word=$2
89934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
89935$as_echo_n "checking for $ac_word... " >&6; }
89936if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
89937  $as_echo_n "(cached) " >&6
89938else
89939  case $ac_pt_LIBGCRYPT_CONFIG in
89940  [\\/]* | ?:[\\/]*)
89941  ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
89942  ;;
89943  *)
89944  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89945for as_dir in $PATH
89946do
89947  IFS=$as_save_IFS
89948  test -z "$as_dir" && as_dir=.
89949    for ac_exec_ext in '' $ac_executable_extensions; do
89950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
89951    ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
89952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
89953    break 2
89954  fi
89955done
89956  done
89957IFS=$as_save_IFS
89958
89959  ;;
89960esac
89961fi
89962ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
89963if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
89964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
89965$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
89966else
89967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
89968$as_echo "no" >&6; }
89969fi
89970
89971  if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
89972    LIBGCRYPT_CONFIG="no"
89973  else
89974    case $cross_compiling:$ac_tool_warned in
89975yes:)
89976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
89977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
89978ac_tool_warned=yes ;;
89979esac
89980    LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
89981  fi
89982else
89983  LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
89984fi
89985
89986  tmp=1.2.0
89987  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
89988     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
89989     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
89990  else
89991     req_libgcrypt_api=0
89992     min_libgcrypt_version="$tmp"
89993  fi
89994
89995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
89996$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
89997  ok=no
89998  if test "$LIBGCRYPT_CONFIG" != "no" ; then
89999    req_major=`echo $min_libgcrypt_version | \
90000               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
90001    req_minor=`echo $min_libgcrypt_version | \
90002               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
90003    req_micro=`echo $min_libgcrypt_version | \
90004               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
90005    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
90006    major=`echo $libgcrypt_config_version | \
90007               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
90008    minor=`echo $libgcrypt_config_version | \
90009               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
90010    micro=`echo $libgcrypt_config_version | \
90011               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
90012    if test "$major" -gt "$req_major"; then
90013        ok=yes
90014    else
90015        if test "$major" -eq "$req_major"; then
90016            if test "$minor" -gt "$req_minor"; then
90017               ok=yes
90018            else
90019               if test "$minor" -eq "$req_minor"; then
90020                   if test "$micro" -ge "$req_micro"; then
90021                     ok=yes
90022                   fi
90023               fi
90024            fi
90025        fi
90026    fi
90027  fi
90028  if test $ok = yes; then
90029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
90030$as_echo "yes ($libgcrypt_config_version)" >&6; }
90031  else
90032    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90033$as_echo "no" >&6; }
90034  fi
90035  if test $ok = yes; then
90036     # If we have a recent libgcrypt, we should also check that the
90037     # API is compatible
90038     if test "$req_libgcrypt_api" -gt 0 ; then
90039        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
90040        if test "$tmp" -gt 0 ; then
90041           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
90042$as_echo_n "checking LIBGCRYPT API version... " >&6; }
90043           if test "$req_libgcrypt_api" -eq "$tmp" ; then
90044             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
90045$as_echo "okay" >&6; }
90046           else
90047             ok=no
90048             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
90049$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
90050           fi
90051        fi
90052     fi
90053  fi
90054  if test $ok = yes; then
90055    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
90056    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
90057
90058
90059$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
90060
90061        HAVE_HLS="yes"
90062
90063    libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
90064    if test x"$libgcrypt_config_host" != xnone ; then
90065      if test x"$libgcrypt_config_host" != x"$host" ; then
90066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
90067***
90068*** The config script $LIBGCRYPT_CONFIG was
90069*** built for $libgcrypt_config_host and thus may not match the
90070*** used host $host.
90071*** You may want to use the configure option --with-libgcrypt-prefix
90072*** to specify a matching config script.
90073***" >&5
90074$as_echo "$as_me: WARNING:
90075***
90076*** The config script $LIBGCRYPT_CONFIG was
90077*** built for $libgcrypt_config_host and thus may not match the
90078*** used host $host.
90079*** You may want to use the configure option --with-libgcrypt-prefix
90080*** to specify a matching config script.
90081***" >&2;}
90082      fi
90083    fi
90084  else
90085    LIBGCRYPT_CFLAGS=""
90086    LIBGCRYPT_LIBS=""
90087    as_fn_error $? "Could not find libgcrypt library" "$LINENO" 5
90088  fi
90089
90090
90091
90092     ;; #(
90093  openssl) :
90094
90095
90096pkg_failed=no
90097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
90098$as_echo_n "checking for OPENSSL... " >&6; }
90099
90100if test -n "$PKG_CONFIG"; then
90101    if test -n "$OPENSSL_CFLAGS"; then
90102        pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
90103    else
90104        if test -n "$PKG_CONFIG" && \
90105    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90106  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90107  ac_status=$?
90108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90109  test $ac_status = 0; }; then
90110  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
90111else
90112  pkg_failed=yes
90113fi
90114    fi
90115else
90116	pkg_failed=untried
90117fi
90118if test -n "$PKG_CONFIG"; then
90119    if test -n "$OPENSSL_LIBS"; then
90120        pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
90121    else
90122        if test -n "$PKG_CONFIG" && \
90123    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90124  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90125  ac_status=$?
90126  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90127  test $ac_status = 0; }; then
90128  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
90129else
90130  pkg_failed=yes
90131fi
90132    fi
90133else
90134	pkg_failed=untried
90135fi
90136
90137
90138
90139if test $pkg_failed = yes; then
90140
90141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90142        _pkg_short_errors_supported=yes
90143else
90144        _pkg_short_errors_supported=no
90145fi
90146        if test $_pkg_short_errors_supported = yes; then
90147	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl"`
90148        else
90149	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
90150        fi
90151	# Put the nasty error message in config.log where it belongs
90152	echo "$OPENSSL_PKG_ERRORS" >&5
90153
90154	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90155$as_echo "no" >&6; }
90156                as_fn_error $? "Could not find openssl library" "$LINENO" 5
90157elif test $pkg_failed = untried; then
90158	as_fn_error $? "Could not find openssl library" "$LINENO" 5
90159else
90160	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
90161	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
90162        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90163$as_echo "yes" >&6; }
90164
90165
90166$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
90167
90168        HAVE_HLS="yes"
90169
90170fi
90171     ;; #(
90172  *) :
90173
90174            HAVE_HLS="yes"
90175
90176pkg_failed=no
90177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
90178$as_echo_n "checking for NETTLE... " >&6; }
90179
90180if test -n "$PKG_CONFIG"; then
90181    if test -n "$NETTLE_CFLAGS"; then
90182        pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
90183    else
90184        if test -n "$PKG_CONFIG" && \
90185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5
90186  ($PKG_CONFIG --exists --print-errors "nettle") 2>&5
90187  ac_status=$?
90188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90189  test $ac_status = 0; }; then
90190  pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle" 2>/dev/null`
90191else
90192  pkg_failed=yes
90193fi
90194    fi
90195else
90196	pkg_failed=untried
90197fi
90198if test -n "$PKG_CONFIG"; then
90199    if test -n "$NETTLE_LIBS"; then
90200        pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
90201    else
90202        if test -n "$PKG_CONFIG" && \
90203    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle\""; } >&5
90204  ($PKG_CONFIG --exists --print-errors "nettle") 2>&5
90205  ac_status=$?
90206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90207  test $ac_status = 0; }; then
90208  pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle" 2>/dev/null`
90209else
90210  pkg_failed=yes
90211fi
90212    fi
90213else
90214	pkg_failed=untried
90215fi
90216
90217
90218
90219if test $pkg_failed = yes; then
90220
90221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90222        _pkg_short_errors_supported=yes
90223else
90224        _pkg_short_errors_supported=no
90225fi
90226        if test $_pkg_short_errors_supported = yes; then
90227	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle"`
90228        else
90229	        NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle"`
90230        fi
90231	# Put the nasty error message in config.log where it belongs
90232	echo "$NETTLE_PKG_ERRORS" >&5
90233
90234	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90235$as_echo "no" >&6; }
90236
90237
90238
90239# Check whether --with-libgcrypt-prefix was given.
90240if test "${with_libgcrypt_prefix+set}" = set; then :
90241  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
90242else
90243  libgcrypt_config_prefix=""
90244fi
90245
90246  if test x$libgcrypt_config_prefix != x ; then
90247     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
90248        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
90249     fi
90250  fi
90251
90252  if test -n "$ac_tool_prefix"; then
90253  # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
90254set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
90255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
90256$as_echo_n "checking for $ac_word... " >&6; }
90257if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
90258  $as_echo_n "(cached) " >&6
90259else
90260  case $LIBGCRYPT_CONFIG in
90261  [\\/]* | ?:[\\/]*)
90262  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
90263  ;;
90264  *)
90265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90266for as_dir in $PATH
90267do
90268  IFS=$as_save_IFS
90269  test -z "$as_dir" && as_dir=.
90270    for ac_exec_ext in '' $ac_executable_extensions; do
90271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90272    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
90273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90274    break 2
90275  fi
90276done
90277  done
90278IFS=$as_save_IFS
90279
90280  ;;
90281esac
90282fi
90283LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
90284if test -n "$LIBGCRYPT_CONFIG"; then
90285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
90286$as_echo "$LIBGCRYPT_CONFIG" >&6; }
90287else
90288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90289$as_echo "no" >&6; }
90290fi
90291
90292
90293fi
90294if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
90295  ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
90296  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
90297set dummy libgcrypt-config; ac_word=$2
90298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
90299$as_echo_n "checking for $ac_word... " >&6; }
90300if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
90301  $as_echo_n "(cached) " >&6
90302else
90303  case $ac_pt_LIBGCRYPT_CONFIG in
90304  [\\/]* | ?:[\\/]*)
90305  ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
90306  ;;
90307  *)
90308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90309for as_dir in $PATH
90310do
90311  IFS=$as_save_IFS
90312  test -z "$as_dir" && as_dir=.
90313    for ac_exec_ext in '' $ac_executable_extensions; do
90314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90315    ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
90316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90317    break 2
90318  fi
90319done
90320  done
90321IFS=$as_save_IFS
90322
90323  ;;
90324esac
90325fi
90326ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
90327if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
90328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
90329$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
90330else
90331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90332$as_echo "no" >&6; }
90333fi
90334
90335  if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
90336    LIBGCRYPT_CONFIG="no"
90337  else
90338    case $cross_compiling:$ac_tool_warned in
90339yes:)
90340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
90341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
90342ac_tool_warned=yes ;;
90343esac
90344    LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
90345  fi
90346else
90347  LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
90348fi
90349
90350  tmp=1.2.0
90351  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
90352     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
90353     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
90354  else
90355     req_libgcrypt_api=0
90356     min_libgcrypt_version="$tmp"
90357  fi
90358
90359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
90360$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
90361  ok=no
90362  if test "$LIBGCRYPT_CONFIG" != "no" ; then
90363    req_major=`echo $min_libgcrypt_version | \
90364               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
90365    req_minor=`echo $min_libgcrypt_version | \
90366               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
90367    req_micro=`echo $min_libgcrypt_version | \
90368               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
90369    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
90370    major=`echo $libgcrypt_config_version | \
90371               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
90372    minor=`echo $libgcrypt_config_version | \
90373               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
90374    micro=`echo $libgcrypt_config_version | \
90375               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
90376    if test "$major" -gt "$req_major"; then
90377        ok=yes
90378    else
90379        if test "$major" -eq "$req_major"; then
90380            if test "$minor" -gt "$req_minor"; then
90381               ok=yes
90382            else
90383               if test "$minor" -eq "$req_minor"; then
90384                   if test "$micro" -ge "$req_micro"; then
90385                     ok=yes
90386                   fi
90387               fi
90388            fi
90389        fi
90390    fi
90391  fi
90392  if test $ok = yes; then
90393    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
90394$as_echo "yes ($libgcrypt_config_version)" >&6; }
90395  else
90396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90397$as_echo "no" >&6; }
90398  fi
90399  if test $ok = yes; then
90400     # If we have a recent libgcrypt, we should also check that the
90401     # API is compatible
90402     if test "$req_libgcrypt_api" -gt 0 ; then
90403        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
90404        if test "$tmp" -gt 0 ; then
90405           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
90406$as_echo_n "checking LIBGCRYPT API version... " >&6; }
90407           if test "$req_libgcrypt_api" -eq "$tmp" ; then
90408             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
90409$as_echo "okay" >&6; }
90410           else
90411             ok=no
90412             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
90413$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
90414           fi
90415        fi
90416     fi
90417  fi
90418  if test $ok = yes; then
90419    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
90420    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
90421
90422
90423$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
90424
90425
90426    libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
90427    if test x"$libgcrypt_config_host" != xnone ; then
90428      if test x"$libgcrypt_config_host" != x"$host" ; then
90429  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
90430***
90431*** The config script $LIBGCRYPT_CONFIG was
90432*** built for $libgcrypt_config_host and thus may not match the
90433*** used host $host.
90434*** You may want to use the configure option --with-libgcrypt-prefix
90435*** to specify a matching config script.
90436***" >&5
90437$as_echo "$as_me: WARNING:
90438***
90439*** The config script $LIBGCRYPT_CONFIG was
90440*** built for $libgcrypt_config_host and thus may not match the
90441*** used host $host.
90442*** You may want to use the configure option --with-libgcrypt-prefix
90443*** to specify a matching config script.
90444***" >&2;}
90445      fi
90446    fi
90447  else
90448    LIBGCRYPT_CFLAGS=""
90449    LIBGCRYPT_LIBS=""
90450
90451
90452pkg_failed=no
90453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
90454$as_echo_n "checking for OPENSSL... " >&6; }
90455
90456if test -n "$PKG_CONFIG"; then
90457    if test -n "$OPENSSL_CFLAGS"; then
90458        pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
90459    else
90460        if test -n "$PKG_CONFIG" && \
90461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90462  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90463  ac_status=$?
90464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90465  test $ac_status = 0; }; then
90466  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
90467else
90468  pkg_failed=yes
90469fi
90470    fi
90471else
90472	pkg_failed=untried
90473fi
90474if test -n "$PKG_CONFIG"; then
90475    if test -n "$OPENSSL_LIBS"; then
90476        pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
90477    else
90478        if test -n "$PKG_CONFIG" && \
90479    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90480  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90481  ac_status=$?
90482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90483  test $ac_status = 0; }; then
90484  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
90485else
90486  pkg_failed=yes
90487fi
90488    fi
90489else
90490	pkg_failed=untried
90491fi
90492
90493
90494
90495if test $pkg_failed = yes; then
90496
90497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90498        _pkg_short_errors_supported=yes
90499else
90500        _pkg_short_errors_supported=no
90501fi
90502        if test $_pkg_short_errors_supported = yes; then
90503	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl"`
90504        else
90505	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
90506        fi
90507	# Put the nasty error message in config.log where it belongs
90508	echo "$OPENSSL_PKG_ERRORS" >&5
90509
90510	as_fn_error $? "Package requirements (openssl) were not met:
90511
90512$OPENSSL_PKG_ERRORS
90513
90514Consider adjusting the PKG_CONFIG_PATH environment variable if you
90515installed software in a non-standard prefix.
90516
90517Alternatively, you may set the environment variables OPENSSL_CFLAGS
90518and OPENSSL_LIBS to avoid the need to call pkg-config.
90519See the pkg-config man page for more details.
90520" "$LINENO" 5
90521elif test $pkg_failed = untried; then
90522	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
90523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
90524as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
90525is in your PATH or set the PKG_CONFIG environment variable to the full
90526path to pkg-config.
90527
90528Alternatively, you may set the environment variables OPENSSL_CFLAGS
90529and OPENSSL_LIBS to avoid the need to call pkg-config.
90530See the pkg-config man page for more details.
90531
90532To get pkg-config, see <http://pkg-config.freedesktop.org/>.
90533See \`config.log' for more details" "$LINENO" 5; }
90534else
90535	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
90536	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
90537        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90538$as_echo "yes" >&6; }
90539
90540
90541$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
90542
90543
90544fi
90545
90546  fi
90547
90548
90549
90550
90551elif test $pkg_failed = untried; then
90552
90553
90554
90555# Check whether --with-libgcrypt-prefix was given.
90556if test "${with_libgcrypt_prefix+set}" = set; then :
90557  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
90558else
90559  libgcrypt_config_prefix=""
90560fi
90561
90562  if test x$libgcrypt_config_prefix != x ; then
90563     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
90564        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
90565     fi
90566  fi
90567
90568  if test -n "$ac_tool_prefix"; then
90569  # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
90570set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
90571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
90572$as_echo_n "checking for $ac_word... " >&6; }
90573if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
90574  $as_echo_n "(cached) " >&6
90575else
90576  case $LIBGCRYPT_CONFIG in
90577  [\\/]* | ?:[\\/]*)
90578  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
90579  ;;
90580  *)
90581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90582for as_dir in $PATH
90583do
90584  IFS=$as_save_IFS
90585  test -z "$as_dir" && as_dir=.
90586    for ac_exec_ext in '' $ac_executable_extensions; do
90587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90588    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
90589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90590    break 2
90591  fi
90592done
90593  done
90594IFS=$as_save_IFS
90595
90596  ;;
90597esac
90598fi
90599LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
90600if test -n "$LIBGCRYPT_CONFIG"; then
90601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
90602$as_echo "$LIBGCRYPT_CONFIG" >&6; }
90603else
90604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90605$as_echo "no" >&6; }
90606fi
90607
90608
90609fi
90610if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
90611  ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
90612  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
90613set dummy libgcrypt-config; ac_word=$2
90614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
90615$as_echo_n "checking for $ac_word... " >&6; }
90616if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
90617  $as_echo_n "(cached) " >&6
90618else
90619  case $ac_pt_LIBGCRYPT_CONFIG in
90620  [\\/]* | ?:[\\/]*)
90621  ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
90622  ;;
90623  *)
90624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90625for as_dir in $PATH
90626do
90627  IFS=$as_save_IFS
90628  test -z "$as_dir" && as_dir=.
90629    for ac_exec_ext in '' $ac_executable_extensions; do
90630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
90631    ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
90632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
90633    break 2
90634  fi
90635done
90636  done
90637IFS=$as_save_IFS
90638
90639  ;;
90640esac
90641fi
90642ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
90643if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
90644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
90645$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
90646else
90647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90648$as_echo "no" >&6; }
90649fi
90650
90651  if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
90652    LIBGCRYPT_CONFIG="no"
90653  else
90654    case $cross_compiling:$ac_tool_warned in
90655yes:)
90656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
90657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
90658ac_tool_warned=yes ;;
90659esac
90660    LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
90661  fi
90662else
90663  LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
90664fi
90665
90666  tmp=1.2.0
90667  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
90668     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
90669     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
90670  else
90671     req_libgcrypt_api=0
90672     min_libgcrypt_version="$tmp"
90673  fi
90674
90675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
90676$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
90677  ok=no
90678  if test "$LIBGCRYPT_CONFIG" != "no" ; then
90679    req_major=`echo $min_libgcrypt_version | \
90680               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
90681    req_minor=`echo $min_libgcrypt_version | \
90682               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
90683    req_micro=`echo $min_libgcrypt_version | \
90684               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
90685    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
90686    major=`echo $libgcrypt_config_version | \
90687               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
90688    minor=`echo $libgcrypt_config_version | \
90689               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
90690    micro=`echo $libgcrypt_config_version | \
90691               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
90692    if test "$major" -gt "$req_major"; then
90693        ok=yes
90694    else
90695        if test "$major" -eq "$req_major"; then
90696            if test "$minor" -gt "$req_minor"; then
90697               ok=yes
90698            else
90699               if test "$minor" -eq "$req_minor"; then
90700                   if test "$micro" -ge "$req_micro"; then
90701                     ok=yes
90702                   fi
90703               fi
90704            fi
90705        fi
90706    fi
90707  fi
90708  if test $ok = yes; then
90709    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
90710$as_echo "yes ($libgcrypt_config_version)" >&6; }
90711  else
90712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
90713$as_echo "no" >&6; }
90714  fi
90715  if test $ok = yes; then
90716     # If we have a recent libgcrypt, we should also check that the
90717     # API is compatible
90718     if test "$req_libgcrypt_api" -gt 0 ; then
90719        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
90720        if test "$tmp" -gt 0 ; then
90721           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
90722$as_echo_n "checking LIBGCRYPT API version... " >&6; }
90723           if test "$req_libgcrypt_api" -eq "$tmp" ; then
90724             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
90725$as_echo "okay" >&6; }
90726           else
90727             ok=no
90728             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
90729$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
90730           fi
90731        fi
90732     fi
90733  fi
90734  if test $ok = yes; then
90735    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
90736    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
90737
90738
90739$as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
90740
90741
90742    libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
90743    if test x"$libgcrypt_config_host" != xnone ; then
90744      if test x"$libgcrypt_config_host" != x"$host" ; then
90745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
90746***
90747*** The config script $LIBGCRYPT_CONFIG was
90748*** built for $libgcrypt_config_host and thus may not match the
90749*** used host $host.
90750*** You may want to use the configure option --with-libgcrypt-prefix
90751*** to specify a matching config script.
90752***" >&5
90753$as_echo "$as_me: WARNING:
90754***
90755*** The config script $LIBGCRYPT_CONFIG was
90756*** built for $libgcrypt_config_host and thus may not match the
90757*** used host $host.
90758*** You may want to use the configure option --with-libgcrypt-prefix
90759*** to specify a matching config script.
90760***" >&2;}
90761      fi
90762    fi
90763  else
90764    LIBGCRYPT_CFLAGS=""
90765    LIBGCRYPT_LIBS=""
90766
90767
90768pkg_failed=no
90769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
90770$as_echo_n "checking for OPENSSL... " >&6; }
90771
90772if test -n "$PKG_CONFIG"; then
90773    if test -n "$OPENSSL_CFLAGS"; then
90774        pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
90775    else
90776        if test -n "$PKG_CONFIG" && \
90777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90778  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90779  ac_status=$?
90780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90781  test $ac_status = 0; }; then
90782  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
90783else
90784  pkg_failed=yes
90785fi
90786    fi
90787else
90788	pkg_failed=untried
90789fi
90790if test -n "$PKG_CONFIG"; then
90791    if test -n "$OPENSSL_LIBS"; then
90792        pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
90793    else
90794        if test -n "$PKG_CONFIG" && \
90795    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
90796  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
90797  ac_status=$?
90798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90799  test $ac_status = 0; }; then
90800  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
90801else
90802  pkg_failed=yes
90803fi
90804    fi
90805else
90806	pkg_failed=untried
90807fi
90808
90809
90810
90811if test $pkg_failed = yes; then
90812
90813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
90814        _pkg_short_errors_supported=yes
90815else
90816        _pkg_short_errors_supported=no
90817fi
90818        if test $_pkg_short_errors_supported = yes; then
90819	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openssl"`
90820        else
90821	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
90822        fi
90823	# Put the nasty error message in config.log where it belongs
90824	echo "$OPENSSL_PKG_ERRORS" >&5
90825
90826	as_fn_error $? "Package requirements (openssl) were not met:
90827
90828$OPENSSL_PKG_ERRORS
90829
90830Consider adjusting the PKG_CONFIG_PATH environment variable if you
90831installed software in a non-standard prefix.
90832
90833Alternatively, you may set the environment variables OPENSSL_CFLAGS
90834and OPENSSL_LIBS to avoid the need to call pkg-config.
90835See the pkg-config man page for more details.
90836" "$LINENO" 5
90837elif test $pkg_failed = untried; then
90838	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
90839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
90840as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
90841is in your PATH or set the PKG_CONFIG environment variable to the full
90842path to pkg-config.
90843
90844Alternatively, you may set the environment variables OPENSSL_CFLAGS
90845and OPENSSL_LIBS to avoid the need to call pkg-config.
90846See the pkg-config man page for more details.
90847
90848To get pkg-config, see <http://pkg-config.freedesktop.org/>.
90849See \`config.log' for more details" "$LINENO" 5; }
90850else
90851	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
90852	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
90853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90854$as_echo "yes" >&6; }
90855
90856
90857$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
90858
90859
90860fi
90861
90862  fi
90863
90864
90865
90866
90867else
90868	NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
90869	NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
90870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
90871$as_echo "yes" >&6; }
90872
90873
90874$as_echo "#define HAVE_NETTLE 1" >>confdefs.h
90875
90876
90877fi
90878
90879   ;;
90880esac
90881
90882
90883  LIBS=$gst_check_save_LIBS
90884  LDFLAGS=$gst_check_save_LDFLAGS
90885  CFLAGS=$gst_check_save_CFLAGS
90886  CPPFLAGS=$gst_check_save_CPPFLAGS
90887  CXXFLAGS=$gst_check_save_CXXFLAGS
90888
90889    if test x$HAVE_HLS = xno; then
90890    USE_HLS=no
90891  else
90892    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: hls" >&5
90893$as_echo "$as_me: *** These plugins will be built: hls" >&6;}
90894  fi
90895fi
90896if test x$USE_HLS = xyes; then
90897  :
90898  if test "xhls" != "x"; then
90899    GST_PLUGINS_YES="\thls\n$GST_PLUGINS_YES"
90900  fi
90901
90902$as_echo "#define HAVE_HLS /**/" >>confdefs.h
90903
90904else
90905  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: hls" >&5
90906$as_echo "$as_me: *** These plugins will not be built: hls" >&6;}
90907  if test "xhls" != "x"; then
90908    GST_PLUGINS_NO="\thls\n$GST_PLUGINS_NO"
90909  fi
90910  :
90911fi
90912 if test x$USE_HLS = xyes; then
90913  USE_HLS_TRUE=
90914  USE_HLS_FALSE='#'
90915else
90916  USE_HLS_TRUE='#'
90917  USE_HLS_FALSE=
90918fi
90919
90920
90921
90922echo
90923{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: x265 plug-in ***" >&5
90924$as_echo "$as_me: *** checking feature: x265 plug-in ***" >&6;}
90925if test "xx265" != "x"
90926then
90927  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: x265 ***" >&5
90928$as_echo "$as_me: *** for plug-ins: x265 ***" >&6;}
90929fi
90930NOUSE=
90931if test "x$USE_X265" = "xno"; then
90932  NOUSE="yes"
90933fi
90934# Check whether --enable-x265 was given.
90935if test "${enable_x265+set}" = set; then :
90936  enableval=$enable_x265;  case "${enableval}" in
90937      yes) USE_X265=yes;;
90938      no) USE_X265=no;;
90939      *) as_fn_error $? "bad value ${enableval} for --enable-x265" "$LINENO" 5 ;;
90940    esac
90941else
90942   USE_X265=yes
90943fi
90944
90945if test "x$NOUSE" = "xyes"; then
90946  USE_X265="no"
90947  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** x265 pre-configured not to be built" >&5
90948$as_echo "$as_me: WARNING: *** x265 pre-configured not to be built" >&2;}
90949fi
90950NOUSE=
90951
90952if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " X265 " > /dev/null; then
90953  USE_X265="no"
90954  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** x265 not ported" >&5
90955$as_echo "$as_me: WARNING: *** x265 not ported" >&2;}
90956fi
90957
90958
90959if test x$USE_X265 = xyes; then
90960
90961  gst_check_save_LIBS=$LIBS
90962  gst_check_save_LDFLAGS=$LDFLAGS
90963  gst_check_save_CFLAGS=$CFLAGS
90964  gst_check_save_CPPFLAGS=$CPPFLAGS
90965  gst_check_save_CXXFLAGS=$CXXFLAGS
90966
90967  HAVE_X265=no
90968
90969
90970  which="x265"
90971    required="no"
90972
90973
90974pkg_failed=no
90975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X265" >&5
90976$as_echo_n "checking for X265... " >&6; }
90977
90978if test -n "$PKG_CONFIG"; then
90979    if test -n "$X265_CFLAGS"; then
90980        pkg_cv_X265_CFLAGS="$X265_CFLAGS"
90981    else
90982        if test -n "$PKG_CONFIG" && \
90983    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
90984  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
90985  ac_status=$?
90986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
90987  test $ac_status = 0; }; then
90988  pkg_cv_X265_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
90989else
90990  pkg_failed=yes
90991fi
90992    fi
90993else
90994	pkg_failed=untried
90995fi
90996if test -n "$PKG_CONFIG"; then
90997    if test -n "$X265_LIBS"; then
90998        pkg_cv_X265_LIBS="$X265_LIBS"
90999    else
91000        if test -n "$PKG_CONFIG" && \
91001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
91002  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
91003  ac_status=$?
91004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91005  test $ac_status = 0; }; then
91006  pkg_cv_X265_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
91007else
91008  pkg_failed=yes
91009fi
91010    fi
91011else
91012	pkg_failed=untried
91013fi
91014
91015
91016
91017if test $pkg_failed = yes; then
91018
91019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91020        _pkg_short_errors_supported=yes
91021else
91022        _pkg_short_errors_supported=no
91023fi
91024        if test $_pkg_short_errors_supported = yes; then
91025	        X265_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
91026        else
91027	        X265_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
91028        fi
91029	# Put the nasty error message in config.log where it belongs
91030	echo "$X265_PKG_ERRORS" >&5
91031
91032	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91033$as_echo "no" >&6; }
91034
91035      HAVE_X265="no"
91036      if test "x$required" = "xyes"; then
91037        as_fn_error $? "$X265_PKG_ERRORS" "$LINENO" 5
91038      else
91039        { $as_echo "$as_me:${as_lineno-$LINENO}: $X265_PKG_ERRORS" >&5
91040$as_echo "$as_me: $X265_PKG_ERRORS" >&6;}
91041      fi
91042
91043elif test $pkg_failed = untried; then
91044
91045      HAVE_X265="no"
91046      if test "x$required" = "xyes"; then
91047        as_fn_error $? "$X265_PKG_ERRORS" "$LINENO" 5
91048      else
91049        { $as_echo "$as_me:${as_lineno-$LINENO}: $X265_PKG_ERRORS" >&5
91050$as_echo "$as_me: $X265_PKG_ERRORS" >&6;}
91051      fi
91052
91053else
91054	X265_CFLAGS=$pkg_cv_X265_CFLAGS
91055	X265_LIBS=$pkg_cv_X265_LIBS
91056        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91057$as_echo "yes" >&6; }
91058
91059      HAVE_X265="yes"
91060
91061fi
91062
91063
91064
91065
91066  LIBS=$gst_check_save_LIBS
91067  LDFLAGS=$gst_check_save_LDFLAGS
91068  CFLAGS=$gst_check_save_CFLAGS
91069  CPPFLAGS=$gst_check_save_CPPFLAGS
91070  CXXFLAGS=$gst_check_save_CXXFLAGS
91071
91072    if test x$HAVE_X265 = xno; then
91073    USE_X265=no
91074  else
91075    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: x265" >&5
91076$as_echo "$as_me: *** These plugins will be built: x265" >&6;}
91077  fi
91078fi
91079if test x$USE_X265 = xyes; then
91080  :
91081  if test "xx265" != "x"; then
91082    GST_PLUGINS_YES="\tx265\n$GST_PLUGINS_YES"
91083  fi
91084
91085$as_echo "#define HAVE_X265 /**/" >>confdefs.h
91086
91087else
91088  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: x265" >&5
91089$as_echo "$as_me: *** These plugins will not be built: x265" >&6;}
91090  if test "xx265" != "x"; then
91091    GST_PLUGINS_NO="\tx265\n$GST_PLUGINS_NO"
91092  fi
91093  :
91094fi
91095 if test x$USE_X265 = xyes; then
91096  USE_X265_TRUE=
91097  USE_X265_FALSE='#'
91098else
91099  USE_X265_TRUE='#'
91100  USE_X265_FALSE=
91101fi
91102
91103
91104
91105echo
91106{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: WebRTC Audio Processing ***" >&5
91107$as_echo "$as_me: *** checking feature: WebRTC Audio Processing ***" >&6;}
91108if test "xwebrtcdsp" != "x"
91109then
91110  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: webrtcdsp ***" >&5
91111$as_echo "$as_me: *** for plug-ins: webrtcdsp ***" >&6;}
91112fi
91113NOUSE=
91114if test "x$USE_WEBRTCDSP" = "xno"; then
91115  NOUSE="yes"
91116fi
91117# Check whether --enable-webrtcdsp was given.
91118if test "${enable_webrtcdsp+set}" = set; then :
91119  enableval=$enable_webrtcdsp;  case "${enableval}" in
91120      yes) USE_WEBRTCDSP=yes;;
91121      no) USE_WEBRTCDSP=no;;
91122      *) as_fn_error $? "bad value ${enableval} for --enable-webrtcdsp" "$LINENO" 5 ;;
91123    esac
91124else
91125   USE_WEBRTCDSP=yes
91126fi
91127
91128if test "x$NOUSE" = "xyes"; then
91129  USE_WEBRTCDSP="no"
91130  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webrtcdsp pre-configured not to be built" >&5
91131$as_echo "$as_me: WARNING: *** webrtcdsp pre-configured not to be built" >&2;}
91132fi
91133NOUSE=
91134
91135if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WEBRTCDSP " > /dev/null; then
91136  USE_WEBRTCDSP="no"
91137  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webrtcdsp not ported" >&5
91138$as_echo "$as_me: WARNING: *** webrtcdsp not ported" >&2;}
91139fi
91140
91141
91142if test x$USE_WEBRTCDSP = xyes; then
91143
91144  gst_check_save_LIBS=$LIBS
91145  gst_check_save_LDFLAGS=$LDFLAGS
91146  gst_check_save_CFLAGS=$CFLAGS
91147  gst_check_save_CPPFLAGS=$CPPFLAGS
91148  gst_check_save_CXXFLAGS=$CXXFLAGS
91149
91150  HAVE_WEBRTCDSP=no
91151
91152
91153
91154  which="webrtc-audio-processing >= 0.2 webrtc-audio-processing < 0.4"
91155    required="no"
91156
91157
91158pkg_failed=no
91159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBRTCDSP" >&5
91160$as_echo_n "checking for WEBRTCDSP... " >&6; }
91161
91162if test -n "$PKG_CONFIG"; then
91163    if test -n "$WEBRTCDSP_CFLAGS"; then
91164        pkg_cv_WEBRTCDSP_CFLAGS="$WEBRTCDSP_CFLAGS"
91165    else
91166        if test -n "$PKG_CONFIG" && \
91167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
91168  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
91169  ac_status=$?
91170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91171  test $ac_status = 0; }; then
91172  pkg_cv_WEBRTCDSP_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
91173else
91174  pkg_failed=yes
91175fi
91176    fi
91177else
91178	pkg_failed=untried
91179fi
91180if test -n "$PKG_CONFIG"; then
91181    if test -n "$WEBRTCDSP_LIBS"; then
91182        pkg_cv_WEBRTCDSP_LIBS="$WEBRTCDSP_LIBS"
91183    else
91184        if test -n "$PKG_CONFIG" && \
91185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
91186  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
91187  ac_status=$?
91188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91189  test $ac_status = 0; }; then
91190  pkg_cv_WEBRTCDSP_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
91191else
91192  pkg_failed=yes
91193fi
91194    fi
91195else
91196	pkg_failed=untried
91197fi
91198
91199
91200
91201if test $pkg_failed = yes; then
91202
91203if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91204        _pkg_short_errors_supported=yes
91205else
91206        _pkg_short_errors_supported=no
91207fi
91208        if test $_pkg_short_errors_supported = yes; then
91209	        WEBRTCDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
91210        else
91211	        WEBRTCDSP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
91212        fi
91213	# Put the nasty error message in config.log where it belongs
91214	echo "$WEBRTCDSP_PKG_ERRORS" >&5
91215
91216	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91217$as_echo "no" >&6; }
91218
91219      HAVE_WEBRTCDSP="no"
91220      if test "x$required" = "xyes"; then
91221        as_fn_error $? "$WEBRTCDSP_PKG_ERRORS" "$LINENO" 5
91222      else
91223        { $as_echo "$as_me:${as_lineno-$LINENO}: $WEBRTCDSP_PKG_ERRORS" >&5
91224$as_echo "$as_me: $WEBRTCDSP_PKG_ERRORS" >&6;}
91225      fi
91226
91227elif test $pkg_failed = untried; then
91228
91229      HAVE_WEBRTCDSP="no"
91230      if test "x$required" = "xyes"; then
91231        as_fn_error $? "$WEBRTCDSP_PKG_ERRORS" "$LINENO" 5
91232      else
91233        { $as_echo "$as_me:${as_lineno-$LINENO}: $WEBRTCDSP_PKG_ERRORS" >&5
91234$as_echo "$as_me: $WEBRTCDSP_PKG_ERRORS" >&6;}
91235      fi
91236
91237else
91238	WEBRTCDSP_CFLAGS=$pkg_cv_WEBRTCDSP_CFLAGS
91239	WEBRTCDSP_LIBS=$pkg_cv_WEBRTCDSP_LIBS
91240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91241$as_echo "yes" >&6; }
91242
91243      HAVE_WEBRTCDSP="yes"
91244
91245fi
91246
91247
91248
91249  # On Android, C++ headers comes with the STL implementation
91250  case "${host}" in #(
91251  *android*) :
91252
91253
91254pkg_failed=no
91255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUSTL" >&5
91256$as_echo_n "checking for GNUSTL... " >&6; }
91257
91258if test -n "$PKG_CONFIG"; then
91259    if test -n "$GNUSTL_CFLAGS"; then
91260        pkg_cv_GNUSTL_CFLAGS="$GNUSTL_CFLAGS"
91261    else
91262        if test -n "$PKG_CONFIG" && \
91263    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnustl\""; } >&5
91264  ($PKG_CONFIG --exists --print-errors "gnustl") 2>&5
91265  ac_status=$?
91266  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91267  test $ac_status = 0; }; then
91268  pkg_cv_GNUSTL_CFLAGS=`$PKG_CONFIG --cflags "gnustl" 2>/dev/null`
91269else
91270  pkg_failed=yes
91271fi
91272    fi
91273else
91274	pkg_failed=untried
91275fi
91276if test -n "$PKG_CONFIG"; then
91277    if test -n "$GNUSTL_LIBS"; then
91278        pkg_cv_GNUSTL_LIBS="$GNUSTL_LIBS"
91279    else
91280        if test -n "$PKG_CONFIG" && \
91281    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnustl\""; } >&5
91282  ($PKG_CONFIG --exists --print-errors "gnustl") 2>&5
91283  ac_status=$?
91284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91285  test $ac_status = 0; }; then
91286  pkg_cv_GNUSTL_LIBS=`$PKG_CONFIG --libs "gnustl" 2>/dev/null`
91287else
91288  pkg_failed=yes
91289fi
91290    fi
91291else
91292	pkg_failed=untried
91293fi
91294
91295
91296
91297if test $pkg_failed = yes; then
91298
91299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91300        _pkg_short_errors_supported=yes
91301else
91302        _pkg_short_errors_supported=no
91303fi
91304        if test $_pkg_short_errors_supported = yes; then
91305	        GNUSTL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnustl"`
91306        else
91307	        GNUSTL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnustl"`
91308        fi
91309	# Put the nasty error message in config.log where it belongs
91310	echo "$GNUSTL_PKG_ERRORS" >&5
91311
91312	as_fn_error $? "Package requirements (gnustl) were not met:
91313
91314$GNUSTL_PKG_ERRORS
91315
91316Consider adjusting the PKG_CONFIG_PATH environment variable if you
91317installed software in a non-standard prefix.
91318
91319Alternatively, you may set the environment variables GNUSTL_CFLAGS
91320and GNUSTL_LIBS to avoid the need to call pkg-config.
91321See the pkg-config man page for more details.
91322" "$LINENO" 5
91323elif test $pkg_failed = untried; then
91324	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
91325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
91326as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
91327is in your PATH or set the PKG_CONFIG environment variable to the full
91328path to pkg-config.
91329
91330Alternatively, you may set the environment variables GNUSTL_CFLAGS
91331and GNUSTL_LIBS to avoid the need to call pkg-config.
91332See the pkg-config man page for more details.
91333
91334To get pkg-config, see <http://pkg-config.freedesktop.org/>.
91335See \`config.log' for more details" "$LINENO" 5; }
91336else
91337	GNUSTL_CFLAGS=$pkg_cv_GNUSTL_CFLAGS
91338	GNUSTL_LIBS=$pkg_cv_GNUSTL_LIBS
91339        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91340$as_echo "yes" >&6; }
91341
91342          WEBRTCDSP_CFLAGS="$WEBRTCDSP_CFLAGS $GNUSTL_CFLAGS"
91343          WEBRTCDSP_LIBS="$WEBRTCDSP_LIBS $GNUSTL_LIBS"
91344fi
91345       ;; #(
91346  *) :
91347     ;;
91348esac
91349
91350
91351
91352  ac_ext=cpp
91353ac_cpp='$CXXCPP $CPPFLAGS'
91354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
91355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
91356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
91357
91358  old_CPPFLAGS=$CPPFLAGS
91359  CPPFLAGS="-std=c++11 $CPPFLAGS $GNUSTL_CFLAGS"
91360  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
91361if test "x$ac_cv_header_vector" = xyes; then :
91362
91363else
91364  HAVE_WEBRTCDSP=no
91365fi
91366
91367
91368  CPPFLAGS=$old_CPPFLAGS
91369  ac_ext=c
91370ac_cpp='$CPP $CPPFLAGS'
91371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
91372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
91373ac_compiler_gnu=$ac_cv_c_compiler_gnu
91374
91375
91376
91377  LIBS=$gst_check_save_LIBS
91378  LDFLAGS=$gst_check_save_LDFLAGS
91379  CFLAGS=$gst_check_save_CFLAGS
91380  CPPFLAGS=$gst_check_save_CPPFLAGS
91381  CXXFLAGS=$gst_check_save_CXXFLAGS
91382
91383    if test x$HAVE_WEBRTCDSP = xno; then
91384    USE_WEBRTCDSP=no
91385  else
91386    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: webrtcdsp" >&5
91387$as_echo "$as_me: *** These plugins will be built: webrtcdsp" >&6;}
91388  fi
91389fi
91390if test x$USE_WEBRTCDSP = xyes; then
91391  :
91392  if test "xwebrtcdsp" != "x"; then
91393    GST_PLUGINS_YES="\twebrtcdsp\n$GST_PLUGINS_YES"
91394  fi
91395
91396$as_echo "#define HAVE_WEBRTCDSP /**/" >>confdefs.h
91397
91398else
91399  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: webrtcdsp" >&5
91400$as_echo "$as_me: *** These plugins will not be built: webrtcdsp" >&6;}
91401  if test "xwebrtcdsp" != "x"; then
91402    GST_PLUGINS_NO="\twebrtcdsp\n$GST_PLUGINS_NO"
91403  fi
91404  :
91405fi
91406 if test x$USE_WEBRTCDSP = xyes; then
91407  USE_WEBRTCDSP_TRUE=
91408  USE_WEBRTCDSP_FALSE='#'
91409else
91410  USE_WEBRTCDSP_TRUE='#'
91411  USE_WEBRTCDSP_FALSE=
91412fi
91413
91414
91415
91416echo
91417{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: WebRTC ***" >&5
91418$as_echo "$as_me: *** checking feature: WebRTC ***" >&6;}
91419if test "xwebrtc" != "x"
91420then
91421  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: webrtc ***" >&5
91422$as_echo "$as_me: *** for plug-ins: webrtc ***" >&6;}
91423fi
91424NOUSE=
91425if test "x$USE_WEBRTC" = "xno"; then
91426  NOUSE="yes"
91427fi
91428# Check whether --enable-webrtc was given.
91429if test "${enable_webrtc+set}" = set; then :
91430  enableval=$enable_webrtc;  case "${enableval}" in
91431      yes) USE_WEBRTC=yes;;
91432      no) USE_WEBRTC=no;;
91433      *) as_fn_error $? "bad value ${enableval} for --enable-webrtc" "$LINENO" 5 ;;
91434    esac
91435else
91436   USE_WEBRTC=yes
91437fi
91438
91439if test "x$NOUSE" = "xyes"; then
91440  USE_WEBRTC="no"
91441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webrtc pre-configured not to be built" >&5
91442$as_echo "$as_me: WARNING: *** webrtc pre-configured not to be built" >&2;}
91443fi
91444NOUSE=
91445
91446if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WEBRTC " > /dev/null; then
91447  USE_WEBRTC="no"
91448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** webrtc not ported" >&5
91449$as_echo "$as_me: WARNING: *** webrtc not ported" >&2;}
91450fi
91451
91452
91453if test x$USE_WEBRTC = xyes; then
91454
91455  gst_check_save_LIBS=$LIBS
91456  gst_check_save_LDFLAGS=$LDFLAGS
91457  gst_check_save_CFLAGS=$CFLAGS
91458  gst_check_save_CPPFLAGS=$CPPFLAGS
91459  gst_check_save_CXXFLAGS=$CXXFLAGS
91460
91461  HAVE_WEBRTC=no
91462
91463
91464pkg_failed=no
91465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
91466$as_echo_n "checking for NICE... " >&6; }
91467
91468if test -n "$PKG_CONFIG"; then
91469    if test -n "$NICE_CFLAGS"; then
91470        pkg_cv_NICE_CFLAGS="$NICE_CFLAGS"
91471    else
91472        if test -n "$PKG_CONFIG" && \
91473    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nice >= 0.1.14\""; } >&5
91474  ($PKG_CONFIG --exists --print-errors "nice >= 0.1.14") 2>&5
91475  ac_status=$?
91476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91477  test $ac_status = 0; }; then
91478  pkg_cv_NICE_CFLAGS=`$PKG_CONFIG --cflags "nice >= 0.1.14" 2>/dev/null`
91479else
91480  pkg_failed=yes
91481fi
91482    fi
91483else
91484	pkg_failed=untried
91485fi
91486if test -n "$PKG_CONFIG"; then
91487    if test -n "$NICE_LIBS"; then
91488        pkg_cv_NICE_LIBS="$NICE_LIBS"
91489    else
91490        if test -n "$PKG_CONFIG" && \
91491    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nice >= 0.1.14\""; } >&5
91492  ($PKG_CONFIG --exists --print-errors "nice >= 0.1.14") 2>&5
91493  ac_status=$?
91494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91495  test $ac_status = 0; }; then
91496  pkg_cv_NICE_LIBS=`$PKG_CONFIG --libs "nice >= 0.1.14" 2>/dev/null`
91497else
91498  pkg_failed=yes
91499fi
91500    fi
91501else
91502	pkg_failed=untried
91503fi
91504
91505
91506
91507if test $pkg_failed = yes; then
91508
91509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91510        _pkg_short_errors_supported=yes
91511else
91512        _pkg_short_errors_supported=no
91513fi
91514        if test $_pkg_short_errors_supported = yes; then
91515	        NICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nice >= 0.1.14"`
91516        else
91517	        NICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nice >= 0.1.14"`
91518        fi
91519	# Put the nasty error message in config.log where it belongs
91520	echo "$NICE_PKG_ERRORS" >&5
91521
91522	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91523$as_echo "no" >&6; }
91524
91525    HAVE_WEBRTC="no"
91526
91527elif test $pkg_failed = untried; then
91528
91529    HAVE_WEBRTC="no"
91530
91531else
91532	NICE_CFLAGS=$pkg_cv_NICE_CFLAGS
91533	NICE_LIBS=$pkg_cv_NICE_LIBS
91534        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91535$as_echo "yes" >&6; }
91536
91537    HAVE_WEBRTC="yes"
91538fi
91539
91540
91541  LIBS=$gst_check_save_LIBS
91542  LDFLAGS=$gst_check_save_LDFLAGS
91543  CFLAGS=$gst_check_save_CFLAGS
91544  CPPFLAGS=$gst_check_save_CPPFLAGS
91545  CXXFLAGS=$gst_check_save_CXXFLAGS
91546
91547    if test x$HAVE_WEBRTC = xno; then
91548    USE_WEBRTC=no
91549  else
91550    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: webrtc" >&5
91551$as_echo "$as_me: *** These plugins will be built: webrtc" >&6;}
91552  fi
91553fi
91554if test x$USE_WEBRTC = xyes; then
91555  :
91556  if test "xwebrtc" != "x"; then
91557    GST_PLUGINS_YES="\twebrtc\n$GST_PLUGINS_YES"
91558  fi
91559
91560$as_echo "#define HAVE_WEBRTC /**/" >>confdefs.h
91561
91562else
91563  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: webrtc" >&5
91564$as_echo "$as_me: *** These plugins will not be built: webrtc" >&6;}
91565  if test "xwebrtc" != "x"; then
91566    GST_PLUGINS_NO="\twebrtc\n$GST_PLUGINS_NO"
91567  fi
91568  :
91569fi
91570 if test x$USE_WEBRTC = xyes; then
91571  USE_WEBRTC_TRUE=
91572  USE_WEBRTC_FALSE='#'
91573else
91574  USE_WEBRTC_TRUE='#'
91575  USE_WEBRTC_FALSE=
91576fi
91577
91578
91579
91580echo
91581{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: WPE plug-in ***" >&5
91582$as_echo "$as_me: *** checking feature: WPE plug-in ***" >&6;}
91583if test "xwpe" != "x"
91584then
91585  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: wpe ***" >&5
91586$as_echo "$as_me: *** for plug-ins: wpe ***" >&6;}
91587fi
91588NOUSE=
91589if test "x$USE_WPE" = "xno"; then
91590  NOUSE="yes"
91591fi
91592# Check whether --enable-wpe was given.
91593if test "${enable_wpe+set}" = set; then :
91594  enableval=$enable_wpe;  case "${enableval}" in
91595      yes) USE_WPE=yes;;
91596      no) USE_WPE=no;;
91597      *) as_fn_error $? "bad value ${enableval} for --enable-wpe" "$LINENO" 5 ;;
91598    esac
91599else
91600   USE_WPE=yes
91601fi
91602
91603if test "x$NOUSE" = "xyes"; then
91604  USE_WPE="no"
91605  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wpe pre-configured not to be built" >&5
91606$as_echo "$as_me: WARNING: *** wpe pre-configured not to be built" >&2;}
91607fi
91608NOUSE=
91609
91610if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WPE " > /dev/null; then
91611  USE_WPE="no"
91612  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wpe not ported" >&5
91613$as_echo "$as_me: WARNING: *** wpe not ported" >&2;}
91614fi
91615
91616
91617if test x$USE_WPE = xyes; then
91618
91619  gst_check_save_LIBS=$LIBS
91620  gst_check_save_LDFLAGS=$LDFLAGS
91621  gst_check_save_CFLAGS=$CFLAGS
91622  gst_check_save_CPPFLAGS=$CPPFLAGS
91623  gst_check_save_CXXFLAGS=$CXXFLAGS
91624
91625  HAVE_WPE=no
91626
91627
91628pkg_failed=no
91629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WPE" >&5
91630$as_echo_n "checking for WPE... " >&6; }
91631
91632if test -n "$PKG_CONFIG"; then
91633    if test -n "$WPE_CFLAGS"; then
91634        pkg_cv_WPE_CFLAGS="$WPE_CFLAGS"
91635    else
91636        if test -n "$PKG_CONFIG" && \
91637    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon \""; } >&5
91638  ($PKG_CONFIG --exists --print-errors " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon ") 2>&5
91639  ac_status=$?
91640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91641  test $ac_status = 0; }; then
91642  pkg_cv_WPE_CFLAGS=`$PKG_CONFIG --cflags " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon " 2>/dev/null`
91643else
91644  pkg_failed=yes
91645fi
91646    fi
91647else
91648	pkg_failed=untried
91649fi
91650if test -n "$PKG_CONFIG"; then
91651    if test -n "$WPE_LIBS"; then
91652        pkg_cv_WPE_LIBS="$WPE_LIBS"
91653    else
91654        if test -n "$PKG_CONFIG" && \
91655    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon \""; } >&5
91656  ($PKG_CONFIG --exists --print-errors " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon ") 2>&5
91657  ac_status=$?
91658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
91659  test $ac_status = 0; }; then
91660  pkg_cv_WPE_LIBS=`$PKG_CONFIG --libs " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon " 2>/dev/null`
91661else
91662  pkg_failed=yes
91663fi
91664    fi
91665else
91666	pkg_failed=untried
91667fi
91668
91669
91670
91671if test $pkg_failed = yes; then
91672
91673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
91674        _pkg_short_errors_supported=yes
91675else
91676        _pkg_short_errors_supported=no
91677fi
91678        if test $_pkg_short_errors_supported = yes; then
91679	        WPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon "`
91680        else
91681	        WPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " wpe-webkit-1.0 >= 2.24 wpebackend-fdo-1.0 egl xkbcommon "`
91682        fi
91683	# Put the nasty error message in config.log where it belongs
91684	echo "$WPE_PKG_ERRORS" >&5
91685
91686	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
91687$as_echo "no" >&6; }
91688
91689    HAVE_WPE="no"
91690
91691elif test $pkg_failed = untried; then
91692
91693    HAVE_WPE="no"
91694
91695else
91696	WPE_CFLAGS=$pkg_cv_WPE_CFLAGS
91697	WPE_LIBS=$pkg_cv_WPE_LIBS
91698        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
91699$as_echo "yes" >&6; }
91700
91701    HAVE_WPE="yes"
91702fi
91703
91704
91705  LIBS=$gst_check_save_LIBS
91706  LDFLAGS=$gst_check_save_LDFLAGS
91707  CFLAGS=$gst_check_save_CFLAGS
91708  CPPFLAGS=$gst_check_save_CPPFLAGS
91709  CXXFLAGS=$gst_check_save_CXXFLAGS
91710
91711    if test x$HAVE_WPE = xno; then
91712    USE_WPE=no
91713  else
91714    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: wpe" >&5
91715$as_echo "$as_me: *** These plugins will be built: wpe" >&6;}
91716  fi
91717fi
91718if test x$USE_WPE = xyes; then
91719  :
91720  if test "xwpe" != "x"; then
91721    GST_PLUGINS_YES="\twpe\n$GST_PLUGINS_YES"
91722  fi
91723
91724$as_echo "#define HAVE_WPE /**/" >>confdefs.h
91725
91726else
91727  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: wpe" >&5
91728$as_echo "$as_me: *** These plugins will not be built: wpe" >&6;}
91729  if test "xwpe" != "x"; then
91730    GST_PLUGINS_NO="\twpe\n$GST_PLUGINS_NO"
91731  fi
91732  :
91733fi
91734 if test x$USE_WPE = xyes; then
91735  USE_WPE_TRUE=
91736  USE_WPE_FALSE='#'
91737else
91738  USE_WPE_TRUE='#'
91739  USE_WPE_FALSE=
91740fi
91741
91742
91743
91744echo
91745{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: sctp plug-in ***" >&5
91746$as_echo "$as_me: *** checking feature: sctp plug-in ***" >&6;}
91747if test "xsctp" != "x"
91748then
91749  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: sctp ***" >&5
91750$as_echo "$as_me: *** for plug-ins: sctp ***" >&6;}
91751fi
91752NOUSE=
91753if test "x$USE_SCTP" = "xno"; then
91754  NOUSE="yes"
91755fi
91756# Check whether --enable-sctp was given.
91757if test "${enable_sctp+set}" = set; then :
91758  enableval=$enable_sctp;  case "${enableval}" in
91759      yes) USE_SCTP=yes;;
91760      no) USE_SCTP=no;;
91761      *) as_fn_error $? "bad value ${enableval} for --enable-sctp" "$LINENO" 5 ;;
91762    esac
91763else
91764   USE_SCTP=yes
91765fi
91766
91767if test "x$NOUSE" = "xyes"; then
91768  USE_SCTP="no"
91769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sctp pre-configured not to be built" >&5
91770$as_echo "$as_me: WARNING: *** sctp pre-configured not to be built" >&2;}
91771fi
91772NOUSE=
91773
91774if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " SCTP " > /dev/null; then
91775  USE_SCTP="no"
91776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** sctp not ported" >&5
91777$as_echo "$as_me: WARNING: *** sctp not ported" >&2;}
91778fi
91779
91780
91781if test x$USE_SCTP = xyes; then
91782
91783  gst_check_save_LIBS=$LIBS
91784  gst_check_save_LDFLAGS=$LDFLAGS
91785  gst_check_save_CFLAGS=$CFLAGS
91786  gst_check_save_CPPFLAGS=$CPPFLAGS
91787  gst_check_save_CXXFLAGS=$CXXFLAGS
91788
91789  HAVE_SCTP=no
91790
91791  ac_fn_c_check_header_mongrel "$LINENO" "usrsctp.h" "ac_cv_header_usrsctp_h" "$ac_includes_default"
91792if test "x$ac_cv_header_usrsctp_h" = xyes; then :
91793
91794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usrsctp_init in -lusrsctp" >&5
91795$as_echo_n "checking for usrsctp_init in -lusrsctp... " >&6; }
91796if ${ac_cv_lib_usrsctp_usrsctp_init+:} false; then :
91797  $as_echo_n "(cached) " >&6
91798else
91799  ac_check_lib_save_LIBS=$LIBS
91800LIBS="-lusrsctp  $LIBS"
91801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91802/* end confdefs.h.  */
91803
91804/* Override any GCC internal prototype to avoid an error.
91805   Use char because int might match the return type of a GCC
91806   builtin and then its argument prototype would still apply.  */
91807#ifdef __cplusplus
91808extern "C"
91809#endif
91810char usrsctp_init ();
91811int
91812main ()
91813{
91814return usrsctp_init ();
91815  ;
91816  return 0;
91817}
91818_ACEOF
91819if ac_fn_c_try_link "$LINENO"; then :
91820  ac_cv_lib_usrsctp_usrsctp_init=yes
91821else
91822  ac_cv_lib_usrsctp_usrsctp_init=no
91823fi
91824rm -f core conftest.err conftest.$ac_objext \
91825    conftest$ac_exeext conftest.$ac_ext
91826LIBS=$ac_check_lib_save_LIBS
91827fi
91828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usrsctp_usrsctp_init" >&5
91829$as_echo "$ac_cv_lib_usrsctp_usrsctp_init" >&6; }
91830if test "x$ac_cv_lib_usrsctp_usrsctp_init" = xyes; then :
91831
91832      USRSCTP_LIBS="-lusrsctp"
91833
91834      HAVE_SCTP=yes
91835
91836else
91837
91838      HAVE_SCTP=no
91839
91840fi
91841
91842
91843else
91844
91845    HAVE_SCTP=no
91846
91847fi
91848
91849
91850
91851
91852  LIBS=$gst_check_save_LIBS
91853  LDFLAGS=$gst_check_save_LDFLAGS
91854  CFLAGS=$gst_check_save_CFLAGS
91855  CPPFLAGS=$gst_check_save_CPPFLAGS
91856  CXXFLAGS=$gst_check_save_CXXFLAGS
91857
91858    if test x$HAVE_SCTP = xno; then
91859    USE_SCTP=no
91860  else
91861    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: sctp" >&5
91862$as_echo "$as_me: *** These plugins will be built: sctp" >&6;}
91863  fi
91864fi
91865if test x$USE_SCTP = xyes; then
91866  :
91867  if test "xsctp" != "x"; then
91868    GST_PLUGINS_YES="\tsctp\n$GST_PLUGINS_YES"
91869  fi
91870
91871$as_echo "#define HAVE_SCTP /**/" >>confdefs.h
91872
91873else
91874  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: sctp" >&5
91875$as_echo "$as_me: *** These plugins will not be built: sctp" >&6;}
91876  if test "xsctp" != "x"; then
91877    GST_PLUGINS_NO="\tsctp\n$GST_PLUGINS_NO"
91878  fi
91879  :
91880fi
91881 if test x$USE_SCTP = xyes; then
91882  USE_SCTP_TRUE=
91883  USE_SCTP_FALSE='#'
91884else
91885  USE_SCTP_TRUE='#'
91886  USE_SCTP_FALSE=
91887fi
91888
91889
91890
91891else
91892
91893
91894 if false; then
91895  USE_ASSRENDER_TRUE=
91896  USE_ASSRENDER_FALSE='#'
91897else
91898  USE_ASSRENDER_TRUE='#'
91899  USE_ASSRENDER_FALSE=
91900fi
91901
91902 if false; then
91903  USE_AOM_TRUE=
91904  USE_AOM_FALSE='#'
91905else
91906  USE_AOM_TRUE='#'
91907  USE_AOM_FALSE=
91908fi
91909
91910 if false; then
91911  USE_VOAMRWBENC_TRUE=
91912  USE_VOAMRWBENC_FALSE='#'
91913else
91914  USE_VOAMRWBENC_TRUE='#'
91915  USE_VOAMRWBENC_FALSE=
91916fi
91917
91918 if false; then
91919  USE_VOAACENC_TRUE=
91920  USE_VOAACENC_FALSE='#'
91921else
91922  USE_VOAACENC_TRUE='#'
91923  USE_VOAACENC_FALSE=
91924fi
91925
91926 if false; then
91927  USE_BS2B_TRUE=
91928  USE_BS2B_FALSE='#'
91929else
91930  USE_BS2B_TRUE='#'
91931  USE_BS2B_FALSE=
91932fi
91933
91934 if false; then
91935  USE_BZ2_TRUE=
91936  USE_BZ2_FALSE='#'
91937else
91938  USE_BZ2_TRUE='#'
91939  USE_BZ2_FALSE=
91940fi
91941
91942 if false; then
91943  USE_CHROMAPRINT_TRUE=
91944  USE_CHROMAPRINT_FALSE='#'
91945else
91946  USE_CHROMAPRINT_TRUE='#'
91947  USE_CHROMAPRINT_FALSE=
91948fi
91949
91950 if false; then
91951  USE_CURL_TRUE=
91952  USE_CURL_FALSE='#'
91953else
91954  USE_CURL_TRUE='#'
91955  USE_CURL_FALSE=
91956fi
91957
91958 if false; then
91959  USE_SSH2_TRUE=
91960  USE_SSH2_FALSE='#'
91961else
91962  USE_SSH2_TRUE='#'
91963  USE_SSH2_FALSE=
91964fi
91965
91966 if false; then
91967  USE_DASH_TRUE=
91968  USE_DASH_FALSE='#'
91969else
91970  USE_DASH_TRUE='#'
91971  USE_DASH_FALSE=
91972fi
91973
91974 if false; then
91975  USE_DC1394_TRUE=
91976  USE_DC1394_FALSE='#'
91977else
91978  USE_DC1394_TRUE='#'
91979  USE_DC1394_FALSE=
91980fi
91981
91982 if false; then
91983  USE_DECKLINK_TRUE=
91984  USE_DECKLINK_FALSE='#'
91985else
91986  USE_DECKLINK_TRUE='#'
91987  USE_DECKLINK_FALSE=
91988fi
91989
91990 if false; then
91991  DECKLINK_OSX_TRUE=
91992  DECKLINK_OSX_FALSE='#'
91993else
91994  DECKLINK_OSX_TRUE='#'
91995  DECKLINK_OSX_FALSE=
91996fi
91997
91998 if false; then
91999  DECKLINK_WIN_TRUE=
92000  DECKLINK_WIN_FALSE='#'
92001else
92002  DECKLINK_WIN_TRUE='#'
92003  DECKLINK_WIN_FALSE=
92004fi
92005
92006 if false; then
92007  USE_DIRECTFB_TRUE=
92008  USE_DIRECTFB_FALSE='#'
92009else
92010  USE_DIRECTFB_TRUE='#'
92011  USE_DIRECTFB_FALSE=
92012fi
92013
92014 if false; then
92015  USE_WAYLAND_TRUE=
92016  USE_WAYLAND_FALSE='#'
92017else
92018  USE_WAYLAND_TRUE='#'
92019  USE_WAYLAND_FALSE=
92020fi
92021
92022 if false; then
92023  USE_DTS_TRUE=
92024  USE_DTS_FALSE='#'
92025else
92026  USE_DTS_TRUE='#'
92027  USE_DTS_FALSE=
92028fi
92029
92030 if false; then
92031  USE_EXIF_TRUE=
92032  USE_EXIF_FALSE='#'
92033else
92034  USE_EXIF_TRUE='#'
92035  USE_EXIF_FALSE=
92036fi
92037
92038 if false; then
92039  USE_RESINDVD_TRUE=
92040  USE_RESINDVD_FALSE='#'
92041else
92042  USE_RESINDVD_TRUE='#'
92043  USE_RESINDVD_FALSE=
92044fi
92045
92046 if false; then
92047  USE_FAAC_TRUE=
92048  USE_FAAC_FALSE='#'
92049else
92050  USE_FAAC_TRUE='#'
92051  USE_FAAC_FALSE=
92052fi
92053
92054 if false; then
92055  USE_FAAD_TRUE=
92056  USE_FAAD_FALSE='#'
92057else
92058  USE_FAAD_TRUE='#'
92059  USE_FAAD_FALSE=
92060fi
92061
92062 if false; then
92063  USE_FBDEV_TRUE=
92064  USE_FBDEV_FALSE='#'
92065else
92066  USE_FBDEV_TRUE='#'
92067  USE_FBDEV_FALSE=
92068fi
92069
92070 if false; then
92071  USE_FDK_AAC_TRUE=
92072  USE_FDK_AAC_FALSE='#'
92073else
92074  USE_FDK_AAC_TRUE='#'
92075  USE_FDK_AAC_FALSE=
92076fi
92077
92078 if false; then
92079  USE_FLITE_TRUE=
92080  USE_FLITE_FALSE='#'
92081else
92082  USE_FLITE_TRUE='#'
92083  USE_FLITE_FALSE=
92084fi
92085
92086 if false; then
92087  USE_FLUIDSYNTH_TRUE=
92088  USE_FLUIDSYNTH_FALSE='#'
92089else
92090  USE_FLUIDSYNTH_TRUE='#'
92091  USE_FLUIDSYNTH_FALSE=
92092fi
92093
92094 if false; then
92095  USE_GL_TRUE=
92096  USE_GL_FALSE='#'
92097else
92098  USE_GL_TRUE='#'
92099  USE_GL_FALSE=
92100fi
92101
92102 if false; then
92103  USE_GSM_TRUE=
92104  USE_GSM_FALSE='#'
92105else
92106  USE_GSM_TRUE='#'
92107  USE_GSM_FALSE=
92108fi
92109
92110 if false; then
92111  USE_HLS_TRUE=
92112  USE_HLS_FALSE='#'
92113else
92114  USE_HLS_TRUE='#'
92115  USE_HLS_FALSE=
92116fi
92117
92118 if false; then
92119  USE_IQA_TRUE=
92120  USE_IQA_FALSE='#'
92121else
92122  USE_IQA_TRUE='#'
92123  USE_IQA_FALSE=
92124fi
92125
92126 if false; then
92127  USE_KATE_TRUE=
92128  USE_KATE_FALSE='#'
92129else
92130  USE_KATE_TRUE='#'
92131  USE_KATE_FALSE=
92132fi
92133
92134 if false; then
92135  USE_KMS_TRUE=
92136  USE_KMS_FALSE='#'
92137else
92138  USE_KMS_TRUE='#'
92139  USE_KMS_FALSE=
92140fi
92141
92142 if false; then
92143  USE_TIGER_TRUE=
92144  USE_TIGER_FALSE='#'
92145else
92146  USE_TIGER_TRUE='#'
92147  USE_TIGER_FALSE=
92148fi
92149
92150 if false; then
92151  USE_LADSPA_TRUE=
92152  USE_LADSPA_FALSE='#'
92153else
92154  USE_LADSPA_TRUE='#'
92155  USE_LADSPA_FALSE=
92156fi
92157
92158 if false; then
92159  USE_LCMS2_TRUE=
92160  USE_LCMS2_FALSE='#'
92161else
92162  USE_LCMS2_TRUE='#'
92163  USE_LCMS2_FALSE=
92164fi
92165
92166 if false; then
92167  USE_LV2_TRUE=
92168  USE_LV2_FALSE='#'
92169else
92170  USE_LV2_TRUE='#'
92171  USE_LV2_FALSE=
92172fi
92173
92174 if false; then
92175  USE_LIBDE265_TRUE=
92176  USE_LIBDE265_FALSE='#'
92177else
92178  USE_LIBDE265_TRUE='#'
92179  USE_LIBDE265_FALSE=
92180fi
92181
92182 if false; then
92183  USE_LIBMMS_TRUE=
92184  USE_LIBMMS_FALSE='#'
92185else
92186  USE_LIBMMS_TRUE='#'
92187  USE_LIBMMS_FALSE=
92188fi
92189
92190 if false; then
92191  USE_MODPLUG_TRUE=
92192  USE_MODPLUG_FALSE='#'
92193else
92194  USE_MODPLUG_TRUE='#'
92195  USE_MODPLUG_FALSE=
92196fi
92197
92198 if false; then
92199  USE_MPEG2ENC_TRUE=
92200  USE_MPEG2ENC_FALSE='#'
92201else
92202  USE_MPEG2ENC_TRUE='#'
92203  USE_MPEG2ENC_FALSE=
92204fi
92205
92206 if false; then
92207  USE_MPLEX_TRUE=
92208  USE_MPLEX_FALSE='#'
92209else
92210  USE_MPLEX_TRUE='#'
92211  USE_MPLEX_FALSE=
92212fi
92213
92214 if false; then
92215  USE_MUSEPACK_TRUE=
92216  USE_MUSEPACK_FALSE='#'
92217else
92218  USE_MUSEPACK_TRUE='#'
92219  USE_MUSEPACK_FALSE=
92220fi
92221
92222 if false; then
92223  USE_NEON_TRUE=
92224  USE_NEON_FALSE='#'
92225else
92226  USE_NEON_TRUE='#'
92227  USE_NEON_FALSE=
92228fi
92229
92230 if false; then
92231  USE_OFA_TRUE=
92232  USE_OFA_FALSE='#'
92233else
92234  USE_OFA_TRUE='#'
92235  USE_OFA_FALSE=
92236fi
92237
92238 if false; then
92239  USE_OPENAL_TRUE=
92240  USE_OPENAL_FALSE='#'
92241else
92242  USE_OPENAL_TRUE='#'
92243  USE_OPENAL_FALSE=
92244fi
92245
92246 if false; then
92247  USE_OPENCV_TRUE=
92248  USE_OPENCV_FALSE='#'
92249else
92250  USE_OPENCV_TRUE='#'
92251  USE_OPENCV_FALSE=
92252fi
92253
92254 if false; then
92255  USE_OPENEXR_TRUE=
92256  USE_OPENEXR_FALSE='#'
92257else
92258  USE_OPENEXR_TRUE='#'
92259  USE_OPENEXR_FALSE=
92260fi
92261
92262 if false; then
92263  USE_OPENGL_TRUE=
92264  USE_OPENGL_FALSE='#'
92265else
92266  USE_OPENGL_TRUE='#'
92267  USE_OPENGL_FALSE=
92268fi
92269
92270 if false; then
92271  USE_OPENJPEG_TRUE=
92272  USE_OPENJPEG_FALSE='#'
92273else
92274  USE_OPENJPEG_TRUE='#'
92275  USE_OPENJPEG_FALSE=
92276fi
92277
92278 if false; then
92279  USE_OPENMPT_TRUE=
92280  USE_OPENMPT_FALSE='#'
92281else
92282  USE_OPENMPT_TRUE='#'
92283  USE_OPENMPT_FALSE=
92284fi
92285
92286 if false; then
92287  USE_OPENNI2_TRUE=
92288  USE_OPENNI2_FALSE='#'
92289else
92290  USE_OPENNI2_TRUE='#'
92291  USE_OPENNI2_FALSE=
92292fi
92293
92294 if false; then
92295  USE_OPUS_TRUE=
92296  USE_OPUS_FALSE='#'
92297else
92298  USE_OPUS_TRUE='#'
92299  USE_OPUS_FALSE=
92300fi
92301
92302 if false; then
92303  USE_PANGO_TRUE=
92304  USE_PANGO_FALSE='#'
92305else
92306  USE_PANGO_TRUE='#'
92307  USE_PANGO_FALSE=
92308fi
92309
92310 if false; then
92311  USE_WILDMIDI_TRUE=
92312  USE_WILDMIDI_FALSE='#'
92313else
92314  USE_WILDMIDI_TRUE='#'
92315  USE_WILDMIDI_FALSE=
92316fi
92317
92318 if false; then
92319  USE_SMOOTHSTREAMING_TRUE=
92320  USE_SMOOTHSTREAMING_FALSE='#'
92321else
92322  USE_SMOOTHSTREAMING_TRUE='#'
92323  USE_SMOOTHSTREAMING_FALSE=
92324fi
92325
92326 if false; then
92327  USE_SNDFILE_TRUE=
92328  USE_SNDFILE_FALSE='#'
92329else
92330  USE_SNDFILE_TRUE='#'
92331  USE_SNDFILE_FALSE=
92332fi
92333
92334 if false; then
92335  USE_SOUNDTOUCH_TRUE=
92336  USE_SOUNDTOUCH_FALSE='#'
92337else
92338  USE_SOUNDTOUCH_TRUE='#'
92339  USE_SOUNDTOUCH_FALSE=
92340fi
92341
92342 if false; then
92343  USE_SPANDSP_TRUE=
92344  USE_SPANDSP_FALSE='#'
92345else
92346  USE_SPANDSP_TRUE='#'
92347  USE_SPANDSP_FALSE=
92348fi
92349
92350 if false; then
92351  USE_SRTP_TRUE=
92352  USE_SRTP_FALSE='#'
92353else
92354  USE_SRTP_TRUE='#'
92355  USE_SRTP_FALSE=
92356fi
92357
92358 if false; then
92359  USE_SRT_TRUE=
92360  USE_SRT_FALSE='#'
92361else
92362  USE_SRT_TRUE='#'
92363  USE_SRT_FALSE=
92364fi
92365
92366 if false; then
92367  USE_GME_TRUE=
92368  USE_GME_FALSE='#'
92369else
92370  USE_GME_TRUE='#'
92371  USE_GME_FALSE=
92372fi
92373
92374 if false; then
92375  USE_DVB_TRUE=
92376  USE_DVB_FALSE='#'
92377else
92378  USE_DVB_TRUE='#'
92379  USE_DVB_FALSE=
92380fi
92381
92382 if false; then
92383  USE_VDPAU_TRUE=
92384  USE_VDPAU_FALSE='#'
92385else
92386  USE_VDPAU_TRUE='#'
92387  USE_VDPAU_FALSE=
92388fi
92389
92390 if false; then
92391  USE_SBC_TRUE=
92392  USE_SBC_FALSE='#'
92393else
92394  USE_SBC_TRUE='#'
92395  USE_SBC_FALSE=
92396fi
92397
92398 if false; then
92399  USE_ZBAR_TRUE=
92400  USE_ZBAR_FALSE='#'
92401else
92402  USE_ZBAR_TRUE='#'
92403  USE_ZBAR_FALSE=
92404fi
92405
92406 if false; then
92407  USE_RSVG_TRUE=
92408  USE_RSVG_FALSE='#'
92409else
92410  USE_RSVG_TRUE='#'
92411  USE_RSVG_FALSE=
92412fi
92413
92414 if false; then
92415  USE_RTMP_TRUE=
92416  USE_RTMP_FALSE='#'
92417else
92418  USE_RTMP_TRUE='#'
92419  USE_RTMP_FALSE=
92420fi
92421
92422 if false; then
92423  USE_TELETEXTDEC_TRUE=
92424  USE_TELETEXTDEC_FALSE='#'
92425else
92426  USE_TELETEXTDEC_TRUE='#'
92427  USE_TELETEXTDEC_FALSE=
92428fi
92429
92430 if false; then
92431  USE_UVCH264_TRUE=
92432  USE_UVCH264_FALSE='#'
92433else
92434  USE_UVCH264_TRUE='#'
92435  USE_UVCH264_FALSE=
92436fi
92437
92438 if false; then
92439  USE_WEBP_TRUE=
92440  USE_WEBP_FALSE='#'
92441else
92442  USE_WEBP_TRUE='#'
92443  USE_WEBP_FALSE=
92444fi
92445
92446 if false; then
92447  USE_WEBRTC_TRUE=
92448  USE_WEBRTC_FALSE='#'
92449else
92450  USE_WEBRTC_TRUE='#'
92451  USE_WEBRTC_FALSE=
92452fi
92453
92454 if false; then
92455  USE_WEBRTCDSP_TRUE=
92456  USE_WEBRTCDSP_FALSE='#'
92457else
92458  USE_WEBRTCDSP_TRUE='#'
92459  USE_WEBRTCDSP_FALSE=
92460fi
92461
92462 if false; then
92463  USE_OPENH264_TRUE=
92464  USE_OPENH264_FALSE='#'
92465else
92466  USE_OPENH264_TRUE='#'
92467  USE_OPENH264_FALSE=
92468fi
92469
92470 if false; then
92471  USE_X265_TRUE=
92472  USE_X265_FALSE='#'
92473else
92474  USE_X265_TRUE='#'
92475  USE_X265_FALSE=
92476fi
92477
92478 if false; then
92479  USE_DTLS_TRUE=
92480  USE_DTLS_FALSE='#'
92481else
92482  USE_DTLS_TRUE='#'
92483  USE_DTLS_FALSE=
92484fi
92485
92486 if false; then
92487  USE_VULKAN_TRUE=
92488  USE_VULKAN_FALSE='#'
92489else
92490  USE_VULKAN_TRUE='#'
92491  USE_VULKAN_FALSE=
92492fi
92493
92494 if false; then
92495  USE_TTML_TRUE=
92496  USE_TTML_FALSE='#'
92497else
92498  USE_TTML_TRUE='#'
92499  USE_TTML_FALSE=
92500fi
92501
92502 if false; then
92503  USE_SCTP_TRUE=
92504  USE_SCTP_FALSE='#'
92505else
92506  USE_SCTP_TRUE='#'
92507  USE_SCTP_FALSE=
92508fi
92509
92510
92511fi
92512
92513
92514if test "x$USE_DEBUG" = xyes; then
92515   PROFILE_CFLAGS="-g"
92516fi
92517
92518
92519if test "x$PACKAGE_VERSION_NANO" = "x1"; then
92520    DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
92521else
92522  DEPRECATED_CFLAGS=""
92523fi
92524
92525
92526VISIBILITY_CFLAGS=""
92527
92528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fvisibility=hidden" >&5
92529$as_echo_n "checking to see if compiler understands -fvisibility=hidden... " >&6; }
92530
92531  save_CFLAGS="$CFLAGS"
92532  CFLAGS="$CFLAGS -fvisibility=hidden"
92533
92534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92535/* end confdefs.h.  */
92536
92537int
92538main ()
92539{
92540
92541  ;
92542  return 0;
92543}
92544_ACEOF
92545if ac_fn_c_try_compile "$LINENO"; then :
92546  flag_ok=yes
92547else
92548  flag_ok=no
92549fi
92550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92551  CFLAGS="$save_CFLAGS"
92552
92553  if test "X$flag_ok" = Xyes ; then
92554
92555  VISIBILITY_CFLAGS="-fvisibility=hidden"
92556
92557$as_echo "#define GST_API_EXPORT extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
92558
92559
92560    true
92561  else
92562
92563  VISIBILITY_CFLAGS=""
92564
92565$as_echo "#define GST_API_EXPORT extern" >>confdefs.h
92566
92567
92568    true
92569  fi
92570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
92571$as_echo "$flag_ok" >&6; }
92572
92573
92574
92575VISIBILITY_CXXFLAGS=""
92576if test "x$HAVE_CXX" = "xyes"; then
92577
92578
92579
92580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -fvisibility=hidden" >&5
92581$as_echo_n "checking to see if c++ compiler understands -fvisibility=hidden... " >&6; }
92582
92583  save_CPPFLAGS="$CPPFLAGS"
92584  CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
92585
92586  ac_ext=cpp
92587ac_cpp='$CXXCPP $CPPFLAGS'
92588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
92589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
92590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
92591
92592
92593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92594/* end confdefs.h.  */
92595
92596int
92597main ()
92598{
92599
92600  ;
92601  return 0;
92602}
92603_ACEOF
92604if ac_fn_cxx_try_compile "$LINENO"; then :
92605  flag_ok=yes
92606else
92607  flag_ok=no
92608fi
92609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92610  CPPFLAGS="$save_CPPFLAGS"
92611
92612  if test "X$flag_ok" = Xyes ; then
92613    VISIBILITY_CXXFLAGS="-fvisibility=hidden"
92614    true
92615  else
92616
92617    true
92618  fi
92619
92620  ac_ext=c
92621ac_cpp='$CPP $CPPFLAGS'
92622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
92623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
92624ac_compiler_gnu=$ac_cv_c_compiler_gnu
92625
92626
92627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
92628$as_echo "$flag_ok" >&6; }
92629
92630fi
92631
92632
92633
92634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5
92635$as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; }
92636
92637  save_CFLAGS="$CFLAGS"
92638  CFLAGS="$CFLAGS -fno-strict-aliasing"
92639
92640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92641/* end confdefs.h.  */
92642
92643int
92644main ()
92645{
92646
92647  ;
92648  return 0;
92649}
92650_ACEOF
92651if ac_fn_c_try_compile "$LINENO"; then :
92652  flag_ok=yes
92653else
92654  flag_ok=no
92655fi
92656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92657  CFLAGS="$save_CFLAGS"
92658
92659  if test "X$flag_ok" = Xyes ; then
92660    EXTRA_CFLAGS="-fno-strict-aliasing"
92661    true
92662  else
92663
92664    true
92665  fi
92666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
92667$as_echo "$flag_ok" >&6; }
92668
92669
92670
92671GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
92672GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
92673GST_OPTION_OBJCFLAGS="\$(WARNING_OBJCFLAGS) \$(ERROR_OBJCFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
92674
92675
92676
92677
92678GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS -DGST_USE_UNSTABLE_API"
92679GST_CXXFLAGS="$GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
92680GST_OBJCFLAGS="$GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_OBJCFLAGS) \$(VISIBILITY_CFLAGS)"
92681GST_CFLAGS="$GST_CFLAGS $EXTRA_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)"
92682
92683
92684
92685
92686GST_PLUGINS_BAD_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
92687GST_PLUGINS_BAD_OBJCFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
92688GST_PLUGINS_BAD_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
92689
92690
92691
92692
92693GST_ALL_LDFLAGS="-no-undefined"
92694if test "x${enable_Bsymbolic}" = "xyes"; then
92695  GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
92696fi
92697
92698
92699GST_LIB_LDFLAGS=""
92700
92701
92702GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_ALL_LDFLAGS"
92703
92704
92705
92706$MKDIR_P tests/check/orc
92707
92708
92709ac_config_files="$ac_config_files Makefile common/Makefile common/m4/Makefile gst/Makefile gst/accurip/Makefile gst/adpcmdec/Makefile gst/adpcmenc/Makefile gst/aiff/Makefile gst/videoframe_audiolevel/Makefile gst/asfmux/Makefile gst/audiobuffersplit/Makefile gst/audiofxbad/Makefile gst/audiolatency/Makefile gst/audiomixmatrix/Makefile gst/audiovisualizers/Makefile gst/autoconvert/Makefile gst/bayer/Makefile gst/camerabin2/Makefile gst/coloreffects/Makefile gst/debugutils/Makefile gst/dvbsuboverlay/Makefile gst/dvdspu/Makefile gst/faceoverlay/Makefile gst/festival/Makefile gst/fieldanalysis/Makefile gst/freeverb/Makefile gst/frei0r/Makefile gst/gaudieffects/Makefile gst/geometrictransform/Makefile gst/gdp/Makefile gst/id3tag/Makefile gst/inter/Makefile gst/interlace/Makefile gst/ivfparse/Makefile gst/ivtc/Makefile gst/jp2kdecimator/Makefile gst/jpegformat/Makefile gst/librfb/Makefile gst/midi/Makefile gst/mpegdemux/Makefile gst/mpegtsdemux/Makefile gst/mpegtsmux/Makefile gst/mpegtsmux/tsmux/Makefile gst/mpegpsmux/Makefile gst/mxf/Makefile gst/netsim/Makefile gst/onvif/Makefile gst/pcapparse/Makefile gst/pnm/Makefile gst/proxy/Makefile gst/rawparse/Makefile gst/removesilence/Makefile gst/sdp/Makefile gst/segmentclip/Makefile gst/siren/Makefile gst/smooth/Makefile gst/speed/Makefile gst/subenc/Makefile gst/timecode/Makefile gst/videofilters/Makefile gst/videoparsers/Makefile gst/videosignal/Makefile gst/vmnc/Makefile gst/y4m/Makefile gst/yadif/Makefile gst-libs/Makefile gst-libs/gst/Makefile gst-libs/gst/adaptivedemux/Makefile gst-libs/gst/basecamerabinsrc/Makefile gst-libs/gst/insertbin/Makefile gst-libs/gst/interfaces/Makefile gst-libs/gst/isoff/Makefile gst-libs/gst/codecparsers/Makefile gst-libs/gst/mpegts/Makefile gst-libs/gst/sctp/Makefile gst-libs/gst/uridownloader/Makefile gst-libs/gst/wayland/Makefile gst-libs/gst/webrtc/Makefile gst-libs/gst/player/Makefile gst-libs/gst/audio/Makefile gst-libs/gst/opencv/Makefile sys/Makefile sys/dshowdecwrapper/Makefile sys/androidmedia/Makefile sys/applemedia/Makefile sys/bluez/Makefile sys/d3dvideosink/Makefile sys/decklink/Makefile sys/directsound/Makefile sys/dshowsrcwrapper/Makefile sys/dshowvideosink/Makefile sys/dvb/Makefile sys/fbdev/Makefile sys/ipcpipeline/Makefile sys/kms/Makefile sys/msdk/Makefile sys/nvdec/Makefile sys/nvenc/Makefile sys/opensles/Makefile sys/shm/Makefile sys/tinyalsa/Makefile sys/uvch264/Makefile sys/vdpau/Makefile sys/wasapi/Makefile sys/winks/Makefile sys/winscreencap/Makefile tests/Makefile tests/check/Makefile tests/files/Makefile tests/examples/Makefile tests/examples/avsamplesink/Makefile tests/examples/camerabin2/Makefile tests/examples/codecparsers/Makefile tests/examples/directfb/Makefile tests/examples/audiomixmatrix/Makefile tests/examples/ipcpipeline/Makefile tests/examples/mpegts/Makefile tests/examples/mxf/Makefile tests/examples/opencv/Makefile tests/examples/uvch264/Makefile tests/examples/waylandsink/Makefile tests/examples/webrtc/Makefile tests/icles/Makefile ext/voamrwbenc/Makefile ext/voaacenc/Makefile ext/assrender/Makefile ext/aom/Makefile ext/bs2b/Makefile ext/bz2/Makefile ext/chromaprint/Makefile ext/closedcaption/Makefile ext/colormanagement/Makefile ext/curl/Makefile ext/dash/Makefile ext/dc1394/Makefile ext/directfb/Makefile ext/wayland/Makefile ext/dts/Makefile ext/faac/Makefile ext/faad/Makefile ext/fdkaac/Makefile ext/flite/Makefile ext/fluidsynth/Makefile ext/gsm/Makefile ext/hls/Makefile ext/iqa/Makefile ext/kate/Makefile ext/ladspa/Makefile ext/lv2/Makefile ext/libde265/Makefile ext/libmms/Makefile ext/Makefile ext/modplug/Makefile ext/mpeg2enc/Makefile ext/mplex/Makefile ext/musepack/Makefile ext/neon/Makefile ext/ofa/Makefile ext/openal/Makefile ext/opencv/Makefile ext/openexr/Makefile ext/openh264/Makefile ext/openjpeg/Makefile ext/openmpt/Makefile ext/openni2/Makefile ext/opus/Makefile ext/rsvg/Makefile ext/resindvd/Makefile ext/rtmp/Makefile ext/sbc/Makefile ext/sctp/Makefile ext/smoothstreaming/Makefile ext/sndfile/Makefile ext/soundtouch/Makefile ext/spandsp/Makefile ext/srt/Makefile ext/srtp/Makefile ext/teletextdec/Makefile ext/gme/Makefile ext/wildmidi/Makefile ext/vulkan/Makefile ext/vulkan/xcb/Makefile ext/vulkan/wayland/Makefile ext/webp/Makefile ext/x265/Makefile ext/zbar/Makefile ext/dtls/Makefile ext/webrtc/Makefile ext/webrtcdsp/Makefile ext/wpe/Makefile ext/ttml/Makefile po/Makefile.in docs/Makefile docs/plugins/Makefile docs/libs/Makefile docs/version.entities pkgconfig/Makefile pkgconfig/gstreamer-plugins-bad.pc pkgconfig/gstreamer-plugins-bad-uninstalled.pc pkgconfig/gstreamer-codecparsers.pc pkgconfig/gstreamer-codecparsers-uninstalled.pc pkgconfig/gstreamer-insertbin.pc pkgconfig/gstreamer-insertbin-uninstalled.pc pkgconfig/gstreamer-mpegts.pc pkgconfig/gstreamer-mpegts-uninstalled.pc pkgconfig/gstreamer-player.pc pkgconfig/gstreamer-player-uninstalled.pc pkgconfig/gstreamer-sctp.pc pkgconfig/gstreamer-sctp-uninstalled.pc pkgconfig/gstreamer-wayland.pc pkgconfig/gstreamer-wayland-uninstalled.pc pkgconfig/gstreamer-webrtc.pc pkgconfig/gstreamer-webrtc-uninstalled.pc pkgconfig/gstreamer-bad-audio.pc pkgconfig/gstreamer-bad-audio-uninstalled.pc tools/Makefile m4/Makefile"
92710
92711
92712cat >confcache <<\_ACEOF
92713# This file is a shell script that caches the results of configure
92714# tests run on this system so they can be shared between configure
92715# scripts and configure runs, see configure's option --config-cache.
92716# It is not useful on other systems.  If it contains results you don't
92717# want to keep, you may remove or edit it.
92718#
92719# config.status only pays attention to the cache file if you give it
92720# the --recheck option to rerun configure.
92721#
92722# `ac_cv_env_foo' variables (set or unset) will be overridden when
92723# loading this file, other *unset* `ac_cv_foo' will be assigned the
92724# following values.
92725
92726_ACEOF
92727
92728# The following way of writing the cache mishandles newlines in values,
92729# but we know of no workaround that is simple, portable, and efficient.
92730# So, we kill variables containing newlines.
92731# Ultrix sh set writes to stderr and can't be redirected directly,
92732# and sets the high bit in the cache file unless we assign to the vars.
92733(
92734  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
92735    eval ac_val=\$$ac_var
92736    case $ac_val in #(
92737    *${as_nl}*)
92738      case $ac_var in #(
92739      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
92740$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
92741      esac
92742      case $ac_var in #(
92743      _ | IFS | as_nl) ;; #(
92744      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
92745      *) { eval $ac_var=; unset $ac_var;} ;;
92746      esac ;;
92747    esac
92748  done
92749
92750  (set) 2>&1 |
92751    case $as_nl`(ac_space=' '; set) 2>&1` in #(
92752    *${as_nl}ac_space=\ *)
92753      # `set' does not quote correctly, so add quotes: double-quote
92754      # substitution turns \\\\ into \\, and sed turns \\ into \.
92755      sed -n \
92756	"s/'/'\\\\''/g;
92757	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
92758      ;; #(
92759    *)
92760      # `set' quotes correctly as required by POSIX, so do not add quotes.
92761      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
92762      ;;
92763    esac |
92764    sort
92765) |
92766  sed '
92767     /^ac_cv_env_/b end
92768     t clear
92769     :clear
92770     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
92771     t end
92772     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
92773     :end' >>confcache
92774if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
92775  if test -w "$cache_file"; then
92776    if test "x$cache_file" != "x/dev/null"; then
92777      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
92778$as_echo "$as_me: updating cache $cache_file" >&6;}
92779      if test ! -f "$cache_file" || test -h "$cache_file"; then
92780	cat confcache >"$cache_file"
92781      else
92782        case $cache_file in #(
92783        */* | ?:*)
92784	  mv -f confcache "$cache_file"$$ &&
92785	  mv -f "$cache_file"$$ "$cache_file" ;; #(
92786        *)
92787	  mv -f confcache "$cache_file" ;;
92788	esac
92789      fi
92790    fi
92791  else
92792    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
92793$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
92794  fi
92795fi
92796rm -f confcache
92797
92798test "x$prefix" = xNONE && prefix=$ac_default_prefix
92799# Let make expand exec_prefix.
92800test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92801
92802DEFS=-DHAVE_CONFIG_H
92803
92804ac_libobjs=
92805ac_ltlibobjs=
92806U=
92807for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
92808  # 1. Remove the extension, and $U if already installed.
92809  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
92810  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
92811  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
92812  #    will be set to the directory where LIBOBJS objects are built.
92813  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
92814  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
92815done
92816LIBOBJS=$ac_libobjs
92817
92818LTLIBOBJS=$ac_ltlibobjs
92819
92820
92821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
92822$as_echo_n "checking that generated files are newer than configure... " >&6; }
92823   if test -n "$am_sleep_pid"; then
92824     # Hide warnings about reused PIDs.
92825     wait $am_sleep_pid 2>/dev/null
92826   fi
92827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
92828$as_echo "done" >&6; }
92829 if test -n "$EXEEXT"; then
92830  am__EXEEXT_TRUE=
92831  am__EXEEXT_FALSE='#'
92832else
92833  am__EXEEXT_TRUE='#'
92834  am__EXEEXT_FALSE=
92835fi
92836
92837if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
92838  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
92839Usually this means the macro was only invoked conditionally." "$LINENO" 5
92840fi
92841if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
92842  as_fn_error $? "conditional \"AMDEP\" was never defined.
92843Usually this means the macro was only invoked conditionally." "$LINENO" 5
92844fi
92845if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
92846  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
92847Usually this means the macro was only invoked conditionally." "$LINENO" 5
92848fi
92849if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then
92850  as_fn_error $? "conditional \"GST_GCOV_ENABLED\" was never defined.
92851Usually this means the macro was only invoked conditionally." "$LINENO" 5
92852fi
92853if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
92854  as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
92855Usually this means the macro was only invoked conditionally." "$LINENO" 5
92856fi
92857if test -z "${USE_EXTERNAL_TRUE}" && test -z "${USE_EXTERNAL_FALSE}"; then
92858  as_fn_error $? "conditional \"USE_EXTERNAL\" was never defined.
92859Usually this means the macro was only invoked conditionally." "$LINENO" 5
92860fi
92861if test -z "${BUILD_EXTERNAL_TRUE}" && test -z "${BUILD_EXTERNAL_FALSE}"; then
92862  as_fn_error $? "conditional \"BUILD_EXTERNAL\" was never defined.
92863Usually this means the macro was only invoked conditionally." "$LINENO" 5
92864fi
92865if test -z "${USE_EXPERIMENTAL_TRUE}" && test -z "${USE_EXPERIMENTAL_FALSE}"; then
92866  as_fn_error $? "conditional \"USE_EXPERIMENTAL\" was never defined.
92867Usually this means the macro was only invoked conditionally." "$LINENO" 5
92868fi
92869if test -z "${BUILD_EXPERIMENTAL_TRUE}" && test -z "${BUILD_EXPERIMENTAL_FALSE}"; then
92870  as_fn_error $? "conditional \"BUILD_EXPERIMENTAL\" was never defined.
92871Usually this means the macro was only invoked conditionally." "$LINENO" 5
92872fi
92873
92874if test -z "${HAVE_CPU_I386_TRUE}" && test -z "${HAVE_CPU_I386_FALSE}"; then
92875  as_fn_error $? "conditional \"HAVE_CPU_I386\" was never defined.
92876Usually this means the macro was only invoked conditionally." "$LINENO" 5
92877fi
92878if test -z "${HAVE_CPU_PPC_TRUE}" && test -z "${HAVE_CPU_PPC_FALSE}"; then
92879  as_fn_error $? "conditional \"HAVE_CPU_PPC\" was never defined.
92880Usually this means the macro was only invoked conditionally." "$LINENO" 5
92881fi
92882if test -z "${HAVE_CPU_PPC64_TRUE}" && test -z "${HAVE_CPU_PPC64_FALSE}"; then
92883  as_fn_error $? "conditional \"HAVE_CPU_PPC64\" was never defined.
92884Usually this means the macro was only invoked conditionally." "$LINENO" 5
92885fi
92886if test -z "${HAVE_CPU_ALPHA_TRUE}" && test -z "${HAVE_CPU_ALPHA_FALSE}"; then
92887  as_fn_error $? "conditional \"HAVE_CPU_ALPHA\" was never defined.
92888Usually this means the macro was only invoked conditionally." "$LINENO" 5
92889fi
92890if test -z "${HAVE_CPU_ARC_TRUE}" && test -z "${HAVE_CPU_ARC_FALSE}"; then
92891  as_fn_error $? "conditional \"HAVE_CPU_ARC\" was never defined.
92892Usually this means the macro was only invoked conditionally." "$LINENO" 5
92893fi
92894if test -z "${HAVE_CPU_ARM_TRUE}" && test -z "${HAVE_CPU_ARM_FALSE}"; then
92895  as_fn_error $? "conditional \"HAVE_CPU_ARM\" was never defined.
92896Usually this means the macro was only invoked conditionally." "$LINENO" 5
92897fi
92898if test -z "${HAVE_CPU_SPARC_TRUE}" && test -z "${HAVE_CPU_SPARC_FALSE}"; then
92899  as_fn_error $? "conditional \"HAVE_CPU_SPARC\" was never defined.
92900Usually this means the macro was only invoked conditionally." "$LINENO" 5
92901fi
92902if test -z "${HAVE_CPU_HPPA_TRUE}" && test -z "${HAVE_CPU_HPPA_FALSE}"; then
92903  as_fn_error $? "conditional \"HAVE_CPU_HPPA\" was never defined.
92904Usually this means the macro was only invoked conditionally." "$LINENO" 5
92905fi
92906if test -z "${HAVE_CPU_MIPS_TRUE}" && test -z "${HAVE_CPU_MIPS_FALSE}"; then
92907  as_fn_error $? "conditional \"HAVE_CPU_MIPS\" was never defined.
92908Usually this means the macro was only invoked conditionally." "$LINENO" 5
92909fi
92910if test -z "${HAVE_CPU_S390_TRUE}" && test -z "${HAVE_CPU_S390_FALSE}"; then
92911  as_fn_error $? "conditional \"HAVE_CPU_S390\" was never defined.
92912Usually this means the macro was only invoked conditionally." "$LINENO" 5
92913fi
92914if test -z "${HAVE_CPU_IA64_TRUE}" && test -z "${HAVE_CPU_IA64_FALSE}"; then
92915  as_fn_error $? "conditional \"HAVE_CPU_IA64\" was never defined.
92916Usually this means the macro was only invoked conditionally." "$LINENO" 5
92917fi
92918if test -z "${HAVE_CPU_M68K_TRUE}" && test -z "${HAVE_CPU_M68K_FALSE}"; then
92919  as_fn_error $? "conditional \"HAVE_CPU_M68K\" was never defined.
92920Usually this means the macro was only invoked conditionally." "$LINENO" 5
92921fi
92922if test -z "${HAVE_CPU_X86_64_TRUE}" && test -z "${HAVE_CPU_X86_64_FALSE}"; then
92923  as_fn_error $? "conditional \"HAVE_CPU_X86_64\" was never defined.
92924Usually this means the macro was only invoked conditionally." "$LINENO" 5
92925fi
92926if test -z "${HAVE_CPU_CRIS_TRUE}" && test -z "${HAVE_CPU_CRIS_FALSE}"; then
92927  as_fn_error $? "conditional \"HAVE_CPU_CRIS\" was never defined.
92928Usually this means the macro was only invoked conditionally." "$LINENO" 5
92929fi
92930if test -z "${HAVE_CPU_CRISV32_TRUE}" && test -z "${HAVE_CPU_CRISV32_FALSE}"; then
92931  as_fn_error $? "conditional \"HAVE_CPU_CRISV32\" was never defined.
92932Usually this means the macro was only invoked conditionally." "$LINENO" 5
92933fi
92934
92935if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
92936  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
92937Usually this means the macro was only invoked conditionally." "$LINENO" 5
92938fi
92939if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
92940  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
92941Usually this means the macro was only invoked conditionally." "$LINENO" 5
92942fi
92943if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
92944  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
92945Usually this means the macro was only invoked conditionally." "$LINENO" 5
92946fi
92947if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
92948  as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
92949Usually this means the macro was only invoked conditionally." "$LINENO" 5
92950fi
92951if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
92952  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
92953Usually this means the macro was only invoked conditionally." "$LINENO" 5
92954fi
92955if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
92956  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
92957Usually this means the macro was only invoked conditionally." "$LINENO" 5
92958fi
92959if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
92960  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
92961Usually this means the macro was only invoked conditionally." "$LINENO" 5
92962fi
92963if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
92964  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
92965Usually this means the macro was only invoked conditionally." "$LINENO" 5
92966fi
92967if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
92968  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
92969Usually this means the macro was only invoked conditionally." "$LINENO" 5
92970fi
92971if test -z "${ENABLE_PLUGIN_DOCS_TRUE}" && test -z "${ENABLE_PLUGIN_DOCS_FALSE}"; then
92972  as_fn_error $? "conditional \"ENABLE_PLUGIN_DOCS\" was never defined.
92973Usually this means the macro was only invoked conditionally." "$LINENO" 5
92974fi
92975if test -z "${HAVE_UNISTD_H_TRUE}" && test -z "${HAVE_UNISTD_H_FALSE}"; then
92976  as_fn_error $? "conditional \"HAVE_UNISTD_H\" was never defined.
92977Usually this means the macro was only invoked conditionally." "$LINENO" 5
92978fi
92979if test -z "${HAVE_PTHREAD_H_TRUE}" && test -z "${HAVE_PTHREAD_H_FALSE}"; then
92980  as_fn_error $? "conditional \"HAVE_PTHREAD_H\" was never defined.
92981Usually this means the macro was only invoked conditionally." "$LINENO" 5
92982fi
92983if test -z "${USE_OPENGL_TRUE}" && test -z "${USE_OPENGL_FALSE}"; then
92984  as_fn_error $? "conditional \"USE_OPENGL\" was never defined.
92985Usually this means the macro was only invoked conditionally." "$LINENO" 5
92986fi
92987if test -z "${HAVE_GST_CHECK_TRUE}" && test -z "${HAVE_GST_CHECK_FALSE}"; then
92988  as_fn_error $? "conditional \"HAVE_GST_CHECK\" was never defined.
92989Usually this means the macro was only invoked conditionally." "$LINENO" 5
92990fi
92991if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
92992  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
92993Usually this means the macro was only invoked conditionally." "$LINENO" 5
92994fi
92995if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then
92996  as_fn_error $? "conditional \"HAVE_GTK3\" was never defined.
92997Usually this means the macro was only invoked conditionally." "$LINENO" 5
92998fi
92999if test -z "${HAVE_GTK3_WAYLAND_TRUE}" && test -z "${HAVE_GTK3_WAYLAND_FALSE}"; then
93000  as_fn_error $? "conditional \"HAVE_GTK3_WAYLAND\" was never defined.
93001Usually this means the macro was only invoked conditionally." "$LINENO" 5
93002fi
93003if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
93004  as_fn_error $? "conditional \"HAVE_X11\" was never defined.
93005Usually this means the macro was only invoked conditionally." "$LINENO" 5
93006fi
93007if test -z "${USE_EXIF_TRUE}" && test -z "${USE_EXIF_FALSE}"; then
93008  as_fn_error $? "conditional \"USE_EXIF\" was never defined.
93009Usually this means the macro was only invoked conditionally." "$LINENO" 5
93010fi
93011if test -z "${USE_IQA_TRUE}" && test -z "${USE_IQA_FALSE}"; then
93012  as_fn_error $? "conditional \"USE_IQA\" was never defined.
93013Usually this means the macro was only invoked conditionally." "$LINENO" 5
93014fi
93015if test -z "${HAVE_DSSIM_TRUE}" && test -z "${HAVE_DSSIM_FALSE}"; then
93016  as_fn_error $? "conditional \"HAVE_DSSIM\" was never defined.
93017Usually this means the macro was only invoked conditionally." "$LINENO" 5
93018fi
93019if test -z "${HAVE_ORC_TRUE}" && test -z "${HAVE_ORC_FALSE}"; then
93020  as_fn_error $? "conditional \"HAVE_ORC\" was never defined.
93021Usually this means the macro was only invoked conditionally." "$LINENO" 5
93022fi
93023if test -z "${HAVE_ORCC_TRUE}" && test -z "${HAVE_ORCC_FALSE}"; then
93024  as_fn_error $? "conditional \"HAVE_ORCC\" was never defined.
93025Usually this means the macro was only invoked conditionally." "$LINENO" 5
93026fi
93027if test -z "${WITH_GST_PLAYER_TESTS_TRUE}" && test -z "${WITH_GST_PLAYER_TESTS_FALSE}"; then
93028  as_fn_error $? "conditional \"WITH_GST_PLAYER_TESTS\" was never defined.
93029Usually this means the macro was only invoked conditionally." "$LINENO" 5
93030fi
93031if test -z "${USE_PLUGIN_ACCURIP_TRUE}" && test -z "${USE_PLUGIN_ACCURIP_FALSE}"; then
93032  as_fn_error $? "conditional \"USE_PLUGIN_ACCURIP\" was never defined.
93033Usually this means the macro was only invoked conditionally." "$LINENO" 5
93034fi
93035if test -z "${USE_PLUGIN_ADPCMDEC_TRUE}" && test -z "${USE_PLUGIN_ADPCMDEC_FALSE}"; then
93036  as_fn_error $? "conditional \"USE_PLUGIN_ADPCMDEC\" was never defined.
93037Usually this means the macro was only invoked conditionally." "$LINENO" 5
93038fi
93039if test -z "${USE_PLUGIN_ADPCMENC_TRUE}" && test -z "${USE_PLUGIN_ADPCMENC_FALSE}"; then
93040  as_fn_error $? "conditional \"USE_PLUGIN_ADPCMENC\" was never defined.
93041Usually this means the macro was only invoked conditionally." "$LINENO" 5
93042fi
93043if test -z "${USE_PLUGIN_AIFF_TRUE}" && test -z "${USE_PLUGIN_AIFF_FALSE}"; then
93044  as_fn_error $? "conditional \"USE_PLUGIN_AIFF\" was never defined.
93045Usually this means the macro was only invoked conditionally." "$LINENO" 5
93046fi
93047if test -z "${USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_TRUE}" && test -z "${USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL_FALSE}"; then
93048  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOFRAME_AUDIOLEVEL\" was never defined.
93049Usually this means the macro was only invoked conditionally." "$LINENO" 5
93050fi
93051if test -z "${USE_PLUGIN_ASFMUX_TRUE}" && test -z "${USE_PLUGIN_ASFMUX_FALSE}"; then
93052  as_fn_error $? "conditional \"USE_PLUGIN_ASFMUX\" was never defined.
93053Usually this means the macro was only invoked conditionally." "$LINENO" 5
93054fi
93055if test -z "${USE_PLUGIN_AUDIOBUFFERSPLIT_TRUE}" && test -z "${USE_PLUGIN_AUDIOBUFFERSPLIT_FALSE}"; then
93056  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOBUFFERSPLIT\" was never defined.
93057Usually this means the macro was only invoked conditionally." "$LINENO" 5
93058fi
93059if test -z "${USE_PLUGIN_AUDIOFXBAD_TRUE}" && test -z "${USE_PLUGIN_AUDIOFXBAD_FALSE}"; then
93060  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOFXBAD\" was never defined.
93061Usually this means the macro was only invoked conditionally." "$LINENO" 5
93062fi
93063if test -z "${USE_PLUGIN_AUDIOLATENCY_TRUE}" && test -z "${USE_PLUGIN_AUDIOLATENCY_FALSE}"; then
93064  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOLATENCY\" was never defined.
93065Usually this means the macro was only invoked conditionally." "$LINENO" 5
93066fi
93067if test -z "${USE_PLUGIN_AUDIOMIXMATRIX_TRUE}" && test -z "${USE_PLUGIN_AUDIOMIXMATRIX_FALSE}"; then
93068  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOMIXMATRIX\" was never defined.
93069Usually this means the macro was only invoked conditionally." "$LINENO" 5
93070fi
93071if test -z "${USE_PLUGIN_AUDIOVISUALIZERS_TRUE}" && test -z "${USE_PLUGIN_AUDIOVISUALIZERS_FALSE}"; then
93072  as_fn_error $? "conditional \"USE_PLUGIN_AUDIOVISUALIZERS\" was never defined.
93073Usually this means the macro was only invoked conditionally." "$LINENO" 5
93074fi
93075if test -z "${USE_PLUGIN_AUTOCONVERT_TRUE}" && test -z "${USE_PLUGIN_AUTOCONVERT_FALSE}"; then
93076  as_fn_error $? "conditional \"USE_PLUGIN_AUTOCONVERT\" was never defined.
93077Usually this means the macro was only invoked conditionally." "$LINENO" 5
93078fi
93079if test -z "${USE_PLUGIN_BAYER_TRUE}" && test -z "${USE_PLUGIN_BAYER_FALSE}"; then
93080  as_fn_error $? "conditional \"USE_PLUGIN_BAYER\" was never defined.
93081Usually this means the macro was only invoked conditionally." "$LINENO" 5
93082fi
93083if test -z "${USE_PLUGIN_CAMERABIN2_TRUE}" && test -z "${USE_PLUGIN_CAMERABIN2_FALSE}"; then
93084  as_fn_error $? "conditional \"USE_PLUGIN_CAMERABIN2\" was never defined.
93085Usually this means the macro was only invoked conditionally." "$LINENO" 5
93086fi
93087if test -z "${USE_PLUGIN_COLOREFFECTS_TRUE}" && test -z "${USE_PLUGIN_COLOREFFECTS_FALSE}"; then
93088  as_fn_error $? "conditional \"USE_PLUGIN_COLOREFFECTS\" was never defined.
93089Usually this means the macro was only invoked conditionally." "$LINENO" 5
93090fi
93091if test -z "${USE_PLUGIN_DEBUGUTILS_TRUE}" && test -z "${USE_PLUGIN_DEBUGUTILS_FALSE}"; then
93092  as_fn_error $? "conditional \"USE_PLUGIN_DEBUGUTILS\" was never defined.
93093Usually this means the macro was only invoked conditionally." "$LINENO" 5
93094fi
93095if test -z "${USE_PLUGIN_DVBSUBOVERLAY_TRUE}" && test -z "${USE_PLUGIN_DVBSUBOVERLAY_FALSE}"; then
93096  as_fn_error $? "conditional \"USE_PLUGIN_DVBSUBOVERLAY\" was never defined.
93097Usually this means the macro was only invoked conditionally." "$LINENO" 5
93098fi
93099if test -z "${USE_PLUGIN_DVDSPU_TRUE}" && test -z "${USE_PLUGIN_DVDSPU_FALSE}"; then
93100  as_fn_error $? "conditional \"USE_PLUGIN_DVDSPU\" was never defined.
93101Usually this means the macro was only invoked conditionally." "$LINENO" 5
93102fi
93103if test -z "${USE_PLUGIN_FACEOVERLAY_TRUE}" && test -z "${USE_PLUGIN_FACEOVERLAY_FALSE}"; then
93104  as_fn_error $? "conditional \"USE_PLUGIN_FACEOVERLAY\" was never defined.
93105Usually this means the macro was only invoked conditionally." "$LINENO" 5
93106fi
93107if test -z "${USE_PLUGIN_FESTIVAL_TRUE}" && test -z "${USE_PLUGIN_FESTIVAL_FALSE}"; then
93108  as_fn_error $? "conditional \"USE_PLUGIN_FESTIVAL\" was never defined.
93109Usually this means the macro was only invoked conditionally." "$LINENO" 5
93110fi
93111if test -z "${USE_PLUGIN_FIELDANALYSIS_TRUE}" && test -z "${USE_PLUGIN_FIELDANALYSIS_FALSE}"; then
93112  as_fn_error $? "conditional \"USE_PLUGIN_FIELDANALYSIS\" was never defined.
93113Usually this means the macro was only invoked conditionally." "$LINENO" 5
93114fi
93115if test -z "${USE_PLUGIN_FREEVERB_TRUE}" && test -z "${USE_PLUGIN_FREEVERB_FALSE}"; then
93116  as_fn_error $? "conditional \"USE_PLUGIN_FREEVERB\" was never defined.
93117Usually this means the macro was only invoked conditionally." "$LINENO" 5
93118fi
93119if test -z "${USE_PLUGIN_FREI0R_TRUE}" && test -z "${USE_PLUGIN_FREI0R_FALSE}"; then
93120  as_fn_error $? "conditional \"USE_PLUGIN_FREI0R\" was never defined.
93121Usually this means the macro was only invoked conditionally." "$LINENO" 5
93122fi
93123if test -z "${USE_PLUGIN_GAUDIEFFECTS_TRUE}" && test -z "${USE_PLUGIN_GAUDIEFFECTS_FALSE}"; then
93124  as_fn_error $? "conditional \"USE_PLUGIN_GAUDIEFFECTS\" was never defined.
93125Usually this means the macro was only invoked conditionally." "$LINENO" 5
93126fi
93127if test -z "${USE_PLUGIN_GEOMETRICTRANSFORM_TRUE}" && test -z "${USE_PLUGIN_GEOMETRICTRANSFORM_FALSE}"; then
93128  as_fn_error $? "conditional \"USE_PLUGIN_GEOMETRICTRANSFORM\" was never defined.
93129Usually this means the macro was only invoked conditionally." "$LINENO" 5
93130fi
93131if test -z "${USE_PLUGIN_GDP_TRUE}" && test -z "${USE_PLUGIN_GDP_FALSE}"; then
93132  as_fn_error $? "conditional \"USE_PLUGIN_GDP\" was never defined.
93133Usually this means the macro was only invoked conditionally." "$LINENO" 5
93134fi
93135if test -z "${USE_PLUGIN_ID3TAG_TRUE}" && test -z "${USE_PLUGIN_ID3TAG_FALSE}"; then
93136  as_fn_error $? "conditional \"USE_PLUGIN_ID3TAG\" was never defined.
93137Usually this means the macro was only invoked conditionally." "$LINENO" 5
93138fi
93139if test -z "${USE_PLUGIN_INTER_TRUE}" && test -z "${USE_PLUGIN_INTER_FALSE}"; then
93140  as_fn_error $? "conditional \"USE_PLUGIN_INTER\" was never defined.
93141Usually this means the macro was only invoked conditionally." "$LINENO" 5
93142fi
93143if test -z "${USE_PLUGIN_INTERLACE_TRUE}" && test -z "${USE_PLUGIN_INTERLACE_FALSE}"; then
93144  as_fn_error $? "conditional \"USE_PLUGIN_INTERLACE\" was never defined.
93145Usually this means the macro was only invoked conditionally." "$LINENO" 5
93146fi
93147if test -z "${USE_PLUGIN_IVFPARSE_TRUE}" && test -z "${USE_PLUGIN_IVFPARSE_FALSE}"; then
93148  as_fn_error $? "conditional \"USE_PLUGIN_IVFPARSE\" was never defined.
93149Usually this means the macro was only invoked conditionally." "$LINENO" 5
93150fi
93151if test -z "${USE_PLUGIN_IVTC_TRUE}" && test -z "${USE_PLUGIN_IVTC_FALSE}"; then
93152  as_fn_error $? "conditional \"USE_PLUGIN_IVTC\" was never defined.
93153Usually this means the macro was only invoked conditionally." "$LINENO" 5
93154fi
93155if test -z "${USE_PLUGIN_JP2KDECIMATOR_TRUE}" && test -z "${USE_PLUGIN_JP2KDECIMATOR_FALSE}"; then
93156  as_fn_error $? "conditional \"USE_PLUGIN_JP2KDECIMATOR\" was never defined.
93157Usually this means the macro was only invoked conditionally." "$LINENO" 5
93158fi
93159if test -z "${USE_PLUGIN_JPEGFORMAT_TRUE}" && test -z "${USE_PLUGIN_JPEGFORMAT_FALSE}"; then
93160  as_fn_error $? "conditional \"USE_PLUGIN_JPEGFORMAT\" was never defined.
93161Usually this means the macro was only invoked conditionally." "$LINENO" 5
93162fi
93163if test -z "${USE_PLUGIN_LIBRFB_TRUE}" && test -z "${USE_PLUGIN_LIBRFB_FALSE}"; then
93164  as_fn_error $? "conditional \"USE_PLUGIN_LIBRFB\" was never defined.
93165Usually this means the macro was only invoked conditionally." "$LINENO" 5
93166fi
93167if test -z "${USE_PLUGIN_MIDI_TRUE}" && test -z "${USE_PLUGIN_MIDI_FALSE}"; then
93168  as_fn_error $? "conditional \"USE_PLUGIN_MIDI\" was never defined.
93169Usually this means the macro was only invoked conditionally." "$LINENO" 5
93170fi
93171if test -z "${USE_PLUGIN_MPEGDEMUX_TRUE}" && test -z "${USE_PLUGIN_MPEGDEMUX_FALSE}"; then
93172  as_fn_error $? "conditional \"USE_PLUGIN_MPEGDEMUX\" was never defined.
93173Usually this means the macro was only invoked conditionally." "$LINENO" 5
93174fi
93175if test -z "${USE_PLUGIN_MPEGTSDEMUX_TRUE}" && test -z "${USE_PLUGIN_MPEGTSDEMUX_FALSE}"; then
93176  as_fn_error $? "conditional \"USE_PLUGIN_MPEGTSDEMUX\" was never defined.
93177Usually this means the macro was only invoked conditionally." "$LINENO" 5
93178fi
93179if test -z "${USE_PLUGIN_MPEGTSMUX_TRUE}" && test -z "${USE_PLUGIN_MPEGTSMUX_FALSE}"; then
93180  as_fn_error $? "conditional \"USE_PLUGIN_MPEGTSMUX\" was never defined.
93181Usually this means the macro was only invoked conditionally." "$LINENO" 5
93182fi
93183if test -z "${USE_PLUGIN_MPEGPSMUX_TRUE}" && test -z "${USE_PLUGIN_MPEGPSMUX_FALSE}"; then
93184  as_fn_error $? "conditional \"USE_PLUGIN_MPEGPSMUX\" was never defined.
93185Usually this means the macro was only invoked conditionally." "$LINENO" 5
93186fi
93187if test -z "${USE_PLUGIN_MXF_TRUE}" && test -z "${USE_PLUGIN_MXF_FALSE}"; then
93188  as_fn_error $? "conditional \"USE_PLUGIN_MXF\" was never defined.
93189Usually this means the macro was only invoked conditionally." "$LINENO" 5
93190fi
93191if test -z "${USE_PLUGIN_NETSIM_TRUE}" && test -z "${USE_PLUGIN_NETSIM_FALSE}"; then
93192  as_fn_error $? "conditional \"USE_PLUGIN_NETSIM\" was never defined.
93193Usually this means the macro was only invoked conditionally." "$LINENO" 5
93194fi
93195if test -z "${USE_PLUGIN_ONVIF_TRUE}" && test -z "${USE_PLUGIN_ONVIF_FALSE}"; then
93196  as_fn_error $? "conditional \"USE_PLUGIN_ONVIF\" was never defined.
93197Usually this means the macro was only invoked conditionally." "$LINENO" 5
93198fi
93199if test -z "${USE_PLUGIN_PCAPPARSE_TRUE}" && test -z "${USE_PLUGIN_PCAPPARSE_FALSE}"; then
93200  as_fn_error $? "conditional \"USE_PLUGIN_PCAPPARSE\" was never defined.
93201Usually this means the macro was only invoked conditionally." "$LINENO" 5
93202fi
93203if test -z "${USE_PLUGIN_PNM_TRUE}" && test -z "${USE_PLUGIN_PNM_FALSE}"; then
93204  as_fn_error $? "conditional \"USE_PLUGIN_PNM\" was never defined.
93205Usually this means the macro was only invoked conditionally." "$LINENO" 5
93206fi
93207if test -z "${USE_PLUGIN_PROXY_TRUE}" && test -z "${USE_PLUGIN_PROXY_FALSE}"; then
93208  as_fn_error $? "conditional \"USE_PLUGIN_PROXY\" was never defined.
93209Usually this means the macro was only invoked conditionally." "$LINENO" 5
93210fi
93211if test -z "${USE_PLUGIN_RAWPARSE_TRUE}" && test -z "${USE_PLUGIN_RAWPARSE_FALSE}"; then
93212  as_fn_error $? "conditional \"USE_PLUGIN_RAWPARSE\" was never defined.
93213Usually this means the macro was only invoked conditionally." "$LINENO" 5
93214fi
93215if test -z "${USE_PLUGIN_REMOVESILENCE_TRUE}" && test -z "${USE_PLUGIN_REMOVESILENCE_FALSE}"; then
93216  as_fn_error $? "conditional \"USE_PLUGIN_REMOVESILENCE\" was never defined.
93217Usually this means the macro was only invoked conditionally." "$LINENO" 5
93218fi
93219if test -z "${USE_PLUGIN_SDP_TRUE}" && test -z "${USE_PLUGIN_SDP_FALSE}"; then
93220  as_fn_error $? "conditional \"USE_PLUGIN_SDP\" was never defined.
93221Usually this means the macro was only invoked conditionally." "$LINENO" 5
93222fi
93223if test -z "${USE_PLUGIN_SEGMENTCLIP_TRUE}" && test -z "${USE_PLUGIN_SEGMENTCLIP_FALSE}"; then
93224  as_fn_error $? "conditional \"USE_PLUGIN_SEGMENTCLIP\" was never defined.
93225Usually this means the macro was only invoked conditionally." "$LINENO" 5
93226fi
93227if test -z "${USE_PLUGIN_SIREN_TRUE}" && test -z "${USE_PLUGIN_SIREN_FALSE}"; then
93228  as_fn_error $? "conditional \"USE_PLUGIN_SIREN\" was never defined.
93229Usually this means the macro was only invoked conditionally." "$LINENO" 5
93230fi
93231if test -z "${USE_PLUGIN_SMOOTH_TRUE}" && test -z "${USE_PLUGIN_SMOOTH_FALSE}"; then
93232  as_fn_error $? "conditional \"USE_PLUGIN_SMOOTH\" was never defined.
93233Usually this means the macro was only invoked conditionally." "$LINENO" 5
93234fi
93235if test -z "${USE_PLUGIN_SPEED_TRUE}" && test -z "${USE_PLUGIN_SPEED_FALSE}"; then
93236  as_fn_error $? "conditional \"USE_PLUGIN_SPEED\" was never defined.
93237Usually this means the macro was only invoked conditionally." "$LINENO" 5
93238fi
93239if test -z "${USE_PLUGIN_SUBENC_TRUE}" && test -z "${USE_PLUGIN_SUBENC_FALSE}"; then
93240  as_fn_error $? "conditional \"USE_PLUGIN_SUBENC\" was never defined.
93241Usually this means the macro was only invoked conditionally." "$LINENO" 5
93242fi
93243if test -z "${USE_PLUGIN_TIMECODE_TRUE}" && test -z "${USE_PLUGIN_TIMECODE_FALSE}"; then
93244  as_fn_error $? "conditional \"USE_PLUGIN_TIMECODE\" was never defined.
93245Usually this means the macro was only invoked conditionally." "$LINENO" 5
93246fi
93247if test -z "${USE_PLUGIN_VIDEOFILTERS_TRUE}" && test -z "${USE_PLUGIN_VIDEOFILTERS_FALSE}"; then
93248  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOFILTERS\" was never defined.
93249Usually this means the macro was only invoked conditionally." "$LINENO" 5
93250fi
93251if test -z "${USE_PLUGIN_VIDEOPARSERS_TRUE}" && test -z "${USE_PLUGIN_VIDEOPARSERS_FALSE}"; then
93252  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOPARSERS\" was never defined.
93253Usually this means the macro was only invoked conditionally." "$LINENO" 5
93254fi
93255if test -z "${USE_PLUGIN_VIDEOSIGNAL_TRUE}" && test -z "${USE_PLUGIN_VIDEOSIGNAL_FALSE}"; then
93256  as_fn_error $? "conditional \"USE_PLUGIN_VIDEOSIGNAL\" was never defined.
93257Usually this means the macro was only invoked conditionally." "$LINENO" 5
93258fi
93259if test -z "${USE_PLUGIN_VMNC_TRUE}" && test -z "${USE_PLUGIN_VMNC_FALSE}"; then
93260  as_fn_error $? "conditional \"USE_PLUGIN_VMNC\" was never defined.
93261Usually this means the macro was only invoked conditionally." "$LINENO" 5
93262fi
93263if test -z "${USE_PLUGIN_Y4M_TRUE}" && test -z "${USE_PLUGIN_Y4M_FALSE}"; then
93264  as_fn_error $? "conditional \"USE_PLUGIN_Y4M\" was never defined.
93265Usually this means the macro was only invoked conditionally." "$LINENO" 5
93266fi
93267if test -z "${USE_PLUGIN_YADIF_TRUE}" && test -z "${USE_PLUGIN_YADIF_FALSE}"; then
93268  as_fn_error $? "conditional \"USE_PLUGIN_YADIF\" was never defined.
93269Usually this means the macro was only invoked conditionally." "$LINENO" 5
93270fi
93271if test -z "${HAVE_AVFOUNDATION_TRUE}" && test -z "${HAVE_AVFOUNDATION_FALSE}"; then
93272  as_fn_error $? "conditional \"HAVE_AVFOUNDATION\" was never defined.
93273Usually this means the macro was only invoked conditionally." "$LINENO" 5
93274fi
93275if test -z "${HAVE_IOS_TRUE}" && test -z "${HAVE_IOS_FALSE}"; then
93276  as_fn_error $? "conditional \"HAVE_IOS\" was never defined.
93277Usually this means the macro was only invoked conditionally." "$LINENO" 5
93278fi
93279if test -z "${HAVE_VIDEOTOOLBOX_TRUE}" && test -z "${HAVE_VIDEOTOOLBOX_FALSE}"; then
93280  as_fn_error $? "conditional \"HAVE_VIDEOTOOLBOX\" was never defined.
93281Usually this means the macro was only invoked conditionally." "$LINENO" 5
93282fi
93283if test -z "${USE_XCB_TRUE}" && test -z "${USE_XCB_FALSE}"; then
93284  as_fn_error $? "conditional \"USE_XCB\" was never defined.
93285Usually this means the macro was only invoked conditionally." "$LINENO" 5
93286fi
93287if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
93288  as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
93289Usually this means the macro was only invoked conditionally." "$LINENO" 5
93290fi
93291if test -z "${USE_DIRECTSOUND_TRUE}" && test -z "${USE_DIRECTSOUND_FALSE}"; then
93292  as_fn_error $? "conditional \"USE_DIRECTSOUND\" was never defined.
93293Usually this means the macro was only invoked conditionally." "$LINENO" 5
93294fi
93295if test -z "${USE_WASAPI_TRUE}" && test -z "${USE_WASAPI_FALSE}"; then
93296  as_fn_error $? "conditional \"USE_WASAPI\" was never defined.
93297Usually this means the macro was only invoked conditionally." "$LINENO" 5
93298fi
93299if test -z "${USE_DIRECT3D_TRUE}" && test -z "${USE_DIRECT3D_FALSE}"; then
93300  as_fn_error $? "conditional \"USE_DIRECT3D\" was never defined.
93301Usually this means the macro was only invoked conditionally." "$LINENO" 5
93302fi
93303if test -z "${USE_WINSCREENCAP_TRUE}" && test -z "${USE_WINSCREENCAP_FALSE}"; then
93304  as_fn_error $? "conditional \"USE_WINSCREENCAP\" was never defined.
93305Usually this means the macro was only invoked conditionally." "$LINENO" 5
93306fi
93307if test -z "${USE_WINKS_TRUE}" && test -z "${USE_WINKS_FALSE}"; then
93308  as_fn_error $? "conditional \"USE_WINKS\" was never defined.
93309Usually this means the macro was only invoked conditionally." "$LINENO" 5
93310fi
93311if test -z "${USE_ANDROID_MEDIA_TRUE}" && test -z "${USE_ANDROID_MEDIA_FALSE}"; then
93312  as_fn_error $? "conditional \"USE_ANDROID_MEDIA\" was never defined.
93313Usually this means the macro was only invoked conditionally." "$LINENO" 5
93314fi
93315if test -z "${USE_APPLE_MEDIA_TRUE}" && test -z "${USE_APPLE_MEDIA_FALSE}"; then
93316  as_fn_error $? "conditional \"USE_APPLE_MEDIA\" was never defined.
93317Usually this means the macro was only invoked conditionally." "$LINENO" 5
93318fi
93319if test -z "${USE_BLUEZ_TRUE}" && test -z "${USE_BLUEZ_FALSE}"; then
93320  as_fn_error $? "conditional \"USE_BLUEZ\" was never defined.
93321Usually this means the macro was only invoked conditionally." "$LINENO" 5
93322fi
93323if test -z "${USE_AVC_TRUE}" && test -z "${USE_AVC_FALSE}"; then
93324  as_fn_error $? "conditional \"USE_AVC\" was never defined.
93325Usually this means the macro was only invoked conditionally." "$LINENO" 5
93326fi
93327if test -z "${USE_SHM_TRUE}" && test -z "${USE_SHM_FALSE}"; then
93328  as_fn_error $? "conditional \"USE_SHM\" was never defined.
93329Usually this means the macro was only invoked conditionally." "$LINENO" 5
93330fi
93331if test -z "${USE_IPCPIPELINE_TRUE}" && test -z "${USE_IPCPIPELINE_FALSE}"; then
93332  as_fn_error $? "conditional \"USE_IPCPIPELINE\" was never defined.
93333Usually this means the macro was only invoked conditionally." "$LINENO" 5
93334fi
93335if test -z "${USE_OPENSLES_TRUE}" && test -z "${USE_OPENSLES_FALSE}"; then
93336  as_fn_error $? "conditional \"USE_OPENSLES\" was never defined.
93337Usually this means the macro was only invoked conditionally." "$LINENO" 5
93338fi
93339if test -z "${USE_UVCH264_TRUE}" && test -z "${USE_UVCH264_FALSE}"; then
93340  as_fn_error $? "conditional \"USE_UVCH264\" was never defined.
93341Usually this means the macro was only invoked conditionally." "$LINENO" 5
93342fi
93343if test -z "${USE_CUDA_TRUE}" && test -z "${USE_CUDA_FALSE}"; then
93344  as_fn_error $? "conditional \"USE_CUDA\" was never defined.
93345Usually this means the macro was only invoked conditionally." "$LINENO" 5
93346fi
93347if test -z "${USE_NVDEC_TRUE}" && test -z "${USE_NVDEC_FALSE}"; then
93348  as_fn_error $? "conditional \"USE_NVDEC\" was never defined.
93349Usually this means the macro was only invoked conditionally." "$LINENO" 5
93350fi
93351if test -z "${USE_NVENC_TRUE}" && test -z "${USE_NVENC_FALSE}"; then
93352  as_fn_error $? "conditional \"USE_NVENC\" was never defined.
93353Usually this means the macro was only invoked conditionally." "$LINENO" 5
93354fi
93355if test -z "${USE_NVENC_GST_GL_TRUE}" && test -z "${USE_NVENC_GST_GL_FALSE}"; then
93356  as_fn_error $? "conditional \"USE_NVENC_GST_GL\" was never defined.
93357Usually this means the macro was only invoked conditionally." "$LINENO" 5
93358fi
93359if test -z "${USE_TINYALSA_TRUE}" && test -z "${USE_TINYALSA_FALSE}"; then
93360  as_fn_error $? "conditional \"USE_TINYALSA\" was never defined.
93361Usually this means the macro was only invoked conditionally." "$LINENO" 5
93362fi
93363if test -z "${USE_MSDK_TRUE}" && test -z "${USE_MSDK_FALSE}"; then
93364  as_fn_error $? "conditional \"USE_MSDK\" was never defined.
93365Usually this means the macro was only invoked conditionally." "$LINENO" 5
93366fi
93367if test -z "${USE_MSDK_LIBVA_TRUE}" && test -z "${USE_MSDK_LIBVA_FALSE}"; then
93368  as_fn_error $? "conditional \"USE_MSDK_LIBVA\" was never defined.
93369Usually this means the macro was only invoked conditionally." "$LINENO" 5
93370fi
93371if test -z "${USE_MSDK_VP9_DEC_TRUE}" && test -z "${USE_MSDK_VP9_DEC_FALSE}"; then
93372  as_fn_error $? "conditional \"USE_MSDK_VP9_DEC\" was never defined.
93373Usually this means the macro was only invoked conditionally." "$LINENO" 5
93374fi
93375if test -z "${USE_ASSRENDER_TRUE}" && test -z "${USE_ASSRENDER_FALSE}"; then
93376  as_fn_error $? "conditional \"USE_ASSRENDER\" was never defined.
93377Usually this means the macro was only invoked conditionally." "$LINENO" 5
93378fi
93379if test -z "${USE_AOM_TRUE}" && test -z "${USE_AOM_FALSE}"; then
93380  as_fn_error $? "conditional \"USE_AOM\" was never defined.
93381Usually this means the macro was only invoked conditionally." "$LINENO" 5
93382fi
93383if test -z "${USE_VOAMRWBENC_TRUE}" && test -z "${USE_VOAMRWBENC_FALSE}"; then
93384  as_fn_error $? "conditional \"USE_VOAMRWBENC\" was never defined.
93385Usually this means the macro was only invoked conditionally." "$LINENO" 5
93386fi
93387if test -z "${USE_VOAACENC_TRUE}" && test -z "${USE_VOAACENC_FALSE}"; then
93388  as_fn_error $? "conditional \"USE_VOAACENC\" was never defined.
93389Usually this means the macro was only invoked conditionally." "$LINENO" 5
93390fi
93391if test -z "${USE_BS2B_TRUE}" && test -z "${USE_BS2B_FALSE}"; then
93392  as_fn_error $? "conditional \"USE_BS2B\" was never defined.
93393Usually this means the macro was only invoked conditionally." "$LINENO" 5
93394fi
93395if test -z "${USE_BZ2_TRUE}" && test -z "${USE_BZ2_FALSE}"; then
93396  as_fn_error $? "conditional \"USE_BZ2\" was never defined.
93397Usually this means the macro was only invoked conditionally." "$LINENO" 5
93398fi
93399if test -z "${USE_CHROMAPRINT_TRUE}" && test -z "${USE_CHROMAPRINT_FALSE}"; then
93400  as_fn_error $? "conditional \"USE_CHROMAPRINT\" was never defined.
93401Usually this means the macro was only invoked conditionally." "$LINENO" 5
93402fi
93403if test -z "${USE_SSH2_TRUE}" && test -z "${USE_SSH2_FALSE}"; then
93404  as_fn_error $? "conditional \"USE_SSH2\" was never defined.
93405Usually this means the macro was only invoked conditionally." "$LINENO" 5
93406fi
93407if test -z "${USE_SSH2_TRUE}" && test -z "${USE_SSH2_FALSE}"; then
93408  as_fn_error $? "conditional \"USE_SSH2\" was never defined.
93409Usually this means the macro was only invoked conditionally." "$LINENO" 5
93410fi
93411if test -z "${USE_CURL_TRUE}" && test -z "${USE_CURL_FALSE}"; then
93412  as_fn_error $? "conditional \"USE_CURL\" was never defined.
93413Usually this means the macro was only invoked conditionally." "$LINENO" 5
93414fi
93415if test -z "${USE_DASH_TRUE}" && test -z "${USE_DASH_FALSE}"; then
93416  as_fn_error $? "conditional \"USE_DASH\" was never defined.
93417Usually this means the macro was only invoked conditionally." "$LINENO" 5
93418fi
93419if test -z "${USE_DC1394_TRUE}" && test -z "${USE_DC1394_FALSE}"; then
93420  as_fn_error $? "conditional \"USE_DC1394\" was never defined.
93421Usually this means the macro was only invoked conditionally." "$LINENO" 5
93422fi
93423if test -z "${USE_DECKLINK_TRUE}" && test -z "${USE_DECKLINK_FALSE}"; then
93424  as_fn_error $? "conditional \"USE_DECKLINK\" was never defined.
93425Usually this means the macro was only invoked conditionally." "$LINENO" 5
93426fi
93427if test -z "${DECKLINK_OSX_TRUE}" && test -z "${DECKLINK_OSX_FALSE}"; then
93428  as_fn_error $? "conditional \"DECKLINK_OSX\" was never defined.
93429Usually this means the macro was only invoked conditionally." "$LINENO" 5
93430fi
93431if test -z "${DECKLINK_WIN_TRUE}" && test -z "${DECKLINK_WIN_FALSE}"; then
93432  as_fn_error $? "conditional \"DECKLINK_WIN\" was never defined.
93433Usually this means the macro was only invoked conditionally." "$LINENO" 5
93434fi
93435if test -z "${USE_DIRECTFB_TRUE}" && test -z "${USE_DIRECTFB_FALSE}"; then
93436  as_fn_error $? "conditional \"USE_DIRECTFB\" was never defined.
93437Usually this means the macro was only invoked conditionally." "$LINENO" 5
93438fi
93439if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
93440  as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
93441Usually this means the macro was only invoked conditionally." "$LINENO" 5
93442fi
93443if test -z "${USE_WEBP_TRUE}" && test -z "${USE_WEBP_FALSE}"; then
93444  as_fn_error $? "conditional \"USE_WEBP\" was never defined.
93445Usually this means the macro was only invoked conditionally." "$LINENO" 5
93446fi
93447if test -z "${USE_DTS_TRUE}" && test -z "${USE_DTS_FALSE}"; then
93448  as_fn_error $? "conditional \"USE_DTS\" was never defined.
93449Usually this means the macro was only invoked conditionally." "$LINENO" 5
93450fi
93451if test -z "${USE_RESINDVD_TRUE}" && test -z "${USE_RESINDVD_FALSE}"; then
93452  as_fn_error $? "conditional \"USE_RESINDVD\" was never defined.
93453Usually this means the macro was only invoked conditionally." "$LINENO" 5
93454fi
93455if test -z "${USE_FAAC_TRUE}" && test -z "${USE_FAAC_FALSE}"; then
93456  as_fn_error $? "conditional \"USE_FAAC\" was never defined.
93457Usually this means the macro was only invoked conditionally." "$LINENO" 5
93458fi
93459if test -z "${USE_FAAD_TRUE}" && test -z "${USE_FAAD_FALSE}"; then
93460  as_fn_error $? "conditional \"USE_FAAD\" was never defined.
93461Usually this means the macro was only invoked conditionally." "$LINENO" 5
93462fi
93463if test -z "${USE_FBDEV_TRUE}" && test -z "${USE_FBDEV_FALSE}"; then
93464  as_fn_error $? "conditional \"USE_FBDEV\" was never defined.
93465Usually this means the macro was only invoked conditionally." "$LINENO" 5
93466fi
93467if test -z "${USE_FDK_AAC_TRUE}" && test -z "${USE_FDK_AAC_FALSE}"; then
93468  as_fn_error $? "conditional \"USE_FDK_AAC\" was never defined.
93469Usually this means the macro was only invoked conditionally." "$LINENO" 5
93470fi
93471if test -z "${USE_FLITE_TRUE}" && test -z "${USE_FLITE_FALSE}"; then
93472  as_fn_error $? "conditional \"USE_FLITE\" was never defined.
93473Usually this means the macro was only invoked conditionally." "$LINENO" 5
93474fi
93475if test -z "${USE_GSM_TRUE}" && test -z "${USE_GSM_FALSE}"; then
93476  as_fn_error $? "conditional \"USE_GSM\" was never defined.
93477Usually this means the macro was only invoked conditionally." "$LINENO" 5
93478fi
93479if test -z "${USE_FLUIDSYNTH_TRUE}" && test -z "${USE_FLUIDSYNTH_FALSE}"; then
93480  as_fn_error $? "conditional \"USE_FLUIDSYNTH\" was never defined.
93481Usually this means the macro was only invoked conditionally." "$LINENO" 5
93482fi
93483if test -z "${USE_TIGER_TRUE}" && test -z "${USE_TIGER_FALSE}"; then
93484  as_fn_error $? "conditional \"USE_TIGER\" was never defined.
93485Usually this means the macro was only invoked conditionally." "$LINENO" 5
93486fi
93487if test -z "${USE_TIGER_TRUE}" && test -z "${USE_TIGER_FALSE}"; then
93488  as_fn_error $? "conditional \"USE_TIGER\" was never defined.
93489Usually this means the macro was only invoked conditionally." "$LINENO" 5
93490fi
93491if test -z "${USE_KATE_TRUE}" && test -z "${USE_KATE_FALSE}"; then
93492  as_fn_error $? "conditional \"USE_KATE\" was never defined.
93493Usually this means the macro was only invoked conditionally." "$LINENO" 5
93494fi
93495if test -z "${USE_KMS_TRUE}" && test -z "${USE_KMS_FALSE}"; then
93496  as_fn_error $? "conditional \"USE_KMS\" was never defined.
93497Usually this means the macro was only invoked conditionally." "$LINENO" 5
93498fi
93499if test -z "${USE_LADSPA_TRUE}" && test -z "${USE_LADSPA_FALSE}"; then
93500  as_fn_error $? "conditional \"USE_LADSPA\" was never defined.
93501Usually this means the macro was only invoked conditionally." "$LINENO" 5
93502fi
93503if test -z "${USE_LCMS2_TRUE}" && test -z "${USE_LCMS2_FALSE}"; then
93504  as_fn_error $? "conditional \"USE_LCMS2\" was never defined.
93505Usually this means the macro was only invoked conditionally." "$LINENO" 5
93506fi
93507if test -z "${USE_LV2_TRUE}" && test -z "${USE_LV2_FALSE}"; then
93508  as_fn_error $? "conditional \"USE_LV2\" was never defined.
93509Usually this means the macro was only invoked conditionally." "$LINENO" 5
93510fi
93511if test -z "${USE_LIBDE265_TRUE}" && test -z "${USE_LIBDE265_FALSE}"; then
93512  as_fn_error $? "conditional \"USE_LIBDE265\" was never defined.
93513Usually this means the macro was only invoked conditionally." "$LINENO" 5
93514fi
93515if test -z "${USE_LIBMMS_TRUE}" && test -z "${USE_LIBMMS_FALSE}"; then
93516  as_fn_error $? "conditional \"USE_LIBMMS\" was never defined.
93517Usually this means the macro was only invoked conditionally." "$LINENO" 5
93518fi
93519if test -z "${USE_SRT_TRUE}" && test -z "${USE_SRT_FALSE}"; then
93520  as_fn_error $? "conditional \"USE_SRT\" was never defined.
93521Usually this means the macro was only invoked conditionally." "$LINENO" 5
93522fi
93523if test -z "${USE_SRTP_TRUE}" && test -z "${USE_SRTP_FALSE}"; then
93524  as_fn_error $? "conditional \"USE_SRTP\" was never defined.
93525Usually this means the macro was only invoked conditionally." "$LINENO" 5
93526fi
93527if test -z "${USE_DTLS_TRUE}" && test -z "${USE_DTLS_FALSE}"; then
93528  as_fn_error $? "conditional \"USE_DTLS\" was never defined.
93529Usually this means the macro was only invoked conditionally." "$LINENO" 5
93530fi
93531if test -z "${USE_TTML_TRUE}" && test -z "${USE_TTML_FALSE}"; then
93532  as_fn_error $? "conditional \"USE_TTML\" was never defined.
93533Usually this means the macro was only invoked conditionally." "$LINENO" 5
93534fi
93535if test -z "${USE_MODPLUG_TRUE}" && test -z "${USE_MODPLUG_FALSE}"; then
93536  as_fn_error $? "conditional \"USE_MODPLUG\" was never defined.
93537Usually this means the macro was only invoked conditionally." "$LINENO" 5
93538fi
93539if test -z "${USE_MPEG2ENC_TRUE}" && test -z "${USE_MPEG2ENC_FALSE}"; then
93540  as_fn_error $? "conditional \"USE_MPEG2ENC\" was never defined.
93541Usually this means the macro was only invoked conditionally." "$LINENO" 5
93542fi
93543if test -z "${USE_MPLEX_TRUE}" && test -z "${USE_MPLEX_FALSE}"; then
93544  as_fn_error $? "conditional \"USE_MPLEX\" was never defined.
93545Usually this means the macro was only invoked conditionally." "$LINENO" 5
93546fi
93547if test -z "${USE_MUSEPACK_TRUE}" && test -z "${USE_MUSEPACK_FALSE}"; then
93548  as_fn_error $? "conditional \"USE_MUSEPACK\" was never defined.
93549Usually this means the macro was only invoked conditionally." "$LINENO" 5
93550fi
93551if test -z "${USE_NEON_TRUE}" && test -z "${USE_NEON_FALSE}"; then
93552  as_fn_error $? "conditional \"USE_NEON\" was never defined.
93553Usually this means the macro was only invoked conditionally." "$LINENO" 5
93554fi
93555if test -z "${USE_OFA_TRUE}" && test -z "${USE_OFA_FALSE}"; then
93556  as_fn_error $? "conditional \"USE_OFA\" was never defined.
93557Usually this means the macro was only invoked conditionally." "$LINENO" 5
93558fi
93559if test -z "${USE_OPENAL_TRUE}" && test -z "${USE_OPENAL_FALSE}"; then
93560  as_fn_error $? "conditional \"USE_OPENAL\" was never defined.
93561Usually this means the macro was only invoked conditionally." "$LINENO" 5
93562fi
93563if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
93564  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
93565Usually this means the macro was only invoked conditionally." "$LINENO" 5
93566fi
93567if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
93568  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
93569Usually this means the macro was only invoked conditionally." "$LINENO" 5
93570fi
93571if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
93572  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
93573Usually this means the macro was only invoked conditionally." "$LINENO" 5
93574fi
93575if test -z "${USE_OPENCV_TRUE}" && test -z "${USE_OPENCV_FALSE}"; then
93576  as_fn_error $? "conditional \"USE_OPENCV\" was never defined.
93577Usually this means the macro was only invoked conditionally." "$LINENO" 5
93578fi
93579if test -z "${USE_OPENEXR_TRUE}" && test -z "${USE_OPENEXR_FALSE}"; then
93580  as_fn_error $? "conditional \"USE_OPENEXR\" was never defined.
93581Usually this means the macro was only invoked conditionally." "$LINENO" 5
93582fi
93583if test -z "${USE_OPENH264_TRUE}" && test -z "${USE_OPENH264_FALSE}"; then
93584  as_fn_error $? "conditional \"USE_OPENH264\" was never defined.
93585Usually this means the macro was only invoked conditionally." "$LINENO" 5
93586fi
93587if test -z "${USE_OPENJPEG_TRUE}" && test -z "${USE_OPENJPEG_FALSE}"; then
93588  as_fn_error $? "conditional \"USE_OPENJPEG\" was never defined.
93589Usually this means the macro was only invoked conditionally." "$LINENO" 5
93590fi
93591if test -z "${USE_OPENMPT_TRUE}" && test -z "${USE_OPENMPT_FALSE}"; then
93592  as_fn_error $? "conditional \"USE_OPENMPT\" was never defined.
93593Usually this means the macro was only invoked conditionally." "$LINENO" 5
93594fi
93595if test -z "${USE_OPENNI2_TRUE}" && test -z "${USE_OPENNI2_FALSE}"; then
93596  as_fn_error $? "conditional \"USE_OPENNI2\" was never defined.
93597Usually this means the macro was only invoked conditionally." "$LINENO" 5
93598fi
93599if test -z "${USE_OPUS_TRUE}" && test -z "${USE_OPUS_FALSE}"; then
93600  as_fn_error $? "conditional \"USE_OPUS\" was never defined.
93601Usually this means the macro was only invoked conditionally." "$LINENO" 5
93602fi
93603if test -z "${USE_PANGO_TRUE}" && test -z "${USE_PANGO_FALSE}"; then
93604  as_fn_error $? "conditional \"USE_PANGO\" was never defined.
93605Usually this means the macro was only invoked conditionally." "$LINENO" 5
93606fi
93607if test -z "${USE_RSVG_TRUE}" && test -z "${USE_RSVG_FALSE}"; then
93608  as_fn_error $? "conditional \"USE_RSVG\" was never defined.
93609Usually this means the macro was only invoked conditionally." "$LINENO" 5
93610fi
93611if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
93612  as_fn_error $? "conditional \"USE_GL\" was never defined.
93613Usually this means the macro was only invoked conditionally." "$LINENO" 5
93614fi
93615if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
93616  as_fn_error $? "conditional \"USE_GL\" was never defined.
93617Usually this means the macro was only invoked conditionally." "$LINENO" 5
93618fi
93619if test -z "${USE_OPENGL_TRUE}" && test -z "${USE_OPENGL_FALSE}"; then
93620  as_fn_error $? "conditional \"USE_OPENGL\" was never defined.
93621Usually this means the macro was only invoked conditionally." "$LINENO" 5
93622fi
93623if test -z "${USE_VULKAN_TRUE}" && test -z "${USE_VULKAN_FALSE}"; then
93624  as_fn_error $? "conditional \"USE_VULKAN\" was never defined.
93625Usually this means the macro was only invoked conditionally." "$LINENO" 5
93626fi
93627if test -z "${USE_TELETEXTDEC_TRUE}" && test -z "${USE_TELETEXTDEC_FALSE}"; then
93628  as_fn_error $? "conditional \"USE_TELETEXTDEC\" was never defined.
93629Usually this means the macro was only invoked conditionally." "$LINENO" 5
93630fi
93631if test -z "${USE_WILDMIDI_TRUE}" && test -z "${USE_WILDMIDI_FALSE}"; then
93632  as_fn_error $? "conditional \"USE_WILDMIDI\" was never defined.
93633Usually this means the macro was only invoked conditionally." "$LINENO" 5
93634fi
93635if test -z "${USE_SMOOTHSTREAMING_TRUE}" && test -z "${USE_SMOOTHSTREAMING_FALSE}"; then
93636  as_fn_error $? "conditional \"USE_SMOOTHSTREAMING\" was never defined.
93637Usually this means the macro was only invoked conditionally." "$LINENO" 5
93638fi
93639if test -z "${USE_SNDFILE_TRUE}" && test -z "${USE_SNDFILE_FALSE}"; then
93640  as_fn_error $? "conditional \"USE_SNDFILE\" was never defined.
93641Usually this means the macro was only invoked conditionally." "$LINENO" 5
93642fi
93643if test -z "${USE_SOUNDTOUCH_TRUE}" && test -z "${USE_SOUNDTOUCH_FALSE}"; then
93644  as_fn_error $? "conditional \"USE_SOUNDTOUCH\" was never defined.
93645Usually this means the macro was only invoked conditionally." "$LINENO" 5
93646fi
93647if test -z "${USE_GME_TRUE}" && test -z "${USE_GME_FALSE}"; then
93648  as_fn_error $? "conditional \"USE_GME\" was never defined.
93649Usually this means the macro was only invoked conditionally." "$LINENO" 5
93650fi
93651if test -z "${USE_DVB_TRUE}" && test -z "${USE_DVB_FALSE}"; then
93652  as_fn_error $? "conditional \"USE_DVB\" was never defined.
93653Usually this means the macro was only invoked conditionally." "$LINENO" 5
93654fi
93655if test -z "${USE_VDPAU_TRUE}" && test -z "${USE_VDPAU_FALSE}"; then
93656  as_fn_error $? "conditional \"USE_VDPAU\" was never defined.
93657Usually this means the macro was only invoked conditionally." "$LINENO" 5
93658fi
93659if test -z "${USE_SBC_TRUE}" && test -z "${USE_SBC_FALSE}"; then
93660  as_fn_error $? "conditional \"USE_SBC\" was never defined.
93661Usually this means the macro was only invoked conditionally." "$LINENO" 5
93662fi
93663if test -z "${USE_ZBAR_TRUE}" && test -z "${USE_ZBAR_FALSE}"; then
93664  as_fn_error $? "conditional \"USE_ZBAR\" was never defined.
93665Usually this means the macro was only invoked conditionally." "$LINENO" 5
93666fi
93667if test -z "${USE_RTMP_TRUE}" && test -z "${USE_RTMP_FALSE}"; then
93668  as_fn_error $? "conditional \"USE_RTMP\" was never defined.
93669Usually this means the macro was only invoked conditionally." "$LINENO" 5
93670fi
93671if test -z "${USE_SPANDSP_TRUE}" && test -z "${USE_SPANDSP_FALSE}"; then
93672  as_fn_error $? "conditional \"USE_SPANDSP\" was never defined.
93673Usually this means the macro was only invoked conditionally." "$LINENO" 5
93674fi
93675if test -z "${USE_HLS_TRUE}" && test -z "${USE_HLS_FALSE}"; then
93676  as_fn_error $? "conditional \"USE_HLS\" was never defined.
93677Usually this means the macro was only invoked conditionally." "$LINENO" 5
93678fi
93679if test -z "${USE_X265_TRUE}" && test -z "${USE_X265_FALSE}"; then
93680  as_fn_error $? "conditional \"USE_X265\" was never defined.
93681Usually this means the macro was only invoked conditionally." "$LINENO" 5
93682fi
93683if test -z "${USE_WEBRTCDSP_TRUE}" && test -z "${USE_WEBRTCDSP_FALSE}"; then
93684  as_fn_error $? "conditional \"USE_WEBRTCDSP\" was never defined.
93685Usually this means the macro was only invoked conditionally." "$LINENO" 5
93686fi
93687if test -z "${USE_WEBRTC_TRUE}" && test -z "${USE_WEBRTC_FALSE}"; then
93688  as_fn_error $? "conditional \"USE_WEBRTC\" was never defined.
93689Usually this means the macro was only invoked conditionally." "$LINENO" 5
93690fi
93691if test -z "${USE_WPE_TRUE}" && test -z "${USE_WPE_FALSE}"; then
93692  as_fn_error $? "conditional \"USE_WPE\" was never defined.
93693Usually this means the macro was only invoked conditionally." "$LINENO" 5
93694fi
93695if test -z "${USE_SCTP_TRUE}" && test -z "${USE_SCTP_FALSE}"; then
93696  as_fn_error $? "conditional \"USE_SCTP\" was never defined.
93697Usually this means the macro was only invoked conditionally." "$LINENO" 5
93698fi
93699if test -z "${USE_ASSRENDER_TRUE}" && test -z "${USE_ASSRENDER_FALSE}"; then
93700  as_fn_error $? "conditional \"USE_ASSRENDER\" was never defined.
93701Usually this means the macro was only invoked conditionally." "$LINENO" 5
93702fi
93703if test -z "${USE_AOM_TRUE}" && test -z "${USE_AOM_FALSE}"; then
93704  as_fn_error $? "conditional \"USE_AOM\" was never defined.
93705Usually this means the macro was only invoked conditionally." "$LINENO" 5
93706fi
93707if test -z "${USE_VOAMRWBENC_TRUE}" && test -z "${USE_VOAMRWBENC_FALSE}"; then
93708  as_fn_error $? "conditional \"USE_VOAMRWBENC\" was never defined.
93709Usually this means the macro was only invoked conditionally." "$LINENO" 5
93710fi
93711if test -z "${USE_VOAACENC_TRUE}" && test -z "${USE_VOAACENC_FALSE}"; then
93712  as_fn_error $? "conditional \"USE_VOAACENC\" was never defined.
93713Usually this means the macro was only invoked conditionally." "$LINENO" 5
93714fi
93715if test -z "${USE_BS2B_TRUE}" && test -z "${USE_BS2B_FALSE}"; then
93716  as_fn_error $? "conditional \"USE_BS2B\" was never defined.
93717Usually this means the macro was only invoked conditionally." "$LINENO" 5
93718fi
93719if test -z "${USE_BZ2_TRUE}" && test -z "${USE_BZ2_FALSE}"; then
93720  as_fn_error $? "conditional \"USE_BZ2\" was never defined.
93721Usually this means the macro was only invoked conditionally." "$LINENO" 5
93722fi
93723if test -z "${USE_CHROMAPRINT_TRUE}" && test -z "${USE_CHROMAPRINT_FALSE}"; then
93724  as_fn_error $? "conditional \"USE_CHROMAPRINT\" was never defined.
93725Usually this means the macro was only invoked conditionally." "$LINENO" 5
93726fi
93727if test -z "${USE_CURL_TRUE}" && test -z "${USE_CURL_FALSE}"; then
93728  as_fn_error $? "conditional \"USE_CURL\" was never defined.
93729Usually this means the macro was only invoked conditionally." "$LINENO" 5
93730fi
93731if test -z "${USE_SSH2_TRUE}" && test -z "${USE_SSH2_FALSE}"; then
93732  as_fn_error $? "conditional \"USE_SSH2\" was never defined.
93733Usually this means the macro was only invoked conditionally." "$LINENO" 5
93734fi
93735if test -z "${USE_DASH_TRUE}" && test -z "${USE_DASH_FALSE}"; then
93736  as_fn_error $? "conditional \"USE_DASH\" was never defined.
93737Usually this means the macro was only invoked conditionally." "$LINENO" 5
93738fi
93739if test -z "${USE_DC1394_TRUE}" && test -z "${USE_DC1394_FALSE}"; then
93740  as_fn_error $? "conditional \"USE_DC1394\" was never defined.
93741Usually this means the macro was only invoked conditionally." "$LINENO" 5
93742fi
93743if test -z "${USE_DECKLINK_TRUE}" && test -z "${USE_DECKLINK_FALSE}"; then
93744  as_fn_error $? "conditional \"USE_DECKLINK\" was never defined.
93745Usually this means the macro was only invoked conditionally." "$LINENO" 5
93746fi
93747if test -z "${DECKLINK_OSX_TRUE}" && test -z "${DECKLINK_OSX_FALSE}"; then
93748  as_fn_error $? "conditional \"DECKLINK_OSX\" was never defined.
93749Usually this means the macro was only invoked conditionally." "$LINENO" 5
93750fi
93751if test -z "${DECKLINK_WIN_TRUE}" && test -z "${DECKLINK_WIN_FALSE}"; then
93752  as_fn_error $? "conditional \"DECKLINK_WIN\" was never defined.
93753Usually this means the macro was only invoked conditionally." "$LINENO" 5
93754fi
93755if test -z "${USE_DIRECTFB_TRUE}" && test -z "${USE_DIRECTFB_FALSE}"; then
93756  as_fn_error $? "conditional \"USE_DIRECTFB\" was never defined.
93757Usually this means the macro was only invoked conditionally." "$LINENO" 5
93758fi
93759if test -z "${USE_WAYLAND_TRUE}" && test -z "${USE_WAYLAND_FALSE}"; then
93760  as_fn_error $? "conditional \"USE_WAYLAND\" was never defined.
93761Usually this means the macro was only invoked conditionally." "$LINENO" 5
93762fi
93763if test -z "${USE_DTS_TRUE}" && test -z "${USE_DTS_FALSE}"; then
93764  as_fn_error $? "conditional \"USE_DTS\" was never defined.
93765Usually this means the macro was only invoked conditionally." "$LINENO" 5
93766fi
93767if test -z "${USE_EXIF_TRUE}" && test -z "${USE_EXIF_FALSE}"; then
93768  as_fn_error $? "conditional \"USE_EXIF\" was never defined.
93769Usually this means the macro was only invoked conditionally." "$LINENO" 5
93770fi
93771if test -z "${USE_RESINDVD_TRUE}" && test -z "${USE_RESINDVD_FALSE}"; then
93772  as_fn_error $? "conditional \"USE_RESINDVD\" was never defined.
93773Usually this means the macro was only invoked conditionally." "$LINENO" 5
93774fi
93775if test -z "${USE_FAAC_TRUE}" && test -z "${USE_FAAC_FALSE}"; then
93776  as_fn_error $? "conditional \"USE_FAAC\" was never defined.
93777Usually this means the macro was only invoked conditionally." "$LINENO" 5
93778fi
93779if test -z "${USE_FAAD_TRUE}" && test -z "${USE_FAAD_FALSE}"; then
93780  as_fn_error $? "conditional \"USE_FAAD\" was never defined.
93781Usually this means the macro was only invoked conditionally." "$LINENO" 5
93782fi
93783if test -z "${USE_FBDEV_TRUE}" && test -z "${USE_FBDEV_FALSE}"; then
93784  as_fn_error $? "conditional \"USE_FBDEV\" was never defined.
93785Usually this means the macro was only invoked conditionally." "$LINENO" 5
93786fi
93787if test -z "${USE_FDK_AAC_TRUE}" && test -z "${USE_FDK_AAC_FALSE}"; then
93788  as_fn_error $? "conditional \"USE_FDK_AAC\" was never defined.
93789Usually this means the macro was only invoked conditionally." "$LINENO" 5
93790fi
93791if test -z "${USE_FLITE_TRUE}" && test -z "${USE_FLITE_FALSE}"; then
93792  as_fn_error $? "conditional \"USE_FLITE\" was never defined.
93793Usually this means the macro was only invoked conditionally." "$LINENO" 5
93794fi
93795if test -z "${USE_FLUIDSYNTH_TRUE}" && test -z "${USE_FLUIDSYNTH_FALSE}"; then
93796  as_fn_error $? "conditional \"USE_FLUIDSYNTH\" was never defined.
93797Usually this means the macro was only invoked conditionally." "$LINENO" 5
93798fi
93799if test -z "${USE_GL_TRUE}" && test -z "${USE_GL_FALSE}"; then
93800  as_fn_error $? "conditional \"USE_GL\" was never defined.
93801Usually this means the macro was only invoked conditionally." "$LINENO" 5
93802fi
93803if test -z "${USE_GSM_TRUE}" && test -z "${USE_GSM_FALSE}"; then
93804  as_fn_error $? "conditional \"USE_GSM\" was never defined.
93805Usually this means the macro was only invoked conditionally." "$LINENO" 5
93806fi
93807if test -z "${USE_HLS_TRUE}" && test -z "${USE_HLS_FALSE}"; then
93808  as_fn_error $? "conditional \"USE_HLS\" was never defined.
93809Usually this means the macro was only invoked conditionally." "$LINENO" 5
93810fi
93811if test -z "${USE_IQA_TRUE}" && test -z "${USE_IQA_FALSE}"; then
93812  as_fn_error $? "conditional \"USE_IQA\" was never defined.
93813Usually this means the macro was only invoked conditionally." "$LINENO" 5
93814fi
93815if test -z "${USE_KATE_TRUE}" && test -z "${USE_KATE_FALSE}"; then
93816  as_fn_error $? "conditional \"USE_KATE\" was never defined.
93817Usually this means the macro was only invoked conditionally." "$LINENO" 5
93818fi
93819if test -z "${USE_KMS_TRUE}" && test -z "${USE_KMS_FALSE}"; then
93820  as_fn_error $? "conditional \"USE_KMS\" was never defined.
93821Usually this means the macro was only invoked conditionally." "$LINENO" 5
93822fi
93823if test -z "${USE_TIGER_TRUE}" && test -z "${USE_TIGER_FALSE}"; then
93824  as_fn_error $? "conditional \"USE_TIGER\" was never defined.
93825Usually this means the macro was only invoked conditionally." "$LINENO" 5
93826fi
93827if test -z "${USE_LADSPA_TRUE}" && test -z "${USE_LADSPA_FALSE}"; then
93828  as_fn_error $? "conditional \"USE_LADSPA\" was never defined.
93829Usually this means the macro was only invoked conditionally." "$LINENO" 5
93830fi
93831if test -z "${USE_LCMS2_TRUE}" && test -z "${USE_LCMS2_FALSE}"; then
93832  as_fn_error $? "conditional \"USE_LCMS2\" was never defined.
93833Usually this means the macro was only invoked conditionally." "$LINENO" 5
93834fi
93835if test -z "${USE_LV2_TRUE}" && test -z "${USE_LV2_FALSE}"; then
93836  as_fn_error $? "conditional \"USE_LV2\" was never defined.
93837Usually this means the macro was only invoked conditionally." "$LINENO" 5
93838fi
93839if test -z "${USE_LIBDE265_TRUE}" && test -z "${USE_LIBDE265_FALSE}"; then
93840  as_fn_error $? "conditional \"USE_LIBDE265\" was never defined.
93841Usually this means the macro was only invoked conditionally." "$LINENO" 5
93842fi
93843if test -z "${USE_LIBMMS_TRUE}" && test -z "${USE_LIBMMS_FALSE}"; then
93844  as_fn_error $? "conditional \"USE_LIBMMS\" was never defined.
93845Usually this means the macro was only invoked conditionally." "$LINENO" 5
93846fi
93847if test -z "${USE_MODPLUG_TRUE}" && test -z "${USE_MODPLUG_FALSE}"; then
93848  as_fn_error $? "conditional \"USE_MODPLUG\" was never defined.
93849Usually this means the macro was only invoked conditionally." "$LINENO" 5
93850fi
93851if test -z "${USE_MPEG2ENC_TRUE}" && test -z "${USE_MPEG2ENC_FALSE}"; then
93852  as_fn_error $? "conditional \"USE_MPEG2ENC\" was never defined.
93853Usually this means the macro was only invoked conditionally." "$LINENO" 5
93854fi
93855if test -z "${USE_MPLEX_TRUE}" && test -z "${USE_MPLEX_FALSE}"; then
93856  as_fn_error $? "conditional \"USE_MPLEX\" was never defined.
93857Usually this means the macro was only invoked conditionally." "$LINENO" 5
93858fi
93859if test -z "${USE_MUSEPACK_TRUE}" && test -z "${USE_MUSEPACK_FALSE}"; then
93860  as_fn_error $? "conditional \"USE_MUSEPACK\" was never defined.
93861Usually this means the macro was only invoked conditionally." "$LINENO" 5
93862fi
93863if test -z "${USE_NEON_TRUE}" && test -z "${USE_NEON_FALSE}"; then
93864  as_fn_error $? "conditional \"USE_NEON\" was never defined.
93865Usually this means the macro was only invoked conditionally." "$LINENO" 5
93866fi
93867if test -z "${USE_OFA_TRUE}" && test -z "${USE_OFA_FALSE}"; then
93868  as_fn_error $? "conditional \"USE_OFA\" was never defined.
93869Usually this means the macro was only invoked conditionally." "$LINENO" 5
93870fi
93871if test -z "${USE_OPENAL_TRUE}" && test -z "${USE_OPENAL_FALSE}"; then
93872  as_fn_error $? "conditional \"USE_OPENAL\" was never defined.
93873Usually this means the macro was only invoked conditionally." "$LINENO" 5
93874fi
93875if test -z "${USE_OPENCV_TRUE}" && test -z "${USE_OPENCV_FALSE}"; then
93876  as_fn_error $? "conditional \"USE_OPENCV\" was never defined.
93877Usually this means the macro was only invoked conditionally." "$LINENO" 5
93878fi
93879if test -z "${USE_OPENEXR_TRUE}" && test -z "${USE_OPENEXR_FALSE}"; then
93880  as_fn_error $? "conditional \"USE_OPENEXR\" was never defined.
93881Usually this means the macro was only invoked conditionally." "$LINENO" 5
93882fi
93883if test -z "${USE_OPENGL_TRUE}" && test -z "${USE_OPENGL_FALSE}"; then
93884  as_fn_error $? "conditional \"USE_OPENGL\" was never defined.
93885Usually this means the macro was only invoked conditionally." "$LINENO" 5
93886fi
93887if test -z "${USE_OPENJPEG_TRUE}" && test -z "${USE_OPENJPEG_FALSE}"; then
93888  as_fn_error $? "conditional \"USE_OPENJPEG\" was never defined.
93889Usually this means the macro was only invoked conditionally." "$LINENO" 5
93890fi
93891if test -z "${USE_OPENMPT_TRUE}" && test -z "${USE_OPENMPT_FALSE}"; then
93892  as_fn_error $? "conditional \"USE_OPENMPT\" was never defined.
93893Usually this means the macro was only invoked conditionally." "$LINENO" 5
93894fi
93895if test -z "${USE_OPENNI2_TRUE}" && test -z "${USE_OPENNI2_FALSE}"; then
93896  as_fn_error $? "conditional \"USE_OPENNI2\" was never defined.
93897Usually this means the macro was only invoked conditionally." "$LINENO" 5
93898fi
93899if test -z "${USE_OPUS_TRUE}" && test -z "${USE_OPUS_FALSE}"; then
93900  as_fn_error $? "conditional \"USE_OPUS\" was never defined.
93901Usually this means the macro was only invoked conditionally." "$LINENO" 5
93902fi
93903if test -z "${USE_PANGO_TRUE}" && test -z "${USE_PANGO_FALSE}"; then
93904  as_fn_error $? "conditional \"USE_PANGO\" was never defined.
93905Usually this means the macro was only invoked conditionally." "$LINENO" 5
93906fi
93907if test -z "${USE_WILDMIDI_TRUE}" && test -z "${USE_WILDMIDI_FALSE}"; then
93908  as_fn_error $? "conditional \"USE_WILDMIDI\" was never defined.
93909Usually this means the macro was only invoked conditionally." "$LINENO" 5
93910fi
93911if test -z "${USE_SMOOTHSTREAMING_TRUE}" && test -z "${USE_SMOOTHSTREAMING_FALSE}"; then
93912  as_fn_error $? "conditional \"USE_SMOOTHSTREAMING\" was never defined.
93913Usually this means the macro was only invoked conditionally." "$LINENO" 5
93914fi
93915if test -z "${USE_SNDFILE_TRUE}" && test -z "${USE_SNDFILE_FALSE}"; then
93916  as_fn_error $? "conditional \"USE_SNDFILE\" was never defined.
93917Usually this means the macro was only invoked conditionally." "$LINENO" 5
93918fi
93919if test -z "${USE_SOUNDTOUCH_TRUE}" && test -z "${USE_SOUNDTOUCH_FALSE}"; then
93920  as_fn_error $? "conditional \"USE_SOUNDTOUCH\" was never defined.
93921Usually this means the macro was only invoked conditionally." "$LINENO" 5
93922fi
93923if test -z "${USE_SPANDSP_TRUE}" && test -z "${USE_SPANDSP_FALSE}"; then
93924  as_fn_error $? "conditional \"USE_SPANDSP\" was never defined.
93925Usually this means the macro was only invoked conditionally." "$LINENO" 5
93926fi
93927if test -z "${USE_SRTP_TRUE}" && test -z "${USE_SRTP_FALSE}"; then
93928  as_fn_error $? "conditional \"USE_SRTP\" was never defined.
93929Usually this means the macro was only invoked conditionally." "$LINENO" 5
93930fi
93931if test -z "${USE_SRT_TRUE}" && test -z "${USE_SRT_FALSE}"; then
93932  as_fn_error $? "conditional \"USE_SRT\" was never defined.
93933Usually this means the macro was only invoked conditionally." "$LINENO" 5
93934fi
93935if test -z "${USE_GME_TRUE}" && test -z "${USE_GME_FALSE}"; then
93936  as_fn_error $? "conditional \"USE_GME\" was never defined.
93937Usually this means the macro was only invoked conditionally." "$LINENO" 5
93938fi
93939if test -z "${USE_DVB_TRUE}" && test -z "${USE_DVB_FALSE}"; then
93940  as_fn_error $? "conditional \"USE_DVB\" was never defined.
93941Usually this means the macro was only invoked conditionally." "$LINENO" 5
93942fi
93943if test -z "${USE_VDPAU_TRUE}" && test -z "${USE_VDPAU_FALSE}"; then
93944  as_fn_error $? "conditional \"USE_VDPAU\" was never defined.
93945Usually this means the macro was only invoked conditionally." "$LINENO" 5
93946fi
93947if test -z "${USE_SBC_TRUE}" && test -z "${USE_SBC_FALSE}"; then
93948  as_fn_error $? "conditional \"USE_SBC\" was never defined.
93949Usually this means the macro was only invoked conditionally." "$LINENO" 5
93950fi
93951if test -z "${USE_ZBAR_TRUE}" && test -z "${USE_ZBAR_FALSE}"; then
93952  as_fn_error $? "conditional \"USE_ZBAR\" was never defined.
93953Usually this means the macro was only invoked conditionally." "$LINENO" 5
93954fi
93955if test -z "${USE_RSVG_TRUE}" && test -z "${USE_RSVG_FALSE}"; then
93956  as_fn_error $? "conditional \"USE_RSVG\" was never defined.
93957Usually this means the macro was only invoked conditionally." "$LINENO" 5
93958fi
93959if test -z "${USE_RTMP_TRUE}" && test -z "${USE_RTMP_FALSE}"; then
93960  as_fn_error $? "conditional \"USE_RTMP\" was never defined.
93961Usually this means the macro was only invoked conditionally." "$LINENO" 5
93962fi
93963if test -z "${USE_TELETEXTDEC_TRUE}" && test -z "${USE_TELETEXTDEC_FALSE}"; then
93964  as_fn_error $? "conditional \"USE_TELETEXTDEC\" was never defined.
93965Usually this means the macro was only invoked conditionally." "$LINENO" 5
93966fi
93967if test -z "${USE_UVCH264_TRUE}" && test -z "${USE_UVCH264_FALSE}"; then
93968  as_fn_error $? "conditional \"USE_UVCH264\" was never defined.
93969Usually this means the macro was only invoked conditionally." "$LINENO" 5
93970fi
93971if test -z "${USE_WEBP_TRUE}" && test -z "${USE_WEBP_FALSE}"; then
93972  as_fn_error $? "conditional \"USE_WEBP\" was never defined.
93973Usually this means the macro was only invoked conditionally." "$LINENO" 5
93974fi
93975if test -z "${USE_WEBRTC_TRUE}" && test -z "${USE_WEBRTC_FALSE}"; then
93976  as_fn_error $? "conditional \"USE_WEBRTC\" was never defined.
93977Usually this means the macro was only invoked conditionally." "$LINENO" 5
93978fi
93979if test -z "${USE_WEBRTCDSP_TRUE}" && test -z "${USE_WEBRTCDSP_FALSE}"; then
93980  as_fn_error $? "conditional \"USE_WEBRTCDSP\" was never defined.
93981Usually this means the macro was only invoked conditionally." "$LINENO" 5
93982fi
93983if test -z "${USE_OPENH264_TRUE}" && test -z "${USE_OPENH264_FALSE}"; then
93984  as_fn_error $? "conditional \"USE_OPENH264\" was never defined.
93985Usually this means the macro was only invoked conditionally." "$LINENO" 5
93986fi
93987if test -z "${USE_X265_TRUE}" && test -z "${USE_X265_FALSE}"; then
93988  as_fn_error $? "conditional \"USE_X265\" was never defined.
93989Usually this means the macro was only invoked conditionally." "$LINENO" 5
93990fi
93991if test -z "${USE_DTLS_TRUE}" && test -z "${USE_DTLS_FALSE}"; then
93992  as_fn_error $? "conditional \"USE_DTLS\" was never defined.
93993Usually this means the macro was only invoked conditionally." "$LINENO" 5
93994fi
93995if test -z "${USE_VULKAN_TRUE}" && test -z "${USE_VULKAN_FALSE}"; then
93996  as_fn_error $? "conditional \"USE_VULKAN\" was never defined.
93997Usually this means the macro was only invoked conditionally." "$LINENO" 5
93998fi
93999if test -z "${USE_TTML_TRUE}" && test -z "${USE_TTML_FALSE}"; then
94000  as_fn_error $? "conditional \"USE_TTML\" was never defined.
94001Usually this means the macro was only invoked conditionally." "$LINENO" 5
94002fi
94003if test -z "${USE_SCTP_TRUE}" && test -z "${USE_SCTP_FALSE}"; then
94004  as_fn_error $? "conditional \"USE_SCTP\" was never defined.
94005Usually this means the macro was only invoked conditionally." "$LINENO" 5
94006fi
94007
94008: "${CONFIG_STATUS=./config.status}"
94009ac_write_fail=0
94010ac_clean_files_save=$ac_clean_files
94011ac_clean_files="$ac_clean_files $CONFIG_STATUS"
94012{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
94013$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
94014as_write_fail=0
94015cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
94016#! $SHELL
94017# Generated by $as_me.
94018# Run this file to recreate the current configuration.
94019# Compiler output produced by configure, useful for debugging
94020# configure, is in config.log if it exists.
94021
94022debug=false
94023ac_cs_recheck=false
94024ac_cs_silent=false
94025
94026SHELL=\${CONFIG_SHELL-$SHELL}
94027export SHELL
94028_ASEOF
94029cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
94030## -------------------- ##
94031## M4sh Initialization. ##
94032## -------------------- ##
94033
94034# Be more Bourne compatible
94035DUALCASE=1; export DUALCASE # for MKS sh
94036if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
94037  emulate sh
94038  NULLCMD=:
94039  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
94040  # is contrary to our usage.  Disable this feature.
94041  alias -g '${1+"$@"}'='"$@"'
94042  setopt NO_GLOB_SUBST
94043else
94044  case `(set -o) 2>/dev/null` in #(
94045  *posix*) :
94046    set -o posix ;; #(
94047  *) :
94048     ;;
94049esac
94050fi
94051
94052
94053as_nl='
94054'
94055export as_nl
94056# Printing a long string crashes Solaris 7 /usr/bin/printf.
94057as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
94058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
94059as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
94060# Prefer a ksh shell builtin over an external printf program on Solaris,
94061# but without wasting forks for bash or zsh.
94062if test -z "$BASH_VERSION$ZSH_VERSION" \
94063    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
94064  as_echo='print -r --'
94065  as_echo_n='print -rn --'
94066elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
94067  as_echo='printf %s\n'
94068  as_echo_n='printf %s'
94069else
94070  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
94071    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
94072    as_echo_n='/usr/ucb/echo -n'
94073  else
94074    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
94075    as_echo_n_body='eval
94076      arg=$1;
94077      case $arg in #(
94078      *"$as_nl"*)
94079	expr "X$arg" : "X\\(.*\\)$as_nl";
94080	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
94081      esac;
94082      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
94083    '
94084    export as_echo_n_body
94085    as_echo_n='sh -c $as_echo_n_body as_echo'
94086  fi
94087  export as_echo_body
94088  as_echo='sh -c $as_echo_body as_echo'
94089fi
94090
94091# The user is always right.
94092if test "${PATH_SEPARATOR+set}" != set; then
94093  PATH_SEPARATOR=:
94094  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
94095    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
94096      PATH_SEPARATOR=';'
94097  }
94098fi
94099
94100
94101# IFS
94102# We need space, tab and new line, in precisely that order.  Quoting is
94103# there to prevent editors from complaining about space-tab.
94104# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94105# splitting by setting IFS to empty value.)
94106IFS=" ""	$as_nl"
94107
94108# Find who we are.  Look in the path if we contain no directory separator.
94109as_myself=
94110case $0 in #((
94111  *[\\/]* ) as_myself=$0 ;;
94112  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94113for as_dir in $PATH
94114do
94115  IFS=$as_save_IFS
94116  test -z "$as_dir" && as_dir=.
94117    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94118  done
94119IFS=$as_save_IFS
94120
94121     ;;
94122esac
94123# We did not find ourselves, most probably we were run as `sh COMMAND'
94124# in which case we are not to be found in the path.
94125if test "x$as_myself" = x; then
94126  as_myself=$0
94127fi
94128if test ! -f "$as_myself"; then
94129  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94130  exit 1
94131fi
94132
94133# Unset variables that we do not need and which cause bugs (e.g. in
94134# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
94135# suppresses any "Segmentation fault" message there.  '((' could
94136# trigger a bug in pdksh 5.2.14.
94137for as_var in BASH_ENV ENV MAIL MAILPATH
94138do eval test x\${$as_var+set} = xset \
94139  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
94140done
94141PS1='$ '
94142PS2='> '
94143PS4='+ '
94144
94145# NLS nuisances.
94146LC_ALL=C
94147export LC_ALL
94148LANGUAGE=C
94149export LANGUAGE
94150
94151# CDPATH.
94152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
94153
94154
94155# as_fn_error STATUS ERROR [LINENO LOG_FD]
94156# ----------------------------------------
94157# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
94158# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
94159# script with STATUS, using 1 if that was 0.
94160as_fn_error ()
94161{
94162  as_status=$1; test $as_status -eq 0 && as_status=1
94163  if test "$4"; then
94164    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
94165    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
94166  fi
94167  $as_echo "$as_me: error: $2" >&2
94168  as_fn_exit $as_status
94169} # as_fn_error
94170
94171
94172# as_fn_set_status STATUS
94173# -----------------------
94174# Set $? to STATUS, without forking.
94175as_fn_set_status ()
94176{
94177  return $1
94178} # as_fn_set_status
94179
94180# as_fn_exit STATUS
94181# -----------------
94182# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
94183as_fn_exit ()
94184{
94185  set +e
94186  as_fn_set_status $1
94187  exit $1
94188} # as_fn_exit
94189
94190# as_fn_unset VAR
94191# ---------------
94192# Portably unset VAR.
94193as_fn_unset ()
94194{
94195  { eval $1=; unset $1;}
94196}
94197as_unset=as_fn_unset
94198# as_fn_append VAR VALUE
94199# ----------------------
94200# Append the text in VALUE to the end of the definition contained in VAR. Take
94201# advantage of any shell optimizations that allow amortized linear growth over
94202# repeated appends, instead of the typical quadratic growth present in naive
94203# implementations.
94204if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
94205  eval 'as_fn_append ()
94206  {
94207    eval $1+=\$2
94208  }'
94209else
94210  as_fn_append ()
94211  {
94212    eval $1=\$$1\$2
94213  }
94214fi # as_fn_append
94215
94216# as_fn_arith ARG...
94217# ------------------
94218# Perform arithmetic evaluation on the ARGs, and store the result in the
94219# global $as_val. Take advantage of shells that can avoid forks. The arguments
94220# must be portable across $(()) and expr.
94221if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
94222  eval 'as_fn_arith ()
94223  {
94224    as_val=$(( $* ))
94225  }'
94226else
94227  as_fn_arith ()
94228  {
94229    as_val=`expr "$@" || test $? -eq 1`
94230  }
94231fi # as_fn_arith
94232
94233
94234if expr a : '\(a\)' >/dev/null 2>&1 &&
94235   test "X`expr 00001 : '.*\(...\)'`" = X001; then
94236  as_expr=expr
94237else
94238  as_expr=false
94239fi
94240
94241if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
94242  as_basename=basename
94243else
94244  as_basename=false
94245fi
94246
94247if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
94248  as_dirname=dirname
94249else
94250  as_dirname=false
94251fi
94252
94253as_me=`$as_basename -- "$0" ||
94254$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
94255	 X"$0" : 'X\(//\)$' \| \
94256	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
94257$as_echo X/"$0" |
94258    sed '/^.*\/\([^/][^/]*\)\/*$/{
94259	    s//\1/
94260	    q
94261	  }
94262	  /^X\/\(\/\/\)$/{
94263	    s//\1/
94264	    q
94265	  }
94266	  /^X\/\(\/\).*/{
94267	    s//\1/
94268	    q
94269	  }
94270	  s/.*/./; q'`
94271
94272# Avoid depending upon Character Ranges.
94273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
94274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
94275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
94276as_cr_digits='0123456789'
94277as_cr_alnum=$as_cr_Letters$as_cr_digits
94278
94279ECHO_C= ECHO_N= ECHO_T=
94280case `echo -n x` in #(((((
94281-n*)
94282  case `echo 'xy\c'` in
94283  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
94284  xy)  ECHO_C='\c';;
94285  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
94286       ECHO_T='	';;
94287  esac;;
94288*)
94289  ECHO_N='-n';;
94290esac
94291
94292rm -f conf$$ conf$$.exe conf$$.file
94293if test -d conf$$.dir; then
94294  rm -f conf$$.dir/conf$$.file
94295else
94296  rm -f conf$$.dir
94297  mkdir conf$$.dir 2>/dev/null
94298fi
94299if (echo >conf$$.file) 2>/dev/null; then
94300  if ln -s conf$$.file conf$$ 2>/dev/null; then
94301    as_ln_s='ln -s'
94302    # ... but there are two gotchas:
94303    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
94304    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
94305    # In both cases, we have to default to `cp -pR'.
94306    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
94307      as_ln_s='cp -pR'
94308  elif ln conf$$.file conf$$ 2>/dev/null; then
94309    as_ln_s=ln
94310  else
94311    as_ln_s='cp -pR'
94312  fi
94313else
94314  as_ln_s='cp -pR'
94315fi
94316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
94317rmdir conf$$.dir 2>/dev/null
94318
94319
94320# as_fn_mkdir_p
94321# -------------
94322# Create "$as_dir" as a directory, including parents if necessary.
94323as_fn_mkdir_p ()
94324{
94325
94326  case $as_dir in #(
94327  -*) as_dir=./$as_dir;;
94328  esac
94329  test -d "$as_dir" || eval $as_mkdir_p || {
94330    as_dirs=
94331    while :; do
94332      case $as_dir in #(
94333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
94334      *) as_qdir=$as_dir;;
94335      esac
94336      as_dirs="'$as_qdir' $as_dirs"
94337      as_dir=`$as_dirname -- "$as_dir" ||
94338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
94339	 X"$as_dir" : 'X\(//\)[^/]' \| \
94340	 X"$as_dir" : 'X\(//\)$' \| \
94341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
94342$as_echo X"$as_dir" |
94343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
94344	    s//\1/
94345	    q
94346	  }
94347	  /^X\(\/\/\)[^/].*/{
94348	    s//\1/
94349	    q
94350	  }
94351	  /^X\(\/\/\)$/{
94352	    s//\1/
94353	    q
94354	  }
94355	  /^X\(\/\).*/{
94356	    s//\1/
94357	    q
94358	  }
94359	  s/.*/./; q'`
94360      test -d "$as_dir" && break
94361    done
94362    test -z "$as_dirs" || eval "mkdir $as_dirs"
94363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
94364
94365
94366} # as_fn_mkdir_p
94367if mkdir -p . 2>/dev/null; then
94368  as_mkdir_p='mkdir -p "$as_dir"'
94369else
94370  test -d ./-p && rmdir ./-p
94371  as_mkdir_p=false
94372fi
94373
94374
94375# as_fn_executable_p FILE
94376# -----------------------
94377# Test if FILE is an executable regular file.
94378as_fn_executable_p ()
94379{
94380  test -f "$1" && test -x "$1"
94381} # as_fn_executable_p
94382as_test_x='test -x'
94383as_executable_p=as_fn_executable_p
94384
94385# Sed expression to map a string onto a valid CPP name.
94386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
94387
94388# Sed expression to map a string onto a valid variable name.
94389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
94390
94391
94392exec 6>&1
94393## ----------------------------------- ##
94394## Main body of $CONFIG_STATUS script. ##
94395## ----------------------------------- ##
94396_ASEOF
94397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
94398
94399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
94400# Save the log message, to keep $0 and so on meaningful, and to
94401# report actual input values of CONFIG_FILES etc. instead of their
94402# values after options handling.
94403ac_log="
94404This file was extended by GStreamer Bad Plug-ins $as_me 1.16.2, which was
94405generated by GNU Autoconf 2.69.  Invocation command line was
94406
94407  CONFIG_FILES    = $CONFIG_FILES
94408  CONFIG_HEADERS  = $CONFIG_HEADERS
94409  CONFIG_LINKS    = $CONFIG_LINKS
94410  CONFIG_COMMANDS = $CONFIG_COMMANDS
94411  $ $0 $@
94412
94413on `(hostname || uname -n) 2>/dev/null | sed 1q`
94414"
94415
94416_ACEOF
94417
94418case $ac_config_files in *"
94419"*) set x $ac_config_files; shift; ac_config_files=$*;;
94420esac
94421
94422case $ac_config_headers in *"
94423"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
94424esac
94425
94426
94427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94428# Files that config.status was made for.
94429config_files="$ac_config_files"
94430config_headers="$ac_config_headers"
94431config_commands="$ac_config_commands"
94432
94433_ACEOF
94434
94435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
94436ac_cs_usage="\
94437\`$as_me' instantiates files and other configuration actions
94438from templates according to the current configuration.  Unless the files
94439and actions are specified as TAGs, all are instantiated by default.
94440
94441Usage: $0 [OPTION]... [TAG]...
94442
94443  -h, --help       print this help, then exit
94444  -V, --version    print version number and configuration settings, then exit
94445      --config     print configuration, then exit
94446  -q, --quiet, --silent
94447                   do not print progress messages
94448  -d, --debug      don't remove temporary files
94449      --recheck    update $as_me by reconfiguring in the same conditions
94450      --file=FILE[:TEMPLATE]
94451                   instantiate the configuration file FILE
94452      --header=FILE[:TEMPLATE]
94453                   instantiate the configuration header FILE
94454
94455Configuration files:
94456$config_files
94457
94458Configuration headers:
94459$config_headers
94460
94461Configuration commands:
94462$config_commands
94463
94464Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>."
94465
94466_ACEOF
94467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94468ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
94469ac_cs_version="\\
94470GStreamer Bad Plug-ins config.status 1.16.2
94471configured by $0, generated by GNU Autoconf 2.69,
94472  with options \\"\$ac_cs_config\\"
94473
94474Copyright (C) 2012 Free Software Foundation, Inc.
94475This config.status script is free software; the Free Software Foundation
94476gives unlimited permission to copy, distribute and modify it."
94477
94478ac_pwd='$ac_pwd'
94479srcdir='$srcdir'
94480INSTALL='$INSTALL'
94481MKDIR_P='$MKDIR_P'
94482AWK='$AWK'
94483test -n "\$AWK" || AWK=awk
94484_ACEOF
94485
94486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
94487# The default lists apply if the user does not specify any file.
94488ac_need_defaults=:
94489while test $# != 0
94490do
94491  case $1 in
94492  --*=?*)
94493    ac_option=`expr "X$1" : 'X\([^=]*\)='`
94494    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
94495    ac_shift=:
94496    ;;
94497  --*=)
94498    ac_option=`expr "X$1" : 'X\([^=]*\)='`
94499    ac_optarg=
94500    ac_shift=:
94501    ;;
94502  *)
94503    ac_option=$1
94504    ac_optarg=$2
94505    ac_shift=shift
94506    ;;
94507  esac
94508
94509  case $ac_option in
94510  # Handling of the options.
94511  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
94512    ac_cs_recheck=: ;;
94513  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
94514    $as_echo "$ac_cs_version"; exit ;;
94515  --config | --confi | --conf | --con | --co | --c )
94516    $as_echo "$ac_cs_config"; exit ;;
94517  --debug | --debu | --deb | --de | --d | -d )
94518    debug=: ;;
94519  --file | --fil | --fi | --f )
94520    $ac_shift
94521    case $ac_optarg in
94522    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
94523    '') as_fn_error $? "missing file argument" ;;
94524    esac
94525    as_fn_append CONFIG_FILES " '$ac_optarg'"
94526    ac_need_defaults=false;;
94527  --header | --heade | --head | --hea )
94528    $ac_shift
94529    case $ac_optarg in
94530    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
94531    esac
94532    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
94533    ac_need_defaults=false;;
94534  --he | --h)
94535    # Conflict between --help and --header
94536    as_fn_error $? "ambiguous option: \`$1'
94537Try \`$0 --help' for more information.";;
94538  --help | --hel | -h )
94539    $as_echo "$ac_cs_usage"; exit ;;
94540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
94541  | -silent | --silent | --silen | --sile | --sil | --si | --s)
94542    ac_cs_silent=: ;;
94543
94544  # This is an error.
94545  -*) as_fn_error $? "unrecognized option: \`$1'
94546Try \`$0 --help' for more information." ;;
94547
94548  *) as_fn_append ac_config_targets " $1"
94549     ac_need_defaults=false ;;
94550
94551  esac
94552  shift
94553done
94554
94555ac_configure_extra_args=
94556
94557if $ac_cs_silent; then
94558  exec 6>/dev/null
94559  ac_configure_extra_args="$ac_configure_extra_args --silent"
94560fi
94561
94562_ACEOF
94563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94564if \$ac_cs_recheck; then
94565  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
94566  shift
94567  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
94568  CONFIG_SHELL='$SHELL'
94569  export CONFIG_SHELL
94570  exec "\$@"
94571fi
94572
94573_ACEOF
94574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
94575exec 5>>config.log
94576{
94577  echo
94578  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
94579## Running $as_me. ##
94580_ASBOX
94581  $as_echo "$ac_log"
94582} >&5
94583
94584_ACEOF
94585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
94586#
94587# INIT-COMMANDS
94588#
94589AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
94590
94591
94592# The HP-UX ksh and POSIX shell print the target directory to stdout
94593# if CDPATH is set.
94594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
94595
94596sed_quote_subst='$sed_quote_subst'
94597double_quote_subst='$double_quote_subst'
94598delay_variable_subst='$delay_variable_subst'
94599macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
94600macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
94601AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
94602DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
94603OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
94604enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
94605enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
94606pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
94607enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
94608shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
94609SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
94610ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
94611PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
94612host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
94613host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
94614host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
94615build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
94616build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
94617build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
94618SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
94619Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
94620GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
94621EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
94622FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
94623LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
94624NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
94625LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
94626max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
94627ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
94628exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
94629lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
94630lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
94631lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
94632lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
94633lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
94634reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
94635reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
94636deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
94637file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
94638file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
94639want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
94640sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
94641AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
94642AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
94643archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
94644STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
94645RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
94646old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
94647old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
94648old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
94649lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
94650CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
94651CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
94652compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
94653GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
94654lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
94655lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
94656lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
94657lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
94658lt_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"`'
94659lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
94660nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
94661lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
94662lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
94663objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
94664MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
94665lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
94666lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
94667lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
94668lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
94669lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
94670need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
94671MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
94672DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
94673NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
94674LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
94675OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
94676OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
94677libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
94678shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
94679extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
94680archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
94681enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
94682export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
94683whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
94684compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
94685old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
94686old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
94687archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
94688archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
94689module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
94690module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
94691with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
94692allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
94693no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
94694hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
94695hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
94696hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
94697hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
94698hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
94699hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
94700hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
94701inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
94702link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
94703always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
94704export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
94705exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
94706include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
94707prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
94708postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
94709file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
94710variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
94711need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
94712need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
94713version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
94714runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
94715shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
94716shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
94717libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
94718library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
94719soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
94720install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
94721postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
94722postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
94723finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
94724finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
94725hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
94726sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
94727configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
94728configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
94729hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
94730enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
94731enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
94732enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
94733old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
94734striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
94735compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
94736predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
94737postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
94738predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
94739postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
94740compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
94741LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
94742reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
94743reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94744old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94745compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
94746GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
94747lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
94748lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
94749lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
94750lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
94751lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
94752archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
94753enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
94754export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
94755whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
94756compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
94757old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94758old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94759archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94760archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94761module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94762module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94763with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
94764allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
94765no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
94766hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
94767hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
94768hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
94769hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
94770hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
94771hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
94772hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
94773inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
94774link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
94775always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
94776export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94777exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
94778include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
94779prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94780postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
94781file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
94782hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
94783compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
94784predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
94785postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
94786predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
94787postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
94788compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
94789
94790LTCC='$LTCC'
94791LTCFLAGS='$LTCFLAGS'
94792compiler='$compiler_DEFAULT'
94793
94794# A function that is used when there is no print builtin or printf.
94795func_fallback_echo ()
94796{
94797  eval 'cat <<_LTECHO_EOF
94798\$1
94799_LTECHO_EOF'
94800}
94801
94802# Quote evaled strings.
94803for var in AS \
94804DLLTOOL \
94805OBJDUMP \
94806SHELL \
94807ECHO \
94808PATH_SEPARATOR \
94809SED \
94810GREP \
94811EGREP \
94812FGREP \
94813LD \
94814NM \
94815LN_S \
94816lt_SP2NL \
94817lt_NL2SP \
94818reload_flag \
94819deplibs_check_method \
94820file_magic_cmd \
94821file_magic_glob \
94822want_nocaseglob \
94823sharedlib_from_linklib_cmd \
94824AR \
94825AR_FLAGS \
94826archiver_list_spec \
94827STRIP \
94828RANLIB \
94829CC \
94830CFLAGS \
94831compiler \
94832lt_cv_sys_global_symbol_pipe \
94833lt_cv_sys_global_symbol_to_cdecl \
94834lt_cv_sys_global_symbol_to_import \
94835lt_cv_sys_global_symbol_to_c_name_address \
94836lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
94837lt_cv_nm_interface \
94838nm_file_list_spec \
94839lt_cv_truncate_bin \
94840lt_prog_compiler_no_builtin_flag \
94841lt_prog_compiler_pic \
94842lt_prog_compiler_wl \
94843lt_prog_compiler_static \
94844lt_cv_prog_compiler_c_o \
94845need_locks \
94846MANIFEST_TOOL \
94847DSYMUTIL \
94848NMEDIT \
94849LIPO \
94850OTOOL \
94851OTOOL64 \
94852shrext_cmds \
94853export_dynamic_flag_spec \
94854whole_archive_flag_spec \
94855compiler_needs_object \
94856with_gnu_ld \
94857allow_undefined_flag \
94858no_undefined_flag \
94859hardcode_libdir_flag_spec \
94860hardcode_libdir_separator \
94861exclude_expsyms \
94862include_expsyms \
94863file_list_spec \
94864variables_saved_for_relink \
94865libname_spec \
94866library_names_spec \
94867soname_spec \
94868install_override_mode \
94869finish_eval \
94870old_striplib \
94871striplib \
94872compiler_lib_search_dirs \
94873predep_objects \
94874postdep_objects \
94875predeps \
94876postdeps \
94877compiler_lib_search_path \
94878LD_CXX \
94879reload_flag_CXX \
94880compiler_CXX \
94881lt_prog_compiler_no_builtin_flag_CXX \
94882lt_prog_compiler_pic_CXX \
94883lt_prog_compiler_wl_CXX \
94884lt_prog_compiler_static_CXX \
94885lt_cv_prog_compiler_c_o_CXX \
94886export_dynamic_flag_spec_CXX \
94887whole_archive_flag_spec_CXX \
94888compiler_needs_object_CXX \
94889with_gnu_ld_CXX \
94890allow_undefined_flag_CXX \
94891no_undefined_flag_CXX \
94892hardcode_libdir_flag_spec_CXX \
94893hardcode_libdir_separator_CXX \
94894exclude_expsyms_CXX \
94895include_expsyms_CXX \
94896file_list_spec_CXX \
94897compiler_lib_search_dirs_CXX \
94898predep_objects_CXX \
94899postdep_objects_CXX \
94900predeps_CXX \
94901postdeps_CXX \
94902compiler_lib_search_path_CXX; do
94903    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
94904    *[\\\\\\\`\\"\\\$]*)
94905      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
94906      ;;
94907    *)
94908      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
94909      ;;
94910    esac
94911done
94912
94913# Double-quote double-evaled strings.
94914for var in reload_cmds \
94915old_postinstall_cmds \
94916old_postuninstall_cmds \
94917old_archive_cmds \
94918extract_expsyms_cmds \
94919old_archive_from_new_cmds \
94920old_archive_from_expsyms_cmds \
94921archive_cmds \
94922archive_expsym_cmds \
94923module_cmds \
94924module_expsym_cmds \
94925export_symbols_cmds \
94926prelink_cmds \
94927postlink_cmds \
94928postinstall_cmds \
94929postuninstall_cmds \
94930finish_cmds \
94931sys_lib_search_path_spec \
94932configure_time_dlsearch_path \
94933configure_time_lt_sys_library_path \
94934reload_cmds_CXX \
94935old_archive_cmds_CXX \
94936old_archive_from_new_cmds_CXX \
94937old_archive_from_expsyms_cmds_CXX \
94938archive_cmds_CXX \
94939archive_expsym_cmds_CXX \
94940module_cmds_CXX \
94941module_expsym_cmds_CXX \
94942export_symbols_cmds_CXX \
94943prelink_cmds_CXX \
94944postlink_cmds_CXX; do
94945    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
94946    *[\\\\\\\`\\"\\\$]*)
94947      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
94948      ;;
94949    *)
94950      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
94951      ;;
94952    esac
94953done
94954
94955ac_aux_dir='$ac_aux_dir'
94956
94957# See if we are running on zsh, and set the options that allow our
94958# commands through without removal of \ escapes INIT.
94959if test -n "\${ZSH_VERSION+set}"; then
94960   setopt NO_GLOB_SUBST
94961fi
94962
94963
94964    PACKAGE='$PACKAGE'
94965    VERSION='$VERSION'
94966    RM='$RM'
94967    ofile='$ofile'
94968
94969
94970
94971
94972
94973# Capture the value of obsolete ALL_LINGUAS because we need it to compute
94974    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
94975    # from automake < 1.5.
94976    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
94977    # Capture the value of LINGUAS because we need it to compute CATALOGS.
94978    LINGUAS="${LINGUAS-%UNSET%}"
94979
94980# variables for create stdint.h replacement
94981PACKAGE="$PACKAGE"
94982VERSION="$VERSION"
94983ac_stdint_h="$ac_stdint_h"
94984_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
94985ac_cv_stdint_message="$ac_cv_stdint_message"
94986ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
94987ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
94988ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
94989ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
94990ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
94991ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
94992ac_cv_char_data_model="$ac_cv_char_data_model"
94993ac_cv_long_data_model="$ac_cv_long_data_model"
94994ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
94995ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
94996ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
94997
94998
94999vulkan_config_defines='$VULKAN_CONFIG_DEFINES'
95000
95001
95002_ACEOF
95003
95004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95005
95006# Handling of arguments.
95007for ac_config_target in $ac_config_targets
95008do
95009  case $ac_config_target in
95010    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
95011    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
95012    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
95013    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
95014    "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
95015    "ext/vulkan/vkconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ext/vulkan/vkconfig.h" ;;
95016    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
95017    "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
95018    "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
95019    "gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst/Makefile" ;;
95020    "gst/accurip/Makefile") CONFIG_FILES="$CONFIG_FILES gst/accurip/Makefile" ;;
95021    "gst/adpcmdec/Makefile") CONFIG_FILES="$CONFIG_FILES gst/adpcmdec/Makefile" ;;
95022    "gst/adpcmenc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/adpcmenc/Makefile" ;;
95023    "gst/aiff/Makefile") CONFIG_FILES="$CONFIG_FILES gst/aiff/Makefile" ;;
95024    "gst/videoframe_audiolevel/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videoframe_audiolevel/Makefile" ;;
95025    "gst/asfmux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/asfmux/Makefile" ;;
95026    "gst/audiobuffersplit/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiobuffersplit/Makefile" ;;
95027    "gst/audiofxbad/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiofxbad/Makefile" ;;
95028    "gst/audiolatency/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiolatency/Makefile" ;;
95029    "gst/audiomixmatrix/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiomixmatrix/Makefile" ;;
95030    "gst/audiovisualizers/Makefile") CONFIG_FILES="$CONFIG_FILES gst/audiovisualizers/Makefile" ;;
95031    "gst/autoconvert/Makefile") CONFIG_FILES="$CONFIG_FILES gst/autoconvert/Makefile" ;;
95032    "gst/bayer/Makefile") CONFIG_FILES="$CONFIG_FILES gst/bayer/Makefile" ;;
95033    "gst/camerabin2/Makefile") CONFIG_FILES="$CONFIG_FILES gst/camerabin2/Makefile" ;;
95034    "gst/coloreffects/Makefile") CONFIG_FILES="$CONFIG_FILES gst/coloreffects/Makefile" ;;
95035    "gst/debugutils/Makefile") CONFIG_FILES="$CONFIG_FILES gst/debugutils/Makefile" ;;
95036    "gst/dvbsuboverlay/Makefile") CONFIG_FILES="$CONFIG_FILES gst/dvbsuboverlay/Makefile" ;;
95037    "gst/dvdspu/Makefile") CONFIG_FILES="$CONFIG_FILES gst/dvdspu/Makefile" ;;
95038    "gst/faceoverlay/Makefile") CONFIG_FILES="$CONFIG_FILES gst/faceoverlay/Makefile" ;;
95039    "gst/festival/Makefile") CONFIG_FILES="$CONFIG_FILES gst/festival/Makefile" ;;
95040    "gst/fieldanalysis/Makefile") CONFIG_FILES="$CONFIG_FILES gst/fieldanalysis/Makefile" ;;
95041    "gst/freeverb/Makefile") CONFIG_FILES="$CONFIG_FILES gst/freeverb/Makefile" ;;
95042    "gst/frei0r/Makefile") CONFIG_FILES="$CONFIG_FILES gst/frei0r/Makefile" ;;
95043    "gst/gaudieffects/Makefile") CONFIG_FILES="$CONFIG_FILES gst/gaudieffects/Makefile" ;;
95044    "gst/geometrictransform/Makefile") CONFIG_FILES="$CONFIG_FILES gst/geometrictransform/Makefile" ;;
95045    "gst/gdp/Makefile") CONFIG_FILES="$CONFIG_FILES gst/gdp/Makefile" ;;
95046    "gst/id3tag/Makefile") CONFIG_FILES="$CONFIG_FILES gst/id3tag/Makefile" ;;
95047    "gst/inter/Makefile") CONFIG_FILES="$CONFIG_FILES gst/inter/Makefile" ;;
95048    "gst/interlace/Makefile") CONFIG_FILES="$CONFIG_FILES gst/interlace/Makefile" ;;
95049    "gst/ivfparse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/ivfparse/Makefile" ;;
95050    "gst/ivtc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/ivtc/Makefile" ;;
95051    "gst/jp2kdecimator/Makefile") CONFIG_FILES="$CONFIG_FILES gst/jp2kdecimator/Makefile" ;;
95052    "gst/jpegformat/Makefile") CONFIG_FILES="$CONFIG_FILES gst/jpegformat/Makefile" ;;
95053    "gst/librfb/Makefile") CONFIG_FILES="$CONFIG_FILES gst/librfb/Makefile" ;;
95054    "gst/midi/Makefile") CONFIG_FILES="$CONFIG_FILES gst/midi/Makefile" ;;
95055    "gst/mpegdemux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mpegdemux/Makefile" ;;
95056    "gst/mpegtsdemux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mpegtsdemux/Makefile" ;;
95057    "gst/mpegtsmux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mpegtsmux/Makefile" ;;
95058    "gst/mpegtsmux/tsmux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mpegtsmux/tsmux/Makefile" ;;
95059    "gst/mpegpsmux/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mpegpsmux/Makefile" ;;
95060    "gst/mxf/Makefile") CONFIG_FILES="$CONFIG_FILES gst/mxf/Makefile" ;;
95061    "gst/netsim/Makefile") CONFIG_FILES="$CONFIG_FILES gst/netsim/Makefile" ;;
95062    "gst/onvif/Makefile") CONFIG_FILES="$CONFIG_FILES gst/onvif/Makefile" ;;
95063    "gst/pcapparse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/pcapparse/Makefile" ;;
95064    "gst/pnm/Makefile") CONFIG_FILES="$CONFIG_FILES gst/pnm/Makefile" ;;
95065    "gst/proxy/Makefile") CONFIG_FILES="$CONFIG_FILES gst/proxy/Makefile" ;;
95066    "gst/rawparse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/rawparse/Makefile" ;;
95067    "gst/removesilence/Makefile") CONFIG_FILES="$CONFIG_FILES gst/removesilence/Makefile" ;;
95068    "gst/sdp/Makefile") CONFIG_FILES="$CONFIG_FILES gst/sdp/Makefile" ;;
95069    "gst/segmentclip/Makefile") CONFIG_FILES="$CONFIG_FILES gst/segmentclip/Makefile" ;;
95070    "gst/siren/Makefile") CONFIG_FILES="$CONFIG_FILES gst/siren/Makefile" ;;
95071    "gst/smooth/Makefile") CONFIG_FILES="$CONFIG_FILES gst/smooth/Makefile" ;;
95072    "gst/speed/Makefile") CONFIG_FILES="$CONFIG_FILES gst/speed/Makefile" ;;
95073    "gst/subenc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/subenc/Makefile" ;;
95074    "gst/timecode/Makefile") CONFIG_FILES="$CONFIG_FILES gst/timecode/Makefile" ;;
95075    "gst/videofilters/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videofilters/Makefile" ;;
95076    "gst/videoparsers/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videoparsers/Makefile" ;;
95077    "gst/videosignal/Makefile") CONFIG_FILES="$CONFIG_FILES gst/videosignal/Makefile" ;;
95078    "gst/vmnc/Makefile") CONFIG_FILES="$CONFIG_FILES gst/vmnc/Makefile" ;;
95079    "gst/y4m/Makefile") CONFIG_FILES="$CONFIG_FILES gst/y4m/Makefile" ;;
95080    "gst/yadif/Makefile") CONFIG_FILES="$CONFIG_FILES gst/yadif/Makefile" ;;
95081    "gst-libs/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/Makefile" ;;
95082    "gst-libs/gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/Makefile" ;;
95083    "gst-libs/gst/adaptivedemux/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/adaptivedemux/Makefile" ;;
95084    "gst-libs/gst/basecamerabinsrc/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/basecamerabinsrc/Makefile" ;;
95085    "gst-libs/gst/insertbin/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/insertbin/Makefile" ;;
95086    "gst-libs/gst/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/interfaces/Makefile" ;;
95087    "gst-libs/gst/isoff/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/isoff/Makefile" ;;
95088    "gst-libs/gst/codecparsers/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/codecparsers/Makefile" ;;
95089    "gst-libs/gst/mpegts/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/mpegts/Makefile" ;;
95090    "gst-libs/gst/sctp/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/sctp/Makefile" ;;
95091    "gst-libs/gst/uridownloader/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/uridownloader/Makefile" ;;
95092    "gst-libs/gst/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/wayland/Makefile" ;;
95093    "gst-libs/gst/webrtc/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/webrtc/Makefile" ;;
95094    "gst-libs/gst/player/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/player/Makefile" ;;
95095    "gst-libs/gst/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/audio/Makefile" ;;
95096    "gst-libs/gst/opencv/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/gst/opencv/Makefile" ;;
95097    "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
95098    "sys/dshowdecwrapper/Makefile") CONFIG_FILES="$CONFIG_FILES sys/dshowdecwrapper/Makefile" ;;
95099    "sys/androidmedia/Makefile") CONFIG_FILES="$CONFIG_FILES sys/androidmedia/Makefile" ;;
95100    "sys/applemedia/Makefile") CONFIG_FILES="$CONFIG_FILES sys/applemedia/Makefile" ;;
95101    "sys/bluez/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bluez/Makefile" ;;
95102    "sys/d3dvideosink/Makefile") CONFIG_FILES="$CONFIG_FILES sys/d3dvideosink/Makefile" ;;
95103    "sys/decklink/Makefile") CONFIG_FILES="$CONFIG_FILES sys/decklink/Makefile" ;;
95104    "sys/directsound/Makefile") CONFIG_FILES="$CONFIG_FILES sys/directsound/Makefile" ;;
95105    "sys/dshowsrcwrapper/Makefile") CONFIG_FILES="$CONFIG_FILES sys/dshowsrcwrapper/Makefile" ;;
95106    "sys/dshowvideosink/Makefile") CONFIG_FILES="$CONFIG_FILES sys/dshowvideosink/Makefile" ;;
95107    "sys/dvb/Makefile") CONFIG_FILES="$CONFIG_FILES sys/dvb/Makefile" ;;
95108    "sys/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES sys/fbdev/Makefile" ;;
95109    "sys/ipcpipeline/Makefile") CONFIG_FILES="$CONFIG_FILES sys/ipcpipeline/Makefile" ;;
95110    "sys/kms/Makefile") CONFIG_FILES="$CONFIG_FILES sys/kms/Makefile" ;;
95111    "sys/msdk/Makefile") CONFIG_FILES="$CONFIG_FILES sys/msdk/Makefile" ;;
95112    "sys/nvdec/Makefile") CONFIG_FILES="$CONFIG_FILES sys/nvdec/Makefile" ;;
95113    "sys/nvenc/Makefile") CONFIG_FILES="$CONFIG_FILES sys/nvenc/Makefile" ;;
95114    "sys/opensles/Makefile") CONFIG_FILES="$CONFIG_FILES sys/opensles/Makefile" ;;
95115    "sys/shm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/shm/Makefile" ;;
95116    "sys/tinyalsa/Makefile") CONFIG_FILES="$CONFIG_FILES sys/tinyalsa/Makefile" ;;
95117    "sys/uvch264/Makefile") CONFIG_FILES="$CONFIG_FILES sys/uvch264/Makefile" ;;
95118    "sys/vdpau/Makefile") CONFIG_FILES="$CONFIG_FILES sys/vdpau/Makefile" ;;
95119    "sys/wasapi/Makefile") CONFIG_FILES="$CONFIG_FILES sys/wasapi/Makefile" ;;
95120    "sys/winks/Makefile") CONFIG_FILES="$CONFIG_FILES sys/winks/Makefile" ;;
95121    "sys/winscreencap/Makefile") CONFIG_FILES="$CONFIG_FILES sys/winscreencap/Makefile" ;;
95122    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
95123    "tests/check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/check/Makefile" ;;
95124    "tests/files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/files/Makefile" ;;
95125    "tests/examples/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/Makefile" ;;
95126    "tests/examples/avsamplesink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/avsamplesink/Makefile" ;;
95127    "tests/examples/camerabin2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/camerabin2/Makefile" ;;
95128    "tests/examples/codecparsers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/codecparsers/Makefile" ;;
95129    "tests/examples/directfb/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/directfb/Makefile" ;;
95130    "tests/examples/audiomixmatrix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/audiomixmatrix/Makefile" ;;
95131    "tests/examples/ipcpipeline/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/ipcpipeline/Makefile" ;;
95132    "tests/examples/mpegts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/mpegts/Makefile" ;;
95133    "tests/examples/mxf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/mxf/Makefile" ;;
95134    "tests/examples/opencv/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/opencv/Makefile" ;;
95135    "tests/examples/uvch264/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/uvch264/Makefile" ;;
95136    "tests/examples/waylandsink/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/waylandsink/Makefile" ;;
95137    "tests/examples/webrtc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/webrtc/Makefile" ;;
95138    "tests/icles/Makefile") CONFIG_FILES="$CONFIG_FILES tests/icles/Makefile" ;;
95139    "ext/voamrwbenc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/voamrwbenc/Makefile" ;;
95140    "ext/voaacenc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/voaacenc/Makefile" ;;
95141    "ext/assrender/Makefile") CONFIG_FILES="$CONFIG_FILES ext/assrender/Makefile" ;;
95142    "ext/aom/Makefile") CONFIG_FILES="$CONFIG_FILES ext/aom/Makefile" ;;
95143    "ext/bs2b/Makefile") CONFIG_FILES="$CONFIG_FILES ext/bs2b/Makefile" ;;
95144    "ext/bz2/Makefile") CONFIG_FILES="$CONFIG_FILES ext/bz2/Makefile" ;;
95145    "ext/chromaprint/Makefile") CONFIG_FILES="$CONFIG_FILES ext/chromaprint/Makefile" ;;
95146    "ext/closedcaption/Makefile") CONFIG_FILES="$CONFIG_FILES ext/closedcaption/Makefile" ;;
95147    "ext/colormanagement/Makefile") CONFIG_FILES="$CONFIG_FILES ext/colormanagement/Makefile" ;;
95148    "ext/curl/Makefile") CONFIG_FILES="$CONFIG_FILES ext/curl/Makefile" ;;
95149    "ext/dash/Makefile") CONFIG_FILES="$CONFIG_FILES ext/dash/Makefile" ;;
95150    "ext/dc1394/Makefile") CONFIG_FILES="$CONFIG_FILES ext/dc1394/Makefile" ;;
95151    "ext/directfb/Makefile") CONFIG_FILES="$CONFIG_FILES ext/directfb/Makefile" ;;
95152    "ext/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES ext/wayland/Makefile" ;;
95153    "ext/dts/Makefile") CONFIG_FILES="$CONFIG_FILES ext/dts/Makefile" ;;
95154    "ext/faac/Makefile") CONFIG_FILES="$CONFIG_FILES ext/faac/Makefile" ;;
95155    "ext/faad/Makefile") CONFIG_FILES="$CONFIG_FILES ext/faad/Makefile" ;;
95156    "ext/fdkaac/Makefile") CONFIG_FILES="$CONFIG_FILES ext/fdkaac/Makefile" ;;
95157    "ext/flite/Makefile") CONFIG_FILES="$CONFIG_FILES ext/flite/Makefile" ;;
95158    "ext/fluidsynth/Makefile") CONFIG_FILES="$CONFIG_FILES ext/fluidsynth/Makefile" ;;
95159    "ext/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES ext/gsm/Makefile" ;;
95160    "ext/hls/Makefile") CONFIG_FILES="$CONFIG_FILES ext/hls/Makefile" ;;
95161    "ext/iqa/Makefile") CONFIG_FILES="$CONFIG_FILES ext/iqa/Makefile" ;;
95162    "ext/kate/Makefile") CONFIG_FILES="$CONFIG_FILES ext/kate/Makefile" ;;
95163    "ext/ladspa/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ladspa/Makefile" ;;
95164    "ext/lv2/Makefile") CONFIG_FILES="$CONFIG_FILES ext/lv2/Makefile" ;;
95165    "ext/libde265/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libde265/Makefile" ;;
95166    "ext/libmms/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libmms/Makefile" ;;
95167    "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
95168    "ext/modplug/Makefile") CONFIG_FILES="$CONFIG_FILES ext/modplug/Makefile" ;;
95169    "ext/mpeg2enc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/mpeg2enc/Makefile" ;;
95170    "ext/mplex/Makefile") CONFIG_FILES="$CONFIG_FILES ext/mplex/Makefile" ;;
95171    "ext/musepack/Makefile") CONFIG_FILES="$CONFIG_FILES ext/musepack/Makefile" ;;
95172    "ext/neon/Makefile") CONFIG_FILES="$CONFIG_FILES ext/neon/Makefile" ;;
95173    "ext/ofa/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ofa/Makefile" ;;
95174    "ext/openal/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openal/Makefile" ;;
95175    "ext/opencv/Makefile") CONFIG_FILES="$CONFIG_FILES ext/opencv/Makefile" ;;
95176    "ext/openexr/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openexr/Makefile" ;;
95177    "ext/openh264/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openh264/Makefile" ;;
95178    "ext/openjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openjpeg/Makefile" ;;
95179    "ext/openmpt/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openmpt/Makefile" ;;
95180    "ext/openni2/Makefile") CONFIG_FILES="$CONFIG_FILES ext/openni2/Makefile" ;;
95181    "ext/opus/Makefile") CONFIG_FILES="$CONFIG_FILES ext/opus/Makefile" ;;
95182    "ext/rsvg/Makefile") CONFIG_FILES="$CONFIG_FILES ext/rsvg/Makefile" ;;
95183    "ext/resindvd/Makefile") CONFIG_FILES="$CONFIG_FILES ext/resindvd/Makefile" ;;
95184    "ext/rtmp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/rtmp/Makefile" ;;
95185    "ext/sbc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/sbc/Makefile" ;;
95186    "ext/sctp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/sctp/Makefile" ;;
95187    "ext/smoothstreaming/Makefile") CONFIG_FILES="$CONFIG_FILES ext/smoothstreaming/Makefile" ;;
95188    "ext/sndfile/Makefile") CONFIG_FILES="$CONFIG_FILES ext/sndfile/Makefile" ;;
95189    "ext/soundtouch/Makefile") CONFIG_FILES="$CONFIG_FILES ext/soundtouch/Makefile" ;;
95190    "ext/spandsp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/spandsp/Makefile" ;;
95191    "ext/srt/Makefile") CONFIG_FILES="$CONFIG_FILES ext/srt/Makefile" ;;
95192    "ext/srtp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/srtp/Makefile" ;;
95193    "ext/teletextdec/Makefile") CONFIG_FILES="$CONFIG_FILES ext/teletextdec/Makefile" ;;
95194    "ext/gme/Makefile") CONFIG_FILES="$CONFIG_FILES ext/gme/Makefile" ;;
95195    "ext/wildmidi/Makefile") CONFIG_FILES="$CONFIG_FILES ext/wildmidi/Makefile" ;;
95196    "ext/vulkan/Makefile") CONFIG_FILES="$CONFIG_FILES ext/vulkan/Makefile" ;;
95197    "ext/vulkan/xcb/Makefile") CONFIG_FILES="$CONFIG_FILES ext/vulkan/xcb/Makefile" ;;
95198    "ext/vulkan/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES ext/vulkan/wayland/Makefile" ;;
95199    "ext/webp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/webp/Makefile" ;;
95200    "ext/x265/Makefile") CONFIG_FILES="$CONFIG_FILES ext/x265/Makefile" ;;
95201    "ext/zbar/Makefile") CONFIG_FILES="$CONFIG_FILES ext/zbar/Makefile" ;;
95202    "ext/dtls/Makefile") CONFIG_FILES="$CONFIG_FILES ext/dtls/Makefile" ;;
95203    "ext/webrtc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/webrtc/Makefile" ;;
95204    "ext/webrtcdsp/Makefile") CONFIG_FILES="$CONFIG_FILES ext/webrtcdsp/Makefile" ;;
95205    "ext/wpe/Makefile") CONFIG_FILES="$CONFIG_FILES ext/wpe/Makefile" ;;
95206    "ext/ttml/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ttml/Makefile" ;;
95207    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
95208    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
95209    "docs/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES docs/plugins/Makefile" ;;
95210    "docs/libs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libs/Makefile" ;;
95211    "docs/version.entities") CONFIG_FILES="$CONFIG_FILES docs/version.entities" ;;
95212    "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
95213    "pkgconfig/gstreamer-plugins-bad.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-plugins-bad.pc" ;;
95214    "pkgconfig/gstreamer-plugins-bad-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-plugins-bad-uninstalled.pc" ;;
95215    "pkgconfig/gstreamer-codecparsers.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-codecparsers.pc" ;;
95216    "pkgconfig/gstreamer-codecparsers-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-codecparsers-uninstalled.pc" ;;
95217    "pkgconfig/gstreamer-insertbin.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-insertbin.pc" ;;
95218    "pkgconfig/gstreamer-insertbin-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-insertbin-uninstalled.pc" ;;
95219    "pkgconfig/gstreamer-mpegts.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-mpegts.pc" ;;
95220    "pkgconfig/gstreamer-mpegts-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-mpegts-uninstalled.pc" ;;
95221    "pkgconfig/gstreamer-player.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-player.pc" ;;
95222    "pkgconfig/gstreamer-player-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-player-uninstalled.pc" ;;
95223    "pkgconfig/gstreamer-sctp.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-sctp.pc" ;;
95224    "pkgconfig/gstreamer-sctp-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-sctp-uninstalled.pc" ;;
95225    "pkgconfig/gstreamer-wayland.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-wayland.pc" ;;
95226    "pkgconfig/gstreamer-wayland-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-wayland-uninstalled.pc" ;;
95227    "pkgconfig/gstreamer-webrtc.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-webrtc.pc" ;;
95228    "pkgconfig/gstreamer-webrtc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-webrtc-uninstalled.pc" ;;
95229    "pkgconfig/gstreamer-bad-audio.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-bad-audio.pc" ;;
95230    "pkgconfig/gstreamer-bad-audio-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-bad-audio-uninstalled.pc" ;;
95231    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
95232    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
95233
95234  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
95235  esac
95236done
95237
95238
95239# If the user did not use the arguments to specify the items to instantiate,
95240# then the envvar interface is used.  Set only those that are not.
95241# We use the long form for the default assignment because of an extremely
95242# bizarre bug on SunOS 4.1.3.
95243if $ac_need_defaults; then
95244  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
95245  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
95246  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
95247fi
95248
95249# Have a temporary directory for convenience.  Make it in the build tree
95250# simply because there is no reason against having it here, and in addition,
95251# creating and moving files from /tmp can sometimes cause problems.
95252# Hook for its removal unless debugging.
95253# Note that there is a small window in which the directory will not be cleaned:
95254# after its creation but before its name has been assigned to `$tmp'.
95255$debug ||
95256{
95257  tmp= ac_tmp=
95258  trap 'exit_status=$?
95259  : "${ac_tmp:=$tmp}"
95260  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
95261' 0
95262  trap 'as_fn_exit 1' 1 2 13 15
95263}
95264# Create a (secure) tmp directory for tmp files.
95265
95266{
95267  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
95268  test -d "$tmp"
95269}  ||
95270{
95271  tmp=./conf$$-$RANDOM
95272  (umask 077 && mkdir "$tmp")
95273} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
95274ac_tmp=$tmp
95275
95276# Set up the scripts for CONFIG_FILES section.
95277# No need to generate them if there are no CONFIG_FILES.
95278# This happens for instance with `./config.status config.h'.
95279if test -n "$CONFIG_FILES"; then
95280
95281
95282ac_cr=`echo X | tr X '\015'`
95283# On cygwin, bash can eat \r inside `` if the user requested igncr.
95284# But we know of no other shell where ac_cr would be empty at this
95285# point, so we can use a bashism as a fallback.
95286if test "x$ac_cr" = x; then
95287  eval ac_cr=\$\'\\r\'
95288fi
95289ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
95290if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
95291  ac_cs_awk_cr='\\r'
95292else
95293  ac_cs_awk_cr=$ac_cr
95294fi
95295
95296echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
95297_ACEOF
95298
95299
95300{
95301  echo "cat >conf$$subs.awk <<_ACEOF" &&
95302  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
95303  echo "_ACEOF"
95304} >conf$$subs.sh ||
95305  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
95306ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
95307ac_delim='%!_!# '
95308for ac_last_try in false false false false false :; do
95309  . ./conf$$subs.sh ||
95310    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
95311
95312  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
95313  if test $ac_delim_n = $ac_delim_num; then
95314    break
95315  elif $ac_last_try; then
95316    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
95317  else
95318    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
95319  fi
95320done
95321rm -f conf$$subs.sh
95322
95323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
95324cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
95325_ACEOF
95326sed -n '
95327h
95328s/^/S["/; s/!.*/"]=/
95329p
95330g
95331s/^[^!]*!//
95332:repl
95333t repl
95334s/'"$ac_delim"'$//
95335t delim
95336:nl
95337h
95338s/\(.\{148\}\)..*/\1/
95339t more1
95340s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
95341p
95342n
95343b repl
95344:more1
95345s/["\\]/\\&/g; s/^/"/; s/$/"\\/
95346p
95347g
95348s/.\{148\}//
95349t nl
95350:delim
95351h
95352s/\(.\{148\}\)..*/\1/
95353t more2
95354s/["\\]/\\&/g; s/^/"/; s/$/"/
95355p
95356b
95357:more2
95358s/["\\]/\\&/g; s/^/"/; s/$/"\\/
95359p
95360g
95361s/.\{148\}//
95362t delim
95363' <conf$$subs.awk | sed '
95364/^[^""]/{
95365  N
95366  s/\n//
95367}
95368' >>$CONFIG_STATUS || ac_write_fail=1
95369rm -f conf$$subs.awk
95370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
95371_ACAWK
95372cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
95373  for (key in S) S_is_set[key] = 1
95374  FS = ""
95375
95376}
95377{
95378  line = $ 0
95379  nfields = split(line, field, "@")
95380  substed = 0
95381  len = length(field[1])
95382  for (i = 2; i < nfields; i++) {
95383    key = field[i]
95384    keylen = length(key)
95385    if (S_is_set[key]) {
95386      value = S[key]
95387      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
95388      len += length(value) + length(field[++i])
95389      substed = 1
95390    } else
95391      len += 1 + keylen
95392  }
95393
95394  print line
95395}
95396
95397_ACAWK
95398_ACEOF
95399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95400if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
95401  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
95402else
95403  cat
95404fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
95405  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
95406_ACEOF
95407
95408# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
95409# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
95410# trailing colons and then remove the whole line if VPATH becomes empty
95411# (actually we leave an empty line to preserve line numbers).
95412if test "x$srcdir" = x.; then
95413  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
95414h
95415s///
95416s/^/:/
95417s/[	 ]*$/:/
95418s/:\$(srcdir):/:/g
95419s/:\${srcdir}:/:/g
95420s/:@srcdir@:/:/g
95421s/^:*//
95422s/:*$//
95423x
95424s/\(=[	 ]*\).*/\1/
95425G
95426s/\n//
95427s/^[^=]*=[	 ]*$//
95428}'
95429fi
95430
95431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95432fi # test -n "$CONFIG_FILES"
95433
95434# Set up the scripts for CONFIG_HEADERS section.
95435# No need to generate them if there are no CONFIG_HEADERS.
95436# This happens for instance with `./config.status Makefile'.
95437if test -n "$CONFIG_HEADERS"; then
95438cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
95439BEGIN {
95440_ACEOF
95441
95442# Transform confdefs.h into an awk script `defines.awk', embedded as
95443# here-document in config.status, that substitutes the proper values into
95444# config.h.in to produce config.h.
95445
95446# Create a delimiter string that does not exist in confdefs.h, to ease
95447# handling of long lines.
95448ac_delim='%!_!# '
95449for ac_last_try in false false :; do
95450  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
95451  if test -z "$ac_tt"; then
95452    break
95453  elif $ac_last_try; then
95454    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
95455  else
95456    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
95457  fi
95458done
95459
95460# For the awk script, D is an array of macro values keyed by name,
95461# likewise P contains macro parameters if any.  Preserve backslash
95462# newline sequences.
95463
95464ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
95465sed -n '
95466s/.\{148\}/&'"$ac_delim"'/g
95467t rset
95468:rset
95469s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
95470t def
95471d
95472:def
95473s/\\$//
95474t bsnl
95475s/["\\]/\\&/g
95476s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
95477D["\1"]=" \3"/p
95478s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
95479d
95480:bsnl
95481s/["\\]/\\&/g
95482s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
95483D["\1"]=" \3\\\\\\n"\\/p
95484t cont
95485s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
95486t cont
95487d
95488:cont
95489n
95490s/.\{148\}/&'"$ac_delim"'/g
95491t clear
95492:clear
95493s/\\$//
95494t bsnlc
95495s/["\\]/\\&/g; s/^/"/; s/$/"/p
95496d
95497:bsnlc
95498s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
95499b cont
95500' <confdefs.h | sed '
95501s/'"$ac_delim"'/"\\\
95502"/g' >>$CONFIG_STATUS || ac_write_fail=1
95503
95504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
95505  for (key in D) D_is_set[key] = 1
95506  FS = ""
95507}
95508/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
95509  line = \$ 0
95510  split(line, arg, " ")
95511  if (arg[1] == "#") {
95512    defundef = arg[2]
95513    mac1 = arg[3]
95514  } else {
95515    defundef = substr(arg[1], 2)
95516    mac1 = arg[2]
95517  }
95518  split(mac1, mac2, "(") #)
95519  macro = mac2[1]
95520  prefix = substr(line, 1, index(line, defundef) - 1)
95521  if (D_is_set[macro]) {
95522    # Preserve the white space surrounding the "#".
95523    print prefix "define", macro P[macro] D[macro]
95524    next
95525  } else {
95526    # Replace #undef with comments.  This is necessary, for example,
95527    # in the case of _POSIX_SOURCE, which is predefined and required
95528    # on some systems where configure will not decide to define it.
95529    if (defundef == "undef") {
95530      print "/*", prefix defundef, macro, "*/"
95531      next
95532    }
95533  }
95534}
95535{ print }
95536_ACAWK
95537_ACEOF
95538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95539  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
95540fi # test -n "$CONFIG_HEADERS"
95541
95542
95543eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
95544shift
95545for ac_tag
95546do
95547  case $ac_tag in
95548  :[FHLC]) ac_mode=$ac_tag; continue;;
95549  esac
95550  case $ac_mode$ac_tag in
95551  :[FHL]*:*);;
95552  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
95553  :[FH]-) ac_tag=-:-;;
95554  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
95555  esac
95556  ac_save_IFS=$IFS
95557  IFS=:
95558  set x $ac_tag
95559  IFS=$ac_save_IFS
95560  shift
95561  ac_file=$1
95562  shift
95563
95564  case $ac_mode in
95565  :L) ac_source=$1;;
95566  :[FH])
95567    ac_file_inputs=
95568    for ac_f
95569    do
95570      case $ac_f in
95571      -) ac_f="$ac_tmp/stdin";;
95572      *) # Look for the file first in the build tree, then in the source tree
95573	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
95574	 # because $ac_f cannot contain `:'.
95575	 test -f "$ac_f" ||
95576	   case $ac_f in
95577	   [\\/$]*) false;;
95578	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
95579	   esac ||
95580	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
95581      esac
95582      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
95583      as_fn_append ac_file_inputs " '$ac_f'"
95584    done
95585
95586    # Let's still pretend it is `configure' which instantiates (i.e., don't
95587    # use $as_me), people would be surprised to read:
95588    #    /* config.h.  Generated by config.status.  */
95589    configure_input='Generated from '`
95590	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
95591	`' by configure.'
95592    if test x"$ac_file" != x-; then
95593      configure_input="$ac_file.  $configure_input"
95594      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
95595$as_echo "$as_me: creating $ac_file" >&6;}
95596    fi
95597    # Neutralize special characters interpreted by sed in replacement strings.
95598    case $configure_input in #(
95599    *\&* | *\|* | *\\* )
95600       ac_sed_conf_input=`$as_echo "$configure_input" |
95601       sed 's/[\\\\&|]/\\\\&/g'`;; #(
95602    *) ac_sed_conf_input=$configure_input;;
95603    esac
95604
95605    case $ac_tag in
95606    *:-:* | *:-) cat >"$ac_tmp/stdin" \
95607      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
95608    esac
95609    ;;
95610  esac
95611
95612  ac_dir=`$as_dirname -- "$ac_file" ||
95613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
95614	 X"$ac_file" : 'X\(//\)[^/]' \| \
95615	 X"$ac_file" : 'X\(//\)$' \| \
95616	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
95617$as_echo X"$ac_file" |
95618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
95619	    s//\1/
95620	    q
95621	  }
95622	  /^X\(\/\/\)[^/].*/{
95623	    s//\1/
95624	    q
95625	  }
95626	  /^X\(\/\/\)$/{
95627	    s//\1/
95628	    q
95629	  }
95630	  /^X\(\/\).*/{
95631	    s//\1/
95632	    q
95633	  }
95634	  s/.*/./; q'`
95635  as_dir="$ac_dir"; as_fn_mkdir_p
95636  ac_builddir=.
95637
95638case "$ac_dir" in
95639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
95640*)
95641  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
95642  # A ".." for each directory in $ac_dir_suffix.
95643  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
95644  case $ac_top_builddir_sub in
95645  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
95646  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
95647  esac ;;
95648esac
95649ac_abs_top_builddir=$ac_pwd
95650ac_abs_builddir=$ac_pwd$ac_dir_suffix
95651# for backward compatibility:
95652ac_top_builddir=$ac_top_build_prefix
95653
95654case $srcdir in
95655  .)  # We are building in place.
95656    ac_srcdir=.
95657    ac_top_srcdir=$ac_top_builddir_sub
95658    ac_abs_top_srcdir=$ac_pwd ;;
95659  [\\/]* | ?:[\\/]* )  # Absolute name.
95660    ac_srcdir=$srcdir$ac_dir_suffix;
95661    ac_top_srcdir=$srcdir
95662    ac_abs_top_srcdir=$srcdir ;;
95663  *) # Relative name.
95664    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
95665    ac_top_srcdir=$ac_top_build_prefix$srcdir
95666    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
95667esac
95668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
95669
95670
95671  case $ac_mode in
95672  :F)
95673  #
95674  # CONFIG_FILE
95675  #
95676
95677  case $INSTALL in
95678  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
95679  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
95680  esac
95681  ac_MKDIR_P=$MKDIR_P
95682  case $MKDIR_P in
95683  [\\/$]* | ?:[\\/]* ) ;;
95684  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
95685  esac
95686_ACEOF
95687
95688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95689# If the template does not know about datarootdir, expand it.
95690# FIXME: This hack should be removed a few years after 2.60.
95691ac_datarootdir_hack=; ac_datarootdir_seen=
95692ac_sed_dataroot='
95693/datarootdir/ {
95694  p
95695  q
95696}
95697/@datadir@/p
95698/@docdir@/p
95699/@infodir@/p
95700/@localedir@/p
95701/@mandir@/p'
95702case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
95703*datarootdir*) ac_datarootdir_seen=yes;;
95704*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
95705  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
95706$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
95707_ACEOF
95708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
95709  ac_datarootdir_hack='
95710  s&@datadir@&$datadir&g
95711  s&@docdir@&$docdir&g
95712  s&@infodir@&$infodir&g
95713  s&@localedir@&$localedir&g
95714  s&@mandir@&$mandir&g
95715  s&\\\${datarootdir}&$datarootdir&g' ;;
95716esac
95717_ACEOF
95718
95719# Neutralize VPATH when `$srcdir' = `.'.
95720# Shell code in configure.ac might set extrasub.
95721# FIXME: do we really want to maintain this feature?
95722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
95723ac_sed_extra="$ac_vpsub
95724$extrasub
95725_ACEOF
95726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
95727:t
95728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
95729s|@configure_input@|$ac_sed_conf_input|;t t
95730s&@top_builddir@&$ac_top_builddir_sub&;t t
95731s&@top_build_prefix@&$ac_top_build_prefix&;t t
95732s&@srcdir@&$ac_srcdir&;t t
95733s&@abs_srcdir@&$ac_abs_srcdir&;t t
95734s&@top_srcdir@&$ac_top_srcdir&;t t
95735s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
95736s&@builddir@&$ac_builddir&;t t
95737s&@abs_builddir@&$ac_abs_builddir&;t t
95738s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
95739s&@INSTALL@&$ac_INSTALL&;t t
95740s&@MKDIR_P@&$ac_MKDIR_P&;t t
95741$ac_datarootdir_hack
95742"
95743eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
95744  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
95745
95746test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
95747  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
95748  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
95749      "$ac_tmp/out"`; test -z "$ac_out"; } &&
95750  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
95751which seems to be undefined.  Please make sure it is defined" >&5
95752$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
95753which seems to be undefined.  Please make sure it is defined" >&2;}
95754
95755  rm -f "$ac_tmp/stdin"
95756  case $ac_file in
95757  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
95758  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
95759  esac \
95760  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
95761 ;;
95762  :H)
95763  #
95764  # CONFIG_HEADER
95765  #
95766  if test x"$ac_file" != x-; then
95767    {
95768      $as_echo "/* $configure_input  */" \
95769      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
95770    } >"$ac_tmp/config.h" \
95771      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
95772    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
95773      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
95774$as_echo "$as_me: $ac_file is unchanged" >&6;}
95775    else
95776      rm -f "$ac_file"
95777      mv "$ac_tmp/config.h" "$ac_file" \
95778	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
95779    fi
95780  else
95781    $as_echo "/* $configure_input  */" \
95782      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
95783      || as_fn_error $? "could not create -" "$LINENO" 5
95784  fi
95785# Compute "$ac_file"'s index in $config_headers.
95786_am_arg="$ac_file"
95787_am_stamp_count=1
95788for _am_header in $config_headers :; do
95789  case $_am_header in
95790    $_am_arg | $_am_arg:* )
95791      break ;;
95792    * )
95793      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
95794  esac
95795done
95796echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
95797$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
95798	 X"$_am_arg" : 'X\(//\)[^/]' \| \
95799	 X"$_am_arg" : 'X\(//\)$' \| \
95800	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
95801$as_echo X"$_am_arg" |
95802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
95803	    s//\1/
95804	    q
95805	  }
95806	  /^X\(\/\/\)[^/].*/{
95807	    s//\1/
95808	    q
95809	  }
95810	  /^X\(\/\/\)$/{
95811	    s//\1/
95812	    q
95813	  }
95814	  /^X\(\/\).*/{
95815	    s//\1/
95816	    q
95817	  }
95818	  s/.*/./; q'`/stamp-h$_am_stamp_count
95819 ;;
95820
95821  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
95822$as_echo "$as_me: executing $ac_file commands" >&6;}
95823 ;;
95824  esac
95825
95826
95827  case $ac_file$ac_mode in
95828    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
95829  # Older Autoconf quotes --file arguments for eval, but not when files
95830  # are listed without --file.  Let's play safe and only enable the eval
95831  # if we detect the quoting.
95832  # TODO: see whether this extra hack can be removed once we start
95833  # requiring Autoconf 2.70 or later.
95834  case $CONFIG_FILES in #(
95835  *\'*) :
95836    eval set x "$CONFIG_FILES" ;; #(
95837  *) :
95838    set x $CONFIG_FILES ;; #(
95839  *) :
95840     ;;
95841esac
95842  shift
95843  # Used to flag and report bootstrapping failures.
95844  am_rc=0
95845  for am_mf
95846  do
95847    # Strip MF so we end up with the name of the file.
95848    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
95849    # Check whether this is an Automake generated Makefile which includes
95850    # dependency-tracking related rules and includes.
95851    # Grep'ing the whole file directly is not great: AIX grep has a line
95852    # limit of 2048, but all sed's we know have understand at least 4000.
95853    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
95854      || continue
95855    am_dirpart=`$as_dirname -- "$am_mf" ||
95856$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
95857	 X"$am_mf" : 'X\(//\)[^/]' \| \
95858	 X"$am_mf" : 'X\(//\)$' \| \
95859	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
95860$as_echo X"$am_mf" |
95861    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
95862	    s//\1/
95863	    q
95864	  }
95865	  /^X\(\/\/\)[^/].*/{
95866	    s//\1/
95867	    q
95868	  }
95869	  /^X\(\/\/\)$/{
95870	    s//\1/
95871	    q
95872	  }
95873	  /^X\(\/\).*/{
95874	    s//\1/
95875	    q
95876	  }
95877	  s/.*/./; q'`
95878    am_filepart=`$as_basename -- "$am_mf" ||
95879$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
95880	 X"$am_mf" : 'X\(//\)$' \| \
95881	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
95882$as_echo X/"$am_mf" |
95883    sed '/^.*\/\([^/][^/]*\)\/*$/{
95884	    s//\1/
95885	    q
95886	  }
95887	  /^X\/\(\/\/\)$/{
95888	    s//\1/
95889	    q
95890	  }
95891	  /^X\/\(\/\).*/{
95892	    s//\1/
95893	    q
95894	  }
95895	  s/.*/./; q'`
95896    { echo "$as_me:$LINENO: cd "$am_dirpart" \
95897      && sed -e '/# am--include-marker/d' "$am_filepart" \
95898        | $MAKE -f - am--depfiles" >&5
95899   (cd "$am_dirpart" \
95900      && sed -e '/# am--include-marker/d' "$am_filepart" \
95901        | $MAKE -f - am--depfiles) >&5 2>&5
95902   ac_status=$?
95903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
95904   (exit $ac_status); } || am_rc=$?
95905  done
95906  if test $am_rc -ne 0; then
95907    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
95908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
95909as_fn_error $? "Something went wrong bootstrapping makefile fragments
95910    for automatic dependency tracking.  Try re-running configure with the
95911    '--disable-dependency-tracking' option to at least be able to build
95912    the package (albeit without support for automatic dependency tracking).
95913See \`config.log' for more details" "$LINENO" 5; }
95914  fi
95915  { am_dirpart=; unset am_dirpart;}
95916  { am_filepart=; unset am_filepart;}
95917  { am_mf=; unset am_mf;}
95918  { am_rc=; unset am_rc;}
95919  rm -f conftest-deps.mk
95920}
95921 ;;
95922    "libtool":C)
95923
95924    # See if we are running on zsh, and set the options that allow our
95925    # commands through without removal of \ escapes.
95926    if test -n "${ZSH_VERSION+set}"; then
95927      setopt NO_GLOB_SUBST
95928    fi
95929
95930    cfgfile=${ofile}T
95931    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
95932    $RM "$cfgfile"
95933
95934    cat <<_LT_EOF >> "$cfgfile"
95935#! $SHELL
95936# Generated automatically by $as_me ($PACKAGE) $VERSION
95937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
95938
95939# Provide generalized library-building support services.
95940# Written by Gordon Matzigkeit, 1996
95941
95942# Copyright (C) 2014 Free Software Foundation, Inc.
95943# This is free software; see the source for copying conditions.  There is NO
95944# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
95945
95946# GNU Libtool is free software; you can redistribute it and/or modify
95947# it under the terms of the GNU General Public License as published by
95948# the Free Software Foundation; either version 2 of of the License, or
95949# (at your option) any later version.
95950#
95951# As a special exception to the GNU General Public License, if you
95952# distribute this file as part of a program or library that is built
95953# using GNU Libtool, you may include this file under the  same
95954# distribution terms that you use for the rest of that program.
95955#
95956# GNU Libtool is distributed in the hope that it will be useful, but
95957# WITHOUT ANY WARRANTY; without even the implied warranty of
95958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
95959# GNU General Public License for more details.
95960#
95961# You should have received a copy of the GNU General Public License
95962# along with this program.  If not, see <http://www.gnu.org/licenses/>.
95963
95964
95965# The names of the tagged configurations supported by this script.
95966available_tags='CXX '
95967
95968# Configured defaults for sys_lib_dlsearch_path munging.
95969: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
95970
95971# ### BEGIN LIBTOOL CONFIG
95972
95973# Which release of libtool.m4 was used?
95974macro_version=$macro_version
95975macro_revision=$macro_revision
95976
95977# Assembler program.
95978AS=$lt_AS
95979
95980# DLL creation program.
95981DLLTOOL=$lt_DLLTOOL
95982
95983# Object dumper program.
95984OBJDUMP=$lt_OBJDUMP
95985
95986# Whether or not to build static libraries.
95987build_old_libs=$enable_static
95988
95989# Whether or not to build shared libraries.
95990build_libtool_libs=$enable_shared
95991
95992# What type of objects to build.
95993pic_mode=$pic_mode
95994
95995# Whether or not to optimize for fast installation.
95996fast_install=$enable_fast_install
95997
95998# Shared archive member basename,for filename based shared library versioning on AIX.
95999shared_archive_member_spec=$shared_archive_member_spec
96000
96001# Shell to use when invoking shell scripts.
96002SHELL=$lt_SHELL
96003
96004# An echo program that protects backslashes.
96005ECHO=$lt_ECHO
96006
96007# The PATH separator for the build system.
96008PATH_SEPARATOR=$lt_PATH_SEPARATOR
96009
96010# The host system.
96011host_alias=$host_alias
96012host=$host
96013host_os=$host_os
96014
96015# The build system.
96016build_alias=$build_alias
96017build=$build
96018build_os=$build_os
96019
96020# A sed program that does not truncate output.
96021SED=$lt_SED
96022
96023# Sed that helps us avoid accidentally triggering echo(1) options like -n.
96024Xsed="\$SED -e 1s/^X//"
96025
96026# A grep program that handles long lines.
96027GREP=$lt_GREP
96028
96029# An ERE matcher.
96030EGREP=$lt_EGREP
96031
96032# A literal string matcher.
96033FGREP=$lt_FGREP
96034
96035# A BSD- or MS-compatible name lister.
96036NM=$lt_NM
96037
96038# Whether we need soft or hard links.
96039LN_S=$lt_LN_S
96040
96041# What is the maximum length of a command?
96042max_cmd_len=$max_cmd_len
96043
96044# Object file suffix (normally "o").
96045objext=$ac_objext
96046
96047# Executable file suffix (normally "").
96048exeext=$exeext
96049
96050# whether the shell understands "unset".
96051lt_unset=$lt_unset
96052
96053# turn spaces into newlines.
96054SP2NL=$lt_lt_SP2NL
96055
96056# turn newlines into spaces.
96057NL2SP=$lt_lt_NL2SP
96058
96059# convert \$build file names to \$host format.
96060to_host_file_cmd=$lt_cv_to_host_file_cmd
96061
96062# convert \$build files to toolchain format.
96063to_tool_file_cmd=$lt_cv_to_tool_file_cmd
96064
96065# Method to check whether dependent libraries are shared objects.
96066deplibs_check_method=$lt_deplibs_check_method
96067
96068# Command to use when deplibs_check_method = "file_magic".
96069file_magic_cmd=$lt_file_magic_cmd
96070
96071# How to find potential files when deplibs_check_method = "file_magic".
96072file_magic_glob=$lt_file_magic_glob
96073
96074# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
96075want_nocaseglob=$lt_want_nocaseglob
96076
96077# Command to associate shared and link libraries.
96078sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
96079
96080# The archiver.
96081AR=$lt_AR
96082
96083# Flags to create an archive.
96084AR_FLAGS=$lt_AR_FLAGS
96085
96086# How to feed a file listing to the archiver.
96087archiver_list_spec=$lt_archiver_list_spec
96088
96089# A symbol stripping program.
96090STRIP=$lt_STRIP
96091
96092# Commands used to install an old-style archive.
96093RANLIB=$lt_RANLIB
96094old_postinstall_cmds=$lt_old_postinstall_cmds
96095old_postuninstall_cmds=$lt_old_postuninstall_cmds
96096
96097# Whether to use a lock for old archive extraction.
96098lock_old_archive_extraction=$lock_old_archive_extraction
96099
96100# A C compiler.
96101LTCC=$lt_CC
96102
96103# LTCC compiler flags.
96104LTCFLAGS=$lt_CFLAGS
96105
96106# Take the output of nm and produce a listing of raw symbols and C names.
96107global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
96108
96109# Transform the output of nm in a proper C declaration.
96110global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
96111
96112# Transform the output of nm into a list of symbols to manually relocate.
96113global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
96114
96115# Transform the output of nm in a C name address pair.
96116global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
96117
96118# Transform the output of nm in a C name address pair when lib prefix is needed.
96119global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
96120
96121# The name lister interface.
96122nm_interface=$lt_lt_cv_nm_interface
96123
96124# Specify filename containing input files for \$NM.
96125nm_file_list_spec=$lt_nm_file_list_spec
96126
96127# The root where to search for dependent libraries,and where our libraries should be installed.
96128lt_sysroot=$lt_sysroot
96129
96130# Command to truncate a binary pipe.
96131lt_truncate_bin=$lt_lt_cv_truncate_bin
96132
96133# The name of the directory that contains temporary libtool files.
96134objdir=$objdir
96135
96136# Used to examine libraries when file_magic_cmd begins with "file".
96137MAGIC_CMD=$MAGIC_CMD
96138
96139# Must we lock files when doing compilation?
96140need_locks=$lt_need_locks
96141
96142# Manifest tool.
96143MANIFEST_TOOL=$lt_MANIFEST_TOOL
96144
96145# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
96146DSYMUTIL=$lt_DSYMUTIL
96147
96148# Tool to change global to local symbols on Mac OS X.
96149NMEDIT=$lt_NMEDIT
96150
96151# Tool to manipulate fat objects and archives on Mac OS X.
96152LIPO=$lt_LIPO
96153
96154# ldd/readelf like tool for Mach-O binaries on Mac OS X.
96155OTOOL=$lt_OTOOL
96156
96157# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
96158OTOOL64=$lt_OTOOL64
96159
96160# Old archive suffix (normally "a").
96161libext=$libext
96162
96163# Shared library suffix (normally ".so").
96164shrext_cmds=$lt_shrext_cmds
96165
96166# The commands to extract the exported symbol list from a shared archive.
96167extract_expsyms_cmds=$lt_extract_expsyms_cmds
96168
96169# Variables whose values should be saved in libtool wrapper scripts and
96170# restored at link time.
96171variables_saved_for_relink=$lt_variables_saved_for_relink
96172
96173# Do we need the "lib" prefix for modules?
96174need_lib_prefix=$need_lib_prefix
96175
96176# Do we need a version for libraries?
96177need_version=$need_version
96178
96179# Library versioning type.
96180version_type=$version_type
96181
96182# Shared library runtime path variable.
96183runpath_var=$runpath_var
96184
96185# Shared library path variable.
96186shlibpath_var=$shlibpath_var
96187
96188# Is shlibpath searched before the hard-coded library search path?
96189shlibpath_overrides_runpath=$shlibpath_overrides_runpath
96190
96191# Format of library name prefix.
96192libname_spec=$lt_libname_spec
96193
96194# List of archive names.  First name is the real one, the rest are links.
96195# The last name is the one that the linker finds with -lNAME
96196library_names_spec=$lt_library_names_spec
96197
96198# The coded name of the library, if different from the real name.
96199soname_spec=$lt_soname_spec
96200
96201# Permission mode override for installation of shared libraries.
96202install_override_mode=$lt_install_override_mode
96203
96204# Command to use after installation of a shared archive.
96205postinstall_cmds=$lt_postinstall_cmds
96206
96207# Command to use after uninstallation of a shared archive.
96208postuninstall_cmds=$lt_postuninstall_cmds
96209
96210# Commands used to finish a libtool library installation in a directory.
96211finish_cmds=$lt_finish_cmds
96212
96213# As "finish_cmds", except a single script fragment to be evaled but
96214# not shown.
96215finish_eval=$lt_finish_eval
96216
96217# Whether we should hardcode library paths into libraries.
96218hardcode_into_libs=$hardcode_into_libs
96219
96220# Compile-time system search path for libraries.
96221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
96222
96223# Detected run-time system search path for libraries.
96224sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
96225
96226# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
96227configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
96228
96229# Whether dlopen is supported.
96230dlopen_support=$enable_dlopen
96231
96232# Whether dlopen of programs is supported.
96233dlopen_self=$enable_dlopen_self
96234
96235# Whether dlopen of statically linked programs is supported.
96236dlopen_self_static=$enable_dlopen_self_static
96237
96238# Commands to strip libraries.
96239old_striplib=$lt_old_striplib
96240striplib=$lt_striplib
96241
96242
96243# The linker used to build libraries.
96244LD=$lt_LD
96245
96246# How to create reloadable object files.
96247reload_flag=$lt_reload_flag
96248reload_cmds=$lt_reload_cmds
96249
96250# Commands used to build an old-style archive.
96251old_archive_cmds=$lt_old_archive_cmds
96252
96253# A language specific compiler.
96254CC=$lt_compiler
96255
96256# Is the compiler the GNU compiler?
96257with_gcc=$GCC
96258
96259# Compiler flag to turn off builtin functions.
96260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
96261
96262# Additional compiler flags for building library objects.
96263pic_flag=$lt_lt_prog_compiler_pic
96264
96265# How to pass a linker flag through the compiler.
96266wl=$lt_lt_prog_compiler_wl
96267
96268# Compiler flag to prevent dynamic linking.
96269link_static_flag=$lt_lt_prog_compiler_static
96270
96271# Does compiler simultaneously support -c and -o options?
96272compiler_c_o=$lt_lt_cv_prog_compiler_c_o
96273
96274# Whether or not to add -lc for building shared libraries.
96275build_libtool_need_lc=$archive_cmds_need_lc
96276
96277# Whether or not to disallow shared libs when runtime libs are static.
96278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
96279
96280# Compiler flag to allow reflexive dlopens.
96281export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
96282
96283# Compiler flag to generate shared objects directly from archives.
96284whole_archive_flag_spec=$lt_whole_archive_flag_spec
96285
96286# Whether the compiler copes with passing no objects directly.
96287compiler_needs_object=$lt_compiler_needs_object
96288
96289# Create an old-style archive from a shared archive.
96290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
96291
96292# Create a temporary old-style archive to link instead of a shared archive.
96293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
96294
96295# Commands used to build a shared archive.
96296archive_cmds=$lt_archive_cmds
96297archive_expsym_cmds=$lt_archive_expsym_cmds
96298
96299# Commands used to build a loadable module if different from building
96300# a shared archive.
96301module_cmds=$lt_module_cmds
96302module_expsym_cmds=$lt_module_expsym_cmds
96303
96304# Whether we are building with GNU ld or not.
96305with_gnu_ld=$lt_with_gnu_ld
96306
96307# Flag that allows shared libraries with undefined symbols to be built.
96308allow_undefined_flag=$lt_allow_undefined_flag
96309
96310# Flag that enforces no undefined symbols.
96311no_undefined_flag=$lt_no_undefined_flag
96312
96313# Flag to hardcode \$libdir into a binary during linking.
96314# This must work even if \$libdir does not exist
96315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
96316
96317# Whether we need a single "-rpath" flag with a separated argument.
96318hardcode_libdir_separator=$lt_hardcode_libdir_separator
96319
96320# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
96321# DIR into the resulting binary.
96322hardcode_direct=$hardcode_direct
96323
96324# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
96325# DIR into the resulting binary and the resulting library dependency is
96326# "absolute",i.e impossible to change by setting \$shlibpath_var if the
96327# library is relocated.
96328hardcode_direct_absolute=$hardcode_direct_absolute
96329
96330# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
96331# into the resulting binary.
96332hardcode_minus_L=$hardcode_minus_L
96333
96334# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
96335# into the resulting binary.
96336hardcode_shlibpath_var=$hardcode_shlibpath_var
96337
96338# Set to "yes" if building a shared library automatically hardcodes DIR
96339# into the library and all subsequent libraries and executables linked
96340# against it.
96341hardcode_automatic=$hardcode_automatic
96342
96343# Set to yes if linker adds runtime paths of dependent libraries
96344# to runtime path list.
96345inherit_rpath=$inherit_rpath
96346
96347# Whether libtool must link a program against all its dependency libraries.
96348link_all_deplibs=$link_all_deplibs
96349
96350# Set to "yes" if exported symbols are required.
96351always_export_symbols=$always_export_symbols
96352
96353# The commands to list exported symbols.
96354export_symbols_cmds=$lt_export_symbols_cmds
96355
96356# Symbols that should not be listed in the preloaded symbols.
96357exclude_expsyms=$lt_exclude_expsyms
96358
96359# Symbols that must always be exported.
96360include_expsyms=$lt_include_expsyms
96361
96362# Commands necessary for linking programs (against libraries) with templates.
96363prelink_cmds=$lt_prelink_cmds
96364
96365# Commands necessary for finishing linking programs.
96366postlink_cmds=$lt_postlink_cmds
96367
96368# Specify filename containing input files.
96369file_list_spec=$lt_file_list_spec
96370
96371# How to hardcode a shared library path into an executable.
96372hardcode_action=$hardcode_action
96373
96374# The directories searched by this compiler when creating a shared library.
96375compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
96376
96377# Dependencies to place before and after the objects being linked to
96378# create a shared library.
96379predep_objects=$lt_predep_objects
96380postdep_objects=$lt_postdep_objects
96381predeps=$lt_predeps
96382postdeps=$lt_postdeps
96383
96384# The library search path used internally by the compiler when linking
96385# a shared library.
96386compiler_lib_search_path=$lt_compiler_lib_search_path
96387
96388# ### END LIBTOOL CONFIG
96389
96390_LT_EOF
96391
96392    cat <<'_LT_EOF' >> "$cfgfile"
96393
96394# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
96395
96396# func_munge_path_list VARIABLE PATH
96397# -----------------------------------
96398# VARIABLE is name of variable containing _space_ separated list of
96399# directories to be munged by the contents of PATH, which is string
96400# having a format:
96401# "DIR[:DIR]:"
96402#       string "DIR[ DIR]" will be prepended to VARIABLE
96403# ":DIR[:DIR]"
96404#       string "DIR[ DIR]" will be appended to VARIABLE
96405# "DIRP[:DIRP]::[DIRA:]DIRA"
96406#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
96407#       "DIRA[ DIRA]" will be appended to VARIABLE
96408# "DIR[:DIR]"
96409#       VARIABLE will be replaced by "DIR[ DIR]"
96410func_munge_path_list ()
96411{
96412    case x$2 in
96413    x)
96414        ;;
96415    *:)
96416        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
96417        ;;
96418    x:*)
96419        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
96420        ;;
96421    *::*)
96422        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
96423        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
96424        ;;
96425    *)
96426        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
96427        ;;
96428    esac
96429}
96430
96431
96432# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
96433func_cc_basename ()
96434{
96435    for cc_temp in $*""; do
96436      case $cc_temp in
96437        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
96438        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
96439        \-*) ;;
96440        *) break;;
96441      esac
96442    done
96443    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
96444}
96445
96446
96447# ### END FUNCTIONS SHARED WITH CONFIGURE
96448
96449_LT_EOF
96450
96451  case $host_os in
96452  aix3*)
96453    cat <<\_LT_EOF >> "$cfgfile"
96454# AIX sometimes has problems with the GCC collect2 program.  For some
96455# reason, if we set the COLLECT_NAMES environment variable, the problems
96456# vanish in a puff of smoke.
96457if test set != "${COLLECT_NAMES+set}"; then
96458  COLLECT_NAMES=
96459  export COLLECT_NAMES
96460fi
96461_LT_EOF
96462    ;;
96463  esac
96464
96465
96466ltmain=$ac_aux_dir/ltmain.sh
96467
96468
96469  # We use sed instead of cat because bash on DJGPP gets confused if
96470  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
96471  # text mode, it properly converts lines to CR/LF.  This bash problem
96472  # is reportedly fixed, but why not run on old versions too?
96473  sed '$q' "$ltmain" >> "$cfgfile" \
96474     || (rm -f "$cfgfile"; exit 1)
96475
96476   mv -f "$cfgfile" "$ofile" ||
96477    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
96478  chmod +x "$ofile"
96479
96480
96481    cat <<_LT_EOF >> "$ofile"
96482
96483# ### BEGIN LIBTOOL TAG CONFIG: CXX
96484
96485# The linker used to build libraries.
96486LD=$lt_LD_CXX
96487
96488# How to create reloadable object files.
96489reload_flag=$lt_reload_flag_CXX
96490reload_cmds=$lt_reload_cmds_CXX
96491
96492# Commands used to build an old-style archive.
96493old_archive_cmds=$lt_old_archive_cmds_CXX
96494
96495# A language specific compiler.
96496CC=$lt_compiler_CXX
96497
96498# Is the compiler the GNU compiler?
96499with_gcc=$GCC_CXX
96500
96501# Compiler flag to turn off builtin functions.
96502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
96503
96504# Additional compiler flags for building library objects.
96505pic_flag=$lt_lt_prog_compiler_pic_CXX
96506
96507# How to pass a linker flag through the compiler.
96508wl=$lt_lt_prog_compiler_wl_CXX
96509
96510# Compiler flag to prevent dynamic linking.
96511link_static_flag=$lt_lt_prog_compiler_static_CXX
96512
96513# Does compiler simultaneously support -c and -o options?
96514compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
96515
96516# Whether or not to add -lc for building shared libraries.
96517build_libtool_need_lc=$archive_cmds_need_lc_CXX
96518
96519# Whether or not to disallow shared libs when runtime libs are static.
96520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
96521
96522# Compiler flag to allow reflexive dlopens.
96523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
96524
96525# Compiler flag to generate shared objects directly from archives.
96526whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
96527
96528# Whether the compiler copes with passing no objects directly.
96529compiler_needs_object=$lt_compiler_needs_object_CXX
96530
96531# Create an old-style archive from a shared archive.
96532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
96533
96534# Create a temporary old-style archive to link instead of a shared archive.
96535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
96536
96537# Commands used to build a shared archive.
96538archive_cmds=$lt_archive_cmds_CXX
96539archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
96540
96541# Commands used to build a loadable module if different from building
96542# a shared archive.
96543module_cmds=$lt_module_cmds_CXX
96544module_expsym_cmds=$lt_module_expsym_cmds_CXX
96545
96546# Whether we are building with GNU ld or not.
96547with_gnu_ld=$lt_with_gnu_ld_CXX
96548
96549# Flag that allows shared libraries with undefined symbols to be built.
96550allow_undefined_flag=$lt_allow_undefined_flag_CXX
96551
96552# Flag that enforces no undefined symbols.
96553no_undefined_flag=$lt_no_undefined_flag_CXX
96554
96555# Flag to hardcode \$libdir into a binary during linking.
96556# This must work even if \$libdir does not exist
96557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
96558
96559# Whether we need a single "-rpath" flag with a separated argument.
96560hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
96561
96562# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
96563# DIR into the resulting binary.
96564hardcode_direct=$hardcode_direct_CXX
96565
96566# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
96567# DIR into the resulting binary and the resulting library dependency is
96568# "absolute",i.e impossible to change by setting \$shlibpath_var if the
96569# library is relocated.
96570hardcode_direct_absolute=$hardcode_direct_absolute_CXX
96571
96572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
96573# into the resulting binary.
96574hardcode_minus_L=$hardcode_minus_L_CXX
96575
96576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
96577# into the resulting binary.
96578hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
96579
96580# Set to "yes" if building a shared library automatically hardcodes DIR
96581# into the library and all subsequent libraries and executables linked
96582# against it.
96583hardcode_automatic=$hardcode_automatic_CXX
96584
96585# Set to yes if linker adds runtime paths of dependent libraries
96586# to runtime path list.
96587inherit_rpath=$inherit_rpath_CXX
96588
96589# Whether libtool must link a program against all its dependency libraries.
96590link_all_deplibs=$link_all_deplibs_CXX
96591
96592# Set to "yes" if exported symbols are required.
96593always_export_symbols=$always_export_symbols_CXX
96594
96595# The commands to list exported symbols.
96596export_symbols_cmds=$lt_export_symbols_cmds_CXX
96597
96598# Symbols that should not be listed in the preloaded symbols.
96599exclude_expsyms=$lt_exclude_expsyms_CXX
96600
96601# Symbols that must always be exported.
96602include_expsyms=$lt_include_expsyms_CXX
96603
96604# Commands necessary for linking programs (against libraries) with templates.
96605prelink_cmds=$lt_prelink_cmds_CXX
96606
96607# Commands necessary for finishing linking programs.
96608postlink_cmds=$lt_postlink_cmds_CXX
96609
96610# Specify filename containing input files.
96611file_list_spec=$lt_file_list_spec_CXX
96612
96613# How to hardcode a shared library path into an executable.
96614hardcode_action=$hardcode_action_CXX
96615
96616# The directories searched by this compiler when creating a shared library.
96617compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
96618
96619# Dependencies to place before and after the objects being linked to
96620# create a shared library.
96621predep_objects=$lt_predep_objects_CXX
96622postdep_objects=$lt_postdep_objects_CXX
96623predeps=$lt_predeps_CXX
96624postdeps=$lt_postdeps_CXX
96625
96626# The library search path used internally by the compiler when linking
96627# a shared library.
96628compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
96629
96630# ### END LIBTOOL TAG CONFIG: CXX
96631_LT_EOF
96632
96633 ;;
96634    "po-directories":C)
96635    for ac_file in $CONFIG_FILES; do
96636      # Support "outfile[:infile[:infile...]]"
96637      case "$ac_file" in
96638        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
96639      esac
96640      # PO directories have a Makefile.in generated from Makefile.in.in.
96641      case "$ac_file" in */Makefile.in)
96642        # Adjust a relative srcdir.
96643        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
96644        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
96645        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
96646        # In autoconf-2.13 it is called $ac_given_srcdir.
96647        # In autoconf-2.50 it is called $srcdir.
96648        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
96649        case "$ac_given_srcdir" in
96650          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
96651          /*) top_srcdir="$ac_given_srcdir" ;;
96652          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
96653        esac
96654        # Treat a directory as a PO directory if and only if it has a
96655        # POTFILES.in file. This allows packages to have multiple PO
96656        # directories under different names or in different locations.
96657        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
96658          rm -f "$ac_dir/POTFILES"
96659          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
96660          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
96661          POMAKEFILEDEPS="POTFILES.in"
96662          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
96663          # on $ac_dir but don't depend on user-specified configuration
96664          # parameters.
96665          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
96666            # The LINGUAS file contains the set of available languages.
96667            if test -n "$OBSOLETE_ALL_LINGUAS"; then
96668              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
96669            fi
96670            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
96671            # Hide the ALL_LINGUAS assigment from automake < 1.5.
96672            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
96673            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
96674          else
96675            # The set of available languages was given in configure.in.
96676            # Hide the ALL_LINGUAS assigment from automake < 1.5.
96677            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
96678          fi
96679          # Compute POFILES
96680          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
96681          # Compute UPDATEPOFILES
96682          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
96683          # Compute DUMMYPOFILES
96684          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
96685          # Compute GMOFILES
96686          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
96687          case "$ac_given_srcdir" in
96688            .) srcdirpre= ;;
96689            *) srcdirpre='$(srcdir)/' ;;
96690          esac
96691          POFILES=
96692          UPDATEPOFILES=
96693          DUMMYPOFILES=
96694          GMOFILES=
96695          for lang in $ALL_LINGUAS; do
96696            POFILES="$POFILES $srcdirpre$lang.po"
96697            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
96698            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
96699            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
96700          done
96701          # CATALOGS depends on both $ac_dir and the user's LINGUAS
96702          # environment variable.
96703          INST_LINGUAS=
96704          if test -n "$ALL_LINGUAS"; then
96705            for presentlang in $ALL_LINGUAS; do
96706              useit=no
96707              if test "%UNSET%" != "$LINGUAS"; then
96708                desiredlanguages="$LINGUAS"
96709              else
96710                desiredlanguages="$ALL_LINGUAS"
96711              fi
96712              for desiredlang in $desiredlanguages; do
96713                # Use the presentlang catalog if desiredlang is
96714                #   a. equal to presentlang, or
96715                #   b. a variant of presentlang (because in this case,
96716                #      presentlang can be used as a fallback for messages
96717                #      which are not translated in the desiredlang catalog).
96718                case "$desiredlang" in
96719                  "$presentlang"*) useit=yes;;
96720                esac
96721              done
96722              if test $useit = yes; then
96723                INST_LINGUAS="$INST_LINGUAS $presentlang"
96724              fi
96725            done
96726          fi
96727          CATALOGS=
96728          if test -n "$INST_LINGUAS"; then
96729            for lang in $INST_LINGUAS; do
96730              CATALOGS="$CATALOGS $lang.gmo"
96731            done
96732          fi
96733          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
96734          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"
96735          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
96736            if test -f "$f"; then
96737              case "$f" in
96738                *.orig | *.bak | *~) ;;
96739                *) cat "$f" >> "$ac_dir/Makefile" ;;
96740              esac
96741            fi
96742          done
96743        fi
96744        ;;
96745      esac
96746    done ;;
96747    "$ac_stdint_h":C)
96748{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
96749$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
96750ac_stdint=$tmp/_stdint.h
96751
96752echo "#ifndef" $_ac_stdint_h >$ac_stdint
96753echo "#define" $_ac_stdint_h "1" >>$ac_stdint
96754echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
96755echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
96756echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
96757if test "_$ac_cv_header_stdint_t" != "_" ; then
96758echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
96759echo "#include <stdint.h>" >>$ac_stdint
96760echo "#endif" >>$ac_stdint
96761echo "#endif" >>$ac_stdint
96762else
96763
96764cat >>$ac_stdint <<STDINT_EOF
96765
96766/* ................... shortcircuit part ........................... */
96767
96768#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
96769#include <stdint.h>
96770#else
96771#include <stddef.h>
96772
96773/* .................... configured part ............................ */
96774
96775STDINT_EOF
96776
96777echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
96778if test "_$ac_cv_header_stdint_x" != "_" ; then
96779  ac_header="$ac_cv_header_stdint_x"
96780  echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
96781else
96782  echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
96783fi
96784
96785echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
96786if  test "_$ac_cv_header_stdint_o" != "_" ; then
96787  ac_header="$ac_cv_header_stdint_o"
96788  echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
96789else
96790  echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
96791fi
96792
96793echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
96794if  test "_$ac_cv_header_stdint_u" != "_" ; then
96795  ac_header="$ac_cv_header_stdint_u"
96796  echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
96797else
96798  echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
96799fi
96800
96801echo "" >>$ac_stdint
96802
96803if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
96804  echo "#include <$ac_header>" >>$ac_stdint
96805  echo "" >>$ac_stdint
96806fi fi
96807
96808echo "/* which 64bit typedef has been found */" >>$ac_stdint
96809if test "$ac_cv_type_uint64_t" = "yes" ; then
96810echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
96811else
96812echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
96813fi
96814if test "$ac_cv_type_u_int64_t" = "yes" ; then
96815echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
96816else
96817echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
96818fi
96819echo "" >>$ac_stdint
96820
96821echo "/* which type model has been detected */" >>$ac_stdint
96822if test "_$ac_cv_char_data_model" != "_" ; then
96823echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
96824echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
96825else
96826echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
96827echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
96828fi
96829echo "" >>$ac_stdint
96830
96831echo "/* whether int_least types were detected */" >>$ac_stdint
96832if test "$ac_cv_type_int_least32_t" = "yes"; then
96833echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
96834else
96835echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
96836fi
96837echo "/* whether int_fast types were detected */" >>$ac_stdint
96838if test "$ac_cv_type_int_fast32_t" = "yes"; then
96839echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
96840else
96841echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
96842fi
96843echo "/* whether intmax_t type was detected */" >>$ac_stdint
96844if test "$ac_cv_type_intmax_t" = "yes"; then
96845echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
96846else
96847echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
96848fi
96849echo "" >>$ac_stdint
96850
96851  cat >>$ac_stdint <<STDINT_EOF
96852/* .................... detections part ............................ */
96853
96854/* whether we need to define bitspecific types from compiler base types */
96855#ifndef _STDINT_HEADER_INTPTR
96856#ifndef _STDINT_HEADER_UINT32
96857#ifndef _STDINT_HEADER_U_INT32
96858#define _STDINT_NEED_INT_MODEL_T
96859#else
96860#define _STDINT_HAVE_U_INT_TYPES
96861#endif
96862#endif
96863#endif
96864
96865#ifdef _STDINT_HAVE_U_INT_TYPES
96866#undef _STDINT_NEED_INT_MODEL_T
96867#endif
96868
96869#ifdef  _STDINT_CHAR_MODEL
96870#if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
96871#ifndef _STDINT_BYTE_MODEL
96872#define _STDINT_BYTE_MODEL 12
96873#endif
96874#endif
96875#endif
96876
96877#ifndef _STDINT_HAVE_INT_LEAST32_T
96878#define _STDINT_NEED_INT_LEAST_T
96879#endif
96880
96881#ifndef _STDINT_HAVE_INT_FAST32_T
96882#define _STDINT_NEED_INT_FAST_T
96883#endif
96884
96885#ifndef _STDINT_HEADER_INTPTR
96886#define _STDINT_NEED_INTPTR_T
96887#ifndef _STDINT_HAVE_INTMAX_T
96888#define _STDINT_NEED_INTMAX_T
96889#endif
96890#endif
96891
96892
96893/* .................... definition part ............................ */
96894
96895/* some system headers have good uint64_t */
96896#ifndef _HAVE_UINT64_T
96897#if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
96898#define _HAVE_UINT64_T
96899#elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
96900#define _HAVE_UINT64_T
96901typedef u_int64_t uint64_t;
96902#endif
96903#endif
96904
96905#ifndef _HAVE_UINT64_T
96906/* .. here are some common heuristics using compiler runtime specifics */
96907#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
96908#define _HAVE_UINT64_T
96909#define _HAVE_LONGLONG_UINT64_T
96910typedef long long int64_t;
96911typedef unsigned long long uint64_t;
96912
96913#elif !defined __STRICT_ANSI__
96914#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
96915#define _HAVE_UINT64_T
96916typedef __int64 int64_t;
96917typedef unsigned __int64 uint64_t;
96918
96919#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
96920/* note: all ELF-systems seem to have loff-support which needs 64-bit */
96921#if !defined _NO_LONGLONG
96922#define _HAVE_UINT64_T
96923#define _HAVE_LONGLONG_UINT64_T
96924typedef long long int64_t;
96925typedef unsigned long long uint64_t;
96926#endif
96927
96928#elif defined __alpha || (defined __mips && defined _ABIN32)
96929#if !defined _NO_LONGLONG
96930typedef long int64_t;
96931typedef unsigned long uint64_t;
96932#endif
96933  /* compiler/cpu type to define int64_t */
96934#endif
96935#endif
96936#endif
96937
96938#if defined _STDINT_HAVE_U_INT_TYPES
96939/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
96940typedef u_int8_t uint8_t;
96941typedef u_int16_t uint16_t;
96942typedef u_int32_t uint32_t;
96943
96944/* glibc compatibility */
96945#ifndef __int8_t_defined
96946#define __int8_t_defined
96947#endif
96948#endif
96949
96950#ifdef _STDINT_NEED_INT_MODEL_T
96951/* we must guess all the basic types. Apart from byte-adressable system, */
96952/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
96953/* (btw, those nibble-addressable systems are way off, or so we assume) */
96954
96955
96956#if defined _STDINT_BYTE_MODEL
96957#if _STDINT_LONG_MODEL+0 == 242
96958/* 2:4:2 =  IP16 = a normal 16-bit system                */
96959typedef unsigned char   uint8_t;
96960typedef unsigned short  uint16_t;
96961typedef unsigned long   uint32_t;
96962#ifndef __int8_t_defined
96963#define __int8_t_defined
96964typedef          char    int8_t;
96965typedef          short   int16_t;
96966typedef          long    int32_t;
96967#endif
96968#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
96969/* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
96970/* 4:4:4 = ILP32 = a normal 32-bit system                */
96971typedef unsigned char   uint8_t;
96972typedef unsigned short  uint16_t;
96973typedef unsigned int    uint32_t;
96974#ifndef __int8_t_defined
96975#define __int8_t_defined
96976typedef          char    int8_t;
96977typedef          short   int16_t;
96978typedef          int     int32_t;
96979#endif
96980#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
96981/* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
96982/* 4:8:8 =  LP64 = a normal 64-bit system                 */
96983typedef unsigned char   uint8_t;
96984typedef unsigned short  uint16_t;
96985typedef unsigned int    uint32_t;
96986#ifndef __int8_t_defined
96987#define __int8_t_defined
96988typedef          char    int8_t;
96989typedef          short   int16_t;
96990typedef          int     int32_t;
96991#endif
96992/* this system has a "long" of 64bit */
96993#ifndef _HAVE_UINT64_T
96994#define _HAVE_UINT64_T
96995typedef unsigned long   uint64_t;
96996typedef          long    int64_t;
96997#endif
96998#elif _STDINT_LONG_MODEL+0 == 448
96999/*      LLP64   a 64-bit system derived from a 32-bit system */
97000typedef unsigned char   uint8_t;
97001typedef unsigned short  uint16_t;
97002typedef unsigned int    uint32_t;
97003#ifndef __int8_t_defined
97004#define __int8_t_defined
97005typedef          char    int8_t;
97006typedef          short   int16_t;
97007typedef          int     int32_t;
97008#endif
97009/* assuming the system has a "long long" */
97010#ifndef _HAVE_UINT64_T
97011#define _HAVE_UINT64_T
97012#define _HAVE_LONGLONG_UINT64_T
97013typedef unsigned long long uint64_t;
97014typedef          long long  int64_t;
97015#endif
97016#else
97017#define _STDINT_NO_INT32_T
97018#endif
97019#else
97020#define _STDINT_NO_INT8_T
97021#define _STDINT_NO_INT32_T
97022#endif
97023#endif
97024
97025/*
97026 * quote from SunOS-5.8 sys/inttypes.h:
97027 * Use at your own risk.  As of February 1996, the committee is squarely
97028 * behind the fixed sized types; the "least" and "fast" types are still being
97029 * discussed.  The probability that the "fast" types may be removed before
97030 * the standard is finalized is high enough that they are not currently
97031 * implemented.
97032 */
97033
97034#if defined _STDINT_NEED_INT_LEAST_T
97035typedef  int8_t    int_least8_t;
97036typedef  int16_t   int_least16_t;
97037typedef  int32_t   int_least32_t;
97038#ifdef _HAVE_UINT64_T
97039typedef  int64_t   int_least64_t;
97040#endif
97041
97042typedef uint8_t   uint_least8_t;
97043typedef uint16_t  uint_least16_t;
97044typedef uint32_t  uint_least32_t;
97045#ifdef _HAVE_UINT64_T
97046typedef uint64_t  uint_least64_t;
97047#endif
97048  /* least types */
97049#endif
97050
97051#if defined _STDINT_NEED_INT_FAST_T
97052typedef  int8_t    int_fast8_t;
97053typedef  int       int_fast16_t;
97054typedef  int32_t   int_fast32_t;
97055#ifdef _HAVE_UINT64_T
97056typedef  int64_t   int_fast64_t;
97057#endif
97058
97059typedef uint8_t   uint_fast8_t;
97060typedef unsigned  uint_fast16_t;
97061typedef uint32_t  uint_fast32_t;
97062#ifdef _HAVE_UINT64_T
97063typedef uint64_t  uint_fast64_t;
97064#endif
97065  /* fast types */
97066#endif
97067
97068#ifdef _STDINT_NEED_INTMAX_T
97069#ifdef _HAVE_UINT64_T
97070typedef  int64_t       intmax_t;
97071typedef uint64_t      uintmax_t;
97072#else
97073typedef          long  intmax_t;
97074typedef unsigned long uintmax_t;
97075#endif
97076#endif
97077
97078#ifdef _STDINT_NEED_INTPTR_T
97079#ifndef __intptr_t_defined
97080#define __intptr_t_defined
97081/* we encourage using "long" to store pointer values, never use "int" ! */
97082#if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
97083typedef  unsigned int   uintptr_t;
97084typedef           int    intptr_t;
97085#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
97086typedef  unsigned long  uintptr_t;
97087typedef           long   intptr_t;
97088#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
97089typedef        uint64_t uintptr_t;
97090typedef         int64_t  intptr_t;
97091#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
97092typedef  unsigned long  uintptr_t;
97093typedef           long   intptr_t;
97094#endif
97095#endif
97096#endif
97097
97098/* The ISO C99 standard specifies that in C++ implementations these
97099   should only be defined if explicitly requested.  */
97100#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
97101#ifndef UINT32_C
97102
97103/* Signed.  */
97104# define INT8_C(c)      c
97105# define INT16_C(c)     c
97106# define INT32_C(c)     c
97107# ifdef _HAVE_LONGLONG_UINT64_T
97108#  define INT64_C(c)    c ## L
97109# else
97110#  define INT64_C(c)    c ## LL
97111# endif
97112
97113/* Unsigned.  */
97114# define UINT8_C(c)     c ## U
97115# define UINT16_C(c)    c ## U
97116# define UINT32_C(c)    c ## U
97117# ifdef _HAVE_LONGLONG_UINT64_T
97118#  define UINT64_C(c)   c ## UL
97119# else
97120#  define UINT64_C(c)   c ## ULL
97121# endif
97122
97123/* Maximal type.  */
97124# ifdef _HAVE_LONGLONG_UINT64_T
97125#  define INTMAX_C(c)   c ## L
97126#  define UINTMAX_C(c)  c ## UL
97127# else
97128#  define INTMAX_C(c)   c ## LL
97129#  define UINTMAX_C(c)  c ## ULL
97130# endif
97131
97132  /* literalnumbers */
97133#endif
97134#endif
97135
97136/* These limits are merily those of a two complement byte-oriented system */
97137
97138/* Minimum of signed integral types.  */
97139# define INT8_MIN               (-128)
97140# define INT16_MIN              (-32767-1)
97141# define INT32_MIN              (-2147483647-1)
97142# define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
97143/* Maximum of signed integral types.  */
97144# define INT8_MAX               (127)
97145# define INT16_MAX              (32767)
97146# define INT32_MAX              (2147483647)
97147# define INT64_MAX              (__INT64_C(9223372036854775807))
97148
97149/* Maximum of unsigned integral types.  */
97150# define UINT8_MAX              (255)
97151# define UINT16_MAX             (65535)
97152# define UINT32_MAX             (4294967295U)
97153# define UINT64_MAX             (__UINT64_C(18446744073709551615))
97154
97155/* Minimum of signed integral types having a minimum size.  */
97156# define INT_LEAST8_MIN         INT8_MIN
97157# define INT_LEAST16_MIN        INT16_MIN
97158# define INT_LEAST32_MIN        INT32_MIN
97159# define INT_LEAST64_MIN        INT64_MIN
97160/* Maximum of signed integral types having a minimum size.  */
97161# define INT_LEAST8_MAX         INT8_MAX
97162# define INT_LEAST16_MAX        INT16_MAX
97163# define INT_LEAST32_MAX        INT32_MAX
97164# define INT_LEAST64_MAX        INT64_MAX
97165
97166/* Maximum of unsigned integral types having a minimum size.  */
97167# define UINT_LEAST8_MAX        UINT8_MAX
97168# define UINT_LEAST16_MAX       UINT16_MAX
97169# define UINT_LEAST32_MAX       UINT32_MAX
97170# define UINT_LEAST64_MAX       UINT64_MAX
97171
97172  /* shortcircuit*/
97173#endif
97174  /* once */
97175#endif
97176#endif
97177STDINT_EOF
97178fi
97179    if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
97180      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
97181$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
97182    else
97183      ac_dir=`$as_dirname -- "$ac_stdint_h" ||
97184$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
97185	 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
97186	 X"$ac_stdint_h" : 'X\(//\)$' \| \
97187	 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
97188$as_echo X"$ac_stdint_h" |
97189    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
97190	    s//\1/
97191	    q
97192	  }
97193	  /^X\(\/\/\)[^/].*/{
97194	    s//\1/
97195	    q
97196	  }
97197	  /^X\(\/\/\)$/{
97198	    s//\1/
97199	    q
97200	  }
97201	  /^X\(\/\).*/{
97202	    s//\1/
97203	    q
97204	  }
97205	  s/.*/./; q'`
97206      as_dir="$ac_dir"; as_fn_mkdir_p
97207      rm -f $ac_stdint_h
97208      mv $ac_stdint $ac_stdint_h
97209    fi
97210 ;;
97211    "ext/vulkan/vkconfig.h":C)
97212	outfile=vkconfig.h-tmp
97213	cat > $outfile <<\_______EOF
97214/* vkconfig.h
97215 *
97216 * This is a generated file.  Please modify `configure.ac'
97217 */
97218
97219#ifndef __GST_VULKAN_CONFIG_H__
97220#define __GST_VULKAN_CONFIG_H__
97221
97222#include <gst/gst.h>
97223
97224G_BEGIN_DECLS
97225
97226_______EOF
97227
97228	cat >>$outfile <<_______EOF
97229$vulkan_config_defines
97230_______EOF
97231
97232	cat >>$outfile <<_______EOF
97233
97234G_END_DECLS
97235
97236#endif  /* __GST_VULKAN_CONFIG_H__ */
97237_______EOF
97238
97239
97240	if cmp -s $outfile ext/vulkan/vkconfig.h; then
97241          { $as_echo "$as_me:${as_lineno-$LINENO}: ext/vulkan/vkconfig.h is unchanged" >&5
97242$as_echo "$as_me: ext/vulkan/vkconfig.h is unchanged" >&6;}
97243	  rm -f $outfile
97244	else
97245	  mv $outfile ext/vulkan/vkconfig.h
97246	fi
97247 ;;
97248
97249  esac
97250done # for ac_tag
97251
97252
97253as_fn_exit 0
97254_ACEOF
97255ac_clean_files=$ac_clean_files_save
97256
97257test $ac_write_fail = 0 ||
97258  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
97259
97260
97261# configure is writing to config.log, and then calls config.status.
97262# config.status does its own redirection, appending to config.log.
97263# Unfortunately, on DOS this fails, as config.log is still kept open
97264# by configure, so config.status won't be able to write to it; its
97265# output is simply discarded.  So we exec the FD to /dev/null,
97266# effectively closing config.log, so it can be properly (re)opened and
97267# appended to by config.status.  When coming back to configure, we
97268# need to make the FD available again.
97269if test "$no_create" != yes; then
97270  ac_cs_success=:
97271  ac_config_status_args=
97272  test "$silent" = yes &&
97273    ac_config_status_args="$ac_config_status_args --quiet"
97274  exec 5>/dev/null
97275  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
97276  exec 5>>config.log
97277  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
97278  # would make configure fail if this is the last instruction.
97279  $ac_cs_success || as_fn_exit 1
97280fi
97281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
97282  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
97283$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
97284fi
97285
97286
97287
97288
97289printf "configure: *** Plug-ins without external dependencies that will be built:\n"
97290( for i in $GST_PLUGINS_SELECTED; do printf '\t'$i'\n'; done ) | sort
97291printf "\n"
97292
97293printf "configure: *** Plug-ins without external dependencies that will NOT be built:\n"
97294( for i in $GST_PLUGINS_ALL; do
97295    case " $GST_PLUGINS_SELECTED " in
97296      *\ $i\ *)
97297	;;
97298      *)
97299	printf '\t'$i'\n'
97300	;;
97301    esac
97302  done ) | sort
97303printf "\n"
97304
97305printf "configure: *** Plug-ins that have NOT been ported:\n"
97306( for i in $GST_PLUGINS_NONPORTED; do
97307	printf '\t'$i'\n'
97308  done ) | sort
97309printf "\n"
97310
97311if test "x$BUILD_EXTERNAL" = "xno"; then
97312  printf "configure: *** No plug-ins with external dependencies will be built\n"
97313else
97314  printf "configure: *** Plug-ins with dependencies that will be built:"
97315  printf "$GST_PLUGINS_YES\n" | sort
97316  printf "\n"
97317  printf "configure: *** Plug-ins with dependencies that will NOT be built:"
97318  printf "$GST_PLUGINS_NO\n" | sort
97319  printf "\n"
97320fi
97321
97322
97323  if test "$HAVE_ORC" = yes ; then
97324    printf "configure: *** Orc acceleration enabled.\n"
97325  else
97326    if test "x$enable_orc" = "xno" ; then
97327      printf "configure: *** Orc acceleration disabled by --disable-orc.  Slower code paths\n"
97328      printf "               will be used.\n"
97329    else
97330      printf "configure: *** Orc acceleration disabled.  Requires Orc >= $ORC_REQ, which was\n"
97331      printf "               not found.  Slower code paths will be used.\n"
97332    fi
97333  fi
97334  printf "\n"
97335
97336