87e825ee1bf99055ad2e2c637920c27a46f24db0
[framework/multimedia/gstreamer0.10-ffmpeg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GStreamer Libav 0.10.13.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='GStreamer Libav'
573 PACKAGE_TARNAME='gst-ffmpeg'
574 PACKAGE_VERSION='0.10.13'
575 PACKAGE_STRING='GStreamer Libav 0.10.13'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer'
577 PACKAGE_URL=''
578
579 ac_unique_file="ext/ffmpeg/gstffmpeg.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 HAVE_FFMPEG_UNINSTALLED_FALSE
621 HAVE_FFMPEG_UNINSTALLED_TRUE
622 WIN32_LIBS
623 FFMPEG_SUBDIRS
624 FFMPEG_EXTERNALS_REVISION
625 FFMPEG_REVISION
626 FFMPEG_SVN
627 FFMPEG_CO_DIR
628 SWSCALE_LIBS
629 SWSCALE_CFLAGS
630 POSTPROC_LIBS
631 POSTPROC_CFLAGS
632 FFMPEG_LIBS
633 FFMPEG_CFLAGS
634 GST_FFMPEG_ENABLE_LGPL_FALSE
635 GST_FFMPEG_ENABLE_LGPL_TRUE
636 HAVE_BZ2_FALSE
637 HAVE_BZ2_TRUE
638 HAVE_BZ2
639 DARWIN_LDFLAGS
640 GST_PLUGIN_LDFLAGS
641 GST_ALL_LDFLAGS
642 GST_OPTION_CFLAGS
643 DEPRECATED_CFLAGS
644 PROFILE_CFLAGS
645 GST_LEVEL_DEFAULT
646 ERROR_CFLAGS
647 WARNING_CFLAGS
648 plugindir
649 PLUGINDIR
650 HAVE_ORCC_FALSE
651 HAVE_ORCC_TRUE
652 HAVE_ORC_FALSE
653 HAVE_ORC_TRUE
654 ORCC_FLAGS
655 ORCC
656 ORC_LIBS
657 ORC_CFLAGS
658 HAVE_GST_CHECK_FALSE
659 HAVE_GST_CHECK_TRUE
660 GST_CHECK_LIBS
661 GST_CHECK_CFLAGS
662 GSTPB_PLUGINS_DIR
663 GST_PLUGINS_BASE_DIR
664 GST_PLUGINS_BASE_LIBS
665 GST_PLUGINS_BASE_CFLAGS
666 GST_BASE_LIBS
667 GST_BASE_CFLAGS
668 GST_PLUGINS_DIR
669 GST_TOOLS_DIR
670 GST_LIBS
671 GST_CFLAGS
672 LIBM
673 ENABLE_PLUGIN_DOCS_FALSE
674 ENABLE_PLUGIN_DOCS_TRUE
675 pkgpyexecdir
676 pyexecdir
677 pkgpythondir
678 pythondir
679 PYTHON_PLATFORM
680 PYTHON_EXEC_PREFIX
681 PYTHON_PREFIX
682 PYTHON_VERSION
683 PYTHON
684 GTK_DOC_USE_LIBTOOL_FALSE
685 GTK_DOC_USE_LIBTOOL_TRUE
686 ENABLE_GTK_DOC_FALSE
687 ENABLE_GTK_DOC_TRUE
688 GTKDOC_CHECK
689 HTML_DIR
690 DOC_PS_FALSE
691 DOC_PS_TRUE
692 DOC_PDF_FALSE
693 DOC_PDF_TRUE
694 DOC_HTML_FALSE
695 DOC_HTML_TRUE
696 ENABLE_DOCBOOK_FALSE
697 ENABLE_DOCBOOK_TRUE
698 HAVE_EPSTOPDF
699 HAVE_PNMTOPS
700 HAVE_PNGTOPNM
701 HAVE_FIG2DEV
702 HAVE_XMLLINT
703 HAVE_DVIPS
704 CAT_ENTRY_END
705 CAT_ENTRY_START
706 DOCBOOK_ROOT
707 XSLTPROC_FLAGS
708 XML_CATALOG
709 XSLTPROC
710 HAVE_PS2PDF
711 HAVE_JADETEX
712 HAVE_DOCBOOK2HTML
713 HAVE_DOCBOOK2PS
714 HAVE_VALGRIND_FALSE
715 HAVE_VALGRIND_TRUE
716 VALGRIND_PATH
717 HAVE_CPU_CRISV32_FALSE
718 HAVE_CPU_CRISV32_TRUE
719 HAVE_CPU_CRIS_FALSE
720 HAVE_CPU_CRIS_TRUE
721 HAVE_CPU_X86_64_FALSE
722 HAVE_CPU_X86_64_TRUE
723 HAVE_CPU_M68K_FALSE
724 HAVE_CPU_M68K_TRUE
725 HAVE_CPU_IA64_FALSE
726 HAVE_CPU_IA64_TRUE
727 HAVE_CPU_S390_FALSE
728 HAVE_CPU_S390_TRUE
729 HAVE_CPU_MIPS_FALSE
730 HAVE_CPU_MIPS_TRUE
731 HAVE_CPU_HPPA_FALSE
732 HAVE_CPU_HPPA_TRUE
733 HAVE_CPU_SPARC_FALSE
734 HAVE_CPU_SPARC_TRUE
735 HAVE_CPU_ARM_FALSE
736 HAVE_CPU_ARM_TRUE
737 HAVE_CPU_ALPHA_FALSE
738 HAVE_CPU_ALPHA_TRUE
739 HAVE_CPU_PPC64_FALSE
740 HAVE_CPU_PPC64_TRUE
741 HAVE_CPU_PPC_FALSE
742 HAVE_CPU_PPC_TRUE
743 HAVE_CPU_I386_FALSE
744 HAVE_CPU_I386_TRUE
745 VALGRIND_LIBS
746 VALGRIND_CFLAGS
747 PKG_CONFIG
748 GST_PACKAGE_ORIGIN
749 GST_PACKAGE_NAME
750 ACLOCAL_AMFLAGS
751 CPP
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 MANIFEST_TOOL
758 RANLIB
759 ac_ct_AR
760 AR
761 LN_S
762 NM
763 ac_ct_DUMPBIN
764 DUMPBIN
765 LD
766 FGREP
767 EGREP
768 GREP
769 SED
770 am__fastdepCC_FALSE
771 am__fastdepCC_TRUE
772 CCDEPMODE
773 AMDEPBACKSLASH
774 AMDEP_FALSE
775 AMDEP_TRUE
776 am__quote
777 am__include
778 DEPDIR
779 OBJEXT
780 EXEEXT
781 ac_ct_CC
782 CPPFLAGS
783 LDFLAGS
784 CFLAGS
785 CC
786 LIBTOOL
787 OBJDUMP
788 DLLTOOL
789 AS
790 GST_MAJORMINOR
791 AM_BACKSLASH
792 AM_DEFAULT_VERBOSITY
793 host_os
794 host_vendor
795 host_cpu
796 host
797 build_os
798 build_vendor
799 build_cpu
800 build
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 PACKAGE_VERSION_RELEASE
805 PACKAGE_VERSION_NANO
806 PACKAGE_VERSION_MICRO
807 PACKAGE_VERSION_MINOR
808 PACKAGE_VERSION_MAJOR
809 am__untar
810 am__tar
811 AMTAR
812 am__leading_dot
813 SET_MAKE
814 AWK
815 mkdir_p
816 MKDIR_P
817 INSTALL_STRIP_PROGRAM
818 STRIP
819 install_sh
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files=''
871 ac_user_opts='
872 enable_option_checking
873 enable_maintainer_mode
874 enable_silent_rules
875 enable_shared
876 enable_static
877 with_pic
878 enable_fast_install
879 enable_dependency_tracking
880 with_gnu_ld
881 with_sysroot
882 enable_libtool_lock
883 with_autoconf
884 with_autoheader
885 with_automake
886 with_aclocal
887 with_pkg_config_path
888 with_package_name
889 with_package_origin
890 enable_valgrind
891 enable_docbook
892 with_html_dir
893 enable_gtk_doc
894 enable_orc
895 enable_lgpl
896 with_system_ffmpeg
897 with_ffmpeg_extra_configure
898 '
899       ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 PKG_CONFIG
909 VALGRIND_CFLAGS
910 VALGRIND_LIBS
911 GST_CFLAGS
912 GST_LIBS
913 GST_BASE_CFLAGS
914 GST_BASE_LIBS
915 GST_PLUGINS_BASE_CFLAGS
916 GST_PLUGINS_BASE_LIBS
917 GST_CHECK_CFLAGS
918 GST_CHECK_LIBS
919 ORC_CFLAGS
920 ORC_LIBS
921 FFMPEG_CFLAGS
922 FFMPEG_LIBS
923 POSTPROC_CFLAGS
924 POSTPROC_LIBS
925 SWSCALE_CFLAGS
926 SWSCALE_LIBS'
927
928
929 # Initialize some variables set by options.
930 ac_init_help=
931 ac_init_version=false
932 ac_unrecognized_opts=
933 ac_unrecognized_sep=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
936 cache_file=/dev/null
937 exec_prefix=NONE
938 no_create=
939 no_recursion=
940 prefix=NONE
941 program_prefix=NONE
942 program_suffix=NONE
943 program_transform_name=s,x,x,
944 silent=
945 site=
946 srcdir=
947 verbose=
948 x_includes=NONE
949 x_libraries=NONE
950
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
968 infodir='${datarootdir}/info'
969 htmldir='${docdir}'
970 dvidir='${docdir}'
971 pdfdir='${docdir}'
972 psdir='${docdir}'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
976
977 ac_prev=
978 ac_dashdash=
979 for ac_option
980 do
981   # If the previous option needs an argument, assign it.
982   if test -n "$ac_prev"; then
983     eval $ac_prev=\$ac_option
984     ac_prev=
985     continue
986   fi
987
988   case $ac_option in
989   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990   *=)   ac_optarg= ;;
991   *)    ac_optarg=yes ;;
992   esac
993
994   # Accept the important Cygnus configure options, so we can diagnose typos.
995
996   case $ac_dashdash$ac_option in
997   --)
998     ac_dashdash=yes ;;
999
1000   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001     ac_prev=bindir ;;
1002   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003     bindir=$ac_optarg ;;
1004
1005   -build | --build | --buil | --bui | --bu)
1006     ac_prev=build_alias ;;
1007   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008     build_alias=$ac_optarg ;;
1009
1010   -cache-file | --cache-file | --cache-fil | --cache-fi \
1011   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012     ac_prev=cache_file ;;
1013   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015     cache_file=$ac_optarg ;;
1016
1017   --config-cache | -C)
1018     cache_file=config.cache ;;
1019
1020   -datadir | --datadir | --datadi | --datad)
1021     ac_prev=datadir ;;
1022   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023     datadir=$ac_optarg ;;
1024
1025   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026   | --dataroo | --dataro | --datar)
1027     ac_prev=datarootdir ;;
1028   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030     datarootdir=$ac_optarg ;;
1031
1032   -disable-* | --disable-*)
1033     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036       as_fn_error $? "invalid feature name: $ac_useropt"
1037     ac_useropt_orig=$ac_useropt
1038     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039     case $ac_user_opts in
1040       *"
1041 "enable_$ac_useropt"
1042 "*) ;;
1043       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044          ac_unrecognized_sep=', ';;
1045     esac
1046     eval enable_$ac_useropt=no ;;
1047
1048   -docdir | --docdir | --docdi | --doc | --do)
1049     ac_prev=docdir ;;
1050   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1051     docdir=$ac_optarg ;;
1052
1053   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054     ac_prev=dvidir ;;
1055   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1056     dvidir=$ac_optarg ;;
1057
1058   -enable-* | --enable-*)
1059     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062       as_fn_error $? "invalid feature name: $ac_useropt"
1063     ac_useropt_orig=$ac_useropt
1064     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065     case $ac_user_opts in
1066       *"
1067 "enable_$ac_useropt"
1068 "*) ;;
1069       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070          ac_unrecognized_sep=', ';;
1071     esac
1072     eval enable_$ac_useropt=\$ac_optarg ;;
1073
1074   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076   | --exec | --exe | --ex)
1077     ac_prev=exec_prefix ;;
1078   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080   | --exec=* | --exe=* | --ex=*)
1081     exec_prefix=$ac_optarg ;;
1082
1083   -gas | --gas | --ga | --g)
1084     # Obsolete; use --with-gas.
1085     with_gas=yes ;;
1086
1087   -help | --help | --hel | --he | -h)
1088     ac_init_help=long ;;
1089   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090     ac_init_help=recursive ;;
1091   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092     ac_init_help=short ;;
1093
1094   -host | --host | --hos | --ho)
1095     ac_prev=host_alias ;;
1096   -host=* | --host=* | --hos=* | --ho=*)
1097     host_alias=$ac_optarg ;;
1098
1099   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100     ac_prev=htmldir ;;
1101   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102   | --ht=*)
1103     htmldir=$ac_optarg ;;
1104
1105   -includedir | --includedir | --includedi | --included | --include \
1106   | --includ | --inclu | --incl | --inc)
1107     ac_prev=includedir ;;
1108   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109   | --includ=* | --inclu=* | --incl=* | --inc=*)
1110     includedir=$ac_optarg ;;
1111
1112   -infodir | --infodir | --infodi | --infod | --info | --inf)
1113     ac_prev=infodir ;;
1114   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115     infodir=$ac_optarg ;;
1116
1117   -libdir | --libdir | --libdi | --libd)
1118     ac_prev=libdir ;;
1119   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120     libdir=$ac_optarg ;;
1121
1122   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123   | --libexe | --libex | --libe)
1124     ac_prev=libexecdir ;;
1125   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126   | --libexe=* | --libex=* | --libe=*)
1127     libexecdir=$ac_optarg ;;
1128
1129   -localedir | --localedir | --localedi | --localed | --locale)
1130     ac_prev=localedir ;;
1131   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132     localedir=$ac_optarg ;;
1133
1134   -localstatedir | --localstatedir | --localstatedi | --localstated \
1135   | --localstate | --localstat | --localsta | --localst | --locals)
1136     ac_prev=localstatedir ;;
1137   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1139     localstatedir=$ac_optarg ;;
1140
1141   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142     ac_prev=mandir ;;
1143   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144     mandir=$ac_optarg ;;
1145
1146   -nfp | --nfp | --nf)
1147     # Obsolete; use --without-fp.
1148     with_fp=no ;;
1149
1150   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151   | --no-cr | --no-c | -n)
1152     no_create=yes ;;
1153
1154   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156     no_recursion=yes ;;
1157
1158   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160   | --oldin | --oldi | --old | --ol | --o)
1161     ac_prev=oldincludedir ;;
1162   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165     oldincludedir=$ac_optarg ;;
1166
1167   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168     ac_prev=prefix ;;
1169   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170     prefix=$ac_optarg ;;
1171
1172   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173   | --program-pre | --program-pr | --program-p)
1174     ac_prev=program_prefix ;;
1175   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177     program_prefix=$ac_optarg ;;
1178
1179   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180   | --program-suf | --program-su | --program-s)
1181     ac_prev=program_suffix ;;
1182   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184     program_suffix=$ac_optarg ;;
1185
1186   -program-transform-name | --program-transform-name \
1187   | --program-transform-nam | --program-transform-na \
1188   | --program-transform-n | --program-transform- \
1189   | --program-transform | --program-transfor \
1190   | --program-transfo | --program-transf \
1191   | --program-trans | --program-tran \
1192   | --progr-tra | --program-tr | --program-t)
1193     ac_prev=program_transform_name ;;
1194   -program-transform-name=* | --program-transform-name=* \
1195   | --program-transform-nam=* | --program-transform-na=* \
1196   | --program-transform-n=* | --program-transform-=* \
1197   | --program-transform=* | --program-transfor=* \
1198   | --program-transfo=* | --program-transf=* \
1199   | --program-trans=* | --program-tran=* \
1200   | --progr-tra=* | --program-tr=* | --program-t=*)
1201     program_transform_name=$ac_optarg ;;
1202
1203   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204     ac_prev=pdfdir ;;
1205   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206     pdfdir=$ac_optarg ;;
1207
1208   -psdir | --psdir | --psdi | --psd | --ps)
1209     ac_prev=psdir ;;
1210   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211     psdir=$ac_optarg ;;
1212
1213   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214   | -silent | --silent | --silen | --sile | --sil)
1215     silent=yes ;;
1216
1217   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218     ac_prev=sbindir ;;
1219   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220   | --sbi=* | --sb=*)
1221     sbindir=$ac_optarg ;;
1222
1223   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225   | --sharedst | --shareds | --shared | --share | --shar \
1226   | --sha | --sh)
1227     ac_prev=sharedstatedir ;;
1228   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231   | --sha=* | --sh=*)
1232     sharedstatedir=$ac_optarg ;;
1233
1234   -site | --site | --sit)
1235     ac_prev=site ;;
1236   -site=* | --site=* | --sit=*)
1237     site=$ac_optarg ;;
1238
1239   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240     ac_prev=srcdir ;;
1241   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242     srcdir=$ac_optarg ;;
1243
1244   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245   | --syscon | --sysco | --sysc | --sys | --sy)
1246     ac_prev=sysconfdir ;;
1247   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249     sysconfdir=$ac_optarg ;;
1250
1251   -target | --target | --targe | --targ | --tar | --ta | --t)
1252     ac_prev=target_alias ;;
1253   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254     target_alias=$ac_optarg ;;
1255
1256   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257     verbose=yes ;;
1258
1259   -version | --version | --versio | --versi | --vers | -V)
1260     ac_init_version=: ;;
1261
1262   -with-* | --with-*)
1263     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264     # Reject names that are not valid shell variable names.
1265     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266       as_fn_error $? "invalid package name: $ac_useropt"
1267     ac_useropt_orig=$ac_useropt
1268     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269     case $ac_user_opts in
1270       *"
1271 "with_$ac_useropt"
1272 "*) ;;
1273       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274          ac_unrecognized_sep=', ';;
1275     esac
1276     eval with_$ac_useropt=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282       as_fn_error $? "invalid package name: $ac_useropt"
1283     ac_useropt_orig=$ac_useropt
1284     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285     case $ac_user_opts in
1286       *"
1287 "with_$ac_useropt"
1288 "*) ;;
1289       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290          ac_unrecognized_sep=', ';;
1291     esac
1292     eval with_$ac_useropt=no ;;
1293
1294   --x)
1295     # Obsolete; use --with-x.
1296     with_x=yes ;;
1297
1298   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299   | --x-incl | --x-inc | --x-in | --x-i)
1300     ac_prev=x_includes ;;
1301   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303     x_includes=$ac_optarg ;;
1304
1305   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307     ac_prev=x_libraries ;;
1308   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310     x_libraries=$ac_optarg ;;
1311
1312   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1314     ;;
1315
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     case $ac_envvar in #(
1320       '' | [0-9]* | *[!_$as_cr_alnum]* )
1321       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1322     esac
1323     eval $ac_envvar=\$ac_optarg
1324     export $ac_envvar ;;
1325
1326   *)
1327     # FIXME: should be removed in autoconf 3.0.
1328     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332     ;;
1333
1334   esac
1335 done
1336
1337 if test -n "$ac_prev"; then
1338   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339   as_fn_error $? "missing argument to $ac_option"
1340 fi
1341
1342 if test -n "$ac_unrecognized_opts"; then
1343   case $enable_option_checking in
1344     no) ;;
1345     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347   esac
1348 fi
1349
1350 # Check all directory arguments for consistency.
1351 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352                 datadir sysconfdir sharedstatedir localstatedir includedir \
1353                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354                 libdir localedir mandir
1355 do
1356   eval ac_val=\$$ac_var
1357   # Remove trailing slashes.
1358   case $ac_val in
1359     */ )
1360       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361       eval $ac_var=\$ac_val;;
1362   esac
1363   # Be sure to have absolute directory names.
1364   case $ac_val in
1365     [\\/$]* | ?:[\\/]* )  continue;;
1366     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367   esac
1368   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used" >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405   ac_srcdir_defaulted=yes
1406   # Try the directory containing this script, then the parent directory.
1407   ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409          X"$as_myself" : 'X\(//\)[^/]' \| \
1410          X"$as_myself" : 'X\(//\)$' \| \
1411          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 $as_echo X"$as_myself" |
1413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414             s//\1/
1415             q
1416           }
1417           /^X\(\/\/\)[^/].*/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\).*/{
1426             s//\1/
1427             q
1428           }
1429           s/.*/./; q'`
1430   srcdir=$ac_confdir
1431   if test ! -r "$srcdir/$ac_unique_file"; then
1432     srcdir=..
1433   fi
1434 else
1435   ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444         pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447   srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457   eval ac_env_${ac_var}_value=\$${ac_var}
1458   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466   # Omit some internal or obsolete options to make the list less imposing.
1467   # This message is too long to be a string in the A/UX 3.1 sh.
1468   cat <<_ACEOF
1469 \`configure' configures GStreamer Libav 0.10.13 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE.  See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479   -h, --help              display this help and exit
1480       --help=short        display options specific to this package
1481       --help=recursive    display the short help of all the included packages
1482   -V, --version           display version information and exit
1483   -q, --quiet, --silent   do not print \`checking ...' messages
1484       --cache-file=FILE   cache test results in FILE [disabled]
1485   -C, --config-cache      alias for \`--cache-file=config.cache'
1486   -n, --no-create         do not create output files
1487       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1488
1489 Installation directories:
1490   --prefix=PREFIX         install architecture-independent files in PREFIX
1491                           [$ac_default_prefix]
1492   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1493                           [PREFIX]
1494
1495 By default, \`make install' will install all the files in
1496 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1497 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498 for instance \`--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503   --bindir=DIR            user executables [EPREFIX/bin]
1504   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1505   --libexecdir=DIR        program executables [EPREFIX/libexec]
1506   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1507   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1508   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1509   --libdir=DIR            object code libraries [EPREFIX/lib]
1510   --includedir=DIR        C header files [PREFIX/include]
1511   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1512   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1513   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1514   --infodir=DIR           info documentation [DATAROOTDIR/info]
1515   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1516   --mandir=DIR            man documentation [DATAROOTDIR/man]
1517   --docdir=DIR            documentation root [DATAROOTDIR/doc/gst-ffmpeg]
1518   --htmldir=DIR           html documentation [DOCDIR]
1519   --dvidir=DIR            dvi documentation [DOCDIR]
1520   --pdfdir=DIR            pdf documentation [DOCDIR]
1521   --psdir=DIR             ps documentation [DOCDIR]
1522 _ACEOF
1523
1524   cat <<\_ACEOF
1525
1526 Program names:
1527   --program-prefix=PREFIX            prepend PREFIX to installed program names
1528   --program-suffix=SUFFIX            append SUFFIX to installed program names
1529   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1530
1531 System types:
1532   --build=BUILD     configure for building on BUILD [guessed]
1533   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1534 _ACEOF
1535 fi
1536
1537 if test -n "$ac_init_help"; then
1538   case $ac_init_help in
1539      short | recursive ) echo "Configuration of GStreamer Libav 0.10.13:";;
1540    esac
1541   cat <<\_ACEOF
1542
1543 Optional Features:
1544   --disable-option-checking  ignore unrecognized --enable/--with options
1545   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1546   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1547   --enable-maintainer-mode  enable make rules and dependencies not useful
1548                           (and sometimes confusing) to the casual installer
1549   --enable-silent-rules          less verbose build output (undo: `make V=1')
1550   --disable-silent-rules         verbose build output (undo: `make V=0')
1551   --enable-shared[=PKGS]  build shared libraries [default=yes]
1552   --enable-static[=PKGS]  build static libraries [default=yes]
1553   --enable-fast-install[=PKGS]
1554                           optimize for fast installation [default=yes]
1555   --disable-dependency-tracking  speeds up one-time build
1556   --enable-dependency-tracking   do not reject slow dependency extractors
1557   --disable-libtool-lock  avoid locking (might break parallel builds)
1558   --disable-valgrind      disable run-time valgrind detection
1559   --enable-docbook        use docbook to build documentation [default=no]
1560   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1561   --enable-orc            use Orc if installed
1562   --enable-lgpl           build a LGPL licensed gst-ffmpeg
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-pic              try to use only PIC/non-PIC objects [default=use
1568                           both]
1569   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570   --with-sysroot=DIR Search for dependent libraries within DIR
1571                         (or the compiler's sysroot if not specified).
1572   --with-autoconf         use a different autoconf for regeneration of
1573                           Makefiles
1574   --with-autoheader       use a different autoheader for regeneration of
1575                           Makefiles
1576   --with-automake         use a different automake for regeneration of
1577                           Makefiles
1578   --with-aclocal          use a different aclocal for regeneration of
1579                           Makefiles
1580   --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
1581   --with-package-name     specify package name to use in plugins
1582   --with-package-origin   specify package origin URL to use in plugins
1583   --with-html-dir=PATH    path to installed docs
1584   --with-system-ffmpeg    use system Libav libraries
1585   --with-ffmpeg-extra-configure="xxx"
1586                           extra configure options for internal ffmpeg
1587                           ./configure script
1588
1589 Some influential environment variables:
1590   CC          C compiler command
1591   CFLAGS      C compiler flags
1592   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593               nonstandard directory <lib dir>
1594   LIBS        libraries to pass to the linker, e.g. -l<library>
1595   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596               you have headers in a nonstandard directory <include dir>
1597   CPP         C preprocessor
1598   PKG_CONFIG  path to pkg-config utility
1599   VALGRIND_CFLAGS
1600               C compiler flags for VALGRIND, overriding pkg-config
1601   VALGRIND_LIBS
1602               linker flags for VALGRIND, overriding pkg-config
1603   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1604   GST_LIBS    linker flags for GST, overriding pkg-config
1605   GST_BASE_CFLAGS
1606               C compiler flags for GST_BASE, overriding pkg-config
1607   GST_BASE_LIBS
1608               linker flags for GST_BASE, overriding pkg-config
1609   GST_PLUGINS_BASE_CFLAGS
1610               C compiler flags for GST_PLUGINS_BASE, overriding pkg-config
1611   GST_PLUGINS_BASE_LIBS
1612               linker flags for GST_PLUGINS_BASE, overriding pkg-config
1613   GST_CHECK_CFLAGS
1614               C compiler flags for GST_CHECK, overriding pkg-config
1615   GST_CHECK_LIBS
1616               linker flags for GST_CHECK, overriding pkg-config
1617   ORC_CFLAGS  C compiler flags for ORC, overriding pkg-config
1618   ORC_LIBS    linker flags for ORC, overriding pkg-config
1619   FFMPEG_CFLAGS
1620               C compiler flags for FFMPEG, overriding pkg-config
1621   FFMPEG_LIBS linker flags for FFMPEG, overriding pkg-config
1622   POSTPROC_CFLAGS
1623               C compiler flags for POSTPROC, overriding pkg-config
1624   POSTPROC_LIBS
1625               linker flags for POSTPROC, overriding pkg-config
1626   SWSCALE_CFLAGS
1627               C compiler flags for SWSCALE, overriding pkg-config
1628   SWSCALE_LIBS
1629               linker flags for SWSCALE, overriding pkg-config
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640   # If there are subdirs, report their specific --help.
1641   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642     test -d "$ac_dir" ||
1643       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644       continue
1645     ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651   # A ".." for each directory in $ac_dir_suffix.
1652   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653   case $ac_top_builddir_sub in
1654   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656   esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664   .)  # We are building in place.
1665     ac_srcdir=.
1666     ac_top_srcdir=$ac_top_builddir_sub
1667     ac_abs_top_srcdir=$ac_pwd ;;
1668   [\\/]* | ?:[\\/]* )  # Absolute name.
1669     ac_srcdir=$srcdir$ac_dir_suffix;
1670     ac_top_srcdir=$srcdir
1671     ac_abs_top_srcdir=$srcdir ;;
1672   *) # Relative name.
1673     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674     ac_top_srcdir=$ac_top_build_prefix$srcdir
1675     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679     cd "$ac_dir" || { ac_status=$?; continue; }
1680     # Check for guested configure.
1681     if test -f "$ac_srcdir/configure.gnu"; then
1682       echo &&
1683       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684     elif test -f "$ac_srcdir/configure"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure" --help=recursive
1687     else
1688       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689     fi || ac_status=$?
1690     cd "$ac_pwd" || { ac_status=$?; break; }
1691   done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696   cat <<\_ACEOF
1697 GStreamer Libav configure 0.10.13
1698 generated by GNU Autoconf 2.68
1699
1700 Copyright (C) 2010 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704   exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   rm -f conftest.$ac_objext
1718   if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_compile") 2>conftest.err
1726   ac_status=$?
1727   if test -s conftest.err; then
1728     grep -v '^ *+' conftest.err >conftest.er1
1729     cat conftest.er1 >&5
1730     mv -f conftest.er1 conftest.err
1731   fi
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && {
1734          test -z "$ac_c_werror_flag" ||
1735          test ! -s conftest.err
1736        } && test -s conftest.$ac_objext; then :
1737   ac_retval=0
1738 else
1739   $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742         ac_retval=1
1743 fi
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745   as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_compile
1748
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_link ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   rm -f conftest.$ac_objext conftest$ac_exeext
1756   if { { ac_try="$ac_link"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_link") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } && {
1772          test -z "$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        } && test -s conftest$ac_exeext && {
1775          test "$cross_compiling" = yes ||
1776          $as_test_x conftest$ac_exeext
1777        }; then :
1778   ac_retval=0
1779 else
1780   $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1782
1783         ac_retval=1
1784 fi
1785   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787   # interfere with the next link command; also delete a directory that is
1788   # left behind by Apple's compiler.  We do this before executing the actions.
1789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_link
1794
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805   $as_echo_n "(cached) " >&6
1806 else
1807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h.  */
1809 $4
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813   eval "$3=yes"
1814 else
1815   eval "$3=no"
1816 fi
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 fi
1819 eval ac_res=\$$3
1820                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824 } # ac_fn_c_check_header_compile
1825
1826 # ac_fn_c_try_cpp LINENO
1827 # ----------------------
1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829 ac_fn_c_try_cpp ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   if { { ac_try="$ac_cpp conftest.$ac_ext"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } > conftest.i && {
1848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1849          test ! -s conftest.err
1850        }; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856     ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_cpp
1862
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866 # that executables *can* be run.
1867 ac_fn_c_try_run ()
1868 {
1869   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>&5
1878   ac_status=$?
1879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881   { { case "(($ac_try" in
1882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883   *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887   (eval "$ac_try") 2>&5
1888   ac_status=$?
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; }; }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: program exited with status $ac_status" >&5
1894        $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897        ac_retval=$ac_status
1898 fi
1899   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901   as_fn_set_status $ac_retval
1902
1903 } # ac_fn_c_try_run
1904
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1920 #define $2 innocuous_$2
1921
1922 /* System header to define __stub macros and hopefully few prototypes,
1923     which can conflict with char $2 (); below.
1924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925     <limits.h> exists even on freestanding compilers.  */
1926
1927 #ifdef __STDC__
1928 # include <limits.h>
1929 #else
1930 # include <assert.h>
1931 #endif
1932
1933 #undef $2
1934
1935 /* Override any GCC internal prototype to avoid an error.
1936    Use char because int might match the return type of a GCC
1937    builtin and then its argument prototype would still apply.  */
1938 #ifdef __cplusplus
1939 extern "C"
1940 #endif
1941 char $2 ();
1942 /* The GNU C library defines this for functions which it implements
1943     to always fail with ENOSYS.  Some functions are actually named
1944     something starting with __ and the normal name is an alias.  */
1945 #if defined __stub_$2 || defined __stub___$2
1946 choke me
1947 #endif
1948
1949 int
1950 main ()
1951 {
1952 return $2 ();
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_link "$LINENO"; then :
1958   eval "$3=yes"
1959 else
1960   eval "$3=no"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext \
1963     conftest$ac_exeext conftest.$ac_ext
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_func
1971
1972 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1973 # ---------------------------------------------
1974 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_decl ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   as_decl_name=`echo $2|sed 's/ *(.*//'`
1980   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1982 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1983 if eval \${$3+:} false; then :
1984   $as_echo_n "(cached) " >&6
1985 else
1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 #ifndef $as_decl_name
1993 #ifdef __cplusplus
1994   (void) $as_decl_use;
1995 #else
1996   (void) $as_decl_name;
1997 #endif
1998 #endif
1999
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005   eval "$3=yes"
2006 else
2007   eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 fi
2011 eval ac_res=\$$3
2012                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015
2016 } # ac_fn_c_check_decl
2017
2018 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2021 # the include files in INCLUDES and setting the cache variable VAR
2022 # accordingly.
2023 ac_fn_c_check_header_mongrel ()
2024 {
2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026   if eval \${$3+:} false; then :
2027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030   $as_echo_n "(cached) " >&6
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 else
2036   # Is the header compilable?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2038 $as_echo_n "checking $2 usability... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   ac_header_compiler=yes
2046 else
2047   ac_header_compiler=no
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2051 $as_echo "$ac_header_compiler" >&6; }
2052
2053 # Is the header present?
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2055 $as_echo_n "checking $2 presence... " >&6; }
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 #include <$2>
2059 _ACEOF
2060 if ac_fn_c_try_cpp "$LINENO"; then :
2061   ac_header_preproc=yes
2062 else
2063   ac_header_preproc=no
2064 fi
2065 rm -f conftest.err conftest.i conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067 $as_echo "$ac_header_preproc" >&6; }
2068
2069 # So?  What about this header?
2070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2071   yes:no: )
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2073 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076     ;;
2077   no:yes:* )
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2079 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2080     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2081 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2083 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2085 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088 ( $as_echo "## ------------------------------------------------------------------------ ##
2089 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ##
2090 ## ------------------------------------------------------------------------ ##"
2091      ) | sed "s/^/$as_me: WARNING:     /" >&2
2092     ;;
2093 esac
2094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval \${$3+:} false; then :
2097   $as_echo_n "(cached) " >&6
2098 else
2099   eval "$3=\$ac_header_compiler"
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 fi
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_header_mongrel
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by GStreamer Libav $as_me 0.10.13, which was
2113 generated by GNU Autoconf 2.68.  Invocation command line was
2114
2115   $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2133
2134 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2135 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2138 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2139 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2140 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149     $as_echo "PATH: $as_dir"
2150   done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176   for ac_arg
2177   do
2178     case $ac_arg in
2179     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181     | -silent | --silent | --silen | --sile | --sil)
2182       continue ;;
2183     *\'*)
2184       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185     esac
2186     case $ac_pass in
2187     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188     2)
2189       as_fn_append ac_configure_args1 " '$ac_arg'"
2190       if test $ac_must_keep_next = true; then
2191         ac_must_keep_next=false # Got value, back to normal.
2192       else
2193         case $ac_arg in
2194           *=* | --config-cache | -C | -disable-* | --disable-* \
2195           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197           | -with-* | --with-* | -without-* | --without-* | --x)
2198             case "$ac_configure_args0 " in
2199               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200             esac
2201             ;;
2202           -* ) ac_must_keep_next=true ;;
2203         esac
2204       fi
2205       as_fn_append ac_configure_args " '$ac_arg'"
2206       ;;
2207     esac
2208   done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log.  We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219   # Save into config.log some information that might help in debugging.
2220   {
2221     echo
2222
2223     $as_echo "## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##"
2226     echo
2227     # The following way of writing the cache mishandles newlines in values,
2228 (
2229   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2230     eval ac_val=\$$ac_var
2231     case $ac_val in #(
2232     *${as_nl}*)
2233       case $ac_var in #(
2234       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2236       esac
2237       case $ac_var in #(
2238       _ | IFS | as_nl) ;; #(
2239       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2240       *) { eval $ac_var=; unset $ac_var;} ;;
2241       esac ;;
2242     esac
2243   done
2244   (set) 2>&1 |
2245     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2246     *${as_nl}ac_space=\ *)
2247       sed -n \
2248         "s/'\''/'\''\\\\'\'''\''/g;
2249           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2250       ;; #(
2251     *)
2252       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253       ;;
2254     esac |
2255     sort
2256 )
2257     echo
2258
2259     $as_echo "## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##"
2262     echo
2263     for ac_var in $ac_subst_vars
2264     do
2265       eval ac_val=\$$ac_var
2266       case $ac_val in
2267       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268       esac
2269       $as_echo "$ac_var='\''$ac_val'\''"
2270     done | sort
2271     echo
2272
2273     if test -n "$ac_subst_files"; then
2274       $as_echo "## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##"
2277       echo
2278       for ac_var in $ac_subst_files
2279       do
2280         eval ac_val=\$$ac_var
2281         case $ac_val in
2282         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283         esac
2284         $as_echo "$ac_var='\''$ac_val'\''"
2285       done | sort
2286       echo
2287     fi
2288
2289     if test -s confdefs.h; then
2290       $as_echo "## ----------- ##
2291 ## confdefs.h. ##
2292 ## ----------- ##"
2293       echo
2294       cat confdefs.h
2295       echo
2296     fi
2297     test "$ac_signal" != 0 &&
2298       $as_echo "$as_me: caught signal $ac_signal"
2299     $as_echo "$as_me: exit $exit_status"
2300   } >&5
2301   rm -f core *.core core.conftest.* &&
2302     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2303     exit $exit_status
2304 ' 0
2305 for ac_signal in 1 2 13 15; do
2306   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2307 done
2308 ac_signal=0
2309
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2312
2313 $as_echo "/* confdefs.h */" > confdefs.h
2314
2315 # Predefined preprocessor variables.
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_NAME "$PACKAGE_NAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_STRING "$PACKAGE_STRING"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_URL "$PACKAGE_URL"
2339 _ACEOF
2340
2341
2342 # Let the site file select an alternate cache file if it wants to.
2343 # Prefer an explicitly selected file to automatically selected ones.
2344 ac_site_file1=NONE
2345 ac_site_file2=NONE
2346 if test -n "$CONFIG_SITE"; then
2347   # We do not want a PATH search for config.site.
2348   case $CONFIG_SITE in #((
2349     -*)  ac_site_file1=./$CONFIG_SITE;;
2350     */*) ac_site_file1=$CONFIG_SITE;;
2351     *)   ac_site_file1=./$CONFIG_SITE;;
2352   esac
2353 elif test "x$prefix" != xNONE; then
2354   ac_site_file1=$prefix/share/config.site
2355   ac_site_file2=$prefix/etc/config.site
2356 else
2357   ac_site_file1=$ac_default_prefix/share/config.site
2358   ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362   test "x$ac_site_file" = xNONE && continue
2363   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366     sed 's/^/| /' "$ac_site_file" >&5
2367     . "$ac_site_file" \
2368       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 as_fn_error $? "failed to load site script $ac_site_file
2371 See \`config.log' for more details" "$LINENO" 5; }
2372   fi
2373 done
2374
2375 if test -r "$cache_file"; then
2376   # Some versions of bash will fail to source /dev/null (special files
2377   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2378   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2380 $as_echo "$as_me: loading cache $cache_file" >&6;}
2381     case $cache_file in
2382       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383       *)                      . "./$cache_file";;
2384     esac
2385   fi
2386 else
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2388 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389   >$cache_file
2390 fi
2391
2392 # Check that the precious variables saved in the cache have kept the same
2393 # value.
2394 ac_cache_corrupted=false
2395 for ac_var in $ac_precious_vars; do
2396   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2397   eval ac_new_set=\$ac_env_${ac_var}_set
2398   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2399   eval ac_new_val=\$ac_env_${ac_var}_value
2400   case $ac_old_set,$ac_new_set in
2401     set,)
2402       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2404       ac_cache_corrupted=: ;;
2405     ,set)
2406       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2408       ac_cache_corrupted=: ;;
2409     ,);;
2410     *)
2411       if test "x$ac_old_val" != "x$ac_new_val"; then
2412         # differences in whitespace do not lead to failure.
2413         ac_old_val_w=`echo x $ac_old_val`
2414         ac_new_val_w=`echo x $ac_new_val`
2415         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2416           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2417 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2418           ac_cache_corrupted=:
2419         else
2420           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2421 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2422           eval $ac_var=\$ac_old_val
2423         fi
2424         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2425 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2426         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2427 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2428       fi;;
2429   esac
2430   # Pass precious variables to config.status.
2431   if test "$ac_new_set" = set; then
2432     case $ac_new_val in
2433     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2434     *) ac_arg=$ac_var=$ac_new_val ;;
2435     esac
2436     case " $ac_configure_args " in
2437       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2438       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439     esac
2440   fi
2441 done
2442 if $ac_cache_corrupted; then
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2446 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2447   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 fi
2449 ## -------------------- ##
2450 ## Main body of script. ##
2451 ## -------------------- ##
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
2459
2460
2461
2462
2463
2464
2465 am__api_version='1.11'
2466
2467 ac_aux_dir=
2468 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2469   if test -f "$ac_dir/install-sh"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/install-sh -c"
2472     break
2473   elif test -f "$ac_dir/install.sh"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/install.sh -c"
2476     break
2477   elif test -f "$ac_dir/shtool"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/shtool install -c"
2480     break
2481   fi
2482 done
2483 if test -z "$ac_aux_dir"; then
2484   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2485 fi
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2494
2495
2496 # Find a good install program.  We prefer a C program (faster),
2497 # so one script is as good as another.  But avoid the broken or
2498 # incompatible versions:
2499 # SysV /etc/install, /usr/sbin/install
2500 # SunOS /usr/etc/install
2501 # IRIX /sbin/install
2502 # AIX /bin/install
2503 # AmigaOS /C/install, which installs bootblocks on floppy discs
2504 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2506 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2507 # OS/2's system install, which has a completely different semantic
2508 # ./install, which can be erroneously created by make from ./install.sh.
2509 # Reject install programs that cannot install multiple files.
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2511 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2512 if test -z "$INSTALL"; then
2513 if ${ac_cv_path_install+:} false; then :
2514   $as_echo_n "(cached) " >&6
2515 else
2516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521     # Account for people who put trailing slashes in PATH elements.
2522 case $as_dir/ in #((
2523   ./ | .// | /[cC]/* | \
2524   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2525   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2526   /usr/ucb/* ) ;;
2527   *)
2528     # OSF1 and SCO ODT 3.0 have their own names for install.
2529     # Don't use installbsd from OSF since it installs stuff as root
2530     # by default.
2531     for ac_prog in ginstall scoinst install; do
2532       for ac_exec_ext in '' $ac_executable_extensions; do
2533         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2534           if test $ac_prog = install &&
2535             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536             # AIX install.  It has an incompatible calling convention.
2537             :
2538           elif test $ac_prog = install &&
2539             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2540             # program-specific install script used by HP pwplus--don't use.
2541             :
2542           else
2543             rm -rf conftest.one conftest.two conftest.dir
2544             echo one > conftest.one
2545             echo two > conftest.two
2546             mkdir conftest.dir
2547             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2548               test -s conftest.one && test -s conftest.two &&
2549               test -s conftest.dir/conftest.one &&
2550               test -s conftest.dir/conftest.two
2551             then
2552               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553               break 3
2554             fi
2555           fi
2556         fi
2557       done
2558     done
2559     ;;
2560 esac
2561
2562   done
2563 IFS=$as_save_IFS
2564
2565 rm -rf conftest.one conftest.two conftest.dir
2566
2567 fi
2568   if test "${ac_cv_path_install+set}" = set; then
2569     INSTALL=$ac_cv_path_install
2570   else
2571     # As a last resort, use the slow shell script.  Don't cache a
2572     # value for INSTALL within a source directory, because that will
2573     # break other packages using the cache if that directory is
2574     # removed, or if the value is a relative name.
2575     INSTALL=$ac_install_sh
2576   fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2579 $as_echo "$INSTALL" >&6; }
2580
2581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2582 # It thinks the first close brace ends the variable substitution.
2583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2584
2585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2586
2587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2590 $as_echo_n "checking whether build environment is sane... " >&6; }
2591 # Just in case
2592 sleep 1
2593 echo timestamp > conftest.file
2594 # Reject unsafe characters in $srcdir or the absolute working directory
2595 # name.  Accept space and tab only in the latter.
2596 am_lf='
2597 '
2598 case `pwd` in
2599   *[\\\"\#\$\&\'\`$am_lf]*)
2600     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2601 esac
2602 case $srcdir in
2603   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2604     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2605 esac
2606
2607 # Do `set' in a subshell so we don't clobber the current shell's
2608 # arguments.  Must try -L first in case configure is actually a
2609 # symlink; some systems play weird games with the mod time of symlinks
2610 # (eg FreeBSD returns the mod time of the symlink's containing
2611 # directory).
2612 if (
2613    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2614    if test "$*" = "X"; then
2615       # -L didn't work.
2616       set X `ls -t "$srcdir/configure" conftest.file`
2617    fi
2618    rm -f conftest.file
2619    if test "$*" != "X $srcdir/configure conftest.file" \
2620       && test "$*" != "X conftest.file $srcdir/configure"; then
2621
2622       # If neither matched, then we have a broken ls.  This can happen
2623       # if, for instance, CONFIG_SHELL is bash and it inherits a
2624       # broken ls alias from the environment.  This has actually
2625       # happened.  Such a system could not be considered "sane".
2626       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2627 alias in your environment" "$LINENO" 5
2628    fi
2629
2630    test "$2" = conftest.file
2631    )
2632 then
2633    # Ok.
2634    :
2635 else
2636    as_fn_error $? "newly created file is older than distributed files!
2637 Check your system clock" "$LINENO" 5
2638 fi
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 test "$program_prefix" != NONE &&
2642   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2643 # Use a double $ so make ignores it.
2644 test "$program_suffix" != NONE &&
2645   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2646 # Double any \ or $.
2647 # By default was `s,x,x', remove it if useless.
2648 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2649 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2650
2651 # expand $ac_aux_dir to an absolute path
2652 am_aux_dir=`cd $ac_aux_dir && pwd`
2653
2654 if test x"${MISSING+set}" != xset; then
2655   case $am_aux_dir in
2656   *\ * | *\     *)
2657     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2658   *)
2659     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2660   esac
2661 fi
2662 # Use eval to expand $SHELL
2663 if eval "$MISSING --run true"; then
2664   am_missing_run="$MISSING --run "
2665 else
2666   am_missing_run=
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2668 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2669 fi
2670
2671 if test x"${install_sh}" != xset; then
2672   case $am_aux_dir in
2673   *\ * | *\     *)
2674     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2675   *)
2676     install_sh="\${SHELL} $am_aux_dir/install-sh"
2677   esac
2678 fi
2679
2680 # Installed binaries are usually stripped using `strip' when the user
2681 # run `make install-strip'.  However `strip' might not be the right
2682 # tool to use in cross-compilation environments, therefore Automake
2683 # will honor the `STRIP' environment variable to overrule this program.
2684 if test "$cross_compiling" != no; then
2685   if test -n "$ac_tool_prefix"; then
2686   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_STRIP+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$STRIP"; then
2694   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     for ac_exec_ext in '' $ac_executable_extensions; do
2702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 STRIP=$ac_cv_prog_STRIP
2714 if test -n "$STRIP"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2716 $as_echo "$STRIP" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722
2723 fi
2724 if test -z "$ac_cv_prog_STRIP"; then
2725   ac_ct_STRIP=$STRIP
2726   # Extract the first word of "strip", so it can be a program name with args.
2727 set dummy strip; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2731   $as_echo_n "(cached) " >&6
2732 else
2733   if test -n "$ac_ct_STRIP"; then
2734   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2738 do
2739   IFS=$as_save_IFS
2740   test -z "$as_dir" && as_dir=.
2741     for ac_exec_ext in '' $ac_executable_extensions; do
2742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743     ac_cv_prog_ac_ct_STRIP="strip"
2744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745     break 2
2746   fi
2747 done
2748   done
2749 IFS=$as_save_IFS
2750
2751 fi
2752 fi
2753 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2754 if test -n "$ac_ct_STRIP"; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2756 $as_echo "$ac_ct_STRIP" >&6; }
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762   if test "x$ac_ct_STRIP" = x; then
2763     STRIP=":"
2764   else
2765     case $cross_compiling:$ac_tool_warned in
2766 yes:)
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769 ac_tool_warned=yes ;;
2770 esac
2771     STRIP=$ac_ct_STRIP
2772   fi
2773 else
2774   STRIP="$ac_cv_prog_STRIP"
2775 fi
2776
2777 fi
2778 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2781 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2782 if test -z "$MKDIR_P"; then
2783   if ${ac_cv_path_mkdir+:} false; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_prog in mkdir gmkdir; do
2792          for ac_exec_ext in '' $ac_executable_extensions; do
2793            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2794            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2795              'mkdir (GNU coreutils) '* | \
2796              'mkdir (coreutils) '* | \
2797              'mkdir (fileutils) '4.1*)
2798                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2799                break 3;;
2800            esac
2801          done
2802        done
2803   done
2804 IFS=$as_save_IFS
2805
2806 fi
2807
2808   test -d ./--version && rmdir ./--version
2809   if test "${ac_cv_path_mkdir+set}" = set; then
2810     MKDIR_P="$ac_cv_path_mkdir -p"
2811   else
2812     # As a last resort, use the slow shell script.  Don't cache a
2813     # value for MKDIR_P within a source directory, because that will
2814     # break other packages using the cache if that directory is
2815     # removed, or if the value is a relative name.
2816     MKDIR_P="$ac_install_sh -d"
2817   fi
2818 fi
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2820 $as_echo "$MKDIR_P" >&6; }
2821
2822 mkdir_p="$MKDIR_P"
2823 case $mkdir_p in
2824   [\\/$]* | ?:[\\/]*) ;;
2825   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2826 esac
2827
2828 for ac_prog in gawk mawk nawk awk
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_AWK+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$AWK"; then
2838   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_AWK="$ac_prog"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 AWK=$ac_cv_prog_AWK
2858 if test -n "$AWK"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860 $as_echo "$AWK" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867   test -n "$AWK" && break
2868 done
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 set x ${MAKE-make}
2873 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2874 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   cat >conftest.make <<\_ACEOF
2878 SHELL = /bin/sh
2879 all:
2880         @echo '@@@%%%=$(MAKE)=@@@%%%'
2881 _ACEOF
2882 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884   *@@@%%%=?*=@@@%%%*)
2885     eval ac_cv_prog_make_${ac_make}_set=yes;;
2886   *)
2887     eval ac_cv_prog_make_${ac_make}_set=no;;
2888 esac
2889 rm -f conftest.make
2890 fi
2891 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894   SET_MAKE=
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898   SET_MAKE="MAKE=${MAKE-make}"
2899 fi
2900
2901 rm -rf .tst 2>/dev/null
2902 mkdir .tst 2>/dev/null
2903 if test -d .tst; then
2904   am__leading_dot=.
2905 else
2906   am__leading_dot=_
2907 fi
2908 rmdir .tst 2>/dev/null
2909
2910 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912   # is not polluted with repeated "-I."
2913   am__isrc=' -I$(srcdir)'
2914   # test to see if srcdir already configured
2915   if test -f $srcdir/config.status; then
2916     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917   fi
2918 fi
2919
2920 # test whether we have cygpath
2921 if test -z "$CYGPATH_W"; then
2922   if (cygpath --version) >/dev/null 2>/dev/null; then
2923     CYGPATH_W='cygpath -w'
2924   else
2925     CYGPATH_W=echo
2926   fi
2927 fi
2928
2929
2930 # Define the identity of the package.
2931  PACKAGE='gst-ffmpeg'
2932  VERSION='0.10.13'
2933
2934
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE "$PACKAGE"
2937 _ACEOF
2938
2939
2940 cat >>confdefs.h <<_ACEOF
2941 #define VERSION "$VERSION"
2942 _ACEOF
2943
2944 # Some tools Automake needs.
2945
2946 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947
2948
2949 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950
2951
2952 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953
2954
2955 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956
2957
2958 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959
2960 # We need awk for the "check" target.  The system "awk" is bad on
2961 # some platforms.
2962 # Always define AMTAR for backward compatibility.
2963
2964 AMTAR=${AMTAR-"${am_missing_run}tar"}
2965
2966 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967
2968
2969
2970
2971
2972
2973
2974   PACKAGE_VERSION_MAJOR=$(echo 0.10.13 | cut -d'.' -f1)
2975   PACKAGE_VERSION_MINOR=$(echo 0.10.13 | cut -d'.' -f2)
2976   PACKAGE_VERSION_MICRO=$(echo 0.10.13 | cut -d'.' -f3)
2977
2978
2979
2980
2981
2982
2983
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
2985 $as_echo_n "checking nano version... " >&6; }
2986
2987   NANO=$(echo 0.10.13 | cut -d'.' -f4)
2988
2989   if test x"$NANO" = x || test "x$NANO" = "x0" ; then
2990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
2991 $as_echo "0 (release)" >&6; }
2992     NANO=0
2993     PACKAGE_VERSION_RELEASE=1
2994     GST_GIT="no"
2995   else
2996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
2997 $as_echo "$NANO" >&6; }
2998     PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
2999     if test "x$NANO" != "x1" ; then
3000        GST_GIT="no"
3001     else
3002        GST_GIT="yes"
3003     fi
3004   fi
3005   PACKAGE_VERSION_NANO=$NANO
3006
3007
3008
3009
3010
3011
3012 ac_config_headers="$ac_config_headers config.h"
3013
3014
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3017 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3018     # Check whether --enable-maintainer-mode was given.
3019 if test "${enable_maintainer_mode+set}" = set; then :
3020   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3021 else
3022   USE_MAINTAINER_MODE=no
3023 fi
3024
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3026 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3027    if test $USE_MAINTAINER_MODE = yes; then
3028   MAINTAINER_MODE_TRUE=
3029   MAINTAINER_MODE_FALSE='#'
3030 else
3031   MAINTAINER_MODE_TRUE='#'
3032   MAINTAINER_MODE_FALSE=
3033 fi
3034
3035   MAINT=$MAINTAINER_MODE_TRUE
3036
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if ${ac_cv_build+:} false; then :
3046   $as_echo_n "(cached) " >&6
3047 else
3048   ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if ${ac_cv_host+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test "x$host_alias" = x; then
3083   ac_cv_host=$ac_cv_build
3084 else
3085   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110
3111 # Check whether --enable-silent-rules was given.
3112 if test "${enable_silent_rules+set}" = set; then :
3113   enableval=$enable_silent_rules;
3114 fi
3115
3116 case $enable_silent_rules in
3117 yes) AM_DEFAULT_VERBOSITY=0;;
3118 no)  AM_DEFAULT_VERBOSITY=1;;
3119 *)   AM_DEFAULT_VERBOSITY=0;;
3120 esac
3121 AM_BACKSLASH='\'
3122
3123
3124 GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
3125 GST_MAJORMINOR=0.10
3126
3127
3128
3129         case $host_os in
3130   cygwin* | mingw*)
3131     lt_cv_deplibs_check_method=pass_all
3132     ;;
3133   esac
3134
3135
3136 enable_win32_dll=yes
3137
3138 case $host in
3139 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3140   if test -n "$ac_tool_prefix"; then
3141   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}as; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_AS+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   if test -n "$AS"; then
3149   ac_cv_prog_AS="$AS" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156     for ac_exec_ext in '' $ac_executable_extensions; do
3157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158     ac_cv_prog_AS="${ac_tool_prefix}as"
3159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163   done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 AS=$ac_cv_prog_AS
3169 if test -n "$AS"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3171 $as_echo "$AS" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 fi
3179 if test -z "$ac_cv_prog_AS"; then
3180   ac_ct_AS=$AS
3181   # Extract the first word of "as", so it can be a program name with args.
3182 set dummy as; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$ac_ct_AS"; then
3189   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196     for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_ac_ct_AS="as"
3199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3209 if test -n "$ac_ct_AS"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3211 $as_echo "$ac_ct_AS" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217   if test "x$ac_ct_AS" = x; then
3218     AS="false"
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226     AS=$ac_ct_AS
3227   fi
3228 else
3229   AS="$ac_cv_prog_AS"
3230 fi
3231
3232   if test -n "$ac_tool_prefix"; then
3233   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_DLLTOOL+:} false; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$DLLTOOL"; then
3241   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248     for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255   done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 DLLTOOL=$ac_cv_prog_DLLTOOL
3261 if test -n "$DLLTOOL"; then
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3263 $as_echo "$DLLTOOL" >&6; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 if test -z "$ac_cv_prog_DLLTOOL"; then
3272   ac_ct_DLLTOOL=$DLLTOOL
3273   # Extract the first word of "dlltool", so it can be a program name with args.
3274 set dummy dlltool; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$ac_ct_DLLTOOL"; then
3281   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_exec_ext in '' $ac_executable_extensions; do
3289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295   done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3301 if test -n "$ac_ct_DLLTOOL"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3303 $as_echo "$ac_ct_DLLTOOL" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309   if test "x$ac_ct_DLLTOOL" = x; then
3310     DLLTOOL="false"
3311   else
3312     case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318     DLLTOOL=$ac_ct_DLLTOOL
3319   fi
3320 else
3321   DLLTOOL="$ac_cv_prog_DLLTOOL"
3322 fi
3323
3324   if test -n "$ac_tool_prefix"; then
3325   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_OBJDUMP+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if test -n "$OBJDUMP"; then
3333   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338   IFS=$as_save_IFS
3339   test -z "$as_dir" && as_dir=.
3340     for ac_exec_ext in '' $ac_executable_extensions; do
3341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344     break 2
3345   fi
3346 done
3347   done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 OBJDUMP=$ac_cv_prog_OBJDUMP
3353 if test -n "$OBJDUMP"; then
3354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3355 $as_echo "$OBJDUMP" >&6; }
3356 else
3357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 fi
3363 if test -z "$ac_cv_prog_OBJDUMP"; then
3364   ac_ct_OBJDUMP=$OBJDUMP
3365   # Extract the first word of "objdump", so it can be a program name with args.
3366 set dummy objdump; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3370   $as_echo_n "(cached) " >&6
3371 else
3372   if test -n "$ac_ct_OBJDUMP"; then
3373   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380     for ac_exec_ext in '' $ac_executable_extensions; do
3381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387   done
3388 IFS=$as_save_IFS
3389
3390 fi
3391 fi
3392 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3393 if test -n "$ac_ct_OBJDUMP"; then
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3395 $as_echo "$ac_ct_OBJDUMP" >&6; }
3396 else
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 fi
3400
3401   if test "x$ac_ct_OBJDUMP" = x; then
3402     OBJDUMP="false"
3403   else
3404     case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410     OBJDUMP=$ac_ct_OBJDUMP
3411   fi
3412 else
3413   OBJDUMP="$ac_cv_prog_OBJDUMP"
3414 fi
3415
3416   ;;
3417 esac
3418
3419 test -z "$AS" && AS=as
3420
3421
3422
3423
3424
3425 test -z "$DLLTOOL" && DLLTOOL=dlltool
3426
3427
3428
3429
3430
3431 test -z "$OBJDUMP" && OBJDUMP=objdump
3432
3433
3434
3435
3436
3437
3438
3439 case `pwd` in
3440   *\ * | *\     *)
3441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3442 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3443 esac
3444
3445
3446
3447 macro_version='2.4'
3448 macro_revision='1.3293'
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462 ltmain="$ac_aux_dir/ltmain.sh"
3463
3464 # Backslashify metacharacters that are still active within
3465 # double-quoted strings.
3466 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3467
3468 # Same as above, but do not quote variable references.
3469 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3470
3471 # Sed substitution to delay expansion of an escaped shell variable in a
3472 # double_quote_subst'ed string.
3473 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3474
3475 # Sed substitution to delay expansion of an escaped single quote.
3476 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3477
3478 # Sed substitution to avoid accidental globbing in evaled expressions
3479 no_glob_subst='s/\*/\\\*/g'
3480
3481 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3484
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3486 $as_echo_n "checking how to print strings... " >&6; }
3487 # Test print first, because it will be a builtin if present.
3488 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3489    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3490   ECHO='print -r --'
3491 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3492   ECHO='printf %s\n'
3493 else
3494   # Use this function as a fallback that always works.
3495   func_fallback_echo ()
3496   {
3497     eval 'cat <<_LTECHO_EOF
3498 $1
3499 _LTECHO_EOF'
3500   }
3501   ECHO='func_fallback_echo'
3502 fi
3503
3504 # func_echo_all arg...
3505 # Invoke $ECHO with all args, space-separated.
3506 func_echo_all ()
3507 {
3508     $ECHO ""
3509 }
3510
3511 case "$ECHO" in
3512   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3513 $as_echo "printf" >&6; } ;;
3514   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3515 $as_echo "print -r" >&6; } ;;
3516   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3517 $as_echo "cat" >&6; } ;;
3518 esac
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533 DEPDIR="${am__leading_dot}deps"
3534
3535 ac_config_commands="$ac_config_commands depfiles"
3536
3537
3538 am_make=${MAKE-make}
3539 cat > confinc << 'END'
3540 am__doit:
3541         @echo this is the am__doit target
3542 .PHONY: am__doit
3543 END
3544 # If we don't find an include directive, just comment out the code.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3546 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 am__include="#"
3548 am__quote=
3549 _am_result=none
3550 # First try GNU make style include.
3551 echo "include confinc" > confmf
3552 # Ignore all kinds of additional output from `make'.
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555   am__include=include
3556   am__quote=
3557   _am_result=GNU
3558   ;;
3559 esac
3560 # Now try BSD make style include.
3561 if test "$am__include" = "#"; then
3562    echo '.include "confinc"' > confmf
3563    case `$am_make -s -f confmf 2> /dev/null` in #(
3564    *the\ am__doit\ target*)
3565      am__include=.include
3566      am__quote="\""
3567      _am_result=BSD
3568      ;;
3569    esac
3570 fi
3571
3572
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3574 $as_echo "$_am_result" >&6; }
3575 rm -f confinc confmf
3576
3577 # Check whether --enable-dependency-tracking was given.
3578 if test "${enable_dependency_tracking+set}" = set; then :
3579   enableval=$enable_dependency_tracking;
3580 fi
3581
3582 if test "x$enable_dependency_tracking" != xno; then
3583   am_depcomp="$ac_aux_dir/depcomp"
3584   AMDEPBACKSLASH='\'
3585 fi
3586  if test "x$enable_dependency_tracking" != xno; then
3587   AMDEP_TRUE=
3588   AMDEP_FALSE='#'
3589 else
3590   AMDEP_TRUE='#'
3591   AMDEP_FALSE=
3592 fi
3593
3594
3595 ac_ext=c
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 if test -n "$ac_tool_prefix"; then
3601   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606   $as_echo_n "(cached) " >&6
3607 else
3608   if test -n "$CC"; then
3609   ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614   IFS=$as_save_IFS
3615   test -z "$as_dir" && as_dir=.
3616     for ac_exec_ext in '' $ac_executable_extensions; do
3617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623   done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 fi
3639 if test -z "$ac_cv_prog_CC"; then
3640   ac_ct_CC=$CC
3641   # Extract the first word of "gcc", so it can be a program name with args.
3642 set dummy gcc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3646   $as_echo_n "(cached) " >&6
3647 else
3648   if test -n "$ac_ct_CC"; then
3649   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654   IFS=$as_save_IFS
3655   test -z "$as_dir" && as_dir=.
3656     for ac_exec_ext in '' $ac_executable_extensions; do
3657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658     ac_cv_prog_ac_ct_CC="gcc"
3659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660     break 2
3661   fi
3662 done
3663   done
3664 IFS=$as_save_IFS
3665
3666 fi
3667 fi
3668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669 if test -n "$ac_ct_CC"; then
3670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3671 $as_echo "$ac_ct_CC" >&6; }
3672 else
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677   if test "x$ac_ct_CC" = x; then
3678     CC=""
3679   else
3680     case $cross_compiling:$ac_tool_warned in
3681 yes:)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686     CC=$ac_ct_CC
3687   fi
3688 else
3689   CC="$ac_cv_prog_CC"
3690 fi
3691
3692 if test -z "$CC"; then
3693           if test -n "$ac_tool_prefix"; then
3694     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$CC"; then
3702   ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_CC="${ac_tool_prefix}cc"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731   fi
3732 fi
3733 if test -z "$CC"; then
3734   # Extract the first word of "cc", so it can be a program name with args.
3735 set dummy cc; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CC+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   if test -n "$CC"; then
3742   ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744   ac_prog_rejected=no
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3753        ac_prog_rejected=yes
3754        continue
3755      fi
3756     ac_cv_prog_CC="cc"
3757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758     break 2
3759   fi
3760 done
3761   done
3762 IFS=$as_save_IFS
3763
3764 if test $ac_prog_rejected = yes; then
3765   # We found a bogon in the path, so make sure we never use it.
3766   set dummy $ac_cv_prog_CC
3767   shift
3768   if test $# != 0; then
3769     # We chose a different compiler from the bogus one.
3770     # However, it has the same basename, so the bogon will be chosen
3771     # first if we set CC to just the basename; use the full file name.
3772     shift
3773     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3774   fi
3775 fi
3776 fi
3777 fi
3778 CC=$ac_cv_prog_CC
3779 if test -n "$CC"; then
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3781 $as_echo "$CC" >&6; }
3782 else
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 fi
3789 if test -z "$CC"; then
3790   if test -n "$ac_tool_prefix"; then
3791   for ac_prog in cl.exe
3792   do
3793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_CC+:} false; then :
3798   $as_echo_n "(cached) " >&6
3799 else
3800   if test -n "$CC"; then
3801   ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806   IFS=$as_save_IFS
3807   test -z "$as_dir" && as_dir=.
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815   done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830     test -n "$CC" && break
3831   done
3832 fi
3833 if test -z "$CC"; then
3834   ac_ct_CC=$CC
3835   for ac_prog in cl.exe
3836 do
3837   # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   if test -n "$ac_ct_CC"; then
3845   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852     for ac_exec_ext in '' $ac_executable_extensions; do
3853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854     ac_cv_prog_ac_ct_CC="$ac_prog"
3855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859   done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 $as_echo "$ac_ct_CC" >&6; }
3868 else
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873
3874   test -n "$ac_ct_CC" && break
3875 done
3876
3877   if test "x$ac_ct_CC" = x; then
3878     CC=""
3879   else
3880     case $cross_compiling:$ac_tool_warned in
3881 yes:)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886     CC=$ac_ct_CC
3887   fi
3888 fi
3889
3890 fi
3891
3892
3893 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "no acceptable C compiler found in \$PATH
3896 See \`config.log' for more details" "$LINENO" 5; }
3897
3898 # Provide some information about the compiler.
3899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3900 set X $ac_compile
3901 ac_compiler=$2
3902 for ac_option in --version -v -V -qversion; do
3903   { { ac_try="$ac_compiler $ac_option >&5"
3904 case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3911   ac_status=$?
3912   if test -s conftest.err; then
3913     sed '10a\
3914 ... rest of stderr output deleted ...
3915          10q' conftest.err >conftest.er1
3916     cat conftest.er1 >&5
3917   fi
3918   rm -f conftest.er1 conftest.err
3919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920   test $ac_status = 0; }
3921 done
3922
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 ac_clean_files_save=$ac_clean_files
3935 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3936 # Try to create an executable without -o first, disregard a.out.
3937 # It will help us diagnose broken compilers, and finding out an intuition
3938 # of exeext.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3940 $as_echo_n "checking whether the C compiler works... " >&6; }
3941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3942
3943 # The possible output files:
3944 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3945
3946 ac_rmfiles=
3947 for ac_file in $ac_files
3948 do
3949   case $ac_file in
3950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3952   esac
3953 done
3954 rm -f $ac_rmfiles
3955
3956 if { { ac_try="$ac_link_default"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963   (eval "$ac_link_default") 2>&5
3964   ac_status=$?
3965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966   test $ac_status = 0; }; then :
3967   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3968 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3969 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3970 # so that the user can short-circuit this test for compilers unknown to
3971 # Autoconf.
3972 for ac_file in $ac_files ''
3973 do
3974   test -f "$ac_file" || continue
3975   case $ac_file in
3976     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3977         ;;
3978     [ab].out )
3979         # We found the default executable, but exeext='' is most
3980         # certainly right.
3981         break;;
3982     *.* )
3983         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3984         then :; else
3985            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986         fi
3987         # We set ac_cv_exeext here because the later test for it is not
3988         # safe: cross compilers may not add the suffix if given an `-o'
3989         # argument, so we may need to know it at that point already.
3990         # Even if this section looks crufty: it has the advantage of
3991         # actually working.
3992         break;;
3993     * )
3994         break;;
3995   esac
3996 done
3997 test "$ac_cv_exeext" = no && ac_cv_exeext=
3998
3999 else
4000   ac_file=''
4001 fi
4002 if test -z "$ac_file"; then :
4003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "C compiler cannot create executables
4011 See \`config.log' for more details" "$LINENO" 5; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014 $as_echo "yes" >&6; }
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4017 $as_echo_n "checking for C compiler default output file name... " >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4019 $as_echo "$ac_file" >&6; }
4020 ac_exeext=$ac_cv_exeext
4021
4022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4023 ac_clean_files=$ac_clean_files_save
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4025 $as_echo_n "checking for suffix of executables... " >&6; }
4026 if { { ac_try="$ac_link"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033   (eval "$ac_link") 2>&5
4034   ac_status=$?
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; }; then :
4037   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4038 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4039 # work properly (i.e., refer to `conftest.exe'), while it won't with
4040 # `rm'.
4041 for ac_file in conftest.exe conftest conftest.*; do
4042   test -f "$ac_file" || continue
4043   case $ac_file in
4044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4045     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4046           break;;
4047     * ) break;;
4048   esac
4049 done
4050 else
4051   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4054 See \`config.log' for more details" "$LINENO" 5; }
4055 fi
4056 rm -f conftest conftest$ac_cv_exeext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4058 $as_echo "$ac_cv_exeext" >&6; }
4059
4060 rm -f conftest.$ac_ext
4061 EXEEXT=$ac_cv_exeext
4062 ac_exeext=$EXEEXT
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h.  */
4065 #include <stdio.h>
4066 int
4067 main ()
4068 {
4069 FILE *f = fopen ("conftest.out", "w");
4070  return ferror (f) || fclose (f) != 0;
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 ac_clean_files="$ac_clean_files conftest.out"
4077 # Check that the compiler produces executables we can run.  If not, either
4078 # the compiler is broken, or we cross compile.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4080 $as_echo_n "checking whether we are cross compiling... " >&6; }
4081 if test "$cross_compiling" != yes; then
4082   { { ac_try="$ac_link"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089   (eval "$ac_link") 2>&5
4090   ac_status=$?
4091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092   test $ac_status = 0; }
4093   if { ac_try='./conftest$ac_cv_exeext'
4094   { { case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100   (eval "$ac_try") 2>&5
4101   ac_status=$?
4102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103   test $ac_status = 0; }; }; then
4104     cross_compiling=no
4105   else
4106     if test "$cross_compiling" = maybe; then
4107         cross_compiling=yes
4108     else
4109         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot run C compiled programs.
4112 If you meant to cross compile, use \`--host'.
4113 See \`config.log' for more details" "$LINENO" 5; }
4114     fi
4115   fi
4116 fi
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4118 $as_echo "$cross_compiling" >&6; }
4119
4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4121 ac_clean_files=$ac_clean_files_save
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4123 $as_echo_n "checking for suffix of object files... " >&6; }
4124 if ${ac_cv_objext+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h.  */
4129
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 rm -f conftest.o conftest.obj
4139 if { { ac_try="$ac_compile"
4140 case "(($ac_try" in
4141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142   *) ac_try_echo=$ac_try;;
4143 esac
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146   (eval "$ac_compile") 2>&5
4147   ac_status=$?
4148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149   test $ac_status = 0; }; then :
4150   for ac_file in conftest.o conftest.obj conftest.*; do
4151   test -f "$ac_file" || continue;
4152   case $ac_file in
4153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4154     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4155        break;;
4156   esac
4157 done
4158 else
4159   $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "cannot compute suffix of object files: cannot compile
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 fi
4167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4170 $as_echo "$ac_cv_objext" >&6; }
4171 OBJEXT=$ac_cv_objext
4172 ac_objext=$OBJEXT
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4174 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4175 if ${ac_cv_c_compiler_gnu+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h.  */
4180
4181 int
4182 main ()
4183 {
4184 #ifndef __GNUC__
4185        choke me
4186 #endif
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193   ac_compiler_gnu=yes
4194 else
4195   ac_compiler_gnu=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4202 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4203 if test $ac_compiler_gnu = yes; then
4204   GCC=yes
4205 else
4206   GCC=
4207 fi
4208 ac_test_CFLAGS=${CFLAGS+set}
4209 ac_save_CFLAGS=$CFLAGS
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4211 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4212 if ${ac_cv_prog_cc_g+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   ac_save_c_werror_flag=$ac_c_werror_flag
4216    ac_c_werror_flag=yes
4217    ac_cv_prog_cc_g=no
4218    CFLAGS="-g"
4219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h.  */
4221
4222 int
4223 main ()
4224 {
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_c_try_compile "$LINENO"; then :
4231   ac_cv_prog_cc_g=yes
4232 else
4233   CFLAGS=""
4234       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h.  */
4236
4237 int
4238 main ()
4239 {
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246
4247 else
4248   ac_c_werror_flag=$ac_save_c_werror_flag
4249          CFLAGS="-g"
4250          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252
4253 int
4254 main ()
4255 {
4256
4257   ;
4258   return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262   ac_cv_prog_cc_g=yes
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269    ac_c_werror_flag=$ac_save_c_werror_flag
4270 fi
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4272 $as_echo "$ac_cv_prog_cc_g" >&6; }
4273 if test "$ac_test_CFLAGS" = set; then
4274   CFLAGS=$ac_save_CFLAGS
4275 elif test $ac_cv_prog_cc_g = yes; then
4276   if test "$GCC" = yes; then
4277     CFLAGS="-g -O2"
4278   else
4279     CFLAGS="-g"
4280   fi
4281 else
4282   if test "$GCC" = yes; then
4283     CFLAGS="-O2"
4284   else
4285     CFLAGS=
4286   fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4289 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4290 if ${ac_cv_prog_cc_c89+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   ac_cv_prog_cc_c89=no
4294 ac_save_CC=$CC
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h.  */
4297 #include <stdarg.h>
4298 #include <stdio.h>
4299 #include <sys/types.h>
4300 #include <sys/stat.h>
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4305      char **p;
4306      int i;
4307 {
4308   return p[i];
4309 }
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4311 {
4312   char *s;
4313   va_list v;
4314   va_start (v,p);
4315   s = g (p, va_arg (v,int));
4316   va_end (v);
4317   return s;
4318 }
4319
4320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4321    function prototypes and stuff, but not '\xHH' hex character constants.
4322    These don't provoke an error unfortunately, instead are silently treated
4323    as 'x'.  The following induces an error, until -std is added to get
4324    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4325    array size at least.  It's necessary to write '\x00'==0 to get something
4326    that's true only with -std.  */
4327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4328
4329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4330    inside strings and character constants.  */
4331 #define FOO(x) 'x'
4332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4333
4334 int test (int i, double x);
4335 struct s1 {int (*f) (int a);};
4336 struct s2 {int (*f) (double a);};
4337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4338 int argc;
4339 char **argv;
4340 int
4341 main ()
4342 {
4343 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4349         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4350 do
4351   CC="$ac_save_CC $ac_arg"
4352   if ac_fn_c_try_compile "$LINENO"; then :
4353   ac_cv_prog_cc_c89=$ac_arg
4354 fi
4355 rm -f core conftest.err conftest.$ac_objext
4356   test "x$ac_cv_prog_cc_c89" != "xno" && break
4357 done
4358 rm -f conftest.$ac_ext
4359 CC=$ac_save_CC
4360
4361 fi
4362 # AC_CACHE_VAL
4363 case "x$ac_cv_prog_cc_c89" in
4364   x)
4365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; } ;;
4367   xno)
4368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 $as_echo "unsupported" >&6; } ;;
4370   *)
4371     CC="$CC $ac_cv_prog_cc_c89"
4372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4374 esac
4375 if test "x$ac_cv_prog_cc_c89" != xno; then :
4376
4377 fi
4378
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385 depcc="$CC"   am_compiler_list=
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4388 $as_echo_n "checking dependency style of $depcc... " >&6; }
4389 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4393   # We make a subdir and do the tests there.  Otherwise we can end up
4394   # making bogus files that we don't know about and never remove.  For
4395   # instance it was reported that on HP-UX the gcc test will end up
4396   # making a dummy file named `D' -- because `-MD' means `put the output
4397   # in D'.
4398   mkdir conftest.dir
4399   # Copy depcomp to subdir because otherwise we won't find it if we're
4400   # using a relative directory.
4401   cp "$am_depcomp" conftest.dir
4402   cd conftest.dir
4403   # We will build objects and dependencies in a subdirectory because
4404   # it helps to detect inapplicable dependency modes.  For instance
4405   # both Tru64's cc and ICC support -MD to output dependencies as a
4406   # side effect of compilation, but ICC will put the dependencies in
4407   # the current directory while Tru64 will put them in the object
4408   # directory.
4409   mkdir sub
4410
4411   am_cv_CC_dependencies_compiler_type=none
4412   if test "$am_compiler_list" = ""; then
4413      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414   fi
4415   am__universal=false
4416   case " $depcc " in #(
4417      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418      esac
4419
4420   for depmode in $am_compiler_list; do
4421     # Setup a source with many dependencies, because some compilers
4422     # like to wrap large dependency lists on column 80 (with \), and
4423     # we should not choose a depcomp mode which is confused by this.
4424     #
4425     # We need to recreate these files for each test, as the compiler may
4426     # overwrite some of them when testing with obscure command lines.
4427     # This happens at least with the AIX C compiler.
4428     : > sub/conftest.c
4429     for i in 1 2 3 4 5 6; do
4430       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4432       # Solaris 8's {/usr,}/bin/sh.
4433       touch sub/conftst$i.h
4434     done
4435     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4438     # mode.  It turns out that the SunPro C++ compiler does not properly
4439     # handle `-M -o', and we need to detect this.  Also, some Intel
4440     # versions had trouble with output in subdirs
4441     am__obj=sub/conftest.${OBJEXT-o}
4442     am__minus_obj="-o $am__obj"
4443     case $depmode in
4444     gcc)
4445       # This depmode causes a compiler race in universal mode.
4446       test "$am__universal" = false || continue
4447       ;;
4448     nosideeffect)
4449       # after this tag, mechanisms are not by side-effect, so they'll
4450       # only be used when explicitly requested
4451       if test "x$enable_dependency_tracking" = xyes; then
4452         continue
4453       else
4454         break
4455       fi
4456       ;;
4457     msvisualcpp | msvcmsys)
4458       # This compiler won't grok `-c -o', but also, the minuso test has
4459       # not run yet.  These depmodes are late enough in the game, and
4460       # so weak that their functioning should not be impacted.
4461       am__obj=conftest.${OBJEXT-o}
4462       am__minus_obj=
4463       ;;
4464     none) break ;;
4465     esac
4466     if depmode=$depmode \
4467        source=sub/conftest.c object=$am__obj \
4468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470          >/dev/null 2>conftest.err &&
4471        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475       # icc doesn't choke on unknown options, it will just issue warnings
4476       # or remarks (even with -Werror).  So we grep stderr for any message
4477       # that says an option was ignored or not supported.
4478       # When given -MP, icc 7.0 and 7.1 complain thusly:
4479       #   icc: Command line warning: ignoring option '-M'; no argument required
4480       # The diagnosis changed in icc 8.0:
4481       #   icc: Command line remark: option '-MP' not supported
4482       if (grep 'ignoring option' conftest.err ||
4483           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484         am_cv_CC_dependencies_compiler_type=$depmode
4485         break
4486       fi
4487     fi
4488   done
4489
4490   cd ..
4491   rm -rf conftest.dir
4492 else
4493   am_cv_CC_dependencies_compiler_type=none
4494 fi
4495
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4499 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500
4501  if
4502   test "x$enable_dependency_tracking" != xno \
4503   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504   am__fastdepCC_TRUE=
4505   am__fastdepCC_FALSE='#'
4506 else
4507   am__fastdepCC_TRUE='#'
4508   am__fastdepCC_FALSE=
4509 fi
4510
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4513 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4514 if ${ac_cv_path_SED+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4518      for ac_i in 1 2 3 4 5 6 7; do
4519        ac_script="$ac_script$as_nl$ac_script"
4520      done
4521      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4522      { ac_script=; unset ac_script;}
4523      if test -z "$SED"; then
4524   ac_path_SED_found=false
4525   # Loop through the user's path and test for each of PROGNAME-LIST
4526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529   IFS=$as_save_IFS
4530   test -z "$as_dir" && as_dir=.
4531     for ac_prog in sed gsed; do
4532     for ac_exec_ext in '' $ac_executable_extensions; do
4533       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4534       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4535 # Check for GNU ac_path_SED and select it if it is found.
4536   # Check for GNU $ac_path_SED
4537 case `"$ac_path_SED" --version 2>&1` in
4538 *GNU*)
4539   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4540 *)
4541   ac_count=0
4542   $as_echo_n 0123456789 >"conftest.in"
4543   while :
4544   do
4545     cat "conftest.in" "conftest.in" >"conftest.tmp"
4546     mv "conftest.tmp" "conftest.in"
4547     cp "conftest.in" "conftest.nl"
4548     $as_echo '' >> "conftest.nl"
4549     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551     as_fn_arith $ac_count + 1 && ac_count=$as_val
4552     if test $ac_count -gt ${ac_path_SED_max-0}; then
4553       # Best one so far, save it but keep looking for a better one
4554       ac_cv_path_SED="$ac_path_SED"
4555       ac_path_SED_max=$ac_count
4556     fi
4557     # 10*(2^10) chars as input seems more than enough
4558     test $ac_count -gt 10 && break
4559   done
4560   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4562
4563       $ac_path_SED_found && break 3
4564     done
4565   done
4566   done
4567 IFS=$as_save_IFS
4568   if test -z "$ac_cv_path_SED"; then
4569     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4570   fi
4571 else
4572   ac_cv_path_SED=$SED
4573 fi
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4577 $as_echo "$ac_cv_path_SED" >&6; }
4578  SED="$ac_cv_path_SED"
4579   rm -f conftest.sed
4580
4581 test -z "$SED" && SED=sed
4582 Xsed="$SED -e 1s/^X//"
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4595 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4596 if ${ac_cv_path_GREP+:} false; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   if test -z "$GREP"; then
4600   ac_path_GREP_found=false
4601   # Loop through the user's path and test for each of PROGNAME-LIST
4602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_prog in grep ggrep; do
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4610       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4611 # Check for GNU ac_path_GREP and select it if it is found.
4612   # Check for GNU $ac_path_GREP
4613 case `"$ac_path_GREP" --version 2>&1` in
4614 *GNU*)
4615   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4616 *)
4617   ac_count=0
4618   $as_echo_n 0123456789 >"conftest.in"
4619   while :
4620   do
4621     cat "conftest.in" "conftest.in" >"conftest.tmp"
4622     mv "conftest.tmp" "conftest.in"
4623     cp "conftest.in" "conftest.nl"
4624     $as_echo 'GREP' >> "conftest.nl"
4625     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627     as_fn_arith $ac_count + 1 && ac_count=$as_val
4628     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4629       # Best one so far, save it but keep looking for a better one
4630       ac_cv_path_GREP="$ac_path_GREP"
4631       ac_path_GREP_max=$ac_count
4632     fi
4633     # 10*(2^10) chars as input seems more than enough
4634     test $ac_count -gt 10 && break
4635   done
4636   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 esac
4638
4639       $ac_path_GREP_found && break 3
4640     done
4641   done
4642   done
4643 IFS=$as_save_IFS
4644   if test -z "$ac_cv_path_GREP"; then
4645     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4646   fi
4647 else
4648   ac_cv_path_GREP=$GREP
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4653 $as_echo "$ac_cv_path_GREP" >&6; }
4654  GREP="$ac_cv_path_GREP"
4655
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4658 $as_echo_n "checking for egrep... " >&6; }
4659 if ${ac_cv_path_EGREP+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663    then ac_cv_path_EGREP="$GREP -E"
4664    else
4665      if test -z "$EGREP"; then
4666   ac_path_EGREP_found=false
4667   # Loop through the user's path and test for each of PROGNAME-LIST
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_prog in egrep; do
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4676       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4677 # Check for GNU ac_path_EGREP and select it if it is found.
4678   # Check for GNU $ac_path_EGREP
4679 case `"$ac_path_EGREP" --version 2>&1` in
4680 *GNU*)
4681   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4682 *)
4683   ac_count=0
4684   $as_echo_n 0123456789 >"conftest.in"
4685   while :
4686   do
4687     cat "conftest.in" "conftest.in" >"conftest.tmp"
4688     mv "conftest.tmp" "conftest.in"
4689     cp "conftest.in" "conftest.nl"
4690     $as_echo 'EGREP' >> "conftest.nl"
4691     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693     as_fn_arith $ac_count + 1 && ac_count=$as_val
4694     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4695       # Best one so far, save it but keep looking for a better one
4696       ac_cv_path_EGREP="$ac_path_EGREP"
4697       ac_path_EGREP_max=$ac_count
4698     fi
4699     # 10*(2^10) chars as input seems more than enough
4700     test $ac_count -gt 10 && break
4701   done
4702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4704
4705       $ac_path_EGREP_found && break 3
4706     done
4707   done
4708   done
4709 IFS=$as_save_IFS
4710   if test -z "$ac_cv_path_EGREP"; then
4711     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4712   fi
4713 else
4714   ac_cv_path_EGREP=$EGREP
4715 fi
4716
4717    fi
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4720 $as_echo "$ac_cv_path_EGREP" >&6; }
4721  EGREP="$ac_cv_path_EGREP"
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4725 $as_echo_n "checking for fgrep... " >&6; }
4726 if ${ac_cv_path_FGREP+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4730    then ac_cv_path_FGREP="$GREP -F"
4731    else
4732      if test -z "$FGREP"; then
4733   ac_path_FGREP_found=false
4734   # Loop through the user's path and test for each of PROGNAME-LIST
4735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4737 do
4738   IFS=$as_save_IFS
4739   test -z "$as_dir" && as_dir=.
4740     for ac_prog in fgrep; do
4741     for ac_exec_ext in '' $ac_executable_extensions; do
4742       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4743       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4744 # Check for GNU ac_path_FGREP and select it if it is found.
4745   # Check for GNU $ac_path_FGREP
4746 case `"$ac_path_FGREP" --version 2>&1` in
4747 *GNU*)
4748   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4749 *)
4750   ac_count=0
4751   $as_echo_n 0123456789 >"conftest.in"
4752   while :
4753   do
4754     cat "conftest.in" "conftest.in" >"conftest.tmp"
4755     mv "conftest.tmp" "conftest.in"
4756     cp "conftest.in" "conftest.nl"
4757     $as_echo 'FGREP' >> "conftest.nl"
4758     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4759     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4760     as_fn_arith $ac_count + 1 && ac_count=$as_val
4761     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4762       # Best one so far, save it but keep looking for a better one
4763       ac_cv_path_FGREP="$ac_path_FGREP"
4764       ac_path_FGREP_max=$ac_count
4765     fi
4766     # 10*(2^10) chars as input seems more than enough
4767     test $ac_count -gt 10 && break
4768   done
4769   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4770 esac
4771
4772       $ac_path_FGREP_found && break 3
4773     done
4774   done
4775   done
4776 IFS=$as_save_IFS
4777   if test -z "$ac_cv_path_FGREP"; then
4778     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4779   fi
4780 else
4781   ac_cv_path_FGREP=$FGREP
4782 fi
4783
4784    fi
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4787 $as_echo "$ac_cv_path_FGREP" >&6; }
4788  FGREP="$ac_cv_path_FGREP"
4789
4790
4791 test -z "$GREP" && GREP=grep
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 # Check whether --with-gnu-ld was given.
4812 if test "${with_gnu_ld+set}" = set; then :
4813   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4814 else
4815   with_gnu_ld=no
4816 fi
4817
4818 ac_prog=ld
4819 if test "$GCC" = yes; then
4820   # Check if gcc -print-prog-name=ld gives a path.
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4822 $as_echo_n "checking for ld used by $CC... " >&6; }
4823   case $host in
4824   *-*-mingw*)
4825     # gcc leaves a trailing carriage return which upsets mingw
4826     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4827   *)
4828     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4829   esac
4830   case $ac_prog in
4831     # Accept absolute paths.
4832     [\\/]* | ?:[\\/]*)
4833       re_direlt='/[^/][^/]*/\.\./'
4834       # Canonicalize the pathname of ld
4835       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4836       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4837         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4838       done
4839       test -z "$LD" && LD="$ac_prog"
4840       ;;
4841   "")
4842     # If it fails, then pretend we aren't using GCC.
4843     ac_prog=ld
4844     ;;
4845   *)
4846     # If it is relative, then search for the first ld in PATH.
4847     with_gnu_ld=unknown
4848     ;;
4849   esac
4850 elif test "$with_gnu_ld" = yes; then
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4852 $as_echo_n "checking for GNU ld... " >&6; }
4853 else
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4855 $as_echo_n "checking for non-GNU ld... " >&6; }
4856 fi
4857 if ${lt_cv_path_LD+:} false; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -z "$LD"; then
4861   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4862   for ac_dir in $PATH; do
4863     IFS="$lt_save_ifs"
4864     test -z "$ac_dir" && ac_dir=.
4865     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4866       lt_cv_path_LD="$ac_dir/$ac_prog"
4867       # Check to see if the program is GNU ld.  I'd rather use --version,
4868       # but apparently some variants of GNU ld only accept -v.
4869       # Break only if it was the GNU/non-GNU ld that we prefer.
4870       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4871       *GNU* | *'with BFD'*)
4872         test "$with_gnu_ld" != no && break
4873         ;;
4874       *)
4875         test "$with_gnu_ld" != yes && break
4876         ;;
4877       esac
4878     fi
4879   done
4880   IFS="$lt_save_ifs"
4881 else
4882   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4883 fi
4884 fi
4885
4886 LD="$lt_cv_path_LD"
4887 if test -n "$LD"; then
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4889 $as_echo "$LD" >&6; }
4890 else
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4896 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4897 if ${lt_cv_prog_gnu_ld+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4901 case `$LD -v 2>&1 </dev/null` in
4902 *GNU* | *'with BFD'*)
4903   lt_cv_prog_gnu_ld=yes
4904   ;;
4905 *)
4906   lt_cv_prog_gnu_ld=no
4907   ;;
4908 esac
4909 fi
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4911 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4912 with_gnu_ld=$lt_cv_prog_gnu_ld
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4923 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4924 if ${lt_cv_path_NM+:} false; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   if test -n "$NM"; then
4928   # Let the user override the test.
4929   lt_cv_path_NM="$NM"
4930 else
4931   lt_nm_to_check="${ac_tool_prefix}nm"
4932   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4933     lt_nm_to_check="$lt_nm_to_check nm"
4934   fi
4935   for lt_tmp_nm in $lt_nm_to_check; do
4936     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4937     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4938       IFS="$lt_save_ifs"
4939       test -z "$ac_dir" && ac_dir=.
4940       tmp_nm="$ac_dir/$lt_tmp_nm"
4941       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4942         # Check to see if the nm accepts a BSD-compat flag.
4943         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4944         #   nm: unknown option "B" ignored
4945         # Tru64's nm complains that /dev/null is an invalid object file
4946         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4947         */dev/null* | *'Invalid file or object type'*)
4948           lt_cv_path_NM="$tmp_nm -B"
4949           break
4950           ;;
4951         *)
4952           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4953           */dev/null*)
4954             lt_cv_path_NM="$tmp_nm -p"
4955             break
4956             ;;
4957           *)
4958             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4959             continue # so that we can try to find one that supports BSD flags
4960             ;;
4961           esac
4962           ;;
4963         esac
4964       fi
4965     done
4966     IFS="$lt_save_ifs"
4967   done
4968   : ${lt_cv_path_NM=no}
4969 fi
4970 fi
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4972 $as_echo "$lt_cv_path_NM" >&6; }
4973 if test "$lt_cv_path_NM" != "no"; then
4974   NM="$lt_cv_path_NM"
4975 else
4976   # Didn't find any BSD compatible name lister, look for dumpbin.
4977   if test -n "$DUMPBIN"; then :
4978     # Let the user override the test.
4979   else
4980     if test -n "$ac_tool_prefix"; then
4981   for ac_prog in dumpbin "link -dump"
4982   do
4983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_DUMPBIN+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   if test -n "$DUMPBIN"; then
4991   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998     for ac_exec_ext in '' $ac_executable_extensions; do
4999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005   done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 DUMPBIN=$ac_cv_prog_DUMPBIN
5011 if test -n "$DUMPBIN"; then
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5013 $as_echo "$DUMPBIN" >&6; }
5014 else
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5017 fi
5018
5019
5020     test -n "$DUMPBIN" && break
5021   done
5022 fi
5023 if test -z "$DUMPBIN"; then
5024   ac_ct_DUMPBIN=$DUMPBIN
5025   for ac_prog in dumpbin "link -dump"
5026 do
5027   # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   if test -n "$ac_ct_DUMPBIN"; then
5035   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040   IFS=$as_save_IFS
5041   test -z "$as_dir" && as_dir=.
5042     for ac_exec_ext in '' $ac_executable_extensions; do
5043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046     break 2
5047   fi
5048 done
5049   done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5055 if test -n "$ac_ct_DUMPBIN"; then
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5057 $as_echo "$ac_ct_DUMPBIN" >&6; }
5058 else
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5061 fi
5062
5063
5064   test -n "$ac_ct_DUMPBIN" && break
5065 done
5066
5067   if test "x$ac_ct_DUMPBIN" = x; then
5068     DUMPBIN=":"
5069   else
5070     case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076     DUMPBIN=$ac_ct_DUMPBIN
5077   fi
5078 fi
5079
5080     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5081     *COFF*)
5082       DUMPBIN="$DUMPBIN -symbols"
5083       ;;
5084     *)
5085       DUMPBIN=:
5086       ;;
5087     esac
5088   fi
5089
5090   if test "$DUMPBIN" != ":"; then
5091     NM="$DUMPBIN"
5092   fi
5093 fi
5094 test -z "$NM" && NM=nm
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5102 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5103 if ${lt_cv_nm_interface+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   lt_cv_nm_interface="BSD nm"
5107   echo "int some_variable = 0;" > conftest.$ac_ext
5108   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5109   (eval "$ac_compile" 2>conftest.err)
5110   cat conftest.err >&5
5111   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5112   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5113   cat conftest.err >&5
5114   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5115   cat conftest.out >&5
5116   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5117     lt_cv_nm_interface="MS dumpbin"
5118   fi
5119   rm -f conftest*
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5122 $as_echo "$lt_cv_nm_interface" >&6; }
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5125 $as_echo_n "checking whether ln -s works... " >&6; }
5126 LN_S=$as_ln_s
5127 if test "$LN_S" = "ln -s"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5129 $as_echo "yes" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5132 $as_echo "no, using $LN_S" >&6; }
5133 fi
5134
5135 # find the maximum length of command line arguments
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5137 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5138 if ${lt_cv_sys_max_cmd_len+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141     i=0
5142   teststring="ABCD"
5143
5144   case $build_os in
5145   msdosdjgpp*)
5146     # On DJGPP, this test can blow up pretty badly due to problems in libc
5147     # (any single argument exceeding 2000 bytes causes a buffer overrun
5148     # during glob expansion).  Even if it were fixed, the result of this
5149     # check would be larger than it should be.
5150     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5151     ;;
5152
5153   gnu*)
5154     # Under GNU Hurd, this test is not required because there is
5155     # no limit to the length of command line arguments.
5156     # Libtool will interpret -1 as no limit whatsoever
5157     lt_cv_sys_max_cmd_len=-1;
5158     ;;
5159
5160   cygwin* | mingw* | cegcc*)
5161     # On Win9x/ME, this test blows up -- it succeeds, but takes
5162     # about 5 minutes as the teststring grows exponentially.
5163     # Worse, since 9x/ME are not pre-emptively multitasking,
5164     # you end up with a "frozen" computer, even though with patience
5165     # the test eventually succeeds (with a max line length of 256k).
5166     # Instead, let's just punt: use the minimum linelength reported by
5167     # all of the supported platforms: 8192 (on NT/2K/XP).
5168     lt_cv_sys_max_cmd_len=8192;
5169     ;;
5170
5171   mint*)
5172     # On MiNT this can take a long time and run out of memory.
5173     lt_cv_sys_max_cmd_len=8192;
5174     ;;
5175
5176   amigaos*)
5177     # On AmigaOS with pdksh, this test takes hours, literally.
5178     # So we just punt and use a minimum line length of 8192.
5179     lt_cv_sys_max_cmd_len=8192;
5180     ;;
5181
5182   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5183     # This has been around since 386BSD, at least.  Likely further.
5184     if test -x /sbin/sysctl; then
5185       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5186     elif test -x /usr/sbin/sysctl; then
5187       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5188     else
5189       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5190     fi
5191     # And add a safety zone
5192     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5193     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5194     ;;
5195
5196   interix*)
5197     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5198     lt_cv_sys_max_cmd_len=196608
5199     ;;
5200
5201   osf*)
5202     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5203     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5204     # nice to cause kernel panics so lets avoid the loop below.
5205     # First set a reasonable default.
5206     lt_cv_sys_max_cmd_len=16384
5207     #
5208     if test -x /sbin/sysconfig; then
5209       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5210         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5211       esac
5212     fi
5213     ;;
5214   sco3.2v5*)
5215     lt_cv_sys_max_cmd_len=102400
5216     ;;
5217   sysv5* | sco5v6* | sysv4.2uw2*)
5218     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5219     if test -n "$kargmax"; then
5220       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5221     else
5222       lt_cv_sys_max_cmd_len=32768
5223     fi
5224     ;;
5225   *)
5226     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5227     if test -n "$lt_cv_sys_max_cmd_len"; then
5228       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5229       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5230     else
5231       # Make teststring a little bigger before we do anything with it.
5232       # a 1K string should be a reasonable start.
5233       for i in 1 2 3 4 5 6 7 8 ; do
5234         teststring=$teststring$teststring
5235       done
5236       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5237       # If test is not a shell built-in, we'll probably end up computing a
5238       # maximum length that is only half of the actual maximum length, but
5239       # we can't tell.
5240       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5241                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5242               test $i != 17 # 1/2 MB should be enough
5243       do
5244         i=`expr $i + 1`
5245         teststring=$teststring$teststring
5246       done
5247       # Only check the string length outside the loop.
5248       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5249       teststring=
5250       # Add a significant safety factor because C++ compilers can tack on
5251       # massive amounts of additional arguments before passing them to the
5252       # linker.  It appears as though 1/2 is a usable value.
5253       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5254     fi
5255     ;;
5256   esac
5257
5258 fi
5259
5260 if test -n $lt_cv_sys_max_cmd_len ; then
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5262 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5263 else
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5265 $as_echo "none" >&6; }
5266 fi
5267 max_cmd_len=$lt_cv_sys_max_cmd_len
5268
5269
5270
5271
5272
5273
5274 : ${CP="cp -f"}
5275 : ${MV="mv -f"}
5276 : ${RM="rm -f"}
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5279 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5280 # Try some XSI features
5281 xsi_shell=no
5282 ( _lt_dummy="a/b/c"
5283   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5284       = c,a/b,b/c, \
5285     && eval 'test $(( 1 + 1 )) -eq 2 \
5286     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5287   && xsi_shell=yes
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5289 $as_echo "$xsi_shell" >&6; }
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5293 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5294 lt_shell_append=no
5295 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5296     >/dev/null 2>&1 \
5297   && lt_shell_append=yes
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5299 $as_echo "$lt_shell_append" >&6; }
5300
5301
5302 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5303   lt_unset=unset
5304 else
5305   lt_unset=false
5306 fi
5307
5308
5309
5310
5311
5312 # test EBCDIC or ASCII
5313 case `echo X|tr X '\101'` in
5314  A) # ASCII based system
5315     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5316   lt_SP2NL='tr \040 \012'
5317   lt_NL2SP='tr \015\012 \040\040'
5318   ;;
5319  *) # EBCDIC based system
5320   lt_SP2NL='tr \100 \n'
5321   lt_NL2SP='tr \r\n \100\100'
5322   ;;
5323 esac
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5334 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5335 if ${lt_cv_to_host_file_cmd+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   case $host in
5339   *-*-mingw* )
5340     case $build in
5341       *-*-mingw* ) # actually msys
5342         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5343         ;;
5344       *-*-cygwin* )
5345         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5346         ;;
5347       * ) # otherwise, assume *nix
5348         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5349         ;;
5350     esac
5351     ;;
5352   *-*-cygwin* )
5353     case $build in
5354       *-*-mingw* ) # actually msys
5355         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5356         ;;
5357       *-*-cygwin* )
5358         lt_cv_to_host_file_cmd=func_convert_file_noop
5359         ;;
5360       * ) # otherwise, assume *nix
5361         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5362         ;;
5363     esac
5364     ;;
5365   * ) # unhandled hosts (and "normal" native builds)
5366     lt_cv_to_host_file_cmd=func_convert_file_noop
5367     ;;
5368 esac
5369
5370 fi
5371
5372 to_host_file_cmd=$lt_cv_to_host_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5374 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5375
5376
5377
5378
5379
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5381 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5382 if ${lt_cv_to_tool_file_cmd+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   #assume ordinary cross tools, or native build.
5386 lt_cv_to_tool_file_cmd=func_convert_file_noop
5387 case $host in
5388   *-*-mingw* )
5389     case $build in
5390       *-*-mingw* ) # actually msys
5391         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5392         ;;
5393     esac
5394     ;;
5395 esac
5396
5397 fi
5398
5399 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5401 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5402
5403
5404
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5408 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5409 if ${lt_cv_ld_reload_flag+:} false; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   lt_cv_ld_reload_flag='-r'
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5415 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5416 reload_flag=$lt_cv_ld_reload_flag
5417 case $reload_flag in
5418 "" | " "*) ;;
5419 *) reload_flag=" $reload_flag" ;;
5420 esac
5421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5422 case $host_os in
5423   cygwin* | mingw* | pw32* | cegcc*)
5424     if test "$GCC" != yes; then
5425       reload_cmds=false
5426     fi
5427     ;;
5428   darwin*)
5429     if test "$GCC" = yes; then
5430       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5431     else
5432       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5433     fi
5434     ;;
5435 esac
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 if test -n "$ac_tool_prefix"; then
5446   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_OBJDUMP+:} false; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$OBJDUMP"; then
5454   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 OBJDUMP=$ac_cv_prog_OBJDUMP
5474 if test -n "$OBJDUMP"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5476 $as_echo "$OBJDUMP" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482
5483 fi
5484 if test -z "$ac_cv_prog_OBJDUMP"; then
5485   ac_ct_OBJDUMP=$OBJDUMP
5486   # Extract the first word of "objdump", so it can be a program name with args.
5487 set dummy objdump; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   if test -n "$ac_ct_OBJDUMP"; then
5494   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501     for ac_exec_ext in '' $ac_executable_extensions; do
5502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508   done
5509 IFS=$as_save_IFS
5510
5511 fi
5512 fi
5513 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5514 if test -n "$ac_ct_OBJDUMP"; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5516 $as_echo "$ac_ct_OBJDUMP" >&6; }
5517 else
5518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522   if test "x$ac_ct_OBJDUMP" = x; then
5523     OBJDUMP="false"
5524   else
5525     case $cross_compiling:$ac_tool_warned in
5526 yes:)
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5530 esac
5531     OBJDUMP=$ac_ct_OBJDUMP
5532   fi
5533 else
5534   OBJDUMP="$ac_cv_prog_OBJDUMP"
5535 fi
5536
5537 test -z "$OBJDUMP" && OBJDUMP=objdump
5538
5539
5540
5541
5542
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5545 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5546 if ${lt_cv_deplibs_check_method+:} false; then :
5547   $as_echo_n "(cached) " >&6
5548 else
5549   lt_cv_file_magic_cmd='$MAGIC_CMD'
5550 lt_cv_file_magic_test_file=
5551 lt_cv_deplibs_check_method='unknown'
5552 # Need to set the preceding variable on all platforms that support
5553 # interlibrary dependencies.
5554 # 'none' -- dependencies not supported.
5555 # `unknown' -- same as none, but documents that we really don't know.
5556 # 'pass_all' -- all dependencies passed with no checks.
5557 # 'test_compile' -- check by making test program.
5558 # 'file_magic [[regex]]' -- check by looking for files in library path
5559 # which responds to the $file_magic_cmd with a given extended regex.
5560 # If you have `file' or equivalent on your system and you're not sure
5561 # whether `pass_all' will *always* work, you probably want this one.
5562
5563 case $host_os in
5564 aix[4-9]*)
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 beos*)
5569   lt_cv_deplibs_check_method=pass_all
5570   ;;
5571
5572 bsdi[45]*)
5573   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5574   lt_cv_file_magic_cmd='/usr/bin/file -L'
5575   lt_cv_file_magic_test_file=/shlib/libc.so
5576   ;;
5577
5578 cygwin*)
5579   # func_win32_libid is a shell function defined in ltmain.sh
5580   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5581   lt_cv_file_magic_cmd='func_win32_libid'
5582   ;;
5583
5584 mingw* | pw32*)
5585   # Base MSYS/MinGW do not provide the 'file' command needed by
5586   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5587   # unless we find 'file', for example because we are cross-compiling.
5588   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5589   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5590     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5591     lt_cv_file_magic_cmd='func_win32_libid'
5592   else
5593     # Keep this pattern in sync with the one in func_win32_libid.
5594     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5595     lt_cv_file_magic_cmd='$OBJDUMP -f'
5596   fi
5597   ;;
5598
5599 cegcc*)
5600   # use the weaker test based on 'objdump'. See mingw*.
5601   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5602   lt_cv_file_magic_cmd='$OBJDUMP -f'
5603   ;;
5604
5605 darwin* | rhapsody*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 freebsd* | dragonfly*)
5610   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5611     case $host_cpu in
5612     i*86 )
5613       # Not sure whether the presence of OpenBSD here was a mistake.
5614       # Let's accept both of them until this is cleared up.
5615       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5616       lt_cv_file_magic_cmd=/usr/bin/file
5617       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5618       ;;
5619     esac
5620   else
5621     lt_cv_deplibs_check_method=pass_all
5622   fi
5623   ;;
5624
5625 gnu*)
5626   lt_cv_deplibs_check_method=pass_all
5627   ;;
5628
5629 haiku*)
5630   lt_cv_deplibs_check_method=pass_all
5631   ;;
5632
5633 hpux10.20* | hpux11*)
5634   lt_cv_file_magic_cmd=/usr/bin/file
5635   case $host_cpu in
5636   ia64*)
5637     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5638     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5639     ;;
5640   hppa*64*)
5641     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]'
5642     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5643     ;;
5644   *)
5645     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5646     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5647     ;;
5648   esac
5649   ;;
5650
5651 interix[3-9]*)
5652   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5653   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5654   ;;
5655
5656 irix5* | irix6* | nonstopux*)
5657   case $LD in
5658   *-32|*"-32 ") libmagic=32-bit;;
5659   *-n32|*"-n32 ") libmagic=N32;;
5660   *-64|*"-64 ") libmagic=64-bit;;
5661   *) libmagic=never-match;;
5662   esac
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 # This must be Linux ELF.
5667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5668   lt_cv_deplibs_check_method=pass_all
5669   ;;
5670
5671 netbsd*)
5672   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5673     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5674   else
5675     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5676   fi
5677   ;;
5678
5679 newos6*)
5680   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5681   lt_cv_file_magic_cmd=/usr/bin/file
5682   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5683   ;;
5684
5685 *nto* | *qnx*)
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688
5689 openbsd*)
5690   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5691     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5692   else
5693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694   fi
5695   ;;
5696
5697 osf3* | osf4* | osf5*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 rdos*)
5702   lt_cv_deplibs_check_method=pass_all
5703   ;;
5704
5705 solaris*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708
5709 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5710   lt_cv_deplibs_check_method=pass_all
5711   ;;
5712
5713 sysv4 | sysv4.3*)
5714   case $host_vendor in
5715   motorola)
5716     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]'
5717     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5718     ;;
5719   ncr)
5720     lt_cv_deplibs_check_method=pass_all
5721     ;;
5722   sequent)
5723     lt_cv_file_magic_cmd='/bin/file'
5724     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5725     ;;
5726   sni)
5727     lt_cv_file_magic_cmd='/bin/file'
5728     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5729     lt_cv_file_magic_test_file=/lib/libc.so
5730     ;;
5731   siemens)
5732     lt_cv_deplibs_check_method=pass_all
5733     ;;
5734   pc)
5735     lt_cv_deplibs_check_method=pass_all
5736     ;;
5737   esac
5738   ;;
5739
5740 tpf*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743 esac
5744
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5747 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5748
5749 file_magic_glob=
5750 want_nocaseglob=no
5751 if test "$build" = "$host"; then
5752   case $host_os in
5753   mingw* | pw32*)
5754     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5755       want_nocaseglob=yes
5756     else
5757       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5758     fi
5759     ;;
5760   esac
5761 fi
5762
5763 file_magic_cmd=$lt_cv_file_magic_cmd
5764 deplibs_check_method=$lt_cv_deplibs_check_method
5765 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 if test -n "$ac_tool_prefix"; then
5789   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_DLLTOOL+:} false; then :
5794   $as_echo_n "(cached) " >&6
5795 else
5796   if test -n "$DLLTOOL"; then
5797   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 DLLTOOL=$ac_cv_prog_DLLTOOL
5817 if test -n "$DLLTOOL"; then
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5819 $as_echo "$DLLTOOL" >&6; }
5820 else
5821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5823 fi
5824
5825
5826 fi
5827 if test -z "$ac_cv_prog_DLLTOOL"; then
5828   ac_ct_DLLTOOL=$DLLTOOL
5829   # Extract the first word of "dlltool", so it can be a program name with args.
5830 set dummy dlltool; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   if test -n "$ac_ct_DLLTOOL"; then
5837   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842   IFS=$as_save_IFS
5843   test -z "$as_dir" && as_dir=.
5844     for ac_exec_ext in '' $ac_executable_extensions; do
5845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848     break 2
5849   fi
5850 done
5851   done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5857 if test -n "$ac_ct_DLLTOOL"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5859 $as_echo "$ac_ct_DLLTOOL" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865   if test "x$ac_ct_DLLTOOL" = x; then
5866     DLLTOOL="false"
5867   else
5868     case $cross_compiling:$ac_tool_warned in
5869 yes:)
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5873 esac
5874     DLLTOOL=$ac_ct_DLLTOOL
5875   fi
5876 else
5877   DLLTOOL="$ac_cv_prog_DLLTOOL"
5878 fi
5879
5880 test -z "$DLLTOOL" && DLLTOOL=dlltool
5881
5882
5883
5884
5885
5886
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5889 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5890 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   lt_cv_sharedlib_from_linklib_cmd='unknown'
5894
5895 case $host_os in
5896 cygwin* | mingw* | pw32* | cegcc*)
5897   # two different shell functions defined in ltmain.sh
5898   # decide which to use based on capabilities of $DLLTOOL
5899   case `$DLLTOOL --help 2>&1` in
5900   *--identify-strict*)
5901     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5902     ;;
5903   *)
5904     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5905     ;;
5906   esac
5907   ;;
5908 *)
5909   # fallback: assume linklib IS sharedlib
5910   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5911   ;;
5912 esac
5913
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5916 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5917 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5918 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5919
5920
5921
5922
5923
5924
5925
5926
5927 if test -n "$ac_tool_prefix"; then
5928   for ac_prog in ar
5929   do
5930     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_AR+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   if test -n "$AR"; then
5938   ac_cv_prog_AR="$AR" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 AR=$ac_cv_prog_AR
5958 if test -n "$AR"; then
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5960 $as_echo "$AR" >&6; }
5961 else
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967     test -n "$AR" && break
5968   done
5969 fi
5970 if test -z "$AR"; then
5971   ac_ct_AR=$AR
5972   for ac_prog in ar
5973 do
5974   # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -n "$ac_ct_AR"; then
5982   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_prog_ac_ct_AR="$ac_prog"
5992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996   done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6002 if test -n "$ac_ct_AR"; then
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6004 $as_echo "$ac_ct_AR" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010
6011   test -n "$ac_ct_AR" && break
6012 done
6013
6014   if test "x$ac_ct_AR" = x; then
6015     AR="false"
6016   else
6017     case $cross_compiling:$ac_tool_warned in
6018 yes:)
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6022 esac
6023     AR=$ac_ct_AR
6024   fi
6025 fi
6026
6027 : ${AR=ar}
6028 : ${AR_FLAGS=cru}
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6041 $as_echo_n "checking for archiver @FILE support... " >&6; }
6042 if ${lt_cv_ar_at_file+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   lt_cv_ar_at_file=no
6046    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h.  */
6048
6049 int
6050 main ()
6051 {
6052
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058   echo conftest.$ac_objext > conftest.lst
6059       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6060       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6061   (eval $lt_ar_try) 2>&5
6062   ac_status=$?
6063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064   test $ac_status = 0; }
6065       if test "$ac_status" -eq 0; then
6066         # Ensure the archiver fails upon bogus file names.
6067         rm -f conftest.$ac_objext libconftest.a
6068         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6069   (eval $lt_ar_try) 2>&5
6070   ac_status=$?
6071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072   test $ac_status = 0; }
6073         if test "$ac_status" -ne 0; then
6074           lt_cv_ar_at_file=@
6075         fi
6076       fi
6077       rm -f conftest.* libconftest.a
6078
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6084 $as_echo "$lt_cv_ar_at_file" >&6; }
6085
6086 if test "x$lt_cv_ar_at_file" = xno; then
6087   archiver_list_spec=
6088 else
6089   archiver_list_spec=$lt_cv_ar_at_file
6090 fi
6091
6092
6093
6094
6095
6096
6097
6098 if test -n "$ac_tool_prefix"; then
6099   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}strip; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_STRIP+:} false; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   if test -n "$STRIP"; then
6107   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121   done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 STRIP=$ac_cv_prog_STRIP
6127 if test -n "$STRIP"; then
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6129 $as_echo "$STRIP" >&6; }
6130 else
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_STRIP"; then
6138   ac_ct_STRIP=$STRIP
6139   # Extract the first word of "strip", so it can be a program name with args.
6140 set dummy strip; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146   if test -n "$ac_ct_STRIP"; then
6147   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_prog_ac_ct_STRIP="strip"
6157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161   done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6167 if test -n "$ac_ct_STRIP"; then
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6169 $as_echo "$ac_ct_STRIP" >&6; }
6170 else
6171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175   if test "x$ac_ct_STRIP" = x; then
6176     STRIP=":"
6177   else
6178     case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184     STRIP=$ac_ct_STRIP
6185   fi
6186 else
6187   STRIP="$ac_cv_prog_STRIP"
6188 fi
6189
6190 test -z "$STRIP" && STRIP=:
6191
6192
6193
6194
6195
6196
6197 if test -n "$ac_tool_prefix"; then
6198   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_RANLIB+:} false; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$RANLIB"; then
6206   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 RANLIB=$ac_cv_prog_RANLIB
6226 if test -n "$RANLIB"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6228 $as_echo "$RANLIB" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 fi
6236 if test -z "$ac_cv_prog_RANLIB"; then
6237   ac_ct_RANLIB=$RANLIB
6238   # Extract the first word of "ranlib", so it can be a program name with args.
6239 set dummy ranlib; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$ac_ct_RANLIB"; then
6246   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255     ac_cv_prog_ac_ct_RANLIB="ranlib"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6266 if test -n "$ac_ct_RANLIB"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6268 $as_echo "$ac_ct_RANLIB" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274   if test "x$ac_ct_RANLIB" = x; then
6275     RANLIB=":"
6276   else
6277     case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283     RANLIB=$ac_ct_RANLIB
6284   fi
6285 else
6286   RANLIB="$ac_cv_prog_RANLIB"
6287 fi
6288
6289 test -z "$RANLIB" && RANLIB=:
6290
6291
6292
6293
6294
6295
6296 # Determine commands to create old-style static archives.
6297 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6298 old_postinstall_cmds='chmod 644 $oldlib'
6299 old_postuninstall_cmds=
6300
6301 if test -n "$RANLIB"; then
6302   case $host_os in
6303   openbsd*)
6304     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6305     ;;
6306   *)
6307     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6308     ;;
6309   esac
6310   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6311 fi
6312
6313 case $host_os in
6314   darwin*)
6315     lock_old_archive_extraction=yes ;;
6316   *)
6317     lock_old_archive_extraction=no ;;
6318 esac
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358 # If no C compiler was specified, use CC.
6359 LTCC=${LTCC-"$CC"}
6360
6361 # If no C compiler flags were specified, use CFLAGS.
6362 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6363
6364 # Allow CC to be a program name with arguments.
6365 compiler=$CC
6366
6367
6368 # Check for command to grab the raw symbol name followed by C symbol from nm.
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6370 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6371 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374
6375 # These are sane defaults that work on at least a few old systems.
6376 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6377
6378 # Character class describing NM global symbol codes.
6379 symcode='[BCDEGRST]'
6380
6381 # Regexp to match symbols that can be accessed directly from C.
6382 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6383
6384 # Define system-specific variables.
6385 case $host_os in
6386 aix*)
6387   symcode='[BCDT]'
6388   ;;
6389 cygwin* | mingw* | pw32* | cegcc*)
6390   symcode='[ABCDGISTW]'
6391   ;;
6392 hpux*)
6393   if test "$host_cpu" = ia64; then
6394     symcode='[ABCDEGRST]'
6395   fi
6396   ;;
6397 irix* | nonstopux*)
6398   symcode='[BCDEGRST]'
6399   ;;
6400 osf*)
6401   symcode='[BCDEGQRST]'
6402   ;;
6403 solaris*)
6404   symcode='[BDRT]'
6405   ;;
6406 sco3.2v5*)
6407   symcode='[DT]'
6408   ;;
6409 sysv4.2uw2*)
6410   symcode='[DT]'
6411   ;;
6412 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6413   symcode='[ABDT]'
6414   ;;
6415 sysv4)
6416   symcode='[DFNSTU]'
6417   ;;
6418 esac
6419
6420 # If we're using GNU nm, then use its standard symbol codes.
6421 case `$NM -V 2>&1` in
6422 *GNU* | *'with BFD'*)
6423   symcode='[ABCDGIRSTW]' ;;
6424 esac
6425
6426 # Transform an extracted symbol line into a proper C declaration.
6427 # Some systems (esp. on ia64) link data and code symbols differently,
6428 # so use this general approach.
6429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6430
6431 # Transform an extracted symbol line into symbol name and symbol address
6432 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6433 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6434
6435 # Handle CRLF in mingw tool chain
6436 opt_cr=
6437 case $build_os in
6438 mingw*)
6439   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6440   ;;
6441 esac
6442
6443 # Try without a prefix underscore, then with it.
6444 for ac_symprfx in "" "_"; do
6445
6446   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6447   symxfrm="\\1 $ac_symprfx\\2 \\2"
6448
6449   # Write the raw and C identifiers.
6450   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6451     # Fake it for dumpbin and say T for any non-static function
6452     # and D for any global variable.
6453     # Also find C++ and __fastcall symbols from MSVC++,
6454     # which start with @ or ?.
6455     lt_cv_sys_global_symbol_pipe="$AWK '"\
6456 "     {last_section=section; section=\$ 3};"\
6457 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6458 "     \$ 0!~/External *\|/{next};"\
6459 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6460 "     {if(hide[section]) next};"\
6461 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6462 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6463 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6464 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6465 "     ' prfx=^$ac_symprfx"
6466   else
6467     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6468   fi
6469   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6470
6471   # Check to see that the pipe works correctly.
6472   pipe_works=no
6473
6474   rm -f conftest*
6475   cat > conftest.$ac_ext <<_LT_EOF
6476 #ifdef __cplusplus
6477 extern "C" {
6478 #endif
6479 char nm_test_var;
6480 void nm_test_func(void);
6481 void nm_test_func(void){}
6482 #ifdef __cplusplus
6483 }
6484 #endif
6485 int main(){nm_test_var='a';nm_test_func();return(0);}
6486 _LT_EOF
6487
6488   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6489   (eval $ac_compile) 2>&5
6490   ac_status=$?
6491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492   test $ac_status = 0; }; then
6493     # Now try to grab the symbols.
6494     nlist=conftest.nm
6495     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6496   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6497   ac_status=$?
6498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499   test $ac_status = 0; } && test -s "$nlist"; then
6500       # Try sorting and uniquifying the output.
6501       if sort "$nlist" | uniq > "$nlist"T; then
6502         mv -f "$nlist"T "$nlist"
6503       else
6504         rm -f "$nlist"T
6505       fi
6506
6507       # Make sure that we snagged all the symbols we need.
6508       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6509         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6510           cat <<_LT_EOF > conftest.$ac_ext
6511 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6512 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6513 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6514    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6515 # define LT_DLSYM_CONST
6516 #elif defined(__osf__)
6517 /* This system does not cope well with relocations in const data.  */
6518 # define LT_DLSYM_CONST
6519 #else
6520 # define LT_DLSYM_CONST const
6521 #endif
6522
6523 #ifdef __cplusplus
6524 extern "C" {
6525 #endif
6526
6527 _LT_EOF
6528           # Now generate the symbol file.
6529           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6530
6531           cat <<_LT_EOF >> conftest.$ac_ext
6532
6533 /* The mapping between symbol names and symbols.  */
6534 LT_DLSYM_CONST struct {
6535   const char *name;
6536   void       *address;
6537 }
6538 lt__PROGRAM__LTX_preloaded_symbols[] =
6539 {
6540   { "@PROGRAM@", (void *) 0 },
6541 _LT_EOF
6542           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6543           cat <<\_LT_EOF >> conftest.$ac_ext
6544   {0, (void *) 0}
6545 };
6546
6547 /* This works around a problem in FreeBSD linker */
6548 #ifdef FREEBSD_WORKAROUND
6549 static const void *lt_preloaded_setup() {
6550   return lt__PROGRAM__LTX_preloaded_symbols;
6551 }
6552 #endif
6553
6554 #ifdef __cplusplus
6555 }
6556 #endif
6557 _LT_EOF
6558           # Now try linking the two files.
6559           mv conftest.$ac_objext conftstm.$ac_objext
6560           lt_globsym_save_LIBS=$LIBS
6561           lt_globsym_save_CFLAGS=$CFLAGS
6562           LIBS="conftstm.$ac_objext"
6563           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6564           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6565   (eval $ac_link) 2>&5
6566   ac_status=$?
6567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6568   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6569             pipe_works=yes
6570           fi
6571           LIBS=$lt_globsym_save_LIBS
6572           CFLAGS=$lt_globsym_save_CFLAGS
6573         else
6574           echo "cannot find nm_test_func in $nlist" >&5
6575         fi
6576       else
6577         echo "cannot find nm_test_var in $nlist" >&5
6578       fi
6579     else
6580       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6581     fi
6582   else
6583     echo "$progname: failed program was:" >&5
6584     cat conftest.$ac_ext >&5
6585   fi
6586   rm -rf conftest* conftst*
6587
6588   # Do not use the global_symbol_pipe unless it works.
6589   if test "$pipe_works" = yes; then
6590     break
6591   else
6592     lt_cv_sys_global_symbol_pipe=
6593   fi
6594 done
6595
6596 fi
6597
6598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6599   lt_cv_sys_global_symbol_to_cdecl=
6600 fi
6601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6603 $as_echo "failed" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6606 $as_echo "ok" >&6; }
6607 fi
6608
6609 # Response file support.
6610 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6611   nm_file_list_spec='@'
6612 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6613   nm_file_list_spec='@'
6614 fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6643 $as_echo_n "checking for sysroot... " >&6; }
6644
6645 # Check whether --with-sysroot was given.
6646 if test "${with_sysroot+set}" = set; then :
6647   withval=$with_sysroot;
6648 else
6649   with_sysroot=no
6650 fi
6651
6652
6653 lt_sysroot=
6654 case ${with_sysroot} in #(
6655  yes)
6656    if test "$GCC" = yes; then
6657      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6658    fi
6659    ;; #(
6660  /*)
6661    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6662    ;; #(
6663  no|'')
6664    ;; #(
6665  *)
6666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6667 $as_echo "${with_sysroot}" >&6; }
6668    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6669    ;;
6670 esac
6671
6672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6673 $as_echo "${lt_sysroot:-no}" >&6; }
6674
6675
6676
6677
6678
6679 # Check whether --enable-libtool-lock was given.
6680 if test "${enable_libtool_lock+set}" = set; then :
6681   enableval=$enable_libtool_lock;
6682 fi
6683
6684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6685
6686 # Some flags need to be propagated to the compiler or linker for good
6687 # libtool support.
6688 case $host in
6689 ia64-*-hpux*)
6690   # Find out which ABI we are using.
6691   echo 'int i;' > conftest.$ac_ext
6692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693   (eval $ac_compile) 2>&5
6694   ac_status=$?
6695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696   test $ac_status = 0; }; then
6697     case `/usr/bin/file conftest.$ac_objext` in
6698       *ELF-32*)
6699         HPUX_IA64_MODE="32"
6700         ;;
6701       *ELF-64*)
6702         HPUX_IA64_MODE="64"
6703         ;;
6704     esac
6705   fi
6706   rm -rf conftest*
6707   ;;
6708 *-*-irix6*)
6709   # Find out which ABI we are using.
6710   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6711   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712   (eval $ac_compile) 2>&5
6713   ac_status=$?
6714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715   test $ac_status = 0; }; then
6716     if test "$lt_cv_prog_gnu_ld" = yes; then
6717       case `/usr/bin/file conftest.$ac_objext` in
6718         *32-bit*)
6719           LD="${LD-ld} -melf32bsmip"
6720           ;;
6721         *N32*)
6722           LD="${LD-ld} -melf32bmipn32"
6723           ;;
6724         *64-bit*)
6725           LD="${LD-ld} -melf64bmip"
6726         ;;
6727       esac
6728     else
6729       case `/usr/bin/file conftest.$ac_objext` in
6730         *32-bit*)
6731           LD="${LD-ld} -32"
6732           ;;
6733         *N32*)
6734           LD="${LD-ld} -n32"
6735           ;;
6736         *64-bit*)
6737           LD="${LD-ld} -64"
6738           ;;
6739       esac
6740     fi
6741   fi
6742   rm -rf conftest*
6743   ;;
6744
6745 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6746 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6747   # Find out which ABI we are using.
6748   echo 'int i;' > conftest.$ac_ext
6749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750   (eval $ac_compile) 2>&5
6751   ac_status=$?
6752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753   test $ac_status = 0; }; then
6754     case `/usr/bin/file conftest.o` in
6755       *32-bit*)
6756         case $host in
6757           x86_64-*kfreebsd*-gnu)
6758             LD="${LD-ld} -m elf_i386_fbsd"
6759             ;;
6760           x86_64-*linux*)
6761             LD="${LD-ld} -m elf_i386"
6762             ;;
6763           ppc64-*linux*|powerpc64-*linux*)
6764             LD="${LD-ld} -m elf32ppclinux"
6765             ;;
6766           s390x-*linux*)
6767             LD="${LD-ld} -m elf_s390"
6768             ;;
6769           sparc64-*linux*)
6770             LD="${LD-ld} -m elf32_sparc"
6771             ;;
6772         esac
6773         ;;
6774       *64-bit*)
6775         case $host in
6776           x86_64-*kfreebsd*-gnu)
6777             LD="${LD-ld} -m elf_x86_64_fbsd"
6778             ;;
6779           x86_64-*linux*)
6780             LD="${LD-ld} -m elf_x86_64"
6781             ;;
6782           ppc*-*linux*|powerpc*-*linux*)
6783             LD="${LD-ld} -m elf64ppc"
6784             ;;
6785           s390*-*linux*|s390*-*tpf*)
6786             LD="${LD-ld} -m elf64_s390"
6787             ;;
6788           sparc*-*linux*)
6789             LD="${LD-ld} -m elf64_sparc"
6790             ;;
6791         esac
6792         ;;
6793     esac
6794   fi
6795   rm -rf conftest*
6796   ;;
6797
6798 *-*-sco3.2v5*)
6799   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6800   SAVE_CFLAGS="$CFLAGS"
6801   CFLAGS="$CFLAGS -belf"
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6803 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6804 if ${lt_cv_cc_needs_belf+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812
6813      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h.  */
6815
6816 int
6817 main ()
6818 {
6819
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825   lt_cv_cc_needs_belf=yes
6826 else
6827   lt_cv_cc_needs_belf=no
6828 fi
6829 rm -f core conftest.err conftest.$ac_objext \
6830     conftest$ac_exeext conftest.$ac_ext
6831      ac_ext=c
6832 ac_cpp='$CPP $CPPFLAGS'
6833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6839 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6840   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6842     CFLAGS="$SAVE_CFLAGS"
6843   fi
6844   ;;
6845 sparc*-*solaris*)
6846   # Find out which ABI we are using.
6847   echo 'int i;' > conftest.$ac_ext
6848   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849   (eval $ac_compile) 2>&5
6850   ac_status=$?
6851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852   test $ac_status = 0; }; then
6853     case `/usr/bin/file conftest.o` in
6854     *64-bit*)
6855       case $lt_cv_prog_gnu_ld in
6856       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6857       *)
6858         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6859           LD="${LD-ld} -64"
6860         fi
6861         ;;
6862       esac
6863       ;;
6864     esac
6865   fi
6866   rm -rf conftest*
6867   ;;
6868 esac
6869
6870 need_locks="$enable_libtool_lock"
6871
6872 if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}mt; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$MANIFEST_TOOL"; then
6881   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6901 if test -n "$MANIFEST_TOOL"; then
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6903 $as_echo "$MANIFEST_TOOL" >&6; }
6904 else
6905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6912   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6913   # Extract the first word of "mt", so it can be a program name with args.
6914 set dummy mt; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$ac_ct_MANIFEST_TOOL"; then
6921   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6941 if test -n "$ac_ct_MANIFEST_TOOL"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6943 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6950     MANIFEST_TOOL=":"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6959   fi
6960 else
6961   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6962 fi
6963
6964 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6966 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6967 if ${lt_cv_path_mainfest_tool+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   lt_cv_path_mainfest_tool=no
6971   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6972   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6973   cat conftest.err >&5
6974   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6975     lt_cv_path_mainfest_tool=yes
6976   fi
6977   rm -f conftest*
6978 fi
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6980 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6981 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6982   MANIFEST_TOOL=:
6983 fi
6984
6985
6986
6987
6988
6989
6990   case $host_os in
6991     rhapsody* | darwin*)
6992     if test -n "$ac_tool_prefix"; then
6993   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   if test -n "$DSYMUTIL"; then
7001   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008     for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015   done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7021 if test -n "$DSYMUTIL"; then
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7023 $as_echo "$DSYMUTIL" >&6; }
7024 else
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_DSYMUTIL"; then
7032   ac_ct_DSYMUTIL=$DSYMUTIL
7033   # Extract the first word of "dsymutil", so it can be a program name with args.
7034 set dummy dsymutil; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   if test -n "$ac_ct_DSYMUTIL"; then
7041   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048     for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055   done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7061 if test -n "$ac_ct_DSYMUTIL"; then
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7064 else
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069   if test "x$ac_ct_DSYMUTIL" = x; then
7070     DSYMUTIL=":"
7071   else
7072     case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078     DSYMUTIL=$ac_ct_DSYMUTIL
7079   fi
7080 else
7081   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082 fi
7083
7084     if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_NMEDIT+:} false; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   if test -n "$NMEDIT"; then
7093   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100     for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107   done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 NMEDIT=$ac_cv_prog_NMEDIT
7113 if test -n "$NMEDIT"; then
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7115 $as_echo "$NMEDIT" >&6; }
7116 else
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_NMEDIT"; then
7124   ac_ct_NMEDIT=$NMEDIT
7125   # Extract the first word of "nmedit", so it can be a program name with args.
7126 set dummy nmedit; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$ac_ct_NMEDIT"; then
7133   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7153 if test -n "$ac_ct_NMEDIT"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7155 $as_echo "$ac_ct_NMEDIT" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161   if test "x$ac_ct_NMEDIT" = x; then
7162     NMEDIT=":"
7163   else
7164     case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170     NMEDIT=$ac_ct_NMEDIT
7171   fi
7172 else
7173   NMEDIT="$ac_cv_prog_NMEDIT"
7174 fi
7175
7176     if test -n "$ac_tool_prefix"; then
7177   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_LIPO+:} false; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184   if test -n "$LIPO"; then
7185   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192     for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199   done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 LIPO=$ac_cv_prog_LIPO
7205 if test -n "$LIPO"; then
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7207 $as_echo "$LIPO" >&6; }
7208 else
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 fi
7215 if test -z "$ac_cv_prog_LIPO"; then
7216   ac_ct_LIPO=$LIPO
7217   # Extract the first word of "lipo", so it can be a program name with args.
7218 set dummy lipo; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$ac_ct_LIPO"; then
7225   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_prog_ac_ct_LIPO="lipo"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7245 if test -n "$ac_ct_LIPO"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7247 $as_echo "$ac_ct_LIPO" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253   if test "x$ac_ct_LIPO" = x; then
7254     LIPO=":"
7255   else
7256     case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262     LIPO=$ac_ct_LIPO
7263   fi
7264 else
7265   LIPO="$ac_cv_prog_LIPO"
7266 fi
7267
7268     if test -n "$ac_tool_prefix"; then
7269   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}otool; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_OTOOL+:} false; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   if test -n "$OTOOL"; then
7277   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OTOOL=$ac_cv_prog_OTOOL
7297 if test -n "$OTOOL"; then
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7299 $as_echo "$OTOOL" >&6; }
7300 else
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OTOOL"; then
7308   ac_ct_OTOOL=$OTOOL
7309   # Extract the first word of "otool", so it can be a program name with args.
7310 set dummy otool; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$ac_ct_OTOOL"; then
7317   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326     ac_cv_prog_ac_ct_OTOOL="otool"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7337 if test -n "$ac_ct_OTOOL"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7339 $as_echo "$ac_ct_OTOOL" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345   if test "x$ac_ct_OTOOL" = x; then
7346     OTOOL=":"
7347   else
7348     case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354     OTOOL=$ac_ct_OTOOL
7355   fi
7356 else
7357   OTOOL="$ac_cv_prog_OTOOL"
7358 fi
7359
7360     if test -n "$ac_tool_prefix"; then
7361   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_OTOOL64+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$OTOOL64"; then
7369   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 OTOOL64=$ac_cv_prog_OTOOL64
7389 if test -n "$OTOOL64"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7391 $as_echo "$OTOOL64" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_OTOOL64"; then
7400   ac_ct_OTOOL64=$OTOOL64
7401   # Extract the first word of "otool64", so it can be a program name with args.
7402 set dummy otool64; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$ac_ct_OTOOL64"; then
7409   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_ac_ct_OTOOL64="otool64"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7429 if test -n "$ac_ct_OTOOL64"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7431 $as_echo "$ac_ct_OTOOL64" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437   if test "x$ac_ct_OTOOL64" = x; then
7438     OTOOL64=":"
7439   else
7440     case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     OTOOL64=$ac_ct_OTOOL64
7447   fi
7448 else
7449   OTOOL64="$ac_cv_prog_OTOOL64"
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7479 $as_echo_n "checking for -single_module linker flag... " >&6; }
7480 if ${lt_cv_apple_cc_single_mod+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   lt_cv_apple_cc_single_mod=no
7484       if test -z "${LT_MULTI_MODULE}"; then
7485         # By default we will add the -single_module flag. You can override
7486         # by either setting the environment variable LT_MULTI_MODULE
7487         # non-empty at configure time, or by adding -multi_module to the
7488         # link flags.
7489         rm -rf libconftest.dylib*
7490         echo "int foo(void){return 1;}" > conftest.c
7491         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492 -dynamiclib -Wl,-single_module conftest.c" >&5
7493         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7494           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7495         _lt_result=$?
7496         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7497           lt_cv_apple_cc_single_mod=yes
7498         else
7499           cat conftest.err >&5
7500         fi
7501         rm -rf libconftest.dylib*
7502         rm -f conftest.*
7503       fi
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7509 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   lt_cv_ld_exported_symbols_list=no
7513       save_LDFLAGS=$LDFLAGS
7514       echo "_main" > conftest.sym
7515       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518
7519 int
7520 main ()
7521 {
7522
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528   lt_cv_ld_exported_symbols_list=yes
7529 else
7530   lt_cv_ld_exported_symbols_list=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext \
7533     conftest$ac_exeext conftest.$ac_ext
7534         LDFLAGS="$save_LDFLAGS"
7535
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7540 $as_echo_n "checking for -force_load linker flag... " >&6; }
7541 if ${lt_cv_ld_force_load+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   lt_cv_ld_force_load=no
7545       cat > conftest.c << _LT_EOF
7546 int forced_loaded() { return 2;}
7547 _LT_EOF
7548       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7549       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7550       echo "$AR cru libconftest.a conftest.o" >&5
7551       $AR cru libconftest.a conftest.o 2>&5
7552       echo "$RANLIB libconftest.a" >&5
7553       $RANLIB libconftest.a 2>&5
7554       cat > conftest.c << _LT_EOF
7555 int main() { return 0;}
7556 _LT_EOF
7557       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7558       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7559       _lt_result=$?
7560       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7561         lt_cv_ld_force_load=yes
7562       else
7563         cat conftest.err >&5
7564       fi
7565         rm -f conftest.err libconftest.a conftest conftest.c
7566         rm -rf conftest.dSYM
7567
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7570 $as_echo "$lt_cv_ld_force_load" >&6; }
7571     case $host_os in
7572     rhapsody* | darwin1.[012])
7573       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7574     darwin1.*)
7575       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7576     darwin*) # darwin 5.x on
7577       # if running on 10.5 or later, the deployment target defaults
7578       # to the OS version, if on x86, and 10.4, the deployment
7579       # target defaults to 10.4. Don't you love it?
7580       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7581         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7582           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7583         10.[012]*)
7584           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7585         10.*)
7586           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7587       esac
7588     ;;
7589   esac
7590     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7591       _lt_dar_single_mod='$single_module'
7592     fi
7593     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7594       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7595     else
7596       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7597     fi
7598     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7599       _lt_dsymutil='~$DSYMUTIL $lib || :'
7600     else
7601       _lt_dsymutil=
7602     fi
7603     ;;
7604   esac
7605
7606 ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7612 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7613 # On Suns, sometimes $CPP names a directory.
7614 if test -n "$CPP" && test -d "$CPP"; then
7615   CPP=
7616 fi
7617 if test -z "$CPP"; then
7618   if ${ac_cv_prog_CPP+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621       # Double quotes because CPP needs to be expanded
7622     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7623     do
7624       ac_preproc_ok=false
7625 for ac_c_preproc_warn_flag in '' yes
7626 do
7627   # Use a header file that comes with gcc, so configuring glibc
7628   # with a fresh cross-compiler works.
7629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7630   # <limits.h> exists even on freestanding compilers.
7631   # On the NeXT, cc -E runs the code through the compiler's parser,
7632   # not just through cpp. "Syntax error" is here to catch this case.
7633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635 #ifdef __STDC__
7636 # include <limits.h>
7637 #else
7638 # include <assert.h>
7639 #endif
7640                      Syntax error
7641 _ACEOF
7642 if ac_fn_c_try_cpp "$LINENO"; then :
7643
7644 else
7645   # Broken: fails on valid input.
7646 continue
7647 fi
7648 rm -f conftest.err conftest.i conftest.$ac_ext
7649
7650   # OK, works on sane cases.  Now check whether nonexistent headers
7651   # can be detected and how.
7652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h.  */
7654 #include <ac_nonexistent.h>
7655 _ACEOF
7656 if ac_fn_c_try_cpp "$LINENO"; then :
7657   # Broken: success on invalid input.
7658 continue
7659 else
7660   # Passes both tests.
7661 ac_preproc_ok=:
7662 break
7663 fi
7664 rm -f conftest.err conftest.i conftest.$ac_ext
7665
7666 done
7667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7668 rm -f conftest.i conftest.err conftest.$ac_ext
7669 if $ac_preproc_ok; then :
7670   break
7671 fi
7672
7673     done
7674     ac_cv_prog_CPP=$CPP
7675
7676 fi
7677   CPP=$ac_cv_prog_CPP
7678 else
7679   ac_cv_prog_CPP=$CPP
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7682 $as_echo "$CPP" >&6; }
7683 ac_preproc_ok=false
7684 for ac_c_preproc_warn_flag in '' yes
7685 do
7686   # Use a header file that comes with gcc, so configuring glibc
7687   # with a fresh cross-compiler works.
7688   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7689   # <limits.h> exists even on freestanding compilers.
7690   # On the NeXT, cc -E runs the code through the compiler's parser,
7691   # not just through cpp. "Syntax error" is here to catch this case.
7692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h.  */
7694 #ifdef __STDC__
7695 # include <limits.h>
7696 #else
7697 # include <assert.h>
7698 #endif
7699                      Syntax error
7700 _ACEOF
7701 if ac_fn_c_try_cpp "$LINENO"; then :
7702
7703 else
7704   # Broken: fails on valid input.
7705 continue
7706 fi
7707 rm -f conftest.err conftest.i conftest.$ac_ext
7708
7709   # OK, works on sane cases.  Now check whether nonexistent headers
7710   # can be detected and how.
7711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h.  */
7713 #include <ac_nonexistent.h>
7714 _ACEOF
7715 if ac_fn_c_try_cpp "$LINENO"; then :
7716   # Broken: success on invalid input.
7717 continue
7718 else
7719   # Passes both tests.
7720 ac_preproc_ok=:
7721 break
7722 fi
7723 rm -f conftest.err conftest.i conftest.$ac_ext
7724
7725 done
7726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7727 rm -f conftest.i conftest.err conftest.$ac_ext
7728 if $ac_preproc_ok; then :
7729
7730 else
7731   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7733 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7734 See \`config.log' for more details" "$LINENO" 5; }
7735 fi
7736
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7745 $as_echo_n "checking for ANSI C header files... " >&6; }
7746 if ${ac_cv_header_stdc+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #include <stdlib.h>
7752 #include <stdarg.h>
7753 #include <string.h>
7754 #include <float.h>
7755
7756 int
7757 main ()
7758 {
7759
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765   ac_cv_header_stdc=yes
7766 else
7767   ac_cv_header_stdc=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770
7771 if test $ac_cv_header_stdc = yes; then
7772   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <string.h>
7776
7777 _ACEOF
7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779   $EGREP "memchr" >/dev/null 2>&1; then :
7780
7781 else
7782   ac_cv_header_stdc=no
7783 fi
7784 rm -f conftest*
7785
7786 fi
7787
7788 if test $ac_cv_header_stdc = yes; then
7789   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h.  */
7792 #include <stdlib.h>
7793
7794 _ACEOF
7795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7796   $EGREP "free" >/dev/null 2>&1; then :
7797
7798 else
7799   ac_cv_header_stdc=no
7800 fi
7801 rm -f conftest*
7802
7803 fi
7804
7805 if test $ac_cv_header_stdc = yes; then
7806   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7807   if test "$cross_compiling" = yes; then :
7808   :
7809 else
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812 #include <ctype.h>
7813 #include <stdlib.h>
7814 #if ((' ' & 0x0FF) == 0x020)
7815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7817 #else
7818 # define ISLOWER(c) \
7819                    (('a' <= (c) && (c) <= 'i') \
7820                      || ('j' <= (c) && (c) <= 'r') \
7821                      || ('s' <= (c) && (c) <= 'z'))
7822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7823 #endif
7824
7825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7826 int
7827 main ()
7828 {
7829   int i;
7830   for (i = 0; i < 256; i++)
7831     if (XOR (islower (i), ISLOWER (i))
7832         || toupper (i) != TOUPPER (i))
7833       return 2;
7834   return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_run "$LINENO"; then :
7838
7839 else
7840   ac_cv_header_stdc=no
7841 fi
7842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7843   conftest.$ac_objext conftest.beam conftest.$ac_ext
7844 fi
7845
7846 fi
7847 fi
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7849 $as_echo "$ac_cv_header_stdc" >&6; }
7850 if test $ac_cv_header_stdc = yes; then
7851
7852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7853
7854 fi
7855
7856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7857 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7858                   inttypes.h stdint.h unistd.h
7859 do :
7860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7862 "
7863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7864   cat >>confdefs.h <<_ACEOF
7865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7866 _ACEOF
7867
7868 fi
7869
7870 done
7871
7872
7873 for ac_header in dlfcn.h
7874 do :
7875   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7876 "
7877 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7878   cat >>confdefs.h <<_ACEOF
7879 #define HAVE_DLFCN_H 1
7880 _ACEOF
7881
7882 fi
7883
7884 done
7885
7886
7887
7888
7889
7890 # Set options
7891
7892
7893
7894         enable_dlopen=no
7895
7896
7897
7898             # Check whether --enable-shared was given.
7899 if test "${enable_shared+set}" = set; then :
7900   enableval=$enable_shared; p=${PACKAGE-default}
7901     case $enableval in
7902     yes) enable_shared=yes ;;
7903     no) enable_shared=no ;;
7904     *)
7905       enable_shared=no
7906       # Look at the argument we got.  We use all the common list separators.
7907       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7908       for pkg in $enableval; do
7909         IFS="$lt_save_ifs"
7910         if test "X$pkg" = "X$p"; then
7911           enable_shared=yes
7912         fi
7913       done
7914       IFS="$lt_save_ifs"
7915       ;;
7916     esac
7917 else
7918   enable_shared=yes
7919 fi
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929   # Check whether --enable-static was given.
7930 if test "${enable_static+set}" = set; then :
7931   enableval=$enable_static; p=${PACKAGE-default}
7932     case $enableval in
7933     yes) enable_static=yes ;;
7934     no) enable_static=no ;;
7935     *)
7936      enable_static=no
7937       # Look at the argument we got.  We use all the common list separators.
7938       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7939       for pkg in $enableval; do
7940         IFS="$lt_save_ifs"
7941         if test "X$pkg" = "X$p"; then
7942           enable_static=yes
7943         fi
7944       done
7945       IFS="$lt_save_ifs"
7946       ;;
7947     esac
7948 else
7949   enable_static=yes
7950 fi
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 # Check whether --with-pic was given.
7962 if test "${with_pic+set}" = set; then :
7963   withval=$with_pic; pic_mode="$withval"
7964 else
7965   pic_mode=default
7966 fi
7967
7968
7969 test -z "$pic_mode" && pic_mode=default
7970
7971
7972
7973
7974
7975
7976
7977   # Check whether --enable-fast-install was given.
7978 if test "${enable_fast_install+set}" = set; then :
7979   enableval=$enable_fast_install; p=${PACKAGE-default}
7980     case $enableval in
7981     yes) enable_fast_install=yes ;;
7982     no) enable_fast_install=no ;;
7983     *)
7984       enable_fast_install=no
7985       # Look at the argument we got.  We use all the common list separators.
7986       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7987       for pkg in $enableval; do
7988         IFS="$lt_save_ifs"
7989         if test "X$pkg" = "X$p"; then
7990           enable_fast_install=yes
7991         fi
7992       done
7993       IFS="$lt_save_ifs"
7994       ;;
7995     esac
7996 else
7997   enable_fast_install=yes
7998 fi
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010 # This can be used to rebuild libtool when needed
8011 LIBTOOL_DEPS="$ltmain"
8012
8013 # Always use our own libtool.
8014 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041 test -z "$LN_S" && LN_S="ln -s"
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 if test -n "${ZSH_VERSION+set}" ; then
8057    setopt NO_GLOB_SUBST
8058 fi
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8061 $as_echo_n "checking for objdir... " >&6; }
8062 if ${lt_cv_objdir+:} false; then :
8063   $as_echo_n "(cached) " >&6
8064 else
8065   rm -f .libs 2>/dev/null
8066 mkdir .libs 2>/dev/null
8067 if test -d .libs; then
8068   lt_cv_objdir=.libs
8069 else
8070   # MS-DOS does not allow filenames that begin with a dot.
8071   lt_cv_objdir=_libs
8072 fi
8073 rmdir .libs 2>/dev/null
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8076 $as_echo "$lt_cv_objdir" >&6; }
8077 objdir=$lt_cv_objdir
8078
8079
8080
8081
8082
8083 cat >>confdefs.h <<_ACEOF
8084 #define LT_OBJDIR "$lt_cv_objdir/"
8085 _ACEOF
8086
8087
8088
8089
8090 case $host_os in
8091 aix3*)
8092   # AIX sometimes has problems with the GCC collect2 program.  For some
8093   # reason, if we set the COLLECT_NAMES environment variable, the problems
8094   # vanish in a puff of smoke.
8095   if test "X${COLLECT_NAMES+set}" != Xset; then
8096     COLLECT_NAMES=
8097     export COLLECT_NAMES
8098   fi
8099   ;;
8100 esac
8101
8102 # Global variables:
8103 ofile=libtool
8104 can_build_shared=yes
8105
8106 # All known linkers require a `.a' archive for static linking (except MSVC,
8107 # which needs '.lib').
8108 libext=a
8109
8110 with_gnu_ld="$lt_cv_prog_gnu_ld"
8111
8112 old_CC="$CC"
8113 old_CFLAGS="$CFLAGS"
8114
8115 # Set sane defaults for various variables
8116 test -z "$CC" && CC=cc
8117 test -z "$LTCC" && LTCC=$CC
8118 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8119 test -z "$LD" && LD=ld
8120 test -z "$ac_objext" && ac_objext=o
8121
8122 for cc_temp in $compiler""; do
8123   case $cc_temp in
8124     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8125     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8126     \-*) ;;
8127     *) break;;
8128   esac
8129 done
8130 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8131
8132
8133 # Only perform the check for file, if the check method requires it
8134 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8135 case $deplibs_check_method in
8136 file_magic*)
8137   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8139 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143   case $MAGIC_CMD in
8144 [\\/*] |  ?:[\\/]*)
8145   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8146   ;;
8147 *)
8148   lt_save_MAGIC_CMD="$MAGIC_CMD"
8149   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8150   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8151   for ac_dir in $ac_dummy; do
8152     IFS="$lt_save_ifs"
8153     test -z "$ac_dir" && ac_dir=.
8154     if test -f $ac_dir/${ac_tool_prefix}file; then
8155       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8156       if test -n "$file_magic_test_file"; then
8157         case $deplibs_check_method in
8158         "file_magic "*)
8159           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8160           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8161           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8162             $EGREP "$file_magic_regex" > /dev/null; then
8163             :
8164           else
8165             cat <<_LT_EOF 1>&2
8166
8167 *** Warning: the command libtool uses to detect shared libraries,
8168 *** $file_magic_cmd, produces output that libtool cannot recognize.
8169 *** The result is that libtool may fail to recognize shared libraries
8170 *** as such.  This will affect the creation of libtool libraries that
8171 *** depend on shared libraries, but programs linked with such libtool
8172 *** libraries will work regardless of this problem.  Nevertheless, you
8173 *** may want to report the problem to your system manager and/or to
8174 *** bug-libtool@gnu.org
8175
8176 _LT_EOF
8177           fi ;;
8178         esac
8179       fi
8180       break
8181     fi
8182   done
8183   IFS="$lt_save_ifs"
8184   MAGIC_CMD="$lt_save_MAGIC_CMD"
8185   ;;
8186 esac
8187 fi
8188
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if test -n "$MAGIC_CMD"; then
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8192 $as_echo "$MAGIC_CMD" >&6; }
8193 else
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199
8200
8201
8202 if test -z "$lt_cv_path_MAGIC_CMD"; then
8203   if test -n "$ac_tool_prefix"; then
8204     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8205 $as_echo_n "checking for file... " >&6; }
8206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   case $MAGIC_CMD in
8210 [\\/*] |  ?:[\\/]*)
8211   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8212   ;;
8213 *)
8214   lt_save_MAGIC_CMD="$MAGIC_CMD"
8215   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8216   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8217   for ac_dir in $ac_dummy; do
8218     IFS="$lt_save_ifs"
8219     test -z "$ac_dir" && ac_dir=.
8220     if test -f $ac_dir/file; then
8221       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8222       if test -n "$file_magic_test_file"; then
8223         case $deplibs_check_method in
8224         "file_magic "*)
8225           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8226           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8227           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8228             $EGREP "$file_magic_regex" > /dev/null; then
8229             :
8230           else
8231             cat <<_LT_EOF 1>&2
8232
8233 *** Warning: the command libtool uses to detect shared libraries,
8234 *** $file_magic_cmd, produces output that libtool cannot recognize.
8235 *** The result is that libtool may fail to recognize shared libraries
8236 *** as such.  This will affect the creation of libtool libraries that
8237 *** depend on shared libraries, but programs linked with such libtool
8238 *** libraries will work regardless of this problem.  Nevertheless, you
8239 *** may want to report the problem to your system manager and/or to
8240 *** bug-libtool@gnu.org
8241
8242 _LT_EOF
8243           fi ;;
8244         esac
8245       fi
8246       break
8247     fi
8248   done
8249   IFS="$lt_save_ifs"
8250   MAGIC_CMD="$lt_save_MAGIC_CMD"
8251   ;;
8252 esac
8253 fi
8254
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if test -n "$MAGIC_CMD"; then
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8258 $as_echo "$MAGIC_CMD" >&6; }
8259 else
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264
8265   else
8266     MAGIC_CMD=:
8267   fi
8268 fi
8269
8270   fi
8271   ;;
8272 esac
8273
8274 # Use C for the default configuration in the libtool script
8275
8276 lt_save_CC="$CC"
8277 ac_ext=c
8278 ac_cpp='$CPP $CPPFLAGS'
8279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284 # Source file extension for C test sources.
8285 ac_ext=c
8286
8287 # Object file extension for compiled C test sources.
8288 objext=o
8289 objext=$objext
8290
8291 # Code to be used in simple compile tests
8292 lt_simple_compile_test_code="int some_variable = 0;"
8293
8294 # Code to be used in simple link tests
8295 lt_simple_link_test_code='int main(){return(0);}'
8296
8297
8298
8299
8300
8301
8302
8303 # If no C compiler was specified, use CC.
8304 LTCC=${LTCC-"$CC"}
8305
8306 # If no C compiler flags were specified, use CFLAGS.
8307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8308
8309 # Allow CC to be a program name with arguments.
8310 compiler=$CC
8311
8312 # Save the default compiler, since it gets overwritten when the other
8313 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8314 compiler_DEFAULT=$CC
8315
8316 # save warnings/boilerplate of simple test code
8317 ac_outfile=conftest.$ac_objext
8318 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8319 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8320 _lt_compiler_boilerplate=`cat conftest.err`
8321 $RM conftest*
8322
8323 ac_outfile=conftest.$ac_objext
8324 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8325 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8326 _lt_linker_boilerplate=`cat conftest.err`
8327 $RM -r conftest*
8328
8329
8330 ## CAVEAT EMPTOR:
8331 ## There is no encapsulation within the following macros, do not change
8332 ## the running order or otherwise move them around unless you know exactly
8333 ## what you are doing...
8334 if test -n "$compiler"; then
8335
8336 lt_prog_compiler_no_builtin_flag=
8337
8338 if test "$GCC" = yes; then
8339   case $cc_basename in
8340   nvcc*)
8341     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8342   *)
8343     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8344   esac
8345
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8347 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8348 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   lt_cv_prog_compiler_rtti_exceptions=no
8352    ac_outfile=conftest.$ac_objext
8353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354    lt_compiler_flag="-fno-rtti -fno-exceptions"
8355    # Insert the option either (1) after the last *FLAGS variable, or
8356    # (2) before a word containing "conftest.", or (3) at the end.
8357    # Note that $ac_compile itself does not contain backslashes and begins
8358    # with a dollar sign (not a hyphen), so the echo should work correctly.
8359    # The option is referenced via a variable to avoid confusing sed.
8360    lt_compile=`echo "$ac_compile" | $SED \
8361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8363    -e 's:$: $lt_compiler_flag:'`
8364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8365    (eval "$lt_compile" 2>conftest.err)
8366    ac_status=$?
8367    cat conftest.err >&5
8368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369    if (exit $ac_status) && test -s "$ac_outfile"; then
8370      # The compiler can only warn and ignore the option if not recognized
8371      # So say no if there are warnings other than the usual output.
8372      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8373      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8374      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8375        lt_cv_prog_compiler_rtti_exceptions=yes
8376      fi
8377    fi
8378    $RM conftest*
8379
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8382 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8383
8384 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8385     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8386 else
8387     :
8388 fi
8389
8390 fi
8391
8392
8393
8394
8395
8396
8397   lt_prog_compiler_wl=
8398 lt_prog_compiler_pic=
8399 lt_prog_compiler_static=
8400
8401
8402   if test "$GCC" = yes; then
8403     lt_prog_compiler_wl='-Wl,'
8404     lt_prog_compiler_static='-static'
8405
8406     case $host_os in
8407       aix*)
8408       # All AIX code is PIC.
8409       if test "$host_cpu" = ia64; then
8410         # AIX 5 now supports IA64 processor
8411         lt_prog_compiler_static='-Bstatic'
8412       fi
8413       ;;
8414
8415     amigaos*)
8416       case $host_cpu in
8417       powerpc)
8418             # see comment about AmigaOS4 .so support
8419             lt_prog_compiler_pic='-fPIC'
8420         ;;
8421       m68k)
8422             # FIXME: we need at least 68020 code to build shared libraries, but
8423             # adding the `-m68020' flag to GCC prevents building anything better,
8424             # like `-m68040'.
8425             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8426         ;;
8427       esac
8428       ;;
8429
8430     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8431       # PIC is the default for these OSes.
8432       ;;
8433
8434     mingw* | cygwin* | pw32* | os2* | cegcc*)
8435       # This hack is so that the source file can tell whether it is being
8436       # built for inclusion in a dll (and should export symbols for example).
8437       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8438       # (--disable-auto-import) libraries
8439       lt_prog_compiler_pic='-DDLL_EXPORT'
8440       ;;
8441
8442     darwin* | rhapsody*)
8443       # PIC is the default on this platform
8444       # Common symbols not allowed in MH_DYLIB files
8445       lt_prog_compiler_pic='-fno-common'
8446       ;;
8447
8448     haiku*)
8449       # PIC is the default for Haiku.
8450       # The "-static" flag exists, but is broken.
8451       lt_prog_compiler_static=
8452       ;;
8453
8454     hpux*)
8455       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8456       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8457       # sets the default TLS model and affects inlining.
8458       case $host_cpu in
8459       hppa*64*)
8460         # +Z the default
8461         ;;
8462       *)
8463         lt_prog_compiler_pic='-fPIC'
8464         ;;
8465       esac
8466       ;;
8467
8468     interix[3-9]*)
8469       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8470       # Instead, we relocate shared libraries at runtime.
8471       ;;
8472
8473     msdosdjgpp*)
8474       # Just because we use GCC doesn't mean we suddenly get shared libraries
8475       # on systems that don't support them.
8476       lt_prog_compiler_can_build_shared=no
8477       enable_shared=no
8478       ;;
8479
8480     *nto* | *qnx*)
8481       # QNX uses GNU C++, but need to define -shared option too, otherwise
8482       # it will coredump.
8483       lt_prog_compiler_pic='-fPIC -shared'
8484       ;;
8485
8486     sysv4*MP*)
8487       if test -d /usr/nec; then
8488         lt_prog_compiler_pic=-Kconform_pic
8489       fi
8490       ;;
8491
8492     *)
8493       lt_prog_compiler_pic='-fPIC'
8494       ;;
8495     esac
8496
8497     case $cc_basename in
8498     nvcc*) # Cuda Compiler Driver 2.2
8499       lt_prog_compiler_wl='-Xlinker '
8500       lt_prog_compiler_pic='-Xcompiler -fPIC'
8501       ;;
8502     esac
8503   else
8504     # PORTME Check for flag to pass linker flags through the system compiler.
8505     case $host_os in
8506     aix*)
8507       lt_prog_compiler_wl='-Wl,'
8508       if test "$host_cpu" = ia64; then
8509         # AIX 5 now supports IA64 processor
8510         lt_prog_compiler_static='-Bstatic'
8511       else
8512         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8513       fi
8514       ;;
8515
8516     mingw* | cygwin* | pw32* | os2* | cegcc*)
8517       # This hack is so that the source file can tell whether it is being
8518       # built for inclusion in a dll (and should export symbols for example).
8519       lt_prog_compiler_pic='-DDLL_EXPORT'
8520       ;;
8521
8522     hpux9* | hpux10* | hpux11*)
8523       lt_prog_compiler_wl='-Wl,'
8524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8525       # not for PA HP-UX.
8526       case $host_cpu in
8527       hppa*64*|ia64*)
8528         # +Z the default
8529         ;;
8530       *)
8531         lt_prog_compiler_pic='+Z'
8532         ;;
8533       esac
8534       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8535       lt_prog_compiler_static='${wl}-a ${wl}archive'
8536       ;;
8537
8538     irix5* | irix6* | nonstopux*)
8539       lt_prog_compiler_wl='-Wl,'
8540       # PIC (with -KPIC) is the default.
8541       lt_prog_compiler_static='-non_shared'
8542       ;;
8543
8544     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8545       case $cc_basename in
8546       # old Intel for x86_64 which still supported -KPIC.
8547       ecc*)
8548         lt_prog_compiler_wl='-Wl,'
8549         lt_prog_compiler_pic='-KPIC'
8550         lt_prog_compiler_static='-static'
8551         ;;
8552       # icc used to be incompatible with GCC.
8553       # ICC 10 doesn't accept -KPIC any more.
8554       icc* | ifort*)
8555         lt_prog_compiler_wl='-Wl,'
8556         lt_prog_compiler_pic='-fPIC'
8557         lt_prog_compiler_static='-static'
8558         ;;
8559       # Lahey Fortran 8.1.
8560       lf95*)
8561         lt_prog_compiler_wl='-Wl,'
8562         lt_prog_compiler_pic='--shared'
8563         lt_prog_compiler_static='--static'
8564         ;;
8565       nagfor*)
8566         # NAG Fortran compiler
8567         lt_prog_compiler_wl='-Wl,-Wl,,'
8568         lt_prog_compiler_pic='-PIC'
8569         lt_prog_compiler_static='-Bstatic'
8570         ;;
8571       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8572         # Portland Group compilers (*not* the Pentium gcc compiler,
8573         # which looks to be a dead project)
8574         lt_prog_compiler_wl='-Wl,'
8575         lt_prog_compiler_pic='-fpic'
8576         lt_prog_compiler_static='-Bstatic'
8577         ;;
8578       ccc*)
8579         lt_prog_compiler_wl='-Wl,'
8580         # All Alpha code is PIC.
8581         lt_prog_compiler_static='-non_shared'
8582         ;;
8583       xl* | bgxl* | bgf* | mpixl*)
8584         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8585         lt_prog_compiler_wl='-Wl,'
8586         lt_prog_compiler_pic='-qpic'
8587         lt_prog_compiler_static='-qstaticlink'
8588         ;;
8589       *)
8590         case `$CC -V 2>&1 | sed 5q` in
8591         *Sun\ F* | *Sun*Fortran*)
8592           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8593           lt_prog_compiler_pic='-KPIC'
8594           lt_prog_compiler_static='-Bstatic'
8595           lt_prog_compiler_wl=''
8596           ;;
8597         *Sun\ C*)
8598           # Sun C 5.9
8599           lt_prog_compiler_pic='-KPIC'
8600           lt_prog_compiler_static='-Bstatic'
8601           lt_prog_compiler_wl='-Wl,'
8602           ;;
8603         esac
8604         ;;
8605       esac
8606       ;;
8607
8608     newsos6)
8609       lt_prog_compiler_pic='-KPIC'
8610       lt_prog_compiler_static='-Bstatic'
8611       ;;
8612
8613     *nto* | *qnx*)
8614       # QNX uses GNU C++, but need to define -shared option too, otherwise
8615       # it will coredump.
8616       lt_prog_compiler_pic='-fPIC -shared'
8617       ;;
8618
8619     osf3* | osf4* | osf5*)
8620       lt_prog_compiler_wl='-Wl,'
8621       # All OSF/1 code is PIC.
8622       lt_prog_compiler_static='-non_shared'
8623       ;;
8624
8625     rdos*)
8626       lt_prog_compiler_static='-non_shared'
8627       ;;
8628
8629     solaris*)
8630       lt_prog_compiler_pic='-KPIC'
8631       lt_prog_compiler_static='-Bstatic'
8632       case $cc_basename in
8633       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8634         lt_prog_compiler_wl='-Qoption ld ';;
8635       *)
8636         lt_prog_compiler_wl='-Wl,';;
8637       esac
8638       ;;
8639
8640     sunos4*)
8641       lt_prog_compiler_wl='-Qoption ld '
8642       lt_prog_compiler_pic='-PIC'
8643       lt_prog_compiler_static='-Bstatic'
8644       ;;
8645
8646     sysv4 | sysv4.2uw2* | sysv4.3*)
8647       lt_prog_compiler_wl='-Wl,'
8648       lt_prog_compiler_pic='-KPIC'
8649       lt_prog_compiler_static='-Bstatic'
8650       ;;
8651
8652     sysv4*MP*)
8653       if test -d /usr/nec ;then
8654         lt_prog_compiler_pic='-Kconform_pic'
8655         lt_prog_compiler_static='-Bstatic'
8656       fi
8657       ;;
8658
8659     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8660       lt_prog_compiler_wl='-Wl,'
8661       lt_prog_compiler_pic='-KPIC'
8662       lt_prog_compiler_static='-Bstatic'
8663       ;;
8664
8665     unicos*)
8666       lt_prog_compiler_wl='-Wl,'
8667       lt_prog_compiler_can_build_shared=no
8668       ;;
8669
8670     uts4*)
8671       lt_prog_compiler_pic='-pic'
8672       lt_prog_compiler_static='-Bstatic'
8673       ;;
8674
8675     *)
8676       lt_prog_compiler_can_build_shared=no
8677       ;;
8678     esac
8679   fi
8680
8681 case $host_os in
8682   # For platforms which do not support PIC, -DPIC is meaningless:
8683   *djgpp*)
8684     lt_prog_compiler_pic=
8685     ;;
8686   *)
8687     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8688     ;;
8689 esac
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8692 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8693 if ${lt_cv_prog_compiler_pic+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8697 fi
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8699 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8700 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8701
8702 #
8703 # Check to make sure the PIC flag actually works.
8704 #
8705 if test -n "$lt_prog_compiler_pic"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8707 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8708 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8709   $as_echo_n "(cached) " >&6
8710 else
8711   lt_cv_prog_compiler_pic_works=no
8712    ac_outfile=conftest.$ac_objext
8713    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8714    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8715    # Insert the option either (1) after the last *FLAGS variable, or
8716    # (2) before a word containing "conftest.", or (3) at the end.
8717    # Note that $ac_compile itself does not contain backslashes and begins
8718    # with a dollar sign (not a hyphen), so the echo should work correctly.
8719    # The option is referenced via a variable to avoid confusing sed.
8720    lt_compile=`echo "$ac_compile" | $SED \
8721    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8722    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8723    -e 's:$: $lt_compiler_flag:'`
8724    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8725    (eval "$lt_compile" 2>conftest.err)
8726    ac_status=$?
8727    cat conftest.err >&5
8728    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729    if (exit $ac_status) && test -s "$ac_outfile"; then
8730      # The compiler can only warn and ignore the option if not recognized
8731      # So say no if there are warnings other than the usual output.
8732      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8733      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8734      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8735        lt_cv_prog_compiler_pic_works=yes
8736      fi
8737    fi
8738    $RM conftest*
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8742 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8743
8744 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8745     case $lt_prog_compiler_pic in
8746      "" | " "*) ;;
8747      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8748      esac
8749 else
8750     lt_prog_compiler_pic=
8751      lt_prog_compiler_can_build_shared=no
8752 fi
8753
8754 fi
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766 #
8767 # Check to make sure the static flag actually works.
8768 #
8769 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8771 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8772 if ${lt_cv_prog_compiler_static_works+:} false; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   lt_cv_prog_compiler_static_works=no
8776    save_LDFLAGS="$LDFLAGS"
8777    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8778    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8779    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8780      # The linker can only warn and ignore the option if not recognized
8781      # So say no if there are warnings
8782      if test -s conftest.err; then
8783        # Append any errors to the config.log.
8784        cat conftest.err 1>&5
8785        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8786        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8787        if diff conftest.exp conftest.er2 >/dev/null; then
8788          lt_cv_prog_compiler_static_works=yes
8789        fi
8790      else
8791        lt_cv_prog_compiler_static_works=yes
8792      fi
8793    fi
8794    $RM -r conftest*
8795    LDFLAGS="$save_LDFLAGS"
8796
8797 fi
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8799 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8800
8801 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8802     :
8803 else
8804     lt_prog_compiler_static=
8805 fi
8806
8807
8808
8809
8810
8811
8812
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8814 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8815 if ${lt_cv_prog_compiler_c_o+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   lt_cv_prog_compiler_c_o=no
8819    $RM -r conftest 2>/dev/null
8820    mkdir conftest
8821    cd conftest
8822    mkdir out
8823    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8824
8825    lt_compiler_flag="-o out/conftest2.$ac_objext"
8826    # Insert the option either (1) after the last *FLAGS variable, or
8827    # (2) before a word containing "conftest.", or (3) at the end.
8828    # Note that $ac_compile itself does not contain backslashes and begins
8829    # with a dollar sign (not a hyphen), so the echo should work correctly.
8830    lt_compile=`echo "$ac_compile" | $SED \
8831    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8832    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8833    -e 's:$: $lt_compiler_flag:'`
8834    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8835    (eval "$lt_compile" 2>out/conftest.err)
8836    ac_status=$?
8837    cat out/conftest.err >&5
8838    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8840    then
8841      # The compiler can only warn and ignore the option if not recognized
8842      # So say no if there are warnings
8843      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8844      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8845      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8846        lt_cv_prog_compiler_c_o=yes
8847      fi
8848    fi
8849    chmod u+w . 2>&5
8850    $RM conftest*
8851    # SGI C++ compiler will create directory out/ii_files/ for
8852    # template instantiation
8853    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8854    $RM out/* && rmdir out
8855    cd ..
8856    $RM -r conftest
8857    $RM conftest*
8858
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8861 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8862
8863
8864
8865
8866
8867
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8869 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8870 if ${lt_cv_prog_compiler_c_o+:} false; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   lt_cv_prog_compiler_c_o=no
8874    $RM -r conftest 2>/dev/null
8875    mkdir conftest
8876    cd conftest
8877    mkdir out
8878    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8879
8880    lt_compiler_flag="-o out/conftest2.$ac_objext"
8881    # Insert the option either (1) after the last *FLAGS variable, or
8882    # (2) before a word containing "conftest.", or (3) at the end.
8883    # Note that $ac_compile itself does not contain backslashes and begins
8884    # with a dollar sign (not a hyphen), so the echo should work correctly.
8885    lt_compile=`echo "$ac_compile" | $SED \
8886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8888    -e 's:$: $lt_compiler_flag:'`
8889    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8890    (eval "$lt_compile" 2>out/conftest.err)
8891    ac_status=$?
8892    cat out/conftest.err >&5
8893    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8895    then
8896      # The compiler can only warn and ignore the option if not recognized
8897      # So say no if there are warnings
8898      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8899      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8900      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8901        lt_cv_prog_compiler_c_o=yes
8902      fi
8903    fi
8904    chmod u+w . 2>&5
8905    $RM conftest*
8906    # SGI C++ compiler will create directory out/ii_files/ for
8907    # template instantiation
8908    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8909    $RM out/* && rmdir out
8910    cd ..
8911    $RM -r conftest
8912    $RM conftest*
8913
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8916 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8917
8918
8919
8920
8921 hard_links="nottested"
8922 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8923   # do not overwrite the value of need_locks provided by the user
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8925 $as_echo_n "checking if we can lock with hard links... " >&6; }
8926   hard_links=yes
8927   $RM conftest*
8928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8929   touch conftest.a
8930   ln conftest.a conftest.b 2>&5 || hard_links=no
8931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8933 $as_echo "$hard_links" >&6; }
8934   if test "$hard_links" = no; then
8935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8936 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8937     need_locks=warn
8938   fi
8939 else
8940   need_locks=no
8941 fi
8942
8943
8944
8945
8946
8947
8948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8949 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8950
8951   runpath_var=
8952   allow_undefined_flag=
8953   always_export_symbols=no
8954   archive_cmds=
8955   archive_expsym_cmds=
8956   compiler_needs_object=no
8957   enable_shared_with_static_runtimes=no
8958   export_dynamic_flag_spec=
8959   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8960   hardcode_automatic=no
8961   hardcode_direct=no
8962   hardcode_direct_absolute=no
8963   hardcode_libdir_flag_spec=
8964   hardcode_libdir_flag_spec_ld=
8965   hardcode_libdir_separator=
8966   hardcode_minus_L=no
8967   hardcode_shlibpath_var=unsupported
8968   inherit_rpath=no
8969   link_all_deplibs=unknown
8970   module_cmds=
8971   module_expsym_cmds=
8972   old_archive_from_new_cmds=
8973   old_archive_from_expsyms_cmds=
8974   thread_safe_flag_spec=
8975   whole_archive_flag_spec=
8976   # include_expsyms should be a list of space-separated symbols to be *always*
8977   # included in the symbol list
8978   include_expsyms=
8979   # exclude_expsyms can be an extended regexp of symbols to exclude
8980   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8981   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8982   # as well as any symbol that contains `d'.
8983   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8984   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8985   # platforms (ab)use it in PIC code, but their linkers get confused if
8986   # the symbol is explicitly referenced.  Since portable code cannot
8987   # rely on this symbol name, it's probably fine to never include it in
8988   # preloaded symbol tables.
8989   # Exclude shared library initialization/finalization symbols.
8990   extract_expsyms_cmds=
8991
8992   case $host_os in
8993   cygwin* | mingw* | pw32* | cegcc*)
8994     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8995     # When not using gcc, we currently assume that we are using
8996     # Microsoft Visual C++.
8997     if test "$GCC" != yes; then
8998       with_gnu_ld=no
8999     fi
9000     ;;
9001   interix*)
9002     # we just hope/assume this is gcc and not c89 (= MSVC++)
9003     with_gnu_ld=yes
9004     ;;
9005   openbsd*)
9006     with_gnu_ld=no
9007     ;;
9008   esac
9009
9010   ld_shlibs=yes
9011
9012   # On some targets, GNU ld is compatible enough with the native linker
9013   # that we're better off using the native interface for both.
9014   lt_use_gnu_ld_interface=no
9015   if test "$with_gnu_ld" = yes; then
9016     case $host_os in
9017       aix*)
9018         # The AIX port of GNU ld has always aspired to compatibility
9019         # with the native linker.  However, as the warning in the GNU ld
9020         # block says, versions before 2.19.5* couldn't really create working
9021         # shared libraries, regardless of the interface used.
9022         case `$LD -v 2>&1` in
9023           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9024           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9025           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9026           *)
9027             lt_use_gnu_ld_interface=yes
9028             ;;
9029         esac
9030         ;;
9031       *)
9032         lt_use_gnu_ld_interface=yes
9033         ;;
9034     esac
9035   fi
9036
9037   if test "$lt_use_gnu_ld_interface" = yes; then
9038     # If archive_cmds runs LD, not CC, wlarc should be empty
9039     wlarc='${wl}'
9040
9041     # Set some defaults for GNU ld with shared library support. These
9042     # are reset later if shared libraries are not supported. Putting them
9043     # here allows them to be overridden if necessary.
9044     runpath_var=LD_RUN_PATH
9045     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9046     export_dynamic_flag_spec='${wl}--export-dynamic'
9047     # ancient GNU ld didn't support --whole-archive et. al.
9048     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9049       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9050     else
9051       whole_archive_flag_spec=
9052     fi
9053     supports_anon_versioning=no
9054     case `$LD -v 2>&1` in
9055       *GNU\ gold*) supports_anon_versioning=yes ;;
9056       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9057       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9058       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9059       *\ 2.11.*) ;; # other 2.11 versions
9060       *) supports_anon_versioning=yes ;;
9061     esac
9062
9063     # See if GNU ld supports shared libraries.
9064     case $host_os in
9065     aix[3-9]*)
9066       # On AIX/PPC, the GNU linker is very broken
9067       if test "$host_cpu" != ia64; then
9068         ld_shlibs=no
9069         cat <<_LT_EOF 1>&2
9070
9071 *** Warning: the GNU linker, at least up to release 2.19, is reported
9072 *** to be unable to reliably create shared libraries on AIX.
9073 *** Therefore, libtool is disabling shared libraries support.  If you
9074 *** really care for shared libraries, you may want to install binutils
9075 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9076 *** You will then need to restart the configuration process.
9077
9078 _LT_EOF
9079       fi
9080       ;;
9081
9082     amigaos*)
9083       case $host_cpu in
9084       powerpc)
9085             # see comment about AmigaOS4 .so support
9086             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087             archive_expsym_cmds=''
9088         ;;
9089       m68k)
9090             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)'
9091             hardcode_libdir_flag_spec='-L$libdir'
9092             hardcode_minus_L=yes
9093         ;;
9094       esac
9095       ;;
9096
9097     beos*)
9098       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9099         allow_undefined_flag=unsupported
9100         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9101         # support --undefined.  This deserves some investigation.  FIXME
9102         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103       else
9104         ld_shlibs=no
9105       fi
9106       ;;
9107
9108     cygwin* | mingw* | pw32* | cegcc*)
9109       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9110       # as there is no search path for DLLs.
9111       hardcode_libdir_flag_spec='-L$libdir'
9112       export_dynamic_flag_spec='${wl}--export-all-symbols'
9113       allow_undefined_flag=unsupported
9114       always_export_symbols=no
9115       enable_shared_with_static_runtimes=yes
9116       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'
9117       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9118
9119       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9120         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9121         # If the export-symbols file already is a .def file (1st line
9122         # is EXPORTS), use it as is; otherwise, prepend...
9123         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9124           cp $export_symbols $output_objdir/$soname.def;
9125         else
9126           echo EXPORTS > $output_objdir/$soname.def;
9127           cat $export_symbols >> $output_objdir/$soname.def;
9128         fi~
9129         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9130       else
9131         ld_shlibs=no
9132       fi
9133       ;;
9134
9135     haiku*)
9136       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137       link_all_deplibs=yes
9138       ;;
9139
9140     interix[3-9]*)
9141       hardcode_direct=no
9142       hardcode_shlibpath_var=no
9143       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9144       export_dynamic_flag_spec='${wl}-E'
9145       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9146       # Instead, shared libraries are loaded at an image base (0x10000000 by
9147       # default) and relocated if they conflict, which is a slow very memory
9148       # consuming and fragmenting process.  To avoid this, we pick a random,
9149       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9150       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9151       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9152       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'
9153       ;;
9154
9155     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9156       tmp_diet=no
9157       if test "$host_os" = linux-dietlibc; then
9158         case $cc_basename in
9159           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9160         esac
9161       fi
9162       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9163          && test "$tmp_diet" = no
9164       then
9165         tmp_addflag=' $pic_flag'
9166         tmp_sharedflag='-shared'
9167         case $cc_basename,$host_cpu in
9168         pgcc*)                          # Portland Group C compiler
9169           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'
9170           tmp_addflag=' $pic_flag'
9171           ;;
9172         pgf77* | pgf90* | pgf95* | pgfortran*)
9173                                         # Portland Group f77 and f90 compilers
9174           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'
9175           tmp_addflag=' $pic_flag -Mnomain' ;;
9176         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9177           tmp_addflag=' -i_dynamic' ;;
9178         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9179           tmp_addflag=' -i_dynamic -nofor_main' ;;
9180         ifc* | ifort*)                  # Intel Fortran compiler
9181           tmp_addflag=' -nofor_main' ;;
9182         lf95*)                          # Lahey Fortran 8.1
9183           whole_archive_flag_spec=
9184           tmp_sharedflag='--shared' ;;
9185         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9186           tmp_sharedflag='-qmkshrobj'
9187           tmp_addflag= ;;
9188         nvcc*)  # Cuda Compiler Driver 2.2
9189           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'
9190           compiler_needs_object=yes
9191           ;;
9192         esac
9193         case `$CC -V 2>&1 | sed 5q` in
9194         *Sun\ C*)                       # Sun C 5.9
9195           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'
9196           compiler_needs_object=yes
9197           tmp_sharedflag='-G' ;;
9198         *Sun\ F*)                       # Sun Fortran 8.3
9199           tmp_sharedflag='-G' ;;
9200         esac
9201         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202
9203         if test "x$supports_anon_versioning" = xyes; then
9204           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9205             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9206             echo "local: *; };" >> $output_objdir/$libname.ver~
9207             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9208         fi
9209
9210         case $cc_basename in
9211         xlf* | bgf* | bgxlf* | mpixlf*)
9212           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9213           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9214           hardcode_libdir_flag_spec=
9215           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9216           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9217           if test "x$supports_anon_versioning" = xyes; then
9218             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9219               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220               echo "local: *; };" >> $output_objdir/$libname.ver~
9221               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9222           fi
9223           ;;
9224         esac
9225       else
9226         ld_shlibs=no
9227       fi
9228       ;;
9229
9230     netbsd*)
9231       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9232         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9233         wlarc=
9234       else
9235         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9236         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9237       fi
9238       ;;
9239
9240     solaris*)
9241       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9242         ld_shlibs=no
9243         cat <<_LT_EOF 1>&2
9244
9245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9246 *** create shared libraries on Solaris systems.  Therefore, libtool
9247 *** is disabling shared libraries support.  We urge you to upgrade GNU
9248 *** binutils to release 2.9.1 or newer.  Another option is to modify
9249 *** your PATH or compiler configuration so that the native linker is
9250 *** used, and then restart.
9251
9252 _LT_EOF
9253       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9254         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9256       else
9257         ld_shlibs=no
9258       fi
9259       ;;
9260
9261     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9262       case `$LD -v 2>&1` in
9263         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9264         ld_shlibs=no
9265         cat <<_LT_EOF 1>&2
9266
9267 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9268 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9269 *** is disabling shared libraries support.  We urge you to upgrade GNU
9270 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9271 *** your PATH or compiler configuration so that the native linker is
9272 *** used, and then restart.
9273
9274 _LT_EOF
9275         ;;
9276         *)
9277           # For security reasons, it is highly recommended that you always
9278           # use absolute paths for naming shared libraries, and exclude the
9279           # DT_RUNPATH tag from executables and libraries.  But doing so
9280           # requires that you compile everything twice, which is a pain.
9281           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285           else
9286             ld_shlibs=no
9287           fi
9288         ;;
9289       esac
9290       ;;
9291
9292     sunos4*)
9293       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9294       wlarc=
9295       hardcode_direct=yes
9296       hardcode_shlibpath_var=no
9297       ;;
9298
9299     *)
9300       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9301         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303       else
9304         ld_shlibs=no
9305       fi
9306       ;;
9307     esac
9308
9309     if test "$ld_shlibs" = no; then
9310       runpath_var=
9311       hardcode_libdir_flag_spec=
9312       export_dynamic_flag_spec=
9313       whole_archive_flag_spec=
9314     fi
9315   else
9316     # PORTME fill in a description of your system's linker (not GNU ld)
9317     case $host_os in
9318     aix3*)
9319       allow_undefined_flag=unsupported
9320       always_export_symbols=yes
9321       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'
9322       # Note: this linker hardcodes the directories in LIBPATH if there
9323       # are no directories specified by -L.
9324       hardcode_minus_L=yes
9325       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9326         # Neither direct hardcoding nor static linking is supported with a
9327         # broken collect2.
9328         hardcode_direct=unsupported
9329       fi
9330       ;;
9331
9332     aix[4-9]*)
9333       if test "$host_cpu" = ia64; then
9334         # On IA64, the linker does run time linking by default, so we don't
9335         # have to do anything special.
9336         aix_use_runtimelinking=no
9337         exp_sym_flag='-Bexport'
9338         no_entry_flag=""
9339       else
9340         # If we're using GNU nm, then we don't want the "-C" option.
9341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9342         # Also, AIX nm treats weak defined symbols like other global
9343         # defined symbols, whereas GNU nm marks them as "W".
9344         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9345           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9346         else
9347           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9348         fi
9349         aix_use_runtimelinking=no
9350
9351         # Test if we are trying to use run time linking or normal
9352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9353         # need to do runtime linking.
9354         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9355           for ld_flag in $LDFLAGS; do
9356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9357             aix_use_runtimelinking=yes
9358             break
9359           fi
9360           done
9361           ;;
9362         esac
9363
9364         exp_sym_flag='-bexport'
9365         no_entry_flag='-bnoentry'
9366       fi
9367
9368       # When large executables or shared objects are built, AIX ld can
9369       # have problems creating the table of contents.  If linking a library
9370       # or program results in "error TOC overflow" add -mminimal-toc to
9371       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9372       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9373
9374       archive_cmds=''
9375       hardcode_direct=yes
9376       hardcode_direct_absolute=yes
9377       hardcode_libdir_separator=':'
9378       link_all_deplibs=yes
9379       file_list_spec='${wl}-f,'
9380
9381       if test "$GCC" = yes; then
9382         case $host_os in aix4.[012]|aix4.[012].*)
9383         # We only want to do this on AIX 4.2 and lower, the check
9384         # below for broken collect2 doesn't work under 4.3+
9385           collect2name=`${CC} -print-prog-name=collect2`
9386           if test -f "$collect2name" &&
9387            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9388           then
9389           # We have reworked collect2
9390           :
9391           else
9392           # We have old collect2
9393           hardcode_direct=unsupported
9394           # It fails to find uninstalled libraries when the uninstalled
9395           # path is not listed in the libpath.  Setting hardcode_minus_L
9396           # to unsupported forces relinking
9397           hardcode_minus_L=yes
9398           hardcode_libdir_flag_spec='-L$libdir'
9399           hardcode_libdir_separator=
9400           fi
9401           ;;
9402         esac
9403         shared_flag='-shared'
9404         if test "$aix_use_runtimelinking" = yes; then
9405           shared_flag="$shared_flag "'${wl}-G'
9406         fi
9407       else
9408         # not using gcc
9409         if test "$host_cpu" = ia64; then
9410         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9411         # chokes on -Wl,-G. The following line is correct:
9412           shared_flag='-G'
9413         else
9414           if test "$aix_use_runtimelinking" = yes; then
9415             shared_flag='${wl}-G'
9416           else
9417             shared_flag='${wl}-bM:SRE'
9418           fi
9419         fi
9420       fi
9421
9422       export_dynamic_flag_spec='${wl}-bexpall'
9423       # It seems that -bexpall does not export symbols beginning with
9424       # underscore (_), so it is better to generate a list of symbols to export.
9425       always_export_symbols=yes
9426       if test "$aix_use_runtimelinking" = yes; then
9427         # Warning - without using the other runtime loading flags (-brtl),
9428         # -berok will link without error, but may produce a broken library.
9429         allow_undefined_flag='-berok'
9430         # Determine the default libpath from the value encoded in an
9431         # empty executable.
9432         if test "${lt_cv_aix_libpath+set}" = set; then
9433   aix_libpath=$lt_cv_aix_libpath
9434 else
9435   if ${lt_cv_aix_libpath_+:} false; then :
9436   $as_echo_n "(cached) " >&6
9437 else
9438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h.  */
9440
9441 int
9442 main ()
9443 {
9444
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450
9451   lt_aix_libpath_sed='
9452       /Import File Strings/,/^$/ {
9453           /^0/ {
9454               s/^0  *\([^ ]*\) *$/\1/
9455               p
9456           }
9457       }'
9458   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9459   # Check for a 64-bit object if we didn't find anything.
9460   if test -z "$lt_cv_aix_libpath_"; then
9461     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462   fi
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465     conftest$ac_exeext conftest.$ac_ext
9466   if test -z "$lt_cv_aix_libpath_"; then
9467     lt_cv_aix_libpath_="/usr/lib:/lib"
9468   fi
9469
9470 fi
9471
9472   aix_libpath=$lt_cv_aix_libpath_
9473 fi
9474
9475         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9476         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9477       else
9478         if test "$host_cpu" = ia64; then
9479           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9480           allow_undefined_flag="-z nodefs"
9481           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"
9482         else
9483          # Determine the default libpath from the value encoded in an
9484          # empty executable.
9485          if test "${lt_cv_aix_libpath+set}" = set; then
9486   aix_libpath=$lt_cv_aix_libpath
9487 else
9488   if ${lt_cv_aix_libpath_+:} false; then :
9489   $as_echo_n "(cached) " >&6
9490 else
9491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h.  */
9493
9494 int
9495 main ()
9496 {
9497
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503
9504   lt_aix_libpath_sed='
9505       /Import File Strings/,/^$/ {
9506           /^0/ {
9507               s/^0  *\([^ ]*\) *$/\1/
9508               p
9509           }
9510       }'
9511   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9512   # Check for a 64-bit object if we didn't find anything.
9513   if test -z "$lt_cv_aix_libpath_"; then
9514     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9515   fi
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518     conftest$ac_exeext conftest.$ac_ext
9519   if test -z "$lt_cv_aix_libpath_"; then
9520     lt_cv_aix_libpath_="/usr/lib:/lib"
9521   fi
9522
9523 fi
9524
9525   aix_libpath=$lt_cv_aix_libpath_
9526 fi
9527
9528          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9529           # Warning - without using the other run time loading flags,
9530           # -berok will link without error, but may produce a broken library.
9531           no_undefined_flag=' ${wl}-bernotok'
9532           allow_undefined_flag=' ${wl}-berok'
9533           if test "$with_gnu_ld" = yes; then
9534             # We only use this code for GNU lds that support --whole-archive.
9535             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9536           else
9537             # Exported symbols can be pulled into shared objects from archives
9538             whole_archive_flag_spec='$convenience'
9539           fi
9540           archive_cmds_need_lc=yes
9541           # This is similar to how AIX traditionally builds its shared libraries.
9542           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9543         fi
9544       fi
9545       ;;
9546
9547     amigaos*)
9548       case $host_cpu in
9549       powerpc)
9550             # see comment about AmigaOS4 .so support
9551             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552             archive_expsym_cmds=''
9553         ;;
9554       m68k)
9555             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)'
9556             hardcode_libdir_flag_spec='-L$libdir'
9557             hardcode_minus_L=yes
9558         ;;
9559       esac
9560       ;;
9561
9562     bsdi[45]*)
9563       export_dynamic_flag_spec=-rdynamic
9564       ;;
9565
9566     cygwin* | mingw* | pw32* | cegcc*)
9567       # When not using gcc, we currently assume that we are using
9568       # Microsoft Visual C++.
9569       # hardcode_libdir_flag_spec is actually meaningless, as there is
9570       # no search path for DLLs.
9571       case $cc_basename in
9572       cl*)
9573         # Native MSVC
9574         hardcode_libdir_flag_spec=' '
9575         allow_undefined_flag=unsupported
9576         always_export_symbols=yes
9577         file_list_spec='@'
9578         # Tell ltmain to make .lib files, not .a files.
9579         libext=lib
9580         # Tell ltmain to make .dll files, not .so files.
9581         shrext_cmds=".dll"
9582         # FIXME: Setting linknames here is a bad hack.
9583         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9584         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9585             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9586           else
9587             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9588           fi~
9589           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9590           linknames='
9591         # The linker will not automatically build a static lib if we build a DLL.
9592         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9593         enable_shared_with_static_runtimes=yes
9594         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9595         # Don't use ranlib
9596         old_postinstall_cmds='chmod 644 $oldlib'
9597         postlink_cmds='lt_outputfile="@OUTPUT@"~
9598           lt_tool_outputfile="@TOOL_OUTPUT@"~
9599           case $lt_outputfile in
9600             *.exe|*.EXE) ;;
9601             *)
9602               lt_outputfile="$lt_outputfile.exe"
9603               lt_tool_outputfile="$lt_tool_outputfile.exe"
9604               ;;
9605           esac~
9606           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9607             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9608             $RM "$lt_outputfile.manifest";
9609           fi'
9610         ;;
9611       *)
9612         # Assume MSVC wrapper
9613         hardcode_libdir_flag_spec=' '
9614         allow_undefined_flag=unsupported
9615         # Tell ltmain to make .lib files, not .a files.
9616         libext=lib
9617         # Tell ltmain to make .dll files, not .so files.
9618         shrext_cmds=".dll"
9619         # FIXME: Setting linknames here is a bad hack.
9620         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9621         # The linker will automatically build a .lib file if we build a DLL.
9622         old_archive_from_new_cmds='true'
9623         # FIXME: Should let the user specify the lib program.
9624         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9625         enable_shared_with_static_runtimes=yes
9626         ;;
9627       esac
9628       ;;
9629
9630     darwin* | rhapsody*)
9631
9632
9633   archive_cmds_need_lc=no
9634   hardcode_direct=no
9635   hardcode_automatic=yes
9636   hardcode_shlibpath_var=unsupported
9637   if test "$lt_cv_ld_force_load" = "yes"; then
9638     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\"`'
9639   else
9640     whole_archive_flag_spec=''
9641   fi
9642   link_all_deplibs=yes
9643   allow_undefined_flag="$_lt_dar_allow_undefined"
9644   case $cc_basename in
9645      ifort*) _lt_dar_can_shared=yes ;;
9646      *) _lt_dar_can_shared=$GCC ;;
9647   esac
9648   if test "$_lt_dar_can_shared" = "yes"; then
9649     output_verbose_link_cmd=func_echo_all
9650     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9651     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9652     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}"
9653     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}"
9654
9655   else
9656   ld_shlibs=no
9657   fi
9658
9659       ;;
9660
9661     dgux*)
9662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663       hardcode_libdir_flag_spec='-L$libdir'
9664       hardcode_shlibpath_var=no
9665       ;;
9666
9667     freebsd1*)
9668       ld_shlibs=no
9669       ;;
9670
9671     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9672     # support.  Future versions do this automatically, but an explicit c++rt0.o
9673     # does not break anything, and helps significantly (at the cost of a little
9674     # extra space).
9675     freebsd2.2*)
9676       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9677       hardcode_libdir_flag_spec='-R$libdir'
9678       hardcode_direct=yes
9679       hardcode_shlibpath_var=no
9680       ;;
9681
9682     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9683     freebsd2*)
9684       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9685       hardcode_direct=yes
9686       hardcode_minus_L=yes
9687       hardcode_shlibpath_var=no
9688       ;;
9689
9690     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9691     freebsd* | dragonfly*)
9692       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9693       hardcode_libdir_flag_spec='-R$libdir'
9694       hardcode_direct=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     hpux9*)
9699       if test "$GCC" = yes; then
9700         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9701       else
9702         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9703       fi
9704       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9705       hardcode_libdir_separator=:
9706       hardcode_direct=yes
9707
9708       # hardcode_minus_L: Not really in the search PATH,
9709       # but as the default location of the library.
9710       hardcode_minus_L=yes
9711       export_dynamic_flag_spec='${wl}-E'
9712       ;;
9713
9714     hpux10*)
9715       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9716         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9717       else
9718         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9719       fi
9720       if test "$with_gnu_ld" = no; then
9721         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9722         hardcode_libdir_flag_spec_ld='+b $libdir'
9723         hardcode_libdir_separator=:
9724         hardcode_direct=yes
9725         hardcode_direct_absolute=yes
9726         export_dynamic_flag_spec='${wl}-E'
9727         # hardcode_minus_L: Not really in the search PATH,
9728         # but as the default location of the library.
9729         hardcode_minus_L=yes
9730       fi
9731       ;;
9732
9733     hpux11*)
9734       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9735         case $host_cpu in
9736         hppa*64*)
9737           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9738           ;;
9739         ia64*)
9740           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9741           ;;
9742         *)
9743           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744           ;;
9745         esac
9746       else
9747         case $host_cpu in
9748         hppa*64*)
9749           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9750           ;;
9751         ia64*)
9752           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9753           ;;
9754         *)
9755
9756           # Older versions of the 11.00 compiler do not understand -b yet
9757           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9758           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9759 $as_echo_n "checking if $CC understands -b... " >&6; }
9760 if ${lt_cv_prog_compiler__b+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   lt_cv_prog_compiler__b=no
9764    save_LDFLAGS="$LDFLAGS"
9765    LDFLAGS="$LDFLAGS -b"
9766    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9767    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9768      # The linker can only warn and ignore the option if not recognized
9769      # So say no if there are warnings
9770      if test -s conftest.err; then
9771        # Append any errors to the config.log.
9772        cat conftest.err 1>&5
9773        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9774        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775        if diff conftest.exp conftest.er2 >/dev/null; then
9776          lt_cv_prog_compiler__b=yes
9777        fi
9778      else
9779        lt_cv_prog_compiler__b=yes
9780      fi
9781    fi
9782    $RM -r conftest*
9783    LDFLAGS="$save_LDFLAGS"
9784
9785 fi
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9787 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9788
9789 if test x"$lt_cv_prog_compiler__b" = xyes; then
9790     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 else
9792     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793 fi
9794
9795           ;;
9796         esac
9797       fi
9798       if test "$with_gnu_ld" = no; then
9799         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9800         hardcode_libdir_separator=:
9801
9802         case $host_cpu in
9803         hppa*64*|ia64*)
9804           hardcode_direct=no
9805           hardcode_shlibpath_var=no
9806           ;;
9807         *)
9808           hardcode_direct=yes
9809           hardcode_direct_absolute=yes
9810           export_dynamic_flag_spec='${wl}-E'
9811
9812           # hardcode_minus_L: Not really in the search PATH,
9813           # but as the default location of the library.
9814           hardcode_minus_L=yes
9815           ;;
9816         esac
9817       fi
9818       ;;
9819
9820     irix5* | irix6* | nonstopux*)
9821       if test "$GCC" = yes; then
9822         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'
9823         # Try to use the -exported_symbol ld option, if it does not
9824         # work, assume that -exports_file does not work either and
9825         # implicitly export all symbols.
9826         # This should be the same for all languages, so no per-tag cache variable.
9827         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9828 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9829 if ${lt_cv_irix_exported_symbol+:} false; then :
9830   $as_echo_n "(cached) " >&6
9831 else
9832   save_LDFLAGS="$LDFLAGS"
9833            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9834            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836 int foo (void) { return 0; }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"; then :
9839   lt_cv_irix_exported_symbol=yes
9840 else
9841   lt_cv_irix_exported_symbol=no
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844     conftest$ac_exeext conftest.$ac_ext
9845            LDFLAGS="$save_LDFLAGS"
9846 fi
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9848 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9849         if test "$lt_cv_irix_exported_symbol" = yes; then
9850           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'
9851         fi
9852       else
9853         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'
9854         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'
9855       fi
9856       archive_cmds_need_lc='no'
9857       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858       hardcode_libdir_separator=:
9859       inherit_rpath=yes
9860       link_all_deplibs=yes
9861       ;;
9862
9863     netbsd*)
9864       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9865         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9866       else
9867         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9868       fi
9869       hardcode_libdir_flag_spec='-R$libdir'
9870       hardcode_direct=yes
9871       hardcode_shlibpath_var=no
9872       ;;
9873
9874     newsos6)
9875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876       hardcode_direct=yes
9877       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878       hardcode_libdir_separator=:
9879       hardcode_shlibpath_var=no
9880       ;;
9881
9882     *nto* | *qnx*)
9883       ;;
9884
9885     openbsd*)
9886       if test -f /usr/libexec/ld.so; then
9887         hardcode_direct=yes
9888         hardcode_shlibpath_var=no
9889         hardcode_direct_absolute=yes
9890         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9891           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9892           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9893           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9894           export_dynamic_flag_spec='${wl}-E'
9895         else
9896           case $host_os in
9897            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9898              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9899              hardcode_libdir_flag_spec='-R$libdir'
9900              ;;
9901            *)
9902              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9904              ;;
9905           esac
9906         fi
9907       else
9908         ld_shlibs=no
9909       fi
9910       ;;
9911
9912     os2*)
9913       hardcode_libdir_flag_spec='-L$libdir'
9914       hardcode_minus_L=yes
9915       allow_undefined_flag=unsupported
9916       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9917       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9918       ;;
9919
9920     osf3*)
9921       if test "$GCC" = yes; then
9922         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9923         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'
9924       else
9925         allow_undefined_flag=' -expect_unresolved \*'
9926         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'
9927       fi
9928       archive_cmds_need_lc='no'
9929       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930       hardcode_libdir_separator=:
9931       ;;
9932
9933     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9934       if test "$GCC" = yes; then
9935         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9936         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'
9937         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9938       else
9939         allow_undefined_flag=' -expect_unresolved \*'
9940         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'
9941         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~
9942         $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'
9943
9944         # Both c and cxx compiler support -rpath directly
9945         hardcode_libdir_flag_spec='-rpath $libdir'
9946       fi
9947       archive_cmds_need_lc='no'
9948       hardcode_libdir_separator=:
9949       ;;
9950
9951     solaris*)
9952       no_undefined_flag=' -z defs'
9953       if test "$GCC" = yes; then
9954         wlarc='${wl}'
9955         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9957           $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'
9958       else
9959         case `$CC -V 2>&1` in
9960         *"Compilers 5.0"*)
9961           wlarc=''
9962           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9964           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9965           ;;
9966         *)
9967           wlarc='${wl}'
9968           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9969           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9970           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9971           ;;
9972         esac
9973       fi
9974       hardcode_libdir_flag_spec='-R$libdir'
9975       hardcode_shlibpath_var=no
9976       case $host_os in
9977       solaris2.[0-5] | solaris2.[0-5].*) ;;
9978       *)
9979         # The compiler driver will combine and reorder linker options,
9980         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9981         # but is careful enough not to reorder.
9982         # Supported since Solaris 2.6 (maybe 2.5.1?)
9983         if test "$GCC" = yes; then
9984           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9985         else
9986           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9987         fi
9988         ;;
9989       esac
9990       link_all_deplibs=yes
9991       ;;
9992
9993     sunos4*)
9994       if test "x$host_vendor" = xsequent; then
9995         # Use $CC to link under sequent, because it throws in some extra .o
9996         # files that make .init and .fini sections work.
9997         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9998       else
9999         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10000       fi
10001       hardcode_libdir_flag_spec='-L$libdir'
10002       hardcode_direct=yes
10003       hardcode_minus_L=yes
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     sysv4)
10008       case $host_vendor in
10009         sni)
10010           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011           hardcode_direct=yes # is this really true???
10012         ;;
10013         siemens)
10014           ## LD is ld it makes a PLAMLIB
10015           ## CC just makes a GrossModule.
10016           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10017           reload_cmds='$CC -r -o $output$reload_objs'
10018           hardcode_direct=no
10019         ;;
10020         motorola)
10021           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10023         ;;
10024       esac
10025       runpath_var='LD_RUN_PATH'
10026       hardcode_shlibpath_var=no
10027       ;;
10028
10029     sysv4.3*)
10030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031       hardcode_shlibpath_var=no
10032       export_dynamic_flag_spec='-Bexport'
10033       ;;
10034
10035     sysv4*MP*)
10036       if test -d /usr/nec; then
10037         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038         hardcode_shlibpath_var=no
10039         runpath_var=LD_RUN_PATH
10040         hardcode_runpath_var=yes
10041         ld_shlibs=yes
10042       fi
10043       ;;
10044
10045     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10046       no_undefined_flag='${wl}-z,text'
10047       archive_cmds_need_lc=no
10048       hardcode_shlibpath_var=no
10049       runpath_var='LD_RUN_PATH'
10050
10051       if test "$GCC" = yes; then
10052         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054       else
10055         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057       fi
10058       ;;
10059
10060     sysv5* | sco3.2v5* | sco5v6*)
10061       # Note: We can NOT use -z defs as we might desire, because we do not
10062       # link with -lc, and that would cause any symbols used from libc to
10063       # always be unresolved, which means just about no library would
10064       # ever link correctly.  If we're not using GNU ld we use -z text
10065       # though, which does catch some bad symbols but isn't as heavy-handed
10066       # as -z defs.
10067       no_undefined_flag='${wl}-z,text'
10068       allow_undefined_flag='${wl}-z,nodefs'
10069       archive_cmds_need_lc=no
10070       hardcode_shlibpath_var=no
10071       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10072       hardcode_libdir_separator=':'
10073       link_all_deplibs=yes
10074       export_dynamic_flag_spec='${wl}-Bexport'
10075       runpath_var='LD_RUN_PATH'
10076
10077       if test "$GCC" = yes; then
10078         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080       else
10081         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083       fi
10084       ;;
10085
10086     uts4*)
10087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088       hardcode_libdir_flag_spec='-L$libdir'
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     *)
10093       ld_shlibs=no
10094       ;;
10095     esac
10096
10097     if test x$host_vendor = xsni; then
10098       case $host in
10099       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10100         export_dynamic_flag_spec='${wl}-Blargedynsym'
10101         ;;
10102       esac
10103     fi
10104   fi
10105
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10107 $as_echo "$ld_shlibs" >&6; }
10108 test "$ld_shlibs" = no && can_build_shared=no
10109
10110 with_gnu_ld=$with_gnu_ld
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126 #
10127 # Do we need to explicitly link libc?
10128 #
10129 case "x$archive_cmds_need_lc" in
10130 x|xyes)
10131   # Assume -lc should be added
10132   archive_cmds_need_lc=yes
10133
10134   if test "$enable_shared" = yes && test "$GCC" = yes; then
10135     case $archive_cmds in
10136     *'~'*)
10137       # FIXME: we may have to deal with multi-command sequences.
10138       ;;
10139     '$CC '*)
10140       # Test whether the compiler implicitly links with -lc since on some
10141       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10142       # to ld, don't add -lc before -lgcc.
10143       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10144 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10145 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   $RM conftest*
10149         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10150
10151         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10152   (eval $ac_compile) 2>&5
10153   ac_status=$?
10154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10155   test $ac_status = 0; } 2>conftest.err; then
10156           soname=conftest
10157           lib=conftest
10158           libobjs=conftest.$ac_objext
10159           deplibs=
10160           wl=$lt_prog_compiler_wl
10161           pic_flag=$lt_prog_compiler_pic
10162           compiler_flags=-v
10163           linker_flags=-v
10164           verstring=
10165           output_objdir=.
10166           libname=conftest
10167           lt_save_allow_undefined_flag=$allow_undefined_flag
10168           allow_undefined_flag=
10169           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10170   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10171   ac_status=$?
10172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10173   test $ac_status = 0; }
10174           then
10175             lt_cv_archive_cmds_need_lc=no
10176           else
10177             lt_cv_archive_cmds_need_lc=yes
10178           fi
10179           allow_undefined_flag=$lt_save_allow_undefined_flag
10180         else
10181           cat conftest.err 1>&5
10182         fi
10183         $RM conftest*
10184
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10187 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10188       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10189       ;;
10190     esac
10191   fi
10192   ;;
10193 esac
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10353
10354 if test "$GCC" = yes; then
10355   case $host_os in
10356     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10357     *) lt_awk_arg="/^libraries:/" ;;
10358   esac
10359   case $host_os in
10360     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10361     *) lt_sed_strip_eq="s,=/,/,g" ;;
10362   esac
10363   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10364   case $lt_search_path_spec in
10365   *\;*)
10366     # if the path contains ";" then we assume it to be the separator
10367     # otherwise default to the standard path separator (i.e. ":") - it is
10368     # assumed that no part of a normal pathname contains ";" but that should
10369     # okay in the real world where ";" in dirpaths is itself problematic.
10370     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10371     ;;
10372   *)
10373     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10374     ;;
10375   esac
10376   # Ok, now we have the path, separated by spaces, we can step through it
10377   # and add multilib dir if necessary.
10378   lt_tmp_lt_search_path_spec=
10379   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10380   for lt_sys_path in $lt_search_path_spec; do
10381     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10382       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10383     else
10384       test -d "$lt_sys_path" && \
10385         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10386     fi
10387   done
10388   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10389 BEGIN {RS=" "; FS="/|\n";} {
10390   lt_foo="";
10391   lt_count=0;
10392   for (lt_i = NF; lt_i > 0; lt_i--) {
10393     if ($lt_i != "" && $lt_i != ".") {
10394       if ($lt_i == "..") {
10395         lt_count++;
10396       } else {
10397         if (lt_count == 0) {
10398           lt_foo="/" $lt_i lt_foo;
10399         } else {
10400           lt_count--;
10401         }
10402       }
10403     }
10404   }
10405   if (lt_foo != "") { lt_freq[lt_foo]++; }
10406   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10407 }'`
10408   # AWK program above erroneously prepends '/' to C:/dos/paths
10409   # for these hosts.
10410   case $host_os in
10411     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10412       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10413   esac
10414   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10415 else
10416   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10417 fi
10418 library_names_spec=
10419 libname_spec='lib$name'
10420 soname_spec=
10421 shrext_cmds=".so"
10422 postinstall_cmds=
10423 postuninstall_cmds=
10424 finish_cmds=
10425 finish_eval=
10426 shlibpath_var=
10427 shlibpath_overrides_runpath=unknown
10428 version_type=none
10429 dynamic_linker="$host_os ld.so"
10430 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10431 need_lib_prefix=unknown
10432 hardcode_into_libs=no
10433
10434 # when you set need_version to no, make sure it does not cause -set_version
10435 # flags to be left without arguments
10436 need_version=unknown
10437
10438 case $host_os in
10439 aix3*)
10440   version_type=linux
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10442   shlibpath_var=LIBPATH
10443
10444   # AIX 3 has no versioning support, so we append a major version to the name.
10445   soname_spec='${libname}${release}${shared_ext}$major'
10446   ;;
10447
10448 aix[4-9]*)
10449   version_type=linux
10450   need_lib_prefix=no
10451   need_version=no
10452   hardcode_into_libs=yes
10453   if test "$host_cpu" = ia64; then
10454     # AIX 5 supports IA64
10455     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10456     shlibpath_var=LD_LIBRARY_PATH
10457   else
10458     # With GCC up to 2.95.x, collect2 would create an import file
10459     # for dependence libraries.  The import file would start with
10460     # the line `#! .'.  This would cause the generated library to
10461     # depend on `.', always an invalid library.  This was fixed in
10462     # development snapshots of GCC prior to 3.0.
10463     case $host_os in
10464       aix4 | aix4.[01] | aix4.[01].*)
10465       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10466            echo ' yes '
10467            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10468         :
10469       else
10470         can_build_shared=no
10471       fi
10472       ;;
10473     esac
10474     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10475     # soname into executable. Probably we can add versioning support to
10476     # collect2, so additional links can be useful in future.
10477     if test "$aix_use_runtimelinking" = yes; then
10478       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10479       # instead of lib<name>.a to let people know that these are not
10480       # typical AIX shared libraries.
10481       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482     else
10483       # We preserve .a as extension for shared libraries through AIX4.2
10484       # and later when we are not doing run time linking.
10485       library_names_spec='${libname}${release}.a $libname.a'
10486       soname_spec='${libname}${release}${shared_ext}$major'
10487     fi
10488     shlibpath_var=LIBPATH
10489   fi
10490   ;;
10491
10492 amigaos*)
10493   case $host_cpu in
10494   powerpc)
10495     # Since July 2007 AmigaOS4 officially supports .so libraries.
10496     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498     ;;
10499   m68k)
10500     library_names_spec='$libname.ixlibrary $libname.a'
10501     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10502     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10503     ;;
10504   esac
10505   ;;
10506
10507 beos*)
10508   library_names_spec='${libname}${shared_ext}'
10509   dynamic_linker="$host_os ld.so"
10510   shlibpath_var=LIBRARY_PATH
10511   ;;
10512
10513 bsdi[45]*)
10514   version_type=linux
10515   need_version=no
10516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517   soname_spec='${libname}${release}${shared_ext}$major'
10518   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10519   shlibpath_var=LD_LIBRARY_PATH
10520   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10521   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10522   # the default ld.so.conf also contains /usr/contrib/lib and
10523   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10524   # libtool to hard-code these into programs
10525   ;;
10526
10527 cygwin* | mingw* | pw32* | cegcc*)
10528   version_type=windows
10529   shrext_cmds=".dll"
10530   need_version=no
10531   need_lib_prefix=no
10532
10533   case $GCC,$cc_basename in
10534   yes,*)
10535     # gcc
10536     library_names_spec='$libname.dll.a'
10537     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10538     postinstall_cmds='base_file=`basename \${file}`~
10539       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10540       dldir=$destdir/`dirname \$dlpath`~
10541       test -d \$dldir || mkdir -p \$dldir~
10542       $install_prog $dir/$dlname \$dldir/$dlname~
10543       chmod a+x \$dldir/$dlname~
10544       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10545         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10546       fi'
10547     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10548       dlpath=$dir/\$dldll~
10549        $RM \$dlpath'
10550     shlibpath_overrides_runpath=yes
10551
10552     case $host_os in
10553     cygwin*)
10554       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10555       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10556
10557       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10558       ;;
10559     mingw* | cegcc*)
10560       # MinGW DLLs use traditional 'lib' prefix
10561       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10562       ;;
10563     pw32*)
10564       # pw32 DLLs use 'pw' prefix rather than 'lib'
10565       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566       ;;
10567     esac
10568     dynamic_linker='Win32 ld.exe'
10569     ;;
10570
10571   *,cl*)
10572     # Native MSVC
10573     libname_spec='$name'
10574     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10575     library_names_spec='${libname}.dll.lib'
10576
10577     case $build_os in
10578     mingw*)
10579       sys_lib_search_path_spec=
10580       lt_save_ifs=$IFS
10581       IFS=';'
10582       for lt_path in $LIB
10583       do
10584         IFS=$lt_save_ifs
10585         # Let DOS variable expansion print the short 8.3 style file name.
10586         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10587         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10588       done
10589       IFS=$lt_save_ifs
10590       # Convert to MSYS style.
10591       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10592       ;;
10593     cygwin*)
10594       # Convert to unix form, then to dos form, then back to unix form
10595       # but this time dos style (no spaces!) so that the unix form looks
10596       # like /cygdrive/c/PROGRA~1:/cygdr...
10597       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10598       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10599       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10600       ;;
10601     *)
10602       sys_lib_search_path_spec="$LIB"
10603       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10604         # It is most probably a Windows format PATH.
10605         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10606       else
10607         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10608       fi
10609       # FIXME: find the short name or the path components, as spaces are
10610       # common. (e.g. "Program Files" -> "PROGRA~1")
10611       ;;
10612     esac
10613
10614     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10615     postinstall_cmds='base_file=`basename \${file}`~
10616       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10617       dldir=$destdir/`dirname \$dlpath`~
10618       test -d \$dldir || mkdir -p \$dldir~
10619       $install_prog $dir/$dlname \$dldir/$dlname'
10620     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10621       dlpath=$dir/\$dldll~
10622        $RM \$dlpath'
10623     shlibpath_overrides_runpath=yes
10624     dynamic_linker='Win32 link.exe'
10625     ;;
10626
10627   *)
10628     # Assume MSVC wrapper
10629     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10630     dynamic_linker='Win32 ld.exe'
10631     ;;
10632   esac
10633   # FIXME: first we should search . and the directory the executable is in
10634   shlibpath_var=PATH
10635   ;;
10636
10637 darwin* | rhapsody*)
10638   dynamic_linker="$host_os dyld"
10639   version_type=darwin
10640   need_lib_prefix=no
10641   need_version=no
10642   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10643   soname_spec='${libname}${release}${major}$shared_ext'
10644   shlibpath_overrides_runpath=yes
10645   shlibpath_var=DYLD_LIBRARY_PATH
10646   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10647
10648   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10649   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10650   ;;
10651
10652 dgux*)
10653   version_type=linux
10654   need_lib_prefix=no
10655   need_version=no
10656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10657   soname_spec='${libname}${release}${shared_ext}$major'
10658   shlibpath_var=LD_LIBRARY_PATH
10659   ;;
10660
10661 freebsd1*)
10662   dynamic_linker=no
10663   ;;
10664
10665 freebsd* | dragonfly*)
10666   # DragonFly does not have aout.  When/if they implement a new
10667   # versioning mechanism, adjust this.
10668   if test -x /usr/bin/objformat; then
10669     objformat=`/usr/bin/objformat`
10670   else
10671     case $host_os in
10672     freebsd[123]*) objformat=aout ;;
10673     *) objformat=elf ;;
10674     esac
10675   fi
10676   # Handle Gentoo/FreeBSD as it was Linux
10677   case $host_vendor in
10678     gentoo)
10679       version_type=linux ;;
10680     *)
10681       version_type=freebsd-$objformat ;;
10682   esac
10683
10684   case $version_type in
10685     freebsd-elf*)
10686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10687       need_version=no
10688       need_lib_prefix=no
10689       ;;
10690     freebsd-*)
10691       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10692       need_version=yes
10693       ;;
10694     linux)
10695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10696       soname_spec='${libname}${release}${shared_ext}$major'
10697       need_lib_prefix=no
10698       need_version=no
10699       ;;
10700   esac
10701   shlibpath_var=LD_LIBRARY_PATH
10702   case $host_os in
10703   freebsd2*)
10704     shlibpath_overrides_runpath=yes
10705     ;;
10706   freebsd3.[01]* | freebsdelf3.[01]*)
10707     shlibpath_overrides_runpath=yes
10708     hardcode_into_libs=yes
10709     ;;
10710   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10711   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10712     shlibpath_overrides_runpath=no
10713     hardcode_into_libs=yes
10714     ;;
10715   *) # from 4.6 on, and DragonFly
10716     shlibpath_overrides_runpath=yes
10717     hardcode_into_libs=yes
10718     ;;
10719   esac
10720   ;;
10721
10722 gnu*)
10723   version_type=linux
10724   need_lib_prefix=no
10725   need_version=no
10726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10727   soname_spec='${libname}${release}${shared_ext}$major'
10728   shlibpath_var=LD_LIBRARY_PATH
10729   hardcode_into_libs=yes
10730   ;;
10731
10732 haiku*)
10733   version_type=linux
10734   need_lib_prefix=no
10735   need_version=no
10736   dynamic_linker="$host_os runtime_loader"
10737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10738   soname_spec='${libname}${release}${shared_ext}$major'
10739   shlibpath_var=LIBRARY_PATH
10740   shlibpath_overrides_runpath=yes
10741   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10742   hardcode_into_libs=yes
10743   ;;
10744
10745 hpux9* | hpux10* | hpux11*)
10746   # Give a soname corresponding to the major version so that dld.sl refuses to
10747   # link against other versions.
10748   version_type=sunos
10749   need_lib_prefix=no
10750   need_version=no
10751   case $host_cpu in
10752   ia64*)
10753     shrext_cmds='.so'
10754     hardcode_into_libs=yes
10755     dynamic_linker="$host_os dld.so"
10756     shlibpath_var=LD_LIBRARY_PATH
10757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759     soname_spec='${libname}${release}${shared_ext}$major'
10760     if test "X$HPUX_IA64_MODE" = X32; then
10761       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10762     else
10763       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10764     fi
10765     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10766     ;;
10767   hppa*64*)
10768     shrext_cmds='.sl'
10769     hardcode_into_libs=yes
10770     dynamic_linker="$host_os dld.sl"
10771     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774     soname_spec='${libname}${release}${shared_ext}$major'
10775     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10777     ;;
10778   *)
10779     shrext_cmds='.sl'
10780     dynamic_linker="$host_os dld.sl"
10781     shlibpath_var=SHLIB_PATH
10782     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784     soname_spec='${libname}${release}${shared_ext}$major'
10785     ;;
10786   esac
10787   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10788   postinstall_cmds='chmod 555 $lib'
10789   # or fails outright, so override atomically:
10790   install_override_mode=555
10791   ;;
10792
10793 interix[3-9]*)
10794   version_type=linux
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10800   shlibpath_var=LD_LIBRARY_PATH
10801   shlibpath_overrides_runpath=no
10802   hardcode_into_libs=yes
10803   ;;
10804
10805 irix5* | irix6* | nonstopux*)
10806   case $host_os in
10807     nonstopux*) version_type=nonstopux ;;
10808     *)
10809         if test "$lt_cv_prog_gnu_ld" = yes; then
10810                 version_type=linux
10811         else
10812                 version_type=irix
10813         fi ;;
10814   esac
10815   need_lib_prefix=no
10816   need_version=no
10817   soname_spec='${libname}${release}${shared_ext}$major'
10818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10819   case $host_os in
10820   irix5* | nonstopux*)
10821     libsuff= shlibsuff=
10822     ;;
10823   *)
10824     case $LD in # libtool.m4 will add one of these switches to LD
10825     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10826       libsuff= shlibsuff= libmagic=32-bit;;
10827     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10828       libsuff=32 shlibsuff=N32 libmagic=N32;;
10829     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10830       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10831     *) libsuff= shlibsuff= libmagic=never-match;;
10832     esac
10833     ;;
10834   esac
10835   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10836   shlibpath_overrides_runpath=no
10837   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10838   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10839   hardcode_into_libs=yes
10840   ;;
10841
10842 # No shared lib support for Linux oldld, aout, or coff.
10843 linux*oldld* | linux*aout* | linux*coff*)
10844   dynamic_linker=no
10845   ;;
10846
10847 # This must be Linux ELF.
10848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10849   version_type=linux
10850   need_lib_prefix=no
10851   need_version=no
10852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853   soname_spec='${libname}${release}${shared_ext}$major'
10854   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   shlibpath_overrides_runpath=no
10857
10858   # Some binutils ld are patched to set DT_RUNPATH
10859   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   lt_cv_shlibpath_overrides_runpath=no
10863     save_LDFLAGS=$LDFLAGS
10864     save_libdir=$libdir
10865     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10866          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h.  */
10869
10870 int
10871 main ()
10872 {
10873
10874   ;
10875   return 0;
10876 }
10877 _ACEOF
10878 if ac_fn_c_try_link "$LINENO"; then :
10879   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10880   lt_cv_shlibpath_overrides_runpath=yes
10881 fi
10882 fi
10883 rm -f core conftest.err conftest.$ac_objext \
10884     conftest$ac_exeext conftest.$ac_ext
10885     LDFLAGS=$save_LDFLAGS
10886     libdir=$save_libdir
10887
10888 fi
10889
10890   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10891
10892   # This implies no fast_install, which is unacceptable.
10893   # Some rework will be needed to allow for fast_install
10894   # before this can be enabled.
10895   hardcode_into_libs=yes
10896
10897   # Append ld.so.conf contents to the search path
10898   if test -f /etc/ld.so.conf; then
10899     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' ' '`
10900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10901   fi
10902
10903   # We used to test for /lib/ld.so.1 and disable shared libraries on
10904   # powerpc, because MkLinux only supported shared libraries with the
10905   # GNU dynamic linker.  Since this was broken with cross compilers,
10906   # most powerpc-linux boxes support dynamic linking these days and
10907   # people can always --disable-shared, the test was removed, and we
10908   # assume the GNU/Linux dynamic linker is in use.
10909   dynamic_linker='GNU/Linux ld.so'
10910   ;;
10911
10912 netbsd*)
10913   version_type=sunos
10914   need_lib_prefix=no
10915   need_version=no
10916   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10918     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10919     dynamic_linker='NetBSD (a.out) ld.so'
10920   else
10921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10922     soname_spec='${libname}${release}${shared_ext}$major'
10923     dynamic_linker='NetBSD ld.elf_so'
10924   fi
10925   shlibpath_var=LD_LIBRARY_PATH
10926   shlibpath_overrides_runpath=yes
10927   hardcode_into_libs=yes
10928   ;;
10929
10930 newsos6)
10931   version_type=linux
10932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   shlibpath_overrides_runpath=yes
10935   ;;
10936
10937 *nto* | *qnx*)
10938   version_type=qnx
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   shlibpath_overrides_runpath=no
10945   hardcode_into_libs=yes
10946   dynamic_linker='ldqnx.so'
10947   ;;
10948
10949 openbsd*)
10950   version_type=sunos
10951   sys_lib_dlsearch_path_spec="/usr/lib"
10952   need_lib_prefix=no
10953   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10954   case $host_os in
10955     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10956     *)                          need_version=no  ;;
10957   esac
10958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10960   shlibpath_var=LD_LIBRARY_PATH
10961   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10962     case $host_os in
10963       openbsd2.[89] | openbsd2.[89].*)
10964         shlibpath_overrides_runpath=no
10965         ;;
10966       *)
10967         shlibpath_overrides_runpath=yes
10968         ;;
10969       esac
10970   else
10971     shlibpath_overrides_runpath=yes
10972   fi
10973   ;;
10974
10975 os2*)
10976   libname_spec='$name'
10977   shrext_cmds=".dll"
10978   need_lib_prefix=no
10979   library_names_spec='$libname${shared_ext} $libname.a'
10980   dynamic_linker='OS/2 ld.exe'
10981   shlibpath_var=LIBPATH
10982   ;;
10983
10984 osf3* | osf4* | osf5*)
10985   version_type=osf
10986   need_lib_prefix=no
10987   need_version=no
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990   shlibpath_var=LD_LIBRARY_PATH
10991   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10992   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10993   ;;
10994
10995 rdos*)
10996   dynamic_linker=no
10997   ;;
10998
10999 solaris*)
11000   version_type=linux
11001   need_lib_prefix=no
11002   need_version=no
11003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004   soname_spec='${libname}${release}${shared_ext}$major'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   shlibpath_overrides_runpath=yes
11007   hardcode_into_libs=yes
11008   # ldd complains unless libraries are executable
11009   postinstall_cmds='chmod +x $lib'
11010   ;;
11011
11012 sunos4*)
11013   version_type=sunos
11014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11015   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11016   shlibpath_var=LD_LIBRARY_PATH
11017   shlibpath_overrides_runpath=yes
11018   if test "$with_gnu_ld" = yes; then
11019     need_lib_prefix=no
11020   fi
11021   need_version=yes
11022   ;;
11023
11024 sysv4 | sysv4.3*)
11025   version_type=linux
11026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027   soname_spec='${libname}${release}${shared_ext}$major'
11028   shlibpath_var=LD_LIBRARY_PATH
11029   case $host_vendor in
11030     sni)
11031       shlibpath_overrides_runpath=no
11032       need_lib_prefix=no
11033       runpath_var=LD_RUN_PATH
11034       ;;
11035     siemens)
11036       need_lib_prefix=no
11037       ;;
11038     motorola)
11039       need_lib_prefix=no
11040       need_version=no
11041       shlibpath_overrides_runpath=no
11042       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11043       ;;
11044   esac
11045   ;;
11046
11047 sysv4*MP*)
11048   if test -d /usr/nec ;then
11049     version_type=linux
11050     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11051     soname_spec='$libname${shared_ext}.$major'
11052     shlibpath_var=LD_LIBRARY_PATH
11053   fi
11054   ;;
11055
11056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11057   version_type=freebsd-elf
11058   need_lib_prefix=no
11059   need_version=no
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11061   soname_spec='${libname}${release}${shared_ext}$major'
11062   shlibpath_var=LD_LIBRARY_PATH
11063   shlibpath_overrides_runpath=yes
11064   hardcode_into_libs=yes
11065   if test "$with_gnu_ld" = yes; then
11066     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11067   else
11068     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11069     case $host_os in
11070       sco3.2v5*)
11071         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11072         ;;
11073     esac
11074   fi
11075   sys_lib_dlsearch_path_spec='/usr/lib'
11076   ;;
11077
11078 tpf*)
11079   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11080   version_type=linux
11081   need_lib_prefix=no
11082   need_version=no
11083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084   shlibpath_var=LD_LIBRARY_PATH
11085   shlibpath_overrides_runpath=no
11086   hardcode_into_libs=yes
11087   ;;
11088
11089 uts4*)
11090   version_type=linux
11091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   shlibpath_var=LD_LIBRARY_PATH
11094   ;;
11095
11096 *)
11097   dynamic_linker=no
11098   ;;
11099 esac
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11101 $as_echo "$dynamic_linker" >&6; }
11102 test "$dynamic_linker" = no && can_build_shared=no
11103
11104 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11105 if test "$GCC" = yes; then
11106   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11107 fi
11108
11109 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11110   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11111 fi
11112 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11113   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11114 fi
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11208 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11209 hardcode_action=
11210 if test -n "$hardcode_libdir_flag_spec" ||
11211    test -n "$runpath_var" ||
11212    test "X$hardcode_automatic" = "Xyes" ; then
11213
11214   # We can hardcode non-existent directories.
11215   if test "$hardcode_direct" != no &&
11216      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11217      # have to relink, otherwise we might link with an installed library
11218      # when we should be linking with a yet-to-be-installed one
11219      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11220      test "$hardcode_minus_L" != no; then
11221     # Linking always hardcodes the temporary library directory.
11222     hardcode_action=relink
11223   else
11224     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11225     hardcode_action=immediate
11226   fi
11227 else
11228   # We cannot hardcode anything, or else we can only hardcode existing
11229   # directories.
11230   hardcode_action=unsupported
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11233 $as_echo "$hardcode_action" >&6; }
11234
11235 if test "$hardcode_action" = relink ||
11236    test "$inherit_rpath" = yes; then
11237   # Fast installation is not supported
11238   enable_fast_install=no
11239 elif test "$shlibpath_overrides_runpath" = yes ||
11240      test "$enable_shared" = no; then
11241   # Fast installation is not necessary
11242   enable_fast_install=needless
11243 fi
11244
11245
11246
11247
11248
11249
11250   if test "x$enable_dlopen" != xyes; then
11251   enable_dlopen=unknown
11252   enable_dlopen_self=unknown
11253   enable_dlopen_self_static=unknown
11254 else
11255   lt_cv_dlopen=no
11256   lt_cv_dlopen_libs=
11257
11258   case $host_os in
11259   beos*)
11260     lt_cv_dlopen="load_add_on"
11261     lt_cv_dlopen_libs=
11262     lt_cv_dlopen_self=yes
11263     ;;
11264
11265   mingw* | pw32* | cegcc*)
11266     lt_cv_dlopen="LoadLibrary"
11267     lt_cv_dlopen_libs=
11268     ;;
11269
11270   cygwin*)
11271     lt_cv_dlopen="dlopen"
11272     lt_cv_dlopen_libs=
11273     ;;
11274
11275   darwin*)
11276   # if libdl is installed we need to link against it
11277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11279 if ${ac_cv_lib_dl_dlopen+:} false; then :
11280   $as_echo_n "(cached) " >&6
11281 else
11282   ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-ldl  $LIBS"
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h.  */
11286
11287 /* Override any GCC internal prototype to avoid an error.
11288    Use char because int might match the return type of a GCC
11289    builtin and then its argument prototype would still apply.  */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 char dlopen ();
11294 int
11295 main ()
11296 {
11297 return dlopen ();
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303   ac_cv_lib_dl_dlopen=yes
11304 else
11305   ac_cv_lib_dl_dlopen=no
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308     conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11315 else
11316
11317     lt_cv_dlopen="dyld"
11318     lt_cv_dlopen_libs=
11319     lt_cv_dlopen_self=yes
11320
11321 fi
11322
11323     ;;
11324
11325   *)
11326     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11327 if test "x$ac_cv_func_shl_load" = xyes; then :
11328   lt_cv_dlopen="shl_load"
11329 else
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11331 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11332 if ${ac_cv_lib_dld_shl_load+:} false; then :
11333   $as_echo_n "(cached) " >&6
11334 else
11335   ac_check_lib_save_LIBS=$LIBS
11336 LIBS="-ldld  $LIBS"
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h.  */
11339
11340 /* Override any GCC internal prototype to avoid an error.
11341    Use char because int might match the return type of a GCC
11342    builtin and then its argument prototype would still apply.  */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char shl_load ();
11347 int
11348 main ()
11349 {
11350 return shl_load ();
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_link "$LINENO"; then :
11356   ac_cv_lib_dld_shl_load=yes
11357 else
11358   ac_cv_lib_dld_shl_load=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361     conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11365 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11366 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11367   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11368 else
11369   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11370 if test "x$ac_cv_func_dlopen" = xyes; then :
11371   lt_cv_dlopen="dlopen"
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11374 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11375 if ${ac_cv_lib_dl_dlopen+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-ldl  $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h.  */
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384    Use char because int might match the return type of a GCC
11385    builtin and then its argument prototype would still apply.  */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char dlopen ();
11390 int
11391 main ()
11392 {
11393 return dlopen ();
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399   ac_cv_lib_dl_dlopen=yes
11400 else
11401   ac_cv_lib_dl_dlopen=no
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404     conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11408 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11409 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11411 else
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11413 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11414 if ${ac_cv_lib_svld_dlopen+:} false; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   ac_check_lib_save_LIBS=$LIBS
11418 LIBS="-lsvld  $LIBS"
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421
11422 /* Override any GCC internal prototype to avoid an error.
11423    Use char because int might match the return type of a GCC
11424    builtin and then its argument prototype would still apply.  */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char dlopen ();
11429 int
11430 main ()
11431 {
11432 return dlopen ();
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 if ac_fn_c_try_link "$LINENO"; then :
11438   ac_cv_lib_svld_dlopen=yes
11439 else
11440   ac_cv_lib_svld_dlopen=no
11441 fi
11442 rm -f core conftest.err conftest.$ac_objext \
11443     conftest$ac_exeext conftest.$ac_ext
11444 LIBS=$ac_check_lib_save_LIBS
11445 fi
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11447 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11448 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11449   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11450 else
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11452 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11453 if ${ac_cv_lib_dld_dld_link+:} false; then :
11454   $as_echo_n "(cached) " >&6
11455 else
11456   ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldld  $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h.  */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462    Use char because int might match the return type of a GCC
11463    builtin and then its argument prototype would still apply.  */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char dld_link ();
11468 int
11469 main ()
11470 {
11471 return dld_link ();
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477   ac_cv_lib_dld_dld_link=yes
11478 else
11479   ac_cv_lib_dld_dld_link=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482     conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11486 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11487 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11488   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11489 fi
11490
11491
11492 fi
11493
11494
11495 fi
11496
11497
11498 fi
11499
11500
11501 fi
11502
11503
11504 fi
11505
11506     ;;
11507   esac
11508
11509   if test "x$lt_cv_dlopen" != xno; then
11510     enable_dlopen=yes
11511   else
11512     enable_dlopen=no
11513   fi
11514
11515   case $lt_cv_dlopen in
11516   dlopen)
11517     save_CPPFLAGS="$CPPFLAGS"
11518     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11519
11520     save_LDFLAGS="$LDFLAGS"
11521     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11522
11523     save_LIBS="$LIBS"
11524     LIBS="$lt_cv_dlopen_libs $LIBS"
11525
11526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11527 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11528 if ${lt_cv_dlopen_self+:} false; then :
11529   $as_echo_n "(cached) " >&6
11530 else
11531           if test "$cross_compiling" = yes; then :
11532   lt_cv_dlopen_self=cross
11533 else
11534   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11535   lt_status=$lt_dlunknown
11536   cat > conftest.$ac_ext <<_LT_EOF
11537 #line $LINENO "configure"
11538 #include "confdefs.h"
11539
11540 #if HAVE_DLFCN_H
11541 #include <dlfcn.h>
11542 #endif
11543
11544 #include <stdio.h>
11545
11546 #ifdef RTLD_GLOBAL
11547 #  define LT_DLGLOBAL           RTLD_GLOBAL
11548 #else
11549 #  ifdef DL_GLOBAL
11550 #    define LT_DLGLOBAL         DL_GLOBAL
11551 #  else
11552 #    define LT_DLGLOBAL         0
11553 #  endif
11554 #endif
11555
11556 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11557    find out it does not work in some platform. */
11558 #ifndef LT_DLLAZY_OR_NOW
11559 #  ifdef RTLD_LAZY
11560 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11561 #  else
11562 #    ifdef DL_LAZY
11563 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11564 #    else
11565 #      ifdef RTLD_NOW
11566 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11567 #      else
11568 #        ifdef DL_NOW
11569 #          define LT_DLLAZY_OR_NOW      DL_NOW
11570 #        else
11571 #          define LT_DLLAZY_OR_NOW      0
11572 #        endif
11573 #      endif
11574 #    endif
11575 #  endif
11576 #endif
11577
11578 /* When -fvisbility=hidden is used, assume the code has been annotated
11579    correspondingly for the symbols needed.  */
11580 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11581 int fnord () __attribute__((visibility("default")));
11582 #endif
11583
11584 int fnord () { return 42; }
11585 int main ()
11586 {
11587   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11588   int status = $lt_dlunknown;
11589
11590   if (self)
11591     {
11592       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11593       else
11594         {
11595           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11596           else puts (dlerror ());
11597         }
11598       /* dlclose (self); */
11599     }
11600   else
11601     puts (dlerror ());
11602
11603   return status;
11604 }
11605 _LT_EOF
11606   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11607   (eval $ac_link) 2>&5
11608   ac_status=$?
11609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11610   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11611     (./conftest; exit; ) >&5 2>/dev/null
11612     lt_status=$?
11613     case x$lt_status in
11614       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11615       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11616       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11617     esac
11618   else :
11619     # compilation failed
11620     lt_cv_dlopen_self=no
11621   fi
11622 fi
11623 rm -fr conftest*
11624
11625
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11628 $as_echo "$lt_cv_dlopen_self" >&6; }
11629
11630     if test "x$lt_cv_dlopen_self" = xyes; then
11631       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11633 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11634 if ${lt_cv_dlopen_self_static+:} false; then :
11635   $as_echo_n "(cached) " >&6
11636 else
11637           if test "$cross_compiling" = yes; then :
11638   lt_cv_dlopen_self_static=cross
11639 else
11640   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11641   lt_status=$lt_dlunknown
11642   cat > conftest.$ac_ext <<_LT_EOF
11643 #line $LINENO "configure"
11644 #include "confdefs.h"
11645
11646 #if HAVE_DLFCN_H
11647 #include <dlfcn.h>
11648 #endif
11649
11650 #include <stdio.h>
11651
11652 #ifdef RTLD_GLOBAL
11653 #  define LT_DLGLOBAL           RTLD_GLOBAL
11654 #else
11655 #  ifdef DL_GLOBAL
11656 #    define LT_DLGLOBAL         DL_GLOBAL
11657 #  else
11658 #    define LT_DLGLOBAL         0
11659 #  endif
11660 #endif
11661
11662 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11663    find out it does not work in some platform. */
11664 #ifndef LT_DLLAZY_OR_NOW
11665 #  ifdef RTLD_LAZY
11666 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11667 #  else
11668 #    ifdef DL_LAZY
11669 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11670 #    else
11671 #      ifdef RTLD_NOW
11672 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11673 #      else
11674 #        ifdef DL_NOW
11675 #          define LT_DLLAZY_OR_NOW      DL_NOW
11676 #        else
11677 #          define LT_DLLAZY_OR_NOW      0
11678 #        endif
11679 #      endif
11680 #    endif
11681 #  endif
11682 #endif
11683
11684 /* When -fvisbility=hidden is used, assume the code has been annotated
11685    correspondingly for the symbols needed.  */
11686 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11687 int fnord () __attribute__((visibility("default")));
11688 #endif
11689
11690 int fnord () { return 42; }
11691 int main ()
11692 {
11693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11694   int status = $lt_dlunknown;
11695
11696   if (self)
11697     {
11698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11699       else
11700         {
11701           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11702           else puts (dlerror ());
11703         }
11704       /* dlclose (self); */
11705     }
11706   else
11707     puts (dlerror ());
11708
11709   return status;
11710 }
11711 _LT_EOF
11712   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11713   (eval $ac_link) 2>&5
11714   ac_status=$?
11715   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11716   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11717     (./conftest; exit; ) >&5 2>/dev/null
11718     lt_status=$?
11719     case x$lt_status in
11720       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11721       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11722       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11723     esac
11724   else :
11725     # compilation failed
11726     lt_cv_dlopen_self_static=no
11727   fi
11728 fi
11729 rm -fr conftest*
11730
11731
11732 fi
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11734 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11735     fi
11736
11737     CPPFLAGS="$save_CPPFLAGS"
11738     LDFLAGS="$save_LDFLAGS"
11739     LIBS="$save_LIBS"
11740     ;;
11741   esac
11742
11743   case $lt_cv_dlopen_self in
11744   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11745   *) enable_dlopen_self=unknown ;;
11746   esac
11747
11748   case $lt_cv_dlopen_self_static in
11749   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11750   *) enable_dlopen_self_static=unknown ;;
11751   esac
11752 fi
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770 striplib=
11771 old_striplib=
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11773 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11774 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11775   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11776   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778 $as_echo "yes" >&6; }
11779 else
11780 # FIXME - insert some real tests, host_os isn't really good enough
11781   case $host_os in
11782   darwin*)
11783     if test -n "$STRIP" ; then
11784       striplib="$STRIP -x"
11785       old_striplib="$STRIP -S"
11786       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11787 $as_echo "yes" >&6; }
11788     else
11789       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11791     fi
11792     ;;
11793   *)
11794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11796     ;;
11797   esac
11798 fi
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811   # Report which library types will actually be built
11812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11813 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11815 $as_echo "$can_build_shared" >&6; }
11816
11817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11818 $as_echo_n "checking whether to build shared libraries... " >&6; }
11819   test "$can_build_shared" = "no" && enable_shared=no
11820
11821   # On AIX, shared libraries and static libraries use the same namespace, and
11822   # are all built from PIC.
11823   case $host_os in
11824   aix3*)
11825     test "$enable_shared" = yes && enable_static=no
11826     if test -n "$RANLIB"; then
11827       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11828       postinstall_cmds='$RANLIB $lib'
11829     fi
11830     ;;
11831
11832   aix[4-9]*)
11833     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11834       test "$enable_shared" = yes && enable_static=no
11835     fi
11836     ;;
11837   esac
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11839 $as_echo "$enable_shared" >&6; }
11840
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11842 $as_echo_n "checking whether to build static libraries... " >&6; }
11843   # Make sure either enable_shared or enable_static is yes.
11844   test "$enable_shared" = yes || enable_static=yes
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11846 $as_echo "$enable_static" >&6; }
11847
11848
11849
11850
11851 fi
11852 ac_ext=c
11853 ac_cpp='$CPP $CPPFLAGS'
11854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11857
11858 CC="$lt_save_CC"
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872         ac_config_commands="$ac_config_commands libtool"
11873
11874
11875
11876
11877 # Only expand once:
11878
11879
11880
11881 GST_REQ=0.10.31
11882 ORC_REQ=0.4.6
11883
11884
11885
11886
11887 # Check whether --with-autoconf was given.
11888 if test "${with_autoconf+set}" = set; then :
11889   withval=$with_autoconf;
11890       unset AUTOCONF
11891
11892 AUTOCONF=${AUTOCONF-"${am_missing_run}${withval}"}
11893
11894       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOCONF as autoconf" >&5
11895 $as_echo "$as_me: Using $AUTOCONF as autoconf" >&6;}
11896
11897 fi
11898
11899
11900
11901 # Check whether --with-autoheader was given.
11902 if test "${with_autoheader+set}" = set; then :
11903   withval=$with_autoheader;
11904       unset AUTOHEADER
11905
11906 AUTOHEADER=${AUTOHEADER-"${am_missing_run}${withval}"}
11907
11908       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOHEADER as autoheader" >&5
11909 $as_echo "$as_me: Using $AUTOHEADER as autoheader" >&6;}
11910
11911 fi
11912
11913
11914
11915 # Check whether --with-automake was given.
11916 if test "${with_automake+set}" = set; then :
11917   withval=$with_automake;
11918       unset AUTOMAKE
11919
11920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}${withval}"}
11921
11922       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOMAKE as automake" >&5
11923 $as_echo "$as_me: Using $AUTOMAKE as automake" >&6;}
11924
11925 fi
11926
11927
11928
11929 # Check whether --with-aclocal was given.
11930 if test "${with_aclocal+set}" = set; then :
11931   withval=$with_aclocal;
11932       unset ACLOCAL
11933
11934 ACLOCAL=${ACLOCAL-"${am_missing_run}${withval}"}
11935
11936       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $ACLOCAL as aclocal" >&5
11937 $as_echo "$as_me: Using $ACLOCAL as aclocal" >&6;}
11938
11939 fi
11940
11941
11942
11943 ACLOCAL_AMFLAGS="-I m4 -I common/m4"
11944
11945
11946
11947
11948
11949 # Check whether --with-pkg-config-path was given.
11950 if test "${with_pkg_config_path+set}" = set; then :
11951   withval=$with_pkg_config_path;
11952        export PKG_CONFIG_PATH=${withval}
11953        { $as_echo "$as_me:${as_lineno-$LINENO}: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&5
11954 $as_echo "$as_me: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&6;}
11955
11956 fi
11957
11958
11959
11960
11961 # Check whether --with-package-name was given.
11962 if test "${with_package_name+set}" = set; then :
11963   withval=$with_package_name;
11964       case "${withval}" in
11965         yes) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
11966         no)  as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
11967         *)   GST_PACKAGE_NAME="${withval}" ;;
11968       esac
11969
11970 else
11971
11972       P=
11973       if test "x$P" = "x"
11974       then
11975         P=$PACKAGE_NAME
11976       fi
11977
11978       if test "x$PACKAGE_VERSION_NANO" = "x0"
11979       then
11980         GST_PACKAGE_NAME="$P source release"
11981       else
11982         if test "x$PACKAGE_VERSION_NANO" = "x1"
11983         then
11984           GST_PACKAGE_NAME="$P git"
11985         else
11986           GST_PACKAGE_NAME="$P prerelease"
11987         fi
11988       fi
11989
11990
11991 fi
11992
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_NAME as package name" >&5
11994 $as_echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
11995
11996 cat >>confdefs.h <<_ACEOF
11997 #define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
11998 _ACEOF
11999
12000
12001
12002
12003
12004 # Check whether --with-package-origin was given.
12005 if test "${with_package_origin+set}" = set; then :
12006   withval=$with_package_origin;
12007       case "${withval}" in
12008         yes) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
12009         no)  as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
12010         *)   GST_PACKAGE_ORIGIN="${withval}" ;;
12011       esac
12012
12013 else
12014   GST_PACKAGE_ORIGIN="Unknown package origin"
12015 fi
12016
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_ORIGIN as package origin" >&5
12018 $as_echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
12019
12020 cat >>confdefs.h <<_ACEOF
12021 #define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
12022 _ACEOF
12023
12024
12025
12026
12027
12028 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12029         if test -n "$ac_tool_prefix"; then
12030   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12035   $as_echo_n "(cached) " >&6
12036 else
12037   case $PKG_CONFIG in
12038   [\\/]* | ?:[\\/]*)
12039   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12040   ;;
12041   *)
12042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054   done
12055 IFS=$as_save_IFS
12056
12057   ;;
12058 esac
12059 fi
12060 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12061 if test -n "$PKG_CONFIG"; then
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12063 $as_echo "$PKG_CONFIG" >&6; }
12064 else
12065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066 $as_echo "no" >&6; }
12067 fi
12068
12069
12070 fi
12071 if test -z "$ac_cv_path_PKG_CONFIG"; then
12072   ac_pt_PKG_CONFIG=$PKG_CONFIG
12073   # Extract the first word of "pkg-config", so it can be a program name with args.
12074 set dummy pkg-config; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12078   $as_echo_n "(cached) " >&6
12079 else
12080   case $ac_pt_PKG_CONFIG in
12081   [\\/]* | ?:[\\/]*)
12082   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12083   ;;
12084   *)
12085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086 for as_dir in $PATH
12087 do
12088   IFS=$as_save_IFS
12089   test -z "$as_dir" && as_dir=.
12090     for ac_exec_ext in '' $ac_executable_extensions; do
12091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12092     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094     break 2
12095   fi
12096 done
12097   done
12098 IFS=$as_save_IFS
12099
12100   ;;
12101 esac
12102 fi
12103 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12104 if test -n "$ac_pt_PKG_CONFIG"; then
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12106 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12107 else
12108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110 fi
12111
12112   if test "x$ac_pt_PKG_CONFIG" = x; then
12113     PKG_CONFIG=""
12114   else
12115     case $cross_compiling:$ac_tool_warned in
12116 yes:)
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12119 ac_tool_warned=yes ;;
12120 esac
12121     PKG_CONFIG=$ac_pt_PKG_CONFIG
12122   fi
12123 else
12124   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12125 fi
12126
12127 fi
12128 if test -n "$PKG_CONFIG"; then
12129         _pkg_min_version=0.9.0
12130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12131 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12132         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12133                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12134 $as_echo "yes" >&6; }
12135         else
12136                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12138                 PKG_CONFIG=""
12139         fi
12140
12141 fi
12142
12143     # Check whether --enable-valgrind was given.
12144 if test "${enable_valgrind+set}" = set; then :
12145   enableval=$enable_valgrind;
12146       case "${enableval}" in
12147         yes) USE_VALGRIND="$USE_DEBUG" ;;
12148         no)  USE_VALGRIND=no ;;
12149         *)   as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
12150       esac
12151
12152 else
12153   USE_VALGRIND="$USE_DEBUG"
12154 fi
12155    VALGRIND_REQ="3.0"
12156   if test "x$USE_VALGRIND" = xyes; then
12157
12158 pkg_failed=no
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
12160 $as_echo_n "checking for VALGRIND... " >&6; }
12161
12162 if test -n "$PKG_CONFIG"; then
12163     if test -n "$VALGRIND_CFLAGS"; then
12164         pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
12165     else
12166         if test -n "$PKG_CONFIG" && \
12167     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
12168   ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
12169   ac_status=$?
12170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12171   test $ac_status = 0; }; then
12172   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= $VALGRIND_REQ" 2>/dev/null`
12173 else
12174   pkg_failed=yes
12175 fi
12176     fi
12177 else
12178         pkg_failed=untried
12179 fi
12180 if test -n "$PKG_CONFIG"; then
12181     if test -n "$VALGRIND_LIBS"; then
12182         pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
12183     else
12184         if test -n "$PKG_CONFIG" && \
12185     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
12186   ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
12187   ac_status=$?
12188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189   test $ac_status = 0; }; then
12190   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= $VALGRIND_REQ" 2>/dev/null`
12191 else
12192   pkg_failed=yes
12193 fi
12194     fi
12195 else
12196         pkg_failed=untried
12197 fi
12198
12199
12200
12201 if test $pkg_failed = yes; then
12202
12203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12204         _pkg_short_errors_supported=yes
12205 else
12206         _pkg_short_errors_supported=no
12207 fi
12208         if test $_pkg_short_errors_supported = yes; then
12209                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
12210         else
12211                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
12212         fi
12213         # Put the nasty error message in config.log where it belongs
12214         echo "$VALGRIND_PKG_ERRORS" >&5
12215
12216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218                 USE_VALGRIND="no"
12219 elif test $pkg_failed = untried; then
12220         USE_VALGRIND="no"
12221 else
12222         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
12223         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
12224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12226         USE_VALGRIND="yes"
12227 fi
12228   fi
12229   if test "x$USE_VALGRIND" = xyes; then
12230
12231 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
12232
12233     { $as_echo "$as_me:${as_lineno-$LINENO}: Using extra code paths for valgrind" >&5
12234 $as_echo "$as_me: Using extra code paths for valgrind" >&6;}
12235   fi
12236
12237
12238
12239
12240
12241
12242     case "x${host_cpu}" in
12243     xi?86 | xk? | xi?86_64)
12244       case $host_os in
12245          solaris*)
12246             ac_fn_c_check_decl "$LINENO" "__i386" "ac_cv_have_decl___i386" "$ac_includes_default"
12247 if test "x$ac_cv_have_decl___i386" = xyes; then :
12248   I386_ABI="yes"
12249 else
12250   I386_ABI="no"
12251 fi
12252
12253             ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default"
12254 if test "x$ac_cv_have_decl___amd64" = xyes; then :
12255   AMD64_ABI="yes"
12256 else
12257   AMD64_ABI="no"
12258 fi
12259
12260
12261             if test "x$I386_ABI" = "xyes" ; then
12262                HAVE_CPU_I386=yes
12263
12264 $as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
12265
12266             fi
12267             if test "x$AMD64_ABI" = "xyes" ; then
12268                 HAVE_CPU_X86_64=yes
12269
12270 $as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
12271
12272             fi
12273             ;;
12274          *)
12275             HAVE_CPU_I386=yes
12276
12277 $as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
12278
12279
12280                                     case "x${host_cpu}" in
12281               xi386 | xi486) ;;
12282             *)
12283
12284 $as_echo "#define HAVE_RDTSC 1" >>confdefs.h
12285  ;;
12286             esac
12287             ;;
12288       esac
12289       ;;
12290     xpowerpc)
12291       HAVE_CPU_PPC=yes
12292
12293 $as_echo "#define HAVE_CPU_PPC 1" >>confdefs.h
12294  ;;
12295     xpowerpc64)
12296       HAVE_CPU_PPC64=yes
12297
12298 $as_echo "#define HAVE_CPU_PPC64 1" >>confdefs.h
12299  ;;
12300     xalpha*)
12301       HAVE_CPU_ALPHA=yes
12302
12303 $as_echo "#define HAVE_CPU_ALPHA 1" >>confdefs.h
12304  ;;
12305     xarm*)
12306       HAVE_CPU_ARM=yes
12307
12308 $as_echo "#define HAVE_CPU_ARM 1" >>confdefs.h
12309  ;;
12310     xsparc*)
12311       HAVE_CPU_SPARC=yes
12312
12313 $as_echo "#define HAVE_CPU_SPARC 1" >>confdefs.h
12314  ;;
12315     xmips*)
12316       HAVE_CPU_MIPS=yes
12317
12318 $as_echo "#define HAVE_CPU_MIPS 1" >>confdefs.h
12319  ;;
12320     xhppa*)
12321       HAVE_CPU_HPPA=yes
12322
12323 $as_echo "#define HAVE_CPU_HPPA 1" >>confdefs.h
12324  ;;
12325     xs390*)
12326       HAVE_CPU_S390=yes
12327
12328 $as_echo "#define HAVE_CPU_S390 1" >>confdefs.h
12329  ;;
12330     xia64*)
12331       HAVE_CPU_IA64=yes
12332
12333 $as_echo "#define HAVE_CPU_IA64 1" >>confdefs.h
12334  ;;
12335     xm68k*)
12336       HAVE_CPU_M68K=yes
12337
12338 $as_echo "#define HAVE_CPU_M68K 1" >>confdefs.h
12339  ;;
12340     xx86_64)
12341       HAVE_CPU_X86_64=yes
12342
12343 $as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
12344  ;;
12345     xcris)
12346       HAVE_CPU_CRIS=yes
12347
12348 $as_echo "#define HAVE_CPU_CRIS 1" >>confdefs.h
12349  ;;
12350     xcrisv32)
12351       HAVE_CPU_CRISV32=yes
12352
12353 $as_echo "#define HAVE_CPU_CRISV32 1" >>confdefs.h
12354  ;;
12355   esac
12356
12357      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12358 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12359 if ${ac_cv_c_bigendian+:} false; then :
12360   $as_echo_n "(cached) " >&6
12361 else
12362   ac_cv_c_bigendian=unknown
12363     # See if we're dealing with a universal compiler.
12364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h.  */
12366 #ifndef __APPLE_CC__
12367                not a universal capable compiler
12368              #endif
12369              typedef int dummy;
12370
12371 _ACEOF
12372 if ac_fn_c_try_compile "$LINENO"; then :
12373
12374         # Check for potential -arch flags.  It is not universal unless
12375         # there are at least two -arch flags with different values.
12376         ac_arch=
12377         ac_prev=
12378         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12379          if test -n "$ac_prev"; then
12380            case $ac_word in
12381              i?86 | x86_64 | ppc | ppc64)
12382                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12383                  ac_arch=$ac_word
12384                else
12385                  ac_cv_c_bigendian=universal
12386                  break
12387                fi
12388                ;;
12389            esac
12390            ac_prev=
12391          elif test "x$ac_word" = "x-arch"; then
12392            ac_prev=arch
12393          fi
12394        done
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397     if test $ac_cv_c_bigendian = unknown; then
12398       # See if sys/param.h defines the BYTE_ORDER macro.
12399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h.  */
12401 #include <sys/types.h>
12402              #include <sys/param.h>
12403
12404 int
12405 main ()
12406 {
12407 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12408                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12409                      && LITTLE_ENDIAN)
12410               bogus endian macros
12411              #endif
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_compile "$LINENO"; then :
12418   # It does; now see whether it defined to BIG_ENDIAN or not.
12419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421 #include <sys/types.h>
12422                 #include <sys/param.h>
12423
12424 int
12425 main ()
12426 {
12427 #if BYTE_ORDER != BIG_ENDIAN
12428                  not big endian
12429                 #endif
12430
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 if ac_fn_c_try_compile "$LINENO"; then :
12436   ac_cv_c_bigendian=yes
12437 else
12438   ac_cv_c_bigendian=no
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443     fi
12444     if test $ac_cv_c_bigendian = unknown; then
12445       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12446       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448 #include <limits.h>
12449
12450 int
12451 main ()
12452 {
12453 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12454               bogus endian macros
12455              #endif
12456
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462   # It does; now see whether it defined to _BIG_ENDIAN or not.
12463          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465 #include <limits.h>
12466
12467 int
12468 main ()
12469 {
12470 #ifndef _BIG_ENDIAN
12471                  not big endian
12472                 #endif
12473
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_c_try_compile "$LINENO"; then :
12479   ac_cv_c_bigendian=yes
12480 else
12481   ac_cv_c_bigendian=no
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486     fi
12487     if test $ac_cv_c_bigendian = unknown; then
12488       # Compile a test program.
12489       if test "$cross_compiling" = yes; then :
12490   # Try to guess by grepping values from an object file.
12491          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h.  */
12493 short int ascii_mm[] =
12494                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12495                 short int ascii_ii[] =
12496                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12497                 int use_ascii (int i) {
12498                   return ascii_mm[i] + ascii_ii[i];
12499                 }
12500                 short int ebcdic_ii[] =
12501                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12502                 short int ebcdic_mm[] =
12503                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12504                 int use_ebcdic (int i) {
12505                   return ebcdic_mm[i] + ebcdic_ii[i];
12506                 }
12507                 extern int foo;
12508
12509 int
12510 main ()
12511 {
12512 return use_ascii (foo) == use_ebcdic (foo);
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_compile "$LINENO"; then :
12518   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12519               ac_cv_c_bigendian=yes
12520             fi
12521             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12522               if test "$ac_cv_c_bigendian" = unknown; then
12523                 ac_cv_c_bigendian=no
12524               else
12525                 # finding both strings is unlikely to happen, but who knows?
12526                 ac_cv_c_bigendian=unknown
12527               fi
12528             fi
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531 else
12532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h.  */
12534 $ac_includes_default
12535 int
12536 main ()
12537 {
12538
12539              /* Are we little or big endian?  From Harbison&Steele.  */
12540              union
12541              {
12542                long int l;
12543                char c[sizeof (long int)];
12544              } u;
12545              u.l = 1;
12546              return u.c[sizeof (long int) - 1] == 1;
12547
12548   ;
12549   return 0;
12550 }
12551 _ACEOF
12552 if ac_fn_c_try_run "$LINENO"; then :
12553   ac_cv_c_bigendian=no
12554 else
12555   ac_cv_c_bigendian=yes
12556 fi
12557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12558   conftest.$ac_objext conftest.beam conftest.$ac_ext
12559 fi
12560
12561     fi
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12564 $as_echo "$ac_cv_c_bigendian" >&6; }
12565  case $ac_cv_c_bigendian in #(
12566    yes)
12567      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12568 ;; #(
12569    no)
12570       ;; #(
12571    universal)
12572
12573 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12574
12575      ;; #(
12576    *)
12577      as_fn_error $? "unknown endianness
12578  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12579  esac
12580
12581
12582    if test "x$HAVE_CPU_I386" = "xyes"; then
12583   HAVE_CPU_I386_TRUE=
12584   HAVE_CPU_I386_FALSE='#'
12585 else
12586   HAVE_CPU_I386_TRUE='#'
12587   HAVE_CPU_I386_FALSE=
12588 fi
12589
12590    if test "x$HAVE_CPU_PPC" = "xyes"; then
12591   HAVE_CPU_PPC_TRUE=
12592   HAVE_CPU_PPC_FALSE='#'
12593 else
12594   HAVE_CPU_PPC_TRUE='#'
12595   HAVE_CPU_PPC_FALSE=
12596 fi
12597
12598    if test "x$HAVE_CPU_PPC64" = "xyes"; then
12599   HAVE_CPU_PPC64_TRUE=
12600   HAVE_CPU_PPC64_FALSE='#'
12601 else
12602   HAVE_CPU_PPC64_TRUE='#'
12603   HAVE_CPU_PPC64_FALSE=
12604 fi
12605
12606    if test "x$HAVE_CPU_ALPHA" = "xyes"; then
12607   HAVE_CPU_ALPHA_TRUE=
12608   HAVE_CPU_ALPHA_FALSE='#'
12609 else
12610   HAVE_CPU_ALPHA_TRUE='#'
12611   HAVE_CPU_ALPHA_FALSE=
12612 fi
12613
12614    if test "x$HAVE_CPU_ARM" = "xyes"; then
12615   HAVE_CPU_ARM_TRUE=
12616   HAVE_CPU_ARM_FALSE='#'
12617 else
12618   HAVE_CPU_ARM_TRUE='#'
12619   HAVE_CPU_ARM_FALSE=
12620 fi
12621
12622    if test "x$HAVE_CPU_SPARC" = "xyes"; then
12623   HAVE_CPU_SPARC_TRUE=
12624   HAVE_CPU_SPARC_FALSE='#'
12625 else
12626   HAVE_CPU_SPARC_TRUE='#'
12627   HAVE_CPU_SPARC_FALSE=
12628 fi
12629
12630    if test "x$HAVE_CPU_HPPA" = "xyes"; then
12631   HAVE_CPU_HPPA_TRUE=
12632   HAVE_CPU_HPPA_FALSE='#'
12633 else
12634   HAVE_CPU_HPPA_TRUE='#'
12635   HAVE_CPU_HPPA_FALSE=
12636 fi
12637
12638    if test "x$HAVE_CPU_MIPS" = "xyes"; then
12639   HAVE_CPU_MIPS_TRUE=
12640   HAVE_CPU_MIPS_FALSE='#'
12641 else
12642   HAVE_CPU_MIPS_TRUE='#'
12643   HAVE_CPU_MIPS_FALSE=
12644 fi
12645
12646    if test "x$HAVE_CPU_S390" = "xyes"; then
12647   HAVE_CPU_S390_TRUE=
12648   HAVE_CPU_S390_FALSE='#'
12649 else
12650   HAVE_CPU_S390_TRUE='#'
12651   HAVE_CPU_S390_FALSE=
12652 fi
12653
12654    if test "x$HAVE_CPU_IA64" = "xyes"; then
12655   HAVE_CPU_IA64_TRUE=
12656   HAVE_CPU_IA64_FALSE='#'
12657 else
12658   HAVE_CPU_IA64_TRUE='#'
12659   HAVE_CPU_IA64_FALSE=
12660 fi
12661
12662    if test "x$HAVE_CPU_M68K" = "xyes"; then
12663   HAVE_CPU_M68K_TRUE=
12664   HAVE_CPU_M68K_FALSE='#'
12665 else
12666   HAVE_CPU_M68K_TRUE='#'
12667   HAVE_CPU_M68K_FALSE=
12668 fi
12669
12670    if test "x$HAVE_CPU_X86_64" = "xyes"; then
12671   HAVE_CPU_X86_64_TRUE=
12672   HAVE_CPU_X86_64_FALSE='#'
12673 else
12674   HAVE_CPU_X86_64_TRUE='#'
12675   HAVE_CPU_X86_64_FALSE=
12676 fi
12677
12678    if test "x$HAVE_CPU_CRIS" = "xyes"; then
12679   HAVE_CPU_CRIS_TRUE=
12680   HAVE_CPU_CRIS_FALSE='#'
12681 else
12682   HAVE_CPU_CRIS_TRUE='#'
12683   HAVE_CPU_CRIS_FALSE=
12684 fi
12685
12686    if test "x$HAVE_CPU_CRISV32" = "xyes"; then
12687   HAVE_CPU_CRISV32_TRUE=
12688   HAVE_CPU_CRISV32_FALSE='#'
12689 else
12690   HAVE_CPU_CRISV32_TRUE='#'
12691   HAVE_CPU_CRISV32_FALSE=
12692 fi
12693
12694
12695
12696 cat >>confdefs.h <<_ACEOF
12697 #define HOST_CPU "$host_cpu"
12698 _ACEOF
12699
12700
12701
12702
12703 ac_ext=c
12704 ac_cpp='$CPP $CPPFLAGS'
12705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708 if test -n "$ac_tool_prefix"; then
12709   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if ${ac_cv_prog_CC+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   if test -n "$CC"; then
12717   ac_cv_prog_CC="$CC" # Let the user override the test.
12718 else
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12721 do
12722   IFS=$as_save_IFS
12723   test -z "$as_dir" && as_dir=.
12724     for ac_exec_ext in '' $ac_executable_extensions; do
12725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728     break 2
12729   fi
12730 done
12731   done
12732 IFS=$as_save_IFS
12733
12734 fi
12735 fi
12736 CC=$ac_cv_prog_CC
12737 if test -n "$CC"; then
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12739 $as_echo "$CC" >&6; }
12740 else
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746 fi
12747 if test -z "$ac_cv_prog_CC"; then
12748   ac_ct_CC=$CC
12749   # Extract the first word of "gcc", so it can be a program name with args.
12750 set dummy gcc; ac_word=$2
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12752 $as_echo_n "checking for $ac_word... " >&6; }
12753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if test -n "$ac_ct_CC"; then
12757   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12758 else
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12761 do
12762   IFS=$as_save_IFS
12763   test -z "$as_dir" && as_dir=.
12764     for ac_exec_ext in '' $ac_executable_extensions; do
12765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766     ac_cv_prog_ac_ct_CC="gcc"
12767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768     break 2
12769   fi
12770 done
12771   done
12772 IFS=$as_save_IFS
12773
12774 fi
12775 fi
12776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12777 if test -n "$ac_ct_CC"; then
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12779 $as_echo "$ac_ct_CC" >&6; }
12780 else
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12783 fi
12784
12785   if test "x$ac_ct_CC" = x; then
12786     CC=""
12787   else
12788     case $cross_compiling:$ac_tool_warned in
12789 yes:)
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12792 ac_tool_warned=yes ;;
12793 esac
12794     CC=$ac_ct_CC
12795   fi
12796 else
12797   CC="$ac_cv_prog_CC"
12798 fi
12799
12800 if test -z "$CC"; then
12801           if test -n "$ac_tool_prefix"; then
12802     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12803 set dummy ${ac_tool_prefix}cc; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if ${ac_cv_prog_CC+:} false; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   if test -n "$CC"; then
12810   ac_cv_prog_CC="$CC" # Let the user override the test.
12811 else
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12814 do
12815   IFS=$as_save_IFS
12816   test -z "$as_dir" && as_dir=.
12817     for ac_exec_ext in '' $ac_executable_extensions; do
12818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819     ac_cv_prog_CC="${ac_tool_prefix}cc"
12820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821     break 2
12822   fi
12823 done
12824   done
12825 IFS=$as_save_IFS
12826
12827 fi
12828 fi
12829 CC=$ac_cv_prog_CC
12830 if test -n "$CC"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12832 $as_echo "$CC" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839   fi
12840 fi
12841 if test -z "$CC"; then
12842   # Extract the first word of "cc", so it can be a program name with args.
12843 set dummy cc; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if ${ac_cv_prog_CC+:} false; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849   if test -n "$CC"; then
12850   ac_cv_prog_CC="$CC" # Let the user override the test.
12851 else
12852   ac_prog_rejected=no
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12855 do
12856   IFS=$as_save_IFS
12857   test -z "$as_dir" && as_dir=.
12858     for ac_exec_ext in '' $ac_executable_extensions; do
12859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12861        ac_prog_rejected=yes
12862        continue
12863      fi
12864     ac_cv_prog_CC="cc"
12865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866     break 2
12867   fi
12868 done
12869   done
12870 IFS=$as_save_IFS
12871
12872 if test $ac_prog_rejected = yes; then
12873   # We found a bogon in the path, so make sure we never use it.
12874   set dummy $ac_cv_prog_CC
12875   shift
12876   if test $# != 0; then
12877     # We chose a different compiler from the bogus one.
12878     # However, it has the same basename, so the bogon will be chosen
12879     # first if we set CC to just the basename; use the full file name.
12880     shift
12881     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12882   fi
12883 fi
12884 fi
12885 fi
12886 CC=$ac_cv_prog_CC
12887 if test -n "$CC"; then
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12889 $as_echo "$CC" >&6; }
12890 else
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; }
12893 fi
12894
12895
12896 fi
12897 if test -z "$CC"; then
12898   if test -n "$ac_tool_prefix"; then
12899   for ac_prog in cl.exe
12900   do
12901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if ${ac_cv_prog_CC+:} false; then :
12906   $as_echo_n "(cached) " >&6
12907 else
12908   if test -n "$CC"; then
12909   ac_cv_prog_CC="$CC" # Let the user override the test.
12910 else
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914   IFS=$as_save_IFS
12915   test -z "$as_dir" && as_dir=.
12916     for ac_exec_ext in '' $ac_executable_extensions; do
12917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920     break 2
12921   fi
12922 done
12923   done
12924 IFS=$as_save_IFS
12925
12926 fi
12927 fi
12928 CC=$ac_cv_prog_CC
12929 if test -n "$CC"; then
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12931 $as_echo "$CC" >&6; }
12932 else
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938     test -n "$CC" && break
12939   done
12940 fi
12941 if test -z "$CC"; then
12942   ac_ct_CC=$CC
12943   for ac_prog in cl.exe
12944 do
12945   # Extract the first word of "$ac_prog", so it can be a program name with args.
12946 set dummy $ac_prog; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   if test -n "$ac_ct_CC"; then
12953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958   IFS=$as_save_IFS
12959   test -z "$as_dir" && as_dir=.
12960     for ac_exec_ext in '' $ac_executable_extensions; do
12961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962     ac_cv_prog_ac_ct_CC="$ac_prog"
12963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964     break 2
12965   fi
12966 done
12967   done
12968 IFS=$as_save_IFS
12969
12970 fi
12971 fi
12972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12973 if test -n "$ac_ct_CC"; then
12974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12975 $as_echo "$ac_ct_CC" >&6; }
12976 else
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982   test -n "$ac_ct_CC" && break
12983 done
12984
12985   if test "x$ac_ct_CC" = x; then
12986     CC=""
12987   else
12988     case $cross_compiling:$ac_tool_warned in
12989 yes:)
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12992 ac_tool_warned=yes ;;
12993 esac
12994     CC=$ac_ct_CC
12995   fi
12996 fi
12997
12998 fi
12999
13000
13001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13003 as_fn_error $? "no acceptable C compiler found in \$PATH
13004 See \`config.log' for more details" "$LINENO" 5; }
13005
13006 # Provide some information about the compiler.
13007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13008 set X $ac_compile
13009 ac_compiler=$2
13010 for ac_option in --version -v -V -qversion; do
13011   { { ac_try="$ac_compiler $ac_option >&5"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13017 $as_echo "$ac_try_echo"; } >&5
13018   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13019   ac_status=$?
13020   if test -s conftest.err; then
13021     sed '10a\
13022 ... rest of stderr output deleted ...
13023          10q' conftest.err >conftest.er1
13024     cat conftest.er1 >&5
13025   fi
13026   rm -f conftest.er1 conftest.err
13027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028   test $ac_status = 0; }
13029 done
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13033 if ${ac_cv_c_compiler_gnu+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 int
13040 main ()
13041 {
13042 #ifndef __GNUC__
13043        choke me
13044 #endif
13045
13046   ;
13047   return 0;
13048 }
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051   ac_compiler_gnu=yes
13052 else
13053   ac_compiler_gnu=no
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13061 if test $ac_compiler_gnu = yes; then
13062   GCC=yes
13063 else
13064   GCC=
13065 fi
13066 ac_test_CFLAGS=${CFLAGS+set}
13067 ac_save_CFLAGS=$CFLAGS
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13070 if ${ac_cv_prog_cc_g+:} false; then :
13071   $as_echo_n "(cached) " >&6
13072 else
13073   ac_save_c_werror_flag=$ac_c_werror_flag
13074    ac_c_werror_flag=yes
13075    ac_cv_prog_cc_g=no
13076    CFLAGS="-g"
13077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079
13080 int
13081 main ()
13082 {
13083
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_compile "$LINENO"; then :
13089   ac_cv_prog_cc_g=yes
13090 else
13091   CFLAGS=""
13092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094
13095 int
13096 main ()
13097 {
13098
13099   ;
13100   return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_compile "$LINENO"; then :
13104
13105 else
13106   ac_c_werror_flag=$ac_save_c_werror_flag
13107          CFLAGS="-g"
13108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h.  */
13110
13111 int
13112 main ()
13113 {
13114
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_compile "$LINENO"; then :
13120   ac_cv_prog_cc_g=yes
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127    ac_c_werror_flag=$ac_save_c_werror_flag
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13130 $as_echo "$ac_cv_prog_cc_g" >&6; }
13131 if test "$ac_test_CFLAGS" = set; then
13132   CFLAGS=$ac_save_CFLAGS
13133 elif test $ac_cv_prog_cc_g = yes; then
13134   if test "$GCC" = yes; then
13135     CFLAGS="-g -O2"
13136   else
13137     CFLAGS="-g"
13138   fi
13139 else
13140   if test "$GCC" = yes; then
13141     CFLAGS="-O2"
13142   else
13143     CFLAGS=
13144   fi
13145 fi
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13148 if ${ac_cv_prog_cc_c89+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   ac_cv_prog_cc_c89=no
13152 ac_save_CC=$CC
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h.  */
13155 #include <stdarg.h>
13156 #include <stdio.h>
13157 #include <sys/types.h>
13158 #include <sys/stat.h>
13159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13160 struct buf { int x; };
13161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13162 static char *e (p, i)
13163      char **p;
13164      int i;
13165 {
13166   return p[i];
13167 }
13168 static char *f (char * (*g) (char **, int), char **p, ...)
13169 {
13170   char *s;
13171   va_list v;
13172   va_start (v,p);
13173   s = g (p, va_arg (v,int));
13174   va_end (v);
13175   return s;
13176 }
13177
13178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13179    function prototypes and stuff, but not '\xHH' hex character constants.
13180    These don't provoke an error unfortunately, instead are silently treated
13181    as 'x'.  The following induces an error, until -std is added to get
13182    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13183    array size at least.  It's necessary to write '\x00'==0 to get something
13184    that's true only with -std.  */
13185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13186
13187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13188    inside strings and character constants.  */
13189 #define FOO(x) 'x'
13190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13191
13192 int test (int i, double x);
13193 struct s1 {int (*f) (int a);};
13194 struct s2 {int (*f) (double a);};
13195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13196 int argc;
13197 char **argv;
13198 int
13199 main ()
13200 {
13201 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13207         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13208 do
13209   CC="$ac_save_CC $ac_arg"
13210   if ac_fn_c_try_compile "$LINENO"; then :
13211   ac_cv_prog_cc_c89=$ac_arg
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext
13214   test "x$ac_cv_prog_cc_c89" != "xno" && break
13215 done
13216 rm -f conftest.$ac_ext
13217 CC=$ac_save_CC
13218
13219 fi
13220 # AC_CACHE_VAL
13221 case "x$ac_cv_prog_cc_c89" in
13222   x)
13223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13224 $as_echo "none needed" >&6; } ;;
13225   xno)
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13227 $as_echo "unsupported" >&6; } ;;
13228   *)
13229     CC="$CC $ac_cv_prog_cc_c89"
13230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13232 esac
13233 if test "x$ac_cv_prog_cc_c89" != xno; then :
13234
13235 fi
13236
13237 ac_ext=c
13238 ac_cpp='$CPP $CPPFLAGS'
13239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13242
13243 depcc="$CC"   am_compiler_list=
13244
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13246 $as_echo_n "checking dependency style of $depcc... " >&6; }
13247 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13248   $as_echo_n "(cached) " >&6
13249 else
13250   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13251   # We make a subdir and do the tests there.  Otherwise we can end up
13252   # making bogus files that we don't know about and never remove.  For
13253   # instance it was reported that on HP-UX the gcc test will end up
13254   # making a dummy file named `D' -- because `-MD' means `put the output
13255   # in D'.
13256   mkdir conftest.dir
13257   # Copy depcomp to subdir because otherwise we won't find it if we're
13258   # using a relative directory.
13259   cp "$am_depcomp" conftest.dir
13260   cd conftest.dir
13261   # We will build objects and dependencies in a subdirectory because
13262   # it helps to detect inapplicable dependency modes.  For instance
13263   # both Tru64's cc and ICC support -MD to output dependencies as a
13264   # side effect of compilation, but ICC will put the dependencies in
13265   # the current directory while Tru64 will put them in the object
13266   # directory.
13267   mkdir sub
13268
13269   am_cv_CC_dependencies_compiler_type=none
13270   if test "$am_compiler_list" = ""; then
13271      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13272   fi
13273   am__universal=false
13274   case " $depcc " in #(
13275      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13276      esac
13277
13278   for depmode in $am_compiler_list; do
13279     # Setup a source with many dependencies, because some compilers
13280     # like to wrap large dependency lists on column 80 (with \), and
13281     # we should not choose a depcomp mode which is confused by this.
13282     #
13283     # We need to recreate these files for each test, as the compiler may
13284     # overwrite some of them when testing with obscure command lines.
13285     # This happens at least with the AIX C compiler.
13286     : > sub/conftest.c
13287     for i in 1 2 3 4 5 6; do
13288       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13289       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13290       # Solaris 8's {/usr,}/bin/sh.
13291       touch sub/conftst$i.h
13292     done
13293     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13294
13295     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13296     # mode.  It turns out that the SunPro C++ compiler does not properly
13297     # handle `-M -o', and we need to detect this.  Also, some Intel
13298     # versions had trouble with output in subdirs
13299     am__obj=sub/conftest.${OBJEXT-o}
13300     am__minus_obj="-o $am__obj"
13301     case $depmode in
13302     gcc)
13303       # This depmode causes a compiler race in universal mode.
13304       test "$am__universal" = false || continue
13305       ;;
13306     nosideeffect)
13307       # after this tag, mechanisms are not by side-effect, so they'll
13308       # only be used when explicitly requested
13309       if test "x$enable_dependency_tracking" = xyes; then
13310         continue
13311       else
13312         break
13313       fi
13314       ;;
13315     msvisualcpp | msvcmsys)
13316       # This compiler won't grok `-c -o', but also, the minuso test has
13317       # not run yet.  These depmodes are late enough in the game, and
13318       # so weak that their functioning should not be impacted.
13319       am__obj=conftest.${OBJEXT-o}
13320       am__minus_obj=
13321       ;;
13322     none) break ;;
13323     esac
13324     if depmode=$depmode \
13325        source=sub/conftest.c object=$am__obj \
13326        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13327        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13328          >/dev/null 2>conftest.err &&
13329        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13330        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13331        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13332        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13333       # icc doesn't choke on unknown options, it will just issue warnings
13334       # or remarks (even with -Werror).  So we grep stderr for any message
13335       # that says an option was ignored or not supported.
13336       # When given -MP, icc 7.0 and 7.1 complain thusly:
13337       #   icc: Command line warning: ignoring option '-M'; no argument required
13338       # The diagnosis changed in icc 8.0:
13339       #   icc: Command line remark: option '-MP' not supported
13340       if (grep 'ignoring option' conftest.err ||
13341           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13342         am_cv_CC_dependencies_compiler_type=$depmode
13343         break
13344       fi
13345     fi
13346   done
13347
13348   cd ..
13349   rm -rf conftest.dir
13350 else
13351   am_cv_CC_dependencies_compiler_type=none
13352 fi
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13356 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13357 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13358
13359  if
13360   test "x$enable_dependency_tracking" != xno \
13361   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13362   am__fastdepCC_TRUE=
13363   am__fastdepCC_FALSE='#'
13364 else
13365   am__fastdepCC_TRUE='#'
13366   am__fastdepCC_FALSE=
13367 fi
13368
13369
13370    case $ac_cv_prog_cc_stdc in #(
13371   no) :
13372     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
13373   *) :
13374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13375 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13376 if ${ac_cv_prog_cc_c99+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   ac_cv_prog_cc_c99=no
13380 ac_save_CC=$CC
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383 #include <stdarg.h>
13384 #include <stdbool.h>
13385 #include <stdlib.h>
13386 #include <wchar.h>
13387 #include <stdio.h>
13388
13389 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
13390 #define debug(...) fprintf (stderr, __VA_ARGS__)
13391 #define showlist(...) puts (#__VA_ARGS__)
13392 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13393 static void
13394 test_varargs_macros (void)
13395 {
13396   int x = 1234;
13397   int y = 5678;
13398   debug ("Flag");
13399   debug ("X = %d\n", x);
13400   showlist (The first, second, and third items.);
13401   report (x>y, "x is %d but y is %d", x, y);
13402 }
13403
13404 // Check long long types.
13405 #define BIG64 18446744073709551615ull
13406 #define BIG32 4294967295ul
13407 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13408 #if !BIG_OK
13409   your preprocessor is broken;
13410 #endif
13411 #if BIG_OK
13412 #else
13413   your preprocessor is broken;
13414 #endif
13415 static long long int bignum = -9223372036854775807LL;
13416 static unsigned long long int ubignum = BIG64;
13417
13418 struct incomplete_array
13419 {
13420   int datasize;
13421   double data[];
13422 };
13423
13424 struct named_init {
13425   int number;
13426   const wchar_t *name;
13427   double average;
13428 };
13429
13430 typedef const char *ccp;
13431
13432 static inline int
13433 test_restrict (ccp restrict text)
13434 {
13435   // See if C++-style comments work.
13436   // Iterate through items via the restricted pointer.
13437   // Also check for declarations in for loops.
13438   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13439     continue;
13440   return 0;
13441 }
13442
13443 // Check varargs and va_copy.
13444 static void
13445 test_varargs (const char *format, ...)
13446 {
13447   va_list args;
13448   va_start (args, format);
13449   va_list args_copy;
13450   va_copy (args_copy, args);
13451
13452   const char *str;
13453   int number;
13454   float fnumber;
13455
13456   while (*format)
13457     {
13458       switch (*format++)
13459         {
13460         case 's': // string
13461           str = va_arg (args_copy, const char *);
13462           break;
13463         case 'd': // int
13464           number = va_arg (args_copy, int);
13465           break;
13466         case 'f': // float
13467           fnumber = va_arg (args_copy, double);
13468           break;
13469         default:
13470           break;
13471         }
13472     }
13473   va_end (args_copy);
13474   va_end (args);
13475 }
13476
13477 int
13478 main ()
13479 {
13480
13481   // Check bool.
13482   _Bool success = false;
13483
13484   // Check restrict.
13485   if (test_restrict ("String literal") == 0)
13486     success = true;
13487   char *restrict newvar = "Another string";
13488
13489   // Check varargs.
13490   test_varargs ("s, d' f .", "string", 65, 34.234);
13491   test_varargs_macros ();
13492
13493   // Check flexible array members.
13494   struct incomplete_array *ia =
13495     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13496   ia->datasize = 10;
13497   for (int i = 0; i < ia->datasize; ++i)
13498     ia->data[i] = i * 1.234;
13499
13500   // Check named initializers.
13501   struct named_init ni = {
13502     .number = 34,
13503     .name = L"Test wide string",
13504     .average = 543.34343,
13505   };
13506
13507   ni.number = 58;
13508
13509   int dynamic_array[ni.number];
13510   dynamic_array[ni.number - 1] = 543;
13511
13512   // work around unused variable warnings
13513   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13514           || dynamic_array[ni.number - 1] != 543);
13515
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
13521 do
13522   CC="$ac_save_CC $ac_arg"
13523   if ac_fn_c_try_compile "$LINENO"; then :
13524   ac_cv_prog_cc_c99=$ac_arg
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext
13527   test "x$ac_cv_prog_cc_c99" != "xno" && break
13528 done
13529 rm -f conftest.$ac_ext
13530 CC=$ac_save_CC
13531
13532 fi
13533 # AC_CACHE_VAL
13534 case "x$ac_cv_prog_cc_c99" in
13535   x)
13536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13537 $as_echo "none needed" >&6; } ;;
13538   xno)
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13540 $as_echo "unsupported" >&6; } ;;
13541   *)
13542     CC="$CC $ac_cv_prog_cc_c99"
13543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13544 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13545 esac
13546 if test "x$ac_cv_prog_cc_c99" != xno; then :
13547   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13548 else
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13550 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13551 if ${ac_cv_prog_cc_c89+:} false; then :
13552   $as_echo_n "(cached) " >&6
13553 else
13554   ac_cv_prog_cc_c89=no
13555 ac_save_CC=$CC
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558 #include <stdarg.h>
13559 #include <stdio.h>
13560 #include <sys/types.h>
13561 #include <sys/stat.h>
13562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13563 struct buf { int x; };
13564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13565 static char *e (p, i)
13566      char **p;
13567      int i;
13568 {
13569   return p[i];
13570 }
13571 static char *f (char * (*g) (char **, int), char **p, ...)
13572 {
13573   char *s;
13574   va_list v;
13575   va_start (v,p);
13576   s = g (p, va_arg (v,int));
13577   va_end (v);
13578   return s;
13579 }
13580
13581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13582    function prototypes and stuff, but not '\xHH' hex character constants.
13583    These don't provoke an error unfortunately, instead are silently treated
13584    as 'x'.  The following induces an error, until -std is added to get
13585    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13586    array size at least.  It's necessary to write '\x00'==0 to get something
13587    that's true only with -std.  */
13588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13589
13590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13591    inside strings and character constants.  */
13592 #define FOO(x) 'x'
13593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13594
13595 int test (int i, double x);
13596 struct s1 {int (*f) (int a);};
13597 struct s2 {int (*f) (double a);};
13598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13599 int argc;
13600 char **argv;
13601 int
13602 main ()
13603 {
13604 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13605   ;
13606   return 0;
13607 }
13608 _ACEOF
13609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13610         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13611 do
13612   CC="$ac_save_CC $ac_arg"
13613   if ac_fn_c_try_compile "$LINENO"; then :
13614   ac_cv_prog_cc_c89=$ac_arg
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext
13617   test "x$ac_cv_prog_cc_c89" != "xno" && break
13618 done
13619 rm -f conftest.$ac_ext
13620 CC=$ac_save_CC
13621
13622 fi
13623 # AC_CACHE_VAL
13624 case "x$ac_cv_prog_cc_c89" in
13625   x)
13626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13627 $as_echo "none needed" >&6; } ;;
13628   xno)
13629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13630 $as_echo "unsupported" >&6; } ;;
13631   *)
13632     CC="$CC $ac_cv_prog_cc_c89"
13633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13635 esac
13636 if test "x$ac_cv_prog_cc_c89" != xno; then :
13637   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13638 else
13639   ac_cv_prog_cc_stdc=no
13640 fi
13641
13642 fi
13643  ;;
13644 esac
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
13646 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
13647   if ${ac_cv_prog_cc_stdc+:} false; then :
13648   $as_echo_n "(cached) " >&6
13649 fi
13650
13651   case $ac_cv_prog_cc_stdc in #(
13652   no) :
13653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13654 $as_echo "unsupported" >&6; } ;; #(
13655   '') :
13656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13657 $as_echo "none needed" >&6; } ;; #(
13658   *) :
13659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
13660 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
13661 esac
13662
13663
13664 if test "x$CC" != xcc; then
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
13666 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
13667 else
13668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
13669 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
13670 fi
13671 set dummy $CC; ac_cc=`$as_echo "$2" |
13672                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13673 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
13674   $as_echo_n "(cached) " >&6
13675 else
13676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h.  */
13678
13679 int
13680 main ()
13681 {
13682
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 # Make sure it works both with $CC and with simple cc.
13688 # We do the test twice because some compilers refuse to overwrite an
13689 # existing .o file with -o, though they will create one.
13690 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13691 rm -f conftest2.*
13692 if { { case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13697 $as_echo "$ac_try_echo"; } >&5
13698   (eval "$ac_try") 2>&5
13699   ac_status=$?
13700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701   test $ac_status = 0; } &&
13702    test -f conftest2.$ac_objext && { { case "(($ac_try" in
13703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704   *) ac_try_echo=$ac_try;;
13705 esac
13706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13707 $as_echo "$ac_try_echo"; } >&5
13708   (eval "$ac_try") 2>&5
13709   ac_status=$?
13710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13711   test $ac_status = 0; };
13712 then
13713   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
13714   if test "x$CC" != xcc; then
13715     # Test first that cc exists at all.
13716     if { ac_try='cc -c conftest.$ac_ext >&5'
13717   { { case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13722 $as_echo "$ac_try_echo"; } >&5
13723   (eval "$ac_try") 2>&5
13724   ac_status=$?
13725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726   test $ac_status = 0; }; }; then
13727       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13728       rm -f conftest2.*
13729       if { { case "(($ac_try" in
13730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731   *) ac_try_echo=$ac_try;;
13732 esac
13733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13734 $as_echo "$ac_try_echo"; } >&5
13735   (eval "$ac_try") 2>&5
13736   ac_status=$?
13737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738   test $ac_status = 0; } &&
13739          test -f conftest2.$ac_objext && { { case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13744 $as_echo "$ac_try_echo"; } >&5
13745   (eval "$ac_try") 2>&5
13746   ac_status=$?
13747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748   test $ac_status = 0; };
13749       then
13750         # cc works too.
13751         :
13752       else
13753         # cc exists but doesn't like -o.
13754         eval ac_cv_prog_cc_${ac_cc}_c_o=no
13755       fi
13756     fi
13757   fi
13758 else
13759   eval ac_cv_prog_cc_${ac_cc}_c_o=no
13760 fi
13761 rm -f core conftest*
13762
13763 fi
13764 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13766 $as_echo "yes" >&6; }
13767 else
13768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13770
13771 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13772
13773 fi
13774
13775 # FIXME: we rely on the cache variable name because
13776 # there is no other way.
13777 set dummy $CC
13778 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13779 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13780 if test "$am_t" != yes; then
13781    # Losing compiler, so override with the script.
13782    # FIXME: It is wrong to rewrite CC.
13783    # But if we don't then we get into trouble of one sort or another.
13784    # A longer-term fix would be to have automake use am__CC in this case,
13785    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13786    CC="$am_aux_dir/compile $CC"
13787 fi
13788
13789
13790
13791 # Extract the first word of "valgrind", so it can be a program name with args.
13792 set dummy valgrind; ac_word=$2
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794 $as_echo_n "checking for $ac_word... " >&6; }
13795 if ${ac_cv_path_VALGRIND_PATH+:} false; then :
13796   $as_echo_n "(cached) " >&6
13797 else
13798   case $VALGRIND_PATH in
13799   [\\/]* | ?:[\\/]*)
13800   ac_cv_path_VALGRIND_PATH="$VALGRIND_PATH" # Let the user override the test with a path.
13801   ;;
13802   *)
13803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806   IFS=$as_save_IFS
13807   test -z "$as_dir" && as_dir=.
13808     for ac_exec_ext in '' $ac_executable_extensions; do
13809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13810     ac_cv_path_VALGRIND_PATH="$as_dir/$ac_word$ac_exec_ext"
13811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812     break 2
13813   fi
13814 done
13815   done
13816 IFS=$as_save_IFS
13817
13818   test -z "$ac_cv_path_VALGRIND_PATH" && ac_cv_path_VALGRIND_PATH="no"
13819   ;;
13820 esac
13821 fi
13822 VALGRIND_PATH=$ac_cv_path_VALGRIND_PATH
13823 if test -n "$VALGRIND_PATH"; then
13824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_PATH" >&5
13825 $as_echo "$VALGRIND_PATH" >&6; }
13826 else
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13829 fi
13830
13831
13832  if test ! "x$VALGRIND_PATH" = "xno"; then
13833   HAVE_VALGRIND_TRUE=
13834   HAVE_VALGRIND_FALSE='#'
13835 else
13836   HAVE_VALGRIND_TRUE='#'
13837   HAVE_VALGRIND_FALSE=
13838 fi
13839
13840
13841
13842     if test "x$PACKAGE_TARNAME" = "x"
13843   then
13844     as_fn_error $? "Internal error - PACKAGE_TARNAME not set" "$LINENO" 5
13845   fi
13846   docdir="\$(datadir)/doc/$PACKAGE_TARNAME-$GST_MAJORMINOR"
13847
13848     # Check whether --enable-docbook was given.
13849 if test "${enable_docbook+set}" = set; then :
13850   enableval=$enable_docbook;
13851 else
13852   enable_docbook=no
13853 fi
13854
13855
13856   have_docbook=no
13857
13858   if test x$enable_docbook = xyes; then
13859
13860         # Extract the first word of "docbook2ps", so it can be a program name with args.
13861 set dummy docbook2ps; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if ${ac_cv_prog_HAVE_DOCBOOK2PS+:} false; then :
13865   $as_echo_n "(cached) " >&6
13866 else
13867   if test -n "$HAVE_DOCBOOK2PS"; then
13868   ac_cv_prog_HAVE_DOCBOOK2PS="$HAVE_DOCBOOK2PS" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873   IFS=$as_save_IFS
13874   test -z "$as_dir" && as_dir=.
13875     for ac_exec_ext in '' $ac_executable_extensions; do
13876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13877     ac_cv_prog_HAVE_DOCBOOK2PS="yes"
13878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879     break 2
13880   fi
13881 done
13882   done
13883 IFS=$as_save_IFS
13884
13885   test -z "$ac_cv_prog_HAVE_DOCBOOK2PS" && ac_cv_prog_HAVE_DOCBOOK2PS="no"
13886 fi
13887 fi
13888 HAVE_DOCBOOK2PS=$ac_cv_prog_HAVE_DOCBOOK2PS
13889 if test -n "$HAVE_DOCBOOK2PS"; then
13890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOCBOOK2PS" >&5
13891 $as_echo "$HAVE_DOCBOOK2PS" >&6; }
13892 else
13893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894 $as_echo "no" >&6; }
13895 fi
13896
13897
13898     # Extract the first word of "docbook2html", so it can be a program name with args.
13899 set dummy docbook2html; ac_word=$2
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13901 $as_echo_n "checking for $ac_word... " >&6; }
13902 if ${ac_cv_prog_HAVE_DOCBOOK2HTML+:} false; then :
13903   $as_echo_n "(cached) " >&6
13904 else
13905   if test -n "$HAVE_DOCBOOK2HTML"; then
13906   ac_cv_prog_HAVE_DOCBOOK2HTML="$HAVE_DOCBOOK2HTML" # Let the user override the test.
13907 else
13908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909 for as_dir in $PATH
13910 do
13911   IFS=$as_save_IFS
13912   test -z "$as_dir" && as_dir=.
13913     for ac_exec_ext in '' $ac_executable_extensions; do
13914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13915     ac_cv_prog_HAVE_DOCBOOK2HTML="yes"
13916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13917     break 2
13918   fi
13919 done
13920   done
13921 IFS=$as_save_IFS
13922
13923   test -z "$ac_cv_prog_HAVE_DOCBOOK2HTML" && ac_cv_prog_HAVE_DOCBOOK2HTML="no"
13924 fi
13925 fi
13926 HAVE_DOCBOOK2HTML=$ac_cv_prog_HAVE_DOCBOOK2HTML
13927 if test -n "$HAVE_DOCBOOK2HTML"; then
13928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOCBOOK2HTML" >&5
13929 $as_echo "$HAVE_DOCBOOK2HTML" >&6; }
13930 else
13931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13932 $as_echo "no" >&6; }
13933 fi
13934
13935
13936     # Extract the first word of "jadetex", so it can be a program name with args.
13937 set dummy jadetex; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939 $as_echo_n "checking for $ac_word... " >&6; }
13940 if ${ac_cv_prog_HAVE_JADETEX+:} false; then :
13941   $as_echo_n "(cached) " >&6
13942 else
13943   if test -n "$HAVE_JADETEX"; then
13944   ac_cv_prog_HAVE_JADETEX="$HAVE_JADETEX" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13948 do
13949   IFS=$as_save_IFS
13950   test -z "$as_dir" && as_dir=.
13951     for ac_exec_ext in '' $ac_executable_extensions; do
13952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953     ac_cv_prog_HAVE_JADETEX="yes"
13954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955     break 2
13956   fi
13957 done
13958   done
13959 IFS=$as_save_IFS
13960
13961   test -z "$ac_cv_prog_HAVE_JADETEX" && ac_cv_prog_HAVE_JADETEX="no"
13962 fi
13963 fi
13964 HAVE_JADETEX=$ac_cv_prog_HAVE_JADETEX
13965 if test -n "$HAVE_JADETEX"; then
13966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_JADETEX" >&5
13967 $as_echo "$HAVE_JADETEX" >&6; }
13968 else
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970 $as_echo "no" >&6; }
13971 fi
13972
13973
13974     # Extract the first word of "ps2pdf", so it can be a program name with args.
13975 set dummy ps2pdf; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_HAVE_PS2PDF+:} false; then :
13979   $as_echo_n "(cached) " >&6
13980 else
13981   if test -n "$HAVE_PS2PDF"; then
13982   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13986 do
13987   IFS=$as_save_IFS
13988   test -z "$as_dir" && as_dir=.
13989     for ac_exec_ext in '' $ac_executable_extensions; do
13990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13991     ac_cv_prog_HAVE_PS2PDF="yes"
13992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993     break 2
13994   fi
13995 done
13996   done
13997 IFS=$as_save_IFS
13998
13999   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
14000 fi
14001 fi
14002 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
14003 if test -n "$HAVE_PS2PDF"; then
14004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PS2PDF" >&5
14005 $as_echo "$HAVE_PS2PDF" >&6; }
14006 else
14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010
14011
14012
14013     # -V option appeared in 0.6.10
14014     docbook2html_min_version=0.6.10
14015     if test "x$HAVE_DOCBOOK2HTML" != "xno"; then
14016       docbook2html_version=`docbook2html --version`
14017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking docbook2html version ($docbook2html_version) >= $docbook2html_min_version" >&5
14018 $as_echo_n "checking docbook2html version ($docbook2html_version) >= $docbook2html_min_version... " >&6; }
14019       if perl -w <<EOF
14020         (\$min_version_major, \$min_version_minor, \$min_version_micro ) = "$docbook2html_min_version" =~ /(\d+)\.(\d+)\.(\d+)/;
14021         (\$docbook2html_version_major, \$docbook2html_version_minor, \$docbook2html_version_micro ) = "$docbook2html_version" =~ /(\d+)\.(\d+)\.(\d+)/;
14022         exit (((\$docbook2html_version_major > \$min_version_major) ||
14023              ((\$docbook2html_version_major == \$min_version_major) &&
14024               (\$docbook2html_version_minor >= \$min_version_minor)) ||
14025              ((\$docbook2html_version_major == \$min_version_major) &&
14026               (\$docbook2html_version_minor >= \$min_version_minor) &&
14027               (\$docbook2html_version_micro >= \$min_version_micro)))
14028              ? 0 : 1);
14029 EOF
14030       then
14031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14032 $as_echo "yes" >&6; }
14033       else
14034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036         HAVE_DOCBOOK2HTML=no
14037       fi
14038     fi
14039
14040
14041   XSLTPROC_FLAGS=--nonet
14042   DOCBOOK_ROOT=
14043   TYPE_LC=xml
14044   TYPE_UC=XML
14045   DOCBOOK_VERSION=4.1.2
14046
14047   if test ! -f /etc/xml/catalog; then
14048     for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/ /usr/local/share/xsl/docbook ;
14049     do
14050       if test -d "$i"; then
14051         DOCBOOK_ROOT=$i
14052       fi
14053     done
14054   else
14055     XML_CATALOG=/etc/xml/catalog
14056     CAT_ENTRY_START='<!--'
14057     CAT_ENTRY_END='-->'
14058   fi
14059
14060     # Extract the first word of "xsltproc", so it can be a program name with args.
14061 set dummy xsltproc; ac_word=$2
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14063 $as_echo_n "checking for $ac_word... " >&6; }
14064 if ${ac_cv_prog_XSLTPROC+:} false; then :
14065   $as_echo_n "(cached) " >&6
14066 else
14067   if test -n "$XSLTPROC"; then
14068   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in $PATH
14072 do
14073   IFS=$as_save_IFS
14074   test -z "$as_dir" && as_dir=.
14075     for ac_exec_ext in '' $ac_executable_extensions; do
14076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14077     ac_cv_prog_XSLTPROC="xsltproc"
14078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14079     break 2
14080   fi
14081 done
14082   done
14083 IFS=$as_save_IFS
14084
14085 fi
14086 fi
14087 XSLTPROC=$ac_cv_prog_XSLTPROC
14088 if test -n "$XSLTPROC"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14090 $as_echo "$XSLTPROC" >&6; }
14091 else
14092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14094 fi
14095
14096
14097   XSLTPROC_WORKS=no
14098   if test -n "$XSLTPROC"; then
14099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xsltproc docbook processing works" >&5
14100 $as_echo_n "checking whether xsltproc docbook processing works... " >&6; }
14101
14102     if test -n "$XML_CATALOG"; then
14103       DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
14104     else
14105       DB_FILE="$DOCBOOK_ROOT/xhtml/docbook.xsl"
14106     fi
14107     $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
14108 <?xml version="1.0" encoding='ISO-8859-1'?>
14109 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook $TYPE_UC V$DOCBOOK_VERSION//EN" "http://www.oasis-open.org/docbook/$TYPE_LC/$DOCBOOK_VERSION/docbookx.dtd">
14110 <book id="test">
14111 </book>
14112 END
14113     if test "$?" = 0; then
14114       XSLTPROC_WORKS=yes
14115     fi
14116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC_WORKS" >&5
14117 $as_echo "$XSLTPROC_WORKS" >&6; }
14118   fi
14119
14120   if test "x$XSLTPROC_WORKS" = "xyes"; then
14121         have_docbook=yes
14122   else
14123         have_docbook=no
14124   fi
14125
14126
14127
14128
14129
14130
14131
14132
14133         # Extract the first word of "dvips", so it can be a program name with args.
14134 set dummy dvips; ac_word=$2
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if ${ac_cv_prog_HAVE_DVIPS+:} false; then :
14138   $as_echo_n "(cached) " >&6
14139 else
14140   if test -n "$HAVE_DVIPS"; then
14141   ac_cv_prog_HAVE_DVIPS="$HAVE_DVIPS" # Let the user override the test.
14142 else
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14145 do
14146   IFS=$as_save_IFS
14147   test -z "$as_dir" && as_dir=.
14148     for ac_exec_ext in '' $ac_executable_extensions; do
14149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150     ac_cv_prog_HAVE_DVIPS="yes"
14151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14152     break 2
14153   fi
14154 done
14155   done
14156 IFS=$as_save_IFS
14157
14158   test -z "$ac_cv_prog_HAVE_DVIPS" && ac_cv_prog_HAVE_DVIPS="no"
14159 fi
14160 fi
14161 HAVE_DVIPS=$ac_cv_prog_HAVE_DVIPS
14162 if test -n "$HAVE_DVIPS"; then
14163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DVIPS" >&5
14164 $as_echo "$HAVE_DVIPS" >&6; }
14165 else
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14167 $as_echo "no" >&6; }
14168 fi
14169
14170
14171     # Extract the first word of "xmllint", so it can be a program name with args.
14172 set dummy xmllint; ac_word=$2
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 $as_echo_n "checking for $ac_word... " >&6; }
14175 if ${ac_cv_prog_HAVE_XMLLINT+:} false; then :
14176   $as_echo_n "(cached) " >&6
14177 else
14178   if test -n "$HAVE_XMLLINT"; then
14179   ac_cv_prog_HAVE_XMLLINT="$HAVE_XMLLINT" # Let the user override the test.
14180 else
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14183 do
14184   IFS=$as_save_IFS
14185   test -z "$as_dir" && as_dir=.
14186     for ac_exec_ext in '' $ac_executable_extensions; do
14187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188     ac_cv_prog_HAVE_XMLLINT="yes"
14189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14190     break 2
14191   fi
14192 done
14193   done
14194 IFS=$as_save_IFS
14195
14196   test -z "$ac_cv_prog_HAVE_XMLLINT" && ac_cv_prog_HAVE_XMLLINT="no"
14197 fi
14198 fi
14199 HAVE_XMLLINT=$ac_cv_prog_HAVE_XMLLINT
14200 if test -n "$HAVE_XMLLINT"; then
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XMLLINT" >&5
14202 $as_echo "$HAVE_XMLLINT" >&6; }
14203 else
14204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207
14208
14209
14210         # Extract the first word of "fig2dev", so it can be a program name with args.
14211 set dummy fig2dev; ac_word=$2
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14213 $as_echo_n "checking for $ac_word... " >&6; }
14214 if ${ac_cv_prog_HAVE_FIG2DEV+:} false; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217   if test -n "$HAVE_FIG2DEV"; then
14218   ac_cv_prog_HAVE_FIG2DEV="$HAVE_FIG2DEV" # Let the user override the test.
14219 else
14220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14221 for as_dir in $PATH
14222 do
14223   IFS=$as_save_IFS
14224   test -z "$as_dir" && as_dir=.
14225     for ac_exec_ext in '' $ac_executable_extensions; do
14226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14227     ac_cv_prog_HAVE_FIG2DEV="yes"
14228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14229     break 2
14230   fi
14231 done
14232   done
14233 IFS=$as_save_IFS
14234
14235   test -z "$ac_cv_prog_HAVE_FIG2DEV" && ac_cv_prog_HAVE_FIG2DEV="no"
14236 fi
14237 fi
14238 HAVE_FIG2DEV=$ac_cv_prog_HAVE_FIG2DEV
14239 if test -n "$HAVE_FIG2DEV"; then
14240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FIG2DEV" >&5
14241 $as_echo "$HAVE_FIG2DEV" >&6; }
14242 else
14243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244 $as_echo "no" >&6; }
14245 fi
14246
14247
14248     if test "x$HAVE_FIG2DEV" = "xno" ; then
14249       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find fig2dev (from xfig), images will not be generated." >&5
14250 $as_echo "$as_me: WARNING: Did not find fig2dev (from xfig), images will not be generated." >&2;}
14251     fi
14252
14253             HAVE_FIG2DEV_EPS=no
14254     if test "x$HAVE_FIG2DEV" = "xyes" ; then
14255       fig2dev_quiet=`fig2dev -L eps </dev/null 2>&1 >/dev/null`
14256       if test "x$fig2dev_quiet" = "x" ; then
14257         HAVE_FIG2DEV_EPS=yes
14258       fi
14259     fi
14260     HAVE_FIG2DEV_PNG=no
14261     if test "x$HAVE_FIG2DEV" = "xyes" ; then
14262       fig2dev_quiet=`fig2dev -L png </dev/null 2>&1 >/dev/null`
14263       if test "x$fig2dev_quiet" = "x" ; then
14264         HAVE_FIG2DEV_PNG=yes
14265       fi
14266     fi
14267     HAVE_FIG2DEV_PDF=no
14268     if test "x$HAVE_FIG2DEV" = "xyes" ; then
14269       fig2dev_quiet=`fig2dev -L pdf </dev/null 2>&1 >/dev/null`
14270       if test "x$fig2dev_quiet" = "x" ; then
14271         HAVE_FIG2DEV_PDF=yes
14272       fi
14273     fi
14274
14275     # Extract the first word of "pngtopnm", so it can be a program name with args.
14276 set dummy pngtopnm; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278 $as_echo_n "checking for $ac_word... " >&6; }
14279 if ${ac_cv_prog_HAVE_PNGTOPNM+:} false; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   if test -n "$HAVE_PNGTOPNM"; then
14283   ac_cv_prog_HAVE_PNGTOPNM="$HAVE_PNGTOPNM" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288   IFS=$as_save_IFS
14289   test -z "$as_dir" && as_dir=.
14290     for ac_exec_ext in '' $ac_executable_extensions; do
14291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14292     ac_cv_prog_HAVE_PNGTOPNM="yes"
14293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294     break 2
14295   fi
14296 done
14297   done
14298 IFS=$as_save_IFS
14299
14300   test -z "$ac_cv_prog_HAVE_PNGTOPNM" && ac_cv_prog_HAVE_PNGTOPNM="no"
14301 fi
14302 fi
14303 HAVE_PNGTOPNM=$ac_cv_prog_HAVE_PNGTOPNM
14304 if test -n "$HAVE_PNGTOPNM"; then
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PNGTOPNM" >&5
14306 $as_echo "$HAVE_PNGTOPNM" >&6; }
14307 else
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 fi
14311
14312
14313     # Extract the first word of "pnmtops", so it can be a program name with args.
14314 set dummy pnmtops; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_prog_HAVE_PNMTOPS+:} false; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320   if test -n "$HAVE_PNMTOPS"; then
14321   ac_cv_prog_HAVE_PNMTOPS="$HAVE_PNMTOPS" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326   IFS=$as_save_IFS
14327   test -z "$as_dir" && as_dir=.
14328     for ac_exec_ext in '' $ac_executable_extensions; do
14329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14330     ac_cv_prog_HAVE_PNMTOPS="yes"
14331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332     break 2
14333   fi
14334 done
14335   done
14336 IFS=$as_save_IFS
14337
14338   test -z "$ac_cv_prog_HAVE_PNMTOPS" && ac_cv_prog_HAVE_PNMTOPS="no"
14339 fi
14340 fi
14341 HAVE_PNMTOPS=$ac_cv_prog_HAVE_PNMTOPS
14342 if test -n "$HAVE_PNMTOPS"; then
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PNMTOPS" >&5
14344 $as_echo "$HAVE_PNMTOPS" >&6; }
14345 else
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14347 $as_echo "no" >&6; }
14348 fi
14349
14350
14351     # Extract the first word of "epstopdf", so it can be a program name with args.
14352 set dummy epstopdf; ac_word=$2
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14354 $as_echo_n "checking for $ac_word... " >&6; }
14355 if ${ac_cv_prog_HAVE_EPSTOPDF+:} false; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358   if test -n "$HAVE_EPSTOPDF"; then
14359   ac_cv_prog_HAVE_EPSTOPDF="$HAVE_EPSTOPDF" # Let the user override the test.
14360 else
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14363 do
14364   IFS=$as_save_IFS
14365   test -z "$as_dir" && as_dir=.
14366     for ac_exec_ext in '' $ac_executable_extensions; do
14367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14368     ac_cv_prog_HAVE_EPSTOPDF="yes"
14369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14370     break 2
14371   fi
14372 done
14373   done
14374 IFS=$as_save_IFS
14375
14376   test -z "$ac_cv_prog_HAVE_EPSTOPDF" && ac_cv_prog_HAVE_EPSTOPDF="no"
14377 fi
14378 fi
14379 HAVE_EPSTOPDF=$ac_cv_prog_HAVE_EPSTOPDF
14380 if test -n "$HAVE_EPSTOPDF"; then
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EPSTOPDF" >&5
14382 $as_echo "$HAVE_EPSTOPDF" >&6; }
14383 else
14384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 $as_echo "no" >&6; }
14386 fi
14387
14388
14389
14390         if test "x$HAVE_DOCBOOK2HTML" = "xyes" && \
14391        test "x$enable_docbook" = "xyes" && \
14392        test "x$HAVE_XMLLINT" = "xyes" && \
14393        test "x$HAVE_FIG2DEV_PNG" = "xyes"; then
14394       DOC_HTML=yes
14395       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output HTML documentation" >&5
14396 $as_echo "$as_me: Will output HTML documentation" >&6;}
14397      else
14398       DOC_HTML=no
14399       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output HTML documentation" >&5
14400 $as_echo "$as_me: Will not output HTML documentation" >&6;}
14401     fi
14402
14403         if test "x$HAVE_DOCBOOK2PS" = "xyes" && \
14404        test "x$enable_docbook" = "xyes" && \
14405        test "x$HAVE_XMLLINT" = "xyes" && \
14406        test "x$HAVE_JADETEX" = "xyes" && \
14407        test "x$HAVE_FIG2DEV_EPS" = "xyes" && \
14408        test "x$HAVE_DVIPS" = "xyes" && \
14409        test "x$HAVE_PNGTOPNM" = "xyes" && \
14410        test "x$HAVE_PNMTOPS" = "xyes"; then
14411       DOC_PS=yes
14412       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output PS documentation" >&5
14413 $as_echo "$as_me: Will output PS documentation" >&6;}
14414     else
14415       DOC_PS=no
14416       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output PS documentation" >&5
14417 $as_echo "$as_me: Will not output PS documentation" >&6;}
14418     fi
14419
14420         if test "x$DOC_PS" = "xyes" && \
14421        test "x$enable_docbook" = "xyes" && \
14422        test "x$HAVE_XMLLINT" = "xyes" && \
14423        test "x$HAVE_PS2PDF" = "xyes"; then
14424       DOC_PDF=yes
14425       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output PDF documentation" >&5
14426 $as_echo "$as_me: Will output PDF documentation" >&6;}
14427     else
14428       DOC_PDF=no
14429       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output PDF documentation" >&5
14430 $as_echo "$as_me: Will not output PDF documentation" >&6;}
14431     fi
14432
14433         if test "x$have_docbook" != "xyes"; then
14434       enable_docbook=no
14435     fi
14436   fi
14437
14438     if test "x$have_docbook" = "xyes"; then
14439     { $as_echo "$as_me:${as_lineno-$LINENO}: Installing documentation in $docdir" >&5
14440 $as_echo "$as_me: Installing documentation in $docdir" >&6;}
14441
14442   fi
14443
14444    if test x$enable_docbook = xyes; then
14445   ENABLE_DOCBOOK_TRUE=
14446   ENABLE_DOCBOOK_FALSE='#'
14447 else
14448   ENABLE_DOCBOOK_TRUE='#'
14449   ENABLE_DOCBOOK_FALSE=
14450 fi
14451
14452    if test x$DOC_HTML = xyes; then
14453   DOC_HTML_TRUE=
14454   DOC_HTML_FALSE='#'
14455 else
14456   DOC_HTML_TRUE='#'
14457   DOC_HTML_FALSE=
14458 fi
14459
14460    if test x$DOC_PDF = xyes; then
14461   DOC_PDF_TRUE=
14462   DOC_PDF_FALSE='#'
14463 else
14464   DOC_PDF_TRUE='#'
14465   DOC_PDF_FALSE=
14466 fi
14467
14468    if test x$DOC_PS = xyes; then
14469   DOC_PS_TRUE=
14470   DOC_PS_FALSE='#'
14471 else
14472   DOC_PS_TRUE='#'
14473   DOC_PS_FALSE=
14474 fi
14475
14476
14477
14478
14479 # Check whether --with-html-dir was given.
14480 if test "${with_html_dir+set}" = set; then :
14481   withval=$with_html_dir;
14482 else
14483   with_html_dir='${datadir}/gtk-doc/html'
14484 fi
14485
14486   HTML_DIR="$with_html_dir"
14487
14488
14489     # Check whether --enable-gtk-doc was given.
14490 if test "${enable_gtk_doc+set}" = set; then :
14491   enableval=$enable_gtk_doc;
14492 else
14493   enable_gtk_doc=no
14494 fi
14495
14496
14497   if test x$enable_gtk_doc = xyes; then
14498     if test -n "$PKG_CONFIG" && \
14499     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.3\""; } >&5
14500   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.3") 2>&5
14501   ac_status=$?
14502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503   test $ac_status = 0; }; then
14504   :
14505 else
14506   as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build gtk-doc" "$LINENO" 5
14507 fi
14508     if test -z "$SED"; then
14509       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14510 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
14511 if ${ac_cv_path_SED+:} false; then :
14512   $as_echo_n "(cached) " >&6
14513 else
14514             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14515      for ac_i in 1 2 3 4 5 6 7; do
14516        ac_script="$ac_script$as_nl$ac_script"
14517      done
14518      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14519      { ac_script=; unset ac_script;}
14520      if test -z "$SED"; then
14521   ac_path_SED_found=false
14522   # Loop through the user's path and test for each of PROGNAME-LIST
14523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526   IFS=$as_save_IFS
14527   test -z "$as_dir" && as_dir=.
14528     for ac_prog in sed gsed; do
14529     for ac_exec_ext in '' $ac_executable_extensions; do
14530       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
14531       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
14532 # Check for GNU ac_path_SED and select it if it is found.
14533   # Check for GNU $ac_path_SED
14534 case `"$ac_path_SED" --version 2>&1` in
14535 *GNU*)
14536   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14537 *)
14538   ac_count=0
14539   $as_echo_n 0123456789 >"conftest.in"
14540   while :
14541   do
14542     cat "conftest.in" "conftest.in" >"conftest.tmp"
14543     mv "conftest.tmp" "conftest.in"
14544     cp "conftest.in" "conftest.nl"
14545     $as_echo '' >> "conftest.nl"
14546     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14547     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14548     as_fn_arith $ac_count + 1 && ac_count=$as_val
14549     if test $ac_count -gt ${ac_path_SED_max-0}; then
14550       # Best one so far, save it but keep looking for a better one
14551       ac_cv_path_SED="$ac_path_SED"
14552       ac_path_SED_max=$ac_count
14553     fi
14554     # 10*(2^10) chars as input seems more than enough
14555     test $ac_count -gt 10 && break
14556   done
14557   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14558 esac
14559
14560       $ac_path_SED_found && break 3
14561     done
14562   done
14563   done
14564 IFS=$as_save_IFS
14565   if test -z "$ac_cv_path_SED"; then
14566     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14567   fi
14568 else
14569   ac_cv_path_SED=$SED
14570 fi
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14574 $as_echo "$ac_cv_path_SED" >&6; }
14575  SED="$ac_cv_path_SED"
14576   rm -f conftest.sed
14577
14578     fi
14579   fi
14580
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14582 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14584 $as_echo "$enable_gtk_doc" >&6; }
14585
14586   for ac_prog in gtkdoc-check
14587 do
14588   # Extract the first word of "$ac_prog", so it can be a program name with args.
14589 set dummy $ac_prog; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
14593   $as_echo_n "(cached) " >&6
14594 else
14595   case $GTKDOC_CHECK in
14596   [\\/]* | ?:[\\/]*)
14597   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
14598   ;;
14599   *)
14600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 for as_dir in $PATH
14602 do
14603   IFS=$as_save_IFS
14604   test -z "$as_dir" && as_dir=.
14605     for ac_exec_ext in '' $ac_executable_extensions; do
14606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14607     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
14608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14609     break 2
14610   fi
14611 done
14612   done
14613 IFS=$as_save_IFS
14614
14615   ;;
14616 esac
14617 fi
14618 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
14619 if test -n "$GTKDOC_CHECK"; then
14620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14621 $as_echo "$GTKDOC_CHECK" >&6; }
14622 else
14623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625 fi
14626
14627
14628   test -n "$GTKDOC_CHECK" && break
14629 done
14630
14631
14632    if test x$enable_gtk_doc = xyes; then
14633   ENABLE_GTK_DOC_TRUE=
14634   ENABLE_GTK_DOC_FALSE='#'
14635 else
14636   ENABLE_GTK_DOC_TRUE='#'
14637   ENABLE_GTK_DOC_FALSE=
14638 fi
14639
14640    if test -n "$LIBTOOL"; then
14641   GTK_DOC_USE_LIBTOOL_TRUE=
14642   GTK_DOC_USE_LIBTOOL_FALSE='#'
14643 else
14644   GTK_DOC_USE_LIBTOOL_TRUE='#'
14645   GTK_DOC_USE_LIBTOOL_FALSE=
14646 fi
14647
14648
14649
14650
14651     PYTHON_CANDIDATES="python python2.2 python2.1 python2.0 python2 \
14652                      python1.6 python1.5"
14653
14654      { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for Python version >= 2.1" >&5
14655 $as_echo "$as_me: Looking for Python version >= 2.1" >&6;}
14656         prog="
14657 import sys, string
14658 minver = '2.1'
14659 # split string by '.' and convert to numeric
14660 minver_info = map(string.atoi, string.split(minver, '.'))
14661 # we can now do comparisons on the two lists:
14662 if sys.version_info >= tuple(minver_info):
14663         sys.exit(0)
14664 else:
14665         sys.exit(1)"
14666
14667     python_good=false
14668     for python_candidate in $PYTHON_CANDIDATES; do
14669       unset PYTHON
14670       # Extract the first word of "$python_candidate", so it can be a program name with args.
14671 set dummy $python_candidate; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_path_PYTHON+:} false; then :
14675   $as_echo_n "(cached) " >&6
14676 else
14677   case $PYTHON in
14678   [\\/]* | ?:[\\/]*)
14679   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14680   ;;
14681   *)
14682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14683 for as_dir in $PATH
14684 do
14685   IFS=$as_save_IFS
14686   test -z "$as_dir" && as_dir=.
14687     for ac_exec_ext in '' $ac_executable_extensions; do
14688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14689     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14691     break 2
14692   fi
14693 done
14694   done
14695 IFS=$as_save_IFS
14696
14697   ;;
14698 esac
14699 fi
14700 PYTHON=$ac_cv_path_PYTHON
14701 if test -n "$PYTHON"; then
14702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14703 $as_echo "$PYTHON" >&6; }
14704 else
14705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707 fi
14708
14709  1> /dev/null 2> /dev/null
14710
14711       if test "x$PYTHON" = "x"; then continue; fi
14712
14713       if $PYTHON -c "$prog" 1>&5 2>&5; then
14714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"$PYTHON\":" >&5
14715 $as_echo_n "checking \"$PYTHON\":... " >&6; }
14716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
14717 $as_echo "okay" >&6; }
14718         python_good=true
14719         break;
14720       else
14721                 unset ac_cv_path_PYTHON
14722       fi
14723     done
14724
14725
14726   if test "$python_good" != "true"; then
14727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable version of python found" >&5
14728 $as_echo "$as_me: WARNING: No suitable version of python found" >&2;}
14729     PYTHON=
14730   else
14731
14732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking local Python configuration" >&5
14733 $as_echo_n "checking local Python configuration... " >&6; }
14734
14735
14736
14737     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
14738
14739
14740
14741
14742   PYTHON_PREFIX='${prefix}'
14743
14744
14745   PYTHON_EXEC_PREFIX='${exec_prefix}'
14746
14747
14748
14749   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
14750
14751
14752
14753
14754
14755   pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
14756
14757
14758
14759   pkgpythondir=\${pythondir}/$PACKAGE
14760
14761
14762
14763   pyexecdir=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
14764
14765
14766
14767   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14768
14769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks good" >&5
14770 $as_echo "looks good" >&6; }
14771
14772   fi
14773
14774
14775
14776   build_plugin_docs=no
14777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build plugin documentation" >&5
14778 $as_echo_n "checking whether to build plugin documentation... " >&6; }
14779   if test x$enable_gtk_doc = xyes; then
14780     build_plugin_docs=yes
14781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14782 $as_echo "yes" >&6; }
14783   else
14784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (gtk-doc disabled or not available)" >&5
14785 $as_echo "no (gtk-doc disabled or not available)" >&6; }
14786   fi
14787
14788    if test x$build_plugin_docs = xyes; then
14789   ENABLE_PLUGIN_DOCS_TRUE=
14790   ENABLE_PLUGIN_DOCS_FALSE='#'
14791 else
14792   ENABLE_PLUGIN_DOCS_TRUE='#'
14793   ENABLE_PLUGIN_DOCS_FALSE=
14794 fi
14795
14796
14797
14798
14799 LIBM=
14800 case $host in
14801 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14802   # These system don't have libm, or don't need it
14803   ;;
14804 *-ncr-sysv4.3*)
14805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14806 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14807 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14808   $as_echo_n "(cached) " >&6
14809 else
14810   ac_check_lib_save_LIBS=$LIBS
14811 LIBS="-lmw  $LIBS"
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h.  */
14814
14815 /* Override any GCC internal prototype to avoid an error.
14816    Use char because int might match the return type of a GCC
14817    builtin and then its argument prototype would still apply.  */
14818 #ifdef __cplusplus
14819 extern "C"
14820 #endif
14821 char _mwvalidcheckl ();
14822 int
14823 main ()
14824 {
14825 return _mwvalidcheckl ();
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_c_try_link "$LINENO"; then :
14831   ac_cv_lib_mw__mwvalidcheckl=yes
14832 else
14833   ac_cv_lib_mw__mwvalidcheckl=no
14834 fi
14835 rm -f core conftest.err conftest.$ac_objext \
14836     conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14838 fi
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14840 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14841 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14842   LIBM="-lmw"
14843 fi
14844
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14846 $as_echo_n "checking for cos in -lm... " >&6; }
14847 if ${ac_cv_lib_m_cos+:} false; then :
14848   $as_echo_n "(cached) " >&6
14849 else
14850   ac_check_lib_save_LIBS=$LIBS
14851 LIBS="-lm  $LIBS"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h.  */
14854
14855 /* Override any GCC internal prototype to avoid an error.
14856    Use char because int might match the return type of a GCC
14857    builtin and then its argument prototype would still apply.  */
14858 #ifdef __cplusplus
14859 extern "C"
14860 #endif
14861 char cos ();
14862 int
14863 main ()
14864 {
14865 return cos ();
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 if ac_fn_c_try_link "$LINENO"; then :
14871   ac_cv_lib_m_cos=yes
14872 else
14873   ac_cv_lib_m_cos=no
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext \
14876     conftest$ac_exeext conftest.$ac_ext
14877 LIBS=$ac_check_lib_save_LIBS
14878 fi
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14880 $as_echo "$ac_cv_lib_m_cos" >&6; }
14881 if test "x$ac_cv_lib_m_cos" = xyes; then :
14882   LIBM="$LIBM -lm"
14883 fi
14884
14885   ;;
14886 *)
14887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14888 $as_echo_n "checking for cos in -lm... " >&6; }
14889 if ${ac_cv_lib_m_cos+:} false; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892   ac_check_lib_save_LIBS=$LIBS
14893 LIBS="-lm  $LIBS"
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h.  */
14896
14897 /* Override any GCC internal prototype to avoid an error.
14898    Use char because int might match the return type of a GCC
14899    builtin and then its argument prototype would still apply.  */
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 char cos ();
14904 int
14905 main ()
14906 {
14907 return cos ();
14908   ;
14909   return 0;
14910 }
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"; then :
14913   ac_cv_lib_m_cos=yes
14914 else
14915   ac_cv_lib_m_cos=no
14916 fi
14917 rm -f core conftest.err conftest.$ac_objext \
14918     conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14920 fi
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14922 $as_echo "$ac_cv_lib_m_cos" >&6; }
14923 if test "x$ac_cv_lib_m_cos" = xyes; then :
14924   LIBM="-lm"
14925 fi
14926
14927   ;;
14928 esac
14929
14930
14931
14932
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14935 $as_echo_n "checking for ANSI C header files... " >&6; }
14936 if ${ac_cv_header_stdc+:} false; then :
14937   $as_echo_n "(cached) " >&6
14938 else
14939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h.  */
14941 #include <stdlib.h>
14942 #include <stdarg.h>
14943 #include <string.h>
14944 #include <float.h>
14945
14946 int
14947 main ()
14948 {
14949
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_compile "$LINENO"; then :
14955   ac_cv_header_stdc=yes
14956 else
14957   ac_cv_header_stdc=no
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14960
14961 if test $ac_cv_header_stdc = yes; then
14962   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h.  */
14965 #include <string.h>
14966
14967 _ACEOF
14968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14969   $EGREP "memchr" >/dev/null 2>&1; then :
14970
14971 else
14972   ac_cv_header_stdc=no
14973 fi
14974 rm -f conftest*
14975
14976 fi
14977
14978 if test $ac_cv_header_stdc = yes; then
14979   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h.  */
14982 #include <stdlib.h>
14983
14984 _ACEOF
14985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14986   $EGREP "free" >/dev/null 2>&1; then :
14987
14988 else
14989   ac_cv_header_stdc=no
14990 fi
14991 rm -f conftest*
14992
14993 fi
14994
14995 if test $ac_cv_header_stdc = yes; then
14996   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14997   if test "$cross_compiling" = yes; then :
14998   :
14999 else
15000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h.  */
15002 #include <ctype.h>
15003 #include <stdlib.h>
15004 #if ((' ' & 0x0FF) == 0x020)
15005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15007 #else
15008 # define ISLOWER(c) \
15009                    (('a' <= (c) && (c) <= 'i') \
15010                      || ('j' <= (c) && (c) <= 'r') \
15011                      || ('s' <= (c) && (c) <= 'z'))
15012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15013 #endif
15014
15015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15016 int
15017 main ()
15018 {
15019   int i;
15020   for (i = 0; i < 256; i++)
15021     if (XOR (islower (i), ISLOWER (i))
15022         || toupper (i) != TOUPPER (i))
15023       return 2;
15024   return 0;
15025 }
15026 _ACEOF
15027 if ac_fn_c_try_run "$LINENO"; then :
15028
15029 else
15030   ac_cv_header_stdc=no
15031 fi
15032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15033   conftest.$ac_objext conftest.beam conftest.$ac_ext
15034 fi
15035
15036 fi
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15039 $as_echo "$ac_cv_header_stdc" >&6; }
15040 if test $ac_cv_header_stdc = yes; then
15041
15042 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15043
15044 fi
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054   module=gstreamer-$GST_MAJORMINOR
15055   minver=$GST_REQ
15056   name="GStreamer"
15057   required="yes"
15058
15059 pkg_failed=no
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
15061 $as_echo_n "checking for GST... " >&6; }
15062
15063 if test -n "$PKG_CONFIG"; then
15064     if test -n "$GST_CFLAGS"; then
15065         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
15066     else
15067         if test -n "$PKG_CONFIG" && \
15068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15069   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15070   ac_status=$?
15071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072   test $ac_status = 0; }; then
15073   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
15074 else
15075   pkg_failed=yes
15076 fi
15077     fi
15078 else
15079         pkg_failed=untried
15080 fi
15081 if test -n "$PKG_CONFIG"; then
15082     if test -n "$GST_LIBS"; then
15083         pkg_cv_GST_LIBS="$GST_LIBS"
15084     else
15085         if test -n "$PKG_CONFIG" && \
15086     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15087   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15088   ac_status=$?
15089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15090   test $ac_status = 0; }; then
15091   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
15092 else
15093   pkg_failed=yes
15094 fi
15095     fi
15096 else
15097         pkg_failed=untried
15098 fi
15099
15100
15101
15102 if test $pkg_failed = yes; then
15103
15104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15105         _pkg_short_errors_supported=yes
15106 else
15107         _pkg_short_errors_supported=no
15108 fi
15109         if test $_pkg_short_errors_supported = yes; then
15110                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
15111         else
15112                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
15113         fi
15114         # Put the nasty error message in config.log where it belongs
15115         echo "$GST_PKG_ERRORS" >&5
15116
15117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15118 $as_echo "no" >&6; }
15119
15120       HAVE_GST="no"
15121       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
15122 $as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
15123       if test "x$required" = "xyes"; then
15124         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15125       else
15126         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15127 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15128       fi
15129
15130 elif test $pkg_failed = untried; then
15131
15132       HAVE_GST="no"
15133       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PKG_ERRORS" >&5
15134 $as_echo "$as_me: $GST_PKG_ERRORS" >&6;}
15135       if test "x$required" = "xyes"; then
15136         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15137       else
15138         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15139 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15140       fi
15141
15142 else
15143         GST_CFLAGS=$pkg_cv_GST_CFLAGS
15144         GST_LIBS=$pkg_cv_GST_LIBS
15145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146 $as_echo "yes" >&6; }
15147
15148       HAVE_GST="yes"
15149
15150 fi
15151
15152
15153     if test -z $GST_TOOLS_DIR; then
15154     GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-$GST_MAJORMINOR`
15155     if test -z $GST_TOOLS_DIR; then
15156       as_fn_error $? "no tools dir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
15157     fi
15158   fi
15159   { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer tools in $GST_TOOLS_DIR" >&5
15160 $as_echo "$as_me: using GStreamer tools in $GST_TOOLS_DIR" >&6;}
15161
15162
15163         if test -z $GST_PLUGINS_DIR; then
15164     GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-$GST_MAJORMINOR`
15165     if test -z $GST_PLUGINS_DIR; then
15166       as_fn_error $? "no pluginsdir set in GStreamer pkg-config file, core upgrade needed." "$LINENO" 5
15167     fi
15168   fi
15169   { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&5
15170 $as_echo "$as_me: using GStreamer plug-ins in $GST_PLUGINS_DIR" >&6;}
15171
15172
15173
15174
15175   module=gstreamer-base-$GST_MAJORMINOR
15176   minver=$GST_REQ
15177   name="GStreamer Base Libraries"
15178   required="yes"
15179
15180 pkg_failed=no
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_BASE" >&5
15182 $as_echo_n "checking for GST_BASE... " >&6; }
15183
15184 if test -n "$PKG_CONFIG"; then
15185     if test -n "$GST_BASE_CFLAGS"; then
15186         pkg_cv_GST_BASE_CFLAGS="$GST_BASE_CFLAGS"
15187     else
15188         if test -n "$PKG_CONFIG" && \
15189     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15190   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15191   ac_status=$?
15192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15193   test $ac_status = 0; }; then
15194   pkg_cv_GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
15195 else
15196   pkg_failed=yes
15197 fi
15198     fi
15199 else
15200         pkg_failed=untried
15201 fi
15202 if test -n "$PKG_CONFIG"; then
15203     if test -n "$GST_BASE_LIBS"; then
15204         pkg_cv_GST_BASE_LIBS="$GST_BASE_LIBS"
15205     else
15206         if test -n "$PKG_CONFIG" && \
15207     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15208   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15209   ac_status=$?
15210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15211   test $ac_status = 0; }; then
15212   pkg_cv_GST_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
15213 else
15214   pkg_failed=yes
15215 fi
15216     fi
15217 else
15218         pkg_failed=untried
15219 fi
15220
15221
15222
15223 if test $pkg_failed = yes; then
15224
15225 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15226         _pkg_short_errors_supported=yes
15227 else
15228         _pkg_short_errors_supported=no
15229 fi
15230         if test $_pkg_short_errors_supported = yes; then
15231                 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
15232         else
15233                 GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
15234         fi
15235         # Put the nasty error message in config.log where it belongs
15236         echo "$GST_BASE_PKG_ERRORS" >&5
15237
15238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239 $as_echo "no" >&6; }
15240
15241       HAVE_GST_BASE="no"
15242       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
15243 $as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
15244       if test "x$required" = "xyes"; then
15245         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15246       else
15247         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15248 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15249       fi
15250
15251 elif test $pkg_failed = untried; then
15252
15253       HAVE_GST_BASE="no"
15254       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_BASE_PKG_ERRORS" >&5
15255 $as_echo "$as_me: $GST_BASE_PKG_ERRORS" >&6;}
15256       if test "x$required" = "xyes"; then
15257         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15258       else
15259         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15260 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15261       fi
15262
15263 else
15264         GST_BASE_CFLAGS=$pkg_cv_GST_BASE_CFLAGS
15265         GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS
15266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15267 $as_echo "yes" >&6; }
15268
15269       HAVE_GST_BASE="yes"
15270
15271 fi
15272
15273
15274
15275
15276
15277   module=gstreamer-plugins-base-$GST_MAJORMINOR
15278   minver=$GST_REQ
15279   name="GStreamer Base Plugins"
15280   required="yes"
15281
15282 pkg_failed=no
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PLUGINS_BASE" >&5
15284 $as_echo_n "checking for GST_PLUGINS_BASE... " >&6; }
15285
15286 if test -n "$PKG_CONFIG"; then
15287     if test -n "$GST_PLUGINS_BASE_CFLAGS"; then
15288         pkg_cv_GST_PLUGINS_BASE_CFLAGS="$GST_PLUGINS_BASE_CFLAGS"
15289     else
15290         if test -n "$PKG_CONFIG" && \
15291     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15292   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15293   ac_status=$?
15294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15295   test $ac_status = 0; }; then
15296   pkg_cv_GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
15297 else
15298   pkg_failed=yes
15299 fi
15300     fi
15301 else
15302         pkg_failed=untried
15303 fi
15304 if test -n "$PKG_CONFIG"; then
15305     if test -n "$GST_PLUGINS_BASE_LIBS"; then
15306         pkg_cv_GST_PLUGINS_BASE_LIBS="$GST_PLUGINS_BASE_LIBS"
15307     else
15308         if test -n "$PKG_CONFIG" && \
15309     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15310   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15311   ac_status=$?
15312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15313   test $ac_status = 0; }; then
15314   pkg_cv_GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
15315 else
15316   pkg_failed=yes
15317 fi
15318     fi
15319 else
15320         pkg_failed=untried
15321 fi
15322
15323
15324
15325 if test $pkg_failed = yes; then
15326
15327 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15328         _pkg_short_errors_supported=yes
15329 else
15330         _pkg_short_errors_supported=no
15331 fi
15332         if test $_pkg_short_errors_supported = yes; then
15333                 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
15334         else
15335                 GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
15336         fi
15337         # Put the nasty error message in config.log where it belongs
15338         echo "$GST_PLUGINS_BASE_PKG_ERRORS" >&5
15339
15340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15341 $as_echo "no" >&6; }
15342
15343       HAVE_GST_PLUGINS_BASE="no"
15344       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5
15345 $as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;}
15346       if test "x$required" = "xyes"; then
15347         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15348       else
15349         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15350 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15351       fi
15352
15353 elif test $pkg_failed = untried; then
15354
15355       HAVE_GST_PLUGINS_BASE="no"
15356       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_PLUGINS_BASE_PKG_ERRORS" >&5
15357 $as_echo "$as_me: $GST_PLUGINS_BASE_PKG_ERRORS" >&6;}
15358       if test "x$required" = "xyes"; then
15359         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15360       else
15361         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15362 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15363       fi
15364
15365 else
15366         GST_PLUGINS_BASE_CFLAGS=$pkg_cv_GST_PLUGINS_BASE_CFLAGS
15367         GST_PLUGINS_BASE_LIBS=$pkg_cv_GST_PLUGINS_BASE_LIBS
15368         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15369 $as_echo "yes" >&6; }
15370
15371       HAVE_GST_PLUGINS_BASE="yes"
15372
15373 fi
15374
15375
15376
15377   if test "x$HAVE_GST_PLUGINS_BASE" = "xyes"; then
15378                 if test -z $GSTPB_PLUGINS_DIR; then
15379       GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-$GST_MAJORMINOR`
15380       if test -z $GSTPB_PLUGINS_DIR; then
15381         as_fn_error $? "no pluginsdir set in GStreamer Base Plugins pkg-config file" "$LINENO" 5
15382       fi
15383     fi
15384     { $as_echo "$as_me:${as_lineno-$LINENO}: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&5
15385 $as_echo "$as_me: using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&6;}
15386     GST_PLUGINS_BASE_DIR="$GSTPB_PLUGINS_DIR/gst:$GSTPB_PLUGINS_DIR/sys:$GSTPB_PLUGINS_DIR/ext"
15387
15388
15389   fi
15390
15391
15392
15393   module=gstreamer-check-$GST_MAJORMINOR
15394   minver=$GST_REQ
15395   name="GStreamer Check unittest Library"
15396   required=no
15397
15398 pkg_failed=no
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_CHECK" >&5
15400 $as_echo_n "checking for GST_CHECK... " >&6; }
15401
15402 if test -n "$PKG_CONFIG"; then
15403     if test -n "$GST_CHECK_CFLAGS"; then
15404         pkg_cv_GST_CHECK_CFLAGS="$GST_CHECK_CFLAGS"
15405     else
15406         if test -n "$PKG_CONFIG" && \
15407     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15408   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15409   ac_status=$?
15410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15411   test $ac_status = 0; }; then
15412   pkg_cv_GST_CHECK_CFLAGS=`$PKG_CONFIG --cflags "$module >= $minver" 2>/dev/null`
15413 else
15414   pkg_failed=yes
15415 fi
15416     fi
15417 else
15418         pkg_failed=untried
15419 fi
15420 if test -n "$PKG_CONFIG"; then
15421     if test -n "$GST_CHECK_LIBS"; then
15422         pkg_cv_GST_CHECK_LIBS="$GST_CHECK_LIBS"
15423     else
15424         if test -n "$PKG_CONFIG" && \
15425     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$module >= \$minver\""; } >&5
15426   ($PKG_CONFIG --exists --print-errors "$module >= $minver") 2>&5
15427   ac_status=$?
15428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15429   test $ac_status = 0; }; then
15430   pkg_cv_GST_CHECK_LIBS=`$PKG_CONFIG --libs "$module >= $minver" 2>/dev/null`
15431 else
15432   pkg_failed=yes
15433 fi
15434     fi
15435 else
15436         pkg_failed=untried
15437 fi
15438
15439
15440
15441 if test $pkg_failed = yes; then
15442
15443 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15444         _pkg_short_errors_supported=yes
15445 else
15446         _pkg_short_errors_supported=no
15447 fi
15448         if test $_pkg_short_errors_supported = yes; then
15449                 GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$module >= $minver"`
15450         else
15451                 GST_CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$module >= $minver"`
15452         fi
15453         # Put the nasty error message in config.log where it belongs
15454         echo "$GST_CHECK_PKG_ERRORS" >&5
15455
15456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15457 $as_echo "no" >&6; }
15458
15459       HAVE_GST_CHECK="no"
15460       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
15461 $as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
15462       if test "x$required" = "xyes"; then
15463         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15464       else
15465         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15466 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15467       fi
15468
15469 elif test $pkg_failed = untried; then
15470
15471       HAVE_GST_CHECK="no"
15472       { $as_echo "$as_me:${as_lineno-$LINENO}: $GST_CHECK_PKG_ERRORS" >&5
15473 $as_echo "$as_me: $GST_CHECK_PKG_ERRORS" >&6;}
15474       if test "x$required" = "xyes"; then
15475         as_fn_error $? "no $module >= $minver ($name) found" "$LINENO" 5
15476       else
15477         { $as_echo "$as_me:${as_lineno-$LINENO}: no $module >= $minver ($name) found" >&5
15478 $as_echo "$as_me: no $module >= $minver ($name) found" >&6;}
15479       fi
15480
15481 else
15482         GST_CHECK_CFLAGS=$pkg_cv_GST_CHECK_CFLAGS
15483         GST_CHECK_LIBS=$pkg_cv_GST_CHECK_LIBS
15484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15485 $as_echo "yes" >&6; }
15486
15487       HAVE_GST_CHECK="yes"
15488
15489 fi
15490
15491
15492
15493  if test "x$HAVE_GST_CHECK" = "xyes"; then
15494   HAVE_GST_CHECK_TRUE=
15495   HAVE_GST_CHECK_FALSE='#'
15496 else
15497   HAVE_GST_CHECK_TRUE='#'
15498   HAVE_GST_CHECK_FALSE=
15499 fi
15500
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GStreamer Core Plugins in $GST_PLUGINS_DIR" >&5
15503 $as_echo "$as_me: Using GStreamer Core Plugins in $GST_PLUGINS_DIR" >&6;}
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&5
15505 $as_echo "$as_me: Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR" >&6;}
15506
15507
15508   ORC_REQ=$ORC_REQ
15509
15510   # Check whether --enable-orc was given.
15511 if test "${enable_orc+set}" = set; then :
15512   enableval=$enable_orc; case "${enableval}" in
15513     auto) enable_orc=auto ;;
15514     yes) enable_orc=yes ;;
15515     no)  enable_orc=no ;;
15516     *) as_fn_error $? "bad value ${enableval} for --enable-orc" "$LINENO" 5 ;;
15517   esac
15518
15519 else
15520   enable_orc=auto
15521 fi
15522
15523   if test "x$enable_orc" != "xno" ; then
15524
15525 pkg_failed=no
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ORC" >&5
15527 $as_echo_n "checking for ORC... " >&6; }
15528
15529 if test -n "$PKG_CONFIG"; then
15530     if test -n "$ORC_CFLAGS"; then
15531         pkg_cv_ORC_CFLAGS="$ORC_CFLAGS"
15532     else
15533         if test -n "$PKG_CONFIG" && \
15534     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
15535   ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
15536   ac_status=$?
15537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15538   test $ac_status = 0; }; then
15539   pkg_cv_ORC_CFLAGS=`$PKG_CONFIG --cflags "orc-0.4 >= $ORC_REQ" 2>/dev/null`
15540 else
15541   pkg_failed=yes
15542 fi
15543     fi
15544 else
15545         pkg_failed=untried
15546 fi
15547 if test -n "$PKG_CONFIG"; then
15548     if test -n "$ORC_LIBS"; then
15549         pkg_cv_ORC_LIBS="$ORC_LIBS"
15550     else
15551         if test -n "$PKG_CONFIG" && \
15552     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"orc-0.4 >= \$ORC_REQ\""; } >&5
15553   ($PKG_CONFIG --exists --print-errors "orc-0.4 >= $ORC_REQ") 2>&5
15554   ac_status=$?
15555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556   test $ac_status = 0; }; then
15557   pkg_cv_ORC_LIBS=`$PKG_CONFIG --libs "orc-0.4 >= $ORC_REQ" 2>/dev/null`
15558 else
15559   pkg_failed=yes
15560 fi
15561     fi
15562 else
15563         pkg_failed=untried
15564 fi
15565
15566
15567
15568 if test $pkg_failed = yes; then
15569
15570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15571         _pkg_short_errors_supported=yes
15572 else
15573         _pkg_short_errors_supported=no
15574 fi
15575         if test $_pkg_short_errors_supported = yes; then
15576                 ORC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
15577         else
15578                 ORC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "orc-0.4 >= $ORC_REQ"`
15579         fi
15580         # Put the nasty error message in config.log where it belongs
15581         echo "$ORC_PKG_ERRORS" >&5
15582
15583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15585
15586       if test "x$enable_orc" = "xyes" ; then
15587         as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
15588       fi
15589
15590 $as_echo "#define DISABLE_ORC 1" >>confdefs.h
15591
15592       HAVE_ORC=no
15593       HAVE_ORCC=no
15594
15595 elif test $pkg_failed = untried; then
15596
15597       if test "x$enable_orc" = "xyes" ; then
15598         as_fn_error $? "--enable-orc specified, but Orc >= $ORC_REQ not found" "$LINENO" 5
15599       fi
15600
15601 $as_echo "#define DISABLE_ORC 1" >>confdefs.h
15602
15603       HAVE_ORC=no
15604       HAVE_ORCC=no
15605
15606 else
15607         ORC_CFLAGS=$pkg_cv_ORC_CFLAGS
15608         ORC_LIBS=$pkg_cv_ORC_LIBS
15609         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610 $as_echo "yes" >&6; }
15611
15612
15613 $as_echo "#define HAVE_ORC 1" >>confdefs.h
15614
15615       HAVE_ORC=yes
15616       if test "x$ORCC" = "x" ; then
15617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable orcc" >&5
15618 $as_echo_n "checking for usable orcc... " >&6; }
15619         ORCC=`$PKG_CONFIG --variable=orcc orc-0.4`
15620                         if $ORCC --version 1> /dev/null 2> /dev/null; then :
15621
15622 else
15623   ORCC=`which orcc`
15624 fi
15625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ORCC" >&5
15626 $as_echo "$ORCC" >&6; }
15627       fi
15628
15629       ORCC_FLAGS="--compat $ORC_REQ"
15630
15631       if test "x$ORCC" = "x"; then :
15632   HAVE_ORCC=no
15633 else
15634   HAVE_ORCC=yes
15635 fi
15636
15637 fi
15638   else
15639
15640 $as_echo "#define DISABLE_ORC 1" >>confdefs.h
15641
15642     HAVE_ORC=no
15643     HAVE_ORCC=no
15644   fi
15645    if test "x$HAVE_ORC" = "xyes"; then
15646   HAVE_ORC_TRUE=
15647   HAVE_ORC_FALSE='#'
15648 else
15649   HAVE_ORC_TRUE='#'
15650   HAVE_ORC_FALSE=
15651 fi
15652
15653    if test "x$HAVE_ORCC" = "xyes"; then
15654   HAVE_ORCC_TRUE=
15655   HAVE_ORCC_FALSE='#'
15656 else
15657   HAVE_ORCC_TRUE='#'
15658   HAVE_ORCC_FALSE=
15659 fi
15660
15661
15662
15663
15664
15665
15666
15667   EXP_VAR=PLUGINDIR
15668   FROM_VAR=${libdir}/gstreamer-$GST_MAJORMINOR
15669
15670     prefix_save=$prefix
15671   exec_prefix_save=$exec_prefix
15672
15673     if test "x$prefix" = "xNONE"; then
15674     prefix="$ac_default_prefix"
15675   fi
15676     if test "x$exec_prefix" = "xNONE"; then
15677     exec_prefix=$prefix
15678   fi
15679
15680   full_var="$FROM_VAR"
15681     while true; do
15682     new_full_var="`eval echo $full_var`"
15683     if test "x$new_full_var" = "x$full_var"; then break; fi
15684     full_var=$new_full_var
15685   done
15686
15687     full_var=$new_full_var
15688   PLUGINDIR="$full_var"
15689
15690
15691     prefix=$prefix_save
15692   exec_prefix=$exec_prefix_save
15693
15694
15695 cat >>confdefs.h <<_ACEOF
15696 #define PLUGINDIR "$PLUGINDIR"
15697 _ACEOF
15698
15699   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $PLUGINDIR as the plugin install location" >&5
15700 $as_echo "$as_me: Using $PLUGINDIR as the plugin install location" >&6;}
15701
15702     plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
15703
15704
15705
15706
15707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands " >&5
15708 $as_echo_n "checking to see if compiler understands ... " >&6; }
15709
15710   save_CFLAGS="$CFLAGS"
15711   CFLAGS="$CFLAGS "
15712
15713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h.  */
15715
15716 int
15717 main ()
15718 {
15719
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 if ac_fn_c_try_compile "$LINENO"; then :
15725   flag_ok=yes
15726 else
15727   flag_ok=no
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730   CFLAGS="$save_CFLAGS"
15731
15732   if test "X$flag_ok" = Xyes ; then
15733
15734     true
15735   else
15736
15737     true
15738   fi
15739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15740 $as_echo "$flag_ok" >&6; }
15741
15742
15743
15744
15745
15746   WARNING_CFLAGS=""
15747   ERROR_CFLAGS=""
15748
15749
15750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
15751 $as_echo_n "checking to see if compiler understands -Wall... " >&6; }
15752
15753   save_CFLAGS="$CFLAGS"
15754   CFLAGS="$CFLAGS -Wall"
15755
15756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h.  */
15758
15759 int
15760 main ()
15761 {
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 if ac_fn_c_try_compile "$LINENO"; then :
15768   flag_ok=yes
15769 else
15770   flag_ok=no
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773   CFLAGS="$save_CFLAGS"
15774
15775   if test "X$flag_ok" = Xyes ; then
15776     WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
15777     true
15778   else
15779
15780     true
15781   fi
15782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15783 $as_echo "$flag_ok" >&6; }
15784
15785
15786
15787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5
15788 $as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; }
15789
15790   save_CFLAGS="$CFLAGS"
15791   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15792
15793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h.  */
15795
15796 int
15797 main ()
15798 {
15799
15800   ;
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805   flag_ok=yes
15806 else
15807   flag_ok=no
15808 fi
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15810   CFLAGS="$save_CFLAGS"
15811
15812   if test "X$flag_ok" = Xyes ; then
15813     WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement"
15814     true
15815   else
15816
15817     true
15818   fi
15819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15820 $as_echo "$flag_ok" >&6; }
15821
15822
15823
15824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wvla" >&5
15825 $as_echo_n "checking to see if compiler understands -Wvla... " >&6; }
15826
15827   save_CFLAGS="$CFLAGS"
15828   CFLAGS="$CFLAGS -Wvla"
15829
15830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h.  */
15832
15833 int
15834 main ()
15835 {
15836
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 if ac_fn_c_try_compile "$LINENO"; then :
15842   flag_ok=yes
15843 else
15844   flag_ok=no
15845 fi
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847   CFLAGS="$save_CFLAGS"
15848
15849   if test "X$flag_ok" = Xyes ; then
15850     WARNING_CFLAGS="$WARNING_CFLAGS -Wvla"
15851     true
15852   else
15853
15854     true
15855   fi
15856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15857 $as_echo "$flag_ok" >&6; }
15858
15859
15860
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wpointer-arith" >&5
15862 $as_echo_n "checking to see if compiler understands -Wpointer-arith... " >&6; }
15863
15864   save_CFLAGS="$CFLAGS"
15865   CFLAGS="$CFLAGS -Wpointer-arith"
15866
15867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h.  */
15869
15870 int
15871 main ()
15872 {
15873
15874   ;
15875   return 0;
15876 }
15877 _ACEOF
15878 if ac_fn_c_try_compile "$LINENO"; then :
15879   flag_ok=yes
15880 else
15881   flag_ok=no
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884   CFLAGS="$save_CFLAGS"
15885
15886   if test "X$flag_ok" = Xyes ; then
15887     WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith"
15888     true
15889   else
15890
15891     true
15892   fi
15893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15894 $as_echo "$flag_ok" >&6; }
15895
15896
15897     if test "x$GST_GIT" != "xno"
15898   then
15899
15900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
15901 $as_echo_n "checking to see if compiler understands -Werror... " >&6; }
15902
15903   save_CFLAGS="$CFLAGS"
15904   CFLAGS="$CFLAGS -Werror"
15905
15906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h.  */
15908
15909 int
15910 main ()
15911 {
15912
15913   ;
15914   return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_compile "$LINENO"; then :
15918   flag_ok=yes
15919 else
15920   flag_ok=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923   CFLAGS="$save_CFLAGS"
15924
15925   if test "X$flag_ok" = Xyes ; then
15926     ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
15927     true
15928   else
15929
15930     true
15931   fi
15932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15933 $as_echo "$flag_ok" >&6; }
15934
15935
15936         if test "x$ERROR_CFLAGS" = "x"
15937     then
15938
15939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -errwarn=%all" >&5
15940 $as_echo_n "checking to see if compiler understands -errwarn=%all... " >&6; }
15941
15942   save_CFLAGS="$CFLAGS"
15943   CFLAGS="$CFLAGS -errwarn=%all"
15944
15945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h.  */
15947
15948 int
15949 main ()
15950 {
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_compile "$LINENO"; then :
15957   flag_ok=yes
15958 else
15959   flag_ok=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962   CFLAGS="$save_CFLAGS"
15963
15964   if test "X$flag_ok" = Xyes ; then
15965
15966           ERROR_CFLAGS="-errwarn=%all"
15967                                                                                 for f in 'no%E_EMPTY_DECLARATION' \
15968                    'no%E_STATEMENT_NOT_REACHED' \
15969                    'no%E_ARGUEMENT_MISMATCH' \
15970                    'no%E_MACRO_REDEFINED' \
15971                    'no%E_LOOP_NOT_ENTERED_AT_TOP'
15972           do
15973
15974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -errwarn=%all,$f" >&5
15975 $as_echo_n "checking to see if compiler understands -errwarn=%all,$f... " >&6; }
15976
15977   save_CFLAGS="$CFLAGS"
15978   CFLAGS="$CFLAGS -errwarn=%all,$f"
15979
15980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h.  */
15982
15983 int
15984 main ()
15985 {
15986
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_compile "$LINENO"; then :
15992   flag_ok=yes
15993 else
15994   flag_ok=no
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997   CFLAGS="$save_CFLAGS"
15998
15999   if test "X$flag_ok" = Xyes ; then
16000
16001               ERROR_CFLAGS="$ERROR_CFLAGS,$f"
16002
16003     true
16004   else
16005
16006     true
16007   fi
16008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16009 $as_echo "$flag_ok" >&6; }
16010
16011           done
16012
16013     true
16014   else
16015
16016     true
16017   fi
16018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16019 $as_echo "$flag_ok" >&6; }
16020
16021     else
16022                         if test -n "$PKG_CONFIG" && \
16023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
16024   ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
16025   ac_status=$?
16026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16027   test $ac_status = 0; }; then
16028
16029
16030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5
16031 $as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; }
16032
16033   save_CFLAGS="$CFLAGS"
16034   CFLAGS="$CFLAGS -fno-strict-aliasing"
16035
16036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h.  */
16038
16039 int
16040 main ()
16041 {
16042
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 if ac_fn_c_try_compile "$LINENO"; then :
16048   flag_ok=yes
16049 else
16050   flag_ok=no
16051 fi
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053   CFLAGS="$save_CFLAGS"
16054
16055   if test "X$flag_ok" = Xyes ; then
16056     ERROR_CFLAGS="$ERROR_CFLAGS -fno-strict-aliasing"
16057     true
16058   else
16059
16060     true
16061   fi
16062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16063 $as_echo "$flag_ok" >&6; }
16064
16065
16066 fi
16067     fi
16068   fi
16069
16070   if test "x
16071     -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
16072     -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
16073     -Winit-self -Wmissing-include-dirs -Waddress
16074     -Waggregate-return -Wno-multichar -Wnested-externs " != "x"
16075   then
16076     UNSUPPORTED=""
16077     list="
16078     -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
16079     -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
16080     -Winit-self -Wmissing-include-dirs -Waddress
16081     -Waggregate-return -Wno-multichar -Wnested-externs "
16082     for each in $list
16083     do
16084
16085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $each" >&5
16086 $as_echo_n "checking to see if compiler understands $each... " >&6; }
16087
16088   save_CFLAGS="$CFLAGS"
16089   CFLAGS="$CFLAGS $each"
16090
16091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h.  */
16093
16094 int
16095 main ()
16096 {
16097
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 if ac_fn_c_try_compile "$LINENO"; then :
16103   flag_ok=yes
16104 else
16105   flag_ok=no
16106 fi
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108   CFLAGS="$save_CFLAGS"
16109
16110   if test "X$flag_ok" = Xyes ; then
16111     WARNING_CFLAGS="$WARNING_CFLAGS $each"
16112     true
16113   else
16114     UNSUPPORTED="$UNSUPPORTED $each"
16115     true
16116   fi
16117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
16118 $as_echo "$flag_ok" >&6; }
16119
16120     done
16121     if test "X$UNSUPPORTED" != X ; then
16122       { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
16123 $as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
16124     fi
16125   fi
16126
16127
16128
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CFLAGS to $WARNING_CFLAGS" >&5
16130 $as_echo "$as_me: set WARNING_CFLAGS to $WARNING_CFLAGS" >&6;}
16131   { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CFLAGS to $ERROR_CFLAGS" >&5
16132 $as_echo "$as_me: set ERROR_CFLAGS to $ERROR_CFLAGS" >&6;}
16133
16134
16135
16136       if test "x$GST_GIT" = "xyes"; then
16137     GST_LEVEL_DEFAULT=GST_LEVEL_ERROR
16138   else
16139     GST_LEVEL_DEFAULT=GST_LEVEL_NONE
16140   fi
16141
16142 cat >>confdefs.h <<_ACEOF
16143 #define GST_LEVEL_DEFAULT $GST_LEVEL_DEFAULT
16144 _ACEOF
16145
16146
16147
16148
16149
16150
16151 if test "x$USE_DEBUG" = xyes; then
16152    PROFILE_CFLAGS="-g"
16153 fi
16154
16155
16156 if test "x$GST_GIT" = "xyes"; then
16157   DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
16158 else
16159   DEPRECATED_CFLAGS=""
16160 fi
16161
16162
16163 GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
16164
16165
16166
16167 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
16168
16169
16170
16171 GST_ALL_LDFLAGS="-no-undefined"
16172
16173
16174 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^_*gst_plugin_desc.*' $GST_ALL_LDFLAGS"
16175
16176
16177
16178 case $host_os in
16179      darwin*)
16180         DARWIN_LDFLAGS="-Wl,-read_only_relocs,suppress"
16181         ;;
16182      *)
16183         DARWIN_LDFLAGS=""
16184         ;;
16185 esac
16186
16187
16188
16189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzlibVersion in -lbz2" >&5
16190 $as_echo_n "checking for BZ2_bzlibVersion in -lbz2... " >&6; }
16191 if ${ac_cv_lib_bz2_BZ2_bzlibVersion+:} false; then :
16192   $as_echo_n "(cached) " >&6
16193 else
16194   ac_check_lib_save_LIBS=$LIBS
16195 LIBS="-lbz2  $LIBS"
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h.  */
16198
16199 /* Override any GCC internal prototype to avoid an error.
16200    Use char because int might match the return type of a GCC
16201    builtin and then its argument prototype would still apply.  */
16202 #ifdef __cplusplus
16203 extern "C"
16204 #endif
16205 char BZ2_bzlibVersion ();
16206 int
16207 main ()
16208 {
16209 return BZ2_bzlibVersion ();
16210   ;
16211   return 0;
16212 }
16213 _ACEOF
16214 if ac_fn_c_try_link "$LINENO"; then :
16215   ac_cv_lib_bz2_BZ2_bzlibVersion=yes
16216 else
16217   ac_cv_lib_bz2_BZ2_bzlibVersion=no
16218 fi
16219 rm -f core conftest.err conftest.$ac_objext \
16220     conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzlibVersion" >&5
16224 $as_echo "$ac_cv_lib_bz2_BZ2_bzlibVersion" >&6; }
16225 if test "x$ac_cv_lib_bz2_BZ2_bzlibVersion" = xyes; then :
16226   HAVE_BZ2=yes
16227 else
16228   HAVE_BZ2=no
16229 fi
16230
16231   if test "x$HAVE_BZ2" = "xyes"; then
16232     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
16233 if test "x$ac_cv_header_bzlib_h" = xyes; then :
16234   :
16235 else
16236   HAVE_BZ2=no
16237 fi
16238
16239
16240     if test "x$HAVE_BZ2" = "xyes"; then
16241             have_bz2=yes
16242     else
16243       have_bz2=no
16244     fi
16245   else
16246     have_bz2=no
16247   fi
16248
16249
16250
16251  if test "x$have_bz2" = "xyes"; then
16252   HAVE_BZ2_TRUE=
16253   HAVE_BZ2_FALSE='#'
16254 else
16255   HAVE_BZ2_TRUE='#'
16256   HAVE_BZ2_FALSE=
16257 fi
16258
16259 if test "x$have_bz2" = "xno"; then
16260   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libbz2 not found, matroska demuxer will not be able to read bz2 tracks" >&5
16261 $as_echo "$as_me: WARNING: libbz2 not found, matroska demuxer will not be able to read bz2 tracks" >&2;}
16262 fi
16263
16264 # Check whether --enable-lgpl was given.
16265 if test "${enable_lgpl+set}" = set; then :
16266   enableval=$enable_lgpl;
16267 fi
16268
16269  if test "x$enable_lgpl" = "xyes"; then
16270   GST_FFMPEG_ENABLE_LGPL_TRUE=
16271   GST_FFMPEG_ENABLE_LGPL_FALSE='#'
16272 else
16273   GST_FFMPEG_ENABLE_LGPL_TRUE='#'
16274   GST_FFMPEG_ENABLE_LGPL_FALSE=
16275 fi
16276
16277 if test "x$enable_lgpl" = "xyes"; then
16278
16279 $as_echo "#define GST_FFMPEG_ENABLE_LGPL /**/" >>confdefs.h
16280
16281 fi
16282
16283
16284 HAVE_FFMPEG_UNINSTALLED=1
16285
16286
16287 # Check whether --with-system-ffmpeg was given.
16288 if test "${with_system_ffmpeg+set}" = set; then :
16289   withval=$with_system_ffmpeg;
16290 fi
16291
16292
16293 if test "x$with_system_ffmpeg" = "xyes"; then
16294
16295 pkg_failed=no
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFMPEG" >&5
16297 $as_echo_n "checking for FFMPEG... " >&6; }
16298
16299 if test -n "$PKG_CONFIG"; then
16300     if test -n "$FFMPEG_CFLAGS"; then
16301         pkg_cv_FFMPEG_CFLAGS="$FFMPEG_CFLAGS"
16302     else
16303         if test -n "$PKG_CONFIG" && \
16304     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat libavcodec libavutil\""; } >&5
16305   ($PKG_CONFIG --exists --print-errors "libavformat libavcodec libavutil") 2>&5
16306   ac_status=$?
16307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16308   test $ac_status = 0; }; then
16309   pkg_cv_FFMPEG_CFLAGS=`$PKG_CONFIG --cflags "libavformat libavcodec libavutil" 2>/dev/null`
16310 else
16311   pkg_failed=yes
16312 fi
16313     fi
16314 else
16315         pkg_failed=untried
16316 fi
16317 if test -n "$PKG_CONFIG"; then
16318     if test -n "$FFMPEG_LIBS"; then
16319         pkg_cv_FFMPEG_LIBS="$FFMPEG_LIBS"
16320     else
16321         if test -n "$PKG_CONFIG" && \
16322     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libavformat libavcodec libavutil\""; } >&5
16323   ($PKG_CONFIG --exists --print-errors "libavformat libavcodec libavutil") 2>&5
16324   ac_status=$?
16325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16326   test $ac_status = 0; }; then
16327   pkg_cv_FFMPEG_LIBS=`$PKG_CONFIG --libs "libavformat libavcodec libavutil" 2>/dev/null`
16328 else
16329   pkg_failed=yes
16330 fi
16331     fi
16332 else
16333         pkg_failed=untried
16334 fi
16335
16336
16337
16338 if test $pkg_failed = yes; then
16339
16340 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16341         _pkg_short_errors_supported=yes
16342 else
16343         _pkg_short_errors_supported=no
16344 fi
16345         if test $_pkg_short_errors_supported = yes; then
16346                 FFMPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavformat libavcodec libavutil"`
16347         else
16348                 FFMPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavformat libavcodec libavutil"`
16349         fi
16350         # Put the nasty error message in config.log where it belongs
16351         echo "$FFMPEG_PKG_ERRORS" >&5
16352
16353         as_fn_error $? "Package requirements (libavformat libavcodec libavutil) were not met:
16354
16355 $FFMPEG_PKG_ERRORS
16356
16357 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16358 installed software in a non-standard prefix.
16359
16360 Alternatively, you may set the environment variables FFMPEG_CFLAGS
16361 and FFMPEG_LIBS to avoid the need to call pkg-config.
16362 See the pkg-config man page for more details.
16363 " "$LINENO" 5
16364 elif test $pkg_failed = untried; then
16365         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16367 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16368 is in your PATH or set the PKG_CONFIG environment variable to the full
16369 path to pkg-config.
16370
16371 Alternatively, you may set the environment variables FFMPEG_CFLAGS
16372 and FFMPEG_LIBS to avoid the need to call pkg-config.
16373 See the pkg-config man page for more details.
16374
16375 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16376 See \`config.log' for more details" "$LINENO" 5; }
16377 else
16378         FFMPEG_CFLAGS=$pkg_cv_FFMPEG_CFLAGS
16379         FFMPEG_LIBS=$pkg_cv_FFMPEG_LIBS
16380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16381 $as_echo "yes" >&6; }
16382         :
16383 fi
16384   if test "x$enable_lgpl" != "xyes"; then
16385
16386 pkg_failed=no
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSTPROC" >&5
16388 $as_echo_n "checking for POSTPROC... " >&6; }
16389
16390 if test -n "$PKG_CONFIG"; then
16391     if test -n "$POSTPROC_CFLAGS"; then
16392         pkg_cv_POSTPROC_CFLAGS="$POSTPROC_CFLAGS"
16393     else
16394         if test -n "$PKG_CONFIG" && \
16395     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpostproc libavcodec libavutil\""; } >&5
16396   ($PKG_CONFIG --exists --print-errors "libpostproc libavcodec libavutil") 2>&5
16397   ac_status=$?
16398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16399   test $ac_status = 0; }; then
16400   pkg_cv_POSTPROC_CFLAGS=`$PKG_CONFIG --cflags "libpostproc libavcodec libavutil" 2>/dev/null`
16401 else
16402   pkg_failed=yes
16403 fi
16404     fi
16405 else
16406         pkg_failed=untried
16407 fi
16408 if test -n "$PKG_CONFIG"; then
16409     if test -n "$POSTPROC_LIBS"; then
16410         pkg_cv_POSTPROC_LIBS="$POSTPROC_LIBS"
16411     else
16412         if test -n "$PKG_CONFIG" && \
16413     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpostproc libavcodec libavutil\""; } >&5
16414   ($PKG_CONFIG --exists --print-errors "libpostproc libavcodec libavutil") 2>&5
16415   ac_status=$?
16416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16417   test $ac_status = 0; }; then
16418   pkg_cv_POSTPROC_LIBS=`$PKG_CONFIG --libs "libpostproc libavcodec libavutil" 2>/dev/null`
16419 else
16420   pkg_failed=yes
16421 fi
16422     fi
16423 else
16424         pkg_failed=untried
16425 fi
16426
16427
16428
16429 if test $pkg_failed = yes; then
16430
16431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16432         _pkg_short_errors_supported=yes
16433 else
16434         _pkg_short_errors_supported=no
16435 fi
16436         if test $_pkg_short_errors_supported = yes; then
16437                 POSTPROC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpostproc libavcodec libavutil"`
16438         else
16439                 POSTPROC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpostproc libavcodec libavutil"`
16440         fi
16441         # Put the nasty error message in config.log where it belongs
16442         echo "$POSTPROC_PKG_ERRORS" >&5
16443
16444         as_fn_error $? "Package requirements (libpostproc libavcodec libavutil) were not met:
16445
16446 $POSTPROC_PKG_ERRORS
16447
16448 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16449 installed software in a non-standard prefix.
16450
16451 Alternatively, you may set the environment variables POSTPROC_CFLAGS
16452 and POSTPROC_LIBS to avoid the need to call pkg-config.
16453 See the pkg-config man page for more details.
16454 " "$LINENO" 5
16455 elif test $pkg_failed = untried; then
16456         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16458 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16459 is in your PATH or set the PKG_CONFIG environment variable to the full
16460 path to pkg-config.
16461
16462 Alternatively, you may set the environment variables POSTPROC_CFLAGS
16463 and POSTPROC_LIBS to avoid the need to call pkg-config.
16464 See the pkg-config man page for more details.
16465
16466 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16467 See \`config.log' for more details" "$LINENO" 5; }
16468 else
16469         POSTPROC_CFLAGS=$pkg_cv_POSTPROC_CFLAGS
16470         POSTPROC_LIBS=$pkg_cv_POSTPROC_LIBS
16471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16472 $as_echo "yes" >&6; }
16473         :
16474 fi
16475   fi
16476
16477 pkg_failed=no
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWSCALE" >&5
16479 $as_echo_n "checking for SWSCALE... " >&6; }
16480
16481 if test -n "$PKG_CONFIG"; then
16482     if test -n "$SWSCALE_CFLAGS"; then
16483         pkg_cv_SWSCALE_CFLAGS="$SWSCALE_CFLAGS"
16484     else
16485         if test -n "$PKG_CONFIG" && \
16486     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale libavutil\""; } >&5
16487   ($PKG_CONFIG --exists --print-errors "libswscale libavutil") 2>&5
16488   ac_status=$?
16489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16490   test $ac_status = 0; }; then
16491   pkg_cv_SWSCALE_CFLAGS=`$PKG_CONFIG --cflags "libswscale libavutil" 2>/dev/null`
16492 else
16493   pkg_failed=yes
16494 fi
16495     fi
16496 else
16497         pkg_failed=untried
16498 fi
16499 if test -n "$PKG_CONFIG"; then
16500     if test -n "$SWSCALE_LIBS"; then
16501         pkg_cv_SWSCALE_LIBS="$SWSCALE_LIBS"
16502     else
16503         if test -n "$PKG_CONFIG" && \
16504     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale libavutil\""; } >&5
16505   ($PKG_CONFIG --exists --print-errors "libswscale libavutil") 2>&5
16506   ac_status=$?
16507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16508   test $ac_status = 0; }; then
16509   pkg_cv_SWSCALE_LIBS=`$PKG_CONFIG --libs "libswscale libavutil" 2>/dev/null`
16510 else
16511   pkg_failed=yes
16512 fi
16513     fi
16514 else
16515         pkg_failed=untried
16516 fi
16517
16518
16519
16520 if test $pkg_failed = yes; then
16521
16522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16523         _pkg_short_errors_supported=yes
16524 else
16525         _pkg_short_errors_supported=no
16526 fi
16527         if test $_pkg_short_errors_supported = yes; then
16528                 SWSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libswscale libavutil"`
16529         else
16530                 SWSCALE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libswscale libavutil"`
16531         fi
16532         # Put the nasty error message in config.log where it belongs
16533         echo "$SWSCALE_PKG_ERRORS" >&5
16534
16535         as_fn_error $? "Package requirements (libswscale libavutil) were not met:
16536
16537 $SWSCALE_PKG_ERRORS
16538
16539 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16540 installed software in a non-standard prefix.
16541
16542 Alternatively, you may set the environment variables SWSCALE_CFLAGS
16543 and SWSCALE_LIBS to avoid the need to call pkg-config.
16544 See the pkg-config man page for more details.
16545 " "$LINENO" 5
16546 elif test $pkg_failed = untried; then
16547         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16549 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
16550 is in your PATH or set the PKG_CONFIG environment variable to the full
16551 path to pkg-config.
16552
16553 Alternatively, you may set the environment variables SWSCALE_CFLAGS
16554 and SWSCALE_LIBS to avoid the need to call pkg-config.
16555 See the pkg-config man page for more details.
16556
16557 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16558 See \`config.log' for more details" "$LINENO" 5; }
16559 else
16560         SWSCALE_CFLAGS=$pkg_cv_SWSCALE_CFLAGS
16561         SWSCALE_LIBS=$pkg_cv_SWSCALE_LIBS
16562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16563 $as_echo "yes" >&6; }
16564         :
16565 fi
16566   saved_CPPFLAGS="$CPPFLAGS"
16567   CPPFLAGS="$CPPFLAGS $FFMPEG_CFLAGS"
16568   for ac_header in avi.h
16569 do :
16570   ac_fn_c_check_header_mongrel "$LINENO" "avi.h" "ac_cv_header_avi_h" "$ac_includes_default"
16571 if test "x$ac_cv_header_avi_h" = xyes; then :
16572   cat >>confdefs.h <<_ACEOF
16573 #define HAVE_AVI_H 1
16574 _ACEOF
16575
16576 fi
16577
16578 done
16579
16580   CPPFLAGS="$saved_CPPFLAGS"
16581
16582 $as_echo "#define FFMPEG_SOURCE \"system install\"" >>confdefs.h
16583
16584   HAVE_FFMPEG_UNINSTALLED=0
16585   { $as_echo "$as_me:${as_lineno-$LINENO}: Using system-installed FFMpeg code" >&5
16586 $as_echo "$as_me: Using system-installed FFMpeg code" >&6;}
16587   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16588   ======================================================================
16589    WARNING: you have chosen to build gst-ffmpeg against a random
16590    external version of Libav instead of building it against the tested
16591    internal Libav snapshot that is included with gst-ffmpeg.
16592
16593    This is a very bad idea.  So bad in fact that words cannot express
16594    just how bad it is.  Suffice to say that it is BAD.
16595
16596    The GStreamer developers cannot and will not support a gst-ffmpeg
16597    built this way.  Any bug reports that indicate there is an external
16598    version of Libav involved will be closed immediately without further
16599    investigation.
16600
16601    The reason such a setup can't be supported is that the Libav API
16602    and ABI is in constant flux, yet there aren't any official releases
16603    of the Libav library to develop against.  This makes it impossible
16604    to guarantee that gst-ffmpeg will work reliably, or even compile,
16605    with a randomly picked version Libav.  Even if gst-ffmpeg compiles
16606    and superficially appears to work fine against your chosen external
16607    Libav version, that might just not be the case on other systems, or
16608    even the same system at a later time, or when using decoders,
16609    encoders, demuxers or muxers that have not been tested.
16610
16611    Please do not create or distribute binary packages of gst-Libav
16612    that link against an external ffmpeg. Thank you!
16613   ======================================================================
16614   " >&5
16615 $as_echo "$as_me: WARNING:
16616   ======================================================================
16617    WARNING: you have chosen to build gst-ffmpeg against a random
16618    external version of Libav instead of building it against the tested
16619    internal Libav snapshot that is included with gst-ffmpeg.
16620
16621    This is a very bad idea.  So bad in fact that words cannot express
16622    just how bad it is.  Suffice to say that it is BAD.
16623
16624    The GStreamer developers cannot and will not support a gst-ffmpeg
16625    built this way.  Any bug reports that indicate there is an external
16626    version of Libav involved will be closed immediately without further
16627    investigation.
16628
16629    The reason such a setup can't be supported is that the Libav API
16630    and ABI is in constant flux, yet there aren't any official releases
16631    of the Libav library to develop against.  This makes it impossible
16632    to guarantee that gst-ffmpeg will work reliably, or even compile,
16633    with a randomly picked version Libav.  Even if gst-ffmpeg compiles
16634    and superficially appears to work fine against your chosen external
16635    Libav version, that might just not be the case on other systems, or
16636    even the same system at a later time, or when using decoders,
16637    encoders, demuxers or muxers that have not been tested.
16638
16639    Please do not create or distribute binary packages of gst-Libav
16640    that link against an external ffmpeg. Thank you!
16641   ======================================================================
16642   " >&2;}
16643
16644     sleep 15
16645 else
16646
16647   { $as_echo "$as_me:${as_lineno-$LINENO}: Using local Libav snapshot" >&5
16648 $as_echo "$as_me: Using local Libav snapshot" >&6;}
16649
16650     FFMPEG_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libavutil \
16651                  -I \$(top_srcdir)/gst-libs/ext/libav/libavformat \
16652                  -I \$(top_srcdir)/gst-libs/ext/libav/libavcodec \
16653                  -I \$(top_srcdir)/gst-libs/ext/libav \
16654                  -I \$(top_builddir)/gst-libs/ext/libav \
16655                  -Wno-deprecated-declarations"
16656
16657     FFMPEG_LIBS="\$(top_builddir)/gst-libs/ext/libav/libavformat/libavformat.a \
16658                \$(top_builddir)/gst-libs/ext/libav/libavcodec/libavcodec.a \
16659                \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a"
16660     POSTPROC_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libpostproc   \
16661                    -I \$(top_srcdir)/gst-libs/ext/libav/libavutil       \
16662                    -I \$(top_srcdir)/gst-libs/ext/libav/libavcodec      \
16663                    -I \$(top_srcdir)/gst-libs/ext/libav         \
16664                    -I \$(top_builddir)/gst-libs/ext/libav \
16665                    -Wno-deprecated-declarations"
16666
16667     POSTPROC_LIBS="\$(top_builddir)/gst-libs/ext/libav/libpostproc/libpostproc.a \
16668                  \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a"
16669
16670     SWSCALE_CFLAGS="-I \$(top_srcdir)/gst-libs/ext/libav/libswscale     \
16671                   -I \$(top_srcdir)/gst-libs/ext/libav/libavutil        \
16672                   -I \$(top_srcdir)/gst-libs/ext/libav  \
16673                    -I \$(top_builddir)/gst-libs/ext/libav \
16674                   -Wno-deprecated-declarations"
16675
16676     SWSCALE_LIBS="\$(top_builddir)/gst-libs/ext/libav/libswscale/libswscale.a \
16677                 \$(top_builddir)/gst-libs/ext/libav/libavutil/libavutil.a"
16678
16679   FFMPEG_SUBDIRS=gst-libs
16680   $as_echo "#define HAVE_AVI_H 1" >>confdefs.h
16681
16682
16683 $as_echo "#define FFMPEG_SOURCE \"local snapshot\"" >>confdefs.h
16684
16685
16686
16687 # Check whether --with-ffmpeg-extra-configure was given.
16688 if test "${with_ffmpeg_extra_configure+set}" = set; then :
16689   withval=$with_ffmpeg_extra_configure;
16690 else
16691   with_ffmpeg_extra_configure=no
16692 fi
16693
16694
16695   # basic arguments
16696   embffmpeg_configure_args="--prefix=$prefix"
16697
16698   # Enable pic and static so that we get .a files, but with PIC code.
16699   embffmpeg_configure_args="$embffmpeg_configure_args --disable-ffserver --disable-ffplay\
16700         --disable-ffmpeg --disable-ffprobe --enable-static --enable-pic \
16701         --disable-encoder=flac --disable-decoder=cavs --disable-protocols --disable-devices\
16702         --disable-network --disable-hwaccels --disable-filters --disable-doc\
16703         --enable-optimizations"
16704
16705   if test "x$enable_lgpl" != "xyes"; then
16706     embffmpeg_configure_args="$embffmpeg_configure_args --enable-postproc \
16707         --enable-gpl"
16708   fi
16709
16710   # if we are cross-compiling, tell ffmpeg so
16711   target_os=`echo $host_os | sed 's/-gnu//'`
16712   if test "x$cross_compiling" = xyes; then
16713     embffmpeg_configure_args="$embffmpeg_configure_args --enable-cross-compile \
16714         --target-os=$target_os --arch=$host_cpu --cross-prefix=$host_alias-"
16715   fi
16716
16717   case $host_os in
16718     # Unfortunately, in Mac OS 10.5 the current rev of ffmpeg builds
16719     # some non-PIC code into the .a file. See
16720     # http://trac.macosforge.org/projects/macports/ticket/13725 for more
16721     # info.
16722     darwin*)
16723       embffmpeg_configure_args="$embffmpeg_configure_args --disable-mmx --disable-altivec"
16724       ;;
16725     mingw32*)
16726       embffmpeg_configure_args="$embffmpeg_configure_args --enable-memalign-hack"
16727       WIN32_LIBS="-lws2_32"
16728       ;;
16729     *)
16730       WIN32_LIBS=
16731       ;;
16732   esac
16733
16734     FFMPEG_OPTS="(cd $srcdir/gst-libs/ext/libav && ./configure --help)"
16735   # Let's check if we can disable the building of the ffmpeg binary
16736   can_disable=`echo "$FFMPEG_OPTS" | grep 'disable-ffmpeg'`
16737   if test "$can_disable" != ""; then
16738     embffmpeg_configure_args="$embffmpeg_configure_args --disable-ffmpeg"
16739   fi
16740     can_enable=`echo "$FFMPEG_OPTS" | grep 'enable-swscale'`
16741   if test "$can_enable" != ""; then
16742     embffmpeg_configure_args="$embffmpeg_configure_args --enable-swscale"
16743   fi
16744
16745   # append extra configure options to embffmpeg_configure_args if needed
16746   if test "x$with_ffmpeg_extra_configure" != "xno"; then
16747     embffmpeg_configure_args="$embffmpeg_configure_args $with_ffmpeg_extra_configure"
16748   fi
16749
16750
16751
16752
16753
16754   ac_config_commands="$ac_config_commands configure-embedded-ffmpeg"
16755
16756   { $as_echo "$as_me:${as_lineno-$LINENO}: Using included Libav code" >&5
16757 $as_echo "$as_me: Using included Libav code" >&6;}
16758 fi
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769 if test x$HAVE_FFMPEG_UNINSTALLED = x1; then
16770
16771 $as_echo "#define HAVE_FFMPEG_UNINSTALLED /**/" >>confdefs.h
16772
16773 fi
16774  if test x$HAVE_FFMPEG_UNINSTALLED = x1; then
16775   HAVE_FFMPEG_UNINSTALLED_TRUE=
16776   HAVE_FFMPEG_UNINSTALLED_FALSE='#'
16777 else
16778   HAVE_FFMPEG_UNINSTALLED_TRUE='#'
16779   HAVE_FFMPEG_UNINSTALLED_FALSE=
16780 fi
16781
16782
16783 ac_config_files="$ac_config_files Makefile common/Makefile common/m4/Makefile gst-ffmpeg.spec ext/Makefile ext/ffmpeg/Makefile ext/libpostproc/Makefile ext/libswscale/Makefile gst-libs/Makefile gst-libs/ext/Makefile docs/Makefile docs/version.entities tests/Makefile tests/check/Makefile tests/files/Makefile"
16784
16785 cat >confcache <<\_ACEOF
16786 # This file is a shell script that caches the results of configure
16787 # tests run on this system so they can be shared between configure
16788 # scripts and configure runs, see configure's option --config-cache.
16789 # It is not useful on other systems.  If it contains results you don't
16790 # want to keep, you may remove or edit it.
16791 #
16792 # config.status only pays attention to the cache file if you give it
16793 # the --recheck option to rerun configure.
16794 #
16795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16797 # following values.
16798
16799 _ACEOF
16800
16801 # The following way of writing the cache mishandles newlines in values,
16802 # but we know of no workaround that is simple, portable, and efficient.
16803 # So, we kill variables containing newlines.
16804 # Ultrix sh set writes to stderr and can't be redirected directly,
16805 # and sets the high bit in the cache file unless we assign to the vars.
16806 (
16807   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16808     eval ac_val=\$$ac_var
16809     case $ac_val in #(
16810     *${as_nl}*)
16811       case $ac_var in #(
16812       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16814       esac
16815       case $ac_var in #(
16816       _ | IFS | as_nl) ;; #(
16817       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16818       *) { eval $ac_var=; unset $ac_var;} ;;
16819       esac ;;
16820     esac
16821   done
16822
16823   (set) 2>&1 |
16824     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16825     *${as_nl}ac_space=\ *)
16826       # `set' does not quote correctly, so add quotes: double-quote
16827       # substitution turns \\\\ into \\, and sed turns \\ into \.
16828       sed -n \
16829         "s/'/'\\\\''/g;
16830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16831       ;; #(
16832     *)
16833       # `set' quotes correctly as required by POSIX, so do not add quotes.
16834       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16835       ;;
16836     esac |
16837     sort
16838 ) |
16839   sed '
16840      /^ac_cv_env_/b end
16841      t clear
16842      :clear
16843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16844      t end
16845      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16846      :end' >>confcache
16847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16848   if test -w "$cache_file"; then
16849     if test "x$cache_file" != "x/dev/null"; then
16850       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16851 $as_echo "$as_me: updating cache $cache_file" >&6;}
16852       if test ! -f "$cache_file" || test -h "$cache_file"; then
16853         cat confcache >"$cache_file"
16854       else
16855         case $cache_file in #(
16856         */* | ?:*)
16857           mv -f confcache "$cache_file"$$ &&
16858           mv -f "$cache_file"$$ "$cache_file" ;; #(
16859         *)
16860           mv -f confcache "$cache_file" ;;
16861         esac
16862       fi
16863     fi
16864   else
16865     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16867   fi
16868 fi
16869 rm -f confcache
16870
16871 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16872 # Let make expand exec_prefix.
16873 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16874
16875 DEFS=-DHAVE_CONFIG_H
16876
16877 ac_libobjs=
16878 ac_ltlibobjs=
16879 U=
16880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16881   # 1. Remove the extension, and $U if already installed.
16882   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16883   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16884   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16885   #    will be set to the directory where LIBOBJS objects are built.
16886   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16887   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16888 done
16889 LIBOBJS=$ac_libobjs
16890
16891 LTLIBOBJS=$ac_ltlibobjs
16892
16893
16894  if test -n "$EXEEXT"; then
16895   am__EXEEXT_TRUE=
16896   am__EXEEXT_FALSE='#'
16897 else
16898   am__EXEEXT_TRUE='#'
16899   am__EXEEXT_FALSE=
16900 fi
16901
16902 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16903   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16905 fi
16906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16907   as_fn_error $? "conditional \"AMDEP\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16909 fi
16910 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16911   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16913 fi
16914
16915 if test -z "${HAVE_CPU_I386_TRUE}" && test -z "${HAVE_CPU_I386_FALSE}"; then
16916   as_fn_error $? "conditional \"HAVE_CPU_I386\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${HAVE_CPU_PPC_TRUE}" && test -z "${HAVE_CPU_PPC_FALSE}"; then
16920   as_fn_error $? "conditional \"HAVE_CPU_PPC\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${HAVE_CPU_PPC64_TRUE}" && test -z "${HAVE_CPU_PPC64_FALSE}"; then
16924   as_fn_error $? "conditional \"HAVE_CPU_PPC64\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${HAVE_CPU_ALPHA_TRUE}" && test -z "${HAVE_CPU_ALPHA_FALSE}"; then
16928   as_fn_error $? "conditional \"HAVE_CPU_ALPHA\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${HAVE_CPU_ARM_TRUE}" && test -z "${HAVE_CPU_ARM_FALSE}"; then
16932   as_fn_error $? "conditional \"HAVE_CPU_ARM\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${HAVE_CPU_SPARC_TRUE}" && test -z "${HAVE_CPU_SPARC_FALSE}"; then
16936   as_fn_error $? "conditional \"HAVE_CPU_SPARC\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${HAVE_CPU_HPPA_TRUE}" && test -z "${HAVE_CPU_HPPA_FALSE}"; then
16940   as_fn_error $? "conditional \"HAVE_CPU_HPPA\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943 if test -z "${HAVE_CPU_MIPS_TRUE}" && test -z "${HAVE_CPU_MIPS_FALSE}"; then
16944   as_fn_error $? "conditional \"HAVE_CPU_MIPS\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947 if test -z "${HAVE_CPU_S390_TRUE}" && test -z "${HAVE_CPU_S390_FALSE}"; then
16948   as_fn_error $? "conditional \"HAVE_CPU_S390\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 fi
16951 if test -z "${HAVE_CPU_IA64_TRUE}" && test -z "${HAVE_CPU_IA64_FALSE}"; then
16952   as_fn_error $? "conditional \"HAVE_CPU_IA64\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954 fi
16955 if test -z "${HAVE_CPU_M68K_TRUE}" && test -z "${HAVE_CPU_M68K_FALSE}"; then
16956   as_fn_error $? "conditional \"HAVE_CPU_M68K\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16958 fi
16959 if test -z "${HAVE_CPU_X86_64_TRUE}" && test -z "${HAVE_CPU_X86_64_FALSE}"; then
16960   as_fn_error $? "conditional \"HAVE_CPU_X86_64\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16962 fi
16963 if test -z "${HAVE_CPU_CRIS_TRUE}" && test -z "${HAVE_CPU_CRIS_FALSE}"; then
16964   as_fn_error $? "conditional \"HAVE_CPU_CRIS\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${HAVE_CPU_CRISV32_TRUE}" && test -z "${HAVE_CPU_CRISV32_FALSE}"; then
16968   as_fn_error $? "conditional \"HAVE_CPU_CRISV32\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16972   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975 if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
16976   as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 fi
16979 if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
16980   as_fn_error $? "conditional \"ENABLE_DOCBOOK\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983 if test -z "${DOC_HTML_TRUE}" && test -z "${DOC_HTML_FALSE}"; then
16984   as_fn_error $? "conditional \"DOC_HTML\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 fi
16987 if test -z "${DOC_PDF_TRUE}" && test -z "${DOC_PDF_FALSE}"; then
16988   as_fn_error $? "conditional \"DOC_PDF\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 fi
16991 if test -z "${DOC_PS_TRUE}" && test -z "${DOC_PS_FALSE}"; then
16992   as_fn_error $? "conditional \"DOC_PS\" was never defined.
16993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16994 fi
16995 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
16996   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
16997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998 fi
16999 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
17000   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
17001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17002 fi
17003 if test -z "${ENABLE_PLUGIN_DOCS_TRUE}" && test -z "${ENABLE_PLUGIN_DOCS_FALSE}"; then
17004   as_fn_error $? "conditional \"ENABLE_PLUGIN_DOCS\" was never defined.
17005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17006 fi
17007 if test -z "${HAVE_GST_CHECK_TRUE}" && test -z "${HAVE_GST_CHECK_FALSE}"; then
17008   as_fn_error $? "conditional \"HAVE_GST_CHECK\" was never defined.
17009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17010 fi
17011 if test -z "${HAVE_ORC_TRUE}" && test -z "${HAVE_ORC_FALSE}"; then
17012   as_fn_error $? "conditional \"HAVE_ORC\" was never defined.
17013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17014 fi
17015 if test -z "${HAVE_ORCC_TRUE}" && test -z "${HAVE_ORCC_FALSE}"; then
17016   as_fn_error $? "conditional \"HAVE_ORCC\" was never defined.
17017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17018 fi
17019 if test -z "${HAVE_BZ2_TRUE}" && test -z "${HAVE_BZ2_FALSE}"; then
17020   as_fn_error $? "conditional \"HAVE_BZ2\" was never defined.
17021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17022 fi
17023 if test -z "${GST_FFMPEG_ENABLE_LGPL_TRUE}" && test -z "${GST_FFMPEG_ENABLE_LGPL_FALSE}"; then
17024   as_fn_error $? "conditional \"GST_FFMPEG_ENABLE_LGPL\" was never defined.
17025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17026 fi
17027 if test -z "${HAVE_FFMPEG_UNINSTALLED_TRUE}" && test -z "${HAVE_FFMPEG_UNINSTALLED_FALSE}"; then
17028   as_fn_error $? "conditional \"HAVE_FFMPEG_UNINSTALLED\" was never defined.
17029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17030 fi
17031
17032 : "${CONFIG_STATUS=./config.status}"
17033 ac_write_fail=0
17034 ac_clean_files_save=$ac_clean_files
17035 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17037 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17038 as_write_fail=0
17039 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17040 #! $SHELL
17041 # Generated by $as_me.
17042 # Run this file to recreate the current configuration.
17043 # Compiler output produced by configure, useful for debugging
17044 # configure, is in config.log if it exists.
17045
17046 debug=false
17047 ac_cs_recheck=false
17048 ac_cs_silent=false
17049
17050 SHELL=\${CONFIG_SHELL-$SHELL}
17051 export SHELL
17052 _ASEOF
17053 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17054 ## -------------------- ##
17055 ## M4sh Initialization. ##
17056 ## -------------------- ##
17057
17058 # Be more Bourne compatible
17059 DUALCASE=1; export DUALCASE # for MKS sh
17060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17061   emulate sh
17062   NULLCMD=:
17063   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17064   # is contrary to our usage.  Disable this feature.
17065   alias -g '${1+"$@"}'='"$@"'
17066   setopt NO_GLOB_SUBST
17067 else
17068   case `(set -o) 2>/dev/null` in #(
17069   *posix*) :
17070     set -o posix ;; #(
17071   *) :
17072      ;;
17073 esac
17074 fi
17075
17076
17077 as_nl='
17078 '
17079 export as_nl
17080 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17081 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17083 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17084 # Prefer a ksh shell builtin over an external printf program on Solaris,
17085 # but without wasting forks for bash or zsh.
17086 if test -z "$BASH_VERSION$ZSH_VERSION" \
17087     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17088   as_echo='print -r --'
17089   as_echo_n='print -rn --'
17090 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17091   as_echo='printf %s\n'
17092   as_echo_n='printf %s'
17093 else
17094   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17095     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17096     as_echo_n='/usr/ucb/echo -n'
17097   else
17098     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17099     as_echo_n_body='eval
17100       arg=$1;
17101       case $arg in #(
17102       *"$as_nl"*)
17103         expr "X$arg" : "X\\(.*\\)$as_nl";
17104         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17105       esac;
17106       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17107     '
17108     export as_echo_n_body
17109     as_echo_n='sh -c $as_echo_n_body as_echo'
17110   fi
17111   export as_echo_body
17112   as_echo='sh -c $as_echo_body as_echo'
17113 fi
17114
17115 # The user is always right.
17116 if test "${PATH_SEPARATOR+set}" != set; then
17117   PATH_SEPARATOR=:
17118   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17119     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17120       PATH_SEPARATOR=';'
17121   }
17122 fi
17123
17124
17125 # IFS
17126 # We need space, tab and new line, in precisely that order.  Quoting is
17127 # there to prevent editors from complaining about space-tab.
17128 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17129 # splitting by setting IFS to empty value.)
17130 IFS=" ""        $as_nl"
17131
17132 # Find who we are.  Look in the path if we contain no directory separator.
17133 as_myself=
17134 case $0 in #((
17135   *[\\/]* ) as_myself=$0 ;;
17136   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17137 for as_dir in $PATH
17138 do
17139   IFS=$as_save_IFS
17140   test -z "$as_dir" && as_dir=.
17141     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17142   done
17143 IFS=$as_save_IFS
17144
17145      ;;
17146 esac
17147 # We did not find ourselves, most probably we were run as `sh COMMAND'
17148 # in which case we are not to be found in the path.
17149 if test "x$as_myself" = x; then
17150   as_myself=$0
17151 fi
17152 if test ! -f "$as_myself"; then
17153   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17154   exit 1
17155 fi
17156
17157 # Unset variables that we do not need and which cause bugs (e.g. in
17158 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17159 # suppresses any "Segmentation fault" message there.  '((' could
17160 # trigger a bug in pdksh 5.2.14.
17161 for as_var in BASH_ENV ENV MAIL MAILPATH
17162 do eval test x\${$as_var+set} = xset \
17163   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17164 done
17165 PS1='$ '
17166 PS2='> '
17167 PS4='+ '
17168
17169 # NLS nuisances.
17170 LC_ALL=C
17171 export LC_ALL
17172 LANGUAGE=C
17173 export LANGUAGE
17174
17175 # CDPATH.
17176 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17177
17178
17179 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17180 # ----------------------------------------
17181 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17182 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17183 # script with STATUS, using 1 if that was 0.
17184 as_fn_error ()
17185 {
17186   as_status=$1; test $as_status -eq 0 && as_status=1
17187   if test "$4"; then
17188     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17189     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17190   fi
17191   $as_echo "$as_me: error: $2" >&2
17192   as_fn_exit $as_status
17193 } # as_fn_error
17194
17195
17196 # as_fn_set_status STATUS
17197 # -----------------------
17198 # Set $? to STATUS, without forking.
17199 as_fn_set_status ()
17200 {
17201   return $1
17202 } # as_fn_set_status
17203
17204 # as_fn_exit STATUS
17205 # -----------------
17206 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17207 as_fn_exit ()
17208 {
17209   set +e
17210   as_fn_set_status $1
17211   exit $1
17212 } # as_fn_exit
17213
17214 # as_fn_unset VAR
17215 # ---------------
17216 # Portably unset VAR.
17217 as_fn_unset ()
17218 {
17219   { eval $1=; unset $1;}
17220 }
17221 as_unset=as_fn_unset
17222 # as_fn_append VAR VALUE
17223 # ----------------------
17224 # Append the text in VALUE to the end of the definition contained in VAR. Take
17225 # advantage of any shell optimizations that allow amortized linear growth over
17226 # repeated appends, instead of the typical quadratic growth present in naive
17227 # implementations.
17228 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17229   eval 'as_fn_append ()
17230   {
17231     eval $1+=\$2
17232   }'
17233 else
17234   as_fn_append ()
17235   {
17236     eval $1=\$$1\$2
17237   }
17238 fi # as_fn_append
17239
17240 # as_fn_arith ARG...
17241 # ------------------
17242 # Perform arithmetic evaluation on the ARGs, and store the result in the
17243 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17244 # must be portable across $(()) and expr.
17245 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17246   eval 'as_fn_arith ()
17247   {
17248     as_val=$(( $* ))
17249   }'
17250 else
17251   as_fn_arith ()
17252   {
17253     as_val=`expr "$@" || test $? -eq 1`
17254   }
17255 fi # as_fn_arith
17256
17257
17258 if expr a : '\(a\)' >/dev/null 2>&1 &&
17259    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17260   as_expr=expr
17261 else
17262   as_expr=false
17263 fi
17264
17265 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17266   as_basename=basename
17267 else
17268   as_basename=false
17269 fi
17270
17271 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17272   as_dirname=dirname
17273 else
17274   as_dirname=false
17275 fi
17276
17277 as_me=`$as_basename -- "$0" ||
17278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17279          X"$0" : 'X\(//\)$' \| \
17280          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17281 $as_echo X/"$0" |
17282     sed '/^.*\/\([^/][^/]*\)\/*$/{
17283             s//\1/
17284             q
17285           }
17286           /^X\/\(\/\/\)$/{
17287             s//\1/
17288             q
17289           }
17290           /^X\/\(\/\).*/{
17291             s//\1/
17292             q
17293           }
17294           s/.*/./; q'`
17295
17296 # Avoid depending upon Character Ranges.
17297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17300 as_cr_digits='0123456789'
17301 as_cr_alnum=$as_cr_Letters$as_cr_digits
17302
17303 ECHO_C= ECHO_N= ECHO_T=
17304 case `echo -n x` in #(((((
17305 -n*)
17306   case `echo 'xy\c'` in
17307   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17308   xy)  ECHO_C='\c';;
17309   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17310        ECHO_T=' ';;
17311   esac;;
17312 *)
17313   ECHO_N='-n';;
17314 esac
17315
17316 rm -f conf$$ conf$$.exe conf$$.file
17317 if test -d conf$$.dir; then
17318   rm -f conf$$.dir/conf$$.file
17319 else
17320   rm -f conf$$.dir
17321   mkdir conf$$.dir 2>/dev/null
17322 fi
17323 if (echo >conf$$.file) 2>/dev/null; then
17324   if ln -s conf$$.file conf$$ 2>/dev/null; then
17325     as_ln_s='ln -s'
17326     # ... but there are two gotchas:
17327     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17328     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17329     # In both cases, we have to default to `cp -p'.
17330     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17331       as_ln_s='cp -p'
17332   elif ln conf$$.file conf$$ 2>/dev/null; then
17333     as_ln_s=ln
17334   else
17335     as_ln_s='cp -p'
17336   fi
17337 else
17338   as_ln_s='cp -p'
17339 fi
17340 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17341 rmdir conf$$.dir 2>/dev/null
17342
17343
17344 # as_fn_mkdir_p
17345 # -------------
17346 # Create "$as_dir" as a directory, including parents if necessary.
17347 as_fn_mkdir_p ()
17348 {
17349
17350   case $as_dir in #(
17351   -*) as_dir=./$as_dir;;
17352   esac
17353   test -d "$as_dir" || eval $as_mkdir_p || {
17354     as_dirs=
17355     while :; do
17356       case $as_dir in #(
17357       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17358       *) as_qdir=$as_dir;;
17359       esac
17360       as_dirs="'$as_qdir' $as_dirs"
17361       as_dir=`$as_dirname -- "$as_dir" ||
17362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17363          X"$as_dir" : 'X\(//\)[^/]' \| \
17364          X"$as_dir" : 'X\(//\)$' \| \
17365          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17366 $as_echo X"$as_dir" |
17367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17368             s//\1/
17369             q
17370           }
17371           /^X\(\/\/\)[^/].*/{
17372             s//\1/
17373             q
17374           }
17375           /^X\(\/\/\)$/{
17376             s//\1/
17377             q
17378           }
17379           /^X\(\/\).*/{
17380             s//\1/
17381             q
17382           }
17383           s/.*/./; q'`
17384       test -d "$as_dir" && break
17385     done
17386     test -z "$as_dirs" || eval "mkdir $as_dirs"
17387   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17388
17389
17390 } # as_fn_mkdir_p
17391 if mkdir -p . 2>/dev/null; then
17392   as_mkdir_p='mkdir -p "$as_dir"'
17393 else
17394   test -d ./-p && rmdir ./-p
17395   as_mkdir_p=false
17396 fi
17397
17398 if test -x / >/dev/null 2>&1; then
17399   as_test_x='test -x'
17400 else
17401   if ls -dL / >/dev/null 2>&1; then
17402     as_ls_L_option=L
17403   else
17404     as_ls_L_option=
17405   fi
17406   as_test_x='
17407     eval sh -c '\''
17408       if test -d "$1"; then
17409         test -d "$1/.";
17410       else
17411         case $1 in #(
17412         -*)set "./$1";;
17413         esac;
17414         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17415         ???[sx]*):;;*)false;;esac;fi
17416     '\'' sh
17417   '
17418 fi
17419 as_executable_p=$as_test_x
17420
17421 # Sed expression to map a string onto a valid CPP name.
17422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17423
17424 # Sed expression to map a string onto a valid variable name.
17425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17426
17427
17428 exec 6>&1
17429 ## ----------------------------------- ##
17430 ## Main body of $CONFIG_STATUS script. ##
17431 ## ----------------------------------- ##
17432 _ASEOF
17433 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17434
17435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17436 # Save the log message, to keep $0 and so on meaningful, and to
17437 # report actual input values of CONFIG_FILES etc. instead of their
17438 # values after options handling.
17439 ac_log="
17440 This file was extended by GStreamer Libav $as_me 0.10.13, which was
17441 generated by GNU Autoconf 2.68.  Invocation command line was
17442
17443   CONFIG_FILES    = $CONFIG_FILES
17444   CONFIG_HEADERS  = $CONFIG_HEADERS
17445   CONFIG_LINKS    = $CONFIG_LINKS
17446   CONFIG_COMMANDS = $CONFIG_COMMANDS
17447   $ $0 $@
17448
17449 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17450 "
17451
17452 _ACEOF
17453
17454 case $ac_config_files in *"
17455 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17456 esac
17457
17458 case $ac_config_headers in *"
17459 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17460 esac
17461
17462
17463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17464 # Files that config.status was made for.
17465 config_files="$ac_config_files"
17466 config_headers="$ac_config_headers"
17467 config_commands="$ac_config_commands"
17468
17469 _ACEOF
17470
17471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17472 ac_cs_usage="\
17473 \`$as_me' instantiates files and other configuration actions
17474 from templates according to the current configuration.  Unless the files
17475 and actions are specified as TAGs, all are instantiated by default.
17476
17477 Usage: $0 [OPTION]... [TAG]...
17478
17479   -h, --help       print this help, then exit
17480   -V, --version    print version number and configuration settings, then exit
17481       --config     print configuration, then exit
17482   -q, --quiet, --silent
17483                    do not print progress messages
17484   -d, --debug      don't remove temporary files
17485       --recheck    update $as_me by reconfiguring in the same conditions
17486       --file=FILE[:TEMPLATE]
17487                    instantiate the configuration file FILE
17488       --header=FILE[:TEMPLATE]
17489                    instantiate the configuration header FILE
17490
17491 Configuration files:
17492 $config_files
17493
17494 Configuration headers:
17495 $config_headers
17496
17497 Configuration commands:
17498 $config_commands
17499
17500 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>."
17501
17502 _ACEOF
17503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17504 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17505 ac_cs_version="\\
17506 GStreamer Libav config.status 0.10.13
17507 configured by $0, generated by GNU Autoconf 2.68,
17508   with options \\"\$ac_cs_config\\"
17509
17510 Copyright (C) 2010 Free Software Foundation, Inc.
17511 This config.status script is free software; the Free Software Foundation
17512 gives unlimited permission to copy, distribute and modify it."
17513
17514 ac_pwd='$ac_pwd'
17515 srcdir='$srcdir'
17516 INSTALL='$INSTALL'
17517 MKDIR_P='$MKDIR_P'
17518 AWK='$AWK'
17519 test -n "\$AWK" || AWK=awk
17520 _ACEOF
17521
17522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17523 # The default lists apply if the user does not specify any file.
17524 ac_need_defaults=:
17525 while test $# != 0
17526 do
17527   case $1 in
17528   --*=?*)
17529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17531     ac_shift=:
17532     ;;
17533   --*=)
17534     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17535     ac_optarg=
17536     ac_shift=:
17537     ;;
17538   *)
17539     ac_option=$1
17540     ac_optarg=$2
17541     ac_shift=shift
17542     ;;
17543   esac
17544
17545   case $ac_option in
17546   # Handling of the options.
17547   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17548     ac_cs_recheck=: ;;
17549   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17550     $as_echo "$ac_cs_version"; exit ;;
17551   --config | --confi | --conf | --con | --co | --c )
17552     $as_echo "$ac_cs_config"; exit ;;
17553   --debug | --debu | --deb | --de | --d | -d )
17554     debug=: ;;
17555   --file | --fil | --fi | --f )
17556     $ac_shift
17557     case $ac_optarg in
17558     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17559     '') as_fn_error $? "missing file argument" ;;
17560     esac
17561     as_fn_append CONFIG_FILES " '$ac_optarg'"
17562     ac_need_defaults=false;;
17563   --header | --heade | --head | --hea )
17564     $ac_shift
17565     case $ac_optarg in
17566     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17567     esac
17568     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17569     ac_need_defaults=false;;
17570   --he | --h)
17571     # Conflict between --help and --header
17572     as_fn_error $? "ambiguous option: \`$1'
17573 Try \`$0 --help' for more information.";;
17574   --help | --hel | -h )
17575     $as_echo "$ac_cs_usage"; exit ;;
17576   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17577   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17578     ac_cs_silent=: ;;
17579
17580   # This is an error.
17581   -*) as_fn_error $? "unrecognized option: \`$1'
17582 Try \`$0 --help' for more information." ;;
17583
17584   *) as_fn_append ac_config_targets " $1"
17585      ac_need_defaults=false ;;
17586
17587   esac
17588   shift
17589 done
17590
17591 ac_configure_extra_args=
17592
17593 if $ac_cs_silent; then
17594   exec 6>/dev/null
17595   ac_configure_extra_args="$ac_configure_extra_args --silent"
17596 fi
17597
17598 _ACEOF
17599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17600 if \$ac_cs_recheck; then
17601   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17602   shift
17603   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17604   CONFIG_SHELL='$SHELL'
17605   export CONFIG_SHELL
17606   exec "\$@"
17607 fi
17608
17609 _ACEOF
17610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17611 exec 5>>config.log
17612 {
17613   echo
17614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17615 ## Running $as_me. ##
17616 _ASBOX
17617   $as_echo "$ac_log"
17618 } >&5
17619
17620 _ACEOF
17621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17622 #
17623 # INIT-COMMANDS
17624 #
17625 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17626
17627
17628 # The HP-UX ksh and POSIX shell print the target directory to stdout
17629 # if CDPATH is set.
17630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17631
17632 sed_quote_subst='$sed_quote_subst'
17633 double_quote_subst='$double_quote_subst'
17634 delay_variable_subst='$delay_variable_subst'
17635 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17636 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17637 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17638 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17639 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17640 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17641 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17642 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17643 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17644 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17645 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17646 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17647 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17648 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17649 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17650 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17651 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17652 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17653 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17654 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17655 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17656 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17657 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17658 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17659 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17660 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17661 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17662 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17663 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17664 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17665 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17667 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17668 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17669 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17670 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17671 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17672 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17673 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17674 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17675 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17676 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17677 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17678 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17679 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17680 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17681 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17682 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17683 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17684 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17685 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17686 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17687 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17688 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17689 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17690 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17691 lt_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"`'
17692 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17693 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17694 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17695 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17696 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17697 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17698 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17699 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17700 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17701 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17702 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17703 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17704 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17705 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17706 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17707 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17708 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17709 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17710 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17711 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17712 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17713 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17714 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17715 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17716 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17717 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17718 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17719 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17720 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17721 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17722 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17723 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17724 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17725 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17726 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17727 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17728 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17729 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17730 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17731 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17732 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17733 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17734 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17735 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17736 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17737 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17738 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17739 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17740 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17741 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17742 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17743 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17744 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17745 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17746 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17747 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17748 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17749 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17750 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17751 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17752 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17753 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17754 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17755 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17756 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17757 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17758 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17759 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17760 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17761 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17762 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17763 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17764 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17765 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17766
17767 LTCC='$LTCC'
17768 LTCFLAGS='$LTCFLAGS'
17769 compiler='$compiler_DEFAULT'
17770
17771 # A function that is used when there is no print builtin or printf.
17772 func_fallback_echo ()
17773 {
17774   eval 'cat <<_LTECHO_EOF
17775 \$1
17776 _LTECHO_EOF'
17777 }
17778
17779 # Quote evaled strings.
17780 for var in AS \
17781 DLLTOOL \
17782 OBJDUMP \
17783 SHELL \
17784 ECHO \
17785 SED \
17786 GREP \
17787 EGREP \
17788 FGREP \
17789 LD \
17790 NM \
17791 LN_S \
17792 lt_SP2NL \
17793 lt_NL2SP \
17794 reload_flag \
17795 deplibs_check_method \
17796 file_magic_cmd \
17797 file_magic_glob \
17798 want_nocaseglob \
17799 sharedlib_from_linklib_cmd \
17800 AR \
17801 AR_FLAGS \
17802 archiver_list_spec \
17803 STRIP \
17804 RANLIB \
17805 CC \
17806 CFLAGS \
17807 compiler \
17808 lt_cv_sys_global_symbol_pipe \
17809 lt_cv_sys_global_symbol_to_cdecl \
17810 lt_cv_sys_global_symbol_to_c_name_address \
17811 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17812 nm_file_list_spec \
17813 lt_prog_compiler_no_builtin_flag \
17814 lt_prog_compiler_pic \
17815 lt_prog_compiler_wl \
17816 lt_prog_compiler_static \
17817 lt_cv_prog_compiler_c_o \
17818 need_locks \
17819 MANIFEST_TOOL \
17820 DSYMUTIL \
17821 NMEDIT \
17822 LIPO \
17823 OTOOL \
17824 OTOOL64 \
17825 shrext_cmds \
17826 export_dynamic_flag_spec \
17827 whole_archive_flag_spec \
17828 compiler_needs_object \
17829 with_gnu_ld \
17830 allow_undefined_flag \
17831 no_undefined_flag \
17832 hardcode_libdir_flag_spec \
17833 hardcode_libdir_flag_spec_ld \
17834 hardcode_libdir_separator \
17835 exclude_expsyms \
17836 include_expsyms \
17837 file_list_spec \
17838 variables_saved_for_relink \
17839 libname_spec \
17840 library_names_spec \
17841 soname_spec \
17842 install_override_mode \
17843 finish_eval \
17844 old_striplib \
17845 striplib; do
17846     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17847     *[\\\\\\\`\\"\\\$]*)
17848       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17849       ;;
17850     *)
17851       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17852       ;;
17853     esac
17854 done
17855
17856 # Double-quote double-evaled strings.
17857 for var in reload_cmds \
17858 old_postinstall_cmds \
17859 old_postuninstall_cmds \
17860 old_archive_cmds \
17861 extract_expsyms_cmds \
17862 old_archive_from_new_cmds \
17863 old_archive_from_expsyms_cmds \
17864 archive_cmds \
17865 archive_expsym_cmds \
17866 module_cmds \
17867 module_expsym_cmds \
17868 export_symbols_cmds \
17869 prelink_cmds \
17870 postlink_cmds \
17871 postinstall_cmds \
17872 postuninstall_cmds \
17873 finish_cmds \
17874 sys_lib_search_path_spec \
17875 sys_lib_dlsearch_path_spec; do
17876     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17877     *[\\\\\\\`\\"\\\$]*)
17878       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17879       ;;
17880     *)
17881       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17882       ;;
17883     esac
17884 done
17885
17886 ac_aux_dir='$ac_aux_dir'
17887 xsi_shell='$xsi_shell'
17888 lt_shell_append='$lt_shell_append'
17889
17890 # See if we are running on zsh, and set the options which allow our
17891 # commands through without removal of \ escapes INIT.
17892 if test -n "\${ZSH_VERSION+set}" ; then
17893    setopt NO_GLOB_SUBST
17894 fi
17895
17896
17897     PACKAGE='$PACKAGE'
17898     VERSION='$VERSION'
17899     TIMESTAMP='$TIMESTAMP'
17900     RM='$RM'
17901     ofile='$ofile'
17902
17903
17904
17905 embffmpeg_configure_args="$embffmpeg_configure_args"
17906
17907 _ACEOF
17908
17909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17910
17911 # Handling of arguments.
17912 for ac_config_target in $ac_config_targets
17913 do
17914   case $ac_config_target in
17915     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17916     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17917     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17918     "configure-embedded-ffmpeg") CONFIG_COMMANDS="$CONFIG_COMMANDS configure-embedded-ffmpeg" ;;
17919     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17920     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17921     "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
17922     "gst-ffmpeg.spec") CONFIG_FILES="$CONFIG_FILES gst-ffmpeg.spec" ;;
17923     "ext/Makefile") CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
17924     "ext/ffmpeg/Makefile") CONFIG_FILES="$CONFIG_FILES ext/ffmpeg/Makefile" ;;
17925     "ext/libpostproc/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libpostproc/Makefile" ;;
17926     "ext/libswscale/Makefile") CONFIG_FILES="$CONFIG_FILES ext/libswscale/Makefile" ;;
17927     "gst-libs/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/Makefile" ;;
17928     "gst-libs/ext/Makefile") CONFIG_FILES="$CONFIG_FILES gst-libs/ext/Makefile" ;;
17929     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17930     "docs/version.entities") CONFIG_FILES="$CONFIG_FILES docs/version.entities" ;;
17931     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17932     "tests/check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/check/Makefile" ;;
17933     "tests/files/Makefile") CONFIG_FILES="$CONFIG_FILES tests/files/Makefile" ;;
17934
17935   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17936   esac
17937 done
17938
17939
17940 # If the user did not use the arguments to specify the items to instantiate,
17941 # then the envvar interface is used.  Set only those that are not.
17942 # We use the long form for the default assignment because of an extremely
17943 # bizarre bug on SunOS 4.1.3.
17944 if $ac_need_defaults; then
17945   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17946   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17947   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17948 fi
17949
17950 # Have a temporary directory for convenience.  Make it in the build tree
17951 # simply because there is no reason against having it here, and in addition,
17952 # creating and moving files from /tmp can sometimes cause problems.
17953 # Hook for its removal unless debugging.
17954 # Note that there is a small window in which the directory will not be cleaned:
17955 # after its creation but before its name has been assigned to `$tmp'.
17956 $debug ||
17957 {
17958   tmp= ac_tmp=
17959   trap 'exit_status=$?
17960   : "${ac_tmp:=$tmp}"
17961   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17962 ' 0
17963   trap 'as_fn_exit 1' 1 2 13 15
17964 }
17965 # Create a (secure) tmp directory for tmp files.
17966
17967 {
17968   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17969   test -d "$tmp"
17970 }  ||
17971 {
17972   tmp=./conf$$-$RANDOM
17973   (umask 077 && mkdir "$tmp")
17974 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17975 ac_tmp=$tmp
17976
17977 # Set up the scripts for CONFIG_FILES section.
17978 # No need to generate them if there are no CONFIG_FILES.
17979 # This happens for instance with `./config.status config.h'.
17980 if test -n "$CONFIG_FILES"; then
17981
17982
17983 ac_cr=`echo X | tr X '\015'`
17984 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17985 # But we know of no other shell where ac_cr would be empty at this
17986 # point, so we can use a bashism as a fallback.
17987 if test "x$ac_cr" = x; then
17988   eval ac_cr=\$\'\\r\'
17989 fi
17990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17992   ac_cs_awk_cr='\\r'
17993 else
17994   ac_cs_awk_cr=$ac_cr
17995 fi
17996
17997 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17998 _ACEOF
17999
18000
18001 {
18002   echo "cat >conf$$subs.awk <<_ACEOF" &&
18003   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18004   echo "_ACEOF"
18005 } >conf$$subs.sh ||
18006   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18007 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18008 ac_delim='%!_!# '
18009 for ac_last_try in false false false false false :; do
18010   . ./conf$$subs.sh ||
18011     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18012
18013   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18014   if test $ac_delim_n = $ac_delim_num; then
18015     break
18016   elif $ac_last_try; then
18017     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18018   else
18019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18020   fi
18021 done
18022 rm -f conf$$subs.sh
18023
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18026 _ACEOF
18027 sed -n '
18028 h
18029 s/^/S["/; s/!.*/"]=/
18030 p
18031 g
18032 s/^[^!]*!//
18033 :repl
18034 t repl
18035 s/'"$ac_delim"'$//
18036 t delim
18037 :nl
18038 h
18039 s/\(.\{148\}\)..*/\1/
18040 t more1
18041 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18042 p
18043 n
18044 b repl
18045 :more1
18046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18047 p
18048 g
18049 s/.\{148\}//
18050 t nl
18051 :delim
18052 h
18053 s/\(.\{148\}\)..*/\1/
18054 t more2
18055 s/["\\]/\\&/g; s/^/"/; s/$/"/
18056 p
18057 b
18058 :more2
18059 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18060 p
18061 g
18062 s/.\{148\}//
18063 t delim
18064 ' <conf$$subs.awk | sed '
18065 /^[^""]/{
18066   N
18067   s/\n//
18068 }
18069 ' >>$CONFIG_STATUS || ac_write_fail=1
18070 rm -f conf$$subs.awk
18071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072 _ACAWK
18073 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18074   for (key in S) S_is_set[key] = 1
18075   FS = "\a"
18076
18077 }
18078 {
18079   line = $ 0
18080   nfields = split(line, field, "@")
18081   substed = 0
18082   len = length(field[1])
18083   for (i = 2; i < nfields; i++) {
18084     key = field[i]
18085     keylen = length(key)
18086     if (S_is_set[key]) {
18087       value = S[key]
18088       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18089       len += length(value) + length(field[++i])
18090       substed = 1
18091     } else
18092       len += 1 + keylen
18093   }
18094
18095   print line
18096 }
18097
18098 _ACAWK
18099 _ACEOF
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18102   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18103 else
18104   cat
18105 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18106   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18107 _ACEOF
18108
18109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18111 # trailing colons and then remove the whole line if VPATH becomes empty
18112 # (actually we leave an empty line to preserve line numbers).
18113 if test "x$srcdir" = x.; then
18114   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18115 h
18116 s///
18117 s/^/:/
18118 s/[      ]*$/:/
18119 s/:\$(srcdir):/:/g
18120 s/:\${srcdir}:/:/g
18121 s/:@srcdir@:/:/g
18122 s/^:*//
18123 s/:*$//
18124 x
18125 s/\(=[   ]*\).*/\1/
18126 G
18127 s/\n//
18128 s/^[^=]*=[       ]*$//
18129 }'
18130 fi
18131
18132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18133 fi # test -n "$CONFIG_FILES"
18134
18135 # Set up the scripts for CONFIG_HEADERS section.
18136 # No need to generate them if there are no CONFIG_HEADERS.
18137 # This happens for instance with `./config.status Makefile'.
18138 if test -n "$CONFIG_HEADERS"; then
18139 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18140 BEGIN {
18141 _ACEOF
18142
18143 # Transform confdefs.h into an awk script `defines.awk', embedded as
18144 # here-document in config.status, that substitutes the proper values into
18145 # config.h.in to produce config.h.
18146
18147 # Create a delimiter string that does not exist in confdefs.h, to ease
18148 # handling of long lines.
18149 ac_delim='%!_!# '
18150 for ac_last_try in false false :; do
18151   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18152   if test -z "$ac_tt"; then
18153     break
18154   elif $ac_last_try; then
18155     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18156   else
18157     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18158   fi
18159 done
18160
18161 # For the awk script, D is an array of macro values keyed by name,
18162 # likewise P contains macro parameters if any.  Preserve backslash
18163 # newline sequences.
18164
18165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18166 sed -n '
18167 s/.\{148\}/&'"$ac_delim"'/g
18168 t rset
18169 :rset
18170 s/^[     ]*#[    ]*define[       ][      ]*/ /
18171 t def
18172 d
18173 :def
18174 s/\\$//
18175 t bsnl
18176 s/["\\]/\\&/g
18177 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18178 D["\1"]=" \3"/p
18179 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18180 d
18181 :bsnl
18182 s/["\\]/\\&/g
18183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18184 D["\1"]=" \3\\\\\\n"\\/p
18185 t cont
18186 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18187 t cont
18188 d
18189 :cont
18190 n
18191 s/.\{148\}/&'"$ac_delim"'/g
18192 t clear
18193 :clear
18194 s/\\$//
18195 t bsnlc
18196 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18197 d
18198 :bsnlc
18199 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18200 b cont
18201 ' <confdefs.h | sed '
18202 s/'"$ac_delim"'/"\\\
18203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18204
18205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18206   for (key in D) D_is_set[key] = 1
18207   FS = "\a"
18208 }
18209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18210   line = \$ 0
18211   split(line, arg, " ")
18212   if (arg[1] == "#") {
18213     defundef = arg[2]
18214     mac1 = arg[3]
18215   } else {
18216     defundef = substr(arg[1], 2)
18217     mac1 = arg[2]
18218   }
18219   split(mac1, mac2, "(") #)
18220   macro = mac2[1]
18221   prefix = substr(line, 1, index(line, defundef) - 1)
18222   if (D_is_set[macro]) {
18223     # Preserve the white space surrounding the "#".
18224     print prefix "define", macro P[macro] D[macro]
18225     next
18226   } else {
18227     # Replace #undef with comments.  This is necessary, for example,
18228     # in the case of _POSIX_SOURCE, which is predefined and required
18229     # on some systems where configure will not decide to define it.
18230     if (defundef == "undef") {
18231       print "/*", prefix defundef, macro, "*/"
18232       next
18233     }
18234   }
18235 }
18236 { print }
18237 _ACAWK
18238 _ACEOF
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18240   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18241 fi # test -n "$CONFIG_HEADERS"
18242
18243
18244 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18245 shift
18246 for ac_tag
18247 do
18248   case $ac_tag in
18249   :[FHLC]) ac_mode=$ac_tag; continue;;
18250   esac
18251   case $ac_mode$ac_tag in
18252   :[FHL]*:*);;
18253   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18254   :[FH]-) ac_tag=-:-;;
18255   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18256   esac
18257   ac_save_IFS=$IFS
18258   IFS=:
18259   set x $ac_tag
18260   IFS=$ac_save_IFS
18261   shift
18262   ac_file=$1
18263   shift
18264
18265   case $ac_mode in
18266   :L) ac_source=$1;;
18267   :[FH])
18268     ac_file_inputs=
18269     for ac_f
18270     do
18271       case $ac_f in
18272       -) ac_f="$ac_tmp/stdin";;
18273       *) # Look for the file first in the build tree, then in the source tree
18274          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18275          # because $ac_f cannot contain `:'.
18276          test -f "$ac_f" ||
18277            case $ac_f in
18278            [\\/$]*) false;;
18279            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18280            esac ||
18281            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18282       esac
18283       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18284       as_fn_append ac_file_inputs " '$ac_f'"
18285     done
18286
18287     # Let's still pretend it is `configure' which instantiates (i.e., don't
18288     # use $as_me), people would be surprised to read:
18289     #    /* config.h.  Generated by config.status.  */
18290     configure_input='Generated from '`
18291           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18292         `' by configure.'
18293     if test x"$ac_file" != x-; then
18294       configure_input="$ac_file.  $configure_input"
18295       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18296 $as_echo "$as_me: creating $ac_file" >&6;}
18297     fi
18298     # Neutralize special characters interpreted by sed in replacement strings.
18299     case $configure_input in #(
18300     *\&* | *\|* | *\\* )
18301        ac_sed_conf_input=`$as_echo "$configure_input" |
18302        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18303     *) ac_sed_conf_input=$configure_input;;
18304     esac
18305
18306     case $ac_tag in
18307     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18308       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18309     esac
18310     ;;
18311   esac
18312
18313   ac_dir=`$as_dirname -- "$ac_file" ||
18314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18315          X"$ac_file" : 'X\(//\)[^/]' \| \
18316          X"$ac_file" : 'X\(//\)$' \| \
18317          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18318 $as_echo X"$ac_file" |
18319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18320             s//\1/
18321             q
18322           }
18323           /^X\(\/\/\)[^/].*/{
18324             s//\1/
18325             q
18326           }
18327           /^X\(\/\/\)$/{
18328             s//\1/
18329             q
18330           }
18331           /^X\(\/\).*/{
18332             s//\1/
18333             q
18334           }
18335           s/.*/./; q'`
18336   as_dir="$ac_dir"; as_fn_mkdir_p
18337   ac_builddir=.
18338
18339 case "$ac_dir" in
18340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18341 *)
18342   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18343   # A ".." for each directory in $ac_dir_suffix.
18344   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18345   case $ac_top_builddir_sub in
18346   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18347   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18348   esac ;;
18349 esac
18350 ac_abs_top_builddir=$ac_pwd
18351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18352 # for backward compatibility:
18353 ac_top_builddir=$ac_top_build_prefix
18354
18355 case $srcdir in
18356   .)  # We are building in place.
18357     ac_srcdir=.
18358     ac_top_srcdir=$ac_top_builddir_sub
18359     ac_abs_top_srcdir=$ac_pwd ;;
18360   [\\/]* | ?:[\\/]* )  # Absolute name.
18361     ac_srcdir=$srcdir$ac_dir_suffix;
18362     ac_top_srcdir=$srcdir
18363     ac_abs_top_srcdir=$srcdir ;;
18364   *) # Relative name.
18365     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18366     ac_top_srcdir=$ac_top_build_prefix$srcdir
18367     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18368 esac
18369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18370
18371
18372   case $ac_mode in
18373   :F)
18374   #
18375   # CONFIG_FILE
18376   #
18377
18378   case $INSTALL in
18379   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18380   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18381   esac
18382   ac_MKDIR_P=$MKDIR_P
18383   case $MKDIR_P in
18384   [\\/$]* | ?:[\\/]* ) ;;
18385   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18386   esac
18387 _ACEOF
18388
18389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18390 # If the template does not know about datarootdir, expand it.
18391 # FIXME: This hack should be removed a few years after 2.60.
18392 ac_datarootdir_hack=; ac_datarootdir_seen=
18393 ac_sed_dataroot='
18394 /datarootdir/ {
18395   p
18396   q
18397 }
18398 /@datadir@/p
18399 /@docdir@/p
18400 /@infodir@/p
18401 /@localedir@/p
18402 /@mandir@/p'
18403 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18404 *datarootdir*) ac_datarootdir_seen=yes;;
18405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18406   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18407 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18408 _ACEOF
18409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18410   ac_datarootdir_hack='
18411   s&@datadir@&$datadir&g
18412   s&@docdir@&$docdir&g
18413   s&@infodir@&$infodir&g
18414   s&@localedir@&$localedir&g
18415   s&@mandir@&$mandir&g
18416   s&\\\${datarootdir}&$datarootdir&g' ;;
18417 esac
18418 _ACEOF
18419
18420 # Neutralize VPATH when `$srcdir' = `.'.
18421 # Shell code in configure.ac might set extrasub.
18422 # FIXME: do we really want to maintain this feature?
18423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18424 ac_sed_extra="$ac_vpsub
18425 $extrasub
18426 _ACEOF
18427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18428 :t
18429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18430 s|@configure_input@|$ac_sed_conf_input|;t t
18431 s&@top_builddir@&$ac_top_builddir_sub&;t t
18432 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18433 s&@srcdir@&$ac_srcdir&;t t
18434 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18435 s&@top_srcdir@&$ac_top_srcdir&;t t
18436 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18437 s&@builddir@&$ac_builddir&;t t
18438 s&@abs_builddir@&$ac_abs_builddir&;t t
18439 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18440 s&@INSTALL@&$ac_INSTALL&;t t
18441 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18442 $ac_datarootdir_hack
18443 "
18444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18445   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18446
18447 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18448   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18449   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18450       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18451   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18452 which seems to be undefined.  Please make sure it is defined" >&5
18453 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18454 which seems to be undefined.  Please make sure it is defined" >&2;}
18455
18456   rm -f "$ac_tmp/stdin"
18457   case $ac_file in
18458   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18459   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18460   esac \
18461   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18462  ;;
18463   :H)
18464   #
18465   # CONFIG_HEADER
18466   #
18467   if test x"$ac_file" != x-; then
18468     {
18469       $as_echo "/* $configure_input  */" \
18470       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18471     } >"$ac_tmp/config.h" \
18472       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18473     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18474       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18475 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18476     else
18477       rm -f "$ac_file"
18478       mv "$ac_tmp/config.h" "$ac_file" \
18479         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18480     fi
18481   else
18482     $as_echo "/* $configure_input  */" \
18483       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18484       || as_fn_error $? "could not create -" "$LINENO" 5
18485   fi
18486 # Compute "$ac_file"'s index in $config_headers.
18487 _am_arg="$ac_file"
18488 _am_stamp_count=1
18489 for _am_header in $config_headers :; do
18490   case $_am_header in
18491     $_am_arg | $_am_arg:* )
18492       break ;;
18493     * )
18494       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18495   esac
18496 done
18497 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18498 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499          X"$_am_arg" : 'X\(//\)[^/]' \| \
18500          X"$_am_arg" : 'X\(//\)$' \| \
18501          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$_am_arg" |
18503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504             s//\1/
18505             q
18506           }
18507           /^X\(\/\/\)[^/].*/{
18508             s//\1/
18509             q
18510           }
18511           /^X\(\/\/\)$/{
18512             s//\1/
18513             q
18514           }
18515           /^X\(\/\).*/{
18516             s//\1/
18517             q
18518           }
18519           s/.*/./; q'`/stamp-h$_am_stamp_count
18520  ;;
18521
18522   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18523 $as_echo "$as_me: executing $ac_file commands" >&6;}
18524  ;;
18525   esac
18526
18527
18528   case $ac_file$ac_mode in
18529     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18530   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18531   # are listed without --file.  Let's play safe and only enable the eval
18532   # if we detect the quoting.
18533   case $CONFIG_FILES in
18534   *\'*) eval set x "$CONFIG_FILES" ;;
18535   *)   set x $CONFIG_FILES ;;
18536   esac
18537   shift
18538   for mf
18539   do
18540     # Strip MF so we end up with the name of the file.
18541     mf=`echo "$mf" | sed -e 's/:.*$//'`
18542     # Check whether this is an Automake generated Makefile or not.
18543     # We used to match only the files named `Makefile.in', but
18544     # some people rename them; so instead we look at the file content.
18545     # Grep'ing the first line is not enough: some people post-process
18546     # each Makefile.in and add a new line on top of each file to say so.
18547     # Grep'ing the whole file is not good either: AIX grep has a line
18548     # limit of 2048, but all sed's we know have understand at least 4000.
18549     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18550       dirpart=`$as_dirname -- "$mf" ||
18551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18552          X"$mf" : 'X\(//\)[^/]' \| \
18553          X"$mf" : 'X\(//\)$' \| \
18554          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18555 $as_echo X"$mf" |
18556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18557             s//\1/
18558             q
18559           }
18560           /^X\(\/\/\)[^/].*/{
18561             s//\1/
18562             q
18563           }
18564           /^X\(\/\/\)$/{
18565             s//\1/
18566             q
18567           }
18568           /^X\(\/\).*/{
18569             s//\1/
18570             q
18571           }
18572           s/.*/./; q'`
18573     else
18574       continue
18575     fi
18576     # Extract the definition of DEPDIR, am__include, and am__quote
18577     # from the Makefile without running `make'.
18578     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18579     test -z "$DEPDIR" && continue
18580     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18581     test -z "am__include" && continue
18582     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18583     # When using ansi2knr, U may be empty or an underscore; expand it
18584     U=`sed -n 's/^U = //p' < "$mf"`
18585     # Find all dependency output files, they are included files with
18586     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18587     # simplest approach to changing $(DEPDIR) to its actual value in the
18588     # expansion.
18589     for file in `sed -n "
18590       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18591          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18592       # Make sure the directory exists.
18593       test -f "$dirpart/$file" && continue
18594       fdir=`$as_dirname -- "$file" ||
18595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596          X"$file" : 'X\(//\)[^/]' \| \
18597          X"$file" : 'X\(//\)$' \| \
18598          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18599 $as_echo X"$file" |
18600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18601             s//\1/
18602             q
18603           }
18604           /^X\(\/\/\)[^/].*/{
18605             s//\1/
18606             q
18607           }
18608           /^X\(\/\/\)$/{
18609             s//\1/
18610             q
18611           }
18612           /^X\(\/\).*/{
18613             s//\1/
18614             q
18615           }
18616           s/.*/./; q'`
18617       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18618       # echo "creating $dirpart/$file"
18619       echo '# dummy' > "$dirpart/$file"
18620     done
18621   done
18622 }
18623  ;;
18624     "libtool":C)
18625
18626     # See if we are running on zsh, and set the options which allow our
18627     # commands through without removal of \ escapes.
18628     if test -n "${ZSH_VERSION+set}" ; then
18629       setopt NO_GLOB_SUBST
18630     fi
18631
18632     cfgfile="${ofile}T"
18633     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18634     $RM "$cfgfile"
18635
18636     cat <<_LT_EOF >> "$cfgfile"
18637 #! $SHELL
18638
18639 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18640 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18643 #
18644 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18645 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18646 #                 Inc.
18647 #   Written by Gordon Matzigkeit, 1996
18648 #
18649 #   This file is part of GNU Libtool.
18650 #
18651 # GNU Libtool is free software; you can redistribute it and/or
18652 # modify it under the terms of the GNU General Public License as
18653 # published by the Free Software Foundation; either version 2 of
18654 # the License, or (at your option) any later version.
18655 #
18656 # As a special exception to the GNU General Public License,
18657 # if you distribute this file as part of a program or library that
18658 # is built using GNU Libtool, you may include this file under the
18659 # same distribution terms that you use for the rest of that program.
18660 #
18661 # GNU Libtool is distributed in the hope that it will be useful,
18662 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18663 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18664 # GNU General Public License for more details.
18665 #
18666 # You should have received a copy of the GNU General Public License
18667 # along with GNU Libtool; see the file COPYING.  If not, a copy
18668 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18669 # obtained by writing to the Free Software Foundation, Inc.,
18670 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18671
18672
18673 # The names of the tagged configurations supported by this script.
18674 available_tags=""
18675
18676 # ### BEGIN LIBTOOL CONFIG
18677
18678 # Assembler program.
18679 AS=$lt_AS
18680
18681 # DLL creation program.
18682 DLLTOOL=$lt_DLLTOOL
18683
18684 # Object dumper program.
18685 OBJDUMP=$lt_OBJDUMP
18686
18687 # Which release of libtool.m4 was used?
18688 macro_version=$macro_version
18689 macro_revision=$macro_revision
18690
18691 # Whether or not to build shared libraries.
18692 build_libtool_libs=$enable_shared
18693
18694 # Whether or not to build static libraries.
18695 build_old_libs=$enable_static
18696
18697 # What type of objects to build.
18698 pic_mode=$pic_mode
18699
18700 # Whether or not to optimize for fast installation.
18701 fast_install=$enable_fast_install
18702
18703 # Shell to use when invoking shell scripts.
18704 SHELL=$lt_SHELL
18705
18706 # An echo program that protects backslashes.
18707 ECHO=$lt_ECHO
18708
18709 # The host system.
18710 host_alias=$host_alias
18711 host=$host
18712 host_os=$host_os
18713
18714 # The build system.
18715 build_alias=$build_alias
18716 build=$build
18717 build_os=$build_os
18718
18719 # A sed program that does not truncate output.
18720 SED=$lt_SED
18721
18722 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18723 Xsed="\$SED -e 1s/^X//"
18724
18725 # A grep program that handles long lines.
18726 GREP=$lt_GREP
18727
18728 # An ERE matcher.
18729 EGREP=$lt_EGREP
18730
18731 # A literal string matcher.
18732 FGREP=$lt_FGREP
18733
18734 # A BSD- or MS-compatible name lister.
18735 NM=$lt_NM
18736
18737 # Whether we need soft or hard links.
18738 LN_S=$lt_LN_S
18739
18740 # What is the maximum length of a command?
18741 max_cmd_len=$max_cmd_len
18742
18743 # Object file suffix (normally "o").
18744 objext=$ac_objext
18745
18746 # Executable file suffix (normally "").
18747 exeext=$exeext
18748
18749 # whether the shell understands "unset".
18750 lt_unset=$lt_unset
18751
18752 # turn spaces into newlines.
18753 SP2NL=$lt_lt_SP2NL
18754
18755 # turn newlines into spaces.
18756 NL2SP=$lt_lt_NL2SP
18757
18758 # convert \$build file names to \$host format.
18759 to_host_file_cmd=$lt_cv_to_host_file_cmd
18760
18761 # convert \$build files to toolchain format.
18762 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18763
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18766
18767 # Command to use when deplibs_check_method = "file_magic".
18768 file_magic_cmd=$lt_file_magic_cmd
18769
18770 # How to find potential files when deplibs_check_method = "file_magic".
18771 file_magic_glob=$lt_file_magic_glob
18772
18773 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18774 want_nocaseglob=$lt_want_nocaseglob
18775
18776 # Command to associate shared and link libraries.
18777 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18778
18779 # The archiver.
18780 AR=$lt_AR
18781
18782 # Flags to create an archive.
18783 AR_FLAGS=$lt_AR_FLAGS
18784
18785 # How to feed a file listing to the archiver.
18786 archiver_list_spec=$lt_archiver_list_spec
18787
18788 # A symbol stripping program.
18789 STRIP=$lt_STRIP
18790
18791 # Commands used to install an old-style archive.
18792 RANLIB=$lt_RANLIB
18793 old_postinstall_cmds=$lt_old_postinstall_cmds
18794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18795
18796 # Whether to use a lock for old archive extraction.
18797 lock_old_archive_extraction=$lock_old_archive_extraction
18798
18799 # A C compiler.
18800 LTCC=$lt_CC
18801
18802 # LTCC compiler flags.
18803 LTCFLAGS=$lt_CFLAGS
18804
18805 # Take the output of nm and produce a listing of raw symbols and C names.
18806 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18807
18808 # Transform the output of nm in a proper C declaration.
18809 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18810
18811 # Transform the output of nm in a C name address pair.
18812 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18813
18814 # Transform the output of nm in a C name address pair when lib prefix is needed.
18815 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18816
18817 # Specify filename containing input files for \$NM.
18818 nm_file_list_spec=$lt_nm_file_list_spec
18819
18820 # The root where to search for dependent libraries,and in which our libraries should be installed.
18821 lt_sysroot=$lt_sysroot
18822
18823 # The name of the directory that contains temporary libtool files.
18824 objdir=$objdir
18825
18826 # Used to examine libraries when file_magic_cmd begins with "file".
18827 MAGIC_CMD=$MAGIC_CMD
18828
18829 # Must we lock files when doing compilation?
18830 need_locks=$lt_need_locks
18831
18832 # Manifest tool.
18833 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18834
18835 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18836 DSYMUTIL=$lt_DSYMUTIL
18837
18838 # Tool to change global to local symbols on Mac OS X.
18839 NMEDIT=$lt_NMEDIT
18840
18841 # Tool to manipulate fat objects and archives on Mac OS X.
18842 LIPO=$lt_LIPO
18843
18844 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18845 OTOOL=$lt_OTOOL
18846
18847 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18848 OTOOL64=$lt_OTOOL64
18849
18850 # Old archive suffix (normally "a").
18851 libext=$libext
18852
18853 # Shared library suffix (normally ".so").
18854 shrext_cmds=$lt_shrext_cmds
18855
18856 # The commands to extract the exported symbol list from a shared archive.
18857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18858
18859 # Variables whose values should be saved in libtool wrapper scripts and
18860 # restored at link time.
18861 variables_saved_for_relink=$lt_variables_saved_for_relink
18862
18863 # Do we need the "lib" prefix for modules?
18864 need_lib_prefix=$need_lib_prefix
18865
18866 # Do we need a version for libraries?
18867 need_version=$need_version
18868
18869 # Library versioning type.
18870 version_type=$version_type
18871
18872 # Shared library runtime path variable.
18873 runpath_var=$runpath_var
18874
18875 # Shared library path variable.
18876 shlibpath_var=$shlibpath_var
18877
18878 # Is shlibpath searched before the hard-coded library search path?
18879 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18880
18881 # Format of library name prefix.
18882 libname_spec=$lt_libname_spec
18883
18884 # List of archive names.  First name is the real one, the rest are links.
18885 # The last name is the one that the linker finds with -lNAME
18886 library_names_spec=$lt_library_names_spec
18887
18888 # The coded name of the library, if different from the real name.
18889 soname_spec=$lt_soname_spec
18890
18891 # Permission mode override for installation of shared libraries.
18892 install_override_mode=$lt_install_override_mode
18893
18894 # Command to use after installation of a shared archive.
18895 postinstall_cmds=$lt_postinstall_cmds
18896
18897 # Command to use after uninstallation of a shared archive.
18898 postuninstall_cmds=$lt_postuninstall_cmds
18899
18900 # Commands used to finish a libtool library installation in a directory.
18901 finish_cmds=$lt_finish_cmds
18902
18903 # As "finish_cmds", except a single script fragment to be evaled but
18904 # not shown.
18905 finish_eval=$lt_finish_eval
18906
18907 # Whether we should hardcode library paths into libraries.
18908 hardcode_into_libs=$hardcode_into_libs
18909
18910 # Compile-time system search path for libraries.
18911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18912
18913 # Run-time system search path for libraries.
18914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18915
18916 # Whether dlopen is supported.
18917 dlopen_support=$enable_dlopen
18918
18919 # Whether dlopen of programs is supported.
18920 dlopen_self=$enable_dlopen_self
18921
18922 # Whether dlopen of statically linked programs is supported.
18923 dlopen_self_static=$enable_dlopen_self_static
18924
18925 # Commands to strip libraries.
18926 old_striplib=$lt_old_striplib
18927 striplib=$lt_striplib
18928
18929
18930 # The linker used to build libraries.
18931 LD=$lt_LD
18932
18933 # How to create reloadable object files.
18934 reload_flag=$lt_reload_flag
18935 reload_cmds=$lt_reload_cmds
18936
18937 # Commands used to build an old-style archive.
18938 old_archive_cmds=$lt_old_archive_cmds
18939
18940 # A language specific compiler.
18941 CC=$lt_compiler
18942
18943 # Is the compiler the GNU compiler?
18944 with_gcc=$GCC
18945
18946 # Compiler flag to turn off builtin functions.
18947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18948
18949 # Additional compiler flags for building library objects.
18950 pic_flag=$lt_lt_prog_compiler_pic
18951
18952 # How to pass a linker flag through the compiler.
18953 wl=$lt_lt_prog_compiler_wl
18954
18955 # Compiler flag to prevent dynamic linking.
18956 link_static_flag=$lt_lt_prog_compiler_static
18957
18958 # Does compiler simultaneously support -c and -o options?
18959 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18960
18961 # Whether or not to add -lc for building shared libraries.
18962 build_libtool_need_lc=$archive_cmds_need_lc
18963
18964 # Whether or not to disallow shared libs when runtime libs are static.
18965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18966
18967 # Compiler flag to allow reflexive dlopens.
18968 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18969
18970 # Compiler flag to generate shared objects directly from archives.
18971 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18972
18973 # Whether the compiler copes with passing no objects directly.
18974 compiler_needs_object=$lt_compiler_needs_object
18975
18976 # Create an old-style archive from a shared archive.
18977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18978
18979 # Create a temporary old-style archive to link instead of a shared archive.
18980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18981
18982 # Commands used to build a shared archive.
18983 archive_cmds=$lt_archive_cmds
18984 archive_expsym_cmds=$lt_archive_expsym_cmds
18985
18986 # Commands used to build a loadable module if different from building
18987 # a shared archive.
18988 module_cmds=$lt_module_cmds
18989 module_expsym_cmds=$lt_module_expsym_cmds
18990
18991 # Whether we are building with GNU ld or not.
18992 with_gnu_ld=$lt_with_gnu_ld
18993
18994 # Flag that allows shared libraries with undefined symbols to be built.
18995 allow_undefined_flag=$lt_allow_undefined_flag
18996
18997 # Flag that enforces no undefined symbols.
18998 no_undefined_flag=$lt_no_undefined_flag
18999
19000 # Flag to hardcode \$libdir into a binary during linking.
19001 # This must work even if \$libdir does not exist
19002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19003
19004 # If ld is used when linking, flag to hardcode \$libdir into a binary
19005 # during linking.  This must work even if \$libdir does not exist.
19006 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19007
19008 # Whether we need a single "-rpath" flag with a separated argument.
19009 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19010
19011 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19012 # DIR into the resulting binary.
19013 hardcode_direct=$hardcode_direct
19014
19015 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19016 # DIR into the resulting binary and the resulting library dependency is
19017 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19018 # library is relocated.
19019 hardcode_direct_absolute=$hardcode_direct_absolute
19020
19021 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19022 # into the resulting binary.
19023 hardcode_minus_L=$hardcode_minus_L
19024
19025 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19026 # into the resulting binary.
19027 hardcode_shlibpath_var=$hardcode_shlibpath_var
19028
19029 # Set to "yes" if building a shared library automatically hardcodes DIR
19030 # into the library and all subsequent libraries and executables linked
19031 # against it.
19032 hardcode_automatic=$hardcode_automatic
19033
19034 # Set to yes if linker adds runtime paths of dependent libraries
19035 # to runtime path list.
19036 inherit_rpath=$inherit_rpath
19037
19038 # Whether libtool must link a program against all its dependency libraries.
19039 link_all_deplibs=$link_all_deplibs
19040
19041 # Set to "yes" if exported symbols are required.
19042 always_export_symbols=$always_export_symbols
19043
19044 # The commands to list exported symbols.
19045 export_symbols_cmds=$lt_export_symbols_cmds
19046
19047 # Symbols that should not be listed in the preloaded symbols.
19048 exclude_expsyms=$lt_exclude_expsyms
19049
19050 # Symbols that must always be exported.
19051 include_expsyms=$lt_include_expsyms
19052
19053 # Commands necessary for linking programs (against libraries) with templates.
19054 prelink_cmds=$lt_prelink_cmds
19055
19056 # Commands necessary for finishing linking programs.
19057 postlink_cmds=$lt_postlink_cmds
19058
19059 # Specify filename containing input files.
19060 file_list_spec=$lt_file_list_spec
19061
19062 # How to hardcode a shared library path into an executable.
19063 hardcode_action=$hardcode_action
19064
19065 # ### END LIBTOOL CONFIG
19066
19067 _LT_EOF
19068
19069   case $host_os in
19070   aix3*)
19071     cat <<\_LT_EOF >> "$cfgfile"
19072 # AIX sometimes has problems with the GCC collect2 program.  For some
19073 # reason, if we set the COLLECT_NAMES environment variable, the problems
19074 # vanish in a puff of smoke.
19075 if test "X${COLLECT_NAMES+set}" != Xset; then
19076   COLLECT_NAMES=
19077   export COLLECT_NAMES
19078 fi
19079 _LT_EOF
19080     ;;
19081   esac
19082
19083
19084 ltmain="$ac_aux_dir/ltmain.sh"
19085
19086
19087   # We use sed instead of cat because bash on DJGPP gets confused if
19088   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19089   # text mode, it properly converts lines to CR/LF.  This bash problem
19090   # is reportedly fixed, but why not run on old versions too?
19091   sed '$q' "$ltmain" >> "$cfgfile" \
19092      || (rm -f "$cfgfile"; exit 1)
19093
19094   if test x"$xsi_shell" = xyes; then
19095   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19096 func_dirname ()\
19097 {\
19098 \    case ${1} in\
19099 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19100 \      *  ) func_dirname_result="${3}" ;;\
19101 \    esac\
19102 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19103   && mv -f "$cfgfile.tmp" "$cfgfile" \
19104     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19105 test 0 -eq $? || _lt_function_replace_fail=:
19106
19107
19108   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19109 func_basename ()\
19110 {\
19111 \    func_basename_result="${1##*/}"\
19112 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19113   && mv -f "$cfgfile.tmp" "$cfgfile" \
19114     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19115 test 0 -eq $? || _lt_function_replace_fail=:
19116
19117
19118   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19119 func_dirname_and_basename ()\
19120 {\
19121 \    case ${1} in\
19122 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19123 \      *  ) func_dirname_result="${3}" ;;\
19124 \    esac\
19125 \    func_basename_result="${1##*/}"\
19126 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19127   && mv -f "$cfgfile.tmp" "$cfgfile" \
19128     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19129 test 0 -eq $? || _lt_function_replace_fail=:
19130
19131
19132   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19133 func_stripname ()\
19134 {\
19135 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19136 \    # positional parameters, so assign one to ordinary parameter first.\
19137 \    func_stripname_result=${3}\
19138 \    func_stripname_result=${func_stripname_result#"${1}"}\
19139 \    func_stripname_result=${func_stripname_result%"${2}"}\
19140 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19141   && mv -f "$cfgfile.tmp" "$cfgfile" \
19142     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19143 test 0 -eq $? || _lt_function_replace_fail=:
19144
19145
19146   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19147 func_split_long_opt ()\
19148 {\
19149 \    func_split_long_opt_name=${1%%=*}\
19150 \    func_split_long_opt_arg=${1#*=}\
19151 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19152   && mv -f "$cfgfile.tmp" "$cfgfile" \
19153     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19154 test 0 -eq $? || _lt_function_replace_fail=:
19155
19156
19157   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19158 func_split_short_opt ()\
19159 {\
19160 \    func_split_short_opt_arg=${1#??}\
19161 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19162 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19163   && mv -f "$cfgfile.tmp" "$cfgfile" \
19164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19165 test 0 -eq $? || _lt_function_replace_fail=:
19166
19167
19168   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19169 func_lo2o ()\
19170 {\
19171 \    case ${1} in\
19172 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19173 \      *)    func_lo2o_result=${1} ;;\
19174 \    esac\
19175 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19176   && mv -f "$cfgfile.tmp" "$cfgfile" \
19177     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19178 test 0 -eq $? || _lt_function_replace_fail=:
19179
19180
19181   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19182 func_xform ()\
19183 {\
19184     func_xform_result=${1%.*}.lo\
19185 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19186   && mv -f "$cfgfile.tmp" "$cfgfile" \
19187     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19188 test 0 -eq $? || _lt_function_replace_fail=:
19189
19190
19191   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19192 func_arith ()\
19193 {\
19194     func_arith_result=$(( $* ))\
19195 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19196   && mv -f "$cfgfile.tmp" "$cfgfile" \
19197     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19198 test 0 -eq $? || _lt_function_replace_fail=:
19199
19200
19201   sed -e '/^func_len ()$/,/^} # func_len /c\
19202 func_len ()\
19203 {\
19204     func_len_result=${#1}\
19205 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19206   && mv -f "$cfgfile.tmp" "$cfgfile" \
19207     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19208 test 0 -eq $? || _lt_function_replace_fail=:
19209
19210 fi
19211
19212 if test x"$lt_shell_append" = xyes; then
19213   sed -e '/^func_append ()$/,/^} # func_append /c\
19214 func_append ()\
19215 {\
19216     eval "${1}+=\\${2}"\
19217 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19218   && mv -f "$cfgfile.tmp" "$cfgfile" \
19219     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19220 test 0 -eq $? || _lt_function_replace_fail=:
19221
19222
19223   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19224 func_append_quoted ()\
19225 {\
19226 \    func_quote_for_eval "${2}"\
19227 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19228 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19229   && mv -f "$cfgfile.tmp" "$cfgfile" \
19230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19231 test 0 -eq $? || _lt_function_replace_fail=:
19232
19233
19234   # Save a `func_append' function call where possible by direct use of '+='
19235   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19236     && mv -f "$cfgfile.tmp" "$cfgfile" \
19237       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19238   test 0 -eq $? || _lt_function_replace_fail=:
19239 else
19240   # Save a `func_append' function call even when '+=' is not available
19241   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19242     && mv -f "$cfgfile.tmp" "$cfgfile" \
19243       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19244   test 0 -eq $? || _lt_function_replace_fail=:
19245 fi
19246
19247 if test x"$_lt_function_replace_fail" = x":"; then
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19249 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19250 fi
19251
19252
19253    mv -f "$cfgfile" "$ofile" ||
19254     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19255   chmod +x "$ofile"
19256
19257  ;;
19258     "configure-embedded-ffmpeg":C) echo "Configuring included Libav instance with args $embffmpeg_configure_args"
19259      origdir=`pwd`
19260                if test -z "$srcdir" -o "$srcdir" = .; then
19261        confcmd=./configure
19262      else
19263        confcmd="$origdir"/"$ac_top_srcdir"/gst-libs/ext/libav/configure
19264      fi
19265
19266      as_dir="$ac_top_build_prefix"gst-libs/ext/libav; as_fn_mkdir_p
19267      cd "$ac_top_build_prefix"gst-libs/ext/libav &&
19268          eval "$confcmd $embffmpeg_configure_args" ||
19269          as_fn_error $? "Failed to configure embedded Libav tree" "$LINENO" 5
19270      cd "$origdir"
19271      ;;
19272
19273   esac
19274 done # for ac_tag
19275
19276
19277 as_fn_exit 0
19278 _ACEOF
19279 ac_clean_files=$ac_clean_files_save
19280
19281 test $ac_write_fail = 0 ||
19282   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19283
19284
19285 # configure is writing to config.log, and then calls config.status.
19286 # config.status does its own redirection, appending to config.log.
19287 # Unfortunately, on DOS this fails, as config.log is still kept open
19288 # by configure, so config.status won't be able to write to it; its
19289 # output is simply discarded.  So we exec the FD to /dev/null,
19290 # effectively closing config.log, so it can be properly (re)opened and
19291 # appended to by config.status.  When coming back to configure, we
19292 # need to make the FD available again.
19293 if test "$no_create" != yes; then
19294   ac_cs_success=:
19295   ac_config_status_args=
19296   test "$silent" = yes &&
19297     ac_config_status_args="$ac_config_status_args --quiet"
19298   exec 5>/dev/null
19299   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19300   exec 5>>config.log
19301   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19302   # would make configure fail if this is the last instruction.
19303   $ac_cs_success || as_fn_exit 1
19304 fi
19305 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19306   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19307 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19308 fi
19309
19310
19311
19312   if test "$HAVE_ORC" = yes ; then
19313     printf "configure: *** Orc acceleration enabled.\n"
19314   else
19315     if test "x$enable_orc" = "xno" ; then
19316       printf "configure: *** Orc acceleration disabled by --disable-orc.  Slower code paths\n"
19317       printf "               will be used.\n"
19318     else
19319       printf "configure: *** Orc acceleration disabled.  Requires Orc >= $ORC_REQ, which was\n"
19320       printf "               not found.  Slower code paths will be used.\n"
19321     fi
19322   fi
19323   printf "\n"
19324